Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » f:loadBundle doesn't contibute it's "var" variable to EL
f:loadBundle doesn't contibute it's "var" variable to EL [message #474194] Sat, 26 May 2007 02:40 Go to next message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
Messages: 74
Registered: July 2009
Member
Hi!
I got some problem with EL contribution for loadbundle tag.
Contribution works fine for h:datatable or tomahawk library tags through
extension plugin, but for f:loadBundle it doesn't. Here is simple jsf page
source:

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<body>
<f:view>
<f:loadBundle var="msg" basename="com.test.msg" />
<h:outputText value="#{}" />
</f:view>
</body>
</html>

...and com.test.msg.properties contains single entry.

When i open content assist for EL expression in h:outputText - "msg" var
is not there. Maybe contribution for loadbundle just isn't implemented at
all and i search for a black cat in a dark room? :)

P.S.
JSF implementation is myfaces 1.1.5 (if it really matters at all). I fresh
installation of eclipse3.3 rc1, wtp2.0 rc1 and clean workspace, but with
no luck.

Thanks!
Solved my problem, but don't know, should it be considered as a bug or not [message #474195 is a reply to message #474194] Mon, 28 May 2007 02:33 Go to previous messageGo to next message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
Messages: 74
Registered: July 2009
Member
Solved my problem: extension of jsp file with jsf tags was "jsf" instead
of "jsp" (configured URL mapping pattern for project is "*.jsf" instead of
default "/faces/*", so i tangle extensions sometimes). If file has "jsp"
extension everything works fine.

That error seems to be ok, since JSF pages are all jsp at their base, so
they all must by named "*.jsp". But WTP, when installed, defines some more
file extensions bound to JSP file editor: jsf, jspf and jspx.
Should all JSF Tools content assist functionality be available for files
with these extensions (i.e. jsf)? Or should it be available only for *.jsp
files?

I don't know, should it be considered as a bug (and reported) or as a
feature (and be left as-is) :)
Hope you'll help me find answer for these questions.

Thanks for your attention again!
Re: Solved my problem, but don't know, should it be considered as a bug or not [message #474279 is a reply to message #474195] Tue, 29 May 2007 23:00 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Hi Vadim,

I think you're onto something here. The issue becomes even bigger when we
take into account the request to support facelets at some point in the
future. Can you enter this issue into bugzilla so we can track?


Thanks,

Cameron
Solved my problem, but don't know, should it be considered as a bug or not [message #610970 is a reply to message #474194] Mon, 28 May 2007 02:33 Go to previous message
Vadim Dmitriev is currently offline Vadim DmitrievFriend
Messages: 74
Registered: July 2009
Member
Solved my problem: extension of jsp file with jsf tags was "jsf" instead
of "jsp" (configured URL mapping pattern for project is "*.jsf" instead of
default "/faces/*", so i tangle extensions sometimes). If file has "jsp"
extension everything works fine.

That error seems to be ok, since JSF pages are all jsp at their base, so
they all must by named "*.jsp". But WTP, when installed, defines some more
file extensions bound to JSP file editor: jsf, jspf and jspx.
Should all JSF Tools content assist functionality be available for files
with these extensions (i.e. jsf)? Or should it be available only for *.jsp
files?

I don't know, should it be considered as a bug (and reported) or as a
feature (and be left as-is) :)
Hope you'll help me find answer for these questions.

Thanks for your attention again!
Re: Solved my problem, but don't know, should it be considered as a bug or not [message #611558 is a reply to message #474195] Tue, 29 May 2007 23:00 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Hi Vadim,

I think you're onto something here. The issue becomes even bigger when we
take into account the request to support facelets at some point in the
future. Can you enter this issue into bugzilla so we can track?


Thanks,

Cameron
Previous Topic:WYSIWYG HTML editor
Next Topic:3 metadata files are all required after refactoring?
Goto Forum:
  


Current Time: Thu Mar 28 12:36:38 GMT 2024

Powered by FUDForum. Page generated in 0.02453 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top