JSF Ajax Invoke Application is not executed?
<p>I have this simple facelets page:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"&gt;
&lt;h:head&gt;
    &lt;title&gt;Index&lt;/title&gt;
&lt;/h:head&gt;
&lt;h:body&gt;
    &lt;h:form&gt;
        &lt;h:inputText id="firstname" value="#{fooBar.firstname}"&gt;
            &lt;f:ajax event="keyup" render="echo" execute="myCommandButton"/&gt;
        &lt;/h:inputText&gt;
        &lt;h:commandButton value="Submit" action="#{fooBar.fooBarAction()}" id="myCommandButton"/&gt;
    &lt;/h:form&gt;
    &lt;br/&gt;
    &lt;h:outputText id="echo" value="#{fooBar.firstname}"/&gt;
&lt;/h:body&gt;
&lt;/html&gt;
</code></pre>

<p>and the Foobar bean is as follows:</p>

<pre><code>@ManagedBean
@ApplicationScoped
public class FooBar {

    private String firstname;

    public void setFirstname(String firstname) {
        this.firstname = firstname;
    }

    public String getFirstname() {
        return firstname;
    }

    public void fooBarAction() {
        System.out.println("Foo bar action being executed!!!");
    }
}
</code></pre>

<p>So my expectation is to see the text <strong>Foo bar action being executed</strong> whenever I type something in the <strong>inputText</strong> field, but it is not the case. What am I missing?</p>

<p><strong>Edit: Why am I expecting this behavior?</strong>
I am studying the book <a href="http://corejsf.com/" rel="nofollow">Core JavaServer Faces</a> and in the book it is noted that:</p>

<blockquote>
  <p>JSF 2.0 splits the JSF life cycle into two parts: execute and render.</p>
  
  <p>Execute consists of: Restore View -> Apply Request Values -> Process
  Validations ->  Update Model Values -> Invoke Application</p>
  
  <p>When JSF executes a component on the server, it:  </p>
  
  <p>-Converts and validates the component 's value (if the component is an input).</p>
  
  <p>-Pushes valid input values to the model (if the component is wired to a bean property).   </p>
  
  <p>-Executes actions and action listeners (if the component is an action).</p>
</blockquote>

<p>So here, myCommandButton should be executed, isn 't it? And execution of a component means its action to be executed?</p>

<p><strong>Edit #2</strong></p>

<p>This quotation is from <strong>JavaServer Faces Complete Reference</strong></p>

<blockquote>
  <p>If listener is not specified, the only action that will be invoked
  during the Invoke Application phase will be the one that corresponds
  to an ActionSource component listed in the execute attribute.</p>
</blockquote>

<p>So as far as I understand, in my example, I have a component that implements the ActionSource interface (myCommandButton), and the action attribute of this component should be executed. But it is not?</p>