Portals Bridges
  1. Portals Bridges
  2. PB-32

FacesPortlet does not invoke createView if restoreView returns null

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Component/s: jsf
    • Labels:
      None
    • Environment:
      Ubuntu linux 5.10, JDK 1.5.0_05, Tomcat 5.5.12, Jetspeed 2.0-M4, MyFaces 1.1.1, Struts Shale

      Description

      During handling of a render request, the FacesPortlet calls restoreView on the view handler, but not createView if the restoreView returns null. This is causing the Shale view controllers not to be invoked when there is no view stored in the session (for instance the first time the portlet is invoked).

      The following change to FacesPortlet line 453 resolves this:
      // context.getApplication().getViewHandler().restoreView(context, vi);
      ViewHandler viewHandler = context.getApplication().getViewHandler();
      UIViewRoot view = viewHandler.restoreView(context, vi);
      if (view == null)

      { view = viewHandler.createView(context, vi); view.setViewId(vi); context.renderResponse(); }

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Ronald Holshausen
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development