0
종료 또는 업데이트 후 모델을 업데이트 할 수있는 listView에 TextField를 추가하려고합니다.wicket 1.4를 사용하여 종료시 모델을 업데이트하는 기능이있는 listView에 TextField 추가
나는이 목록에 대한 wonderful 해결책을 받았지만 그것이 작동하는 것으로 보인다. wicket 6.7.0에서 일까요?
import org.apache.wicket.ajax.attributes.{ThrottlingSettings, AjaxRequestAttributes}
val detail = new TextField("detail", new PropertyModel[Meeting](meeting, "description"))
detail.add(new AjaxFormComponentUpdatingBehavior(("keyup")) {
protected def onUpdate(target: AjaxRequestTarget) {
meeting.salvarMeetingInfo(meeting)
}
protected override def updateAjaxAttributes(attributes: AjaxRequestAttributes) {
attributes.setThrottlingSettings(new ThrottlingSettings("thr", Duration.milliseconds(800.0)))
super.updateAjaxAttributes(attributes)
}
})
item.add(detail)
//Error messages
scala: object attributes is not a member of package org.apache.wicket.ajax
import org.apache.wicket.ajax.attributes.{ThrottlingSettings, AjaxRequestAttributes}
^
scala: not found: type AjaxRequestAttributes
protected override def updateAjaxAttributes(attributes: AjaxRequestAttributes) {
^
위킷 1.4를 사용해야하므로 위젯 1.4와 비슷한 구현이나 솔루션이 필요합니까?
나를 도울 수있는 누군가를 보내 주셔서 감사합니다.
네, 그 코드에 최신 버전 (6.7)을 사용했습니다. 도움이된다면 대답을 받아주십시오. –