Hi Martin

I verified the dependencies of my pom.xml and not found any reference
for a previous version of wicket.

Bellow is listed my pom.xml with dependencies:

<!-- WICKET DEPENDENCIES -->
        <dependency>
            <groupId>com.google.code.jqwicket</groupId>
            <artifactId>jqwicket</artifactId>
            <version>0.6</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-ioc</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-spring</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-extensions</artifactId>
            <version>${wicket.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.wicket</groupId>
            <artifactId>wicket-datetime</artifactId>
            <version>${wicket.version}</version>
        </dependency>

<properties>
        <wicket.version>6.7.0</wicket.version>
 </properties>


Bruno Moura


2013/4/23 Martin Grigorov <[email protected]>:
> Hi,
>
> Most probably your pom.xml has more than one <dependency> for
> wicket(-core).jar with different versions.
>
>
> On Tue, Apr 23, 2013 at 2:56 PM, Bruno Moura <[email protected]> wrote:
>
>> 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]
>>
>>
>
>
> --
> 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]

Reply via email to