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,
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;
}
}
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
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
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
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