title: changing styleClass on Condition for primefaces components
body: <p>Is there any way to change styleClass based on condition for primefaces components?</p>
  
  <p>if there is,
  please suggest me.</p>
  
  <p>I wrote like this..</p>
  
  <pre><code>styleClass="#{(bean.comment==null) ? style1 : style2}"
  </code></pre>
  
  <p>is it correct way to give value for styleClass?</p>
  
  <p>please suggest me better ways if any.</p>
  
  <p>thank u</p>