[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-1230) JSF page contents is ignored but not forgotten by WTP

Viacheslav Kabanovich (JIRA) jira-events at lists.jboss.org
Fri Nov 2 10:49:45 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBIDE-1230?page=comments#action_12385745 ] 
            
Viacheslav Kabanovich commented on JBIDE-1230:
----------------------------------------------

WTP does not update properly its inner web descriptor model for version 2.5. For version 2.4 it is updated ok.

EXECUTE: Create Dynamic web project 2.4 with JSF facet.
EXECUTE: Create *.jsp page and Run it on server.
ASSERT: Path in browser applies correct faces servlet url pattern from web.xml.
EXECUTE: Open web.xml and modify faces servlet url pattern.
EXECUTE: Run *.jsp page on server again.
ASSERT: Path in browser applies is correct, the modified faces servlet url pattern from web.xml is applied.

Now repeat all these steps but create Dynamic web project 2.5 with JSF facet instead of 2.4.
The last assertion will fail, - old url pattern will stick until restarting Eclipse.

One more difference illustrating problems with web descriptor 2.5 in WTP.
EXECUTE: Expand projects in Project Explorer.
ASSERT: Dynamic web project 2.4 has node 'Deployment Descriptor:...'
ASSERT: Dynamic web project 2.5 does not have such node.

So, the only workaround I see for us to do now, is to replace default 'URL Mapping Patterns' 
when 'New Seam Project' starts to '*.seam'. That will provide correct urls for the created project.
Of course, it will not help after user changes url pattern in web.xml manually.

> JSF page contents is ignored but not forgotten by WTP
> -----------------------------------------------------
>
>                 Key: JBIDE-1230
>                 URL: http://jira.jboss.com/jira/browse/JBIDE-1230
>             Project: JBoss Tools
>          Issue Type: Bug
>          Components: Seam
>    Affects Versions: 2.0.0.Beta4
>            Reporter: Max Andersen
>         Assigned To: Viacheslav Kabanovich
>             Fix For: 2.0.0.CR1
>
>
> JSF page has url pattern /faces/* it should be *.seam
> Just when you created a project the JSF code in WTP haven't realized we created a different url pattern in web.xml and thus falls back to show /faces/home.xhtml instead of /home.seam when you Run On Server for a html file.
> After a restart this works fine.
> Either we need to set the url pattern in the preset or somehow force a refresh of the JSF model.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jbosstools-issues mailing list