You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by ba...@wipro.com on 2006/10/16 10:57:40 UTC

Context Sensitivity on DataScroller

Hi,

I use the t:dataScroller component to get the First | Previous | Next |
Last.
However, I would like to have the context sensitivity to enable and
disable these links based on the row Count of the table. Is this a
configuration parameter in dataScroller or should I implement it myself?

My code looks like below so far.
<t:dataScroller id="Scroller"

for="Table"

fastStep="#{TranslatorEventHandler.rowCount}"

styleClass="scroller">

<f:facet name="first">

<h:outputText value="#{genericBundle.first}"  />

</f:facet>

<f:facet name="previous">

<h:outputText value="#{genericBundle.previous}"  />

</f:facet>

<f:facet name="next">

<h:outputText value="#{genericBundle.next}" />

</f:facet>

<f:facet name="last">

<h:outputText value="#{genericBundle.last}"  />

</f:facet>

</t:dataScroller>


Thanks
Balaji



The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Re: Context Sensitivity on DataScroller

Posted by Aneesha Govil <po...@gmail.com>.
Hi,

Please tell me if you find a solution to this. I need to do something
similar.

Thanks,
Aneesha

On 10/16/06, balaji.saranathan@wipro.com <ba...@wipro.com>
wrote:
>
>  Hi,
>
> I use the t:dataScroller component to get the First | Previous | Next |
> Last.
> However, I would like to have the context sensitivity to enable and
> disable these links based on the row Count of the table. Is this a
> configuration parameter in dataScroller or should I implement it myself?
>
> My code looks like below so far.
>
> <t:dataScroller id="Scroller"
>
> for="Table"
>
> fastStep="#{TranslatorEventHandler.rowCount}"
>
> styleClass="scroller">
>
> <f:facet name="first">
>
> <h:outputText value="#{genericBundle.first}"  />
>
> </f:facet>
>
> <f:facet name="previous">
>
> <h:outputText value="#{genericBundle.previous}"  />
>
> </f:facet>
>
> <f:facet name="next">
>
> <h:outputText value="#{genericBundle.next}" />
>
> </f:facet>
>
> <f:facet name="last">
>
> <h:outputText value="#{genericBundle.last}"  />
>
> </f:facet>
>
> </t:dataScroller>
>
> Thanks
> Balaji
>
> The information contained in this electronic message and any attachments
> to this message are intended for the exclusive use of the addressee(s) and
> may contain proprietary, confidential or privileged information. If you are
> not the intended recipient, you should not disseminate, distribute or copy
> this e-mail. Please notify the sender immediately and destroy all copies of
> this message and any attachments.
>
> WARNING: Computer viruses can be transmitted via email. The recipient
> should check this email and any attachments for the presence of viruses. The
> company accepts no liability for any damage caused by any virus transmitted
> by this email.
>
> www.wipro.com
>