'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>
component just grabs the data returned by that method. So you probably need to create another method which returns the lsit without that static SelectItem.