Here is a small correction of my file tml : <label for="login">Login : </label> <t:textfield t:id="login" t:value="user.login" /> <label for="login">Login : </label> <t:textfield t:id="login2" t:value="user2.login" />
In my custom validator, i use "String controlName = field.getControlName();" but here, i get "login" or "login2". I need this variable for validate my form with an Entity Bean, but "login2" don't exist in my Entity. That is why i need value of "t:value" parameter. Ulrich Stärk wrote: > > You've got the value parameter which gets populated with the user's input, > what's wrong with that? > > Uli > > Am Do, 7.08.2008, 11:51, schrieb aicfr: >> >> In my custom validator : >> >> public void validate(Field field, String constraintValue, >> MessageFormatter >> formatter, >> String value) throws ValidationException { >> String controlName = field.getControlName(); >> } >> >> But, it's not possible to get the bind of field ? >> >> I'd like to do that : >> field.getbound() >> >> Thanks ! >> >> >> aicfr wrote: >>> >>> Hi ! >>> >>> Here is my problem : i have a little form >>> >>> <label for="login">Login : </label> <t:textfield t:id="login" >>> t:value="user.login" /> >>> <label for="login">Login : </label> <t:textfield t:id="login2" >>> t:value="user.login" /> >>> >>> <label for="password">Password : </label> <t:passwordfield id="password" >>> t:id="password" t:value="password" /> >>> >>> and i'd like to know if it's possible to get the value of t:value >>> parameter in a custom validator. Here, i'd like to get user.login. >>> >>> Thanks ! >>> >> >> -- >> View this message in context: >> http://n2.nabble.com/T5%3A-get-value-of-textfield-tp678312p678318.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] >> >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://n2.nabble.com/T5%3A-get-value-of-textfield-tp678312p678457.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]