title: JSF 2: Using enums in the rendered attribute
body: <p>Is there any way to check declaratively whether an enum has a specified value. For example:</p>
  
  <pre><code>&lt;h:graphicImage name="error.png" library="images" 
    rendered="#{viewController.current.status == Status.ERROR}" /&gt;
  </code></pre>
  
  <p>It's a little bit tedious to define a method in the managed beand that checks this for every enum value, e.g.</p>
  
  <pre><code>public boolean isStateIsError() {
    return current.getStatus() == Status.ERROR;
  }
  </code></pre>
  
  <p>Is there a shorter/better way of doing this?</p>