This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes Tiles in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Tiles in JSF" Watch "Tiles in JSF" New topic

Tiles in JSF

Maya Pillai
Ranch Hand

Joined: Jul 17, 2008
Posts: 60
I am trying to configure tiles in myJSF application.





while running the code i am getting an exception.
[Exception in:/pages/Template1.jsf] Cannot forward after response has been committed
Please help.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950

While it's possible to use Tiles with JSF, I've never had a whole lot of satisfaction in attempting to use Tiles even in Struts. A better solution is to use Facelets, since Facelets functionality was merged into JSF for JSF2.

The actual error you're getting is thrown when you attempt to forward after the page has started rendering. I think Tiles may be partly to blame for that, since the very reason it frustrated me was its "inside-out" organization of resources.

That's not to say you can't forward from a Tiles app, but you do have to do the forwarding before (or instead of) rendering the tiles.

Customer surveys are for companies who didn't pay proper attention to begin with.
It is sorta covered in the JavaRanch Style Guide.
subject: Tiles in JSF
Similar Threads
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
Problem in rendering html tags in myfaces tiles
Jsf tiles problem
t:jscookMenu with Tiles
JSF1.1 and shale-tiles-1.0.4 integration problem