You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "Dennis Doubleday (JIRA)" <ji...@apache.org> on 2006/04/27 18:02:19 UTC
[jira] Created: (WW-1300) Unwanted locale-formatting of checkbox
values
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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
[jira] Resolved: (WW-1300) Unwanted locale-formatting of checkbox
values
Posted by "tm_jee (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (WW-1300) Unwanted locale-formatting of checkbox
values
Posted by "Philip Luppens (JIRA)" <ji...@apache.org>.
[ 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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
[jira] Updated: (WW-1300) Unwanted locale-formatting of checkbox
values
Posted by "Anonymous (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1300?page=all ]
updated WW-1300:
-----------------
Attachment: patch.txt
> 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
> 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
[jira] Assigned: (WW-1300) Unwanted locale-formatting of checkbox
values
Posted by "tm_jee (JIRA)" <ji...@apache.org>.
[ 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
[jira] Commented: (WW-1300) Unwanted locale-formatting of checkbox
values
Posted by "tm_jee (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/struts/browse/WW-1300?page=comments#action_37250 ]
tm_jee commented on WW-1300:
----------------------------
fixed. Thanks Dennis.
> 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