I am trying to implement a generic search form/panel in Wicket. The form should allow searches in several fields in an Entity (using the DAO pattern) in order to filter the output of a ListView or a DataView. What is the best way to do this? I’ve thought of doing this using an extended DataProvider but I haven’t really seen any real example.
Did anyone implemented such a thing? Some pointers would be nice.
edit
An aditional question that might help set the direction of the answers:
- Do Wicket Models combine well with DataProviders?
You can extend IDataProvider with search methods:
And implement this interface in your EntityManagers such as UserManager, ArticleManager or AccountManager.