myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <mkien...@gmail.com>
Subject Re: Suppressing Previous & Next Images for DataScroller?
Date Thu, 29 Dec 2005 16:18:17 GMT
Tom, what version of myfaces are you using?
I was under the impression that this had be implemented awhile back.

If it hasn't been fixed, I'd recommend submitting a patch that adds
this behavior (it should be pretty trivial to do so).

On 12/27/05, Tom Butler <tom.butler@adelphia.net> wrote:
>
>
>
> Can anyone help explain how to suppress the previous and next image (or
> text) scroller controls when there is not a sufficient amount of data rows
> to require a previous or next scroller controller?   For example, if
> t:dataTable is set to display 10 rows per page, but only 5 rows are
> returned, the previous and next images should not be displayed (but with the
> code below, the previous and next datascroller controls are displayed but do
> nothing because there is only one page of data to display.)
>
>
>
> <t:dataTable id="data" rows="10" …>
>
>
>
>
>
> <h:panelGrid columns="1" styleClass="scrollerTable2"
> columnClasses="standardTable_ColumnCentered" >
>
>
>
> <t:dataScroller
>
>    for="data"
>
>    fastStep="10"
>
>    paginatorMaxPages="9"
>
>    paginator="true"
>
>    paginatorActiveColumnStyle="font-weight:bold;">
>
>
>
>  <f:facet name="previous">
>
>     <t:graphicImage url="images/arrow-previous.gif" border="1" />
>
>   </f:facet>
>
>   <f:facet name="next">
>
>     <t:graphicImage url="images/arrow-next.gif" border="1" />
>
>   </f:facet>
>
> </t:dataScroller>
>
>
>
> </h:panelGrid>
>
>
>
> Thanks
>
> Tom
Mime
View raw message