aspose file tools
The moose likes JSP and the fly likes JSF - How to filter data Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "JSF - How to filter data" Watch "JSF - How to filter data" New topic
Author

JSF - How to filter data

Gregg Wachter
Greenhorn

Joined: May 15, 2000
Posts: 13
Here's my JSF question.
I have a Model connected to my jsp via value="#{getAlerts} but also have buttons which allow the user to set the viewType to either "Watch List", "Raised" or "All". When, the viewType changes via a button push the displayed results don't change. Instead, it requires two button pushes to get the results I'm expecting. Note: the data filtering occurs inside the getAlerts() method as it checks for viewType and returns a filtered list.
Is this due to LifeCycle processing in JSF or is there a bug? Is the approach for filtering in the getXXX() correct or would it be better to set some indicator on the UIData rows and modify a renderer to skip rows with isFiltered() = true? Seems like messing with a renderer for such a simple task mught be overkill.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: JSF - How to filter data
 
Similar Threads
Having Problems with Data Table and Pager component in JSF
EL: Iterate over "sub" entities (Hibernate, Facelets)?
Swing Table Renderer add Button but no relation between them!
OK to make the value of action attribute of a form a variable ?
Different Attribute Value For IE And Firefox