You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Michael Kurz <mi...@gmx.at> on 2010/02/02 19:46:19 UTC

[MyFaces 2] Validator attributes

Hallo,

I have some troubles with the attribute validationGroups on 
f:validateBean (see MYFACES-2528 [1] for details). The problem is mainly 
caused by the fact, that its value is set on the validator in the tag 
handler. If the attribute is set to a value expressions this leads to 
unexpected behavior (at least not the way I would expect it ;-)).

So I wonder how this should be solved. What I (successfully) tried is to 
save the value expression directly in the validator with an additional 
tag handler to evaluate it not before the value is really needed. The 
same might also apply to other validator attributes. But how is this 
compliant with the spec? Or the other way round: why is it implemented 
the way it currently is?

reards
Michael

[1]: https://issues.apache.org/jira/browse/MYFACES-2528