[jboss-user] [JBoss Portal] - Re: Unable to add portlets with 2.7.0

jbportaldeveloper28 do-not-reply at jboss.com
Tue Nov 4 17:09:34 EST 2008


we had a similiar issue.  What we did for a temporary fix was to comment out the getIcon() call from returning a value.

so under server\xxx\deploy\jboss-portal.sar\portal-core.war\WEB-INF\jsp\content\portlet_editor.jsp, we did the following:


  | 
  |    private String getIcon(PortletInfo info)
  |    {
  | /*
  |       String iconLocation = PortletContentEditorPortlet.DEFAULT_PORTLET_ICON;
  |       PortletInfoInfo portletInfo = info.getAttachment(PortletInfoInfo.class);
  | 
  |       if (portletInfo != null)
  |       {
  |          PortletIconInfo iconInfo = portletInfo.getPortletIconInfo();
  |          if (iconInfo != null && iconInfo.getIconLocation(PortletIconInfo.SMALL) != null)
  |          {
  |             iconLocation = iconInfo.getIconLocation(PortletIconInfo.SMALL);
  |          }
  |       }
  | 
  |       return iconLocation;
  | */
  |      return "";
  |    }
  | 
  | 

Worked for now..but long term effects..don't know just yet what else that will impact.  Give that a shot.

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4186836



More information about the jboss-user mailing list