Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Incorrect state saving of the part of the view ?

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

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 ?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic