You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Thomas Trocha <th...@trocha.com> on 2009/06/13 15:16:28 UTC

creating bookmarkablelink for email

Hi there,

how is it possible to create a bookmarkablelink so it can be set into an 
eMail. (e.g. as confirmation-link)
I need something like .renderToString() or similar.

Thx, ToM

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


Re: creating bookmarkablelink for email

Posted by hill180 <hi...@gmail.com>.
to add a bookmarkablelink I added the following to the main  
application class:

protected void init(){

         //Set Bookmarkable Pages
         mountBookmarkablePage("emailconfiguration",Page2.class);
    	...

import wicket.PageParameters;
import wicket.markup.html.WebPage;
import wicket.markup.html.basic.Label;

public class Page2 extends WebPage {

	public Page2(PageParameters parameters) throws Exception {
		long emailID = parameters.getLong("emailID");
		System.out.println("Email ID: " + emailID);
		add(new Label("pageParam", String.valueOf(emailID)));
	}
}
Then the link would be www.yoursite.com/emailconfiguration?emailID=1234312AJSIB

Make sure to catch the exception...

jose



On Jun 13, 2009, at 6:16 AM, Thomas Trocha wrote:

> Hi there,
>
> how is it possible to create a bookmarkablelink so it can be set  
> into an eMail. (e.g. as confirmation-link)
> I need something like .renderToString() or similar.
>
> Thx, ToM
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>