-
1. Re: Followup: Richfaces Ajax Datascroller and Seam Example
www.supernovasoftware.com May 6, 2008 6:21 PM (in response to smartbinary)Let me see what I can do. I am slammed at the moment, but I need to work on it to upgrade to 3.2. At that time I can post more details.
What details are you missing from my previous post?
-
2. Re: Followup: Richfaces Ajax Datascroller and Seam Example
smartbinary May 6, 2008 6:30 PM (in response to smartbinary)Thanks, Jason.
I haven't tried to apply the snippets from your post ... was being really lazy looking for a complete example app.
I'll spend some time putting together a prototype using what you'd already provided and see if that gets me far enough along so our team can evaluate whether we want to migrate to the richfaces data scroller ... we already have a custom solution.
Regards,
Todd
-
3. Re: Followup: Richfaces Ajax Datascroller and Seam Example
smartbinary May 6, 2008 10:36 PM (in response to smartbinary)Hi Jason -
I'm running into the problem you are addressing with JIRA RF-2182.
Can you provide some details on how that BaseUIDatascroller component is used within the rest of the implementation?
Regards,
Todd
-
4. Re: Followup: Richfaces Ajax Datascroller and Seam Example
www.supernovasoftware.com May 7, 2008 12:50 AM (in response to smartbinary)I put BaseUIDatascroller in a jar under web-inf/lib because I cannot access it directly from classes in the ear.
I fire an event from my SFSB that resets the datascroller to the first page.
I think this has been expanded to allow you to set this to any page.
This will be useful to me so that users can be redirected by to the appropriate page when returning to the search page.
I bind it to the dataTable as follows.
<rich:datascroller id="pipeSearchDatascroller" binding="#{datascrollerUI.datascroller}" for="pipeSearchDataTable" reRender="pipeSearchDataTotals"/>
The only problem I have had other than my approach throwing an error when upgrading to RF 3.2 is that sometimes when the application loads from a full JBoss AS restart the class cannot be found.
Redeploy works though.
Does anyone have any ideas on how to fix this class loading issue?
Did that help you at all?
-
5. Re: Followup: Richfaces Ajax Datascroller and Seam Example
smartbinary May 7, 2008 6:48 PM (in response to smartbinary)Hi Jason -
I didn't end up needing that datascrollerUI component ... at least for now.
Otherwise, things are working great. Thanks so much for providing this sample code!
All others reading this: This work is based on lazy-loading pagination with the RichFaces ExtendedDataModel. There is a very good discussion of this class with sample code here.
Thanks again,
Todd
-
6. Re: Followup: Richfaces Ajax Datascroller and Seam Example
www.supernovasoftware.com May 7, 2008 6:58 PM (in response to smartbinary)What did you use for pagination?
-
7. Re: Followup: Richfaces Ajax Datascroller and Seam Example
smartbinary May 7, 2008 7:07 PM (in response to smartbinary)Ummm ... just the same code you'd provided in your sample.
There were some minor mods to integrate with our DAO layer, but nothing significant enough to add to your sample.
Regards,
Todd
-
8. Re: Followup: Richfaces Ajax Datascroller and Seam Example
www.supernovasoftware.com May 7, 2008 7:50 PM (in response to smartbinary)Oh. I thought you did not use the datascroller from richfaces.
Now I see you just did not use the component to set the first page.
The reason I added this was as follows:
User searched and then navigates to page 5.
User searches again by there is not enough results to get to page 5. This showed a blank result.