[ 
https://issues.apache.org/jira/browse/WICKET-4286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13166994#comment-13166994
 ] 

Dan Retzlaff commented on WICKET-4286:
--------------------------------------

That's an old ticket! :)

1.5's liberal advancement of the page identifier changes Wicket's limited AJAX 
versioning support significantly, in my opinion detrimentally:
1. In 1.4 reloading a page (with back or reload buttons) results in the most 
recent version associated with that URL; in 1.5 it results in the oldest 
version.
2. With a 1.5 AJAXy page, it seems quite easy to get into a state where 
different AJAX behaviors target different versions of the same page. That 
sounds confusing to debug.

ListView's effect on the page version makes the gotcha more unexpected, but I 
agree it's working as designed. Maybe Wicket's AJAX versioning gotchas just get 
an extra underscore for now, pending full support?

Was there discussion of the tradeoffs between 1.4 and 1.5's versioning 
strategies? I looked but I could not find one. I don't mean to naysay the new 
design since I don't know the history.
                
> ListView causes page ID increment
> ---------------------------------
>
>                 Key: WICKET-4286
>                 URL: https://issues.apache.org/jira/browse/WICKET-4286
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.5.3
>         Environment: any
>            Reporter: Mark Lichtenberg
>         Attachments: ajaxtest1.5.3.tar.gz
>
>
> A ListView with setReuseItems(false) causes the page ID to increment when the 
> page is reloaded or the back button is pressed. This new ID is not reflected 
> in the URL so Ajax actions against the new ID are lost when navigating away 
> and back again. 
> Steps to reproduce in quickstart
> 1) Load quickstart project in browser
> 2) Click "Link to Other" then click browser's back button.
> 3) Notice the log statement indicates the HomePage ID is 2, yet the URL 
> remains at ID 0
> 4) Click "Ajax Increment Link" a few times
> 5) Click "Link to Other" then click browser's back button
> 6) Notice the counter is at zero, and subsequent clicks to the "Ajax 
> Increment Link" start from zero. The current page ID output in the log is 4.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to