What would be awesome is if you could just specify a validation method name,
and the client side validation would execute that method via ajax on the
server side (with form data submitted as well).  The method would return a
specific json response and the client would be updated with a failure
message.  Of course the method is still there from the server side as well. 
Similar to an eventlink.  Don't know if thats currently available but it
would be nice.

Zack


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

-- 
View this message in context: 
http://n2.nabble.com/-T5-How-to-make-indentical-validation-on-the-client-side.-tp730303p734457.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]

Reply via email to