Re: Form skips validation for disabled/not visible components

2009-08-04 Thread nytrus
k you all! -- View this message in context: http://www.nabble.com/Form-skips-validation-for-disabled-not-visible-components-tp24790510p24809865.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscrib

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread Eyal Golan
mponents) { > >this.components = components; > >} > > > >public void validate(Form form) > > { > > for(FormComponent c: components) { > > validateRequired(); > >

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread James Carman
Validator extends AbstractFormValidator { >>    private List components; >> >>    public RequiredFieldsValidator(List components) { >>        this.components = components; >>    } >> >>    public void validate(Form form) >>    { >>         for(FormComponent

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread Igor Vaynberg
 validateRequired(); >         } >    } > } > > -- > View this message in context: > http://www.nabble.com/Form-skips-validation-for-disabled-not-visible-components-tp24790510p24792189.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > ---

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread nytrus
} } -- View this message in context: http://www.nabble.com/Form-skips-validation-for-disabled-not-visible-components-tp24790510p24792189.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsu

Re: Form skips validation for disabled/not visible components

2009-08-03 Thread Eyal Golan
1. If you in control of the input of these disabled fields, why allowing illegal arguments in the first place? 2. If you can't control the entered values, try use FormValidator. With this class, you can create your own Validate logic with the desired fields. Eyal Golan egola...@gmail.com Visit: h

Form skips validation for disabled/not visible components

2009-08-03 Thread Nicola Tucci
Hi all! I've a situation where I want the form to validate some hidden or disabled field. An example is a text field where the user is not allowed to write directly but only insert some items from some source, a lookup button (this is much more flexible than a drop down box!). I set this compo