On 23 February 2013 21:36, Kevin Meyer - KMZ <[email protected]> wrote:
> Great news! :)
>
> I've been able to create a panel that can render a collection of entities
> that implemet my floor plan's locatable interface on a dynamic image
> with an an attached corresponding image map..
>
> Glad you're making progress on this.
> Given that I am am iterating through the collected adapters, how do I
> generate a link URL that can be used to load that entity?
>
>
I haven't had to do this myself (because I've integrated with
intermediaries that do this monkeying around already), however from
googling about [1] I think the following ought to work:
final Class<? extends Page> pageClass =
getPageClassRegistry().getPageClass(PageType.ENTITY);
final PageParameters pageParameters =
EntityModel.createPageParameters(adapter);
RequestCycle.get().urlFor(pageClass, parameters)
Let me know...
Dan
[1]
http://stackoverflow.com/questions/9580071/wicket-1-5-and-obtaining-a-url-to-page-instance