Hi all, this is my first post on this list... Coming to your question, afaiu, you need cross validation over underlying model (in OO sense, not only wicket sense); and this model is probably reused as well as the panel. The first thing that i note is that you should move your logic over the dom, giving this responsability to the object that aggregates form data. But i think that this is a more general issue...not concerning only wicket. If you validate a given input field, and this field has relation with other fields of the model, your validation will be stateful and not stateless, if you get what i mean.
Alex [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 > > > -- Alessandro Lombardi skype: alex.lombardi http://www.linkedin.com/in/alexlombardi ------------------------------------------------------------------------- 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