In my jsf pages i have table with column as such where i am checking if value is empty than put a space in cell.
<h:column >
<f:facet name="header">
<h:outputText
value="File" style="color:red;"/>
</f:facet>
<h:outputText value="#{logs.FILE == null ? ' ' : logs.FILE}"/>
</h:column>
Html displayed
<td class="sc5"> </td>
In Firefox as wel开发者_运维技巧l as IE, when a cell in table is empty, no cell borders are drawn. but chrome does draw border. So how can i make firefox and IE to draw borders for empty cells.
Try outputting a non-breaking space
instead of a ' '
in a blank cell.
<h:outputText value="#{logs.FILE == null ? ' ' : logs.FILE}" escape="false" />
精彩评论