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

tynor do-not-reply at jboss.com
Wed Jul 11 16:44:14 EDT 2007

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

More information about the jboss-user mailing list