I'm doing that to force the Models to update, since when I receive a validate
error, like when I dont fill a required field, the checkgroup in the page
loose the ckeckboxes marked, so I update the models and the marked
checkboxes come back (So the user dont have to mark all over again just
because of a field he forgot to fill).

Why the component is in a invalid state? It's in a invalid state because of
the setRequired(true)? The error only happens in this scenario, like I said
before.

I tried the *hasError()*:
                if (!hasError()) {
                        updateFormComponentModels();
                }

It returns true when I don't mark any checkbox in the checkgroups (ok), but
since the *updateFormComponentModels()* will only be called if no error
occurs, I will loose the marked checkboxes.

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/CheckGroup-updateModel-setrequired-Bug-tp3736032p3736592.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]

Reply via email to