Re: generics

2008-07-01 Thread Joni Freeman
Isn't this a same thing: onPopulateItem(final Item item) { add(new Link("delete") { protected void onClick() { service.delete(item.getModelObject()); } }); } Joni On Tue, 2008-07-01 at 11:56 -0700, Igor Vaynberg wrote: > onPopulateItem(Item item) { > add(new Link("delete", item.getMode

Re: (Class>) casting troubles

2008-05-22 Thread Joni Freeman
Yeah, it could even be in its separate utility class: interface IModel {} class Component { private IModel model; public IModel getModel() { return model; } } public class Unsafe { public static IModel cast(IModel model) { return (IModel) model; } } class M

Re: (Class>) casting troubles

2008-05-21 Thread Joni Freeman
On Wed, 2008-05-21 at 15:22 +0200, Sebastiaan van Erk wrote: > Does this always work nicely though, because you need to do a capture > which means that the compiler must be able to infer the type... I've had > problems before in these kind of situations that for me it seems > obvious, but the

Re: (Class>) casting troubles

2008-05-21 Thread Joni Freeman
On Wed, 2008-05-21 at 14:44 +0200, Sebastiaan van Erk wrote: > Martijn Dashorst wrote: > > Generified component touches *ALL* code in Wicket, wether you care or > > not. IModel itself is rather contained. > > Yes, but in my opinion rather useless as well. Plus you get heaps of > @SuppressWarning

Re: wicket bench 0.5.0

2008-01-06 Thread Joni Freeman
ork with eclipse 3.4m4? > > > Joni Freeman wrote: > > > > Hello! > > > > There's a new version of a plugin: > > http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench > > > > This is mostly a maintenance release: Eclipse 3.3 support a

wicket bench 0.5.0

2008-01-06 Thread Joni Freeman
Hello! There's a new version of a plugin: http://www.laughingpanda.org/mediawiki/index.php/Wicket_Bench This is mostly a maintenance release: Eclipse 3.3 support and Wicket dependency is updated to be 1.3. The only new feature adds keybindings to quickly create associated html or properties file