You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Harish Krishnaswamy <wh...@yahoo.com> on 2003/05/29 05:57:00 UTC

Context sensitive validator error message

Hi,

Can anyone tell me how to specify a context sensitive error message for a validation? I have a
situation where I have more than one component using the same custom validator and I want to
specify an error message depending on the component that failed.

TIA
-Harish


__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com

RE: Context sensitive validator error message

Posted by "Howard M. Lewis Ship" <hl...@attbi.com>.
Option #1: Have two different instances of the validator class, and customize the error message
used.

Option #2: Use a custom validaiton delegate to "intercept" the ValidatorException, and supply an
alternate error message under certain circumstances.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry



> -----Original Message-----
> From: Harish Krishnaswamy [mailto:whonts@yahoo.com] 
> Sent: Wednesday, May 28, 2003 11:57 PM
> To: tapestry-user@jakarta.apache.org
> Subject: Context sensitive validator error message
> 
> 
> Hi,
> 
> Can anyone tell me how to specify a context sensitive error 
> message for a validation? I have a situation where I have 
> more than one component using the same custom validator and I 
> want to specify an error message depending on the component 
> that failed.
> 
> TIA
> -Harish
> 
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>