0 Replies Latest reply on Oct 23, 2011 2:19 AM by zeroshade

    How to deselect a rich:select Component

    zeroshade

      Hi everybody, this may sound a silly question however I haven't found a way or event to deselect a rich:select component with the enable manual input option set to true. For example I got this code:

       

       

      <rich:select id="selectEmpresa"
                                           value="#{empresaDM.searchEmpresa}"
                                           converter="entityConverter"
                                           enableManualInput="true" onblur="alert('onBlur')"
                                            >
                                  <f:selectItems value="#{suggestionEntitiesDM.availableEntitiesList(suggestionEntitiesDM.empresa)}"
                                                  var="empresa" itemLabel="#{empresa.label}" itemValue="#{empresa}" noSelectionValue="#{null}"/>
                                  <a4j:ajax execute="@this" event="selectitem" listener="#{empresaController.empresaSelectedListener}"></a4j:ajax>
                                  <a4j:ajax execute="@this" event="blur" listener="#{empresaController.empresaSelectedListener}"></a4j:ajax>
                              </rich:select>
      

       

      Thought that by using the event blur, when deleting all the input on the component, it will process it, and set a null on the selecte value, However this is not working. Is there a way to achieve this? Thanks a lot.