5 Replies Latest reply: Nov 20, 2012 7:27 AM by Cvele_new_account RSS

    ValueChangeListener, autoSubmit & .renderResponse() problem

    Cvele_new_account
      Hi all,

      In my (autoSubmit) af:inputText, I have valueChangeListener, in which (under some circumstances) I call
          FacesContext.getCurrentInstance().renderResponse();
      In this way, in fact I want to skip my actionListener attached on the command toolbar button.
      So, when the user changes the inputText value, and click on the button, it triggers the valueChangeListener which calls renderResponse(), but after that, the actionListener are also performed.
      This, however, does not occur if the autoSubmit for the inputText is false, namely, lifecycle goes directly to the render response phase, without executing action listener.

      So, how to skip invoke action phase when autoSubmit=true ?

      Jdev 11.1.1.6