AbstractReadOnlyModel<List<? extends S>> { should work iirc
-igor
On Mon, Jun 16, 2008 at 7:08 AM, Martin Makundi
<[EMAIL PROTECTED]> wrote:
>>> What is your idea of nice chaining?
>>
>> http://wicketstuff.org/wicket13/ajax/choice
>
> I am using 1.4-m1 and I tried to make
>
> public abstract class AbstractListChoiceModel<S> extends
> AbstractReadOnlyModel<List<S>> {
> @Override
> public final List<S> getObject() {
> return getChoices();
> }
>
> protected abstract List<S> getChoices();
> }
>
> The compiler complains AbstractListChoiceModel<CustomElement> is not
> compatible with IModel<List<? extends CustomElement>>
>
> Does this make sense?
>
> AbstractListChoiceModel<CustomElement> availableCustomElementsModel
> = new AbstractListChoiceModel<CustomElement>() {
> ...
> };
>
> final DropDownChoice<CustomElement> selection = new
> DropDownChoice<CustomElement>(SELECTION,
> new PropertyModel<CustomElement>(dto, CustomElement.SELECTION)),
> availableCustomElementsModel, new IChoiceRenderer<CustomElement>() {
> ...
>
> **
> Martin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]