Hi
I'm using a dataTable to display a List of results from a search, like
the following
<h:dataTable value="#{AuditHistory.auditHistory}" var="auditRecord"
rowClasses="rowEven, rowOdd">
If auditHistory is null or zero length I want to display a message in
the table like:
"Your search results returned zero items"
Currently the dataTable outputs nothing, so I could add a <h:outputText>
conditionally.
Normally I would use a <c:if> but I think I am not allowed to mix <c:if>
with JSF, and I don't think JSTL would know about the
#{AuditHistory.auditHistory} mamanaged bean anyway.
What is the best way of doing this?
Mel
"DISCLAIMER: This email, including any attachments, is intended only for use by
the addressee(s) and may contain confidential and/or personal information and
may also be the subject of legal privilege. If you are not the intended
recipient, you must not disclose or use the information contained in it. In
this case, please let me know by return email, delete the message permanently
from your system and destroy any copies.
Before you take any action based upon advice and/or information contained in
this email you should carefully consider the advice and information and
consider obtaining relevant independent advice.