Really so sorry Martin for don't pay attention in your previous response
In fact I'm restricted to use wicket 1.4.x and jqwicket v 0.6 to avoid
brake compatibility
with code for many classes and other libraries dependencies that is not the case
to get deep in details on it now.
So the code bellow don't works and I get the error messages bellow, my
problem know is
to find an equivalent code that could work in wicket 1.4.
Just for remeber, I'm trying to add TextField in a listView with the feature to
update and model onExit or after update the text. i hope that it could
be possible
to implement using wicket 1.4 too?
Thanks again
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) {
^
Thanks again.
Bera
2013/4/24 Martin Grigorov <[email protected]>:
> Hi,
>
> I have answered you on similar question with DropDownChoice+PropertyModel.
> It is the same problem.
>
>
> On Wed, Apr 24, 2013 at 5:16 AM, Bruno Moura <[email protected]> wrote:
>
>> 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]
>>
>>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com <http://jweekend.com/>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]