Ah now I'm starting to understand. The "Wicket way" as I understand it
is to validate in the form submit and its components. Your validator
however will need a reference to the current value of those checkboxes.
I'm guessing the checkboxes are not part of the form in your case,
otherwise this is very easy (just access the form component of the
form). If they are not part of the form, you should share a model
between each checkbox and the form validator to control the activation
of the validation.
On 19/07/2012 2:12 PM, jam.ntk wrote:
I have two fields on the webpage which needs be validated for not being blank
if user has selected few checkboxes which are part of the panel. So I
thought of to have a validate method in the panel. Are you suggesting that
instead of validating in the panel I validate in the form submit of webpage?
Please suggest
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-can-wicket-Page-form-model-be-accessed-from-child-panel-tp4650608p4650632.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]