In a dataTable a column contains lots of images which are conditionally rendered one at a time. That content was common with other dataTables so I decided to move it in a separate file and now I have something like this:
<h:column><ui:include src="myFile,xhtml" /></h:column>
Inside the h:column tag there was also the following f:facet tag, which was moved with the rest of the code
<f:facet name="header">Status</f:facet>
Now the column content is correctly displayed but the header is empty. Why ? Maybe the ui:include is evaluated after the column headers are created...in that case I would need to be pointed to a good documentation for gaining a better insight on how JSF builds and renders a dataTable.
I forgot to mention I'm using Mojarra 2.0/2.1.
Thanks Filippo