title: How can I specify errorStyle and warnStyle for JSF messages globally?
body: <p>I'm writing tiny web-application using JSF2.2 and Twitter Bootstrap for client side. </p>
  
  <p>I customized the look of list elements dumped by <code>&lt;h:messages&gt;</code> tag, but now I have to specify its <code>errorStyle</code> and <code>warnStyle</code> every time use <code>&lt;h:messages&gt;</code> something like this:</p>
  
  <pre><code>&lt;h:messages class="messages" errorClass="has-error" warnClass="has-warning"/&gt;
  </code></pre>
  
  <p>Is there a way to get rid of such boilerplate markup? Can I <em>set these attributes globally</em> somehow?</p>