You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Alexander Ilyin (JIRA)" <de...@myfaces.apache.org> on 2010/05/16 11:03:43 UTC

[jira] Created: (MYFACES-2719) faces-redirect=true lost the url parameters

faces-redirect=true lost the url parameters
-------------------------------------------

                 Key: MYFACES-2719
                 URL: https://issues.apache.org/jira/browse/MYFACES-2719
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-314
    Affects Versions: 2.0.0
         Environment: windows xp, jetty
            Reporter: Alexander Ilyin


Looks like MyFaces ignores the url parameters within the outcome string.

F.g. 
	public String doIt(){
		
		return "test2.xhtml?cur=33&faces-redirect=true";
	}

Will redirect to test2.xhtml but without the cur=33 parameter. 

I successfully use this practice in Mojarra as only way to keep the url parameters after executing some action and using the PRG pattern now supported by JSF 2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (MYFACES-2719) faces-redirect=true lost the url parameters

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakob Korherr resolved MYFACES-2719.
------------------------------------

    Fix Version/s: 2.0.1-SNAPSHOT
       Resolution: Fixed

> faces-redirect=true lost the url parameters
> -------------------------------------------
>
>                 Key: MYFACES-2719
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2719
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>         Environment: windows xp, jetty
>            Reporter: Alexander Ilyin
>            Assignee: Jakob Korherr
>             Fix For: 2.0.1-SNAPSHOT
>
>
> Looks like MyFaces ignores the url parameters within the outcome string.
> F.g. 
> 	public String doIt(){
> 		
> 		return "test2.xhtml?cur=33&faces-redirect=true";
> 	}
> Will redirect to test2.xhtml but without the cur=33 parameter. 
> I successfully use this practice in Mojarra as only way to keep the url parameters after executing some action and using the PRG pattern now supported by JSF 2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2719) faces-redirect=true lost the url parameters

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868379#action_12868379 ] 

Jakob Korherr commented on MYFACES-2719:
----------------------------------------

>From the spec section 7.4.2: "If isRedirect is true, append the queryString to implicitViewId."

This implicates that queryString should be parsed for parameters and those parameters should be added as the parameters of the resulting NavigationCase, because the viewId itself must not contain anything more than page.fileextension (whereas fileextension normally is xhtml or jsp).

> faces-redirect=true lost the url parameters
> -------------------------------------------
>
>                 Key: MYFACES-2719
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2719
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>         Environment: windows xp, jetty
>            Reporter: Alexander Ilyin
>            Assignee: Jakob Korherr
>
> Looks like MyFaces ignores the url parameters within the outcome string.
> F.g. 
> 	public String doIt(){
> 		
> 		return "test2.xhtml?cur=33&faces-redirect=true";
> 	}
> Will redirect to test2.xhtml but without the cur=33 parameter. 
> I successfully use this practice in Mojarra as only way to keep the url parameters after executing some action and using the PRG pattern now supported by JSF 2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (MYFACES-2719) faces-redirect=true lost the url parameters

Posted by "Jakob Korherr (JIRA)" <de...@myfaces.apache.org>.
    [ https://issues.apache.org/jira/browse/MYFACES-2719?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868387#action_12868387 ] 

Jakob Korherr commented on MYFACES-2719:
----------------------------------------

Committed fix for this issue. Test case will follow tomorrow!

> faces-redirect=true lost the url parameters
> -------------------------------------------
>
>                 Key: MYFACES-2719
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2719
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.0.0
>         Environment: windows xp, jetty
>            Reporter: Alexander Ilyin
>            Assignee: Jakob Korherr
>
> Looks like MyFaces ignores the url parameters within the outcome string.
> F.g. 
> 	public String doIt(){
> 		
> 		return "test2.xhtml?cur=33&faces-redirect=true";
> 	}
> Will redirect to test2.xhtml but without the cur=33 parameter. 
> I successfully use this practice in Mojarra as only way to keep the url parameters after executing some action and using the PRG pattern now supported by JSF 2.0

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.