But a h:panelGrid around the datascroller and use something like that:
<h:panelGrid columns="1"
styleClass="scrollerTable2"
columnClasses="standardTable_ColumnCentered"> -->THIS
IS IMPORTANT!!!!
<t:dataScroller id="scroll_1" for="resulttable"
fastStep="5"
pageCountVar="pageCount"
pageIndexVar="pageIndex"
styleClass="scroller" paginator="true"
paginatorMaxPages="9"
paginatorTableClass="paginator"
paginatorActiveColumnStyle="font-weight:bold;"
immediate="false">
......
</t:dataScroller>
</h:panelGrid>
The standardTable_ColumnCentered should be defined in your CSS like that:
.standardTable_ColumnCentered {
text-align: center
}
This should work!
Regards,
Andy
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 3. November 2005 17:13
An: Users MyFaces
Betreff: MyFaces 1.1.1 - how to center the dataScroller component?
Hi all!
Does anybody know how I can configure the dataScroller, so that it's
centered in the page?
I've tried to use text-align:center on many different available CSS
attributes of the dataScroller tag,
the contained elements or the surrounding panelGrid tag, but the
dataScroller elements just stays on the left side.
Centering the dataScroller component should be possible, as you can see on
the following website:
http://www.irian.at/myfaces/dataScroller.jsf
Regards,
Matthias
______________________________________________________________________
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.
This footnote also confirms that this email message has been swept
for the presence of computer viruses.
______________________________________________________________________