wood burning stoves*
The moose likes JSF and the fly likes View State Maintainence with Tiles and Ajax -  a complicated problem 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 "View State Maintainence with Tiles and Ajax -  a complicated problem" Watch "View State Maintainence with Tiles and Ajax -  a complicated problem" New topic
Author

View State Maintainence with Tiles and Ajax - a complicated problem

Faraz Kazmi
Greenhorn

Joined: Oct 30, 2007
Posts: 3
I am having a complicated problem with tiles and ajax.

I have a layout page e.g welcome.faces which contains a Tab Panel.
Tab Page in this tab panel is a place holder ( tiles) which can containg

my other jsp's like documentList.faces or documentDetail.faces depending

on
some parameters which with Ajax request.

Tab Switching is handled by Ajax request.
What i want is that when i change a tab, a request is generated which

will load the content page.

The restriction is, an f:view can not contain another f:view.
welcome.faces it self contains an f:view and similarly documentList.faces

and documentDetail.faces contains their own f:view tags.

What happens is this when the page is rendered, if i use ajax on some

control in welcome.faces its view is used and when i try to use content's

( docuementList or detail ) it ask to restore view state after which i

loses the other view.

If i remove f:view tag from Content Page Jsp, ajax request can not be

made to that page and content handler does nothing.

Is there any want we can handle this situation when tiles are used and

content handler contains another jsp which is selected on runtime

depending on some parameters???

or is it possible to pass view to inner jsp ( content page ) so that when

it is rendered it uses parent view.

The other restriction in my case is that inner jsp i.e documentDetail and

documentList is constructed programaticaly.

Kindly help in this matter as there seems no direct way to solve such

situation to me.

Thanks

PS: Feel free to ask if some thing is not clear
 
Don't get me started about those stupid light bulbs.
 
subject: View State Maintainence with Tiles and Ajax - a complicated problem
 
Similar Threads
Redirect when Javascript is disabled
View State Maintainence with Tiles and Ajax
Display the result in the selected tab
MVC (urgent)
View State Maintainence with Tiles and Ajax