inside a iteration with primefaces dataList I want render an image conditionally like this:
<ui:param name="curTriggerState" value="#{jobListController.getTriggerState(curJobTriggerInfo)}" />
<p:column rendered="#{showCurJobTrigger}">
<h:outputText value="#{curTriggerState}" />
<h:graphicImage value="/resources/images/triggerstate_none_48.png"
rendered="#{curTriggerState eq 'NONE'}" />
<h:graphicImage value="/resources/images/triggerstate_normal_48.png"
rendered="#{curTriggerState eq 'NORMAL'}" />
<h:graphicImage value="/resources/images/triggerstate_paused_48.png"
rendered="#{curTriggerState eq 'PAUSED'}" />
<h:graphicImage value="/resources/images/triggerstate_complete_32.png"
rendered="#{curTriggerState eq 'COMPLETE'}" />
<h:graphicImage value="/resources/images/triggerstate_error_48.png"
rendered="#{curTriggerState eq 'ERROR'}" />
<h:graphicImage value="/resources/images/triggerstate_blocked_48.png"
rendered="#{curTriggerState eq 'BLOCKED'}" />
</p:column>
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.