CheckboxTableDecorator uses hardcoded "_chk" instead of fieldName
-----------------------------------------------------------------

                 Key: DISPL-630
                 URL: http://jira.codehaus.org/browse/DISPL-630
             Project: DisplayTag
          Issue Type: Bug
          Components: Decorators
            Reporter: Ivan
            Priority: Critical


Problem:
In the "[org.displaytag.decorator.]CheckboxTableDecorator" class ("getCheckbox" 
method) there is a line:
buffer.append("<input type=\"checkbox\" name=\"_chk\" value=\"");

As long as "_chk" is hardcoded there is no practical use of this class. And 
only one table on the page can be decorated with this decorator.

Solution:
This line for sure must be rewritten in such a way:
buffer.append("<input type=\"checkbox\" name=\"" + fieldName + "\" value=\"");



-- 
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

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to