The facets are available by UIComponent#getFacets()
.
Do note that you need to obtain the particular one in your code snippet from <h:column>
(HtmlColumn
; UIColumn
), not from <h:dataTable>
(HtmlDataTable
; UIData
).
UIData table = getItSomehow();
for (UIComponent child : table.getChildren()) { // child == UIColumn.
Map<String, UIComponent> facets = child.getFacets();
UIComponent headerFacet = facets.get("header");
// ...
}
By the way, looking in source code is funny, but looking in javadoc is the easiest first step. It also lists the methods inherited from superclasses which are otherwise not directly visible in the class' source. You'd immediately have noticed the self-explaining "getFacets()" method when searching for the word "facets" in the javadoc.