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] > > > -- View this message in context: http://n2.nabble.com/-T5-How-to-make-indentical-validation-on-the-client-side.-tp730303p734046.html Sent from the Tapestry Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]