Albert Jagnow <albert-jagnow <at> uiowa.edu> writes:
> The problem is
> after they return if they deselect one of the radio groups and submit
> the survey again the answer never gets changed back to null, it stays
> what it was before even though the user thinks it should be blank. It
> looks like what is happening is that the browser never returns data so
> setSelectedAnswer is never called for that question. What is the best
> way to get around this problem?
Try doing something like that in your Form's listener:
void onOk() {
RadioGroup group = (RadioGroup)getComponent("myGroup");
if (grouop.isSelected(-1)) {
//nothing was selected
...
}
}
--
Author of e-book for learning Tapestry (www.agileskills2.org/EWDT)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]