[richfaces-issues] [JBoss JIRA] (RF-11806) UIDataAdaptor breaks with Spring Webflow 2.3 when rendering pages for existing flows

Brian Leathem (Updated) (JIRA) jira-events at lists.jboss.org
Mon Dec 12 11:36:09 EST 2011


     [ https://issues.jboss.org/browse/RF-11806?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Leathem updated RF-11806:
-------------------------------

    Fix Version/s: 4.1.1.Final
      Description: 
The fix introduced for 4.1.0.CR1 by adding event registration to the constructor:

{code}
public UIDataAdaptor() {
        super();
        getFacesContext().getViewRoot().subscribeToViewEvent(PreRenderViewEvent.class, this);
    }
{code}

breaks when Spring Webflow restores the view in the middle of the flow with a NPE. E.g. when a data table is constructed, the viewRoot is not yet set on the current thread, which causes the exception above. 



  was:
The fix introduced for 4.1.0.CR2 by adding event registration to the constructor:

{code}
public UIDataAdaptor() {
        super();
        getFacesContext().getViewRoot().subscribeToViewEvent(PreRenderViewEvent.class, this);
    }
{code}

breaks when Spring Webflow restores the view in the middle of the flow with a NPE. E.g. when a data table is constructed, the viewRoot is not yet set on the current thread, which causes the exception above. 




    
> UIDataAdaptor breaks with Spring Webflow 2.3 when rendering pages for existing flows
> ------------------------------------------------------------------------------------
>
>                 Key: RF-11806
>                 URL: https://issues.jboss.org/browse/RF-11806
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-tables
>    Affects Versions: 4.1.0.CR2
>            Reporter: Marius Bogoevici
>            Assignee: Brian Leathem
>            Priority: Critical
>             Fix For: 4.1.1.Final
>
>
> The fix introduced for 4.1.0.CR1 by adding event registration to the constructor:
> {code}
> public UIDataAdaptor() {
>         super();
>         getFacesContext().getViewRoot().subscribeToViewEvent(PreRenderViewEvent.class, this);
>     }
> {code}
> breaks when Spring Webflow restores the view in the middle of the flow with a NPE. E.g. when a data table is constructed, the viewRoot is not yet set on the current thread, which causes the exception above. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list