Hi Martijn, On Mon, Jan 21, 2013 at 8:14 AM, Martijn Dashorst <[email protected]> wrote: > We have a really nice type safe API but the thing that strikes me as > odd is that AFIAK we don't have converters from PageParameters to > objects and back. Now it probably is not easy to get it right, but > what would be not too crazy is to be able to register a > PersonPageParametersConverter such that a PersonPage taking a Person > as a constructor parameter would be considered bookmarkable. > > Perhaps this would be good to have as an annotation?
It's a nice idea. I recommend to take a look at how Spring MVC solved this problem in the @Controller layer as it's really nicely done and flexible. See especially the @PathVariable annotation and the ConversionService (and the converters). -- Guillaume
