Re: generics

2008-07-01 Thread Joni Freeman
Isn't this a same thing: onPopulateItem(final ItemUser 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(ItemUser item) { add(new LinkUser(delete,

Re: (Class? extends Page?) casting troubles

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

Re: (Class? extends Page?) 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. IModelT itself is rather contained. Yes, but in my opinion rather useless as well. Plus you get heaps of @SuppressWarnings all

Re: (Class? extends Page?) 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

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

Re: wicket bench 0.5.0

2008-01-06 Thread Joni Freeman
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 and Wicket dependency is updated to be 1.3. The only new feature adds keybindings