myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <>
Subject [jira] [Commented] (MYFACES-3881) CLIENT_WINDOW_MODE generates new windowid even if one exists
Date Mon, 14 Apr 2014 10:55:15 GMT


Leonardo Uribe commented on MYFACES-3881:

Thanks for the example. I see the point, so you are creating an action that just send a redirect
if no window id parameter is set by default. It is like "client" mode, but in this case the
param is generated in the server.

It looks like this issue is a duplicate of MYFACES-3816 . We cannot really change the "url"
mode, because that's the minimal mode defined by the spec, and the TCK relies on it.  But
we can create a new mode for client window that do the same as the hack you are doing. Maybe
create it as url-redirect, because it works like the default url mode but redirects to the
same page if no client window id is on the request. 

> CLIENT_WINDOW_MODE generates new windowid even if one exists
> ------------------------------------------------------------
>                 Key: MYFACES-3881
>                 URL:
>             Project: MyFaces Core
>          Issue Type: Bug
>    Affects Versions: 2.2.2
>         Environment: java 7, tomcat 7.0.50
>            Reporter: Rene O
>         Attachments:,
> If you use @ViewScoped beans and activate CLIENT_WINDOW_MODE (url or client) a page refresh
generates a new windowid although the application in the current browser window already has
a windowid.
> I think a new windowid should only be generated, if no windowid exists, e.g. open new
window or tab with the same url.
> <context-param>
>    <param-name>javax.faces.CLIENT_WINDOW_MODE</param-name>
>    <param-value>url</param-value>
>    <!--client doesn't work too-->
> </context-param>
> A testcase is attached.
> call url: http://localhost:8080/jsftest22/mypage.jsf
> Fill some values into field
> Press F5 to refresh the page
> => new windowid is generated => inputdata is lost, because a new @ViewScoped bean
was created

This message was sent by Atlassian JIRA

View raw message