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]

Reply via email to