MyFaces datatable

Hi,

I am using the tomahawk datatable component. I am able to display all the records properly, but when the there is no data i need to display a record saying "no records found". Does datatable have any inbuilt feature for this?

Any help appreciated.

Regards,

Kiran C Sagi.

[305 byte] By [KiranSagia] at [2007-11-26 16:26:31]
# 1
no as far as i know there is no such default settings for this..u ll have to do it programatically by setting a string in a backing bean..
thepepsicolaa at 2007-7-8 22:50:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Basic example:

<h:dataTable value="#{myBean.dataList}" var="item" rendered="#{!empty myBean.dataList}">

...

</h:dataTable>

<h:outputText value="no records found" rendered="#{empty myBean.dataList}" />

BalusCa at 2007-7-8 22:50:40 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...