-
1. RichFaces 4 final - rich:graphValidator - disable some validators
boy18nj Apr 2, 2011 9:58 AM (in response to yirco)yes, this is intended behaviour. Use immediate attribute with true value or why cannot you comment out the annotations in your validation bean.
-
2. RichFaces 4 final - rich:graphValidator - disable some validators
ilya_shaikovsky Apr 4, 2011 11:07 AM (in response to yirco)maybe could look into validation groups in order to resolve that.. need to check.
-
3. RichFaces 4 final - rich:graphValidator - disable some validators
yirco Apr 5, 2011 2:37 PM (in response to yirco)OK, thanks for info. I think this is a general situation. There is a bean with validation constraints. On some xhtml pages it is necessary to validate the properties - typically during creation. On other pages it is not necessary to validate some of the properties - typically during update when the data is fetched from the database and it is not necessary to fill in e.g. a new password. Of course a solution could be to bind the input to a different bean without validation annotation.
-
4. RichFaces 4 final - rich:graphValidator - disable some validators
ilya_shaikovsky Apr 6, 2011 5:00 AM (in response to yirco)yup.. groups should actually works for that case.
-
5. Re: RichFaces 4 final - rich:graphValidator - disable some validators
lfryc Apr 6, 2011 7:13 AM (in response to yirco)yirco, try to use Validating Groups [1] together with rich:graphValidator @groups attribute.
-
6. Re: RichFaces 4 final - rich:graphValidator - disable some validators
yirco Apr 6, 2011 2:11 PM (in response to yirco)Thanks for tip Lukas.
-
7. Re: RichFaces 4 final - rich:graphValidator - disable some validators
bengao Sep 23, 2015 12:24 PM (in response to yirco)The validator should only work for editable fields. Using @groups is just ad hoc work around.