anchor.diff:                        }
                      }
                      ns.append("_");
  +
  +                   PortletConfig pc = null;
  +                   StringBuffer prpstring = new StringBuffer();
  +                   Set<String> prpnames = new HashSet<String>();
  +                   String sep = "";
  +                   try {
  +                      pc = dc.getPortletConfig(pid);
  +                      Enumeration<String> prps = pc.getPublicRenderParameterNames();
  +                      while (prps.hasMoreElements()) {
  +                         String prp = prps.nextElement();
  +                         prpnames.add(prp);
  +                         prpstring.append(sep + "'" + prp + "'");
  +                         sep = ", ";
  +                      }
  +                   } catch (Exception e) {}
                      
                      String pm = pu.getPortletMode(pid).toString();
                      String ws = pu.getWindowState(pid).toString();
  
positive.code:                                c1 = ",\n                      ";
                              }
                           }
                           // this is a hack, but just add all public parms for all portlets on page
                           for (String prp : prps.keySet()) {
                              out.write(c1 + "   '" + prp + "' : [");
                              String c2 = "";
                              for (String val : (String[])prps.get(prp)) {
                                 out.write(c2 + " '" + val + "'");
                                 c2 = ",";
                              }
                              out.write("]");
                              c1 = ",\n                      ";
                              
                           }
                        %>
                        }, 
                        'portletMode' : '<%=pm%>', 
                        'windowState' : '<%=ws%>'
                     },
                     // 'pubParms' : [<%=prpnames.toString()%>],
                     'pubParms' : ['imgName', 'color'],
                     'allowedPM' : ['view'],
                     'allowedWS' : ['normal'],
                     'renderData' : {
  
negative.code:                 PortalRequestContext prc = PortalRequestContext.getContext(request);
                  PortalURL pu = prc.getRequestedPortalURL(); 
                  Collection<PortalURLParameter> pups = pu.getParameters();
                  Map<String, String[]> pubparms = pu.getPublicParameters();
                  DriverConfiguration dc = (DriverConfiguration) prc.getServletContext()
                        .getAttribute(AttributeKeys.DRIVER_CONFIG);
               %>
               <c:forEach var="pid" items="${currentPage.portletIds}">
                  <%
  