datatable and jstl together in jsf

Y

yok ki

Hi,

I have that simplified code lets say:

<h:datatable value="#{data.contacts}" var="contact">
<h:column>
<h:eek:utputText value="#{contact.name}" />
</h:column>
</h:datatable>

and when i want to use a detail in that bean lets say showName boolean
variable, how can i take that condition into that code?

if i put that condition as usual, it is not working because contact is
not a bean defined in managed beans.

<c:if test="${contact.showName}">
<h:column>
<h:eek:utputText value="#{contact.name}" />
</h:column>
</c:if>


and unfortunately our usual jsf syntax is not working also.

<c:if test="#{contact.showName}">
<h:column>
<h:eek:utputText value="#{contact.name}" />
</h:column>
</c:if>

Could you please lead me for a solution if you have any idea?

Thanks and Regards...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top