This content has been marked as final.
Show 3 replies
-
1. Re: help with h:selectBooleanCheckbox and h:textArea validation
kragoth Dec 18, 2011 8:15 PM (in response to lw)Don't try to do this validation with a Validator.
Cross field validations can't really be done with Validators (not without JSF 2.0 or a lot of painful code. Search this forum for it)
Just write the validation as part of the application invoke stage in your save action or whatever button they push.
Alternatively, perform an ajax call with each check of the checkbox that toggles the required attribute of the textArea and rerenders it.
-
2. Re: help with h:selectBooleanCheckbox and h:textArea validation
lw Dec 19, 2011 2:41 AM (in response to lw)Thanks, yes, i figured it out that cant use standart validators...
But could you give me example of code? Tried few variants already, but get stucked, that checkbox value doesnt updates -
3. Re: help with h:selectBooleanCheckbox and h:textArea validation
kragoth Dec 19, 2011 5:13 PM (in response to lw)Rather than me doing the work for you, how bout you post what you've tried and then we can discuss why it doesn't work.