jQuery in Action, 2nd edition*
The moose likes JSF and the fly likes Incorrect state saving of the part of the view ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Incorrect state saving of the part of the view ? " Watch "Incorrect state saving of the part of the view ? " New topic

Incorrect state saving of the part of the view ?

Dmitry Kopasov

Joined: May 17, 2011
Posts: 2

I have two similar JSF pages, linked to its own bean each. Each page contains a form with 3 panelboxes, and renders only one of them at a time, depending on the radiobutton position.
Everything is OK for the one of the pages, but for the second I have a problem: the values sent from one of the panelboxes are not assigned to the bean properties, if panelbox has "rendered" attribute.
I.e. the panelbox itself is rendered properly, but sent values are ignored. However, it works perfectly if I remove "rendered" attribute and put STL IF instead.

My only guess is that the problem appears due to some incorrect state saving. Also, I have to note that the page having described problem renders automatically a field like this:
<input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="j_id13:j_id14" />
while the page correctly working has nothing like that.

Could someone give me any clue about this ?
I agree. Here's the link: http://aspose.com/file-tools
subject: Incorrect state saving of the part of the view ?
Similar Threads
How to prepopulate combo boxes on page startup
JSF Backing bean in session Scope and State_Saving_Method = Client
JSF Edit Page
Cannot set a value in selectOneMenu
How to handle request params and navigation