If you’re referring to DWR thats hardly client side. It’s a matter of preference though, I think ‘Really easy field validation’ is too slick and easy to not be used.
I have 2 mothods caled edit() and create() I used annotation based validation
but tthing is i want to validate some of experssions in edit method and some of the in create() method
cant use @skipValidation in this
my problem is i can not difine this seperatly in my actiion class ..both methods get validate from all expressions? any 1 have a ida?
Can we use annotation to dependents fields? For example, if we have to validate fields: “password” and “repeat password”, this values must be the same. How we can do it?
Thanx!
by the way Struts 2 also supports some client-side validation. (set validate=”true” on the form tag)
If you’re referring to DWR thats hardly client side. It’s a matter of preference though, I think ‘Really easy field validation’ is too slick and easy to not be used.
The DWR isn’t, but the JavaScript validation is.
It can also be very convenient to annotate the Action with validations rather than the bean, because different Actions may expect different bean data.
I’ll vouch for dexagogo. Struts should think about bringing that little project in…
@SkipValidation annotation on the action method doesnt work for me .Validation occurs for all the actions mapped to the same action class. Why so ?
I have 2 mothods caled edit() and create() I used annotation based validation
but tthing is i want to validate some of experssions in edit method and some of the in create() method
cant use @skipValidation in this
my problem is i can not difine this seperatly in my actiion class ..both methods get validate from all expressions? any 1 have a ida?
Can we use annotation to dependents fields? For example, if we have to validate fields: “password” and “repeat password”, this values must be the same. How we can do it?
Thanx!
Is there a way for the validation messages to be added the actionErrors instead of the field?
Hildi:
@FieldExpressionValidator(expression = “(confirmPassword == password)”, fieldName = “confirmPassword”, message = “Passwords must match”)
password == passwordVerifier
Can a message be parameterized in the key attribute?
like:
@RequiredFieldValidator(message=”", key=”required.field”)
and the key with a param:
required.field = The field {0} is required.
how can I pass the param?
aSlsnV hi good site thx http://peace.com