[jbosstools-issues] [JBoss JIRA] (JBIDE-13242) Seam 2.3: seam-gen generated project, JBDS reports missing files referenced from view-id in pages.xml

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


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

Alexey Kazakov commented on JBIDE-13242:
----------------------------------------

The problem is that seam-gen project is not a dynamic web project. So JBoss Tools cannot recognize <project>/view as a webroot folder.
See https://issues.jboss.org/browse/JBIDE-13254?focusedCommentId=12744574&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12744574
But you cannot get this false validation problem in a fresh generated project since WST (Eclipse Web Tools) validation is not enabled there. Seam validation is an extension of WST validation so it won't work if WST validation disabled. You probably enabled JBoss Tools Knowledge Base support after importing the project (you will be asked to do it when opening any xhtml file for such a project). JBT KB enables WST validation.
                
> Seam 2.3: seam-gen generated project, JBDS reports missing files referenced from view-id in pages.xml
> -----------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-13242
>                 URL: https://issues.jboss.org/browse/JBIDE-13242
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: Seam 2
>    Affects Versions: 4.0.0.Beta2
>         Environment: Seam.2.3.0, JBDS 5.0.1.GA or JBDS 6.0.0.Beta2a
>            Reporter: Marek Novotny
>            Assignee: Alexey Kazakov
>             Fix For: 4.1.0.Alpha1
>
>
> After importing and building a Seam 2.3 seam-gen generated project in JBDS, it reports missing files referenced from view-id in pages.xml and in somEntity.page.xml files.
> This works OK for a Seam project created in JBDS and for a Maven project imported to JBDS.
> How reproducible:
> Import a seam-gen generated EAR project, check pages.xml.
> Steps to Reproduce:
> 1. Create a seam-gen EAR project.
> 2. Import into JBDS.
> 3. Open pages.xml, make a change (to trigger build).
>   
> Actual results:
> On lines referencing a view-id, like 
>  <redirect view-id="/home.xhtml"/>
> JBDS shows an error saying: 
>  Cannot find target resource: "/home.xhtml"

--
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