You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Plant More Tree <ma...@gmail.com> on 2008/07/06 12:21:23 UTC
how to display 'not found' message when no data found t:dataTable
Hi guys,
I need to display message like 'no data found' when there is no data
found when using t:dataTable.
<t:dataTable id="suls" var="sul" style="margin-top: 10px"
value="#{home.sharedUrlList}" rows="#{appConfig['maxRow']}">
which attribute to set ? or is there such attribute to set ?
appreciate any help. Thanks !
Mark
--
View this message in context: http://www.nabble.com/how-to-display-%27not-found%27-message-when-no-data-found-t%3AdataTable-tp18300680p18300680.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: how to display 'not found' message when no data found
t:dataTable
Posted by Plant More Tree <ma...@gmail.com>.
Brilliant ! thanks dude !
<ui:fragment rendered="#{empty home.sharedUrlList}">
<div style="margin:5px 0 5px 0;padding:10px;border:1px solid
#ff3366;background-color:#ffcccc">
<div>
Sorry no data found !
</div>
</div>
</ui:fragment>
bashan wrote:
>
> Hi,
>
> For the table:
> You can use <t:dataTable> property: renderedIfEmpty="false".
>
> For showing "no data found" you can simply put above or below the table:
> <h:outputText value="no data found" rendered="#{empty home.sharedUrlList}"
> />
>
> Guy.
>
> -----Original Message-----
> From: Plant More Tree [mailto:markthien@gmail.com]
> Sent: Sunday, July 06, 2008 1:21 PM
> To: users@myfaces.apache.org
> Subject: how to display 'not found' message when no data found t:dataTable
>
>
> Hi guys,
>
> I need to display message like 'no data found' when there is no data
> found when using t:dataTable.
>
> <t:dataTable id="suls" var="sul" style="margin-top: 10px"
> value="#{home.sharedUrlList}" rows="#{appConfig['maxRow']}">
>
> which attribute to set ? or is there such attribute to set ?
>
> appreciate any help. Thanks !
>
> Mark
> --
> View this message in context:
> http://www.nabble.com/how-to-display-%27not-found%27-message-when-no-data-fo
> und-t%3AdataTable-tp18300680p18300680.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>
>
--
View this message in context: http://www.nabble.com/how-to-display-%27not-found%27-message-when-no-data-found-t%3AdataTable-tp18300680p18302181.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.
RE: how to display 'not found' message when no data found t:dataTable
Posted by Guy Bashan <gu...@gmail.com>.
Hi,
For the table:
You can use <t:dataTable> property: renderedIfEmpty="false".
For showing "no data found" you can simply put above or below the table:
<h:outputText value="no data found" rendered="#{empty home.sharedUrlList}"
/>
Guy.
-----Original Message-----
From: Plant More Tree [mailto:markthien@gmail.com]
Sent: Sunday, July 06, 2008 1:21 PM
To: users@myfaces.apache.org
Subject: how to display 'not found' message when no data found t:dataTable
Hi guys,
I need to display message like 'no data found' when there is no data
found when using t:dataTable.
<t:dataTable id="suls" var="sul" style="margin-top: 10px"
value="#{home.sharedUrlList}" rows="#{appConfig['maxRow']}">
which attribute to set ? or is there such attribute to set ?
appreciate any help. Thanks !
Mark
--
View this message in context:
http://www.nabble.com/how-to-display-%27not-found%27-message-when-no-data-fo
und-t%3AdataTable-tp18300680p18300680.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.