You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jeremy Thomerson <je...@wickettraining.com> on 2010/07/01 00:39:49 UTC

Re: Links in DataTable

On Wed, Jun 30, 2010 at 1:14 PM, Branislav Kalas <bk...@gmail.com> wrote:

> and i forgot this in the onclick handler :
> @Override
> protected void onClick() {
>         setResponsePage(new HomePage(parameters));
>
>         System.out.println("clicked on link");
> }
>
>
The whole point of a constructor that takes PageParameters is to use it with
a bookmarkable URL, which you've avoided by creating an instance of a page
that must be redirected to.  Your code should say:

setResponsePage(getApplication().getHomePage(), parameters);


-- 
Jeremy Thomerson
http://www.wickettraining.com