[ http://issues.apache.org/struts/browse/WW-1300?page=comments#action_37213 ]
Philip Luppens commented on WW-1300: ------------------------------------ Well, I found it .. in the select template, they are actually doing: <#assign itemKeyStr = itemKey.toString() /> So I guess we should simply do the same for the checkboxlist .. could you file an issue at the Jira ? I'll patch it tomorrow, but you can do it yourself if you like by extending themes (see the wiki docs) and copying the template/simple/checkboxlist.ftl and patching it as follows: <input type="checkbox" name="${parameters.name?html}" value="${itemKey?html}" id="${parameters.name?html}-${itemCount}"><#rt/> to: <#assign itemKeyStr = itemKey.toString() /> <input type="checkbox" name="${parameters.name?html}" value="${itemKeyStr?html}" id="${parameters.name?html}-${itemCount}"><#rt/> > Unwanted locale-formatting of checkbox values > --------------------------------------------- > > Key: WW-1300 > URL: http://issues.apache.org/struts/browse/WW-1300 > Project: Struts Action 2 > Type: Bug > Components: Views > Versions: WW 2.2.2 > Environment: Windows XP, FreeMarker for view > Reporter: Dennis Doubleday > Priority: Minor > > See User Forum thread > http://forums.opensymphony.com/thread.jspa?threadID=28212&tstart=0 for > context. > We are using a checkbox list like this: > <@ww.checkboxlist label="Roles" name="roleIds" list="roleMap"/> > The "roleMap" is a Map<Long,String>. The output of this is: > <input type="checkbox" name="roleIds" value="87" id="roleIds-1"/> > <label for="roleIds-1" class="checkboxLabel">newrole</label> > <input type="checkbox" name="roleIds" value="4,704" id="roleIds-2"/> > <label for="roleIds-2" class="checkboxLabel">User</label> > <input type="checkbox" name="roleIds" value="91" id="roleIds-3"/> > <label for="roleIds-3" class="checkboxLabel">adminall</label> > Note that second one--the Long value gets written as "4,704". The comma > causes a conversion error when the form is submitted. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]