Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Re: Subdirectories in the view folder

scott.stark@jboss.org

2007-07-11


If you look at your jboss console output, you'll probably see that the page is unable to render since it can't follow one of its template links.

Check any template links on the page -- seam-gen generates relative links that look like this:

|           template="layout/template.xhtml">
| ...
|         <s:decorate template="layout/display.xhtml">
|

If you move the page to a directory other than the root, you need to change those references to not be relative:


|           template="/layout/template.xhtml">
| ...
|         <s:decorate template="/layout/display.xhtml">
|
(Seam developers: is there any reason why seam-gen should not generate with that leading slash? Such a reference works both in the oringinal location and tolerates page movement).



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063219#4063219

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063219
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.