myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Marinschek (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TRINIDAD-1600) Trinidad2 - Dialog navigation clears View Scope
Date Thu, 29 Apr 2010 01:58:50 GMT

    [ https://issues.apache.org/jira/browse/TRINIDAD-1600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12862058#action_12862058
] 

Martin Marinschek commented on TRINIDAD-1600:
---------------------------------------------

Hi Martin, Max,

in cs-JSF, independent of your discussion, we followed the original approach suggested by
Max with our dialog handling - I am not entirely sure that the view-map should be cleared
when setViewRoot is set. I believe that this is somewhat too much of hidden behaviour for
this method. Should we take this up with the EG?

best regards,

Martin

> Trinidad2 - Dialog navigation clears View Scope
> -----------------------------------------------
>
>                 Key: TRINIDAD-1600
>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1600
>             Project: MyFaces Trinidad
>          Issue Type: Bug
>    Affects Versions: 2.0.0-alpha
>         Environment: Trinidad 2.0 branch, JSF RI 2.0.0RC2
>            Reporter: Martin Koci
>            Assignee: Max Starets
>             Fix For: 2.0.0.3-core
>
>         Attachments: patch.txt, patch2.txt, patch3.diff
>
>
> JSF 2.0 introduces new scope "View Scope" implemented with a Map UIViewRoot.viewMap.
Spec also says that call FacesConfig.setViewRoot() clears that Map.
> Problem: Trinidad NavigationHandler uses method handleNavigation for detection if a dialog
navigation will be performed - however that method creates new UIViewRoot and sets it to FacesContext
-> clears view scope. If user places managed bean into view scope and starts a dialog:
navigation on that view, bean is removed and new instance of the bean is created after dialog
return.
> Solution: use new JSF 2.0 ConfigurableNavigationHandler API

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


Mime
View raw message