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

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

    [ http://jira.jboss.com/jira/browse/JBSEAM-1083?page=comments#action_12356800 ] 
Gavin King commented on JBSEAM-1083:

A form submission, I suppose.

> 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