Works like a charm! I now have a (generated) image with clickable 
markers that link to the domain object.

A nice-to-have would be to somehow add "pop up" labels to the 
clickable URLs.. using the ExternalLink's "label" parameter does not 
seem to work.

But this is enough for the moment.

> > 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
> 


--
Kevin Meyer,      Cell: +386 (0)70 260 321   Ljubljana, Slovenia



Reply via email to