code: public String buildSelectElementName(String attributes) {
  
          // get the active page elements
          List<CmsDialogElement> elementList = getElementList();
  
          int counter = 0;
          int currentIndex = -1;
          List<String> options = new ArrayList<String>(elementList.size());
          List<String> values = new ArrayList<String>(elementList.size());
          String elementName = getParamElementname();
          if (CmsStringUtil.isEmpty(elementName)) {
              elementName = getParamOldelementname();
          }
          for (int i = 0; i < elementList.size(); i++) {
              // get the current list element
              CmsDialogElement element = elementList.get(i);
  
              if (CmsStringUtil.isNotEmpty(elementName) && elementName.equals(element.getName())) {
                  // current element is the displayed one, mark it as selected
                  currentIndex = counter;
              }
              if ((!m_page.hasValue(element.getName(), getElementLocale()) && element.isMandantory())
                  || m_page.isEnabled(element.getName(), getElementLocale())) {
                  // add element if it is not available or if it is enabled
                  options.add(element.getNiceName());
                  values.add(element.getName());
                  counter++;
              }
          }
          return buildSelect(attributes, options, values, currentIndex, false);
      }
docs: Builds the html String for the element name selector.<p>
  
  @param attributes optional attributes for the &lt;select&gt; tag
  @return the html for the element name selectbox