You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Илья Нарыжный <ph...@ydn.ru> on 2013/05/05 14:30:11 UTC

Change signature of AbstractTree or Model.ofSet

Hello,

I have following problem in wicket 6 with trees:
Constructor of
class org.apache.wicket.extensions.markup.html.repeater.tree.AbstractTree
have following signature:
protected AbstractTree(String id, ITreeProvider<T> provider, IModel<Set<T>>
state)
The problem is in "IModel<Set<T>> state" argument and fact that Model.ofSet
return IModel<Set<? extends C>>, so it's not possible directly pass
IModel<Set<? extends C>> to constructor. It seems that either Model.ofSet
should be changed or AbstractTree.

What do you think?

Regards,

Ilia

Re: Change signature of AbstractTree or Model.ofSet

Posted by Igor Vaynberg <ig...@gmail.com>.
jira ticket please. can only be fixed in 7.0

-igor

On Sun, May 5, 2013 at 5:30 AM, Илья Нарыжный <ph...@ydn.ru> wrote:
> Hello,
>
> I have following problem in wicket 6 with trees:
> Constructor of
> class org.apache.wicket.extensions.markup.html.repeater.tree.AbstractTree
> have following signature:
> protected AbstractTree(String id, ITreeProvider<T> provider, IModel<Set<T>>
> state)
> The problem is in "IModel<Set<T>> state" argument and fact that Model.ofSet
> return IModel<Set<? extends C>>, so it's not possible directly pass
> IModel<Set<? extends C>> to constructor. It seems that either Model.ofSet
> should be changed or AbstractTree.
>
> What do you think?
>
> Regards,
>
> Ilia

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