Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Incorrect state saving of the part of the view ?  RSS feed

Dmitry Kopasov
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!