Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #11039
| From | Hollow Quincy <hollow.quincy@gmail.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: rich:dataTable - rich:dataScroller |
| Date | 2011-12-31 02:16 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <7e5a0caa-ef7e-4040-a669-d97b6f473eab@32g2000yqp.googlegroups.com> (permalink) |
| References | <afb5787c-0499-48e9-befe-0258dc215732@t8g2000yqg.googlegroups.com> <rKtLq.41995$mJ.33742@newsfe10.iad> |
On 31 Gru, 02:40, Arved Sandstrom <asandstrom3min...@eastlink.ca>
wrote:
[...]
>
> 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.
[...]
I was looking for documentation and I've found only this:
http://docs.jboss.org/richfaces/latest_4_X/vdldoc/rich/dataScroller.html
I can not find any property that would specify numbers of all page or
number of all records.
When I am using it like this:
<rich:dataScroller page="#{tableBean.pageNumber}" maxPages="5" />
in my bean I have my current "pageNumber" and scroller show five
buttons.
In table I have code:
<rich:dataTable value="#{tableBean.users}" var="user" rows="10" >
getUsers() method return only 10 users (because I can read from
database specified "page" of users, I don't read all table at once).
When I give 10 users to dataTable, scrollers buttons are not active.
I do not want to read all table from database. I want to read per 10
users only for every page click.
Thanks for help
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