RadioGroup getValue does not return correct slected value

Posted by vagabond on Stack Overflow See other posts from Stack Overflow or by vagabond
Published on 2010-05-08T18:30:14Z Indexed on 2010/05/08 18:38 UTC
Read the original article Hit count: 227

Filed under:

I'm running into a small issue with RadioGroup. My RadioGroup has possible values, true and false. The Radio types I have in my radiogroup use a Model that stores true or false.

On an ajax onchange event I want to do some handling, and to do so I need to know the selected radio in my radiogroup and another identical radiogroup. The problem is getValue() only returns the initial value from my Pojo. Whenver I click on a radio button to change the selected Radio getValue() still returns the initial value.

When I save my changes, my Pojo gets the correct value. I am finding this bizarre and have spent hours trying to figure our what I'm missing.

© Stack Overflow or respective owner

Related posts about wicket