Martijn Dashorst 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 supertype from List<Foo> to List<? extends
> Foo>
> 
>> That just seems.... odd.
> 
> Welcome to Java generics...
> 
Thanks. It's working now. 


        private class AllUsersModel extends LoadableDetachableModel<List<? 
extends
User>>{
                protected List<User> 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.


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

Reply via email to