-
1. Re: Seam Data Paging
thejavafreak Jan 4, 2007 6:46 AM (in response to h.cahyadi)You can use hibernate paging function
-
2. Re: Seam Data Paging
h.cahyadi Jan 4, 2007 7:34 AM (in response to h.cahyadi)is there any example about hibernate data paging? I think tomahawk data scroller is cool and easy to use, but I don't know why, if I test only with 400.00 data it is very slow, because it actualy load all the data to the memory, not load data on demand
-
3. Re: Seam Data Paging
sherkan777 Jan 4, 2007 9:07 AM (in response to h.cahyadi)"h.cahyadi" wrote:
is there any example about hibernate data paging? I think tomahawk data scroller is cool and easy to use, but I don't know why, if I test only with 400.00 data it is very slow, because it actualy load all the data to the memory, not load data on demand
I'had same problem....If i have 1milion data records I don't want to load all milion but only x-element that i see on page, also tryed some time to use tomahawk but i fall. This stuff has much bugs and changed then instead of IceFaces, here is better dataPAginator nad full ajax force! -
4. Re: Seam Data Paging
norman.richards Jan 4, 2007 9:43 AM (in response to h.cahyadi)Several of the seam examples (hotel booking, dvdstore, etc...) use it, as does any application created by seam-gen.
-
5. Re: Seam Data Paging
h.cahyadi Jan 4, 2007 8:44 PM (in response to h.cahyadi)"Norman" wrote
Several of the seam examples (hotel booking, dvdstore, etc...) use it, as does any application created by seam-gen.
Norman, I have seen the example, but in that example there is no jum to n page like we use tomahawk, maybe I can do it programmaticaly, but I am searching if there is a beter and simple approach, with less code :)
Best Regards,
-haric- -
6. Re: Seam Data Paging
h.cahyadi Jan 4, 2007 8:53 PM (in response to h.cahyadi)sherkan777 wrote :
This stuff has much bugs and changed then instead of IceFaces, here is better dataPAginator nad full ajax force!
sherkan do you work with portlet also? I have tried Icefaces also, but found so many errors, so I fallback to tomahawk, can you give me your sample code of using IceFaces dataPaging?
thanks before :)
Best Regards,
-haric- -
7. Re: Seam Data Paging
norman.richards Jan 4, 2007 11:34 PM (in response to h.cahyadi)Sure - on EntityQuerym, use the firstResult attribute. To go to page N, set firstResult to N*maxResults+1. You set it with f:param on the link. seam-gen apps use this for first/last/next/prev pages, but there is no reason you can't render "page 1", "page 2", etc... We don't have built in components to display it, so you do have to do a little work. But it's not like you are writing any actual code.
-
8. Re: Seam Data Paging
h.cahyadi Jan 5, 2007 4:08 AM (in response to h.cahyadi)OK norman, thanx for your answer, I will try it.... may be for the next release of seam, you can include more comple sample about paging, and don't forget to make beter integration between seam and portal, where is gavin I am not saw his post, for this last few days :)
Best Regards,
-haric- -
9. Re: Seam Data Paging
sherkan777 Jan 5, 2007 5:12 AM (in response to h.cahyadi)I sent U zip file with IceFaces code...of my light paginator.
sherkan do you work with portlet also?
No i'm not. -
10. Re: Seam Data Paging
h.cahyadi Jan 5, 2007 5:41 AM (in response to h.cahyadi)Thanx a lot sherkan, but maybe it will be complex for using icefaces with portlet, coz now I am using portlet for my application.
I will check your code, thanx for your help sherkan :)
Best Regards,
-haric-