You have a list of tagging keys that user can select and a render to it, but you don't have an model to receive the selection made on component. Consider to use this contructor parsing an "putTheUserSelectionHereModel"
http://wicket.apache.org/docs/1.4/org/apache/wicket/markup/html/form/ListMultipleChoice.html#ListMultipleChoice%28java.lang.String,%20org.apache.wicket.model.IModel,%20org.apache.wicket.model.IModel,%20org.apache.wicket.markup.html.form.IChoiceRenderer%29 On Fri, Oct 16, 2009 at 6:52 AM, Peter Arnulf Lustig <[email protected]>wrote: > can anyone tell me how to use the list-component model properly? > > > > ----- Ursprüngliche Mail ---- > Von: Peter Arnulf Lustig <[email protected]> > An: [email protected] > Gesendet: Freitag, den 16. Oktober 2009, 9:55:19 Uhr > Betreff: AW: Null Model Error > > yes -- I do this here: > choices = Model.of((List<Integer>) new > ArrayList<Integer>(tagging.keySet())); > > > > > ----- Ursprüngliche Mail ---- > Von: Md. Jahid Shohel <[email protected]> > An: [email protected] > Gesendet: Freitag, den 16. Oktober 2009, 9:53:01 Uhr > Betreff: Re: Null Model Error > > you need to set the model for the list. > > On Fri, 2009-10-16 at 07:33 +0000, Peter Arnulf Lustig wrote: > > choices, > > > --------------------------------------------------------------------- > 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] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Pedro Henrique Oliveira dos Santos
