You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jan Cerny (Jira)" <ji...@apache.org> on 2020/04/09 16:17:00 UTC
[jira] [Created] (WICKET-6765) WS broadcast of ClosedMessage
rewrites touchedPages by its single page
Jan Cerny created WICKET-6765:
---------------------------------
Summary: WS broadcast of ClosedMessage rewrites touchedPages by its single page
Key: WICKET-6765
URL: https://issues.apache.org/jira/browse/WICKET-6765
Project: Wicket
Issue Type: Bug
Components: wicket-native-websocket
Affects Versions: 8.7.0, 7.7.0
Environment: Java 8, Tomcat 9.0.27, Firefox 75.0
Reporter: Jan Cerny
Assignee: Martin Tzvetanov Grigorov
Attachments: wicket8-redirect-web-socket-on-close-example.zip
That causes a lost of instances of newly touched pages (within PageStoreManager). For quite specific scenario that could have *visible* impact.
*Conditions* to be fulfilled to see effect:
# calling setResponsePage(new NewResponsePage(customParams)) within AjaxLink (Link works)
** this instance of passed page is not used for rendering (customParams are lost) - page is overridden by AbstractWebSocketProcessor.onClose() - within PersistentRequestAdapter.storeTouchedPages()
# RenderStrategy.{color:#660e7a}REDIRECT_TO_RENDER{color} must be applied
** otherwise it is rendered before AbstractWebSocketProcessor.onClose()
# VoidPageManagerProvider must be used - setPageManagerProvider({color:#000080}new {color}VoidPageManagerProvider({color:#000080}this{color}));
** otherwise it is saved and loaded within PageManager not only in session
I'm attaching *test application* with example of losing page instance (and passed arguments). Important lines marked {color:#FF0000}NOT WORKING{color} in java and html files.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)