Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.0
-
None
-
None
Description
Ian sent this:
I have just started to use the validation framework, and am coming up with some issues. Not sure if I am not doing things correctly, or whether this is a bug.
I am creating a simple registration class - which uses a User object with setters and getter for username and password, as well as a confirmPassword field in the RegisterUserAction.
So:
User has
getPassword()
setPassword()
RegisterUserAction has:
getUser()
setUser()
getConfirmPassword()
setConfirmPassword()
In the register.jsp I have the fields as:
<ww:password label="prompt.password" name="user.password" />
The RegisterUserAction-validation.xml entry as:
<field name="user.password">
<field-validator type="required">
<message>error.value.required</message>
</field-validator>
</field>
The JSP is correctly obtaining and displaying the i18n'd messages for the field name as well as the validation message, but when I enter a value for the password - the validation is not occurring and when I have typed data into the textfield the validation message remains (I can see the data I entered as well as the validation message).
Hope there is some help out there
/Ian