RowNum is not correct when we have TableDecorator (Row added using the
TableDecorator is not atken into account)
----------------------------------------------------------------------------------------------------------------
Key: DISPL-557
URL: http://jira.codehaus.org/browse/DISPL-557
Project: DisplayTag
Issue Type: Bug
Components: Decorators
Affects Versions: 1.1
Reporter: ganesh gowtham
Priority: Blocker
Attachments: untitled.JPG
Java
----
public class MyTableDecorator extends TableDecorator {
@SuppressWarnings("unchecked")
public String startRow() {
if (getViewIndex() == 0) {
result = generateReferentialRow();
} else {
result = super.startRow();
}
return result;
}
private String generateReferentialRow()
{
String str ;
// some logic to build one row ... <tr><td>value from request scope</td></tr>
return str ;
}
JSP
----
<display:table name="<%=resultData%>"
decorator="sample.SacCalendarTableDecorator" />
//......
</display:table>
records which i am adding in using the MyTableDecorator for 1st Row ,
is adding in the table ,but row count shows the orignal list only(i added first
row
using the decorator)
example , if my result list's size is 4 and i am adding one row in decorator
so my row count should show totally 5 rows ( but now it is showing 4 rows ) in
JSP
Please verify whether it is bug ,or any properties which i need to add .
Appreciate for your Great Work !!! .
Thanks
Gowtham Ganamukala
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
displaytag-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel