Checking values in a datatable?
Hello,
I'm passing my datatable a CachedRowSet
I want to render or not render a certain element depending on a value from the database that is either null or contains a blob.
The following tag works perfectly, If you mouseover the button you'll see a photo.
<h:column>
<f:facet name="header"><h:outputText value="#{textbundle.orderformphoto}"/></f:facet>
<t:popup displayAtDistanceX="10" displayAtDistanceY="10">
<h:commandButton id="fotobutton" value="#{textbundle.orderformshowphoto}"/>
<f:facet name="popup">
<h:graphicImage id="foto" value="toonfoto?bierid=#{rowVar.BierNr}"/>
</f:facet>
</t:popup>
</h:column>
My problem is that I don't want to render the buttons if there is no photo. (some items just don't have a photo in the database)
I tried checking it with jstl
<c:if test="${not empty rowVar.Foto}">blabla</c:if>
but it doesn't seem to work, not a single button is displayed
However in my original page (I'm converting a normal jsp project to jsf) this does work.
Anyone an idea?

