Hey folks, first a quick thank you for such an awesome project.
DisplayTag has saved me so much time, and with style!
I'm running into a very very strange problem in my current work,
however. The application searches a Lucene index and presents
results using DisplayTag. I've used the media attribute to make sure
that HTML-ified columns don't appear in exported documents, and we
make heavy use of sorted columns.
However, on one page, DT appears to ignore the sortable and media
attributes (fails to display sorting links for sortable="true"
columns, and media="html" columns appear in exports). Now, the
catch is that I have a second .jsp page, which is almost identical
(identical up to the first dt:column tag), in which everything works
perfectly. HTML-ified columns appear only on the page, not in
exports, and sort links are present and work.
So, my question:
Is there *any* condition under which sortable or media attributes
would be ignored or revert to defaults? I'm groping for any hint
where this bug might be.
I've pasted the source of the offending page below, just in case I've
missed something really obvious.
Thanks much!
-Justin
[EMAIL PROTECTED]
----- SNIP ----
<%@ page language="java" isELIgnored ="false" %>
<%@ taglib uri="webwork" prefix="ww" %>
<%@ taglib uri="displaytag" prefix="dt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/
TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Search Results</title>
</head>
<body>
<ww:if test="searchResults != null">
<ww:set name="results_per_page" scope="request"
value="profile.searchResultsPerPage" />
<ww:set name="results" value="searchResults" scope="request"/>
<dt:table pagesize="${results_per_page}" name="results"
class="dataTable" export="true" id="row"
requestURI="executeStoredSearch.action">
<dt:setProperty name="export.csv.filename"
value="searchResults.csv"/>
<dt:setProperty name="export.excel.filename"
value="searchResults.xls"/>
<dt:setProperty name="export.xml.filename"
value="searchResults.xml"/>
<dt:setProperty name="paging.banner.placement"
value="both"/>
<dt:column title="Account ID" sortable="true" media="html">
<a href="<ww:url value="'viewDocument.action'">
<ww:param name="'iid'"
value="#attr.row.get('accountID')"/>
</ww:url>">
<ww:property value="#attr.row.get('accountID')"/>
</a>
</dt:column>
<dt:column title="AccountNum" sortable="true" media="csv
excel xml">
<ww:property value="#attr.row.get('accountID')"/>
</dt:column>
<dt:column title="Full Name" sortable="true">
<ww:property value="#attr.row.get('lastName')"/>,
<ww:property value="#attr.row.get('firstName')"/>
</dt:column>
<ww:iterator value="profile.searchResultColumns">
<ww:set name="column_title" scope="request"
value="columnTitleMap[top]" />
<dt:column title="${column_title}" sortable="false">
<ww:property value="#attr.row.get(top)"/>
</dt:column>
</ww:iterator>
</dt:table>
</ww:if>
<ww:else>
<h3>No Results Found for Search</h3>
</ww:else>
</body>
</html>
---- SNIP ----
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
displaytag-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-user