LDM with Generics for DropDownChoice

2009-02-22 Thread Matt Welch
de is a bit new to me. -- View this message in context: http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-tp22155211p22155211.html Sent from the Wicket - User mailing list archive at Nabble.com. - To un

Re: LDM with Generics for DropDownChoice

2009-02-22 Thread Jeremy Thomerson
gt; > I'm trying to use this as the Choices model in a DropDownChoice, but no > luck. I'm sure I'm missing an or a or a somewhere but I at a > lost > as to what the exact problem is. I've been a consumer of generics forever, > but actually being on the

Re: LDM with Generics for DropDownChoice

2009-02-22 Thread Timo Rantalaiho
On Sun, 22 Feb 2009, Jeremy Thomerson wrote: > I've been meaning to ask on the dev list why that is. Being forced to > declare the "? extends User" for a model like yours seems to add complexity, > and force a local variable. I haven't looked at it that much, but I know > that every time I've had

Re: LDM with Generics for DropDownChoice

2009-02-23 Thread Matt Welch
DownChoice-tp22155211p22155211.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> ----------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >

Re: LDM with Generics for DropDownChoice

2009-02-23 Thread Martijn Dashorst
On Mon, Feb 23, 2009 at 2:55 PM, Matt Welch wrote: > > Just to make sure I'm understanding this; yuo're saying I have to create a > variable and then assign the variable instead of just being able to pass > "new AllUsersModel()" to the DropDownChoice constructor? Nope, just change your model supe

Re: LDM with Generics for DropDownChoice

2009-02-23 Thread Matt Welch
protected List load() { return userService.findAllUsers(); } } -- View this message in context: http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-tp22155211p22164005.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Matthew Hanlon
private class AllUsersModel extends LoadableDetachableModel extends > User>>{ > protected List load() { >return userService.findAllUsers(); >} >} > > -- > View this message in context: > http://www.nabble.com/LDM-with-Generi

Re: LDM with Generics for DropDownChoice

2009-02-24 Thread Timo Rantalaiho
On Tue, 24 Feb 2009, Matthew Hanlon wrote: > I've always handled the typing problem with DropDownChoice and my list > models by "just ignoring it" and not applying type parameters to the > DropDownChoice. This is because if I use the same IModel Foo>> for a ListView, then I get an error in the Lis

Re: LDM with Generics for DropDownChoice

2009-03-01 Thread Timo Rantalaiho
On Wed, 25 Feb 2009, Timo Rantalaiho wrote: > I'd say that ListView is wrong here. > > I created a new Jira issue on fixing that > > https://issues.apache.org/jira/browse/WICKET-2126 > > and will do if there are no objections or better ideas. Well, Igor objected very convincingly :) So now