mirror of
https://github.com/apache/struts.git
synced 2026-08-07 15:46:57 +00:00
radiomap.ftl formats long numbers with commas
o backport from WW 2.2.3 Issue Number: WW-1437 git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@442921 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
<@s.iterator value="parameters.list">
|
||||
<#if parameters.listKey?exists>
|
||||
<#assign itemKey = stack.findString(parameters.listKey)/>
|
||||
<#assign itemKey = stack.findValue(parameters.listKey)/>
|
||||
<#else>
|
||||
<#assign itemKey = stack.findString('top')/>
|
||||
<#assign itemKey = stack.findValue('top')/>
|
||||
</#if>
|
||||
<#assign itemKeyStr = itemKey.toString() />
|
||||
<#if parameters.listValue?exists>
|
||||
<#assign itemValue = stack.findString(parameters.listValue)/>
|
||||
<#else>
|
||||
<#assign itemValue = stack.findString('top')/>
|
||||
</#if>
|
||||
<input type="radio" name="${parameters.name?html}" id="${parameters.id?html}${itemKey?html}"<#rt/>
|
||||
<input type="radio" name="${parameters.name?html}" id="${parameters.id?html}${itemKeyStr?html}"<#rt/>
|
||||
<#if tag.contains(parameters.nameValue, itemKey)>
|
||||
checked="checked"<#rt/>
|
||||
</#if>
|
||||
<#if itemKey?exists>
|
||||
value="${itemKey?html}"<#rt/>
|
||||
value="${itemKeyStr?html}"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
@@ -34,7 +35,7 @@
|
||||
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
|
||||
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
|
||||
/><#rt/>
|
||||
<label for="${parameters.id?html}${itemKey?html}"><#rt/>
|
||||
<label for="${parameters.id?html}${itemKeyStr?html}"><#rt/>
|
||||
${itemValue}<#t/>
|
||||
</label>
|
||||
</@s.iterator>
|
||||
|
||||
Reference in New Issue
Block a user