title: Conditionally show image in JSF inside dataList
body: <p>inside a iteration with primefaces dataList I want render an image conditionally like this:</p>
  
  <pre><code>&lt;ui:param name="curTriggerState" value="#{jobListController.getTriggerState(curJobTriggerInfo)}" /&gt;
  &lt;p:column rendered="#{showCurJobTrigger}"&gt;
      &lt;h:outputText value="#{curTriggerState}" /&gt;
      &lt;h:graphicImage value="/resources/images/triggerstate_none_48.png" 
          rendered="#{curTriggerState eq 'NONE'}" /&gt;
      &lt;h:graphicImage value="/resources/images/triggerstate_normal_48.png" 
          rendered="#{curTriggerState eq 'NORMAL'}" /&gt;
      &lt;h:graphicImage value="/resources/images/triggerstate_paused_48.png" 
          rendered="#{curTriggerState eq 'PAUSED'}" /&gt;
      &lt;h:graphicImage value="/resources/images/triggerstate_complete_32.png" 
          rendered="#{curTriggerState eq 'COMPLETE'}" /&gt;
      &lt;h:graphicImage value="/resources/images/triggerstate_error_48.png" 
          rendered="#{curTriggerState eq 'ERROR'}" /&gt;
      &lt;h:graphicImage value="/resources/images/triggerstate_blocked_48.png" 
          rendered="#{curTriggerState eq 'BLOCKED'}" /&gt;
  &lt;/p:column&gt;
  </code></pre>
  
  <p>jobListController.getTriggerState returns a string checked in the corresponding render attribute. The ouputText prints out the correct state. But no image is drawn. The paths of the images are correct if I set rendered="true" the image is drawn.
  Cannot find my mistake. Thought the ui:param could be the cause, but the outputText prints out the correct string.</p>