Hi.
I was wondering if i can access the properties of a regular html element from a
JSF bean. What i want is to change the value of a DIV's css class property from a managed bean.
ej:
<div id="thisDiv" class="normal">
<t:inputText id="user" binding="#{bean.user}" required="true" />
</div>
So, during submit, if the inputText reports an error, i want to change
the DIV's class to "error" (for example), so that it would but a border or
do something around the inputText.
I know I could put something like
<div id="thisDiv" class="<t: outputText value="#{bean.user.isValid ? 'normal': 'error'}" />">
but i want to do it dinamically
Thanks a lot
[ March 29, 2006: Message edited by: Patricio Hervas ]