I'm trying to add a textField in a listView using the code bellow:
val detail = new TextField("detail", new PropertyModel(meeting, "description"))
detail.add(new AjaxFormComponentUpdatingBehavior(("keyup")) {
protected def onUpdate(target: AjaxRequestTarget) {
//
}
})
But I'm getting this error message after compile the project:
scala: type mismatch;
found : org.apache.wicket.model.PropertyModel[Nothing]
required: org.apache.wicket.model.IModel[T]
Note: Nothing <: T, but Java-defined trait IModel is invariant in type T.
You may wish to investigate a wildcard type such as `_ <: T`. (SLS 3.2.10)
val detail = new TextField("detail", new PropertyModel(meeting,
"description"))
^
My software stack are Wicket v6.7.0, scala 2.10, Intellij IDEA 12 with
WicketForge Plugin Version 2.2.0
Please someone could help me. I'll be very grateful.
God bless you.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]