Re: [Wicket-user] Fom validation

2006-08-27 Thread Igor Vaynberg
the problem with that is that once you added the form validator there is no way to remove it - so things like switching forms around that add their form validators will not work.also because you are doing it in onbeforerender() means you will be adding the form validator multiple times. yes it suck

Re: [Wicket-user] Fom validation

2006-08-27 Thread p.jasson
thanks. it's working, but like this, i always have to overide the Form.validate() and it won't work with normal Form. What do you think about this solution: class MyComponent extends Panel { private IFormValidator formValidator; setValidation(...){ formValidator = new IFormValidator(){

Re: [Wicket-user] Fom validation

2006-08-27 Thread Igor Vaynberg
by default it can only be added to form components but there are things you can use a visitor - here is some pseudo codeinterface IValidateable { void validate(); }class MyForm extends Form {   void validate() {   super.validate();  visit(IValidatable.class, new IVisitor() {   Objec