0 Replies Latest reply on Mar 19, 2007 2:21 AM by Waheed murad

    Delaying ValueChangeEvent problem...

    Waheed murad Newbie

      I am queuing event when it is fired after Apply_Request_values phase for Update_model_value phase but it is fired first time during(Apply_Request_values) but not after Update_model_Values phase....

      public void changeMethod(ValueChangeEvent event)
      {

      PhaseId phaseId = event.getPhaseId();
      String oldValue = (String) event.getOldValue();
      String newValue = (String) event.getNewValue();

      if (phaseId.equals(PhaseId.ANY_PHASE)){

      System.out.println("Called ANY_PHASE");
      event.setPhaseId(PhaseId.UPDATE_MODEL_VALUES);
      event.queue();

      }else if (phaseId.equals(PhaseId.UPDATE_MODEL_VALUES)){

      System.out.println("Called after UPDATE MODEL VALUES phase..");

      }

      }