myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From C├ędric Durmont <cdurm...@gmail.com>
Subject Re: Problem facing in Trinidad
Date Wed, 20 Oct 2010 13:51:20 GMT
Hi Meghna,

You can do the following to achieve this :

<tr:table rows="#{someBean.viewAll == true ? 0 : 8}" ....>
<f:facet name="actions">
  <tr:commandLink text="View all">
    <tr:setActionListener from="#{true}" to="#{someBean.viewAll}"/>
  </tr:commandLink>
</f:facet>
...
</tr:table>

viewAll is a boolean you declare in your bean of choice.

Regards,
Cedric

2010/10/20 Meghna Bharadwaj <meghna.j30@gmail.com>:
> Hi dev,
> I want the following functionality:
> I am using trinidad table where there is a list of values displayed, out of
> this i want to display only 8 rows rest of the rows should be hidden, and
> when i click on some link like 'Show All' it should display the remaining
> rows also. Please help me out in solving this.
>
> Thanks,
> Meghana

Mime
View raw message