[jbossseam-issues] [JBoss JIRA] Closed: (JBSEAM-1083) Page parameters are not restored properly in #{redirect.captureCurrentView}

Gavin King (JIRA) jira-events at lists.jboss.org
Tue Mar 20 21:15:48 EDT 2007

     [ http://jira.jboss.com/jira/browse/JBSEAM-1083?page=all ]

Gavin King closed JBSEAM-1083.

    Fix Version/s: 1.2.1.GA
       Resolution: Done
         Assignee: Gavin King

OK, gotit, thanks, fixed in CVS. Please test it for me.

> Page parameters are not restored properly in #{redirect.captureCurrentView}
> ---------------------------------------------------------------------------
>                 Key: JBSEAM-1083
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1083
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: Security
>    Affects Versions: 1.2.0.GA
>         Environment: Windows XP, JDK 1.6.0, JBoss 4.2.1.CR1
>            Reporter: Felix Ho?feld
>         Assigned To: Gavin King
>            Priority: Minor
>             Fix For: 1.2.1.GA
> The page params defined in pages.xml are not saved during the call to captureCurrentView.
> I ran this through the debugger and traced the bug down to org.jboss.seam.core.Pages.getViewRootValues(FacesContext facesContext). Things go wrong when retriving the page parameters:
> Code:
>          for ( Param pageParameter: page.getParameters() )
>          {
>             Object object = Contexts.getPageContext().get( pageParameter.getName() );
>             if (object!=null)
>             {
>                parameters.put(  pageParameter.getName(), object );
>             }
>          }
> It loops correctly over my parameters but it fails to retrieve them: pageParamter.getName() delivers the name of my  parameter correctly but but Contexts.getPageContext().get() always returns null. So nothing is ever put into the parameters map.

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


More information about the seam-issues mailing list