This content has been marked as final.
Show 2 replies
-
1. Re: change style class of empty fields
nbelaevski Dec 4, 2008 7:20 PM (in response to dh2k7)Hi,
No way, that's how JSF UIInput class works:if (isValid() && !isEmpty(newValue)) { if (this.validators != null) { for (Validator validator : this.validators) { try { validator.validate(context, this, newValue); } catch (ValidatorException ve) { ...
Empty values are not validated using validators. -
2. Re: change style class of empty fields
dh2k7 Dec 5, 2008 4:01 PM (in response to dh2k7)Yes, I know.
But does anyone knows a good (and easy) way to change the style if an element if it is empty on form submit.