This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF v1.2: Pass total figure into bean for generation of pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF v1.2: Pass total figure into bean for generation of pages" Watch "JSF v1.2: Pass total figure into bean for generation of pages" New topic
Author

JSF v1.2: Pass total figure into bean for generation of pages

Michael Tran
Greenhorn

Joined: Nov 27, 2009
Posts: 7
I have this bean:

And I have a separate class called DAOData which has a getCount() method that returns an integer value of the total number of pages calculated based on selected options on a form. I don't know how to pass the total pages from getCount() into PageBean's getSelectPages() method above. Can someone help? I'm planning to use PageBean as a common bean for three of my forms so I'm trying to keep it generic as much as possible.

Also, if I navigate from page A to B and back, can I use the same method to regenerate the page counter for page A. Been stuck on this problem for nearly a week now.
Michael Tran
Greenhorn

Joined: Nov 27, 2009
Posts: 7
Solve it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF v1.2: Pass total figure into bean for generation of pages
 
Similar Threads
JSF 1.2 - ValueChangeEvent not picking up new selected value after submit
af:selectOneChoice - setting default selected value other than the first in line
Preselection on Pick List?
f:selectItems can't set value
Strange behavior: action method not called when button submitted