I’m quite new to JavaEE and XHTML and I hope you can help me.
I have some problems with the <c:if> tag and I know it must have to do something with the rendertime. So I have a table and I want to show a commandlink, not on all entries in the list, but on some which have a specific type or attribute.
Here goes my code:
<h:dataTable id="list" border="1" cellspacing="0" cellpadding="4"
value="${listbean.entryList}" var="entry" >
<c:if test="${entry.eventType == 'Übung' or entry.eventType== 'Praktikum' }">
<h:column>
<h:commandLink action="#{listbean.deleteEntry()}" value="show event">
<f:param name="id" value="${entry.id}"/>
</h:commandLink>
</h:column>
</c:if>
Is it possible to solve it?
Well i solved it by useing some work arround.
I declared some boolean vars into the java code and used the EL to test if the values are true or false