Thanks Sven, Everything works as expected now :)
On 25 September 2014 03:08, Sven Meier <[email protected]> wrote: > Hi Maxim, > > I've reintroduced wildcards were needed for subclasses. > > Many thanks for your feedback. Please give it another try. > > Regards > Sven > > > On 09/24/2014 04:02 AM, Maxim Solodovnik wrote: > >> Yes, sure, List<MySubtype>. >> >> Imagine the following situation: >> I have list component to display generic entities: NamedEntity (it will >> display id and name) >> Now I need to pass The list of "FileEntity extends NamedEntity) to this >> component (The list is retrieved from DB using FileEntityDao as List< >> FileEntity>) >> >> as I can see right now it is impossible >> >> >> On 24 September 2014 05:27, Sven Meier <[email protected]> wrote: >> >> Hi, >>> >>> right now it is impossible to pass List<MySupertype> to ListView >>>> >>> I assume you mean List<MySubtype> ? >>> >>> If you want to pass a List<MySubtype> to the listView, why not give it >>> the >>> same generic parameter? >>> >>> List<MySubtype> list = ...; >>> >>> new ListView<MySubtype>("list", list); >>> >>> >>> Regards >>> Sven >>> >>> On 09/23/2014 06:04 PM, Maxim Solodovnik wrote: >>> >>> Sorry for the multiple posting :( resending because of typos >>>> >>>> As I can see ListView constructor signature was changed since 7.0.0-M3 >>>> it is now (latest 7.0.0-SNAPSHOT) >>>> public ListView(final String id, final IModel<List<T>> model) >>>> public ListView(final String id, final List<T> list) >>>> >>>> was >>>> public ListView(final String id, final IModel<? extends List<? extends >>>> T>> >>>> model) >>>> public ListView(final String id, final List<? extends T> list) >>>> >>>> right now it is impossible to pass List<MySupertype> to ListView >>>> >>>> Can this change be reverted? Or is there any workaround? >>>> >>>> >>>> On 23 September 2014 21:57, Maxim Solodovnik <[email protected]> >>>> wrote: >>>> >>>> Hello All, >>>> >>>>> As I can see ListView constructor signature was changed since 7.0.0-M3 >>>>> it is now >>>>> public ListView(final String id, final IModel<? extends List<T>> model) >>>>> public ListView(final String id, final List<T> list) >>>>> >>>>> was >>>>> public ListView(final String id, final IModel<? extends List<? extends >>>>> T>> >>>>> model) >>>>> public ListView(final String id, final List<? extends T> list) >>>>> >>>>> right now it is impossible to pass List<MySupertype> to listview >>>>> Can this change be reverted? Or is there any workaround? >>>>> >>>>> Forwarded to dev@ >>>>> >>>>> >>>>> -- >>>>> WBR >>>>> Maxim aka solomax >>>>> >>>>> >>>>> >>>>> -- >>>>> WBR >>>>> Maxim aka solomax >>>>> >>>>> >>>>> >>>> >>> >>> >> > -- WBR Maxim aka solomax
