The JIRA is :
http://jira.jboss.com/jira/browse/JBPORTAL-1316

the patch code is :

  |             String windowID = null;
  |             // we have the windowName (which is the window name), but we 
need the
  |             // window id
  |             Map portletContexts = page.getWindowContextMap();
  |             for (Iterator i = portletContexts.keySet().iterator(); 
i.hasNext();) {
  |                     windowID = (String) i.next();
  |                     WindowContext portletContext = (WindowContext) 
portletContexts
  |                                     .get(windowID);
  |                     if (windowName.equals(portletContext.getWindowName())) {
  |                             if (log.isDebugEnabled()) {
  |                                     log.debug("found the portlet to render: 
" + windowName);
  |                             }
  |                             break;
  |                     }
  |             }
  | 
  |             if (windowID == null) {
  |                     log
  |                                     .warn("can't find the window id of the 
window name on this page. Page ["
  |                                                     + page.getPageName()
  |                                                     + "] Window ["
  |                                                     + windowName
  |                                                     + "]. This window won't 
be shown in page.");
  |                     return;
  |             }
  |             if (page.getWindowContext(windowID) == null) {
  |                     log.warn("no such window on this page. Page [" + 
page.getPageName()
  |                                     + "] Window name [" + windowName + "]" 
+ "] Window Id ["
  |                                     + windowID + "]");
  |                     return;
  |             }
  | 
  |             WindowContext windowContext = page.getWindowContext(windowID);
  |             RenderContext renderContext = (RenderContext) request
  |                             
.getAttribute(LayoutConstants.ATTR_RENDERCONTEXT);
  | 
  |             renderContext = renderContext.getContext(windowContext);
  | 
  |             try {
  |                     renderContext.render();
  |                     out.write(renderContext.getMarkupFragment().toString());
  |                     out.flush();
  |             } catch (RenderException e) {
  |                     throw new JspException(e);
  |             }
  | 
(more readable than in the JIRA without code format).

To replace in the PortletTagHandler class from :
  if (page.getWindowContext(windowName) == null)
      {
         log.debug("no such window on this page. Page [" + page.getPageName() + 
"] Window [" + windowName + "]");
         return;
      }
.../...
To : the end of the method. 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4027008#4027008

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4027008
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to