This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Wicket Filter form using Dataview/IDataProvider Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "Wicket Filter form using Dataview/IDataProvider" Watch "Wicket Filter form using Dataview/IDataProvider" New topic
Author

Wicket Filter form using Dataview/IDataProvider

Fernando Sproviero
Greenhorn

Joined: Mar 10, 2011
Posts: 3
Hi,

I'm listing some objects in a page using Dataview, DataProvider and LoadableDetachableModel.
I'm planning to add a form filter with some input boxes and a Filter button.
I was thinking on modifying somehow the DataProvider, and also the dao.
However, I'm not sure what is the best approach to pass the parameters to the DataProvider. Should I use a model?
Please can you advice?

Thanks.
Pragya Rawal
Greenhorn

Joined: Jul 20, 2010
Posts: 2
Hi,

Could you find solution to this ? If yes, please share that.
I also have a similar requirement.

Thanks


Pragya Rawal
http://pragyarawal.tk/
http://pragyarawal.blogspot.com
Fernando Sproviero
Greenhorn

Joined: Mar 10, 2011
Posts: 3
Hi, I ended creating a class that implements IDataProvider.
Inside this class I have some properties:
-Service (could also be a DAO)
-filter properties.
-methods:



And GenericDetachableModel:




When the GenericDataProvider class is constructed, I pass the service (or dao) and the filter params.
Hope this helps.

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Wicket Filter form using Dataview/IDataProvider
 
Similar Threads
Difference between Array and ArrayCollection ?
Deployment of Liquid Data on WLS 8.1
Confused with MVC
* Welcome Martijn Dashorst & Eelco Hillenius
Call servlets in Flex