anchor.diff:  
   
   
  -    <select name="page" onChange="doSwitchPage(this)">
  +    <select name="page" onChange="<portlet:namespace/>doSwitchPage(this)">
         <option value="Select. . .">Select. . .</option>
       <c:forEach items="${driverConfig.pages}" var="page">
         <option value="<c:out value="${page.name}"/>"><c:out value="${page.name}"/></option>
  
positive.code: <div>
    <h2>Portlet Applications</h2>
    <p>
      <!-- TODO: Should be namespaced! -->
  
      <script type="text/javascript">
          var portlets = new Array();
          <c:forEach items="${portletContainer.optionalContainerServices.portletRegistryService.registeredPortletApplications}" var="app">
              var i = 0;
              portlets['<c:out value="${app.applicationId}"/>'] = new Array();
              portlets['<c:out value="${app.applicationId}"/>'][i++] = 'Select. . .';
            <c:forEach items="${app.portletApplicationDefinition.portlets}" var="portlet">
              portlets['<c:out value="${app.applicationId}"/>'][i++] = '<c:out value="${portlet.portletName}"/>';
            </c:forEach>
          </c:forEach>
  
          function doSwitch(select) {
              var portletsSelectBox = document.forms['adminForm'].elements['availablePortlets'];
              for(i = 0; i< portletsSelectBox.options.length;i++) {
                  portletsSelectBox.options[i] = null;
              }
              if (select.value == '-') {
                  document.forms['adminForm'].elements['availablePortlets'].disabled = true;
              } else {
                  portletsSelectBox.disabled = false;
                  var pList = portlets[select.value];
                  for (i = 0; i < pList.length; i++) {
                      portletsSelectBox.options[i] = new Option(pList[i], pList[i]);
                  }
              }
              doSwitchButton(portletsSelectBox);
          }
  
          function doSwitchButton(select) {
              document.forms['adminForm'].elements['command'][1].disabled = (select.value == 'Select. . .' || select.disabled);
          }
      </script>
  
      <select name="applications" onChange="doSwitch(this)">
        <option value='-'>Select. . .</option>
        <c:forEach items="${portletContainer.optionalContainerServices.portletRegistryService.registeredPortletApplications}" var="app">
        <option value="<c:out value="${app.applicationId}"/>"><c:out value="${app.applicationName}"/></option>
        </c:forEach>
      </select>
  
      <select name="availablePortlets" disabled="true" onChange='doSwitchButton(this)'>
  
      </select>
  
  
negative.code:                   return;
                }
  
                for(var i=0; i < <portlet:namespace/>placedPortlets[select.value].length;i++) {
                    placePortletsSelect[i] = new Option(<portlet:namespace/>placedPortlets[select.value][i][1], <portlet:namespace/>placedPortlets[select.value][i][0]);
                }
  
            }
  