Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

h:selectOneRadio is rerendering panels inconsistently

 
Ricardo Preston
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi y'all.

I'm using seam/JSF (Rich Faces), latest versions. I have a h:selectOneRadio tag with 2 values, and I want to use Ajax to display one of 2 different forms, depending on the selection in the radio button. The problems are:

1. The first time I change the value, nothing is triggered in the backing bean;
2. Subsequent changes do trigger, but are the opposite of what they should be! e.g. If I select Key, the backing bean shows that it is being changed from key to advanced, not the other way around.

Can anyone help? Thanks.

Here's the facelet code:


And 'ere's the backing method:

 
Ricardo Preston
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed the prob myself. I should have been using onclick event, not onchange.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic