struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "tm_jee (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (WW-1300) Unwanted locale-formatting of checkbox values
Date Sat, 29 Apr 2006 15:22:19 GMT
     [ http://issues.apache.org/struts/browse/WW-1300?page=all ]

tm_jee reassigned WW-1300:
--------------------------

    Assign To: tm_jee

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


Mime
View raw message