Two things: 1 - use Link<Void> foo = new Link<Void>
2 - for simply redirecting, use bookmarkablepagelink(PersonPage.class). -- Jeremy Thomerson http://www.wickettraining.com On Mon, Nov 16, 2009 at 4:14 PM, smallufo <[email protected]> wrote: > Hi > I am migrating my wicket 1.3 project to 1.4. > One problem is this : > > Link personPageLink = new Link("personPageLink") > { > @Override > public void onClick() > { > setResponsePage(PersonPage.class); > } > }; > add(personPageLink); > > Because Link is generized , eclipse reports : > - Link is a raw type. References to generic type Link<T> should be > parameterized > > but , this link doesn't bind any model , it is just a redirection. > How do I parameterized this link ? >
