[ 
http://issues.apache.org/struts/browse/SHALE-284?page=comments#action_38224 ] 
            
Craig McClanahan commented on SHALE-284:
----------------------------------------

How recent is the version of Shale you are using?  I ask because the current 
version (and the one shipped in 1.0.3) does not operate as you describe.

Instead, the current code implements restoreView() like this:

    public UIViewRoot restoreView(FacesContext context, String viewId) {
        UIViewRoot view = original.restoreView(context, viewId);
        setupViewController(context, view, viewId, true);
        return view;
    }

so that setupViewController() wil be called unconditionally.  There, the 
setCallback() method will be called (with "true" as an argument because of the 
fourth argument to setupViewController(), as long as an associated managed bean 
can be found, *and* that bean implements ViewController.

One thing to double check is that the name of your managed bean corresponds to 
the mapping rules that Shale is applying to the view id ... see the javadocs on 
org.apache.shale.view.impl.DefaultViewControllerMapper for the default rules 
(unless you have provided your own mapper instead).


> ViewController.setPostback() not called when it should be
> ---------------------------------------------------------
>
>                 Key: SHALE-284
>                 URL: http://issues.apache.org/struts/browse/SHALE-284
>             Project: Shale
>          Issue Type: Bug
>          Components: Core
>            Reporter: Craig McClanahan
>            Priority: Minor
>
> Reported by Stefan Meyer on the shale-user mailing list:
> I use shale and facelets and MyFaces. The ViewViewHandler figures out if
> the current request is a postback by looking at the View returned by the
> original ViewHandler. This is never null in my case. In the case of a
> postback it is a UIViewRoot withour children. Maybe this should be taken
> into account.

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

        

Reply via email to