Setstyleclass Method Is Overriding The Already Defined Styleclass
I have a jsf code like this: I am adding the style emailAddress to use it in jquery for rest
Solution 1:
You can try another approach :
first create method in bean which returns boolean value for text-field validation.
use that method in styleClass attribute to add class "error" when it returns false.
styleClass="emailAddress #{beanName.isvalidate eq true ? 'no-error' : 'error'}"
on submit button don't forget to update h:inputText [ use update="emailText" for submit button ]
Post a Comment for "Setstyleclass Method Is Overriding The Already Defined Styleclass"