Hi,

The ajax timer only updates small region. Button updates the whole page.
There is a simplified example at:
http://download.syncrontech.com/public/wicket-ajax-expired.zip

Using view source in browser, before button is pressed the behavior url is:
/wicket?wicket:interface=:2:ajaxSpan::IBehaviorListener&wicket:behaviorId=0

After pressing the button it is:
/wicket?wicket:interface=:2:ajaxSpan::IBehaviorListener&wicket:behaviorId=0

ie. looks the same.

   Ari S.

----- Original Message ----- From: "Johan Compagner" <[EMAIL PROTECTED]>
To: <wicket-user@lists.sourceforge.net>
Sent: Thursday, May 11, 2006 12:15 PM
Subject: Re: [Wicket-user] Problems with AjaxSelfUpdatingTimerBehavior and 
buttons on same page


So the url that the ajax behaviour has isn't updated to version 1? When the
page is rerendered?

johan


On 5/11/06, Ari Suutari <[EMAIL PROTECTED]> wrote:

Hi,

We are experiencing odd behaviour when a page has

- a region, which is constantly updated by AjaxSelfUpdatingTimerBehavior
(say each 3 seconds)
- form with buttons

When the page is initially loaded, timer starts updating values as
expected.
When a button on form is pressed, page is versioned to version 1.
When timer updates it's region next time, it seems to request page version
0,
which causes following stuff being output to log file:

[http-80-Processor25] DEBUG Getting page [path = 0:ajaxSpan, versionNumber
= 0]
[http-80-Processor25] DEBUG Getting page [path = 0:ajaxSpan, versionNumber
= 0]
[http-80-Processor25] DEBUG UNDO: rollback [Page class =
syncrontech.examples.testing.AjaxTestPage, id = 0] to version 1
[http-80-Processor25] DEBUG UNDO: rollback [Page class =
syncrontech.examples.testing.AjaxTestPage, id = 0] to version 1

The timer and ajax continues to function, but when user presses
a button (or link) it refers to page version 1 (as expected) but as this
version was
just discarded from page map user gets a 'page expired' message.

No matter what version the page has reached, the ajax call seems to reset
it to zero.

I have a simple example code of the case, if someone needs it.

    Ari S.



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to