File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wicket Filter form using Dataview/IDataProvider

 
Fernando Sproviero
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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

Thanks
 
Fernando Sproviero
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic