Hello there,

Thanks for your reply - I have added in the panelgroup/grid (trying both
together and alone), and although the datascroller is rendered (as before),
the page numbers do not appear still until I click one of the facets-- again
if the scroller is below the page numbers do appear. Most strange!

Any further ideas please?

Thanks, Carl


Jeff Bischoff wrote:
> 
> Hi Carl,
> 
>  > I want to place my datascroller above my datatable - is this possible?
>  >
> 
> Absolutely! :)
> 
> Here's my table with datascroller both above and below. Enjoy!
> 
> ------------------------
> 
> <h:panelGrid columns="1" align="center">
> <h:panelGroup> <%-- Using this panelGroup forces it to "render its 
> children", allowing scroller to come before table! --%>
>       
>       <%-- First scroller --%>
>       <h:panelGrid columns="1" styleClass="scrollerTable" 
> columnClasses="standardTable_ColumnCentered" >
>              <t:dataScroller id="scroll_1"
>                      for="TheInvoiceReportDataTable"
>                      ...
>                      >
>                  <f:facet name="first" >
>                      <t:graphicImage url="arrow-first.jpg" border="0" />
>                  </f:facet>
>                  ...
>              </t:dataScroller>
>       </h:panelGrid>
> 
>       <%-- The DataTable --%>
>       <t:dataTable id="TheInvoiceReportDataTable"
>                  ...
>       >
>               <jsp:include page="InvoiceReportTableColumns.jsp" />
>       </t:dataTable>
> 
>       <%-- Second scroller --%>
>       <h:panelGrid columns="1" styleClass="scrollerTable" 
> columnClasses="standardTable_ColumnCentered" >
>              <t:dataScroller id="scroll_2"
>                      for="TheInvoiceReportDataTable"
>                      ...
>                      >
>                  <f:facet name="first" >
>                      <t:graphicImage url="arrow-first.jpg" border="0" />
>                  </f:facet>
>                  ...
>              </t:dataScroller>
>       </h:panelGrid>
> </h:panelGroup>
> </h:panelGrid>
> 
> ------------------------
> 
> Regards,
> 
> Jeff Bischoff
> Kenneth L Kurz & Associates, Inc.
> 
> CarlHowarth wrote:
>> Hello there,
>> 
>> I want to place my datascroller above my datatable - is this possible?
>> 
>> I have added a condition to the scroller that makes sure it only gets
>> rendered when there are enough rows:
>> 
>> rendered="#{BackingBean.recordCount} > 20}"
>> 
>> When the count does exceed 20 I get the facets appearing but not the page
>> numbers - if I select one of the facets the numbers appear. If I remove
>> the
>> rendered property I am immediately presented with an error (could not
>> find
>> UIData referenced by attribute [EMAIL PROTECTED] = 'dataTableID').
>> 
>> If I place this under my datatable it works fine - is there some way of
>> getting around this at all please?
>> 
>> Many thanks, Carl
>> 
>> 
>> 
>> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/DataScroller-DataTable-positioning-tf2553884.html#a7117499
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to