• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

tiles ? jsf ? hans ?  RSS feed

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Author
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!