title: JSF: How to add ajax functionality to component in backing bean?
body: <p>I want to incorporate the  functionality to a HtmlCommandButton.  How do I go about doing that?  I can't seem to find too many examples on the web.  I see there is something called AjaxBehavoir, but I'm not sure how to incorporate that into my HtmlCommandButton.  Essentially I want to do the following to my component:</p>
  
  <pre><code>  &lt;f:ajax execute="@this" render="component1 component2" /&gt;
  </code></pre>
  
  <p>Thanks!</p>