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