1 Reply Latest reply on Sep 10, 2010 5:30 AM by Ilya Shaikovsky

    'Please Select One' not needed in Select List in this instance.

    Dan Acuff Newbie

      'Please Select One' not needed in Select List in this instance.

      It was added by the back-end coder:

       

       

      @SuppressWarnings("unchecked")
          public List<SelectItem> getEcometryItemStatusCodes() {
              List<SelectItem> retVal = new ArrayList<SelectItem>();
      
              try {
                  retVal.add(new SelectItem(null, "Please Select One"));
                  List<EcometryItemStatusCode> results = (List<EcometryItemStatusCode>) commonCodeService
                          .getCodeList(CommonCodeTypeEnum.ECOMETRY_ITEM_STATUS_CODE);
      
                  for (EcometryItemStatusCode v : results) {
                      retVal.add(new SelectItem(v.getEcometryCode(), v
                              .getEcometryCode()
                              + " " + v.getDescription()));
                  }
      
              } catch (Exception cgcEx) {
                  log.error("Could not get EcometryTaxExemptCode SelectItems", cgcEx);
              }
      
              return retVal;
          }
      

       

      How can I remove it when I am using rich:inplaceSelect?

       

       

        <rich:inplaceSelect id="col6b" value="#{_item.estatus}">
            <f:selectItems id="selectItems" value="#{mconsoleContext.ecometryItemStatusCodes}" />
            <a:support event="onviewactivated" reRender="col6b" />
        </rich:inplaceSelect>