Hi all,

I'm working on implementing a remote validator for T 5.3.
The remote validator should perform an ajax call to the field's container 
component to check wether the value is valid, and have the same behavior as 
other client-side validations.
Here is what I did :
- extend AbstractValidator to create a RemoteValidator class
- extend JS Validators (providing a "remote" validator that performs the ajax 
call and throw the appropriate message if invalid)
- contribute ValidatorSource to add my validator

The overall design seems allright but I have a problem accessing the field's 
container component inside the validator. 
The render method of the Validator only provides access to the Field and 
FormSupport interfaces. None on them gives me a handle to the 
ComponentResources. Hence, I cannot create the link to the component event 
handler method that should be called via ajax.

Is there any way to access a field container component or ComponentResources 
from inside a validator class?

Best regards

Guillaume


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to