You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Michael Heinen <mh...@recommind.com> on 2007/07/03 10:16:18 UTC

[Tomahawk sandbox] CompareToValidator

I have a few questions or comments regarding the sandbox
CompareToValidator.

 

1) why is the validation executed if the foreign value (or associated
for value)  is not valid ?

   e.g. I want to compare two dates and if the first date is not valid
then I don't want to validate the two dates (and can't obviously)

   Does it make sense to add a flag whether validation should be
executed  in this case ?

 

2) The converted values are used in the ValidatorException instead of
the entered or submitted values.

   If dates are validated then the method toString() is called on the
object which results in another format including timestamp.

   I think it would be better to present the submitted/entered values to
the user, or ?

   Or should this also be configurable ?

   

3) EL expressions in the message attribute are not evaluated.

    I can't reference the message bundle but I don't know the reason why
this is failing.

 

Michael