You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Help System <in...@squir.es> on 2010/01/22 22:29:28 UTC
urlFor() outside wicket session
Hi,
I have a quartz job that sends emails containing links to pages rendered by
Wicket. All these links have parameters.
Is there a way of doing the equivalent of
RequestCycle.get().urlFor(pageclass, parameters) from a quartz job?
At the moment it's hardcoded to generate the url but if the Wicket
application configuration changes, the quartz job is something else to
remember to modify.
Thanks,
Tim
Re: urlFor() outside wicket session
Posted by Help System <in...@squir.es>.
Thanks Igor
That's just what I'll do.
2010/1/22 Igor Vaynberg <ig...@gmail.com>
> mount the page so the url is well known, then you do not need wicket
> to construct it for you.
>
> -igor
>
> On Fri, Jan 22, 2010 at 1:29 PM, Help System <in...@squir.es> wrote:
> > Hi,
> >
> > I have a quartz job that sends emails containing links to pages rendered
> by
> > Wicket. All these links have parameters.
> >
> > Is there a way of doing the equivalent of
> > RequestCycle.get().urlFor(pageclass, parameters) from a quartz job?
> >
> > At the moment it's hardcoded to generate the url but if the Wicket
> > application configuration changes, the quartz job is something else to
> > remember to modify.
> >
> > Thanks,
> > Tim
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: urlFor() outside wicket session
Posted by Igor Vaynberg <ig...@gmail.com>.
mount the page so the url is well known, then you do not need wicket
to construct it for you.
-igor
On Fri, Jan 22, 2010 at 1:29 PM, Help System <in...@squir.es> wrote:
> Hi,
>
> I have a quartz job that sends emails containing links to pages rendered by
> Wicket. All these links have parameters.
>
> Is there a way of doing the equivalent of
> RequestCycle.get().urlFor(pageclass, parameters) from a quartz job?
>
> At the moment it's hardcoded to generate the url but if the Wicket
> application configuration changes, the quartz job is something else to
> remember to modify.
>
> Thanks,
> Tim
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org