why are you calling updatemodels() from inside onvalidate()? this is what happens anyways if validation passes. i am guessing your code does not check if the form is valid before calling updatemodels() which causes the error you are describing since you are forcing a model update for a component that is in an invalid state.
-igor On Thu, Aug 11, 2011 at 7:59 AM, delta <[email protected]> wrote: > Hmmm, the error only occurs when no CheckBox in the CheckGroup is marked, but > considering this scenario the super.onValidate() should complain about I > don't have any CheckBox marked in a CheckGroup with serRequired(true), > that's not what happening. And since this validation don't exists, when > CheckGroup.updateModel is called I receive a NullPointerException. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736096.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
