7 Replies Latest reply on Feb 25, 2009 4:19 AM by bronk horst

    valueChangeListener in modalPanel

    bronk horst Newbie

      Hello everyone,

      im trying to launch an valuechangelistener from an input-text-field in my modalpanel, but this doesnt work. When I place the inputText on my "normal" page, everything works fine, debugger also stops within the v-c-listener. Does someone have a solution for this?
      Thanx & lg

      <h:inputText id="getFullEditAddress" required="true" value="#{tour2plan.displayTour[tour2plan.selectedTourStop].fullAddress}"
       immediate="true" size="50" styleClass="portlet-form-input-field"
       requiredMessage="Ein Wert ist erforderlich!" validatorMessage="Bitte kontrollieren Sie die Angaben!"
       valueChangeListener="#{tour2plan.changeEditSingleStopStartAddress}" >
      <a4j:support event="onchange" reRender="newPlanningRequest" />

       public void changeEditSingleStopStartAddress(ValueChangeEvent event) {
       String newEditSingleStopStartAddress = (String) event.getNewValue();
       ArrayList<Suggestion> resultList = getEditSingleStopStartAddressAlternatives(newEditSingleStopStartAddress);
       if (resultList.size() > 1) {
       this.showEditRadios = true;
       } else {
       this.showEditRadios = false;