I have created a subclass to LoadableDetachableModel to retrieve a list of
objects out of our database.  If I declare my class as

public class MyModel extends LoadableDetachableModel<List<MyObject>> 

I can create an instance of this model to pass into a ListView, but that
same Model object cannot be passed into a DropDownChoice because its
contructor wants a IModel<List<? extends MyObject>> and as far as I know I
can't just do a cast.

Why are these constructors between ListView and different?  Has anyone else
dealt with this?  It seems strange that I can't create a Model object that
can be used by both a ListView and a DropDownChoice.


-- 
View this message in context: 
http://www.nabble.com/ListView-vs-DropDownChoice-with-Generics-tp20684801p20684801.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to