• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

View State Maintainence with Tiles and Ajax

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

Thank You

PS: Feel free to ask if some thing is not clear
[ October 30, 2007: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The formatting of your post makes is very hard to read. Are you using Struts? Are you using JSF? If this is more of a JSF question then I would think there is a more appropriate forum.

- Brent
 
reply
    Bookmark Topic Watch Topic
  • New Topic