[jbosstools-issues] [JBoss JIRA] (JBIDE-10393) Resource bundle varible not getting resolved in xhtml editor

Fred Bricon (Updated) (JIRA) jira-events at lists.jboss.org
Wed Dec 21 05:19:09 EST 2011


     [ https://issues.jboss.org/browse/JBIDE-10393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fred Bricon updated JBIDE-10393:
--------------------------------

    Attachment: jsf-from-blank-archetype.zip


With JBIDE-10468 fixed, I created a project from the [blank archetype|http://search.maven.org/#artifactdetails%7Corg.jboss.spec.archetypes%7Cjboss-javaee6-webapp-archetype-blank%7C7.0.2.CR2%7Cmaven-archetype], modified 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.

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: Fred Bricon
>             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