You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by fromgate <fr...@gmail.com> on 2017/08/21 17:17:28 UTC
How to get generate html link for page with parameters
Hello!
I need to create text (in fact it will be a confirmation email) that will
contain a link to specific page object with provided parameters
(confirmation code).
Is there a way to render a BookmarkablePageLink object and get a String that
will contain this link?
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-generate-html-link-for-page-with-parameters-tp4678570.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: How to get generate html link for page with parameters
Posted by Martin Grigorov <mg...@apache.org>.
Hi,
What you need is just : RequestCycle.get().urlFor(SomePage.class,
somePageParameters)
Otherwise also take a look at
http://examples8x.wicket.apache.org/mailtemplate/ example. It shows how to
render a Page, a Component and how to use TextTemplate.
Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov
On Mon, Aug 21, 2017 at 8:17 PM, fromgate <fr...@gmail.com> wrote:
> Hello!
>
> I need to create text (in fact it will be a confirmation email) that will
> contain a link to specific page object with provided parameters
> (confirmation code).
>
> Is there a way to render a BookmarkablePageLink object and get a String
> that
> will contain this link?
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/How-to-get-generate-html-link-for-page-
> with-parameters-tp4678570.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>