title: Ajax request and attributes
body: <p>I am trying <a href="http://www.tutorialspoint.com/jsf/jsf_attribute_tag.htm" rel="nofollow">this tutorial</a> which describes how to set attributes into server call and how to analyse the attributes on backing bean; </p>
  
  <pre><code>&lt;h:commandButton id="submit" 
  actionListener="#{userData.attributeListener}" action="result"&gt; 
     &lt;f:attribute name="value" value="Show Message" /&gt;                
     &lt;f:attribute name="username" value="JSF 2.0 User" /&gt;
  &lt;/h:commandButton&gt;
  </code></pre>
  
  <p>I googled a lot but most examples show how to set attrs for synch-ed calls not the asynch-ed ones :S So my question is ... how to send attributes on server if that would be the ajax call and how to get them on backing bean (see suggestion A code snippet)?</p>
  
  <p><strong>suggestion A :</strong></p>
  
  <pre><code>&lt;h:commandButton id="submit" 
      actionListener="#{userData.attributeListener}" action="result"&gt; 
         &lt;f:ajax&gt;
              &lt;f:attribute/&gt;? how to
         &lt;/f:ajax&gt;
  
      &lt;/h:commandButton&gt;
  </code></pre>
  
  <p>and if there is a good tutorial concerning to this question please do share the link :)</p>
  
  <p>Thanks</p>