This is my dataTable and I need my bean property status is like this:
<span class="label label-warning">Warning</span> but it is printing the text, not compiling the html and dataTable or column doesn’t have the espace option. Is there a way to solve this?
<h:dataTable value="#{pedidoController.orderList}" var="order"
styleClass="table table-striped">
<h:column>
<f:facet name="header">#</f:facet>
#{order.orderNo}
</h:column>
<h:column>
<f:facet name="header">Cliente</f:facet>
#{order.client}
</h:column>
<h:column>
<f:facet name="header">Data</f:facet>
#{order.date}
</h:column>
<h:column>
<f:facet name="header">Status</f:facet>
#{order.status}
</h:column>
</h:dataTable>
Use h:outputText to display the data and not the implicit JSF output. Check this related question and see if it solves your problem.