SV: wicket 1.4 : Link with no model

2009-11-17 Thread Wilhelmsen Tor Iver
> or a shorter
> 
> Link foo = new Link

... or wait for JDK 1.7 where you can do

Link foo = new Link<>

Which is more useful in cases like

Map> fie = new HashMap<>();

- Tor Iver


Re: wicket 1.4 : Link with no model

2009-11-17 Thread Marcelo Morales
On Mon, Nov 16, 2009 at 6:23 PM, Jeremy Thomerson
 wrote:
> Two things:
>
> 1 - use Link foo = new Link

or a shorter

Link foo = new Link


-- 
Marcelo Morales

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



Re: wicket 1.4 : Link with no model

2009-11-16 Thread Jeremy Thomerson
Two things:

1 - use Link foo = new Link

2 - for simply redirecting, use bookmarkablepagelink(PersonPage.class).

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



On Mon, Nov 16, 2009 at 4:14 PM, smallufo  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 should be
> parameterized
>
> but , this link doesn't bind any model , it is just a redirection.
> How do I parameterized this link ?
>


wicket 1.4 : Link with no model

2009-11-16 Thread smallufo
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 should be
parameterized

but , this link doesn't bind any model , it is just a redirection.
How do I parameterized this link ?