let you panel implement some interface that has a validate method
subclass the form, override form.process() and change it to
process() { super.process(); visitChildren( visitor that looks for that interface and calls validate() on it ); }
-Igor
On 10/5/06,
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hello All,
I have a following question: I know how we can assign validators to the
form components and how we can have the validation defined on the form
level. But here is a problem: I have a component that is a simple panel.
This component is reused all over the place. It needs to have some
validation logic that needs a few form components that this panel has.
Where should I put this logic? I can not put it on the formComponent level
since it is not per form component but rather per combination of form
components. Putting it on the FormLevel will make it harder to reuse the
component on its own.
ANy suggestions?
Thank you
Gennadiy
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user