PDA

View Full Version : List of entities and searching/paging, what type of Controller to use?


Jack Hackwerk
Jun 7th, 2008, 03:18 PM
Hi,

I want to have a page that shows a form containing search criteria followed by a list of 'things' that match those criteria. On initial view, all 'things' need to be displayed. In the form, the user can set filters/enter search strings etc. to limit what 'things' get shown.

What is the recipe for this sort of thing? I can't seem to get this mapped onto the Spring MVC way of things.

I was thinking of using a SimpleFormController and a form containing the search criteria but it doesn't seem to make sense to put the list of 'things' that match the criteria in the form bean. Or does it?

I also considering putting in the list of 'things' that match in the model using referenceData but that doesn't seem to make sense either.

Can someone point me in the right direction on how to go about this fairly standard webapp problem? Somehow my previous web dev skills have an impedance mismatch with Spring MVC ;)

Thanks,

Jack.