[ 
https://jira.codehaus.org/browse/DISPL-596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=287667#comment-287667
 ] 

Charissa Thomas commented on DISPL-596:
---------------------------------------

Even still in 2012, this issue still exists and the solution that was presented 
is quite a simple change and worked greatly.  Thanks Alvaro!
                
> In CheckboxTableDecorator, when changing default name is not working properly
> -----------------------------------------------------------------------------
>
>                 Key: DISPL-596
>                 URL: https://jira.codehaus.org/browse/DISPL-596
>             Project: DisplayTag
>          Issue Type: Bug
>            Reporter: Alvaro Villarroel
>
> when using CHECKBOXES and if we change the deaulf value for Name "_chk" to 
> another name let say "myName" is not working properly. this maybe due to this 
> method:
> public String getCheckbox()
>     {
>         String evaluatedId = ObjectUtils.toString(evaluate(id));
>         boolean checked = checkedIds.contains(evaluatedId);
>         StringBuffer buffer = new StringBuffer();
>         buffer.append("<input type=\"checkbox\" name=\"_chk\" value=\"");   
> <----------------------------- THIS LINE IS CAUSING THE BUG
>         buffer.append(evaluatedId);
>         buffer.append("\"");
>         if (checked)
>         {
>             checkedIds.remove(evaluatedId);
>             buffer.append(" checked=\"checked\"");
>         }
>         buffer.append("/>");
>         return buffer.toString();
>     }
> A possible solution may be to change line :
> ------------->   buffer.append("<input type=\"checkbox\" name=\"_chk\" 
> value=\"");  
> For
> buffer.append("<input type=\"checkbox\" ");
>         buffer.append(" name=\"");
>         buffer.append(fieldName);
>         buffer.append("\" value=\"");
>         buffer.append(evaluatedId); .........

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to