wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Grigorov <mgrigo...@apache.org>
Subject Re: Link generation from outside of Wicket - was Re: [ANNOUNCE] Apache Wicket 6.7.0 Released!
Date Fri, 19 Apr 2013 14:30:59 GMT
On Fri, Apr 19, 2013 at 5:12 PM, Guillaume Smet <guillaume.smet@gmail.com>wrote:

> Hi,
>
> On Thu, Apr 18, 2013 at 11:36 AM, Martijn Dashorst <dashorst@apache.org>
> wrote:
> > Render a page or component to a String
> >
> > ComponentRenderer exposes two methods: `renderComponent` and
> > `renderPage` and they do exactly what their names suggest. Happy
> > emailing!
>
> This is really nice. We did it in a quite complicated way before that.
>
> Any chance the same could be done to generate links from outside of
> Wicket, which is also quite difficult to get right at the moment?
>
> I'm especially thinking about this recent thread on this subject:
> http://markmail.org/thread/a34vmcm6ulxgr3ed


What exactly you mean by "outside of Wicket" ?
What Wicket objects you have access to ?
The application name will be needed and a base url. Usually the current
request's baseUrl is used to construct a full url. Without the base url
Wicket can generate only context-absolute url.


>
>
> --
> Guillaume
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>


-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com <http://jweekend.com/>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message