Looking further into this, it doesn't even seem to be possible...

Not as far as I can tell, anyhow. But then it's late here.

Anyone else?

-Filip

On 2008-08-19 04:36, luna_guo wrote:


Filip S. Adamsen-2 wrote:
Hi,

This should get you started:
http://wiki.apache.org/tapestry/Tapestry5HowToAddValidators

-Filip

I want make a validator named confirm,just used to confirm the retype
password.
Using like this:
<t:type="passwordfield" t:id="retypePasword" validate="confirm=idOfPassword"
……/>
Now i have a problem:
public void validate(Field field, String constraintValue,
                    MessageFormatter formatter, String value) throws
ValidationException {
                       //do what here?
            }
    }
the constraintValue is just the id of the password field,how can i get the
password field's real value in a validator?

/luna

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to