Uploaded image for project: 'Portlet Bridge'
  1. Portlet Bridge
  2. PBR-63

Web app param org.richfaces.LoadScriptStrategy does not work

    Details

      Description

      Jboss portlet bridge's view handler doesn't initialize the RichFaces properly with context params. As a result, context parameters such as loadScriptStrategy and loadStyleStrategy are ignored and default value ALL is used, no matters what we specify at web.xml, thus loading resources such as javascript and css at per-portlet component level.

      I've tracked down the problem to commented-out line at /org/jboss/portletbridge/renderkit/portlet/PortletAjaxViewRootRenderer.java. There supposed to be an initialize method call, so richfaces are initialized properly with context params.

      My proposed path:

          1. Eclipse Workspace Patch 1.0
            #P jbpb-impl
            Index: src/org/jboss/portletbridge/renderkit/portlet/PortletAjaxViewRootRenderer.java
            ===================================================================
          • src/org/jboss/portletbridge/renderkit/portlet/PortletAjaxViewRootRenderer.java (revision 236)
            +++ src/org/jboss/portletbridge/renderkit/portlet/PortletAjaxViewRootRenderer.java (working copy)
            @@ -63,7 +63,7 @@

      ViewResources viewResources = new ViewResources();

      • //viewResources.initialize(context);
        + viewResources.initialize(context);
        viewResources.processHeadResources(context);

      Object[] headEvents = (Object[])viewResources.getHeadEvents();

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alexsmirnov Alexander Smirnov
                  Reporter:
                  alex_krasov Alex Krasov
                • Votes:
                  5 Vote for this issue
                  Watchers:
                  10 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: