[
https://issues.jboss.org/browse/JBIDE-10393?page=com.atlassian.jira.plugi...
]
Fred Bricon edited comment on JBIDE-10393 at 12/21/11 5:24 AM:
---------------------------------------------------------------
With JBIDE-10468 fixed, I created a project from the [blank
archetype|http://search.maven.org/#artifactdetails%7Corg.jboss.spec.arche...],
added a a foo/bar/messages.properties to src/main/resources, modified faces-config.xml to
reference it and created an html file.
AFAICS, when #{msg. is typed in the html file, autocompletion now lists its content. I
would expect it to actually auto select #{msg.greetings} when I type #{msg.g but it still
shows other possible entries. I guess this is the current behavior. (see attached
[^jsf-from-blank-archetype.zip])
Anyway, I found something weird : if I create a Java EE Project from JBoss Central
(creates a multi module project), src/main/resources doesn't exist, so I create the
folder manually, update the project configuration so that m2e adds it to the project
classpath, then create the messages.properties (repeat all previous steps), then
autompletion won't find the msg entries. If I restart the workspace, it works.
Thoughts Alexey?
was (Author: fbricon):
With JBIDE-10468 fixed, I created a project from the [blank
archetype|http://search.maven.org/#artifactdetails%7Corg.jboss.spec.arche...],
added a a foo/bar/messages.properties to src/main/resources, modified faces-config.xml to
reference it and created an html file.
AFAICS, when #{msg. is typed in the html file, autocompletion now lists its content. I
would expect it to actually auto select #{msg.greetings} when I type #{msg.g but it still
shows other possible entries. I guess this is the current behavior. (see attached
!jsf-from-blank-archetype.zip!)
Anyway, I found something weird : if I create a Java EE Project from JBoss Central
(creates a multi module project), src/main/resources doesn't exist, so I create the
folder manually, update the project configuration so that m2e adds it to the project
classpath, then create the messages.properties (repeat all previous steps), then
autompletion won't find the msg entries. If I restart the workspace, it works.
Thoughts Alexey?
Resource bundle varible not getting resolved in xhtml editor
------------------------------------------------------------
Key: JBIDE-10393
URL:
https://issues.jboss.org/browse/JBIDE-10393
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: JSF, maven
Affects Versions: 3.3.0.M4
Reporter: Vimal Kansal
Assignee: Alexey Kazakov
Fix For: 3.3.0.Beta1
Attachments: .project, .project, .project,
jbosstools-diagnostics-20111208220820.zip, jsf-from-blank-archetype.zip
I used the maven archetype "jboss-javaee6-webapp-blank-archetype" to create a
blank project. I have created a messages.properties file as
/src/main/java/com.corejsf/messages.properties. In my faces-config.xml, I have configured
:
<application>
<resource-bundle>
<base-name>com.corejsf.messages</base-name>
<var>msgs</var>
</resource-bundle>
</application>
Now, when I create a new .xhtml page and want the auto-completion to automatically
resolve an expression like #{msgs. i.e after typing #{msgs. when I press CTRL+SPACE, I
don't see the list of properties defined in the resource bundle. However, CTRL+SPACE
stuff works if I refer to any CDI bean.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira