File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes tiles ? jsf ? hans ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "tiles ? jsf ? hans ?" Watch "tiles ? jsf ? hans ?" New topic
Author

tiles ? jsf ? hans ?

frisode jonge
Ranch Hand

Joined: Dec 30, 2003
Posts: 34
i am just wondering why nobody brought this topic up in the book discussion. What could be the synergy, or problems with both these topics. Is that written in the book ?
Hans Bergsten
Author
Ranch Hand

Joined: Dec 01, 2003
Posts: 106
Originally posted by frisode jonge:
i am just wondering why nobody brought this topic up in the book discussion. What could be the synergy, or problems with both these topics. Is that written in the book ?


I describe how you can use Tiles with JSF in the book. Including one JSP page containing JSF components (with the rest represented by plain JSP pages and/or static HTML pages) is fairly easy.

Including more than one JSP page containing JSF pages is problematic for two reasons. Dynamically including JSP pages containing JSF components requires that you embed all static content in the pages within <f:verbatim> elements and that you wrap each page within a <f:subview> element; hardly intuitive. This is because of buffering issues, where JSF and JSP clashes. The second reason is that the current version of Tiles (or at least the version I tested) tries to flush a buffer in a way that causes an exception when used with JSF. This should be fairly easy to fix, though.

I haven't tried it myself, but I've seen reports that people have had better luck with SiteMesh than with Tiles.


Hans Bergsten, hans@gefionsoftware.com<br />Author of O'Reilly's<br />- JavaServer Pages,<br />- JavaServer Faces<br /><a href="http://www.hansbergsten.com/" target="_blank" rel="nofollow">http://www.hansbergsten.com/</a>
 
IntelliJ Java IDE
 
subject: tiles ? jsf ? hans ?
 
Threads others viewed
How did you find Javaranch?
WA #1.....word association
Are Session Activation Listeners configured in DD?
New person
Got my Head First EJB today
developer file tools