You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "tm_jee (JIRA)" <ji...@apache.org> on 2006/04/29 17:29:18 UTC
[jira] Resolved: (WW-1300) Unwanted locale-formatting of checkbox
values
[ http://issues.apache.org/struts/browse/WW-1300?page=all ]
tm_jee resolved WW-1300:
------------------------
Fix Version: 2.0
Resolution: Fixed
> 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
> Assignee: tm_jee
> Priority: Minor
> Fix For: 2.0
> Attachments: patch.txt
>
> 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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org