Thanks for that solution,
To summarize that:
- Extend a normal Validator
- Add the IValidatorAddListener Interface
- Implement the onAdded method
- In this method: add a Custom Behavior to the component
- In the custom Behavior: Integrate the js like described here:
harrypitt wrote:
Thanks for that solution,
To summarize that:
- Extend a normal Validator
- Add the IValidatorAddListener Interface
- Implement the onAdded method
- In this method: add a Custom Behavior to the component
- In the custom Behavior: Integrate the js like described here:
Ok, my question was not clear enough.
With Pure client side validation i mean a javascript validation which
needs no ajax requests. Of course there should be always a server side
validation and the whole default Wicket form-handling AFTER the submit. It
would be really stupid to just rely on
On Thu, Oct 2, 2008 at 12:33 AM, harrypitt [EMAIL PROTECTED] wrote:
Thanks for that solution,
To summarize that:
- Extend a normal Validator
- Add the IValidatorAddListener Interface
- Implement the onAdded method
- In this method: add a Custom Behavior to the component
- In the custom
Ahh ok, I get you. So I guess IVisitor would be very good to use here..
Visit every component and put according js validation in there depending
on which validator etc... Could be something I would look into at some
point..
Maybe the way would be to upgrade the fvalidate integration to
saw this lib:
http://yav.sourceforge.net/ maybe it fits better?
Nino Saturnino Martinez Vazquez Wael wrote:
Ahh ok, I get you. So I guess IVisitor would be very good to use
here.. Visit every component and put according js validation in there
depending on which validator etc... Could be
Hi Harry,
Well, it should be possible to create a Behavior taking care of stuff
this...
e.g. like
textField.add(new ClientSideRequiredValidationBehavior(myErrorLabel));
ClientSideRequiredValidationBehavior should override onComponentTag then to
add onchange/onblur javascript code to your
it is possible, just not there out of the box. can look like something like this
class rangejsvalidator extends rangevalidator implements IValidatorAddListener {
void onAdded(Component component) { // add some behavior to output
javascript validation }
}
-igor
On Tue, Sep 30, 2008 at 12:28