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

--
>From Down & Around, Inc.
Innovative IT solutions
Software Architecture * Design * Development
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
web:    www.fdar.com 
email:  [EMAIL PROTECTED] 
phone:  617.821.5430
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to