2 Replies Latest reply on Aug 2, 2007 10:43 PM by Igor Shabalov

    ajax4jsf onchange event doesnt reRender Textfield

    Bansilal Haudakari Newbie

      When the page loads the textfield is disabled i.e. non-editable. It should be editable only thru onchange event of other component
      Here is the snippet
      <h:selectOneMenu id="assetMgmt" value="#{deviceBean.selectedAsset}" >
      <f:selectItem itemLabel="" itemValue="" />
      <f:selectItems value="#{deviceBean.assetList}" />
      <a4j:support action="#{deviceBean.loadTagMode}" event="onchange" reRender="propertyTag"/>

      <h:panelGrid columns="2" styleClass="detail" columnClasses="label" >

      <h:outputLabel><h:outputText value="Property Tag" /> </h:outputLabel>
      <h:inputText id="propertyTag" value="#{deviceBean.tagNumber}" disabled="#{!updateDeviceBean.disableMode}">
      <a4j:support action="#{deviceBean.loadAssetDetails}" event="onblur" reRender="mypanel" />


      Backing Bean
      public void loadTagMode() {
      System.out.println("Inside loadTagDetails");
      disableMode = true;

      Any pointers/suggestions will be highly appreciated