I'm trying to set a class or id parameter on a <h:inputHidden>
in JSF. The code looks like this:
<h:inputHidden value="#{getData.name}" class="targ" />
But in the browser, the class isn't set:
<input type="hidden" name="j_idt6" value="j_idt6">
I need to set a class to this parameter, because I have a JavaScript autocomplete function for a <h:inputText>
that sets a value in the hidden input, which needs to be passed in the next page.
Any ideas? Thanks!