title: Adding custom attribute (HTML5) support to Primefaces (3.4)
body: <p>In trying to implement the simple html5 attribute 'autofocus' in my JSF/Primefaces web-application, I was alerted to the fact that the components do not pass all unknown attributes on to the final markup. I can understand reasonings for this, as components can be complex combinations of html markup and it would not be clear where to place the attributes if they are not already well-defined by the component.</p>
  
  <p>But the best solution for me is to have support for autofocus (and any other possible types of attributes I may want to support in my application that primefaces has not defined).</p>
  
  <p>I have seen <a href="https://stackoverflow.com/questions/6859520/adding-custom-attribute-html5-support-to-jsf-2-0-uiinput-component">Adding custom attribute (HTML5) support to JSF 2.0 UIInput component</a>, but that seems to apply for the basic JSF components and does not work for PrimeFaces components.</p>
  
  <p>How do I extend the component/rendering of Primefaces to support this?</p>