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

Felix Ho?feld (JIRA) jira-events at lists.jboss.org
Tue Mar 20 21:01:48 EDT 2007

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

Felix Ho?feld updated JBSEAM-1083:

                   Summary: Page parameters are not restored properly in #{redirect.captureCurrentView}  (was: Page parameters not working on captured in #{redirect.captureCurrentView})
    Workaround Description: Do not use page parameters on classes that are @Restrcted on class level.
                   Affects: [Documentation (Ref Guide, User Guide, etc.)]
                  Priority: Minor  (was: Major)

> 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
>            Priority: Minor
> 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