Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

datatable with empty cells  RSS feed

 
srinivas palukuri
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I need a datatable with empty cells(means cells has to be empty with out any data). i have to display the datatable cells with out any data in it. Is there any way to achieve it, if so can you please sent me reply asap.

my code is as follows

<f:view>
<center>

<t:dataTable first="0" id="dataTable" width="80%"
renderedIfEmpty="true" preserveDataModel="false"
value="#{managedBean.dataTableList}" var="rows" rows="10" border="2"
cellpadding="0" cellspacing="0">

<h:column>
<f:facet name="header">
<hutputText value="Reveleus" />
</f:facet>
<hutputText value="#{rows.header}" />
</h:column>

<h:column>
<f:facet name="header">
<hutputText value="Number" />
</f:facet>
<hutputText value="#{rows.empNo}" />
</h:column>

<h:column>
<f:facet name="header">
<hutputText value="Name" />
</f:facet>
<hutputText value="#{rows.empName}" />
</h:column>

<h:column >
<f:facet name="header">
<hutputText value="Sal" />
</f:facet>
<hutputText value="#{rows.sal}" />
</h:column>
</t:dataTable>
</center>
</f:view>


Here these columns are getting empty values from the backend bean.

Thanks & regards
srinivasa rao palukuri.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!