Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11038
| From | Arved Sandstrom <asandstrom3minus1@eastlink.ca> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: rich:dataTable - rich:dataScroller |
| References | <afb5787c-0499-48e9-befe-0258dc215732@t8g2000yqg.googlegroups.com> |
| Message-ID | <rKtLq.41995$mJ.33742@newsfe10.iad> (permalink) |
| Organization | Public Usenet Newsgroup Access |
| Date | 2011-12-30 21:40 -0400 |
On 11-12-30 07:10 PM, Hollow Quincy wrote:
> Hi,
>
> I am trying to use RichFace 4.1 rich:dataTable with rich:dataScroller.
> I am trying to use scroller like that:
>
> <rich:dataTable value="#{tableBean.users}" var="user" rows="10" >
> <f:facet name="footer">
> <rich:dataScroller page="#{tableBean.pageNumber}" maxPages="5"></
> rich:dataScroller>
> </f:facet>
> </rich:dataTable>
>
> I cannot find properties of the scroller that would refer to my bean
> and I would be able to tell scroller that he can display "next" /
> "last" buttons.
>
> Is it better to write my own scroller ?
>
> Thanks for help
I haven't used RichFaces but simply looking at the 4.1 component docs
tells me that there are dataScroller facets for specifying first, last,
next, previous. The wording implies that they are for customization: are
you saying that if you don't specify them then you don't even see them?
I'll assume when you're testing that other things are OK, like the users
table having a bunch of data.
I may give RichFaces a whirl, this has me curious.
No, you don't particularly want to write your own scroller. :-) I've
worked with the source for one paginating JSF table (with true
pagination) that has this "dataScroller" functionality, and while it's
not the most difficult task in the world there is a fair amount of Java
and Javascript to get right. The only reason I used this custom code is
because it was written quite a few years ago for JSF 1.1, when nobody
else had anything yet.
AHS
--
...wherever the people are well informed they can be trusted with their
own government...
-- Thomas Jefferson, 1789
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
rich:dataTable - rich:dataScroller Hollow Quincy <hollow.quincy@gmail.com> - 2011-12-30 15:10 -0800
Re: rich:dataTable - rich:dataScroller Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-12-30 21:40 -0400
Re: rich:dataTable - rich:dataScroller Hollow Quincy <hollow.quincy@gmail.com> - 2011-12-31 02:16 -0800
Re: rich:dataTable - rich:dataScroller Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-12-31 12:46 -0400
Re: rich:dataTable - rich:dataScroller Hollow Quincy <hollow.quincy@gmail.com> - 2012-01-02 01:33 -0800
Re: rich:dataTable - rich:dataScroller Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2012-01-02 16:59 -0400
csiph-web