I am trying to group elements in my table using the group attribute by using group="1" under Display tag version 1.0. I have also set up my database query to be sorted and grouped by required fields:
...
GROUP BY project
ORDER BY project, name ASC
However, when I try to view the page, I get the following error:
Hello,
I am trying to group elements in my table using the group attribute by using group="1" under Display tag version 1.0. I have also set up my database query to be sorted and grouped by required fields:
...
GROUP BY project
ORDER BY project, name ASC
However, when I try to view the page, I get the following error:
Exception: [.DecoratorFactory] Unable to load 1
Cause: 1
org.displaytag.decorator.DecoratorFactory.loadColumnDecorator(DecoratorFactory.java:82)
org.displaytag.tags.ColumnTag.addHeaderToTable(ColumnTag.java:588)
org.displaytag.tags.ColumnTag.doEndTag(ColumnTag.java:521)
Can any help me to solve this problem?
Thanks for your time.
It's hard to tell what's up from what you've posted. Can you show us your <display:table> tag in the jsp page?
Hello, Ed,
I can indeed:
<display:table width="100%" name="reports" cellspacing="0" cellpadding="3" id="row" requestURI="" pagesize="25">
<display:column property="project" title="Project" class="pageContentFontGrey" sortable="true" width="200" group="1" />
<display:column title="Report Name" sortable="true">
<a class="inPageActionLinkLarge" href="viewReport.action?reportName=<c:out value="${row.reportName}"/>" alt="View this report" title="View this report"><c:out value="${row.reportName}" /></a>
</display:column>
<display:column title="Result" sortable="true" class="pageContentFontGrey" width="80" maxLength="90"><Result></display:column>
<display:setProperty name="paging.banner.placement" value="both" />
<display:setProperty name="paging.banner.group_size" value="6" />
<display:setProperty name="paging.banner.item_name" value="Report" />
<display:setProperty name="paging.banner.items_name" value="Reports" />
<display:setProperty name="paging.banner.all_items_found" value="<span id='paginationInformation'> <b>{0}</b> {1} found, showing all available reports</span>" />
<display:setProperty name="basic.empty.showtable" value="false" />
<display:setProperty name="paging.banner.onepage" value="<span id='pageLinks'> </span>" />
<display:setProperty name="paging.banner.page.separator" value=" " />
</display:table>
If I take the group="1" attribute out, I get no exception, but it obviously does not group by project.
Thanks
Hello, Ed,
I have solved this problem. I was not linking to the correct tld within the page.
Thank you for taking a look at this for me.