WW-4265 Allows dynamic attributes in checkboxlist tag

git-svn-id: https://svn.apache.org/repos/asf/struts/struts2/trunk@1554158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Lukasz Lenart
2013-12-30 07:03:55 +00:00
parent d818283075
commit b7caa28be0
3 changed files with 7 additions and 2 deletions
@@ -44,7 +44,11 @@ import com.opensymphony.xwork2.util.ValueStack;
* </pre>
*
*/
@StrutsTag(name="checkboxlist", tldTagClass="org.apache.struts2.views.jsp.ui.CheckboxListTag", description="Render a list of checkboxes")
@StrutsTag(
name="checkboxlist",
tldTagClass="org.apache.struts2.views.jsp.ui.CheckboxListTag",
description="Render a list of checkboxes",
allowDynamicAttributes = true)
public class CheckboxList extends ListUIBean {
final public static String TEMPLATE = "checkboxlist";
@@ -88,6 +88,7 @@
<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
/>
<label for="${parameters.name?html}-${itemCount}" class="checkboxLabel">${itemValue?html}</label>
</@s.iterator>
@@ -20,7 +20,7 @@ Please do not edit it directly.
<!-- START SNIPPET: tagattributes -->
<table width="100%">
<tr>
<td colspan="6"><h4>Dynamic Attributes Allowed:</h4> false</td>
<td colspan="6"><h4>Dynamic Attributes Allowed:</h4> true</td>
</tr>
<tr>
<td colspan="6">&nbsp;</td>