You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Carsten Fregin (JIRA)" <my...@incubator.apache.org> on 2005/08/17 16:11:54 UTC

[jira] Created: (MYFACES-418) Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.

Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.
----------------------------------------------------------------

         Key: MYFACES-418
         URL: http://issues.apache.org/jira/browse/MYFACES-418
     Project: MyFaces
        Type: Bug
  Components: General  
    Versions: 1.0.9 beta    
 Environment: Tested with Tomcat 5.5 under Gentoo linux and Windows XP Home
    Reporter: Carsten Fregin


Problem: When I set the javax.faces.STATE_SAVING_METHOD in the web.xml to server and try out the tiles-example,  I get a java.lang.IllegalStateException: Cannot create a session after the response has been commited.

Analysis: The problem happens only while calling a tiles page directly. So, calling response.sendRedirect("page1.jsf");  or entering the url (/myfaces-tiles-example/page1.jsp) results in the error. 
If you create a jsf page without tiles support, you are able to jump to a tiles page by navigation-rule. Proof:
try to call  /myfaces-tiles-example/non-tile.jsf directly in your browser and press the back button.

Workaround: use javax.faces.STATE_SAVING_METHOD=client (generates much bandwidth) or create an index.jsp with a commandLink to your tiles page.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MYFACES-418) Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.

Posted by "Carsten Fregin (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-418?page=comments#action_12322741 ] 

Carsten Fregin commented on MYFACES-418:
----------------------------------------

Found the problem. The exception is an IllegalStateException: Cannot create a session after the response has been commited.

In the myfaces-tiles-example/template/template.jsp is a "<%@ page session="false"%>" entry, preventing the servlet container to create a session. Removing that line fixes the bug. Could someone remove that line? I see no point in disabeling the session on that page.

> Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.
> ----------------------------------------------------------------
>
>          Key: MYFACES-418
>          URL: http://issues.apache.org/jira/browse/MYFACES-418
>      Project: MyFaces
>         Type: Bug
>   Components: General
>     Versions: 1.0.9m9
>  Environment: Tested with Tomcat 5.5 under Gentoo linux and Windows XP Home
>     Reporter: Carsten Fregin
>     Assignee: Thomas Spiegl

>
> Problem: When I set the javax.faces.STATE_SAVING_METHOD in the web.xml to server and try out the tiles-example,  I get a java.lang.IllegalStateException: Cannot create a session after the response has been commited.
> Analysis: The problem happens only while calling a tiles page directly. So, calling response.sendRedirect("page1.jsf");  or entering the url (/myfaces-tiles-example/page1.jsp) results in the error. 
> If you create a jsf page without tiles support, you are able to jump to a tiles page by navigation-rule. Proof:
> try to call  /myfaces-tiles-example/non-tile.jsf directly in your browser and press the back button.
> Workaround: use javax.faces.STATE_SAVING_METHOD=client (generates much bandwidth) or create an index.jsp with a commandLink to your tiles page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MYFACES-418) Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.

Posted by "Carsten Fregin (JIRA)" <my...@incubator.apache.org>.
    [ http://issues.apache.org/jira/browse/MYFACES-418?page=comments#action_12319088 ] 

Carsten Fregin commented on MYFACES-418:
----------------------------------------

Same problem with the latest build (17.aug.05)  except no stack trace is shown.

> Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.
> ----------------------------------------------------------------
>
>          Key: MYFACES-418
>          URL: http://issues.apache.org/jira/browse/MYFACES-418
>      Project: MyFaces
>         Type: Bug
>   Components: General
>     Versions: 1.0.9 beta
>  Environment: Tested with Tomcat 5.5 under Gentoo linux and Windows XP Home
>     Reporter: Carsten Fregin

>
> Problem: When I set the javax.faces.STATE_SAVING_METHOD in the web.xml to server and try out the tiles-example,  I get a java.lang.IllegalStateException: Cannot create a session after the response has been commited.
> Analysis: The problem happens only while calling a tiles page directly. So, calling response.sendRedirect("page1.jsf");  or entering the url (/myfaces-tiles-example/page1.jsp) results in the error. 
> If you create a jsf page without tiles support, you are able to jump to a tiles page by navigation-rule. Proof:
> try to call  /myfaces-tiles-example/non-tile.jsf directly in your browser and press the back button.
> Workaround: use javax.faces.STATE_SAVING_METHOD=client (generates much bandwidth) or create an index.jsp with a commandLink to your tiles page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MYFACES-418) Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.

Posted by "Matthias Weßendorf (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-418?page=all ]
     
Matthias Weßendorf closed MYFACES-418:
--------------------------------------


> Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.
> ----------------------------------------------------------------
>
>          Key: MYFACES-418
>          URL: http://issues.apache.org/jira/browse/MYFACES-418
>      Project: MyFaces
>         Type: Bug
>   Components: General
>     Versions: 1.0.9m9
>  Environment: Tested with Tomcat 5.5 under Gentoo linux and Windows XP Home
>     Reporter: Carsten Fregin
>     Assignee: Thomas Spiegl

>
> Problem: When I set the javax.faces.STATE_SAVING_METHOD in the web.xml to server and try out the tiles-example,  I get a java.lang.IllegalStateException: Cannot create a session after the response has been commited.
> Analysis: The problem happens only while calling a tiles page directly. So, calling response.sendRedirect("page1.jsf");  or entering the url (/myfaces-tiles-example/page1.jsp) results in the error. 
> If you create a jsf page without tiles support, you are able to jump to a tiles page by navigation-rule. Proof:
> try to call  /myfaces-tiles-example/non-tile.jsf directly in your browser and press the back button.
> Workaround: use javax.faces.STATE_SAVING_METHOD=client (generates much bandwidth) or create an index.jsp with a commandLink to your tiles page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (MYFACES-418) Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.

Posted by "Matthias Weßendorf (JIRA)" <my...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/MYFACES-418?page=all ]
     
Matthias Weßendorf resolved MYFACES-418:
----------------------------------------

    Resolution: Fixed

thx for reporting it

> Tiles does not work with javax.faces.STATE_SAVING_METHOD=server.
> ----------------------------------------------------------------
>
>          Key: MYFACES-418
>          URL: http://issues.apache.org/jira/browse/MYFACES-418
>      Project: MyFaces
>         Type: Bug
>   Components: General
>     Versions: 1.0.9m9
>  Environment: Tested with Tomcat 5.5 under Gentoo linux and Windows XP Home
>     Reporter: Carsten Fregin
>     Assignee: Thomas Spiegl

>
> Problem: When I set the javax.faces.STATE_SAVING_METHOD in the web.xml to server and try out the tiles-example,  I get a java.lang.IllegalStateException: Cannot create a session after the response has been commited.
> Analysis: The problem happens only while calling a tiles page directly. So, calling response.sendRedirect("page1.jsf");  or entering the url (/myfaces-tiles-example/page1.jsp) results in the error. 
> If you create a jsf page without tiles support, you are able to jump to a tiles page by navigation-rule. Proof:
> try to call  /myfaces-tiles-example/non-tile.jsf directly in your browser and press the back button.
> Workaround: use javax.faces.STATE_SAVING_METHOD=client (generates much bandwidth) or create an index.jsp with a commandLink to your tiles page.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira