mirror of
https://github.com/apache/struts.git
synced 2026-08-06 07:06:58 +00:00
WW-3708: <s:checkboxlist> UI tag ignores CSS related parameters
git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1202798 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -22,39 +22,42 @@
|
||||
-->
|
||||
<#assign itemCount = 0/>
|
||||
<#if parameters.list??>
|
||||
<@s.iterator value="parameters.list">
|
||||
<#assign itemCount = itemCount + 1/>
|
||||
<#if parameters.listKey??>
|
||||
<#assign itemKey = stack.findValue(parameters.listKey)/>
|
||||
<@s.iterator value="parameters.list">
|
||||
<#assign itemCount = itemCount + 1/>
|
||||
<#if parameters.listKey??>
|
||||
<#assign itemKey = stack.findValue(parameters.listKey)/>
|
||||
<#else>
|
||||
<#assign itemKey = stack.findValue('top')/>
|
||||
</#if>
|
||||
<#if parameters.listValue??>
|
||||
<#assign itemValue = stack.findString(parameters.listValue)?default("")/>
|
||||
</#if>
|
||||
<#if parameters.listValue??>
|
||||
<#assign itemValue = stack.findString(parameters.listValue)?default("")/>
|
||||
<#else>
|
||||
<#assign itemValue = stack.findString('top')/>
|
||||
</#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)>
|
||||
checked="checked"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.title??>
|
||||
title="${parameters.title?html}"<#rt/>
|
||||
</#if>
|
||||
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
|
||||
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
|
||||
/>
|
||||
</#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)>
|
||||
checked="checked"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
<#if parameters.title??>
|
||||
title="${parameters.title?html}"<#rt/>
|
||||
</#if>
|
||||
<#include "/${parameters.templateDir}/simple/css.ftl" />
|
||||
<#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>
|
||||
</@s.iterator>
|
||||
<#else>
|
||||
|
||||
</@s.iterator>
|
||||
<#else>
|
||||
|
||||
</#if>
|
||||
<input type="hidden" id="__multiselect_${parameters.id?html}" name="__multiselect_${parameters.name?html}" value=""<#rt/>
|
||||
<input type="hidden" id="__multiselect_${parameters.id?html}" name="__multiselect_${parameters.name?html}"
|
||||
value=""<#rt/>
|
||||
<#if parameters.disabled?default(false)>
|
||||
disabled="disabled"<#rt/>
|
||||
disabled="disabled"<#rt/>
|
||||
</#if>
|
||||
/>
|
||||
/>
|
||||
Reference in New Issue
Block a user