This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes JSF and the fly likes Is it possible to reload only body in the tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Is it possible to reload only body in the tiles" Watch "Is it possible to reload only body in the tiles" New topic

Is it possible to reload only body in the tiles

karthik chandra

Joined: Aug 03, 2011
Posts: 7
I've used a tiles to hava a structure for my web application like the sample below. Am using JSF 1.1.

<tiles:insert definition="page.applicationLayoutNewDesign">
<tiles:put name="body" valueabcd.jsp" type="page"/>

My header, menu structure is in tha applicationLayoutNewDesign, IS it possible if I click on the menu, only the body get reloaded and the header remain static(means doesn't load again).
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17280

Welcome to the JavaRanch, Karthik!

Tiles are (in my opinion) an abomination. I never learned to love them. In JSF, tiling can be done using the Facelets subsystem, which is available as an add-on for JSF1 and is an integral part of JSF2. So one reason to consider facelets is that unlike tiles, it's a part of the current JEE standard.

Regardless of what tiling system you use, however, you cannot update just part of a page (technical term: "partial page update") using straight HTTP. You need AJAX to do that. That is, in fact, exactly what AJAX was designed to do.

In JSF1, there is no built-in support for AJAX, although some of the third-party extension tagsets provide AJAX support that make it very easy to do partial page updates. In JSF2, ajax is additionally available as part of the core JSF JEE standard.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Is it possible to reload only body in the tiles
It's not a secret anymore!