I'm using wicket 6.7.0 with maven and I'm trying to use the code below
but I getting error with it the object AjaxRequestAttributes that
isn't recognized:
add(new ListView[ObjItem]("listObjItem", listData) {
override protected def onBeforeRender() {
periodTotal = new Period()
super.onBeforeRender()
}
def populateItem(item: ListItem[ObjItem]) = {
var objItem = item.getModelObject()
val detail = new TextField("detail", new PropertyModel(objItem, "description"))
detail.add(new AjaxFormComponentUpdatingBehavior(("keyup")) {
protected def onUpdate(target: AjaxRequestTarget) {
objItemDAO.saveObjItem(objItem)
}
//error here
protected override def updateAjaxAttributes(attributes:
AjaxRequestAttributes) {
attributes.setThrottlingSettings(new
ThrottlingSettings("thr", Duration.milliseconds(800)))
super.updateAjaxAttributes(attributes)
}
})
item.add(detail)
}
})
And my import list for ajax behaviour is showed bellow:
import org.apache.wicket.ajax.AjaxRequestTarget
import org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior
import org.apache.wicket.ajax.attributes.AjaxRequestAttributes
The last is not recognized neither after maven build
What's the heck with this code and how is the issue that i need to correct since
I'm using wicket 6.7?
Thanks for your help! This list is saving my time!
Bruno Moura
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]