OpenFaces
OpenFaces copied to clipboard
DataTable will not obey to CSS visibility attribute
The following source shows that the dataTable is overriding the CSS visibility attribute to 'visible'.
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:o="http://openfaces.org/">
<head>
<STYLE type="text/css">
.table_test {
visibility: hidden;
}
</STYLE>
</head>
<o:dataTable
var="item2"
styleClass="table_test">
<o:column>
<f:facet
name="header">
<h:panelGroup>
<h:outputText
value="*** TEST: This should be hidden ***" />
</h:panelGroup>
</f:facet>
</o:column>
</o:dataTable>
</html>
For the OpenFaces users: I suggest use visibility: inherit !important;
as a workaround for while, so you can change visibility in the parent panel/component as needed.