[jbosstools-issues] [JBoss JIRA] (JBIDE-10393) Resource bundle varible not getting resolved in xhtml editor
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Wed Jan 18 16:34:18 EST 2012
[ https://issues.jboss.org/browse/JBIDE-10393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12659402#comment-12659402 ]
Alexey Kazakov edited comment on JBIDE-10393 at 1/18/12 4:33 PM:
-----------------------------------------------------------------
I can reproduce the issue that Fred mentioned.
What I did:
1. Imported Java EE Project from Central.
2. Created multi-web/src/main/resources folder.
3. Created Messages.properties in this folder with aaa=bbb content.
4. Added the following code into faces-config.xml:
{code}
<application>
<resource-bundle>
<base-name>Messages</base-name>
<var>msgs</var>
</resource-bundle>
</application>
{code}
5. Updated maven Project configuration (multi-web/src/main/resources became a java source folder).
6. Opened index.xhtml and tried Ctrl+Space for #{msgs.|
7. I couldn't see "aaa" proposal there.
8. Clean-build didn't help.
9. I restarted Eclipse. It helped. Now I see #{msgs.aaa}
was (Author: akazakov):
I can reproduce the issue that Fred mentioned.
What I did:
1. Imported Java EE Project from Central.
2. Created multi-web/src/main/resources folder.
3. Created Messages.properties in this folder with aaa=bbb content.
4. Added the following code into faces-config.xml:
{code}
<application>
<resource-bundle>
<base-name>Messages</base-name>
<var>msgs</var>
</resource-bundle>
</application>
{code}
5. Updated maven Project configuration (multi-web/src/main/resources became a java source folder).
6. Opened index.xhtml and tried Ctrl+Space for #{msg.|
7. I couldn't see "aaa" proposal there.
8. Clean-build didn't help.
9. I restarted Eclipse. It helped. Now I see #{msg.aaa}
> 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
More information about the jbosstools-issues
mailing list