I've been working with a simple Java EE project using JSF.
<h:form id="phoneForm">
<h:dataTable id="phoneTable">
</h:dataTable>
</h:form>
I tried to set CSS via #phoneTable { ... }
, however it doesn't work. Upon inspection of the HTML source in client side, it appears that
the JSF-generated HTML table gets a client ID in form of id="phoneForm:phoneTable"
. I can't apply CSS via #phoneForm:phoneTable { ... }
, because the colon indicates the start of a pseudoselector and causes an error.
How can I use it anyway in CSS selectors?