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

Leonardo Uribe commented on MYFACES-3816:
-----------------------------------------

There is a description in the javadoc of javax.faces.lifecycle.ClientWindow. It 
says this on decode() method:

"... The implementation is responsible for examining the incoming request and 
extracting the value that must be returned from the getId() method. If 
CLIENT_WINDOW_MODE_PARAM_NAME is "none" this method must not be invoked. If 
CLIENT_WINDOW_MODE_PARAM_NAME is "url" the implementation must first look for a 
request parameter under the name given by the value of 
ResponseStateManager.CLIENT_WINDOW_PARAM. If no value is found, look for a 
request parameter under the name given by the value of 
ResponseStateManager.CLIENT_WINDOW_URL_PARAM. If no value is found, fabricate 
an id that uniquely identifies this ClientWindow within the scope of the 
current session. This value must be made available to return from the getId() 
method. The value must be suitable for inclusion as a hidden field or query 
parameter. If a value is found, decrypt it using the key from the session and 
make it available for return from getId(). ..."

"url" mode is described in a explicit way and we cannot change that. There is 
no reference about a redirect anywhere.

> missing window-handling for initial requests
> --------------------------------------------
>
>                 Key: MYFACES-3816
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3816
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-344
>    Affects Versions: 2.2.0-beta
>            Reporter: Gerhard Petracek
>            Assignee: Leonardo Uribe
>
> for an initial request there is no window-id added to the url.
> (tested with 'url' for javax.faces.CLIENT_WINDOW_MODE)
> -> in case of a page refresh a new window-id will be created and it isn't 
> possible to get back the original one. that can also happen with a 
> page-refresh after multiple requests, if only ajax requests are used.
> that's a major issue for all scopes based on the window-id.
> it can be done with an initial redirect (default in codi) or js (with html5 
> compliant browsers)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to