[jbosstools-issues] [JBoss JIRA] (JBIDE-13254) In Seam 2.3 seam-gen generated project imported in JBDS, EL completion for Seam Messages doesn't work

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Thu Jan 10 15:36:08 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-13254?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12745009#comment-12745009 ] 

Alexey Kazakov commented on JBIDE-13254:
----------------------------------------

Actually code assist for Seam Messages doesn't require a dynamic web project.
Seam message bundles should (AFAIK) be in project class path.
But in seam-gen generated project all messages-*.properties files are placed in <project>/resources folder which is not a java source folder.
They are copied to ${war.dir}/WEB-INF/classes by ant script. Code assist start working as soon as you copy these files to any java source folder.

But anyway some features can be disabled (some validation, code completion, navigation) until you convert the project to a faceted project (Project properties->Project Facets) and install JSF and Seam facets there. Seam facets actually is not required since you have seam support enabled but installing Seam facet you will enable JBoss Tools Knowledge Base support too. So if you want to have all the features enabled you need to install JSF facet + either install Seam facet or enable JBoss Tools Knowledge Base support (Project Properties->JBoss Tools Knowledge Base).
The following files will be updated/created:
<project>/.project
<project>/.classpath
<project>/.settings/*
But again, for Seam code assist you don't need it. All you need is a properly configured java project with enabled seam support. These facets are required for JSF code assist/validation/navigation.
                
>  In Seam 2.3 seam-gen generated project imported in JBDS, EL completion for Seam Messages doesn't work
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-13254
>                 URL: https://issues.jboss.org/browse/JBIDE-13254
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam 2, UpStream
>    Affects Versions: 3.3.1, 4.0.0.Beta2
>         Environment: WFK 2.1.0.CR2 Seam.2.3.0.Final-redhat-1, JBDS 5.0.1.GA, JBDS 6.0.0.Beta2a
>            Reporter: Ron Šmeral
>            Assignee: Alexey Kazakov
>             Fix For: 4.1.0.Alpha1
>
>
> After importing a Seam 2.3 seam-gen generated project in JBDS, the EL completion for Seam Messages doesn't work.
> This works OK for a Seam project created in JBDS and for a Maven project imported to JBDS.
>   
> Actual results:
> Even though the "messages" component is suggested, no actual messages from the properties files are suggested. A warning is shown for e.g #{messages['org.jboss.seam.NotLoggedIn']}.
> Expected results:
> Messages from messages_xx.properties should be suggested without warnings.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list