You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mike Kienenberger <mk...@gmail.com> on 2006/09/20 02:37:39 UTC

Re: Datascroller layout

If you dump the facets, and design the layout by hand, it should work.

I know that one thing you cannot do is simply stick the output into
the <f:facet name="first"> as it only accepts graphicImage as a child.

On 8/28/06, Enrico Nicola Mirco <at...@gmail.com> wrote:
> Hi all,
> Anyone know how I can render the page index and the navigation bar
> (f:facet first, next, prev, ecc.) in the same row?
>
> My jsp code is:
>
> <x:dataScroller for="datatable" pageCountVar="pageCount"
> pageIndexVar="pageIndex">
>
>         <x:outputText value="Page #{pageIndex} of #{pageCount}"/>
>
>         <f:facet name="first">
>                 <x:graphicImage url="first.gif" title="First page"/>
>         </f:facet>
>
>         <f:facet name="last">
>                 <x:graphicImage url="last.gif" title="Last page"/>
>         </f:facet>
>
>         <f:facet name="previous">
>                 <x:graphicImage url="previous.gif" title="Previous page"/>
>         </f:facet>
>
>         <f:facet name="next">
>                 <x:graphicImage url="next.gif" title="Next page"/>
>         </f:facet>
>
> </x:dataScroller>
>
> The component renders the page index and the facets in two different rows.
>
> Regard
> Nicola
>