Hi Lucas,
#validate() is called by the Form when it processes a request. Usually
you don't call this method by yourself - that's all.
Overriding #validate() is OK. Note that a FormComponentPanel can have
validators too, so it might be simpler to just add one for your date checks.
Regards
Sven
On 04/04/2014 01:31 PM, lucast wrote:
Dear forum,
I've written a FormComponentPanel in which one can select a date range and
during validation I want to check that start date is not in the past or that
end date is before start date.
I have decided to do these checks by overriding
FormComponentPanel.validate().
The FormComponentPanel.validate() API Documentation ends with *This method
should only be used if the form component needs to be fully validated
outside the form process.*
What exactly does *validate a component outside the form process* mean?
English is not my first language so maybe that's why I don't get it.
All explanations will be much appreciated.
Thanks in advance,
Lucas
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/FormComponentPanel-validate-API-Doc-question-tp4665262.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org