martin-g commented on a change in pull request #417: WICKET-6761 Multiple 
websocket connections from the same session
URL: https://github.com/apache/wicket/pull/417#discussion_r396376097
 
 

 ##########
 File path: 
wicket-native-websocket/wicket-native-websocket-core/src/main/java/org/apache/wicket/protocol/ws/api/BaseWebSocketBehavior.java
 ##########
 @@ -93,10 +119,12 @@ public void renderHead(Component component, 
IHeaderResponse response)
                        int pageId = component.getPage().getPageId();
                        variables.put("pageId", pageId);
                        variables.put("resourceName", "");
+                       variables.put("resourceToken", "");
 
 Review comment:
   > contains the `pageId` with is unique it to each tab
   
   This is not correct! 
   If the user copies the url from the browser's address bar and pastes it in a 
new tab then the page id is the same.
   This is why we have 
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/AjaxNewWindowNotifyingBehavior.java
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to