Hi, thank you for the reply
Since I want to be able to use args in the message, I think that the replacement
should be done before the faces message is created. So, I don't get the custom renderer idea
For the moment, I've created my own EqualValidator with a message key and it is ok.
I don't like the solution but it was easy to implement
comment?
Andrew robinson <[EMAIL PROTECTED]> a écrit :
There are probably several ways to skin this cat. Here are a few:
-Andrew
- you could use f:attribute then create a custom renderer to replace the message
- use a properties file and override the default EqualValidator message (this would be for all instances).
- use a custom renderer, and replace the message based on properties of the component
On 10/10/05, rahmoune patrick <[EMAIL PROTECTED]> wrote:Hi,I would like to display a custom validation error messagewhen using the EqualValidator.The message could be different depending on the contextI think about creating my own that takes a messageKey as a tag attribute.Is this the way to go ?Patrick
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez le ici !

