10 Replies Latest reply on Jan 5, 2007 5:41 AM by h.cahyadi

    Seam Data Paging

    h.cahyadi

      Does anyone here have an example to perform data paging mechanism using seam? I have tried to use tomahawk <t:dataScroller> it works but, I think it not perform paging mechanism at all, because if I check the number of record stored in the conversation it displays the number of all data in my tables

      can anybody give me a sugestion or an example about seam data paging as an alternative to using tomahawk <t:dataScroller>

      thanks n regards,

      -haric-

        • 1. Re: Seam Data Paging
          thejavafreak

          You can use hibernate paging function

          • 2. Re: Seam Data Paging
            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

               

              "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

                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

                  "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

                    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

                      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

                        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

                          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

                            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-