All example of h:datatable on the internet contain simple text as part of table header
example
<h:column>
<f:facet name="header">
<h:outputText value="name"/>
</f:facet>
<h:outputText value="#{item.name}"></h:outputText>
</h:column>
But I want something like this –
<h:column>
<f:facet name="header">
<input type="text" id="column1">
</f:facet>
<h:outputText value="#{item.name}"></h:outputText>
</h:column>
It’s not rendering the column1 text-box as part of table header instead it’s making this text-box part of loop only.
Please suggest.
Like this way I haven’t got any problems. Try: