Hi Martijn,
On Mon, Jan 21, 2013 at 8:14 AM, Martijn Dashorst
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
Hi,
On Mon, Jan 21, 2013 at 9:55 AM, Martin Grigorov wrote:
> This is not available out of the box but it is possible to do it without
> any changes in wicket-core.
> Just provide your own impl of IPageFactory interface. Use
> DefaultPageFactory as inspiration.
>
> Here are the problems that I se
Am 21.01.2013 09:55, schrieb Martin Grigorov:
What would such converter actually do? I guess the encoder for an employee
it will generate PageParameters with id->empId (assuming you want a nice
looking url which will encode 'employee' as Url segment, e.g.
/company/employee/34).
Later the decoder
This is not available out of the box but it is possible to do it without
any changes in wicket-core.
Just provide your own impl of IPageFactory interface. Use
DefaultPageFactory as inspiration.
Here are the problems that I see with it:
- it will use reflection to find all available constructors in
Am 21.01.2013 08:14, schrieb Martijn Dashorst:
+1
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 t