Well, he could. But then he wouldn't get all the advantages of using the proper validation system.

-Filip

On 2008-08-19 22:19, zack.manning wrote:
Maybe I'm missing something but why cant you just create a mixin with this
functionality instead of using a validator?

Zack


Filip S. Adamsen wrote:
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]





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

Reply via email to