Why do you have a validate() method in your panel if it isn't part of
the form?
When you get to the form's onSubmit() method, all the models used in the
form components have already been updated. This occurs after all the
validators of the form and its components are executed. Therefore, if
you use the same model in the form and in the panel, the panel will also
"see" the new model object set by the form component *but only after all
form validation occurs*. http://stackoverflow.com/a/4641827/1030527 has
a good writeup of the form processing flow.
On 19/07/2012 9:31 AM, jam.ntk wrote:
ok, I need to check the form attribute value in the vaildate() method of
panel. If thats the case then i guess i cannot get the updated model in the
validate method.
So the workaround for me is to use getters of components (TextField,
DropDownChoice etc) from webpage in the panel validate method. However as
per you suggested I see blank value for #getConvertedInput() to these
components. Sorry if these are basic questions, but i am learning wicket.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-can-wicket-Page-form-model-be-accessed-from-child-panel-tp4650608p4650625.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]