mirror of
https://github.com/apache/struts.git
synced 2026-08-11 01:27:14 +00:00
WW-2238 checkboxlist labels and values mixed up
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@667876 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -34,6 +34,11 @@
|
||||
<#else>
|
||||
<#assign itemValue = stack.findString('top')/>
|
||||
</#if>
|
||||
<#if parameters.label?exists>
|
||||
<#assign itemLabel = stack.findString(parameters.label)/>
|
||||
<#else>
|
||||
<#assign itemLabel = itemValue/>
|
||||
</#if>
|
||||
<#assign itemKeyStr=itemKey.toString() />
|
||||
<input type="checkbox" name="${parameters.name?html}" value="${itemKeyStr?html}" id="${parameters.name?html}-${itemCount}"<#rt/>
|
||||
<#if tag.contains(parameters.nameValue, itemKey)>
|
||||
@@ -48,7 +53,7 @@
|
||||
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
|
||||
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
|
||||
/>
|
||||
<label for="${parameters.name?html}-${itemCount}" class="checkboxLabel">${itemValue?html}</label>
|
||||
<label for="${parameters.name?html}-${itemCount}" class="checkboxLabel">${itemLabel?html}</label>
|
||||
</@s.iterator>
|
||||
<#else>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user