title: Multiple action listeners with a single command component in JSF
body: <p>Is it possible to invoke more than one listener method using a single command component? For example,</p>
  
  <p>A view scoped bean:</p>
  
  <pre><code>@ManagedBean
  @ViewScoped
  public final class ViewScopedBean implements Serializable
  {
      @ManagedProperty(value = "#{sessionScopedBean}")
      private SessionScopedBean sessionScopedBean; //Getter/Setter.
      private static final long serialVersionUID = 1L;
  
      public ViewScopedBean() {}
  
      public void action()
      {
          //Do something.
          sessionScopedBean.action();
      }
  }
  </code></pre>
  
  <p>A session scoped bean:</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public final class SessionScopedBean implements Serializable
  {
      private static final long serialVersionUID = 1L;
  
      public SessionScopedBean () {}
  
      public void action() {
          //Do something.
      }
  }
  </code></pre>
  
  <p>A command button like the one given below,</p>
  
  <pre><code>&lt;h:commandButton value="Action" actionListener="#{viewScopedBean.action}"/&gt;
  </code></pre>
  
  <p>invokes the method <code>action()</code> in <code>ViewScopedBean</code> which in turn invokes the <code>action()</code> method in <code>SessionScopedBean</code> by injecting an instance of that bean.</p>
  
  <p>Is it somehow possible do the same on XHTML so that a need to inject a bean just to invoke a method can be eliminated?</p>