[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-1484) Seam-gen should generate pages using templates relative to web application, not the pages themselves

Dejan Krsmanovic (JIRA) jira-events at lists.jboss.org
Mon Jun 18 03:31:11 EDT 2007


     [ http://jira.jboss.com/jira/browse/JBSEAM-1484?page=all ]

Dejan Krsmanovic updated JBSEAM-1484:
-------------------------------------

    Attachment: seam-gen.txt

This patch fixes all templates used by seam-gen as suggested in issue description. 

> Seam-gen should generate pages using templates relative to web application, not the pages themselves
> ----------------------------------------------------------------------------------------------------
>
>                 Key: JBSEAM-1484
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1484
>             Project: JBoss Seam
>          Issue Type: Patch
>          Components: Tools
>    Affects Versions: 1.3.0.ALPHA
>            Reporter: Dejan Krsmanovic
>            Priority: Minor
>         Attachments: seam-gen.txt
>
>
> Seam-gen currently creates facelets xhtml pages having ui-composition element with template attribute specified relative to page itself. This is OK if all pages are stored in the root folder of web application. However, when you start refactoring and moving pages to separate folders you need to update template attribute in all ui-composition elements in moved pages. 
> So, I think seam-gen should generate pages with ui-composition element which references template relative to web-app, and not the page. In other words instead of:
> <ui:composition ...   template="layout/template.xhtml">
> it should be:
> <ui:composition ...   template="/layout/template.xhtml">
> With this change, you can move xhtml pages to any folder and template would still be referenced correctly. 

-- 
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 seam-issues mailing list