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!
As inputHidden shows nothing in the browser there's no sense to allow it to have a class
- that's not right. The HTML class is just a semantic attribute, the fact that it's commonly used with CSS doesn't mean that it's dedicated to styling. – Laurenelaurens