Richard Thomas wrote: > Hi, > [snip] > We would like to stop the whole of that column from being drawn if > none of the reports has the executable attribute set. > I think you're going to have to do a bit of work before sending your reports to DisplayTag. You'll have to check through your list of reports and set a variable somewhere that you can use to determine whether to display a column or not. In the example below I've used "anyExecutable" and put it in a <c:if> tag to include or exclude the column depending on the reports you are about to list.
<display:table requestURI="listreports.page" id="row" name="reports" pagesize="${initParam.pSize}"> <c:if test="${anyExecutable}"> <display:column href="executeReport.page" paramId="reportID" paramProperty="report.id"> <c:if test="${row.displayExecute}"> <c:out value="[Execute]"/> </c:if> </display:column> </c:if> </display:table> Does that solve the problem? Ed! ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user