title: how to add a f:ajax tag to an h:link?
body: <p>I have this:</p>
  
  <pre><code>&lt;h:link value="Sign In" outcome="login.jsp" /&gt;
  </code></pre>
  
  <p>When the link is clicked it navigates to login.jsp.  Works fine.</p>
  
  <p>I'd also like a method in a bean to get called on the click, so I tried this:</p>
  
  <pre><code>&lt;h:link value="Sign In" outcome="login.jsp" /&gt;
    &lt;f:ajax event="click" listener="#{loginHandler.dismissSignUpDialog}" /&gt;
  &lt;/h:link&gt;
  </code></pre>
  
  <p>But it never calls the method.  The method looks like this:</p>
  
  <pre><code>public void dismissSignUpDialog(AjaxBehaviorEvent e) {
      setSignUpDialogDismissed(true);
  }
  </code></pre>
  
  <p>Any idea what I'm doing wrong?  Thanks!</p>