diff --git a/apps/showcase/src/main/resources/myTemplateDir/myTheme/myAnotherTemplate.ftl b/apps/showcase/src/main/resources/myTemplateDir/myTheme/myAnotherTemplate.ftl
index 6ed9e3d93..50506fca6 100644
--- a/apps/showcase/src/main/resources/myTemplateDir/myTheme/myAnotherTemplate.ftl
+++ b/apps/showcase/src/main/resources/myTemplateDir/myTheme/myAnotherTemplate.ftl
@@ -21,6 +21,6 @@
Freemarker Custom Template -
-parameter 'paramName' - ${parameters.paramName}
+parameter 'paramName' - ${attributes.paramName}
diff --git a/apps/showcase/src/main/resources/template/ajaxErrorContainers/actionerror.ftl b/apps/showcase/src/main/resources/template/ajaxErrorContainers/actionerror.ftl
index 9988a6cb6..6f3e881ed 100644
--- a/apps/showcase/src/main/resources/template/ajaxErrorContainers/actionerror.ftl
+++ b/apps/showcase/src/main/resources/template/ajaxErrorContainers/actionerror.ftl
@@ -22,22 +22,22 @@
Make sure element is always present. To be filled later via JS.
-->
-<#if parameters.id??>
- id="${parameters.id}"<#rt/>
-#if>
-<#if parameters.cssClass??>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.id??>
+ id="${attributes.id}"<#rt/>
+#if>
+<#if attributes.cssClass??>
+ class="${attributes.cssClass}"<#rt/>
<#else>
class="errorMessage"<#rt/>
#if>
-<#if parameters.cssStyle??>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle??>
+ style="${attributes.cssStyle}"<#rt/>
#if>
>
<#if (actionErrors?? && actionErrors?size > 0)>
<#list actionErrors as error>
<#if error??>
- <#if parameters.escape>${error!}<#else>${error!}#if> <#rt/> <#rt/>
+ <#if attributes.escape>${error!}<#else>${error!}#if> <#rt/> <#rt/>
#if>
#list>
#if>
diff --git a/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlfooter.ftl b/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlfooter.ftl
index ccba70757..3b94f28c0 100644
--- a/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlfooter.ftl
+++ b/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlfooter.ftl
@@ -18,16 +18,16 @@
* under the License.
*/
-->
-${parameters.after!}<#t/>
+${attributes.after!}<#t/>
<#lt/>
-<#if (parameters.errorposition!"top") == 'bottom'>
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
+<#if (attributes.errorposition!"top") == 'bottom'>
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
<#if hasFieldErrors>
-
+
<#rt/>
<#if hasFieldErrors>
- <#list fieldErrors.get(parameters.name) as error>
+ <#list fieldErrors.get(attributes.name) as error>
${error}
<#t/>
#list>
#if>
diff --git a/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlheader-core.ftl b/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlheader-core.ftl
index 4dda1db63..c75fbef9f 100644
--- a/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlheader-core.ftl
+++ b/apps/showcase/src/main/resources/template/ajaxErrorContainers/controlheader-core.ftl
@@ -21,22 +21,22 @@
<#--
Always include elements to show errors. They may be filled later via AJAX.
-->
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
-<#if (parameters.errorposition!"top") == 'top'>
-
- <#rt/>
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
+<#if (attributes.errorposition!"top") == 'top'>
+
+ <#rt/>
<#if hasFieldErrors>
- <#list fieldErrors.get(parameters.name) as error>
+ <#list fieldErrors.get(attributes.name) as error>
${error}
<#t/>
#list>
#if>
<#lt/>
#if>
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelpos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelpos = attributes.labelPosition/>
#if>
<#--
if the label position is top,
@@ -48,10 +48,10 @@
<#else>
<#rt/>
#if>
-<#if parameters.label??>
+<#if attributes.label??>
-<#if parameters.id??>
- for="${parameters.id}" <#t/>
+<#if attributes.id??>
+ for="${attributes.id}" <#t/>
#if>
<#if hasFieldErrors>
class="errorLabel"<#t/>
@@ -59,15 +59,15 @@
class="label"<#t/>
#if>
><#t/>
-<#if parameters.required!false && parameters.requiredPosition!"right" != 'right'>
+<#if attributes.required!false && attributes.requiredPosition!"right" != 'right'>
* <#t/>
#if>
-${parameters.label}<#t/>
-<#if parameters.required!false && parameters.requiredPosition!"right" == 'right'>
+${attributes.label}<#t/>
+<#if attributes.required!false && attributes.requiredPosition!"right" == 'right'>
* <#t/>
#if>
-${parameters.labelseparator!":"}<#t/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/tooltip.ftl" />
+${attributes.labelseparator!":"}<#t/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/tooltip.ftl" />
<#t/>
#if>
<#lt/>
diff --git a/apps/showcase/src/main/webapp/WEB-INF/tags/ui/componentTagExample.jsp b/apps/showcase/src/main/webapp/WEB-INF/tags/ui/componentTagExample.jsp
index a905715b6..97711e428 100644
--- a/apps/showcase/src/main/webapp/WEB-INF/tags/ui/componentTagExample.jsp
+++ b/apps/showcase/src/main/webapp/WEB-INF/tags/ui/componentTagExample.jsp
@@ -1,19 +1,19 @@
- *
+ *
*
*
* var (String) - the name of which if supplied will have the resultant
* appended iterator stored under in the stack's context
*
*
- *
- *
+ *
+ *
*
* public class AppendIteratorTagAction extends ActionSupport {
- *
+ *
* private List myList1;
* private List myList2;
* private List myList3;
- *
- *
+ *
+ *
* public String execute() throws Exception {
- *
+ *
* myList1 = new ArrayList();
* myList1.add("1");
* myList1.add("2");
* myList1.add("3");
- *
+ *
* myList2 = new ArrayList();
* myList2.add("a");
* myList2.add("b");
* myList2.add("c");
- *
+ *
* myList3 = new ArrayList();
* myList3.add("A");
* myList3.add("B");
* myList3.add("C");
- *
+ *
* return "done";
* }
- *
+ *
* public List getMyList1() { return myList1; }
* public List getMyList2() { return myList2; }
* public List getMyList3() { return myList3; }
- *}
+ * }
*
- *
+ *
*
* <s:append var="myAppendIterator">
* <s:param value="%{myList1}" />
@@ -106,18 +106,16 @@ import java.util.List;
* </s:iterator>
*
*
- *
* @see org.apache.struts2.util.AppendIteratorFilter
* @see org.apache.struts2.views.jsp.iterator.AppendIteratorTag
- *
*/
-@StrutsTag(name="append", tldTagClass="org.apache.struts2.views.jsp.iterator.AppendIteratorTag", description="Append the values of a list of iterators to one iterator")
+@StrutsTag(name = "append", tldTagClass = "org.apache.struts2.views.jsp.iterator.AppendIteratorTag", description = "Append the values of a list of iterators to one iterator")
public class AppendIterator extends ContextBean implements UnnamedParametric {
private static final Logger LOG = LogManager.getLogger(AppendIterator.class);
- private AppendIteratorFilter appendIteratorFilter= null;
- private List _parameters;
+ private AppendIteratorFilter appendIteratorFilter = null;
+ private List attributesToAppend;
public AppendIterator(ValueStack stack) {
super(stack);
@@ -125,7 +123,7 @@ public class AppendIterator extends ContextBean implements UnnamedParametric {
@Override
public boolean start(Writer writer) {
- _parameters = new ArrayList();
+ attributesToAppend = new ArrayList<>();
appendIteratorFilter = new AppendIteratorFilter();
return super.start(writer);
@@ -133,9 +131,7 @@ public class AppendIterator extends ContextBean implements UnnamedParametric {
@Override
public boolean end(Writer writer, String body) {
-
- for (Object iteratorEntryObj : _parameters) {
-
+ for (Object iteratorEntryObj : attributesToAppend) {
if (!MakeIterator.isIterable(iteratorEntryObj)) {
LOG.warn("param with value resolved as {} cannot be make as iterator, it will be ignored and hence will not appear in the merged iterator", iteratorEntryObj);
continue;
@@ -155,10 +151,10 @@ public class AppendIterator extends ContextBean implements UnnamedParametric {
// UnnamedParametric implementation --------------------------------------
@Override
public void addParameter(Object value) {
- _parameters.add(value);
+ attributesToAppend.add(value);
}
- @StrutsTagAttribute(description="The name of which if supplied will have the resultant appended iterator stored under in the stack's context")
+ @StrutsTagAttribute(description = "The name of which if supplied will have the resultant appended iterator stored under in the stack's context")
@Override
public void setVar(String var) {
super.setVar(var);
diff --git a/core/src/main/java/org/apache/struts2/components/Component.java b/core/src/main/java/org/apache/struts2/components/Component.java
index d5633f7a8..f61d07fd4 100644
--- a/core/src/main/java/org/apache/struts2/components/Component.java
+++ b/core/src/main/java/org/apache/struts2/components/Component.java
@@ -71,7 +71,7 @@ public class Component {
protected boolean devMode = false;
protected boolean escapeHtmlBody = false;
protected ValueStack stack;
- protected Map parameters;
+ protected Map attributes;
protected ActionMapper actionMapper;
protected boolean throwExceptionOnELFailure;
protected boolean performClearTagStateForTagPoolingServers = false;
@@ -86,7 +86,7 @@ public class Component {
*/
public Component(ValueStack stack) {
this.stack = stack;
- this.parameters = new LinkedHashMap<>();
+ this.attributes = new LinkedHashMap<>();
getComponentStack().push(this);
}
@@ -279,7 +279,7 @@ public class Component {
*/
protected StrutsException fieldError(String field, String errorMsg, Exception e) {
String msg = "tag '" + getComponentName() + "', field '" + field +
- (parameters != null && parameters.containsKey("name") ? "', name '" + parameters.get("name") : "") +
+ (attributes != null && attributes.containsKey("name") ? "', name '" + attributes.get("name") : "") +
"': " + errorMsg;
throw new StrutsException(msg, e);
}
@@ -454,20 +454,20 @@ public class Component {
* pushed before the component itself, any key-value pair that can't be assigned to component
* will be set in the parameters Map.
*
- * @param params the parameters to copy.
+ * @param attributesToCopy the attributes to copy.
*/
- public void copyParams(Map params) {
- stack.push(parameters);
+ public void copyAttributes(Map attributesToCopy) {
+ stack.push(attributes);
stack.push(this);
try {
- for (Map.Entry entry : params.entrySet()) {
+ for (Map.Entry entry : attributesToCopy.entrySet()) {
String key = entry.getKey();
if (key.indexOf('-') >= 0) {
// UI component attributes may contain hypens (e.g. data-ajax), but ognl
// can't handle that, and there can't be a component property with a hypen
- // so into the parameters map it goes. See WW-4493
- parameters.put(key, entry.getValue());
+ // so into the attributes map it goes. See WW-4493
+ attributes.put(key, entry.getValue());
} else {
stack.setValue(key, entry.getValue());
}
@@ -493,21 +493,21 @@ public class Component {
}
/**
- * Gets the parameters.
+ * Gets the attributes.
*
- * @return the parameters. Is never null .
+ * @return the attributes. It's never null .
*/
- public Map getParameters() {
- return parameters;
+ public Map getAttributes() {
+ return attributes;
}
/**
- * Adds all the given parameters to this component's own parameters.
+ * Adds all the given attributes to this component's own attributes.
*
- * @param params the parameters to add.
+ * @param additionalAttributes the attributes to add.
*/
- public void addAllParameters(Map params) {
- parameters.putAll(params);
+ public void addAllAttributes(Map additionalAttributes) {
+ attributes.putAll(additionalAttributes);
}
/**
@@ -522,7 +522,7 @@ public class Component {
*/
public void addParameter(String key, Object value) {
if (key != null) {
- Map params = getParameters();
+ Map params = getAttributes();
if (value == null) {
params.remove(key);
diff --git a/core/src/main/java/org/apache/struts2/components/DoubleListUIBean.java b/core/src/main/java/org/apache/struts2/components/DoubleListUIBean.java
index 09fab37fb..3c2e461a4 100644
--- a/core/src/main/java/org/apache/struts2/components/DoubleListUIBean.java
+++ b/core/src/main/java/org/apache/struts2/components/DoubleListUIBean.java
@@ -164,7 +164,7 @@ public abstract class DoubleListUIBean extends ListUIBean {
// ok, let's look it up
Component form = findAncestor(Form.class);
if (form != null) {
- addParameter("formName", form.getParameters().get("name"));
+ addParameter("formName", form.getAttributes().get("name"));
}
}
@@ -188,7 +188,7 @@ public abstract class DoubleListUIBean extends ListUIBean {
if (doubleId != null) {
addParameter("doubleId", findString(doubleId));
} else if (form != null) {
- addParameter("doubleId", form.getParameters().get("id") + "_" + escape(doubleName != null ? findString(doubleName) : null));
+ addParameter("doubleId", form.getAttributes().get("id") + "_" + escape(doubleName != null ? findString(doubleName) : null));
} else {
addParameter("doubleId", escape(doubleName != null ? findString(doubleName) : null));
}
diff --git a/core/src/main/java/org/apache/struts2/components/DoubleSelect.java b/core/src/main/java/org/apache/struts2/components/DoubleSelect.java
index cf102d252..c1adfcc1c 100644
--- a/core/src/main/java/org/apache/struts2/components/DoubleSelect.java
+++ b/core/src/main/java/org/apache/struts2/components/DoubleSelect.java
@@ -57,7 +57,7 @@ public class DoubleSelect extends DoubleListUIBean {
public void evaluateExtraParams() {
super.evaluateExtraParams();
StringBuilder onchangeParam = new StringBuilder();
- onchangeParam.append(getParameters().get("id")).append("Redirect(this.selectedIndex)");
+ onchangeParam.append(getAttributes().get("id")).append("Redirect(this.selectedIndex)");
if(StringUtils.isNotEmpty(this.onchange)) {
onchangeParam.append(";").append(this.onchange);
}
diff --git a/core/src/main/java/org/apache/struts2/components/File.java b/core/src/main/java/org/apache/struts2/components/File.java
index 605fd97f7..9c754b849 100644
--- a/core/src/main/java/org/apache/struts2/components/File.java
+++ b/core/src/main/java/org/apache/struts2/components/File.java
@@ -67,13 +67,13 @@ public class File extends UIBean {
Form form = (Form) findAncestor(Form.class);
if (form != null) {
- String encType = (String) form.getParameters().get("enctype");
+ String encType = (String) form.getAttributes().get("enctype");
if (!"multipart/form-data".equals(encType)) {
// uh oh, this isn't good! Let's warn the developer
LOG.warn("Struts has detected a file upload UI tag (s:file) being used without a form set to enctype 'multipart/form-data'. This is probably an error!");
}
- String method = (String) form.getParameters().get("method");
+ String method = (String) form.getAttributes().get("method");
if (!"post".equalsIgnoreCase(method)) {
// uh oh, this isn't good! Let's warn the developer
LOG.warn("Struts has detected a file upload UI tag (s:file) being used without a form set to method 'POST'. This is probably an error!");
diff --git a/core/src/main/java/org/apache/struts2/components/Form.java b/core/src/main/java/org/apache/struts2/components/Form.java
index 019e39bef..52c987038 100644
--- a/core/src/main/java/org/apache/struts2/components/Form.java
+++ b/core/src/main/java/org/apache/struts2/components/Form.java
@@ -172,7 +172,7 @@ public class Form extends ClosingUIBean {
if (name == null) {
//make the name the same as the id
- String id = (String) getParameters().get("id");
+ String id = (String) getAttributes().get("id");
if (StringUtils.isNotEmpty(id)) {
addParameter("name", id);
}
@@ -204,7 +204,7 @@ public class Form extends ClosingUIBean {
// keep a collection of the tag names for anything special the templates might want to do (such as pure client
// side validation)
- if (!parameters.containsKey("tagNames")) {
+ if (!attributes.containsKey("tagNames")) {
// we have this if check so we don't do this twice (on open and close of the template)
addParameter("tagNames", new ArrayList());
}
@@ -242,7 +242,7 @@ public class Form extends ClosingUIBean {
protected void evaluateClientSideJsEnablement(String actionName, String namespace, String actionMethod) {
// Only evaluate if Client-Side js is to be enable when validate=true
- Boolean validate = (Boolean) getParameters().get("validate");
+ Boolean validate = (Boolean) getAttributes().get("validate");
if (validate != null && validate) {
addParameter("performValidation", Boolean.FALSE);
@@ -269,7 +269,7 @@ public class Form extends ClosingUIBean {
}
public List getValidators(String name) {
- Class actionClass = (Class) getParameters().get("actionClass");
+ Class actionClass = (Class) getAttributes().get("actionClass");
if (actionClass == null) {
return Collections.EMPTY_LIST;
}
@@ -278,7 +278,7 @@ public class Form extends ClosingUIBean {
ActionMapping mapping = actionMapper.getMappingFromActionName(formActionValue);
if (mapping == null) {
- mapping = actionMapper.getMappingFromActionName((String) getParameters().get("actionName"));
+ mapping = actionMapper.getMappingFromActionName((String) getAttributes().get("actionName"));
}
if (mapping == null) {
diff --git a/core/src/main/java/org/apache/struts2/components/FormButton.java b/core/src/main/java/org/apache/struts2/components/FormButton.java
index 914d050c9..268c39e29 100644
--- a/core/src/main/java/org/apache/struts2/components/FormButton.java
+++ b/core/src/main/java/org/apache/struts2/components/FormButton.java
@@ -55,7 +55,7 @@ public abstract class FormButton extends ClosingUIBean {
addParameter("type", submitType);
if (!BUTTON_TYPE_INPUT.equals(submitType) && (label == null)) {
- addParameter("label", getParameters().get("nameValue"));
+ addParameter("label", getAttributes().get("nameValue"));
}
if (action != null || method != null) {
@@ -98,8 +98,8 @@ public abstract class FormButton extends ClosingUIBean {
// this check is needed for backwards compatibility with 2.1.x
tmpId = findString(id);
} else {
- if (form != null && form.getParameters().get("id") != null) {
- tmpId = tmpId + form.getParameters().get("id").toString() + "_";
+ if (form != null && form.getAttributes().get("id") != null) {
+ tmpId = tmpId + form.getAttributes().get("id").toString() + "_";
}
if (name != null) {
tmpId = tmpId + escape(findString(name));
diff --git a/core/src/main/java/org/apache/struts2/components/GenericUIBean.java b/core/src/main/java/org/apache/struts2/components/GenericUIBean.java
index 2e0ac3cf1..942d122a2 100644
--- a/core/src/main/java/org/apache/struts2/components/GenericUIBean.java
+++ b/core/src/main/java/org/apache/struts2/components/GenericUIBean.java
@@ -34,23 +34,23 @@ import com.opensymphony.xwork2.util.ValueStack;
*
*
* Freemarker:
- * Objects provided can be retrieve from within the template via $parameters._paramname_.
+ * Objects provided can be retrieve from within the template via $attributes._attrname_.
*
* JSP:
- * Objects provided can be retrieve from within the template via <s:property value="%{parameters._paramname_}" />
+ * Objects provided can be retrieve from within the template via <s:property value="%{attributes._attrname_}" />
*
*
- * In the bottom JSP and Velocity samples, two parameters are being passed in to the component. From within the
+ * In the bottom JSP and Velocity samples, two attributes are being passed in to the component. From within the
* component, they can be accessed as:
*
*
* Freemarker:
- * $parameters.get('key1') and $parameters.get('key2') or $parameters.key1 and $parameters.key2
+ * $attributes.get('key1') and $attributes.get('key2') or $attributes.key1 and $attributes.key2
*
* JSP:
*
- * <s:property value="%{parameters.key1}" /> and <s:property value="%{'parameters.key2'}" /> or
- * <s:property value="%{parameters.get('key1')}" /> and <s:property value="%{parameters.get('key2')}" />
+ * <s:property value="%{attributes.key1}" /> and <s:property value="%{'attributes.key2'}" /> or
+ * <s:property value="%{attributes.get('key1')}" /> and <s:property value="%{attributes.get('key2')}" />
*
*
*
diff --git a/core/src/main/java/org/apache/struts2/components/Include.java b/core/src/main/java/org/apache/struts2/components/Include.java
index c78a11106..5eff39424 100644
--- a/core/src/main/java/org/apache/struts2/components/Include.java
+++ b/core/src/main/java/org/apache/struts2/components/Include.java
@@ -144,13 +144,13 @@ public class Include extends Component {
urlBuf.append(page);
// Add request parameters
- if (!parameters.isEmpty()) {
+ if (!attributes.isEmpty()) {
urlBuf.append('?');
String concat = "";
// Set parameters
- for (Map.Entry entry : parameters.entrySet()) {
+ for (Map.Entry entry : attributes.entrySet()) {
Object name = entry.getKey();
List values = (List) entry.getValue();
@@ -235,11 +235,11 @@ public class Include extends Component {
// instead, include tag requires that each parameter be a list of objects,
// just like the HTTP servlet interfaces are (String[])
if (value != null) {
- List currentValues = (List) parameters.get(key);
+ List currentValues = (List) attributes.get(key);
if (currentValues == null) {
currentValues = new ArrayList();
- parameters.put(key, currentValues);
+ attributes.put(key, currentValues);
}
currentValues.add(value);
diff --git a/core/src/main/java/org/apache/struts2/components/InputTransferSelect.java b/core/src/main/java/org/apache/struts2/components/InputTransferSelect.java
index 585f4c803..4c934545a 100644
--- a/core/src/main/java/org/apache/struts2/components/InputTransferSelect.java
+++ b/core/src/main/java/org/apache/struts2/components/InputTransferSelect.java
@@ -174,7 +174,7 @@ public class InputTransferSelect extends ListUIBean {
// key -> select tag id, value -> headerKey (if exists)
- Map formInputtransferselectIds = (Map) formAncestor.getParameters().get("inputtransferselectIds");
+ Map formInputtransferselectIds = (Map) formAncestor.getAttributes().get("inputtransferselectIds");
// init lists
if (formInputtransferselectIds == null) {
@@ -182,13 +182,13 @@ public class InputTransferSelect extends ListUIBean {
}
// id
- String tmpId = (String) getParameters().get("id");
- String tmpHeaderKey = (String) getParameters().get("headerKey");
+ String tmpId = (String) getAttributes().get("id");
+ String tmpHeaderKey = (String) getAttributes().get("headerKey");
if (tmpId != null && (! formInputtransferselectIds.containsKey(tmpId))) {
formInputtransferselectIds.put(tmpId, tmpHeaderKey);
}
- formAncestor.getParameters().put("inputtransferselectIds", formInputtransferselectIds);
+ formAncestor.getAttributes().put("inputtransferselectIds", formInputtransferselectIds);
}
else {
diff --git a/core/src/main/java/org/apache/struts2/components/Label.java b/core/src/main/java/org/apache/struts2/components/Label.java
index 787f0f658..ff6c5d061 100644
--- a/core/src/main/java/org/apache/struts2/components/Label.java
+++ b/core/src/main/java/org/apache/struts2/components/Label.java
@@ -79,7 +79,7 @@ public class Label extends UIBean {
if (value != null) {
addParameter("nameValue", findString(value));
} else if (key != null) {
- Object nameValue = parameters.get("nameValue");
+ Object nameValue = attributes.get("nameValue");
if (nameValue == null || nameValue.toString().isEmpty()) {
// get the label from a TextProvider (default value is the key)
String providedLabel = TextProviderHelper.getText(key, key, stack);
diff --git a/core/src/main/java/org/apache/struts2/components/ListUIBean.java b/core/src/main/java/org/apache/struts2/components/ListUIBean.java
index 2e7d6587d..55605d87a 100644
--- a/core/src/main/java/org/apache/struts2/components/ListUIBean.java
+++ b/core/src/main/java/org/apache/struts2/components/ListUIBean.java
@@ -67,7 +67,7 @@ public abstract class ListUIBean extends UIBean {
Object value;
if (list == null) {
- list = parameters.get("list");
+ list = attributes.get("list");
}
if (list instanceof String) {
diff --git a/core/src/main/java/org/apache/struts2/components/MergeIterator.java b/core/src/main/java/org/apache/struts2/components/MergeIterator.java
index 861d85d4c..762cfa2a7 100644
--- a/core/src/main/java/org/apache/struts2/components/MergeIterator.java
+++ b/core/src/main/java/org/apache/struts2/components/MergeIterator.java
@@ -55,56 +55,56 @@ import java.util.List;
* Display third element of the thrid list
*
*
- *
+ *
*
*
* var (String) - the name where the resultant merged iterator will be stored in the stack's context
*
*
- *
- *
+ *
+ *
*
* public class MergeIteratorTagAction extends ActionSupport {
- *
+ *
* private List myList1;
* private List myList2;
* private List myList3;
- *
+ *
* public List getMyList1() {
* return myList1;
* }
- *
+ *
* public List getMyList2() {
* return myList2;
* }
- *
+ *
* public List getMyList3() {
* return myList3;
* }
- *
- *
+ *
+ *
* public String execute() throws Exception {
- *
+ *
* myList1 = new ArrayList();
* myList1.add("1");
* myList1.add("2");
* myList1.add("3");
- *
+ *
* myList2 = new ArrayList();
* myList2.add("a");
* myList2.add("b");
* myList2.add("c");
- *
+ *
* myList3 = new ArrayList();
* myList3.add("A");
* myList3.add("B");
* myList3.add("C");
- *
+ *
* return "done";
* }
* }
*
- *
+ *
*
* <s:merge var="myMergedIterator1">
* <s:param value="%{myList1}" />
@@ -115,23 +115,22 @@ import java.util.List;
* <s:property />
* </s:iterator>
*
- *
+ *
*
* This wil generate "1aA2bB3cC".
*
*
* @see org.apache.struts2.util.MergeIteratorFilter
* @see org.apache.struts2.views.jsp.iterator.MergeIteratorTag
- *
*/
-@StrutsTag(name="merge", tldTagClass="org.apache.struts2.views.jsp.iterator.MergeIteratorTag", description="Merge the values " +
- "of a list of iterators into one iterator")
+@StrutsTag(name = "merge", tldTagClass = "org.apache.struts2.views.jsp.iterator.MergeIteratorTag",
+ description = "Merge the values of a list of iterators into one iterator")
public class MergeIterator extends ContextBean implements UnnamedParametric {
private static final Logger LOG = LogManager.getLogger(MergeIterator.class);
private MergeIteratorFilter mergeIteratorFilter = null;
- private List _parameters;
+ private List attributesToMerge;
public MergeIterator(ValueStack stack) {
super(stack);
@@ -140,15 +139,14 @@ public class MergeIterator extends ContextBean implements UnnamedParametric {
public boolean start(Writer writer) {
mergeIteratorFilter = new MergeIteratorFilter();
- _parameters = new ArrayList();
+ attributesToMerge = new ArrayList<>();
return super.start(writer);
}
public boolean end(Writer writer, String body) {
-
- for (Object iteratorEntryObj : _parameters) {
- if (! MakeIterator.isIterable(iteratorEntryObj)) {
+ for (Object iteratorEntryObj : attributesToMerge) {
+ if (!MakeIterator.isIterable(iteratorEntryObj)) {
LOG.warn("param with value resolved as {} cannot be make as iterator, it will be ignored and hence will not appear in the merged iterator", iteratorEntryObj);
continue;
}
@@ -165,13 +163,12 @@ public class MergeIterator extends ContextBean implements UnnamedParametric {
return super.end(writer, body);
}
- @StrutsTagAttribute(description="The name where the resultant merged iterator will be stored in the stack's context")
+ @StrutsTagAttribute(description = "The name where the resultant merged iterator will be stored in the stack's context")
public void setVar(String var) {
super.setVar(var);
}
- // == UnnamedParametric interface implementation ---------------------
public void addParameter(Object value) {
- _parameters.add(value);
+ attributesToMerge.add(value);
}
}
diff --git a/core/src/main/java/org/apache/struts2/components/OptGroup.java b/core/src/main/java/org/apache/struts2/components/OptGroup.java
index d7fae9fa6..7f83e5708 100644
--- a/core/src/main/java/org/apache/struts2/components/OptGroup.java
+++ b/core/src/main/java/org/apache/struts2/components/OptGroup.java
@@ -104,7 +104,7 @@ public class OptGroup extends Component {
internalUiBean.start(writer);
internalUiBean.end(writer, body);
- List listUiBeans = (List) select.getParameters().get(INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY);
+ List listUiBeans = (List) select.getAttributes().get(INTERNAL_LIST_UI_BEAN_LIST_PARAMETER_KEY);
if (listUiBeans == null) {
listUiBeans = new ArrayList();
}
diff --git a/core/src/main/java/org/apache/struts2/components/OptionTransferSelect.java b/core/src/main/java/org/apache/struts2/components/OptionTransferSelect.java
index 6e340ce1d..fb2045674 100644
--- a/core/src/main/java/org/apache/struts2/components/OptionTransferSelect.java
+++ b/core/src/main/java/org/apache/struts2/components/OptionTransferSelect.java
@@ -287,8 +287,8 @@ public class OptionTransferSelect extends DoubleListUIBean {
// key -> select tag id, value -> headerKey (if exists)
- Map formOptiontransferselectIds = (Map) formAncestor.getParameters().get("optiontransferselectIds");
- Map formOptiontransferselectDoubleIds = (Map) formAncestor.getParameters().get("optiontransferselectDoubleIds");
+ Map formOptiontransferselectIds = (Map) formAncestor.getAttributes().get("optiontransferselectIds");
+ Map formOptiontransferselectDoubleIds = (Map) formAncestor.getAttributes().get("optiontransferselectDoubleIds");
// init lists
if (formOptiontransferselectIds == null) {
@@ -300,21 +300,21 @@ public class OptionTransferSelect extends DoubleListUIBean {
// id
- String tmpId = (String) getParameters().get("id");
- String tmpHeaderKey = (String) getParameters().get("headerKey");
+ String tmpId = (String) getAttributes().get("id");
+ String tmpHeaderKey = (String) getAttributes().get("headerKey");
if (tmpId != null && (! formOptiontransferselectIds.containsKey(tmpId))) {
formOptiontransferselectIds.put(tmpId, tmpHeaderKey);
}
// doubleId
- String tmpDoubleId = (String) getParameters().get("doubleId");
- String tmpDoubleHeaderKey = (String) getParameters().get("doubleHeaderKey");
+ String tmpDoubleId = (String) getAttributes().get("doubleId");
+ String tmpDoubleHeaderKey = (String) getAttributes().get("doubleHeaderKey");
if (tmpDoubleId != null && (! formOptiontransferselectDoubleIds.containsKey(tmpDoubleId))) {
formOptiontransferselectDoubleIds.put(tmpDoubleId, tmpDoubleHeaderKey);
}
- formAncestor.getParameters().put("optiontransferselectIds", formOptiontransferselectIds);
- formAncestor.getParameters().put("optiontransferselectDoubleIds", formOptiontransferselectDoubleIds);
+ formAncestor.getAttributes().put("optiontransferselectIds", formOptiontransferselectIds);
+ formAncestor.getAttributes().put("optiontransferselectDoubleIds", formOptiontransferselectDoubleIds);
}
else {
diff --git a/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java b/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
index ab87b77ad..e9eed2854 100644
--- a/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
+++ b/core/src/main/java/org/apache/struts2/components/ServletUrlRenderer.java
@@ -175,7 +175,7 @@ public class ServletUrlRenderer implements UrlRenderer {
namespace, actionName);
if (actionConfig != null) {
- ActionMapping mapping = new ActionMapping(actionName, namespace, actionMethod, formComponent.parameters);
+ ActionMapping mapping = new ActionMapping(actionName, namespace, actionMethod, formComponent.attributes);
String result = urlHelper.buildUrl(formComponent.actionMapper.getUriFromActionMapping(mapping),
formComponent.request, formComponent.response, queryStringResult.getQueryParams(), scheme, formComponent.includeContext, true, false, false);
formComponent.addParameter("action", result);
diff --git a/core/src/main/java/org/apache/struts2/components/Token.java b/core/src/main/java/org/apache/struts2/components/Token.java
index 89d5e2394..7d64a12b0 100644
--- a/core/src/main/java/org/apache/struts2/components/Token.java
+++ b/core/src/main/java/org/apache/struts2/components/Token.java
@@ -73,7 +73,7 @@ public class Token extends UIBean {
super.evaluateExtraParams();
String tokenName;
- Map parameters = getParameters();
+ Map parameters = getAttributes();
if (parameters.containsKey("name")) {
tokenName = (String) parameters.get("name");
diff --git a/core/src/main/java/org/apache/struts2/components/UIBean.java b/core/src/main/java/org/apache/struts2/components/UIBean.java
index ff89c035d..dec726578 100644
--- a/core/src/main/java/org/apache/struts2/components/UIBean.java
+++ b/core/src/main/java/org/apache/struts2/components/UIBean.java
@@ -590,7 +590,7 @@ public abstract class UIBean extends Component {
LOG.debug("Rendering template {}", template);
- final TemplateRenderingContext context = new TemplateRenderingContext(template, writer, getStack(), getParameters(), this);
+ final TemplateRenderingContext context = new TemplateRenderingContext(template, writer, getStack(), getAttributes(), this);
engine.renderTemplate(context);
}
@@ -796,11 +796,11 @@ public abstract class UIBean extends Component {
populateComponentHtmlId(form);
if (form != null ) {
- addParameter("form", form.getParameters());
+ addParameter("form", form.getAttributes());
if ( translatedName != null ) {
// list should have been created by the form component
- List tags = (List) form.getParameters().get("tagNames");
+ List tags = (List) form.getAttributes().get("tagNames");
tags.add(translatedName);
}
}
@@ -832,19 +832,19 @@ public abstract class UIBean extends Component {
}
//TODO: this is to keep backward compatibility, remove once when tooltipConfig is dropped
- String jsTooltipEnabled = (String) getParameters().get("jsTooltipEnabled");
+ String jsTooltipEnabled = (String) getAttributes().get("jsTooltipEnabled");
if (jsTooltipEnabled != null)
this.javascriptTooltip = jsTooltipEnabled;
//TODO: this is to keep backward compatibility, remove once when tooltipConfig is dropped
- String tooltipIcon = (String) getParameters().get("tooltipIcon");
+ String tooltipIcon = (String) getAttributes().get("tooltipIcon");
if (tooltipIcon != null)
this.addParameter("tooltipIconPath", tooltipIcon);
if (this.tooltipIconPath != null)
this.addParameter("tooltipIconPath", findString(this.tooltipIconPath));
//TODO: this is to keep backward compatibility, remove once when tooltipConfig is dropped
- String tooltipDelayParam = (String) getParameters().get("tooltipDelay");
+ String tooltipDelayParam = (String) getAttributes().get("tooltipDelay");
if (tooltipDelayParam != null)
this.addParameter("tooltipDelay", tooltipDelayParam);
if (this.tooltipDelay != null)
@@ -878,8 +878,8 @@ public abstract class UIBean extends Component {
*/
protected void applyValueParameter(String translatedName) {
// see if the value has been specified as a parameter already
- if (parameters.containsKey(ATTR_VALUE)) {
- parameters.put(ATTR_NAME_VALUE, parameters.get(ATTR_VALUE));
+ if (attributes.containsKey(ATTR_VALUE)) {
+ attributes.put(ATTR_NAME_VALUE, attributes.get(ATTR_VALUE));
} else {
if (evaluateNameValue()) {
final Class> valueClazz = getValueClassType();
@@ -965,7 +965,7 @@ public abstract class UIBean extends Component {
}
protected Map getTooltipConfig(UIBean component) {
- Object tooltipConfigObj = component.getParameters().get("tooltipConfig");
+ Object tooltipConfigObj = component.getAttributes().get("tooltipConfig");
Map result = new LinkedHashMap<>();
if (tooltipConfigObj instanceof Map) {
@@ -1025,7 +1025,7 @@ public abstract class UIBean extends Component {
LOG.debug("Cannot determine id attribute for [{}], consider defining id, name or key attribute!", this);
tryId = null;
} else if (form != null) {
- tryId = form.getParameters().get("id") + "_" + generatedId;
+ tryId = form.getAttributes().get("id") + "_" + generatedId;
} else {
tryId = generatedId;
}
@@ -1283,9 +1283,9 @@ public abstract class UIBean extends Component {
* @see WW-4166
*/
@Override
- public void copyParams(Map params) {
- super.copyParams(params);
- for (Map.Entryentry : params.entrySet()) {
+ public void copyAttributes(Map attributesToCopy) {
+ super.copyAttributes(attributesToCopy);
+ for (Map.Entryentry : attributesToCopy.entrySet()) {
String entryKey = entry.getKey();
if (!isValidTagAttribute(entryKey) && !entryKey.equals("dynamicAttributes")) {
dynamicAttributes.put(entryKey, entry.getValue());
diff --git a/core/src/main/java/org/apache/struts2/components/URL.java b/core/src/main/java/org/apache/struts2/components/URL.java
index 2da816f65..13de88703 100644
--- a/core/src/main/java/org/apache/struts2/components/URL.java
+++ b/core/src/main/java/org/apache/struts2/components/URL.java
@@ -111,7 +111,7 @@ public class URL extends ContextBean {
public URL(ValueStack stack, HttpServletRequest req, HttpServletResponse res) {
super(stack);
- urlProvider = new ComponentUrlProvider(this, this.parameters);
+ urlProvider = new ComponentUrlProvider(this, this.attributes);
urlProvider.setHttpServletRequest(req);
urlProvider.setHttpServletResponse(res);
}
diff --git a/core/src/main/java/org/apache/struts2/components/UpDownSelect.java b/core/src/main/java/org/apache/struts2/components/UpDownSelect.java
index 2c6c0d287..727efa395 100644
--- a/core/src/main/java/org/apache/struts2/components/UpDownSelect.java
+++ b/core/src/main/java/org/apache/struts2/components/UpDownSelect.java
@@ -136,13 +136,13 @@ public class UpDownSelect extends Select {
// inform form ancestor that we are using a custom onSubmit
enableAncestorFormCustomOnsubmit();
- Map m = (Map) ancestorForm.getParameters().get("updownselectIds");
+ Map m = (Map) ancestorForm.getAttributes().get("updownselectIds");
if (m == null) {
// map with key -> id , value -> headerKey
m = new LinkedHashMap();
}
- m.put(getParameters().get("id"), getParameters().get("headerKey"));
- ancestorForm.getParameters().put("updownselectIds", m);
+ m.put(getAttributes().get("id"), getAttributes().get("headerKey"));
+ ancestorForm.getAttributes().put("updownselectIds", m);
}
else {
if (LOG.isWarnEnabled()) {
diff --git a/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java b/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java
index c873d3398..211276956 100644
--- a/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java
+++ b/core/src/main/java/org/apache/struts2/util/AppendIteratorFilter.java
@@ -30,20 +30,15 @@ import java.util.List;
* @see org.apache.struts2.components.AppendIterator
* @see org.apache.struts2.views.jsp.iterator.AppendIteratorTag
*/
-public class AppendIteratorFilter extends IteratorFilterSupport implements Iterator, Action {
+public class AppendIteratorFilter extends IteratorFilterSupport implements Iterator, Action {
- List iterators = new ArrayList();
+ private final List iterators = new ArrayList<>();
+ private final List sources = new ArrayList<>();
- // Attributes ----------------------------------------------------
- List sources = new ArrayList();
-
-
- // Public --------------------------------------------------------
public void setSource(Object anIterator) {
sources.add(anIterator);
}
- // Action implementation -----------------------------------------
@Override
public String execute() {
// Make source transformations
@@ -54,11 +49,10 @@ public class AppendIteratorFilter extends IteratorFilterSupport implements Itera
return SUCCESS;
}
- // Iterator implementation ---------------------------------------
@Override
public boolean hasNext() {
if (!iterators.isEmpty()) {
- return (((Iterator) iterators.get(0)).hasNext());
+ return (((Iterator>) iterators.get(0)).hasNext());
} else {
return false;
}
@@ -67,10 +61,10 @@ public class AppendIteratorFilter extends IteratorFilterSupport implements Itera
@Override
public Object next() {
try {
- return ((Iterator) iterators.get(0)).next();
+ return ((Iterator>) iterators.get(0)).next();
} finally {
if (!iterators.isEmpty()) {
- if (!((Iterator) iterators.get(0)).hasNext()) {
+ if (!((Iterator>) iterators.get(0)).hasNext()) {
iterators.remove(0);
}
}
diff --git a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java
index 2ba8f090f..8a6152663 100644
--- a/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java
+++ b/core/src/main/java/org/apache/struts2/views/freemarker/tags/TagModel.java
@@ -59,7 +59,7 @@ public abstract class TagModel implements TemplateTransformModel {
container.inject(bean);
Map unwrappedParameters = unwrapParameters(params);
- bean.copyParams(unwrappedParameters);
+ bean.copyAttributes(unwrappedParameters);
return new CallbackWriter(bean, writer);
}
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java b/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java
index f7ce06f8c..853ec4bce 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ComponentTagSupport.java
@@ -25,9 +25,8 @@ import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.jsp.JspException;
import org.apache.struts2.components.Component;
-/**
- */
public abstract class ComponentTagSupport extends StrutsBodyTagSupport {
+
protected Component component;
public abstract Component getBean(ValueStack stack, HttpServletRequest req, HttpServletResponse res);
@@ -57,9 +56,9 @@ public abstract class ComponentTagSupport extends StrutsBodyTagSupport {
}
/**
- * Define method to populate component state based on the Tag parameters.
- *
- * Descendants should override this method for custom behaviour, but should always call the ancestor method when doing so.
+ * Define method to populate component state based on the Tag attributes.
+ * Descendants should override this method for custom behaviour,
+ * but should always call the ancestor method when doing so.
*/
protected void populateParams() {
populatePerformClearTagStateForTagPoolingServersParam();
@@ -67,7 +66,7 @@ public abstract class ComponentTagSupport extends StrutsBodyTagSupport {
/**
* Specialized method to populate the performClearTagStateForTagPoolingServers state of the Component to match the value set in the Tag.
- *
+ *
* Generally only unit tests would call this method directly, to avoid calling the whole populateParams() chain again after doStartTag()
* has been called. Doing that can break tag / component state behaviour, but unit tests still need a way to set the
* performClearTagStateForTagPoolingServers state for the component (which only comes into being after doStartTag() is called).
@@ -84,7 +83,7 @@ public abstract class ComponentTagSupport extends StrutsBodyTagSupport {
@Override
protected void clearTagStateForTagPoolingServers() {
- if (!getPerformClearTagStateForTagPoolingServers()) {
+ if (!getPerformClearTagStateForTagPoolingServers()) {
return; // If flag is false (default setting), do not perform any state clearing.
}
super.clearTagStateForTagPoolingServers();
diff --git a/core/src/main/resources/template/css_xhtml/checkbox.ftl b/core/src/main/resources/template/css_xhtml/checkbox.ftl
index 55a8447ad..ba5784e75 100644
--- a/core/src/main/resources/template/css_xhtml/checkbox.ftl
+++ b/core/src/main/resources/template/css_xhtml/checkbox.ftl
@@ -23,15 +23,15 @@ NOTE: The 'header' stuff that follows is in this one file for checkbox due to th
that for checkboxes we do not want the label field to show up as checkboxes handle their own
lables
-->
-<#assign hasFieldErrors = fieldErrors?? && fieldErrors.get(parameters.name)??/>
-
<#if parameters.id??>id="wwgrp_${parameters.id}"<#rt/>#if> class="wwgrp">
+<#assign hasFieldErrors = fieldErrors?? && fieldErrors.get(attributes.name)??/>
+
<#if attributes.id??>id="wwgrp_${attributes.id}"<#rt/>#if> class="wwgrp">
<#if hasFieldErrors>
-
<#if parameters.id??>id="wwerr_${parameters.id}"<#rt/>#if> class="wwerr">
-<#list fieldErrors.get(parameters.name) as error>
+
<#if attributes.id??>id="wwerr_${attributes.id}"<#rt/>#if> class="wwerr">
+<#list fieldErrors.get(attributes.name) as error>
- <#if parameters.id??>
- errorFor="${parameters.id}"<#rt/>
+ <#if attributes.id??>
+ errorFor="${attributes.id}"<#rt/>
#if>
class="errorMessage">
${error}
@@ -39,24 +39,24 @@ lables
#list>
<#t/>
#if>
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"") == 'left'>
-<#if parameters.id??>id="wwlbl_${parameters.id}"<#rt/>#if> class="wwlbl">
+<#if attributes.id??>id="wwlbl_${attributes.id}"<#rt/>#if> class="wwlbl">
-<#if parameters.id??>
- for="${parameters.id}"<#rt/>
+<#if attributes.id??>
+ for="${attributes.id}"<#rt/>
#if>
<#if hasFieldErrors>
class="checkboxErrorLabel"<#rt/>
<#else>
class="label"<#rt/>
#if>
->${parameters.label}<#rt/>
+>${attributes.label}<#rt/>
#if>
@@ -65,39 +65,39 @@ lables
<#else>
#if>
-<#if parameters.id??>id="wwctrl_${parameters.id}"<#rt/>#if> class="wwctrl">
+<#if attributes.id??>id="wwctrl_${attributes.id}"<#rt/>#if> class="wwctrl">
-<#if parameters.required!false>
+<#if attributes.required!false>
* <#t/>
#if>
-<#include "/${parameters.templateDir}/simple/checkbox.ftl" />
+<#include "/${attributes.templateDir}/simple/checkbox.ftl" />
<#if (labelPos!"") != 'left'>
<#if (labelPos!"top") == 'top'>
<#rt/>
<#else>
<#rt/>
#if>
-<#if parameters.label??>
+<#if attributes.label??>
<#if (labelPos!"top") == 'top'>
<#else>
#if>
-<#if parameters.id??>id="wwlbl_${parameters.id}"<#rt/>#if> class="wwlbl">
+<#if attributes.id??>id="wwlbl_${attributes.id}"<#rt/>#if> class="wwlbl">
-<#if parameters.id??>
- for="${parameters.id}"<#rt/>
+<#if attributes.id??>
+ for="${attributes.id}"<#rt/>
#if>
<#if hasFieldErrors>
class="checkboxErrorLabel"<#rt/>
<#else>
class="checkboxLabel"<#rt/>
#if>
->${parameters.label}<#rt/>
+>${attributes.label}<#rt/>
#if>
#if>
-<#if parameters.label??>
+<#if attributes.label??>
<#if (labelPos!"top") == 'top'>
<#rt/>
<#else>
diff --git a/core/src/main/resources/template/css_xhtml/controlfooter.ftl b/core/src/main/resources/template/css_xhtml/controlfooter.ftl
index cf023d0c3..d25b5790c 100644
--- a/core/src/main/resources/template/css_xhtml/controlfooter.ftl
+++ b/core/src/main/resources/template/css_xhtml/controlfooter.ftl
@@ -18,26 +18,26 @@
* under the License.
*/
-->
-${parameters.after!}<#t/>
+${attributes.after!}<#t/>
<#lt/>
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"top") == 'top'>
<#rt/>
<#else>
<#rt/>
#if>
-<#if (parameters.errorposition!"top") == 'bottom'>
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
+<#if (attributes.errorposition!"top") == 'bottom'>
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
<#if hasFieldErrors>
-
<#if parameters.id??>id="wwerr_${parameters.id}"<#rt/>#if> class="wwerr">
-<#list fieldErrors.get(parameters.name) as error>
+
<#if attributes.id??>id="wwerr_${attributes.id}"<#rt/>#if> class="wwerr">
+<#list fieldErrors.get(attributes.name) as error>
- <#if parameters.id??>
- errorFor="${parameters.id}"<#rt/>
+ <#if attributes.id??>
+ errorFor="${attributes.id}"<#rt/>
#if>
class="errorMessage">
${error}
diff --git a/core/src/main/resources/template/css_xhtml/controlheader-core.ftl b/core/src/main/resources/template/css_xhtml/controlheader-core.ftl
index cdae62331..206b638e8 100644
--- a/core/src/main/resources/template/css_xhtml/controlheader-core.ftl
+++ b/core/src/main/resources/template/css_xhtml/controlheader-core.ftl
@@ -22,16 +22,16 @@
Only show message if errors are available.
This will be done if ActionSupport is used.
-->
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
-
<#if parameters.id??>id="wwgrp_${parameters.id}"<#rt/>#if> class="wwgrp">
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
+
<#if attributes.id??>id="wwgrp_${attributes.id}"<#rt/>#if> class="wwgrp">
-<#if (parameters.errorposition!"top") == 'top'>
+<#if (attributes.errorposition!"top") == 'top'>
<#if hasFieldErrors>
-
<#if parameters.id??>id="wwerr_${parameters.id}"<#rt/>#if> class="wwerr">
-<#list fieldErrors.get(parameters.name) as error>
+
<#if attributes.id??>id="wwerr_${attributes.id}"<#rt/>#if> class="wwerr">
+<#list fieldErrors.get(attributes.name) as error>
- <#if parameters.id??>
- errorFor="${parameters.id}"<#rt/>
+ <#if attributes.id??>
+ errorFor="${attributes.id}"<#rt/>
#if>
class="errorMessage">
${error}
@@ -41,21 +41,21 @@
#if>
#if>
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
-<#if parameters.label??>
+<#if attributes.label??>
<#if (labelPos!"top") == 'top'>
<#else>
#if>
-<#if parameters.id??>id="wwlbl_${parameters.id}"<#rt/>#if> class="wwlbl">
+<#if attributes.id??>id="wwlbl_${attributes.id}"<#rt/>#if> class="wwlbl">
-<#if parameters.id??>
- for="${parameters.id}" <#t/>
+<#if attributes.id??>
+ for="${attributes.id}" <#t/>
#if>
<#if hasFieldErrors>
class="errorLabel"<#t/>
@@ -63,11 +63,11 @@
class="label"<#t/>
#if>
><#t/>
-<#if parameters.required!false>
+<#if attributes.required!false>
* <#t/>
#if>
- ${parameters.label}${parameters.labelseparator!":"}
-<#include "/${parameters.templateDir}/xhtml/tooltip.ftl" />
+ ${attributes.label}${attributes.labelseparator!":"}
+<#include "/${attributes.templateDir}/xhtml/tooltip.ftl" />
<#t/>
<#if (labelPos!"top") == 'top'>
<#rt/>
diff --git a/core/src/main/resources/template/css_xhtml/controlheader.ftl b/core/src/main/resources/template/css_xhtml/controlheader.ftl
index f7b7daae5..f76a9459b 100644
--- a/core/src/main/resources/template/css_xhtml/controlheader.ftl
+++ b/core/src/main/resources/template/css_xhtml/controlheader.ftl
@@ -18,15 +18,15 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl">
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader-core.ftl">
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"top") == 'top'>
<#else>
#if>
-<#if parameters.id??>id="wwctrl_${parameters.id}"<#rt/>#if> class="wwctrl">
+<#if attributes.id??>id="wwctrl_${attributes.id}"<#rt/>#if> class="wwctrl">
diff --git a/core/src/main/resources/template/css_xhtml/form-validate.ftl b/core/src/main/resources/template/css_xhtml/form-validate.ftl
index 8d46b594d..7beb7fab5 100644
--- a/core/src/main/resources/template/css_xhtml/form-validate.ftl
+++ b/core/src/main/resources/template/css_xhtml/form-validate.ftl
@@ -18,11 +18,11 @@
* under the License.
*/
-->
-<#if parameters.validate!false == true>
-<@s.script src="${base}${parameters.staticContentPath}/css_xhtml/validation.js"/>
- <#if parameters.onsubmit??>
- ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.escapedId}();")}
+<#if attributes.validate!false == true>
+<@s.script src="${base}${attributes.staticContentPath}/css_xhtml/validation.js"/>
+ <#if attributes.onsubmit??>
+ ${tag.addParameter('onsubmit', "${attributes.onsubmit}; return validateForm_${attributes.escapedId}();")}
<#else>
- ${tag.addParameter('onsubmit', "return validateForm_${parameters.escapedId}();")}
+ ${tag.addParameter('onsubmit', "return validateForm_${attributes.escapedId}();")}
#if>
#if>
diff --git a/core/src/main/resources/template/css_xhtml/head.ftl b/core/src/main/resources/template/css_xhtml/head.ftl
index 0c0a39791..0614441f6 100644
--- a/core/src/main/resources/template/css_xhtml/head.ftl
+++ b/core/src/main/resources/template/css_xhtml/head.ftl
@@ -18,5 +18,5 @@
* under the License.
*/
-->
-<@s.link rel="stylesheet" href="${base}${parameters.staticContentPath}/css_xhtml/styles.css" type="text/css" />
-<#include "/${parameters.templateDir}/simple/head.ftl" />
+<@s.link rel="stylesheet" href="${base}${attributes.staticContentPath}/css_xhtml/styles.css" type="text/css" />
+<#include "/${attributes.templateDir}/simple/head.ftl" />
diff --git a/core/src/main/resources/template/css_xhtml/hidden.ftl b/core/src/main/resources/template/css_xhtml/hidden.ftl
index 2be605b67..062ea7d34 100644
--- a/core/src/main/resources/template/css_xhtml/hidden.ftl
+++ b/core/src/main/resources/template/css_xhtml/hidden.ftl
@@ -18,4 +18,4 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/simple/hidden.ftl" />
+<#include "/${attributes.templateDir}/simple/hidden.ftl" />
diff --git a/core/src/main/resources/template/css_xhtml/label.ftl b/core/src/main/resources/template/css_xhtml/label.ftl
index 03c6a6192..23701e715 100644
--- a/core/src/main/resources/template/css_xhtml/label.ftl
+++ b/core/src/main/resources/template/css_xhtml/label.ftl
@@ -18,28 +18,28 @@
* under the License.
*/
-->
-<#--include "/${parameters.templateDir}/css_xhtml/controlheader.ftl" /-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
+<#--include "/${attributes.templateDir}/css_xhtml/controlheader.ftl" /-->
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
-<#if parameters.id??>
- id="${parameters.id}"<#rt/>
+<#if attributes.id??>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.cssClass??>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass??>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle??>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle??>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.cssClass??>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass??>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.for??>
- for="${parameters.for}"<#rt/>
+<#if attributes.for??>
+ for="${attributes.for}"<#rt/>
#if>
><#rt/>
-<#if parameters.nameValue??>
-<@s.property value="parameters.nameValue"/><#t/>
+<#if attributes.nameValue??>
+<@s.property value="attributes.nameValue"/><#t/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/css_xhtml/reset.ftl b/core/src/main/resources/template/css_xhtml/reset.ftl
index 534ab374b..17e242002 100644
--- a/core/src/main/resources/template/css_xhtml/reset.ftl
+++ b/core/src/main/resources/template/css_xhtml/reset.ftl
@@ -18,10 +18,10 @@
* under the License.
*/
-->
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"top") == 'top'>
@@ -29,11 +29,11 @@
#if>
class="formButton"<#t/>
-<#if parameters.id??>
- id="wwctrl_${parameters.id}"<#rt/>
+<#if attributes.id??>
+ id="wwctrl_${attributes.id}"<#rt/>
#if>
><#t/>
-<#include "/${parameters.templateDir}/simple/reset.ftl" />
+<#include "/${attributes.templateDir}/simple/reset.ftl" />
<#if (labelPos!"top") == 'top'>
<#t/>
<#else>
diff --git a/core/src/main/resources/template/css_xhtml/submit-close.ftl b/core/src/main/resources/template/css_xhtml/submit-close.ftl
index d581962c1..4fefff643 100644
--- a/core/src/main/resources/template/css_xhtml/submit-close.ftl
+++ b/core/src/main/resources/template/css_xhtml/submit-close.ftl
@@ -18,11 +18,11 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/simple/submit-close.ftl" />
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#include "/${attributes.templateDir}/simple/submit-close.ftl" />
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"top") == 'top'>
<#t/>
diff --git a/core/src/main/resources/template/css_xhtml/submit.ftl b/core/src/main/resources/template/css_xhtml/submit.ftl
index 1f0ee1a10..0ed1e9391 100644
--- a/core/src/main/resources/template/css_xhtml/submit.ftl
+++ b/core/src/main/resources/template/css_xhtml/submit.ftl
@@ -18,10 +18,10 @@
* under the License.
*/
-->
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"top") == 'top'>
@@ -29,8 +29,8 @@
#if>
class="formButton"<#t/>
-<#if parameters.id??>
- id="wwctrl_${parameters.id}"<#rt/>
+<#if attributes.id??>
+ id="wwctrl_${attributes.id}"<#rt/>
#if>
><#t/>
-<#include "/${parameters.templateDir}/simple/submit.ftl" />
+<#include "/${attributes.templateDir}/simple/submit.ftl" />
diff --git a/core/src/main/resources/template/simple/a-close.ftl b/core/src/main/resources/template/simple/a-close.ftl
index 1c808e18b..926db795e 100644
--- a/core/src/main/resources/template/simple/a-close.ftl
+++ b/core/src/main/resources/template/simple/a-close.ftl
@@ -19,28 +19,28 @@
*/
-->
-<#if parameters.id??>
- id="${parameters.id}"<#rt/>
+<#if attributes.id??>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.href??>
- href="${parameters.href?no_esc}"<#rt/>
+<#if attributes.href??>
+ href="${attributes.href?no_esc}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.tabindex??>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex??>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.cssClass??>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass??>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle??>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle??>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.title??>
- title="${parameters.title}"<#rt/>
+<#if attributes.title??>
+ title="${attributes.title}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
->${tag.escapeHtmlBody()?then(parameters.body, parameters.body?no_esc)}
\ No newline at end of file
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
+>${tag.escapeHtmlBody()?then(attributes.body, attributes.body?no_esc)}
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/actionerror.ftl b/core/src/main/resources/template/simple/actionerror.ftl
index 37e1a2e85..4cd9a60b9 100644
--- a/core/src/main/resources/template/simple/actionerror.ftl
+++ b/core/src/main/resources/template/simple/actionerror.ftl
@@ -20,21 +20,21 @@
-->
<#if (actionErrors?? && actionErrors?size > 0)>
-<#if parameters.id??>
- id="${parameters.id}"<#rt/>
-#if>
-<#if parameters.cssClass??>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.id??>
+ id="${attributes.id}"<#rt/>
+#if>
+<#if attributes.cssClass??>
+ class="${attributes.cssClass}"<#rt/>
<#else>
class="errorMessage"<#rt/>
#if>
-<#if parameters.cssStyle??>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle??>
+ style="${attributes.cssStyle}"<#rt/>
#if>
>
<#list actionErrors as error>
<#if error??>
- <#if parameters.escape>${error!}<#else>${error!?no_esc}#if> <#rt/> <#rt/>
+ <#if attributes.escape>${error!}<#else>${error!?no_esc}#if> <#rt/> <#rt/>
#if>
#list>
diff --git a/core/src/main/resources/template/simple/actionmessage.ftl b/core/src/main/resources/template/simple/actionmessage.ftl
index a0f14110d..8933c2265 100644
--- a/core/src/main/resources/template/simple/actionmessage.ftl
+++ b/core/src/main/resources/template/simple/actionmessage.ftl
@@ -18,23 +18,23 @@
* under the License.
*/
-->
-<#if (actionMessages?? && actionMessages?size > 0 && !parameters.isEmptyList)>
+<#if (actionMessages?? && actionMessages?size > 0 && !attributes.isEmptyList)>
-<#if parameters.id??>
- id="${parameters.id}"<#rt/>
+<#if attributes.id??>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.cssClass??>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass??>
+ class="${attributes.cssClass}"<#rt/>
<#else>
class="actionMessage"<#rt/>
#if>
-<#if parameters.cssStyle??>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle??>
+ style="${attributes.cssStyle}"<#rt/>
#if>
>
<#list actionMessages as message>
<#if message??>
- <#if parameters.escape>${message!}<#else>${message!?no_esc}#if>
+ <#if attributes.escape>${message!}<#else>${message!?no_esc}#if>
#if>
#list>
diff --git a/core/src/main/resources/template/simple/checkbox.ftl b/core/src/main/resources/template/simple/checkbox.ftl
index af563f4b5..c1839f3f4 100644
--- a/core/src/main/resources/template/simple/checkbox.ftl
+++ b/core/src/main/resources/template/simple/checkbox.ftl
@@ -18,30 +18,30 @@
* under the License.
*/
-->
-
-<#if parameters.nameValue?? && parameters.nameValue>
+
+<#if attributes.nameValue?? && attributes.nameValue>
checked="checked"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/><#rt/>
-<#if parameters.submitUnchecked!false>
-
-<#if parameters.disabled!false>
+<#if attributes.submitUnchecked!false>
+
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
/><#rt/>
diff --git a/core/src/main/resources/template/simple/checkboxlist.ftl b/core/src/main/resources/template/simple/checkboxlist.ftl
index 87bef6651..63cf52e32 100644
--- a/core/src/main/resources/template/simple/checkboxlist.ftl
+++ b/core/src/main/resources/template/simple/checkboxlist.ftl
@@ -19,98 +19,98 @@
*/
-->
<#assign itemCount = 0/>
-<#if parameters.list??>
-<@s.iterator value="parameters.list">
+<#if attributes.list??>
+<@s.iterator value="attributes.list">
<#assign itemCount = itemCount + 1/>
- <#if parameters.listKey??>
- <#assign itemKey = stack.findValue(parameters.listKey)/>
- <#assign itemKeyStr = stack.findString(parameters.listKey)/>
+ <#if attributes.listKey??>
+ <#assign itemKey = stack.findValue(attributes.listKey)/>
+ <#assign itemKeyStr = stack.findString(attributes.listKey)/>
<#else>
<#assign itemKey = stack.findValue('top')/>
<#assign itemKeyStr = stack.findString('top')>
#if>
- <#if parameters.listLabelKey??>
+ <#if attributes.listLabelKey??>
<#-- checks the valueStack for the 'valueKey.' The valueKey is then looked-up in the locale
file for it's localized value. This is then used as a label -->
- <#assign itemValue = struts.getText(stack.findString(parameters.listLabelKey))/>
- <#elseif parameters.listValue??>
- <#assign itemValue = stack.findString(parameters.listValue)!""/>
+ <#assign itemValue = struts.getText(stack.findString(attributes.listLabelKey))/>
+ <#elseif attributes.listValue??>
+ <#assign itemValue = stack.findString(attributes.listValue)!""/>
<#else>
<#assign itemValue = stack.findString('top')/>
#if>
- <#if parameters.listCssClass??>
- <#if stack.findString(parameters.listCssClass)??>
- <#assign itemCssClass= stack.findString(parameters.listCssClass)/>
+ <#if attributes.listCssClass??>
+ <#if stack.findString(attributes.listCssClass)??>
+ <#assign itemCssClass= stack.findString(attributes.listCssClass)/>
<#else>
<#assign itemCssClass = ''/>
#if>
#if>
- <#if parameters.listCssStyle??>
- <#if stack.findString(parameters.listCssStyle)??>
- <#assign itemCssStyle= stack.findString(parameters.listCssStyle)/>
+ <#if attributes.listCssStyle??>
+ <#if stack.findString(attributes.listCssStyle)??>
+ <#assign itemCssStyle= stack.findString(attributes.listCssStyle)/>
<#else>
<#assign itemCssStyle = ''/>
#if>
#if>
- <#if parameters.listTitle??>
- <#if stack.findString(parameters.listTitle)??>
- <#assign itemTitle= stack.findString(parameters.listTitle)/>
+ <#if attributes.listTitle??>
+ <#if stack.findString(attributes.listTitle)??>
+ <#assign itemTitle= stack.findString(attributes.listTitle)/>
<#else>
<#assign itemTitle = ''/>
#if>
#if>
-
- <#if parameters.id?has_content>
- id="${parameters.id}-${itemCount}"<#rt/>
+
+ <#if attributes.id?has_content>
+ id="${attributes.id}-${itemCount}"<#rt/>
<#else>
- id="${parameters.name}-${itemCount}"<#rt/>
+ id="${attributes.name}-${itemCount}"<#rt/>
#if>
- <#if tag.contains(parameters.nameValue, itemKey)>
+ <#if tag.contains(attributes.nameValue, itemKey)>
checked="checked"<#rt/>
#if>
- <#if parameters.disabled!false>
+ <#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
<#if itemCssClass??>
class="${itemCssClass}"<#rt/>
<#else>
- <#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+ <#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
#if>
<#if itemCssStyle??>
style="${itemCssStyle}"<#rt/>
<#else>
- <#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+ <#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
#if>
<#if itemTitle??>
title="${itemTitle}"<#rt/>
<#else>
- <#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+ <#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
#if>
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
<#global evaluate_dynamic_attributes = true/>
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
- <#if parameters.id?has_content>
- for="${parameters.id}-${itemCount}"<#rt/>
+ <#if attributes.id?has_content>
+ for="${attributes.id}-${itemCount}"<#rt/>
<#else>
- for="${parameters.name}-${itemCount}"<#rt/>
+ for="${attributes.name}-${itemCount}"<#rt/>
#if>
class="checkboxLabel">${itemValue}
@s.iterator>
<#else>
#if>
-
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
/>
diff --git a/core/src/main/resources/template/simple/combobox.ftl b/core/src/main/resources/template/simple/combobox.ftl
index 733e33c5f..400ae450d 100644
--- a/core/src/main/resources/template/simple/combobox.ftl
+++ b/core/src/main/resources/template/simple/combobox.ftl
@@ -19,69 +19,69 @@
*/
-->
<@s.script>
- function autoPopulate_${parameters.escapedId}(targetElement) {
- <#if parameters.headerKey?? && parameters.headerValue??>
- if (targetElement.options[targetElement.selectedIndex].value == '${parameters.headerKey?js_string}') {
+ function autoPopulate_${attributes.escapedId}(targetElement) {
+ <#if attributes.headerKey?? && attributes.headerValue??>
+ if (targetElement.options[targetElement.selectedIndex].value == '${attributes.headerKey?js_string}') {
return;
}
#if>
- <#if parameters.emptyOption!false>
+ <#if attributes.emptyOption!false>
if (targetElement.options[targetElement.selectedIndex].value == '') {
return;
}
#if>
- targetElement.form.elements['${parameters.name?js_string}'].value=targetElement.options[targetElement.selectedIndex].value;
+ targetElement.form.elements['${attributes.name?js_string}'].value=targetElement.options[targetElement.selectedIndex].value;
}
@s.script>
-<#include "/${parameters.templateDir}/simple/text.ftl" />
+<#include "/${attributes.templateDir}/simple/text.ftl" />
-<#if parameters.list??>
-
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
- <#if parameters.disabled!false>
+<#if attributes.list??>
+
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+ <#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
>
- <#if (parameters.headerKey?? && parameters.headerValue??)>
- ${parameters.headerValue}
+ <#if (attributes.headerKey?? && attributes.headerValue??)>
+ ${attributes.headerValue}
#if>
- <#if parameters.emptyOption!false>
+ <#if attributes.emptyOption!false>
#if>
- <@s.iterator value="parameters.list">
- <#if parameters.listKey??>
- <#assign tmpListKey = stack.findString(parameters.listKey) />
+ <@s.iterator value="attributes.list">
+ <#if attributes.listKey??>
+ <#assign tmpListKey = stack.findString(attributes.listKey) />
<#else>
<#assign tmpListKey = stack.findString('top') />
#if>
- <#if parameters.listValue??>
- <#assign tmpListValue = stack.findString(parameters.listValue) />
+ <#if attributes.listValue??>
+ <#assign tmpListValue = stack.findString(attributes.listValue) />
<#else>
<#assign tmpListValue = stack.findString('top') />
#if>
- <#if parameters.listCssClass??>
- <#if stack.findString(parameters.listCssClass)??>
- <#assign itemCssClass= stack.findString(parameters.listCssClass)/>
+ <#if attributes.listCssClass??>
+ <#if stack.findString(attributes.listCssClass)??>
+ <#assign itemCssClass= stack.findString(attributes.listCssClass)/>
<#else>
<#assign itemCssClass = ''/>
#if>
#if>
- <#if parameters.listCssStyle??>
- <#if stack.findString(parameters.listCssStyle)??>
- <#assign itemCssStyle= stack.findString(parameters.listCssStyle)/>
+ <#if attributes.listCssStyle??>
+ <#if stack.findString(attributes.listCssStyle)??>
+ <#assign itemCssStyle= stack.findString(attributes.listCssStyle)/>
<#else>
<#assign itemCssStyle = ''/>
#if>
#if>
- <#if parameters.listTitle??>
- <#if stack.findString(parameters.listTitle)??>
- <#assign itemTitle= stack.findString(parameters.listTitle)/>
+ <#if attributes.listTitle??>
+ <#if stack.findString(attributes.listTitle)??>
+ <#assign itemTitle= stack.findString(attributes.listTitle)/>
<#else>
<#assign itemTitle = ''/>
#if>
#if>
- <#if (parameters.nameValue == tmpListKey)>
+ <#if (attributes.nameValue == tmpListKey)>
selected="selected"<#rt/>
#if>
<#if itemCssClass??>
diff --git a/core/src/main/resources/template/simple/common-attributes.ftl b/core/src/main/resources/template/simple/common-attributes.ftl
index 6c821137b..a1cb10507 100644
--- a/core/src/main/resources/template/simple/common-attributes.ftl
+++ b/core/src/main/resources/template/simple/common-attributes.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#if parameters.accesskey?has_content>
- accesskey="${parameters.accesskey}"<#rt/>
+<#if attributes.accesskey?has_content>
+ accesskey="${attributes.accesskey}"<#rt/>
#if><#rt/>
diff --git a/core/src/main/resources/template/simple/css.ftl b/core/src/main/resources/template/simple/css.ftl
index fdd3bb888..ec111c7a7 100644
--- a/core/src/main/resources/template/simple/css.ftl
+++ b/core/src/main/resources/template/simple/css.ftl
@@ -18,16 +18,16 @@
* under the License.
*/
-->
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
-<#if parameters.cssClass?has_content && !(hasFieldErrors && parameters.cssErrorClass??)>
- class="${parameters.cssClass}"<#rt/>
-<#elseif parameters.cssClass?has_content && (hasFieldErrors && parameters.cssErrorClass??)>
- class="${parameters.cssClass} ${parameters.cssErrorClass}"<#rt/>
-<#elseif !(parameters.cssClass?has_content) && (hasFieldErrors && parameters.cssErrorClass??)>
- class="${parameters.cssErrorClass}"<#rt/>
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
+<#if attributes.cssClass?has_content && !(hasFieldErrors && attributes.cssErrorClass??)>
+ class="${attributes.cssClass}"<#rt/>
+<#elseif attributes.cssClass?has_content && (hasFieldErrors && attributes.cssErrorClass??)>
+ class="${attributes.cssClass} ${attributes.cssErrorClass}"<#rt/>
+<#elseif !(attributes.cssClass?has_content) && (hasFieldErrors && attributes.cssErrorClass??)>
+ class="${attributes.cssErrorClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content && !(hasFieldErrors && (parameters.cssErrorStyle?? || parameters.cssErrorClass??))>
- style="${parameters.cssStyle}"<#rt/>
-<#elseif hasFieldErrors && parameters.cssErrorStyle??>
- style="${parameters.cssErrorStyle}"<#rt/>
+<#if attributes.cssStyle?has_content && !(hasFieldErrors && (attributes.cssErrorStyle?? || attributes.cssErrorClass??))>
+ style="${attributes.cssStyle}"<#rt/>
+<#elseif hasFieldErrors && attributes.cssErrorStyle??>
+ style="${attributes.cssErrorStyle}"<#rt/>
#if>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/debug.ftl b/core/src/main/resources/template/simple/debug.ftl
index 889702213..fef4f6fa5 100644
--- a/core/src/main/resources/template/simple/debug.ftl
+++ b/core/src/main/resources/template/simple/debug.ftl
@@ -41,7 +41,7 @@
[Debug]
-
+
Struts ValueStack Debug
@@ -50,7 +50,7 @@
Object Property Name Property Value Property Class
<#assign index=1>
- <#list parameters.stackValues as stackObject>
+ <#list attributes.stackValues as stackObject>
${stackObject.key}
@@ -86,7 +86,7 @@
<@s.script>
document.getElementById('toggle-button').onclick = function() {
- toggleDebug('<#if parameters.id??>${parameters.id}<#else>debug#if>');
+ toggleDebug('<#if attributes.id??>${attributes.id}<#else>debug#if>');
return false;
}
@s.script>
diff --git a/core/src/main/resources/template/simple/doubleselect.ftl b/core/src/main/resources/template/simple/doubleselect.ftl
index a0c5cf82d..342f199c2 100644
--- a/core/src/main/resources/template/simple/doubleselect.ftl
+++ b/core/src/main/resources/template/simple/doubleselect.ftl
@@ -19,170 +19,170 @@
*/
-->
<#global dynamic_attributes_ignore = "second-"/>
-<#include "/${parameters.templateDir}/simple/select.ftl" />
+<#include "/${attributes.templateDir}/simple/select.ftl" />
<#assign startCount = 0/><#rt/>
-<#if parameters.headerKey?? && parameters.headerValue??>
+<#if attributes.headerKey?? && attributes.headerValue??>
<#assign startCount = startCount + 1/><#rt/>
#if>
-<#if parameters.emptyOption??>
+<#if attributes.emptyOption??>
<#assign startCount = startCount + 1/><#rt/>
#if>
- name="${(parameters.doubleName!"")}"<#rt/>
-<#if parameters.disabled!false>
+ name="${(attributes.doubleName!"")}"<#rt/>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.doubleTabindex?has_content>
- tabindex="${parameters.doubleTabindex}"<#rt/>
+<#if attributes.doubleTabindex?has_content>
+ tabindex="${attributes.doubleTabindex}"<#rt/>
#if>
-<#if parameters.doubleId?has_content>
- id="${parameters.doubleId}"<#rt/>
+<#if attributes.doubleId?has_content>
+ id="${attributes.doubleId}"<#rt/>
#if>
-<#if parameters.doubleCss?has_content>
- class="${parameters.doubleCss}"<#rt/>
+<#if attributes.doubleCss?has_content>
+ class="${attributes.doubleCss}"<#rt/>
#if>
-<#if parameters.doubleStyle?has_content>
- style="${parameters.doubleStyle}"<#rt/>
+<#if attributes.doubleStyle?has_content>
+ style="${attributes.doubleStyle}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.multiple!false>
+<#if attributes.multiple!false>
multiple="multiple"<#rt/>
#if>
-<#if parameters.get("doubleSize")?has_content>
- size="${parameters.get("doubleSize")}"<#rt/>
+<#if attributes.get("doubleSize")?has_content>
+ size="${attributes.get("doubleSize")}"<#rt/>
#if>
-<#if parameters.doubleMultiple!false>
+<#if attributes.doubleMultiple!false>
multiple="multiple"<#rt/>
#if>
-<#if parameters.doubleDisabled!false>
+<#if attributes.doubleDisabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.doubleOnclick??>
- onclick="<#outputformat 'JavaScript'>${parameters.doubleOnclick}#outputformat>"<#rt/>
+<#if attributes.doubleOnclick??>
+ onclick="<#outputformat 'JavaScript'>${attributes.doubleOnclick}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOndblclick??>
- ondblclick="<#outputformat 'JavaScript'>${parameters.doubleOndblclick}#outputformat>"<#rt/>
+<#if attributes.doubleOndblclick??>
+ ondblclick="<#outputformat 'JavaScript'>${attributes.doubleOndblclick}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnmousedown??>
- onmousedown="<#outputformat 'JavaScript'>${parameters.doubleOnmousedown}#outputformat>"<#rt/>
+<#if attributes.doubleOnmousedown??>
+ onmousedown="<#outputformat 'JavaScript'>${attributes.doubleOnmousedown}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnmouseup??>
- onmouseup="<#outputformat 'JavaScript'>${parameters.doubleOnmouseup}#outputformat>"<#rt/>
+<#if attributes.doubleOnmouseup??>
+ onmouseup="<#outputformat 'JavaScript'>${attributes.doubleOnmouseup}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnmouseover??>
- onmouseover="<#outputformat 'JavaScript'>${parameters.doubleOnmouseover}#outputformat>"<#rt/>
+<#if attributes.doubleOnmouseover??>
+ onmouseover="<#outputformat 'JavaScript'>${attributes.doubleOnmouseover}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnmousemove??>
- onmousemove="<#outputformat 'JavaScript'>${parameters.doubleOnmousemove}#outputformat>"<#rt/>
+<#if attributes.doubleOnmousemove??>
+ onmousemove="<#outputformat 'JavaScript'>${attributes.doubleOnmousemove}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnmouseout??>
- onmouseout="<#outputformat 'JavaScript'>${parameters.doubleOnmouseout}#outputformat>"<#rt/>
+<#if attributes.doubleOnmouseout??>
+ onmouseout="<#outputformat 'JavaScript'>${attributes.doubleOnmouseout}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnfocus??>
- onfocus="<#outputformat 'JavaScript'>${parameters.doubleOnfocus}#outputformat>"<#rt/>
+<#if attributes.doubleOnfocus??>
+ onfocus="<#outputformat 'JavaScript'>${attributes.doubleOnfocus}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnblur??>
- onblur="<#outputformat 'JavaScript'>${parameters.doubleOnblur}#outputformat>"<#rt/>
+<#if attributes.doubleOnblur??>
+ onblur="<#outputformat 'JavaScript'>${attributes.doubleOnblur}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnkeypress??>
- onkeypress="<#outputformat 'JavaScript'>${parameters.doubleOnkeypress}#outputformat>"<#rt/>
+<#if attributes.doubleOnkeypress??>
+ onkeypress="<#outputformat 'JavaScript'>${attributes.doubleOnkeypress}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnkeydown??>
- onkeydown="<#outputformat 'JavaScript'>${parameters.doubleOnkeydown}#outputformat>"<#rt/>
+<#if attributes.doubleOnkeydown??>
+ onkeydown="<#outputformat 'JavaScript'>${attributes.doubleOnkeydown}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnkeyup??>
- onkeyup="<#outputformat 'JavaScript'>${parameters.doubleOnkeyup}#outputformat>"<#rt/>
+<#if attributes.doubleOnkeyup??>
+ onkeyup="<#outputformat 'JavaScript'>${attributes.doubleOnkeyup}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnselect??>
- onselect="<#outputformat 'JavaScript'>${parameters.doubleOnselect}#outputformat>"<#rt/>
+<#if attributes.doubleOnselect??>
+ onselect="<#outputformat 'JavaScript'>${attributes.doubleOnselect}#outputformat>"<#rt/>
#if>
-<#if parameters.doubleOnchange??>
- onchange="<#outputformat 'JavaScript'>${parameters.doubleOnchange}#outputformat>"<#rt/>
+<#if attributes.doubleOnchange??>
+ onchange="<#outputformat 'JavaScript'>${attributes.doubleOnchange}#outputformat>"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/prefixed-dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/prefixed-dynamic-attributes.ftl" />
<@prefixedDynamicAttributes prefix="second-"/>
>
-<#if parameters.doubleMultiple!false>
-
- name="__multiselect_${(parameters.doubleName!"")}" value=""<#rt/>
-<#if parameters.doubleDisabled!false>
+<#if attributes.doubleMultiple!false>
+
+ name="__multiselect_${(attributes.doubleName!"")}" value=""<#rt/>
+<#if attributes.doubleDisabled!false>
disabled="disabled"<#rt/>
#if>
/><#rt/>
#if>
<@s.script>
<#assign itemCount = startCount/>
- var ${parameters.escapedId}Group = new Array(${parameters.listSize?number?c} + ${startCount});
- for (var i = 0; i < (${parameters.listSize?number?c} + ${startCount}); i++) {
- ${parameters.escapedId}Group[i] = [];
+ var ${attributes.escapedId}Group = new Array(${attributes.listSize?number?c} + ${startCount});
+ for (var i = 0; i < (${attributes.listSize?number?c} + ${startCount}); i++) {
+ ${attributes.escapedId}Group[i] = [];
}
- <@s.iterator value="parameters.list">
- <#if parameters.listKey??>
- <#assign itemKey = stack.findValue(parameters.listKey)/>
+ <@s.iterator value="attributes.list">
+ <#if attributes.listKey??>
+ <#assign itemKey = stack.findValue(attributes.listKey)/>
<#else>
<#assign itemKey = stack.findValue('top')/>
#if>
- <#if parameters.listValue??>
- <#assign itemValue = stack.findString(parameters.listValue)/>
+ <#if attributes.listValue??>
+ <#assign itemValue = stack.findString(attributes.listValue)/>
<#else>
<#assign itemValue = stack.findString('top')/>
#if>
<#assign doubleItemCount = 0/>
- <#if parameters.doubleHeaderKey?? && parameters.doubleHeaderValue??>
- ${parameters.escapedId}Group[${itemCount}][${doubleItemCount}] = new Option("${parameters.doubleHeaderValue?js_string}", "${parameters.doubleHeaderKey?js_string}");
+ <#if attributes.doubleHeaderKey?? && attributes.doubleHeaderValue??>
+ ${attributes.escapedId}Group[${itemCount}][${doubleItemCount}] = new Option("${attributes.doubleHeaderValue?js_string}", "${attributes.doubleHeaderKey?js_string}");
<#assign doubleItemCount = doubleItemCount + 1/>
#if>
- <#if parameters.doubleEmptyOption??>
- ${parameters.escapedId}Group[${itemCount}][${doubleItemCount}] = new Option("", "");
+ <#if attributes.doubleEmptyOption??>
+ ${attributes.escapedId}Group[${itemCount}][${doubleItemCount}] = new Option("", "");
<#assign doubleItemCount = doubleItemCount + 1/>
#if>
- <@s.iterator value="${parameters.doubleList}">
- <#if parameters.doubleListKey??>
- <#assign doubleItemKey = stack.findValue(parameters.doubleListKey)/>
+ <@s.iterator value="${attributes.doubleList}">
+ <#if attributes.doubleListKey??>
+ <#assign doubleItemKey = stack.findValue(attributes.doubleListKey)/>
<#else>
<#assign doubleItemKey = stack.findValue('top')/>
#if>
<#assign doubleItemKeyStr = doubleItemKey.toString() />
- <#if parameters.doubleListValue??>
- <#assign doubleItemValue = stack.findString(parameters.doubleListValue)/>
+ <#if attributes.doubleListValue??>
+ <#assign doubleItemValue = stack.findString(attributes.doubleListValue)/>
<#else>
<#assign doubleItemValue = stack.findString('top')/>
#if>
- <#if parameters.doubleListCssClass??>
- <#if stack.findString(parameters.doubleListCssClass)??>
- <#assign itemDoubleCssClass= stack.findString(parameters.doubleListCssClass)/>
+ <#if attributes.doubleListCssClass??>
+ <#if stack.findString(attributes.doubleListCssClass)??>
+ <#assign itemDoubleCssClass= stack.findString(attributes.doubleListCssClass)/>
<#else>
<#assign itemDoubleCssClass = ''/>
#if>
#if>
- <#if parameters.doubleListCssStyle??>
- <#if stack.findString(parameters.doubleListCssStyle)??>
- <#assign itemDoubleCssStyle= stack.findString(parameters.doubleListCssStyle)/>
+ <#if attributes.doubleListCssStyle??>
+ <#if stack.findString(attributes.doubleListCssStyle)??>
+ <#assign itemDoubleCssStyle= stack.findString(attributes.doubleListCssStyle)/>
<#else>
<#assign itemDoubleCssStyle = ''/>
#if>
#if>
- <#if parameters.doubleListTitle??>
- <#if stack.findString(parameters.doubleListTitle)??>
- <#assign itemDoubleTitle= stack.findString(parameters.doubleListTitle)/>
+ <#if attributes.doubleListTitle??>
+ <#if stack.findString(attributes.doubleListTitle)??>
+ <#assign itemDoubleTitle= stack.findString(attributes.doubleListTitle)/>
<#else>
<#assign itemDoubleTitle = ''/>
#if>
#if>
- ${parameters.escapedId}Group[${itemCount}][${doubleItemCount}] = new Option("${doubleItemValue?js_string}", "${doubleItemKeyStr?js_string}");
+ ${attributes.escapedId}Group[${itemCount}][${doubleItemCount}] = new Option("${doubleItemValue?js_string}", "${doubleItemKeyStr?js_string}");
<#if itemDoubleCssClass??>
- ${parameters.escapedId}Group[${itemCount}][${doubleItemCount}].setAttribute("class","${itemDoubleCssClass}");
+ ${attributes.escapedId}Group[${itemCount}][${doubleItemCount}].setAttribute("class","${itemDoubleCssClass}");
#if>
<#if itemDoubleCssStyle??>
- ${parameters.escapedId}Group[${itemCount}][${doubleItemCount}].setAttribute("style","${itemDoubleCssStyle}");
+ ${attributes.escapedId}Group[${itemCount}][${doubleItemCount}].setAttribute("style","${itemDoubleCssStyle}");
#if>
<#if itemDoubleTitle??>
- ${parameters.escapedId}Group[${itemCount}][${doubleItemCount}].setAttribute("title","${itemDoubleTitle}");
+ ${attributes.escapedId}Group[${itemCount}][${doubleItemCount}].setAttribute("title","${itemDoubleTitle}");
#if>
<#assign doubleItemCount = doubleItemCount + 1/>
@@ -190,48 +190,48 @@
<#assign itemCount = itemCount + 1/>
@s.iterator>
- var ${parameters.escapedId}Temp = document.${parameters.formName}.${parameters.doubleId};
+ var ${attributes.escapedId}Temp = document.${attributes.formName}.${attributes.doubleId};
<#assign itemCount = startCount/>
<#assign redirectTo = 0/>
- <@s.iterator value="parameters.list">
- <#if parameters.listKey??>
- <#assign itemKey = stack.findValue(parameters.listKey)/>
+ <@s.iterator value="attributes.list">
+ <#if attributes.listKey??>
+ <#assign itemKey = stack.findValue(attributes.listKey)/>
<#else>
<#assign itemKey = stack.findValue('top')/>
#if>
- <#if tag.contains(parameters.nameValue, itemKey)>
+ <#if tag.contains(attributes.nameValue, itemKey)>
<#assign redirectTo = itemCount/>
#if>
<#assign itemCount = itemCount + 1/>
@s.iterator>
- ${parameters.escapedId}Redirect(${redirectTo});
- function ${parameters.escapedId}Redirect(x) {
+ ${attributes.escapedId}Redirect(${redirectTo});
+ function ${attributes.escapedId}Redirect(x) {
var selected = false;
- for (var m = ${parameters.escapedId}Temp.options.length - 1; m >= 0; m--) {
- ${parameters.escapedId}Temp.remove(m);
+ for (var m = ${attributes.escapedId}Temp.options.length - 1; m >= 0; m--) {
+ ${attributes.escapedId}Temp.remove(m);
}
- for (var i = 0; i < ${parameters.escapedId}Group[x].length; i++) {
- ${parameters.escapedId}Temp.options[i] = new Option(${parameters.escapedId}Group[x][i].text, ${parameters.escapedId}Group[x][i].value);
- <#if parameters.doubleNameValue??>
- <#if parameters.doubleMultiple??>
- for (var j = 0; j < ${parameters.doubleNameValue}.length; j++) {
- if (${parameters.escapedId}Temp.options[i].value == ${parameters.doubleNameValue?js_string}[j]) {
- ${parameters.escapedId}Temp.options[i].selected = true;
+ for (var i = 0; i < ${attributes.escapedId}Group[x].length; i++) {
+ ${attributes.escapedId}Temp.options[i] = new Option(${attributes.escapedId}Group[x][i].text, ${attributes.escapedId}Group[x][i].value);
+ <#if attributes.doubleNameValue??>
+ <#if attributes.doubleMultiple??>
+ for (var j = 0; j < ${attributes.doubleNameValue}.length; j++) {
+ if (${attributes.escapedId}Temp.options[i].value == ${attributes.doubleNameValue?js_string}[j]) {
+ ${attributes.escapedId}Temp.options[i].selected = true;
selected = true;
}
}
<#else>
- if (${parameters.escapedId}Temp.options[i].value == '${parameters.doubleNameValue?js_string}') {
- ${parameters.escapedId}Temp.options[i].selected = true;
+ if (${attributes.escapedId}Temp.options[i].value == '${attributes.doubleNameValue?js_string}') {
+ ${attributes.escapedId}Temp.options[i].selected = true;
selected = true;
}
#if>
#if>
}
- if ((${parameters.escapedId}Temp.options.length > 0) && (! selected)) {
- ${parameters.escapedId}Temp.options[0].selected = true;
+ if ((${attributes.escapedId}Temp.options.length > 0) && (! selected)) {
+ ${attributes.escapedId}Temp.options[0].selected = true;
}
}
@s.script>
diff --git a/core/src/main/resources/template/simple/dynamic-attributes.ftl b/core/src/main/resources/template/simple/dynamic-attributes.ftl
index 7f15aa48f..ce9313ae2 100644
--- a/core/src/main/resources/template/simple/dynamic-attributes.ftl
+++ b/core/src/main/resources/template/simple/dynamic-attributes.ftl
@@ -25,10 +25,10 @@
<#return true>
#if>
#function>
-<#if (parameters.dynamicAttributes?? && parameters.dynamicAttributes?size > 0)><#rt/>
-<#assign aKeys = parameters.dynamicAttributes.keySet()><#rt/>
+<#if (attributes.dynamicAttributes?? && attributes.dynamicAttributes?size > 0)><#rt/>
+<#assign aKeys = attributes.dynamicAttributes.keySet()><#rt/>
<#list aKeys?filter(acceptKey) as aKey><#rt/>
-<#assign keyValue = parameters.dynamicAttributes.get(aKey)/>
+<#assign keyValue = attributes.dynamicAttributes.get(aKey)/>
<#if keyValue?is_string>
<#if evaluate_dynamic_attributes!false == true>
<#assign value = struts.translateVariables(keyValue)!keyValue/><#rt/>
diff --git a/core/src/main/resources/template/simple/fielderror.ftl b/core/src/main/resources/template/simple/fielderror.ftl
index dbda26a7b..1a70e1f8c 100644
--- a/core/src/main/resources/template/simple/fielderror.ftl
+++ b/core/src/main/resources/template/simple/fielderror.ftl
@@ -32,22 +32,22 @@
<#assign eValue = fieldErrors.get(fieldErrorFieldName)><#t/>
<#if (haveMatchedErrorField && (!doneStartUlTag))><#t/>
- <#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+ <#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
- <#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+ <#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
<#else>
class="errorMessage"<#rt/>
#if>
- <#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+ <#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
>
<#assign doneStartUlTag=true><#t/>
#if><#t/>
<#list eValue as eEachValue><#t/>
- <#if parameters.escape>${eEachValue!}<#else>${eEachValue!?no_esc}#if>
+ <#if attributes.escape>${eEachValue!}<#else>${eEachValue!?no_esc}#if>
#list><#t/>
#if><#t/>
#list><#t/>
@@ -59,19 +59,19 @@
<#else><#t/>
<#if (eKeysSize > 0)><#t/>
- <#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+ <#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
<#else>
class="errorMessage"<#rt/>
#if>
- <#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+ <#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
>
<#list eKeys as eKey><#t/>
<#assign eValue = fieldErrors.get(eKey)><#t/>
<#list eValue as eEachValue><#t/>
- <#if parameters.escape>${eEachValue!}<#else>${eEachValue!?no_esc}#if>
+ <#if attributes.escape>${eEachValue!}<#else>${eEachValue!?no_esc}#if>
#list><#t/>
#list><#t/>
diff --git a/core/src/main/resources/template/simple/file.ftl b/core/src/main/resources/template/simple/file.ftl
index 6cad229df..521395871 100644
--- a/core/src/main/resources/template/simple/file.ftl
+++ b/core/src/main/resources/template/simple/file.ftl
@@ -19,27 +19,27 @@
*/
-->
- name="${(parameters.name!"")}"<#rt/>
-<#if parameters.get("size")?has_content>
- size="${parameters.get("size")}"<#rt/>
+ name="${(attributes.name!"")}"<#rt/>
+<#if attributes.get("size")?has_content>
+ size="${attributes.get("size")}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.accept?has_content>
- accept="${parameters.accept}"<#rt/>
+<#if attributes.accept?has_content>
+ accept="${attributes.accept}"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/form-close-tooltips.ftl b/core/src/main/resources/template/simple/form-close-tooltips.ftl
index 6007081c4..1bf45e909 100644
--- a/core/src/main/resources/template/simple/form-close-tooltips.ftl
+++ b/core/src/main/resources/template/simple/form-close-tooltips.ftl
@@ -22,8 +22,8 @@
<#--
Code that will add javascript needed for tooltips
--><#t/>
-<#if (parameters.hasTooltip!false)><#t/>
+<#if (attributes.hasTooltip!false)><#t/>
<#lt/>
- <#lt/><@s.script src="${base}${parameters.staticContentPath}/domTT.js" />
- <#lt/><@s.link rel="stylesheet" type="text/css" href="${base}${parameters.staticContentPath}/domTT.css" />
+ <#lt/><@s.script src="${base}${attributes.staticContentPath}/domTT.js" />
+ <#lt/><@s.link rel="stylesheet" type="text/css" href="${base}${attributes.staticContentPath}/domTT.css" />
#if><#t/>
diff --git a/core/src/main/resources/template/simple/form-close.ftl b/core/src/main/resources/template/simple/form-close.ftl
index f8bb047d6..59d4f0dbc 100644
--- a/core/src/main/resources/template/simple/form-close.ftl
+++ b/core/src/main/resources/template/simple/form-close.ftl
@@ -20,21 +20,21 @@
-->
-<#if (parameters.customOnsubmitEnabled??)>
+<#if (attributes.customOnsubmitEnabled??)>
<@s.script>
<#--
Enable auto-select of optiontransferselect tag's entries upon containing form's
submission.
-->
-<#if (parameters.optiontransferselectIds!?size > 0)>
- var containingForm = document.getElementById("${parameters.id?js_string}");
- <#assign selectObjIds = parameters.optiontransferselectIds.keySet() />
+<#if (attributes.optiontransferselectIds!?size > 0)>
+ var containingForm = document.getElementById("${attributes.id?js_string}");
+ <#assign selectObjIds = attributes.optiontransferselectIds.keySet() />
<#list selectObjIds as selectObjectId>
StrutsUtils.addEventListener(containingForm, "submit",
function(evt) {
var selectObj = document.getElementById("${selectObjectId?js_string}");
- <#if parameters.optiontransferselectIds.get(selectObjectId)??>
- <#assign selectTagHeaderKey = parameters.optiontransferselectIds.get(selectObjectId)/>
+ <#if attributes.optiontransferselectIds.get(selectObjectId)??>
+ <#assign selectTagHeaderKey = attributes.optiontransferselectIds.get(selectObjectId)/>
selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey?js_string}");
<#else>
selectAllOptionsExceptSome(selectObj, "key", "");
@@ -42,15 +42,15 @@
}, true);
#list>
#if>
-<#if (parameters.inputtransferselectIds!?size > 0)>
- var containingForm = document.getElementById("${parameters.id?js_string}");
- <#assign selectObjIds = parameters.inputtransferselectIds.keySet() />
+<#if (attributes.inputtransferselectIds!?size > 0)>
+ var containingForm = document.getElementById("${attributes.id?js_string}");
+ <#assign selectObjIds = attributes.inputtransferselectIds.keySet() />
<#list selectObjIds as selectObjectId>
StrutsUtils.addEventListener(containingForm, "submit",
function(evt) {
var selectObj = document.getElementById("${selectObjectId?js_string}");
- <#if parameters.inputtransferselectIds.get(selectObjectId)??>
- <#assign selectTagHeaderKey = parameters.inputtransferselectIds.get(selectObjectId)/>
+ <#if attributes.inputtransferselectIds.get(selectObjectId)??>
+ <#assign selectTagHeaderKey = attributes.inputtransferselectIds.get(selectObjectId)/>
selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey?js_string}");
<#else>
selectAllOptionsExceptSome(selectObj, "key", "");
@@ -58,15 +58,15 @@
}, true);
#list>
#if>
-<#if (parameters.optiontransferselectDoubleIds!?size > 0)>
- var containingForm = document.getElementById("${parameters.id?js_string}");
- <#assign selectDoubleObjIds = parameters.optiontransferselectDoubleIds.keySet() />
+<#if (attributes.optiontransferselectDoubleIds!?size > 0)>
+ var containingForm = document.getElementById("${attributes.id?js_string}");
+ <#assign selectDoubleObjIds = attributes.optiontransferselectDoubleIds.keySet() />
<#list selectDoubleObjIds as selectObjId>
StrutsUtils.addEventListener(containingForm, "submit",
function(evt) {
var selectObj = document.getElementById("${selectObjId?js_string}");
- <#if parameters.optiontransferselectDoubleIds.get(selectObjId)??>
- <#assign selectTagHeaderKey = parameters.optiontransferselectDoubleIds.get(selectObjId)/>
+ <#if attributes.optiontransferselectDoubleIds.get(selectObjId)??>
+ <#assign selectTagHeaderKey = attributes.optiontransferselectDoubleIds.get(selectObjId)/>
selectAllOptionsExceptSome(selectObj, "key", "${selectTagHeaderKey?js_string}");
<#else>
selectAllOptionsExceptSome(selectObj, "key", "");
@@ -80,15 +80,15 @@
Enable auto-select of all elements of updownselect tag upon its containing form
submission
-->
-<#if (parameters.updownselectIds!?size > 0)>
- var containingForm = document.getElementById("${parameters.id?js_string}");
- <#assign tmpIds = parameters.updownselectIds.keySet() />
+<#if (attributes.updownselectIds!?size > 0)>
+ var containingForm = document.getElementById("${attributes.id?js_string}");
+ <#assign tmpIds = attributes.updownselectIds.keySet() />
<#list tmpIds as tmpId>
StrutsUtils.addEventListener(containingForm, "submit",
function(evt) {
var updownselectObj = document.getElementById("${tmpId?js_string}");
- <#if parameters.updownselectIds.get(tmpId)??>
- <#assign tmpHeaderKey = parameters.updownselectIds.get(tmpId) />
+ <#if attributes.updownselectIds.get(tmpId)??>
+ <#assign tmpHeaderKey = attributes.updownselectIds.get(tmpId) />
selectAllOptionsExceptSome(updownselectObj, "key", "${tmpHeaderKey?js_string}");
<#else>
selectAllOptionsExceptSome(updownselectObj, "key", "");
@@ -99,4 +99,4 @@
@s.script>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/form-close-tooltips.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/form-close-tooltips.ftl" />
diff --git a/core/src/main/resources/template/simple/form-common.ftl b/core/src/main/resources/template/simple/form-common.ftl
index 63172d1c4..035a7b212 100644
--- a/core/src/main/resources/template/simple/form-common.ftl
+++ b/core/src/main/resources/template/simple/form-common.ftl
@@ -20,48 +20,48 @@
* under the License.
*/
-->
-<#if (parameters.validate!false == false)><#rt/>
- <#if parameters.onsubmit?has_content><#rt/>
- ${tag.addParameter('onsubmit', "${parameters.onsubmit}") }
+<#if (attributes.validate!false == false)><#rt/>
+ <#if attributes.onsubmit?has_content><#rt/>
+ ${tag.addParameter('onsubmit', "${attributes.onsubmit}") }
#if>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.name?has_content>
- name="${parameters.name}"<#rt/>
+<#if attributes.name?has_content>
+ name="${attributes.name}"<#rt/>
#if>
-<#if parameters.onsubmit?has_content>
- onsubmit="<#outputformat 'JavaScript'>${parameters.onsubmit}#outputformat>"<#rt/>
+<#if attributes.onsubmit?has_content>
+ onsubmit="<#outputformat 'JavaScript'>${attributes.onsubmit}#outputformat>"<#rt/>
#if>
-<#if parameters.onreset?has_content>
- onreset="<#outputformat 'JavaScript'>${parameters.onreset}#outputformat>"<#rt/>
+<#if attributes.onreset?has_content>
+ onreset="<#outputformat 'JavaScript'>${attributes.onreset}#outputformat>"<#rt/>
#if>
-<#if parameters.action?has_content>
- action="${parameters.action}"<#rt/>
+<#if attributes.action?has_content>
+ action="${attributes.action}"<#rt/>
#if>
-<#if parameters.target?has_content>
- target="${parameters.target}"<#rt/>
+<#if attributes.target?has_content>
+ target="${attributes.target}"<#rt/>
#if>
-<#if parameters.method?has_content>
- method="${parameters.method}"<#rt/>
+<#if attributes.method?has_content>
+ method="${attributes.method}"<#rt/>
<#else>
method="post"<#rt/>
#if>
-<#if parameters.enctype?has_content>
- enctype="${parameters.enctype}"<#rt/>
+<#if attributes.enctype?has_content>
+ enctype="${attributes.enctype}"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.acceptcharset?has_content>
- accept-charset="${parameters.acceptcharset}"<#rt/>
+<#if attributes.acceptcharset?has_content>
+ accept-charset="${attributes.acceptcharset}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
\ No newline at end of file
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/form.ftl b/core/src/main/resources/template/simple/form.ftl
index 98bf476e5..829b2d677 100644
--- a/core/src/main/resources/template/simple/form.ftl
+++ b/core/src/main/resources/template/simple/form.ftl
@@ -18,8 +18,8 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/form-common.ftl" />
-<#if parameters.onreset?has_content>
- onreset="${parameters.onreset}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/form-common.ftl" />
+<#if attributes.onreset?has_content>
+ onreset="${attributes.onreset}"<#rt/>
#if>
>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/head.ftl b/core/src/main/resources/template/simple/head.ftl
index 623ec70f2..cd6c31740 100644
--- a/core/src/main/resources/template/simple/head.ftl
+++ b/core/src/main/resources/template/simple/head.ftl
@@ -18,4 +18,4 @@
* under the License.
*/
-->
-<@s.script src="${base}${parameters.staticContentPath}/utils.js" />
+<@s.script src="${base}${attributes.staticContentPath}/utils.js" />
diff --git a/core/src/main/resources/template/simple/hidden.ftl b/core/src/main/resources/template/simple/hidden.ftl
index 1e91e49e0..7b0b3c175 100644
--- a/core/src/main/resources/template/simple/hidden.ftl
+++ b/core/src/main/resources/template/simple/hidden.ftl
@@ -19,21 +19,21 @@
*/
-->
- name="${(parameters.name!"")}"<#rt/>
-<#if parameters.nameValue??>
- value="<@s.property value="parameters.nameValue"/>"<#rt/>
+ name="${(attributes.name!"")}"<#rt/>
+<#if attributes.nameValue??>
+ value="<@s.property value="attributes.nameValue"/>"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/inputtransferselect.ftl b/core/src/main/resources/template/simple/inputtransferselect.ftl
index 117390ea7..c0ff17a14 100644
--- a/core/src/main/resources/template/simple/inputtransferselect.ftl
+++ b/core/src/main/resources/template/simple/inputtransferselect.ftl
@@ -19,103 +19,103 @@
*/
-->
<#if !stack.findValue("#inputtransferselect_js_included")??><#t/>
- <@s.script src="${base}${parameters.staticContentPath}/inputtransferselect.js"/>
+ <@s.script src="${base}${attributes.staticContentPath}/inputtransferselect.js"/>
<#assign temporaryVariable = stack.setValue("#inputtransferselect_js_included", "true") /><#t/>
#if><#t/>
-<#if parameters.leftTitle??><#t/>
- ${parameters.leftTitle}
+<#if attributes.leftTitle??><#t/>
+ ${attributes.leftTitle}
#if><#t/>
- name="${parameters.name!""}_input"<#rt/>
-<#if parameters.disabled!false>
+ name="${attributes.name!""}_input"<#rt/>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.readonly!false>
+<#if attributes.readonly!false>
readonly="readonly"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}_input"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}_input"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/prefixed-dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/prefixed-dynamic-attributes.ftl" />
<@prefixedDynamicAttributes prefix="input-"/>
/>
- <#assign addLabel=(parameters.addLabel!"->") /><#t/>
+ <#assign addLabel=(attributes.addLabel!"->") /><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass?has_content><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle?has_content>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle?has_content>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addLabel}" onclick="addOption(document.getElementById('${parameters.id}_input'), document.getElementById('${parameters.id}'))" />
+ value="${addLabel}" onclick="addOption(document.getElementById('${attributes.id}_input'), document.getElementById('${attributes.id}'))" />
<#t/>
- <#assign removeLabel=(parameters.removeLabel!"<-") /><#t/>
+ <#assign removeLabel=(attributes.removeLabel!"<-") /><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass?has_content><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle?has_content>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle?has_content>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${removeLabel}" onclick="removeOptions(document.getElementById('${parameters.id}'))" />
+ value="${removeLabel}" onclick="removeOptions(document.getElementById('${attributes.id}'))" />
<#t/>
- <#assign removeAllLabel=(parameters.removeAllLabel!"<<--") /><#t/>
+ <#assign removeAllLabel=(attributes.removeAllLabel!"<<--") /><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass?has_content><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle?has_content>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle?has_content>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${removeAllLabel}" onclick="removeAllOptions(document.getElementById('${parameters.id}'))" />
+ value="${removeAllLabel}" onclick="removeAllOptions(document.getElementById('${attributes.id}'))" />
-<#if parameters.rightTitle?has_content><#t/>
- ${parameters.rightTitle}
+<#if attributes.rightTitle?has_content><#t/>
+ ${attributes.rightTitle}
#if><#t/>
<#global dynamic_attributes_ignore = "input-"/>
-<#include "/${parameters.templateDir}/simple/select.ftl" />
-<#if parameters.allowUpDown!true>
+<#include "/${attributes.templateDir}/simple/select.ftl" />
+<#if attributes.allowUpDown!true>
- onclick="moveOptionDown(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');"
+<#if attributes.headerKey?has_content>
+ onclick="moveOptionDown(document.getElementById('${attributes.id}'), 'key', '${attributes.headerKey}');"
<#else>
- onclick="moveOptionDown(document.getElementById('${parameters.id}'), 'key', '');"
+ onclick="moveOptionDown(document.getElementById('${attributes.id}'), 'key', '');"
#if>
-<#if parameters.downLabel?has_content>
- value="${parameters.downLabel}"
+<#if attributes.downLabel?has_content>
+ value="${attributes.downLabel}"
#if>
/>
- onclick="moveOptionUp(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');"
+<#if attributes.headerKey?has_content>
+ onclick="moveOptionUp(document.getElementById('${attributes.id}'), 'key', '${attributes.headerKey}');"
<#else>
- onclick="moveOptionUp(document.getElementById('${parameters.id}'), 'key', '');"
+ onclick="moveOptionUp(document.getElementById('${attributes.id}'), 'key', '');"
#if>
-<#if parameters.upLabel?has_content>
- value="${parameters.upLabel}"
+<#if attributes.upLabel?has_content>
+ value="${attributes.upLabel}"
#if>
/>
#if>
diff --git a/core/src/main/resources/template/simple/label.ftl b/core/src/main/resources/template/simple/label.ftl
index e464d2f4e..fb6864431 100644
--- a/core/src/main/resources/template/simple/label.ftl
+++ b/core/src/main/resources/template/simple/label.ftl
@@ -19,20 +19,20 @@
*/
-->
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.for?has_content>
- for="${parameters.for}"<#rt/>
+<#if attributes.for?has_content>
+ for="${attributes.for}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
><#rt/>
-<#if parameters.nameValue??>
-<@s.property value="parameters.nameValue"/><#t/>
+<#if attributes.nameValue??>
+<@s.property value="attributes.nameValue"/><#t/>
#if>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/link.ftl b/core/src/main/resources/template/simple/link.ftl
index e4847adea..53a00581d 100644
--- a/core/src/main/resources/template/simple/link.ftl
+++ b/core/src/main/resources/template/simple/link.ftl
@@ -19,46 +19,46 @@
*/
-->
-<#if parameters.rel?has_content>
- rel="${parameters.rel}"<#rt/>
+<#if attributes.rel?has_content>
+ rel="${attributes.rel}"<#rt/>
#if>
-<#if parameters.type?has_content>
- type="${parameters.type}"<#rt/>
+<#if attributes.type?has_content>
+ type="${attributes.type}"<#rt/>
#if>
-<#if parameters.href?has_content>
- href="${parameters.href}"<#rt/>
+<#if attributes.href?has_content>
+ href="${attributes.href}"<#rt/>
#if>
-<#if parameters.hreflang?has_content>
- hreflang="${parameters.hreflang}"<#rt/>
+<#if attributes.hreflang?has_content>
+ hreflang="${attributes.hreflang}"<#rt/>
#if>
-<#if parameters.disabled?has_content && parameters.disabled == "true">
+<#if attributes.disabled?has_content && attributes.disabled == "true">
disabled<#rt/>
#if>
-<#if parameters.media?has_content>
- media="${parameters.media}"<#rt/>
+<#if attributes.media?has_content>
+ media="${attributes.media}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.as?has_content>
- as="${parameters.as}"<#rt/>
+<#if attributes.as?has_content>
+ as="${attributes.as}"<#rt/>
#if>
-<#if parameters.referrerpolicy?has_content>
- referrerpolicy="${parameters.referrerpolicy}"<#rt/>
+<#if attributes.referrerpolicy?has_content>
+ referrerpolicy="${attributes.referrerpolicy}"<#rt/>
#if>
-<#if parameters.sizes?has_content>
- sizes="${parameters.sizes}"<#rt/>
+<#if attributes.sizes?has_content>
+ sizes="${attributes.sizes}"<#rt/>
#if>
-<#if parameters.crossorigin?has_content>
- crossorigin="${parameters.crossorigin}"<#rt/>
+<#if attributes.crossorigin?has_content>
+ crossorigin="${attributes.crossorigin}"<#rt/>
#if>
-<#if parameters.integrity?has_content>
- integrity="${parameters.integrity}"<#rt/>
+<#if attributes.integrity?has_content>
+ integrity="${attributes.integrity}"<#rt/>
#if>
-<#if parameters.importance?has_content>
- importance="${parameters.importance}"<#rt/>
+<#if attributes.importance?has_content>
+ importance="${attributes.importance}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" /><#rt/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" /><#rt/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/nonce.ftl" /><#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" /><#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" /><#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/nonce.ftl" /><#rt/>
/>
diff --git a/core/src/main/resources/template/simple/nonce.ftl b/core/src/main/resources/template/simple/nonce.ftl
index 507802a45..46bc51025 100644
--- a/core/src/main/resources/template/simple/nonce.ftl
+++ b/core/src/main/resources/template/simple/nonce.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#if parameters.nonce?has_content><#rt/>
- nonce="${parameters.nonce}"<#rt/>
+<#if attributes.nonce?has_content><#rt/>
+ nonce="${attributes.nonce}"<#rt/>
#if><#rt/>
diff --git a/core/src/main/resources/template/simple/optgroup.ftl b/core/src/main/resources/template/simple/optgroup.ftl
index 636633785..22e74c350 100644
--- a/core/src/main/resources/template/simple/optgroup.ftl
+++ b/core/src/main/resources/template/simple/optgroup.ftl
@@ -18,37 +18,37 @@
* under the License.
*/
-->
-<#if parameters.optGroupInternalListUiBeanList??>
-<#assign optGroupInternalListUiBeans=parameters.optGroupInternalListUiBeanList />
+<#if attributes.optGroupInternalListUiBeanList??>
+<#assign optGroupInternalListUiBeans=attributes.optGroupInternalListUiBeanList />
<#list optGroupInternalListUiBeans as optGroupInternalListUiBean>
- <#if optGroupInternalListUiBean.parameters.label?has_content>
- label="${optGroupInternalListUiBean.parameters.label}"<#rt>
+ <#if optGroupInternalListUiBean.attributes.label?has_content>
+ label="${optGroupInternalListUiBean.attributes.label}"<#rt>
#if>
- <#if optGroupInternalListUiBean.parameters.disabled!false>
+ <#if optGroupInternalListUiBean.attributes.disabled!false>
disabled="disabled"<#rt>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
>
-<#list optGroupInternalListUiBean.parameters.list as optGroupBean>
+<#list optGroupInternalListUiBean.attributes.list as optGroupBean>
<#assign trash=stack.push(optGroupBean) />
- <#assign tmpKey=stack.findValue(optGroupInternalListUiBean.parameters.listKey) />
- <#assign tmpValue=stack.findValue(optGroupInternalListUiBean.parameters.listValue) />
+ <#assign tmpKey=stack.findValue(optGroupInternalListUiBean.attributes.listKey) />
+ <#assign tmpValue=stack.findValue(optGroupInternalListUiBean.attributes.listValue) />
<#assign tmpKeyStr = tmpKey.toString() />
<#assign optGroupItemCssClass = ''/>
- <#if optGroupInternalListUiBean.parameters.listCssClass??>
- <#assign optGroupItemCssClass= stack.findString(optGroupInternalListUiBean.parameters.listCssClass)!''/>
+ <#if optGroupInternalListUiBean.attributes.listCssClass??>
+ <#assign optGroupItemCssClass= stack.findString(optGroupInternalListUiBean.attributes.listCssClass)!''/>
#if>
<#assign optGroupItemCssStyle = ''/>
- <#if optGroupInternalListUiBean.parameters.listCssStyle??>
- <#assign optGroupItemCssStyle= stack.findString(optGroupInternalListUiBean.parameters.listCssStyle)!''/>
+ <#if optGroupInternalListUiBean.attributes.listCssStyle??>
+ <#assign optGroupItemCssStyle= stack.findString(optGroupInternalListUiBean.attributes.listCssStyle)!''/>
#if>
<#assign optGroupItemTitle = ''/>
- <#if optGroupInternalListUiBean.parameters.listTitle??>
- <#assign optGroupItemTitle= stack.findString(optGroupInternalListUiBean.parameters.listTitle)!''/>
+ <#if optGroupInternalListUiBean.attributes.listTitle??>
+ <#assign optGroupItemTitle= stack.findString(optGroupInternalListUiBean.attributes.listTitle)!''/>
#if>
- <#if tag.contains(parameters.nameValue, tmpKey) == true>
+ <#if tag.contains(attributes.nameValue, tmpKey) == true>
selected="selected"<#rt>
#if>
<#if optGroupItemCssClass?has_content>
diff --git a/core/src/main/resources/template/simple/optiontransferselect.ftl b/core/src/main/resources/template/simple/optiontransferselect.ftl
index 408196e0d..abf920cd8 100644
--- a/core/src/main/resources/template/simple/optiontransferselect.ftl
+++ b/core/src/main/resources/template/simple/optiontransferselect.ftl
@@ -19,281 +19,281 @@
*/
-->
<#if !stack.findValue("#optiontransferselect_js_included")??><#t/>
- <@s.script src="${base}${parameters.staticContentPath}/optiontransferselect.js" />
+ <@s.script src="${base}${attributes.staticContentPath}/optiontransferselect.js" />
<#assign temporaryVariable = stack.setValue("#optiontransferselect_js_included", "true") /><#t/>
#if><#t/>
-<#if parameters.leftTitle??><#t/>
- ${parameters.leftTitle}
+<#if attributes.leftTitle??><#t/>
+ ${attributes.leftTitle}
#if><#t/>
<#global dynamic_attributes_ignore = "right-"/>
-<#include "/${parameters.templateDir}/simple/select.ftl" />
-<#if parameters.allowUpDownOnLeft!true>
+<#include "/${attributes.templateDir}/simple/select.ftl" />
+<#if attributes.allowUpDownOnLeft!true>
- value="${parameters.leftDownLabel}"
+ onclick="moveOptionDown(document.getElementById('${attributes.id}'), 'key', <#if attributes.headerKey??>'${attributes.headerKey}'<#else>''#if>);<#if attributes.upDownOnLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.upDownOnLeftOnclick}#outputformat>;#if>"
+<#if attributes.leftDownLabel??>
+ value="${attributes.leftDownLabel}"
#if>
/>
- value="${parameters.leftUpLabel}"
+ onclick="moveOptionUp(document.getElementById('${attributes.id}'), 'key', <#if attributes.headerKey??>'${attributes.headerKey}'<#else>''#if>);<#if attributes.upDownOnLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.upDownOnLeftOnclick}#outputformat>;#if>"
+<#if attributes.leftUpLabel??>
+ value="${attributes.leftUpLabel}"
#if>
/>
#if>
- <#if parameters.allowAddToLeft!true><#t/>
- <#assign addToLeftLabel = parameters.addToLeftLabel!"<-"/><#t/>
- <#if parameters.doubleHeaderKey??><#t/>
+ <#if attributes.allowAddToLeft!true><#t/>
+ <#assign addToLeftLabel = attributes.addToLeftLabel!"<-"/><#t/>
+ <#if attributes.doubleHeaderKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${parameters.doubleId}'), document.getElementById('${parameters.id}'), false, '${parameters.doubleHeaderKey}', '');<#if parameters.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${parameters.addToLeftOnclick}#outputformat>;#if>" />
+ value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '${attributes.doubleHeaderKey}', '');<#if attributes.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToLeftOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${parameters.doubleId}'), document.getElementById('${parameters.id}'), false, '');<#if parameters.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${parameters.addToLeftOnclick}#outputformat>;#if>" />
+ value="${addToLeftLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '');<#if attributes.addToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToLeftOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
- <#if parameters.allowAddToRight!true><#t/>
- <#assign addToRightLabel=parameters.addToRightLabel!"->" /><#t/>
- <#if parameters.headerKey??><#t/>
+ <#if attributes.allowAddToRight!true><#t/>
+ <#assign addToRightLabel=attributes.addToRightLabel!"->" /><#t/>
+ <#if attributes.headerKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${parameters.id}'), document.getElementById('${parameters.doubleId}'), false, '${parameters.headerKey}', '');<#if parameters.addToRightOnclick?has_content><#outputformat 'JavaScript'>${parameters.addToRightOnclick}#outputformat>;#if>" />
+ value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '${attributes.headerKey}', '');<#if attributes.addToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToRightOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${parameters.id}'), document.getElementById('${parameters.doubleId}'), false, '');<#if parameters.addToRightOnclick?has_content><#outputformat 'JavaScript'>${parameters.addToRightOnclick}#outputformat>;#if>" />
+ value="${addToRightLabel}" onclick="moveSelectedOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '');<#if attributes.addToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addToRightOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
- <#if parameters.allowAddAllToLeft!true><#t/>
- <#assign addAllToLeftLabel=parameters.addAllToLeftLabel!"<<--" /><#t/>
- <#if parameters.doubleHeaderKey??><#t/>
+ <#if attributes.allowAddAllToLeft!true><#t/>
+ <#assign addAllToLeftLabel=attributes.addAllToLeftLabel!"<<--" /><#t/>
+ <#if attributes.doubleHeaderKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${parameters.doubleId}'), document.getElementById('${parameters.id}'), false, '${parameters.doubleHeaderKey}', '');<#if parameters.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${parameters.addAllToLeftOnclick}#outputformat>;#if>" />
+ value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '${attributes.doubleHeaderKey}', '');<#if attributes.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToLeftOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${parameters.doubleId}'), document.getElementById('${parameters.id}'), false, '');<#if parameters.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${parameters.addAllToLeftOnclick}#outputformat>;#if>" />
+ value="${addAllToLeftLabel}" onclick="moveAllOptions(document.getElementById('${attributes.doubleId}'), document.getElementById('${attributes.id}'), false, '');<#if attributes.addAllToLeftOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToLeftOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
- <#if parameters.allowAddAllToRight!true><#t/>
- <#assign addAllToRightLabel=parameters.addAllToRightLabel!"-->>" /><#t/>
- <#if parameters.headerKey??><#t/>
+ <#if attributes.allowAddAllToRight!true><#t/>
+ <#assign addAllToRightLabel=attributes.addAllToRightLabel!"-->>" /><#t/>
+ <#if attributes.headerKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${parameters.id}'), document.getElementById('${parameters.doubleId}'), false, '${parameters.headerKey}', '');<#if parameters.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${parameters.addAllToRightOnclick}#outputformat>;#if>" />
+ value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '${attributes.headerKey}', '');<#if attributes.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToRightOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${parameters.id}'), document.getElementById('${parameters.doubleId}'), false, '');<#if parameters.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${parameters.addAllToRightOnclick}#outputformat>;#if>" />
+ value="${addAllToRightLabel}" onclick="moveAllOptions(document.getElementById('${attributes.id}'), document.getElementById('${attributes.doubleId}'), false, '');<#if attributes.addAllToRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.addAllToRightOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
- <#if parameters.allowSelectAll!true><#t/>
- <#assign selectAllLabel=parameters.selectAllLabel!"<*>" /><#t/>
- <#if parameters.headerKey?? && parameters.doubleHeaderKey??><#t/>
+ <#if attributes.allowSelectAll!true><#t/>
+ <#assign selectAllLabel=attributes.selectAllLabel!"<*>" /><#t/>
+ <#if attributes.headerKey?? && attributes.doubleHeaderKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');selectAllOptionsExceptSome(document.getElementById('${parameters.doubleId}'), 'key', '${parameters.doubleHeaderKey}');<#if parameters.selectAllOnclick?has_content><#outputformat 'JavaScript'>${parameters.selectAllOnclick}#outputformat>;#if>" />
- <#elseif parameters.headerKey??><#t/>
+ value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${attributes.id}'), 'key', '${attributes.headerKey}');selectAllOptionsExceptSome(document.getElementById('${attributes.doubleId}'), 'key', '${attributes.doubleHeaderKey}');<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
+ <#elseif attributes.headerKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${parameters.id}'), 'key', '${parameters.headerKey}');selectAllOptions(document.getElementById('${parameters.doubleId}'));<#if parameters.selectAllOnclick?has_content><#outputformat 'JavaScript'>${parameters.selectAllOnclick}#outputformat>;#if>" />
- <#elseif parameters.doubleHeaderKey??><#t/>
+ value="${selectAllLabel}" onclick="selectAllOptionsExceptSome(document.getElementById('${attributes.id}'), 'key', '${attributes.headerKey}');selectAllOptions(document.getElementById('${attributes.doubleId}'));<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
+ <#elseif attributes.doubleHeaderKey??><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${parameters.id}'));selectAllOptionsExceptSome(document.getElementById('${parameters.doubleId}'), 'key', '${parameters.doubleHeaderKey}');<#if parameters.selectAllOnclick?has_content><#outputformat 'JavaScript'>${parameters.selectAllOnclick}#outputformat>;#if>" />
+ value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${attributes.id}'));selectAllOptionsExceptSome(document.getElementById('${attributes.doubleId}'), 'key', '${attributes.doubleHeaderKey}');<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
<#else><#t/>
<#t/>
- class="${parameters.buttonCssClass}"
+ <#if attributes.buttonCssClass??><#t/>
+ class="${attributes.buttonCssClass}"
#if><#t/>
- <#if parameters.buttonCssStyle??><#t/>
- style="${parameters.buttonCssStyle}"
+ <#if attributes.buttonCssStyle??><#t/>
+ style="${attributes.buttonCssStyle}"
#if><#t/>
- value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${parameters.id}'));selectAllOptions(document.getElementById('${parameters.doubleId}'));<#if parameters.selectAllOnclick?has_content><#outputformat 'JavaScript'>${parameters.selectAllOnclick}#outputformat>;#if>" />
+ value="${selectAllLabel}" onclick="selectAllOptions(document.getElementById('${attributes.id}'));selectAllOptions(document.getElementById('${attributes.doubleId}'));<#if attributes.selectAllOnclick?has_content><#outputformat 'JavaScript'>${attributes.selectAllOnclick}#outputformat>;#if>" />
#if><#t/>
#if><#t/>
-<#if parameters.rightTitle??><#t/>
- ${parameters.rightTitle}
+<#if attributes.rightTitle??><#t/>
+ ${attributes.rightTitle}
#if><#t/>
<#t/>
- size="${parameters.get("doubleSize")}"
+ name="${attributes.doubleName!""}"
+ <#if attributes.get("doubleSize")??><#t/>
+ size="${attributes.get("doubleSize")}"
#if><#t/>
- <#if parameters.doubleDisabled!false><#t/>
+ <#if attributes.doubleDisabled!false><#t/>
disabled="disabled"
#if><#t/>
- <#if parameters.doubleMultiple!false><#t/>
+ <#if attributes.doubleMultiple!false><#t/>
multiple="multiple"
#if><#t/>
- <#if parameters.doubleTabindex??><#t/>
- tabindex="${parameters.tabindex}"
+ <#if attributes.doubleTabindex??><#t/>
+ tabindex="${attributes.tabindex}"
#if><#t/>
- <#if parameters.doubleId??><#t/>
- id="${parameters.doubleId}"
+ <#if attributes.doubleId??><#t/>
+ id="${attributes.doubleId}"
#if><#t/>
- <#if parameters.doubleCss??><#t/>
- class="${parameters.doubleCss}"
+ <#if attributes.doubleCss??><#t/>
+ class="${attributes.doubleCss}"
#if><#t/>
- <#if parameters.doubleStyle??><#t/>
- style="${parameters.doubleStyle}"
+ <#if attributes.doubleStyle??><#t/>
+ style="${attributes.doubleStyle}"
#if><#t/>
- <#if parameters.doubleOnclick??><#t/>
- onclick="<#outputformat 'JavaScript'>${parameters.doubleOnclick}#outputformat>"
+ <#if attributes.doubleOnclick??><#t/>
+ onclick="<#outputformat 'JavaScript'>${attributes.doubleOnclick}#outputformat>"
#if><#t/>
- <#if parameters.doubleOndblclick??><#t/>
- ondblclick="<#outputformat 'JavaScript'>${parameters.doubleOndblclick}#outputformat>"
+ <#if attributes.doubleOndblclick??><#t/>
+ ondblclick="<#outputformat 'JavaScript'>${attributes.doubleOndblclick}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnmousedown??><#t/>
- onmousedown="<#outputformat 'JavaScript'>${parameters.doubleOnmousedown}#outputformat>"
+ <#if attributes.doubleOnmousedown??><#t/>
+ onmousedown="<#outputformat 'JavaScript'>${attributes.doubleOnmousedown}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnmouseup??><#t/>
- onmouseup="<#outputformat 'JavaScript'>${parameters.doubleOnmouseup}#outputformat>"
+ <#if attributes.doubleOnmouseup??><#t/>
+ onmouseup="<#outputformat 'JavaScript'>${attributes.doubleOnmouseup}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnmousemove??><#t/>
- onmousemove="<#outputformat 'JavaScript'>${parameters.doubleOnmousemove}#outputformat>"
+ <#if attributes.doubleOnmousemove??><#t/>
+ onmousemove="<#outputformat 'JavaScript'>${attributes.doubleOnmousemove}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnmouseover??><#t/>
- onmouseover="<#outputformat 'JavaScript'>${parameters.doubleOnmouseover}#outputformat>"
+ <#if attributes.doubleOnmouseover??><#t/>
+ onmouseover="<#outputformat 'JavaScript'>${attributes.doubleOnmouseover}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnmouseout??><#t/>
- onmouseout="<#outputformat 'JavaScript'>${parameters.doubleOnmouseout}#outputformat>"
+ <#if attributes.doubleOnmouseout??><#t/>
+ onmouseout="<#outputformat 'JavaScript'>${attributes.doubleOnmouseout}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnfocus??><#t/>
- onfocus="<#outputformat 'JavaScript'>${parameters.doubleOnfocus}#outputformat>"
+ <#if attributes.doubleOnfocus??><#t/>
+ onfocus="<#outputformat 'JavaScript'>${attributes.doubleOnfocus}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnblur??><#t/>
- onblur="<#outputformat 'JavaScript'>${parameters.doubleOnblur}#outputformat>"
+ <#if attributes.doubleOnblur??><#t/>
+ onblur="<#outputformat 'JavaScript'>${attributes.doubleOnblur}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnkeypress??><#t/>
- onkeypress="<#outputformat 'JavaScript'>${parameters.doubleOnkeypress}#outputformat>"
+ <#if attributes.doubleOnkeypress??><#t/>
+ onkeypress="<#outputformat 'JavaScript'>${attributes.doubleOnkeypress}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnKeydown??><#t/>
- onkeydown="<#outputformat 'JavaScript'>${parameters.doubleOnkeydown}#outputformat>"
+ <#if attributes.doubleOnKeydown??><#t/>
+ onkeydown="<#outputformat 'JavaScript'>${attributes.doubleOnkeydown}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnkeyup??><#t/>
- onkeyup="<#outputformat 'JavaScript'>${parameters.doubleOnkeyup}#outputformat>"
+ <#if attributes.doubleOnkeyup??><#t/>
+ onkeyup="<#outputformat 'JavaScript'>${attributes.doubleOnkeyup}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnselect??><#t/>
- onselect="<#outputformat 'JavaScript'>${parameters.doubleOnselect}#outputformat>"
+ <#if attributes.doubleOnselect??><#t/>
+ onselect="<#outputformat 'JavaScript'>${attributes.doubleOnselect}#outputformat>"
#if><#t/>
- <#if parameters.doubleOnchange??><#t/>
- onchange="<#outputformat 'JavaScript'>${parameters.doubleOnchange}#outputformat>"
+ <#if attributes.doubleOnchange??><#t/>
+ onchange="<#outputformat 'JavaScript'>${attributes.doubleOnchange}#outputformat>"
#if><#t/>
- <#if parameters.doubleAccesskey??><#t/>
- accesskey="<#outputformat 'JavaScript'>${parameters.doubleAccesskey}#outputformat>"
+ <#if attributes.doubleAccesskey??><#t/>
+ accesskey="<#outputformat 'JavaScript'>${attributes.doubleAccesskey}#outputformat>"
#if>
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/prefixed-dynamic-attributes.ftl" />
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/prefixed-dynamic-attributes.ftl" />
<@prefixedDynamicAttributes prefix="right-"/>
>
- <#if parameters.doubleHeaderKey?? && parameters.doubleHeaderValue??><#t/>
- ${parameters.doubleHeaderValue}
+ <#if attributes.doubleHeaderKey?? && attributes.doubleHeaderValue??><#t/>
+ ${attributes.doubleHeaderValue}
#if><#t/>
- <#if parameters.doubleEmptyOption!false><#t/>
+ <#if attributes.doubleEmptyOption!false><#t/>
#if><#t/>
- <@s.iterator value="parameters.doubleList"><#t/>
- <#if parameters.doubleListKey??><#t/>
- <#assign doubleItemKey = stack.findValue(parameters.doubleListKey) /><#t/>
+ <@s.iterator value="attributes.doubleList"><#t/>
+ <#if attributes.doubleListKey??><#t/>
+ <#assign doubleItemKey = stack.findValue(attributes.doubleListKey) /><#t/>
<#else><#t/>
<#assign doubleItemKey = stack.findValue('top') /><#t/>
#if><#t/>
<#assign doubleItemKeyStr = doubleItemKey.toString() /><#t/>
- <#if parameters.doubleListValue??><#t/>
- <#assign doubleItemValue = stack.findString(parameters.doubleListValue)!"" /><#t/>
+ <#if attributes.doubleListValue??><#t/>
+ <#assign doubleItemValue = stack.findString(attributes.doubleListValue)!"" /><#t/>
<#else><#t/>
<#assign doubleItemValue = stack.findString('top') /><#t/>
#if><#t/>
- <#if tag.contains(parameters.doubleNameValue, doubleItemKey)><#t/>
+ <#if tag.contains(attributes.doubleNameValue, doubleItemKey)><#t/>
selected="selected"<#rt/>
#if><#t/>
>${doubleItemValue}<#lt/>
@s.iterator><#t/>
-<#if parameters.doubleMultiple!false>
-
-<#if parameters.doubleDisabled!false>
+<#if attributes.doubleMultiple!false>
+
+<#if attributes.doubleDisabled!false>
disabled="disabled"<#rt/>
#if>
/>
#if>
-<#if parameters.allowUpDownOnRight!true>
+<#if attributes.allowUpDownOnRight!true>
- value="${parameters.rightDownLabel}"
+ onclick="moveOptionDown(document.getElementById('${attributes.doubleId}'), 'key', <#if attributes.doubleHeaderKey??>'${attributes.doubleHeaderKey}'<#else>''#if>);<#if attributes.upDownOnRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.upDownOnRightOnclick}#outputformat>;#if>"
+<#if attributes.rightDownLabel??>
+ value="${attributes.rightDownLabel}"
#if>
/>
- value="${parameters.rightUpLabel}"
+ onclick="moveOptionUp(document.getElementById('${attributes.doubleId}'), 'key', <#if attributes.doubleHeaderKey??>'${attributes.doubleHeaderKey}'<#else>''#if>);<#if attributes.upDownOnRightOnclick?has_content><#outputformat 'JavaScript'>${attributes.upDownOnRightOnclick}#outputformat>;#if>"
+<#if attributes.rightUpLabel??>
+ value="${attributes.rightUpLabel}"
#if>
/>
#if>
diff --git a/core/src/main/resources/template/simple/password.ftl b/core/src/main/resources/template/simple/password.ftl
index fa97b1db5..d592ade69 100644
--- a/core/src/main/resources/template/simple/password.ftl
+++ b/core/src/main/resources/template/simple/password.ftl
@@ -19,33 +19,33 @@
*/
-->
- name="${(parameters.name!"")}"<#rt/>
-<#if parameters.get("size")?has_content>
- size="${parameters.get("size")}"<#rt/>
+ name="${(attributes.name!"")}"<#rt/>
+<#if attributes.get("size")?has_content>
+ size="${attributes.get("size")}"<#rt/>
#if>
-<#if parameters.maxlength?has_content>
- maxlength="${parameters.maxlength}"<#rt/>
+<#if attributes.maxlength?has_content>
+ maxlength="${attributes.maxlength}"<#rt/>
#if>
-<#if parameters.nameValue?? && parameters.showPassword!false>
- value="<@s.property value="parameters.nameValue"/>"<#rt/>
+<#if attributes.nameValue?? && attributes.showPassword!false>
+ value="<@s.property value="attributes.nameValue"/>"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.readonly!false>
+<#if attributes.readonly!false>
readonly="readonly"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/prefixed-dynamic-attributes.ftl b/core/src/main/resources/template/simple/prefixed-dynamic-attributes.ftl
index 3b6c71b21..90a2d1cb8 100644
--- a/core/src/main/resources/template/simple/prefixed-dynamic-attributes.ftl
+++ b/core/src/main/resources/template/simple/prefixed-dynamic-attributes.ftl
@@ -19,11 +19,11 @@
*/
-->
<#macro prefixedDynamicAttributes prefix>
-<#if (parameters.dynamicAttributes?? && parameters.dynamicAttributes?size > 0)><#rt/>
-<#assign aKeys = parameters.dynamicAttributes.keySet()><#rt/>
+<#if (attributes.dynamicAttributes?? && attributes.dynamicAttributes?size > 0)><#rt/>
+<#assign aKeys = attributes.dynamicAttributes.keySet()><#rt/>
<#list aKeys as aKey><#rt/>
<#if aKey?starts_with(prefix)>
-<#assign keyValue = parameters.dynamicAttributes.get(aKey)/>
+<#assign keyValue = attributes.dynamicAttributes.get(aKey)/>
<#if keyValue?is_string>
<#assign value = struts.translateVariables(keyValue)!keyValue/>
<#else>
diff --git a/core/src/main/resources/template/simple/radiomap.ftl b/core/src/main/resources/template/simple/radiomap.ftl
index 597300e95..524bc7f7f 100644
--- a/core/src/main/resources/template/simple/radiomap.ftl
+++ b/core/src/main/resources/template/simple/radiomap.ftl
@@ -18,65 +18,65 @@
* under the License.
*/
-->
-<@s.iterator value="parameters.list">
- <#if parameters.listKey??>
- <#assign itemKey = stack.findValue(parameters.listKey)/>
- <#assign itemKeyStr = stack.findString(parameters.listKey)/>
+<@s.iterator value="attributes.list">
+ <#if attributes.listKey??>
+ <#assign itemKey = stack.findValue(attributes.listKey)/>
+ <#assign itemKeyStr = stack.findString(attributes.listKey)/>
<#else>
<#assign itemKey = stack.findValue('top')/>
<#assign itemKeyStr = stack.findString('top')>
#if>
- <#if parameters.listValueKey??>
+ <#if attributes.listValueKey??>
<#-- checks the valueStack for the 'valueKey.' The valueKey is then looked-up in the locale
file for it's localized value. This is then used as a label -->
- <#assign valueKey = stack.findString(parameters.listValueKey)!''/>
+ <#assign valueKey = stack.findString(attributes.listValueKey)!''/>
<#if valueKey?has_content>
<#assign itemValue = struts.getText(valueKey) />
<#else>
- <#assign itemValue = parameters.listValueKey />
+ <#assign itemValue = attributes.listValueKey />
#if>
- <#elseif parameters.listValue??>
- <#assign itemValue = stack.findString(parameters.listValue)/>
+ <#elseif attributes.listValue??>
+ <#assign itemValue = stack.findString(attributes.listValue)/>
<#else>
<#assign itemValue = stack.findString('top')/>
#if>
- <#if parameters.listCssClass??>
- <#if stack.findString(parameters.listCssClass)??>
- <#assign itemCssClass= stack.findString(parameters.listCssClass)/>
+ <#if attributes.listCssClass??>
+ <#if stack.findString(attributes.listCssClass)??>
+ <#assign itemCssClass= stack.findString(attributes.listCssClass)/>
<#else>
<#assign itemCssClass = ''/>
#if>
#if>
- <#if parameters.listCssStyle??>
- <#if stack.findString(parameters.listCssStyle)??>
- <#assign itemCssStyle= stack.findString(parameters.listCssStyle)/>
+ <#if attributes.listCssStyle??>
+ <#if stack.findString(attributes.listCssStyle)??>
+ <#assign itemCssStyle= stack.findString(attributes.listCssStyle)/>
<#else>
<#assign itemCssStyle = ''/>
#if>
#if>
- <#if parameters.listTitle??>
- <#if stack.findString(parameters.listTitle)??>
- <#assign itemTitle= stack.findString(parameters.listTitle)/>
+ <#if attributes.listTitle??>
+ <#if stack.findString(attributes.listTitle)??>
+ <#assign itemTitle= stack.findString(attributes.listTitle)/>
<#else>
<#assign itemTitle = ''/>
#if>
#if>
-<#if parameters.name?has_content>
- name="${parameters.name?no_esc}"<#rt/>
+<#if attributes.name?has_content>
+ name="${attributes.name?no_esc}"<#rt/>
#if>
- id="${parameters.id}${itemKeyStr?replace(".", "_")}"<#rt/>
-<#if tag.contains(parameters.nameValue!'', itemKey)>
+ id="${attributes.id}${itemKeyStr?replace(".", "_")}"<#rt/>
+<#if tag.contains(attributes.nameValue!'', itemKey)>
checked="checked"<#rt/>
#if>
<#if itemKey??>
value="${itemKeyStr}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
<#if itemCssClass?has_content>
class="${itemCssClass}"<#rt/>
@@ -87,17 +87,17 @@
<#if itemTitle?has_content>
title="${itemTitle}"<#rt/>
<#else>
- <#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+ <#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
<#global evaluate_dynamic_attributes = true/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/><#rt/>
- ><#rt/>
+ ><#rt/>
${itemValue}<#t/>
@s.iterator>
diff --git a/core/src/main/resources/template/simple/reset.ftl b/core/src/main/resources/template/simple/reset.ftl
index 4d238bb9c..ba7619972 100644
--- a/core/src/main/resources/template/simple/reset.ftl
+++ b/core/src/main/resources/template/simple/reset.ftl
@@ -18,63 +18,63 @@
* under the License.
*/
-->
-<#if parameters.type?? && parameters.type=="button">
+<#if attributes.type?? && attributes.type=="button">
-<#if parameters.name?has_content>
- name="${parameters.name}"<#rt/>
+<#if attributes.name?has_content>
+ name="${attributes.name}"<#rt/>
#if>
-<#if parameters.nameValue??>
- value="<@s.property value="parameters.nameValue"/>"<#rt/>
+<#if attributes.nameValue??>
+ value="<@s.property value="attributes.nameValue"/>"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl"/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
-><#if parameters.src?has_content>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl"/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
+><#if attributes.src?has_content>
-<#if parameters.label?has_content>
- alt="${parameters.label}"<#rt/>
+<#if attributes.label?has_content>
+ alt="${attributes.label}"<#rt/>
#if>
-<#if parameters.src?has_content>
- src="${parameters.src}"<#rt/>
+<#if attributes.src?has_content>
+ src="${attributes.src}"<#rt/>
#if>
-/><#else><#if parameters.label?has_content><@s.property value="parameters.label"/><#rt/>#if>#if>
+/><#else><#if attributes.label?has_content><@s.property value="attributes.label"/><#rt/>#if>#if>
<#else>
-<#if parameters.name?has_content>
- name="${parameters.name}"<#rt/>
+<#if attributes.name?has_content>
+ name="${attributes.name}"<#rt/>
#if>
-<#if parameters.nameValue??>
- value="<@s.property value="parameters.nameValue"/>"<#rt/>
+<#if attributes.nameValue??>
+ value="<@s.property value="attributes.nameValue"/>"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
#if>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/script.ftl b/core/src/main/resources/template/simple/script.ftl
index 11ce14827..51141b626 100644
--- a/core/src/main/resources/template/simple/script.ftl
+++ b/core/src/main/resources/template/simple/script.ftl
@@ -19,33 +19,33 @@
*/
-->
-<#if parameters.async?has_content && parameters.async == "true">
+<#if attributes.async?has_content && attributes.async == "true">
async<#rt/>
#if>
-<#if parameters.charset?has_content>
- charset="${parameters.charset}"<#rt/>
+<#if attributes.charset?has_content>
+ charset="${attributes.charset}"<#rt/>
#if>
-<#if parameters.defer?has_content && parameters.defer=="true">
+<#if attributes.defer?has_content && attributes.defer=="true">
defer<#rt/>
#if>
-<#if parameters.type?has_content>
- type="${parameters.type}"<#rt/>
+<#if attributes.type?has_content>
+ type="${attributes.type}"<#rt/>
#if>
-<#if parameters.src?has_content>
- src="${parameters.src}"<#rt/>
+<#if attributes.src?has_content>
+ src="${attributes.src}"<#rt/>
#if>
-<#if parameters.referrerpolicy?has_content>
- referrerpolicy="${parameters.referrerpolicy}"<#rt/>
+<#if attributes.referrerpolicy?has_content>
+ referrerpolicy="${attributes.referrerpolicy}"<#rt/>
#if>
-<#if parameters.nomodule?has_content && parameters.nomodule=="true">
+<#if attributes.nomodule?has_content && attributes.nomodule=="true">
nomodule<#rt/>
#if>
-<#if parameters.integrity?has_content>
- integrity="${parameters.integrity}"<#rt/>
+<#if attributes.integrity?has_content>
+ integrity="${attributes.integrity}"<#rt/>
#if>
-<#if parameters.crossorigin?has_content>
- crossorigin="${parameters.crossorigin}"<#rt/>
+<#if attributes.crossorigin?has_content>
+ crossorigin="${attributes.crossorigin}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/nonce.ftl" />>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/nonce.ftl" />>
diff --git a/core/src/main/resources/template/simple/scripting-events.ftl b/core/src/main/resources/template/simple/scripting-events.ftl
index 857d30315..45dc8dab4 100644
--- a/core/src/main/resources/template/simple/scripting-events.ftl
+++ b/core/src/main/resources/template/simple/scripting-events.ftl
@@ -18,45 +18,45 @@
* under the License.
*/
-->
-<#if parameters.onclick??>
- onclick="<#outputformat 'JavaScript'>${parameters.onclick}#outputformat>"<#rt/>
+<#if attributes.onclick??>
+ onclick="<#outputformat 'JavaScript'>${attributes.onclick}#outputformat>"<#rt/>
#if>
-<#if parameters.ondblclick??>
- ondblclick="<#outputformat 'JavaScript'>${parameters.ondblclick}#outputformat>"<#rt/>
+<#if attributes.ondblclick??>
+ ondblclick="<#outputformat 'JavaScript'>${attributes.ondblclick}#outputformat>"<#rt/>
#if>
-<#if parameters.onmousedown??>
- onmousedown="<#outputformat 'JavaScript'>${parameters.onmousedown}#outputformat>"<#rt/>
+<#if attributes.onmousedown??>
+ onmousedown="<#outputformat 'JavaScript'>${attributes.onmousedown}#outputformat>"<#rt/>
#if>
-<#if parameters.onmouseup??>
- onmouseup="<#outputformat 'JavaScript'>${parameters.onmouseup}#outputformat>"<#rt/>
+<#if attributes.onmouseup??>
+ onmouseup="<#outputformat 'JavaScript'>${attributes.onmouseup}#outputformat>"<#rt/>
#if>
-<#if parameters.onmouseover??>
- onmouseover="<#outputformat 'JavaScript'>${parameters.onmouseover}#outputformat>"<#rt/>
+<#if attributes.onmouseover??>
+ onmouseover="<#outputformat 'JavaScript'>${attributes.onmouseover}#outputformat>"<#rt/>
#if>
-<#if parameters.onmousemove??>
- onmousemove="<#outputformat 'JavaScript'>${parameters.onmousemove}#outputformat>"<#rt/>
+<#if attributes.onmousemove??>
+ onmousemove="<#outputformat 'JavaScript'>${attributes.onmousemove}#outputformat>"<#rt/>
#if>
-<#if parameters.onmouseout??>
- onmouseout="<#outputformat 'JavaScript'>${parameters.onmouseout}#outputformat>"<#rt/>
+<#if attributes.onmouseout??>
+ onmouseout="<#outputformat 'JavaScript'>${attributes.onmouseout}#outputformat>"<#rt/>
#if>
-<#if parameters.onfocus??>
- onfocus="<#outputformat 'JavaScript'>${parameters.onfocus}#outputformat>"<#rt/>
+<#if attributes.onfocus??>
+ onfocus="<#outputformat 'JavaScript'>${attributes.onfocus}#outputformat>"<#rt/>
#if>
-<#if parameters.onblur??>
- onblur="<#outputformat 'JavaScript'>${parameters.onblur}#outputformat>"<#rt/>
+<#if attributes.onblur??>
+ onblur="<#outputformat 'JavaScript'>${attributes.onblur}#outputformat>"<#rt/>
#if>
-<#if parameters.onkeypress??>
- onkeypress="<#outputformat 'JavaScript'>${parameters.onkeypress}#outputformat>"<#rt/>
+<#if attributes.onkeypress??>
+ onkeypress="<#outputformat 'JavaScript'>${attributes.onkeypress}#outputformat>"<#rt/>
#if>
-<#if parameters.onkeydown??>
- onkeydown="<#outputformat 'JavaScript'>${parameters.onkeydown}#outputformat>"<#rt/>
+<#if attributes.onkeydown??>
+ onkeydown="<#outputformat 'JavaScript'>${attributes.onkeydown}#outputformat>"<#rt/>
#if>
-<#if parameters.onkeyup??>
- onkeyup="<#outputformat 'JavaScript'>${parameters.onkeyup}#outputformat>"<#rt/>
+<#if attributes.onkeyup??>
+ onkeyup="<#outputformat 'JavaScript'>${attributes.onkeyup}#outputformat>"<#rt/>
#if>
-<#if parameters.onselect??>
- onselect="<#outputformat 'JavaScript'>${parameters.onselect}#outputformat>"<#rt/>
+<#if attributes.onselect??>
+ onselect="<#outputformat 'JavaScript'>${attributes.onselect}#outputformat>"<#rt/>
#if>
-<#if parameters.onchange??>
- onchange="<#outputformat 'JavaScript'>${parameters.onchange}#outputformat>"<#rt/>
+<#if attributes.onchange??>
+ onchange="<#outputformat 'JavaScript'>${attributes.onchange}#outputformat>"<#rt/>
#if>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/select.ftl b/core/src/main/resources/template/simple/select.ftl
index c10633e5e..40dc15ae8 100644
--- a/core/src/main/resources/template/simple/select.ftl
+++ b/core/src/main/resources/template/simple/select.ftl
@@ -20,45 +20,45 @@
-->
<#setting number_format="#.#####">
- name="${(parameters.name!"")}"<#rt/>
-<#if parameters.get("size")?has_content>
- size="${parameters.get("size")}"<#rt/>
+ name="${(attributes.name!"")}"<#rt/>
+<#if attributes.get("size")?has_content>
+ size="${attributes.get("size")}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.multiple!false>
+<#if attributes.multiple!false>
multiple="multiple"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
>
-<#if parameters.headerKey?? && parameters.headerValue??>
-
- <#if tag.contains(parameters.nameValue, parameters.headerKey) == true>
+<#if attributes.headerKey?? && attributes.headerValue??>
+
+ <#if tag.contains(attributes.nameValue, attributes.headerKey) == true>
selected="selected"<#rt/>
#if>
- >${parameters.headerValue}
+ >${attributes.headerValue}
#if>
-<#if parameters.emptyOption!false>
+<#if attributes.emptyOption!false>
#if>
-<@s.iterator value="parameters.list">
- <#if parameters.listKey??>
- <#if stack.findValue(parameters.listKey)??>
- <#assign itemKey = stack.findValue(parameters.listKey)/>
- <#assign itemKeyStr = stack.findString(parameters.listKey)/>
+<@s.iterator value="attributes.list">
+ <#if attributes.listKey??>
+ <#if stack.findValue(attributes.listKey)??>
+ <#assign itemKey = stack.findValue(attributes.listKey)/>
+ <#assign itemKeyStr = stack.findString(attributes.listKey)/>
<#else>
<#assign itemKey = ''/>
<#assign itemKeyStr = ''/>
@@ -67,47 +67,47 @@
<#assign itemKey = stack.findValue('top')/>
<#assign itemKeyStr = stack.findString('top')>
#if>
- <#if parameters.listValueKey??>
+ <#if attributes.listValueKey??>
<#-- checks the valueStack for the 'valueKey.' The valueKey is then looked-up in the locale file for it's
localized value. This is then used as a label -->
- <#assign valueKey = stack.findString(parameters.listValueKey)!'' />
+ <#assign valueKey = stack.findString(attributes.listValueKey)!'' />
<#if valueKey?has_content>
<#assign itemValue = struts.getText(valueKey) />
<#else>
- <#assign itemValue = parameters.listValueKey />
+ <#assign itemValue = attributes.listValueKey />
#if>
- <#elseif parameters.listValue??>
- <#if stack.findString(parameters.listValue)??>
- <#assign itemValue = stack.findString(parameters.listValue)/>
+ <#elseif attributes.listValue??>
+ <#if stack.findString(attributes.listValue)??>
+ <#assign itemValue = stack.findString(attributes.listValue)/>
<#else>
<#assign itemValue = ''/>
#if>
<#else>
<#assign itemValue = stack.findString('top')/>
#if>
- <#if parameters.listCssClass??>
- <#if stack.findString(parameters.listCssClass)??>
- <#assign itemCssClass= stack.findString(parameters.listCssClass)/>
+ <#if attributes.listCssClass??>
+ <#if stack.findString(attributes.listCssClass)??>
+ <#assign itemCssClass= stack.findString(attributes.listCssClass)/>
<#else>
<#assign itemCssClass = ''/>
#if>
#if>
- <#if parameters.listCssStyle??>
- <#if stack.findString(parameters.listCssStyle)??>
- <#assign itemCssStyle= stack.findString(parameters.listCssStyle)/>
+ <#if attributes.listCssStyle??>
+ <#if stack.findString(attributes.listCssStyle)??>
+ <#assign itemCssStyle= stack.findString(attributes.listCssStyle)/>
<#else>
<#assign itemCssStyle = ''/>
#if>
#if>
- <#if parameters.listTitle??>
- <#if stack.findString(parameters.listTitle)??>
- <#assign itemTitle= stack.findString(parameters.listTitle)/>
+ <#if attributes.listTitle??>
+ <#if stack.findString(attributes.listTitle)??>
+ <#assign itemTitle= stack.findString(attributes.listTitle)/>
<#else>
<#assign itemTitle = ''/>
#if>
#if>
- <#if tag.contains(parameters.nameValue, itemKey) == true>
+ <#if tag.contains(attributes.nameValue, itemKey) == true>
selected="selected"<#rt/>
#if>
<#if itemCssClass?has_content>
@@ -121,24 +121,24 @@
#if>
>${itemValue}<#lt/>
@s.iterator>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/optgroup.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/optgroup.ftl" />
-<#if parameters.multiple!false>
- <#if (parameters.id?? && parameters.name??)>
-
+<#if attributes.multiple!false>
+ <#if (attributes.id?? && attributes.name??)>
+
#if>
- <#if (parameters.id?? && !parameters.name??)>
-
+ <#if (attributes.id?? && !attributes.name??)>
+
#if>
- <#if ( !parameters.id?? && parameters.name??)>
-
+ <#if ( !attributes.id?? && attributes.name??)>
+
#if>
- <#if ( !parameters.id?? && !parameters.name??)>
+ <#if ( !attributes.id?? && !attributes.name??)>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
/>
diff --git a/core/src/main/resources/template/simple/submit-close.ftl b/core/src/main/resources/template/simple/submit-close.ftl
index 8cc546067..5a617f73d 100644
--- a/core/src/main/resources/template/simple/submit-close.ftl
+++ b/core/src/main/resources/template/simple/submit-close.ftl
@@ -18,9 +18,9 @@
* under the License.
*/
-->
-<#if parameters.type?? && parameters.type=="button">
-<#if parameters.body?length gt 0>${tag.escapeHtmlBody()?then(parameters.body, parameters.body?no_esc)}<#elseif parameters.label??><@s.property value="parameters.label"/><#rt/>#if>
+<#if attributes.type?? && attributes.type=="button">
+<#if attributes.body?length gt 0>${tag.escapeHtmlBody()?then(attributes.body, attributes.body?no_esc)}<#elseif attributes.label??><@s.property value="attributes.label"/><#rt/>#if>
<#else>
-${tag.escapeHtmlBody()?then(parameters.body, parameters.body?no_esc)}<#rt/>
+${tag.escapeHtmlBody()?then(attributes.body, attributes.body?no_esc)}<#rt/>
#if>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/submit.ftl b/core/src/main/resources/template/simple/submit.ftl
index a932103f4..a6cdf7cd8 100644
--- a/core/src/main/resources/template/simple/submit.ftl
+++ b/core/src/main/resources/template/simple/submit.ftl
@@ -18,74 +18,74 @@
* under the License.
*/
-->
-<#if parameters.type?? && parameters.type=="button">
+<#if attributes.type?? && attributes.type=="button">
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.name?has_content>
- name="${parameters.name}"<#rt/>
+<#if attributes.name?has_content>
+ name="${attributes.name}"<#rt/>
#if>
-<#if parameters.nameValue??>
- value="<@s.property value="parameters.nameValue"/>"<#rt/>
+<#if attributes.nameValue??>
+ value="<@s.property value="attributes.nameValue"/>"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl"/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl"/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
>
<#else>
-<#if parameters.type?? && parameters.type=="image">
+<#if attributes.type?? && attributes.type=="image">
-<#if parameters.label?has_content>
- alt="${parameters.label}"<#rt/>
+<#if attributes.label?has_content>
+ alt="${attributes.label}"<#rt/>
#if>
-<#if parameters.src?has_content>
- src="${parameters.src}"<#rt/>
+<#if attributes.src?has_content>
+ src="${attributes.src}"<#rt/>
#if>
<#else>
-<#if parameters.nameValue?has_content>
- value="<@s.property value="parameters.nameValue"/>"<#rt/>
+<#if attributes.nameValue?has_content>
+ value="<@s.property value="attributes.nameValue"/>"<#rt/>
#if>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#if parameters.name?has_content>
- name="${parameters.name}"<#rt/>
+<#if attributes.name?has_content>
+ name="${attributes.name}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.cssClass?has_content>
- class="${parameters.cssClass}"<#rt/>
+<#if attributes.cssClass?has_content>
+ class="${attributes.cssClass}"<#rt/>
#if>
-<#if parameters.cssStyle?has_content>
- style="${parameters.cssStyle}"<#rt/>
+<#if attributes.cssStyle?has_content>
+ style="${attributes.cssStyle}"<#rt/>
#if>
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
#if>
diff --git a/core/src/main/resources/template/simple/text.ftl b/core/src/main/resources/template/simple/text.ftl
index 0c59a5065..995657ac3 100644
--- a/core/src/main/resources/template/simple/text.ftl
+++ b/core/src/main/resources/template/simple/text.ftl
@@ -19,34 +19,34 @@
*/
-->
- type="${(parameters.type!"text")}"<#rt/>
- name="${(parameters.name!"")}"<#rt/>
-<#if parameters.get("size")?has_content>
- size="${parameters.get("size")}"<#rt/>
+ type="${(attributes.type!"text")}"<#rt/>
+ name="${(attributes.name!"")}"<#rt/>
+<#if attributes.get("size")?has_content>
+ size="${attributes.get("size")}"<#rt/>
#if>
-<#if parameters.maxlength?has_content>
- maxlength="${parameters.maxlength}"<#rt/>
+<#if attributes.maxlength?has_content>
+ maxlength="${attributes.maxlength}"<#rt/>
#if>
-<#if parameters.nameValue??>
- value="${parameters.nameValue}"<#rt/>
+<#if attributes.nameValue??>
+ value="${attributes.nameValue}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.readonly!false>
+<#if attributes.readonly!false>
readonly="readonly"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
/>
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/textarea.ftl b/core/src/main/resources/template/simple/textarea.ftl
index b3f653ced..f5c6ce2f9 100644
--- a/core/src/main/resources/template/simple/textarea.ftl
+++ b/core/src/main/resources/template/simple/textarea.ftl
@@ -19,43 +19,43 @@
*/
-->
- name="${(parameters.name!"")}"<#rt/>
-<#if parameters.cols?has_content>
- cols="${(parameters.cols!"")}"<#rt/>
+ name="${(attributes.name!"")}"<#rt/>
+<#if attributes.cols?has_content>
+ cols="${(attributes.cols!"")}"<#rt/>
#if>
-<#if parameters.rows?has_content>
- rows="${(parameters.rows!"")}"<#rt/>
+<#if attributes.rows?has_content>
+ rows="${(attributes.rows!"")}"<#rt/>
#if>
-<#if parameters.wrap?has_content>
- wrap="${parameters.wrap}"<#rt/>
+<#if attributes.wrap?has_content>
+ wrap="${attributes.wrap}"<#rt/>
#if>
-<#if parameters.disabled!false>
+<#if attributes.disabled!false>
disabled="disabled"<#rt/>
#if>
-<#if parameters.readonly!false>
+<#if attributes.readonly!false>
readonly="readonly"<#rt/>
#if>
-<#if parameters.tabindex?has_content>
- tabindex="${parameters.tabindex}"<#rt/>
+<#if attributes.tabindex?has_content>
+ tabindex="${attributes.tabindex}"<#rt/>
#if>
-<#if parameters.id?has_content>
- id="${parameters.id}"<#rt/>
+<#if attributes.id?has_content>
+ id="${attributes.id}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/css.ftl" />
-<#if parameters.title?has_content>
- title="${parameters.title}"<#rt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/css.ftl" />
+<#if attributes.title?has_content>
+ title="${attributes.title}"<#rt/>
#if>
-<#if parameters.maxlength?has_content>
- maxlength="${parameters.maxlength}"<#rt/>
+<#if attributes.maxlength?has_content>
+ maxlength="${attributes.maxlength}"<#rt/>
#if>
-<#if parameters.minlength?has_content>
- minlength="${parameters.minlength}"<#rt/>
+<#if attributes.minlength?has_content>
+ minlength="${attributes.minlength}"<#rt/>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/scripting-events.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/common-attributes.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/dynamic-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/scripting-events.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/common-attributes.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/dynamic-attributes.ftl" />
><#rt/>
-<#if parameters.nameValue??>
-<@s.property value="parameters.nameValue"/><#t/>
+<#if attributes.nameValue??>
+<@s.property value="attributes.nameValue"/><#t/>
#if>
diff --git a/core/src/main/resources/template/simple/token.ftl b/core/src/main/resources/template/simple/token.ftl
index d063bbbb5..1ecc66ec3 100644
--- a/core/src/main/resources/template/simple/token.ftl
+++ b/core/src/main/resources/template/simple/token.ftl
@@ -18,5 +18,5 @@
* under the License.
*/
-->
-
-
\ No newline at end of file
+
+
\ No newline at end of file
diff --git a/core/src/main/resources/template/simple/updownselect.ftl b/core/src/main/resources/template/simple/updownselect.ftl
index a67194f63..a2e652702 100644
--- a/core/src/main/resources/template/simple/updownselect.ftl
+++ b/core/src/main/resources/template/simple/updownselect.ftl
@@ -19,7 +19,7 @@
*/
-->
<#if !stack.findValue("#optiontransferselect_js_included")??><#t/>
- <@s.script src="${base}${parameters.staticContentPath}/optiontransferselect.js" /><#t/>
+ <@s.script src="${base}${attributes.staticContentPath}/optiontransferselect.js" /><#t/>
<#assign temporaryVariable = stack.setValue("#optiontransferselect_js_included", "true") /><#t/>
#if><#t/>
@@ -27,28 +27,28 @@
<#include "/${templateDir}/simple/select.ftl" /><#t/>
-<#if parameters.allowMoveUp!true><#t/>
- <#assign defMoveUpLabel="${parameters.moveUpLabel!'^'}" /><#t/>
- <#if parameters.headerKey??><#t/>
-
+<#if attributes.allowMoveUp!true><#t/>
+ <#assign defMoveUpLabel="${attributes.moveUpLabel!'^'}" /><#t/>
+ <#if attributes.headerKey??><#t/>
+
<#else><#t/>
-
+
#if><#t/>
#if><#t/>
-<#if parameters.allowMoveDown!true><#t/>
- <#assign defMoveDownLabel="${parameters.moveDownLabel!'v'}" /><#t/>
- <#if parameters.headerKey??><#t/>
-
+<#if attributes.allowMoveDown!true><#t/>
+ <#assign defMoveDownLabel="${attributes.moveDownLabel!'v'}" /><#t/>
+ <#if attributes.headerKey??><#t/>
+
<#else><#t/>
-
+
#if><#t/>
#if><#t/>
-<#if parameters.allowSelectAll!true><#t/>
- <#assign defSelectAllLabel="${parameters.selectAllLabel!'*'}" /><#t/>
- <#if parameters.headerKey??><#t/>
-
+<#if attributes.allowSelectAll!true><#t/>
+ <#assign defSelectAllLabel="${attributes.selectAllLabel!'*'}" /><#t/>
+ <#if attributes.headerKey??><#t/>
+
<#else><#t/>
-
+
#if><#t/>
#if><#t/>
diff --git a/core/src/main/resources/template/xhtml/checkbox.ftl b/core/src/main/resources/template/xhtml/checkbox.ftl
index 1471a43f1..19ee478a7 100644
--- a/core/src/main/resources/template/xhtml/checkbox.ftl
+++ b/core/src/main/resources/template/xhtml/checkbox.ftl
@@ -18,12 +18,12 @@
* under the License.
*/
-->
-<#assign hasFieldErrors = fieldErrors?? && fieldErrors.get(parameters.name)??/>
+<#assign hasFieldErrors = fieldErrors?? && fieldErrors.get(attributes.name)??/>
<#if hasFieldErrors>
-<#list fieldErrors.get(parameters.name) as error>
+<#list fieldErrors.get(attributes.name) as error>
-<#if parameters.id??>
- errorFor="${parameters.id}"<#rt/>
+<#if attributes.id??>
+ errorFor="${attributes.id}"<#rt/>
#if>
>
<#rt/>
@@ -32,17 +32,17 @@
#list>
#if>
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#if (labelPos!"") == 'top'>
-<#if parameters.label??>
-<#if parameters.id??>
- for="${parameters.id}"<#rt/>
+<#if attributes.label??>
+<#if attributes.id??>
+ for="${attributes.id}"<#rt/>
#if>
<#if hasFieldErrors>
class="checkboxErrorLabel"<#rt/>
@@ -50,16 +50,16 @@
class="checkboxLabel"<#rt/>
#if>
>
-<#if parameters.required!false && parameters.requiredPosition!"right" != 'right'>
+<#if attributes.required!false && attributes.requiredPosition!"right" != 'right'>
* <#t/>
#if>
-${parameters.label}<#t/>
-<#if parameters.required!false && parameters.requiredPosition!"right" == 'right'>
+${attributes.label}<#t/>
+<#if attributes.required!false && attributes.requiredPosition!"right" == 'right'>
* <#t/>
#if>
:<#t/>
-<#if parameters.tooltip??>
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/tooltip.ftl" />
+<#if attributes.tooltip??>
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/tooltip.ftl" />
#if>
<#t/>
#if>
@@ -67,14 +67,14 @@ ${parameters.label}<#t/>
- <#include "/${parameters.templateDir}/simple/checkbox.ftl" />
+ <#include "/${attributes.templateDir}/simple/checkbox.ftl" />
<#else>
<#if (labelPos!"") == 'left'>
-<#if parameters.label??>
-<#if parameters.id??>
- for="${parameters.id}"<#rt/>
+<#if attributes.label??>
+<#if attributes.id??>
+ for="${attributes.id}"<#rt/>
#if>
<#if hasFieldErrors>
class="checkboxErrorLabel"<#rt/>
@@ -82,45 +82,45 @@ ${parameters.label}<#t/>
class="checkboxLabel"<#rt/>
#if>
>
-<#if parameters.required!false && parameters.requiredPosition!"right" != 'right'>
+<#if attributes.required!false && attributes.requiredPosition!"right" != 'right'>
* <#t/>
#if>
-${parameters.label}<#t/>
-<#if parameters.required!false && parameters.requiredPosition!"right" == 'right'>
+${attributes.label}<#t/>
+<#if attributes.required!false && attributes.requiredPosition!"right" == 'right'>
* <#t/>
#if>
:<#t/>
-<#if parameters.tooltip??>
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/tooltip.ftl" />
+<#if attributes.tooltip??>
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/tooltip.ftl" />
#if>
<#t/>
#if>
#if>
<#if (labelPos!"") == 'right'>
- <#if parameters.required!false>
+ <#if attributes.required!false>
* <#t/>
#if>
- <#if parameters.tooltip??>
- <#include "/${parameters.templateDir}/${parameters.expandTheme}/tooltip.ftl" />
+ <#if attributes.tooltip??>
+ <#include "/${attributes.templateDir}/${attributes.expandTheme}/tooltip.ftl" />
#if>
#if>
<#if (labelPos!"") != 'top'>
- <#include "/${parameters.templateDir}/simple/checkbox.ftl" />
+ <#include "/${attributes.templateDir}/simple/checkbox.ftl" />
#if>
<#if (labelPos!"") != 'top' && (labelPos!"") != 'left'>
-<#if parameters.label??>
-<#if parameters.id??>
- for="${parameters.id}"<#rt/>
+<#if attributes.label??>
+<#if attributes.id??>
+ for="${attributes.id}"<#rt/>
#if>
<#if hasFieldErrors>
class="checkboxErrorLabel"<#rt/>
<#else>
class="checkboxLabel"<#rt/>
#if>
->${parameters.label}<#rt/>
+>${attributes.label}<#rt/>
#if>
#if>
#if>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/checkboxlist.ftl b/core/src/main/resources/template/xhtml/checkboxlist.ftl
index fd0137dd9..435c334b5 100644
--- a/core/src/main/resources/template/xhtml/checkboxlist.ftl
+++ b/core/src/main/resources/template/xhtml/checkboxlist.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/checkboxlist.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/checkboxlist.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/combobox.ftl b/core/src/main/resources/template/xhtml/combobox.ftl
index de0fffda1..bbce8c399 100644
--- a/core/src/main/resources/template/xhtml/combobox.ftl
+++ b/core/src/main/resources/template/xhtml/combobox.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/combobox.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/combobox.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/control.ftl b/core/src/main/resources/template/xhtml/control.ftl
index 6cf05f3a6..27d4d5f14 100644
--- a/core/src/main/resources/template/xhtml/control.ftl
+++ b/core/src/main/resources/template/xhtml/control.ftl
@@ -18,7 +18,7 @@
* under the License.
*/
-->
-
-<#if parameters.cssStyle??> style="${parameters.cssStyle}"<#rt/>
+
+<#if attributes.cssStyle??> style="${attributes.cssStyle}"<#rt/>
#if>
>
\ No newline at end of file
diff --git a/core/src/main/resources/template/xhtml/controlfooter.ftl b/core/src/main/resources/template/xhtml/controlfooter.ftl
index 65d657a72..1fbad781b 100644
--- a/core/src/main/resources/template/xhtml/controlfooter.ftl
+++ b/core/src/main/resources/template/xhtml/controlfooter.ftl
@@ -18,14 +18,14 @@
* under the License.
*/
-->
-${parameters.after!}<#t/>
+${attributes.after!}<#t/>
<#lt/>
-<#if (parameters.errorposition!"top") == 'bottom'>
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
+<#if (attributes.errorposition!"top") == 'bottom'>
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
<#if hasFieldErrors>
-<#list fieldErrors.get(parameters.name) as error>
-
+<#list fieldErrors.get(attributes.name) as error>
+
<#rt/>
${error} <#t/>
<#lt/>
diff --git a/core/src/main/resources/template/xhtml/controlheader-core.ftl b/core/src/main/resources/template/xhtml/controlheader-core.ftl
index 3bf10e046..5c7f1227e 100644
--- a/core/src/main/resources/template/xhtml/controlheader-core.ftl
+++ b/core/src/main/resources/template/xhtml/controlheader-core.ftl
@@ -22,11 +22,11 @@
Only show message if errors are available.
This will be done if ActionSupport is used.
-->
-<#assign hasFieldErrors = parameters.name?? && fieldErrors?? && fieldErrors.get(parameters.name)??/>
-<#if (parameters.errorposition!"top") == 'top'>
+<#assign hasFieldErrors = attributes.name?? && fieldErrors?? && fieldErrors.get(attributes.name)??/>
+<#if (attributes.errorposition!"top") == 'top'>
<#if hasFieldErrors>
-<#list fieldErrors.get(parameters.name) as error>
-
+<#list fieldErrors.get(attributes.name) as error>
+
<#rt/>
${error} <#t/>
<#lt/>
@@ -34,10 +34,10 @@
#list>
#if>
#if>
-<#if !parameters.labelPosition?? && (parameters.form.labelPosition)??>
-<#assign labelPos = parameters.form.labelPosition/>
-<#elseif parameters.labelPosition??>
-<#assign labelPos = parameters.labelPosition/>
+<#if !attributes.labelPosition?? && (attributes.form.labelPosition)??>
+<#assign labelPos = attributes.form.labelPosition/>
+<#elseif attributes.labelPosition??>
+<#assign labelPos = attributes.labelPosition/>
#if>
<#--
if the label position is top,
@@ -49,10 +49,10 @@
<#else>
<#rt/>
#if>
-<#if parameters.label??>
+<#if attributes.label??>
-<#if parameters.id??>
- for="${parameters.id}" <#t/>
+<#if attributes.id??>
+ for="${attributes.id}" <#t/>
#if>
<#if hasFieldErrors>
class="errorLabel"<#t/>
@@ -60,15 +60,15 @@
class="label"<#t/>
#if>
><#t/>
-<#if (parameters.required!false) && ((parameters.requiredPosition!"right") != 'right')>
+<#if (attributes.required!false) && ((attributes.requiredPosition!"right") != 'right')>
* <#t/>
#if>
-${parameters.label}<#t/>
-<#if (parameters.required!false) && ((parameters.requiredPosition!"right") == 'right')>
+${attributes.label}<#t/>
+<#if (attributes.required!false) && ((attributes.requiredPosition!"right") == 'right')>
* <#t/>
#if>
-${parameters.labelseparator!":"}<#t/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/tooltip.ftl" />
+${attributes.labelseparator!":"}<#t/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/tooltip.ftl" />
<#t/>
#if>
<#lt/>
diff --git a/core/src/main/resources/template/xhtml/controlheader.ftl b/core/src/main/resources/template/xhtml/controlheader.ftl
index 537de7fcb..ec9372d92 100644
--- a/core/src/main/resources/template/xhtml/controlheader.ftl
+++ b/core/src/main/resources/template/xhtml/controlheader.ftl
@@ -18,11 +18,11 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader-core.ftl" />
-
- class="align-${parameters.align}"
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader-core.ftl" />
+
+ class="align-${attributes.align}"
<#else >
- class="tdInput"
+ class="tdInput"
#if>
><#t/>
diff --git a/core/src/main/resources/template/xhtml/datetextfield.ftl b/core/src/main/resources/template/xhtml/datetextfield.ftl
index 3efeab414..a6ee9f1f2 100644
--- a/core/src/main/resources/template/xhtml/datetextfield.ftl
+++ b/core/src/main/resources/template/xhtml/datetextfield.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/datetextfield.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/datetextfield.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/doubleselect.ftl b/core/src/main/resources/template/xhtml/doubleselect.ftl
index d6b56951b..4875a33cb 100644
--- a/core/src/main/resources/template/xhtml/doubleselect.ftl
+++ b/core/src/main/resources/template/xhtml/doubleselect.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/doubleselect.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/doubleselect.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/file.ftl b/core/src/main/resources/template/xhtml/file.ftl
index 0ee2055d6..c45bf3cc8 100644
--- a/core/src/main/resources/template/xhtml/file.ftl
+++ b/core/src/main/resources/template/xhtml/file.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/file.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/file.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/form-close-validate.ftl b/core/src/main/resources/template/xhtml/form-close-validate.ftl
index dce718e6c..8e8661568 100644
--- a/core/src/main/resources/template/xhtml/form-close-validate.ftl
+++ b/core/src/main/resources/template/xhtml/form-close-validate.ftl
@@ -31,9 +31,9 @@ Only the following validators are supported:
* double validator
END SNIPPET: supported-validators
-->
-<#if ((parameters.validate!false == true) && (parameters.performValidation!false == true))>
+<#if ((attributes.validate!false == true) && (attributes.performValidation!false == true))>
<@s.script>
- function validateForm_${parameters.escapedId}() {
+ function validateForm_${attributes.escapedId}() {
<#--
In case of multiselect fields return only the first value.
-->
@@ -54,13 +54,13 @@ END SNIPPET: supported-validators
}
return field.value;
}
- form = document.getElementById("${parameters.id?js_string}");
+ form = document.getElementById("${attributes.id?js_string}");
clearErrorMessages(form);
clearErrorLabels(form);
var errors = false;
var continueValidation = true;
- <#list parameters.tagNames as tagName>
+ <#list attributes.tagNames as tagName>
<#list tag.getValidators("${tagName}") as aValidator>
// field name: ${aValidator.fieldName?js_string}
// validator name: ${aValidator.validatorType}
diff --git a/core/src/main/resources/template/xhtml/form-close.ftl b/core/src/main/resources/template/xhtml/form-close.ftl
index 1d17228b7..e69b16580 100644
--- a/core/src/main/resources/template/xhtml/form-close.ftl
+++ b/core/src/main/resources/template/xhtml/form-close.ftl
@@ -18,13 +18,13 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/control-close.ftl" />
-<#include "/${parameters.templateDir}/simple/form-close.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/form-close-validate.ftl" />
-<#if parameters.focusElement??>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/control-close.ftl" />
+<#include "/${attributes.templateDir}/simple/form-close.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/form-close-validate.ftl" />
+<#if attributes.focusElement??>
<@s.script>
StrutsUtils.addOnLoad(function() {
- var element = document.getElementById("${parameters.focusElement?js_string}");
+ var element = document.getElementById("${attributes.focusElement?js_string}");
if(element) {
element.focus();
}
diff --git a/core/src/main/resources/template/xhtml/form-validate.ftl b/core/src/main/resources/template/xhtml/form-validate.ftl
index ffd811610..a074bef2f 100644
--- a/core/src/main/resources/template/xhtml/form-validate.ftl
+++ b/core/src/main/resources/template/xhtml/form-validate.ftl
@@ -18,11 +18,11 @@
* under the License.
*/
-->
-<#if parameters.validate!false == true>
- <@s.script src="${base}${parameters.staticContentPath}/xhtml/validation.js" />
- <#if parameters.onsubmit??>
- ${tag.addParameter('onsubmit', "${parameters.onsubmit}; return validateForm_${parameters.escapedId}();")}
+<#if attributes.validate!false == true>
+ <@s.script src="${base}${attributes.staticContentPath}/xhtml/validation.js" />
+ <#if attributes.onsubmit??>
+ ${tag.addParameter('onsubmit', "${attributes.onsubmit}; return validateForm_${attributes.escapedId}();")}
<#else>
- ${tag.addParameter('onsubmit', "return validateForm_${parameters.escapedId}();")}
+ ${tag.addParameter('onsubmit', "return validateForm_${attributes.escapedId}();")}
#if>
#if>
diff --git a/core/src/main/resources/template/xhtml/form.ftl b/core/src/main/resources/template/xhtml/form.ftl
index 8199bd614..28f6fe301 100644
--- a/core/src/main/resources/template/xhtml/form.ftl
+++ b/core/src/main/resources/template/xhtml/form.ftl
@@ -18,14 +18,14 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/form-validate.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/form-common.ftl" />
-<#if (parameters.validate!false)>
- onreset="<#outputformat 'JavaScript'>${parameters.onreset!'clearErrorMessages(this);clearErrorLabels(this);'}#outputformat>"
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/form-validate.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/form-common.ftl" />
+<#if (attributes.validate!false)>
+ onreset="<#outputformat 'JavaScript'>${attributes.onreset!'clearErrorMessages(this);clearErrorLabels(this);'}#outputformat>"
<#else>
- <#if parameters.onreset??>
- onreset="<#outputformat 'JavaScript'>${parameters.onreset}#outputformat>"
+ <#if attributes.onreset??>
+ onreset="<#outputformat 'JavaScript'>${attributes.onreset}#outputformat>"
#if>
#if>
>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/control.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/control.ftl" />
diff --git a/core/src/main/resources/template/xhtml/head.ftl b/core/src/main/resources/template/xhtml/head.ftl
index f72d220d6..12397dc02 100644
--- a/core/src/main/resources/template/xhtml/head.ftl
+++ b/core/src/main/resources/template/xhtml/head.ftl
@@ -18,5 +18,5 @@
* under the License.
*/
-->
-<@s.link rel="stylesheet" href="${base}${parameters.staticContentPath}/xhtml/styles.css" type="text/css" />
-<#include "/${parameters.templateDir}/simple/head.ftl" />
+<@s.link rel="stylesheet" href="${base}${attributes.staticContentPath}/xhtml/styles.css" type="text/css" />
+<#include "/${attributes.templateDir}/simple/head.ftl" />
diff --git a/core/src/main/resources/template/xhtml/hidden.ftl b/core/src/main/resources/template/xhtml/hidden.ftl
index 260d44341..42587ced2 100644
--- a/core/src/main/resources/template/xhtml/hidden.ftl
+++ b/core/src/main/resources/template/xhtml/hidden.ftl
@@ -20,6 +20,6 @@
-->
- <#include "/${parameters.templateDir}/simple/hidden.ftl" />
+ <#include "/${attributes.templateDir}/simple/hidden.ftl" />
diff --git a/core/src/main/resources/template/xhtml/inputtransferselect.ftl b/core/src/main/resources/template/xhtml/inputtransferselect.ftl
index 64572db49..e2aff49d9 100644
--- a/core/src/main/resources/template/xhtml/inputtransferselect.ftl
+++ b/core/src/main/resources/template/xhtml/inputtransferselect.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/inputtransferselect.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/inputtransferselect.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/label.ftl b/core/src/main/resources/template/xhtml/label.ftl
index dc0275777..a27d45de0 100644
--- a/core/src/main/resources/template/xhtml/label.ftl
+++ b/core/src/main/resources/template/xhtml/label.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/label.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/label.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/optiontransferselect.ftl b/core/src/main/resources/template/xhtml/optiontransferselect.ftl
index b82852f3a..3107ee341 100644
--- a/core/src/main/resources/template/xhtml/optiontransferselect.ftl
+++ b/core/src/main/resources/template/xhtml/optiontransferselect.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/optiontransferselect.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/optiontransferselect.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/password.ftl b/core/src/main/resources/template/xhtml/password.ftl
index bb8a75a0a..e276dd73f 100644
--- a/core/src/main/resources/template/xhtml/password.ftl
+++ b/core/src/main/resources/template/xhtml/password.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/password.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/password.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/radiomap.ftl b/core/src/main/resources/template/xhtml/radiomap.ftl
index d09629795..d099b1b41 100644
--- a/core/src/main/resources/template/xhtml/radiomap.ftl
+++ b/core/src/main/resources/template/xhtml/radiomap.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/radiomap.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/radiomap.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/main/resources/template/xhtml/reset.ftl b/core/src/main/resources/template/xhtml/reset.ftl
index 48c761143..59cd4a2ea 100644
--- a/core/src/main/resources/template/xhtml/reset.ftl
+++ b/core/src/main/resources/template/xhtml/reset.ftl
@@ -20,6 +20,6 @@
-->
<#t/>
-<#include "/${parameters.templateDir}/simple/reset.ftl" />
+<#include "/${attributes.templateDir}/simple/reset.ftl" />
<#t/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/select.ftl b/core/src/main/resources/template/xhtml/select.ftl
index 196592094..dcba57c32 100644
--- a/core/src/main/resources/template/xhtml/select.ftl
+++ b/core/src/main/resources/template/xhtml/select.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/select.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/select.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/submit-close.ftl b/core/src/main/resources/template/xhtml/submit-close.ftl
index 7bd2fae0d..360bbafa5 100644
--- a/core/src/main/resources/template/xhtml/submit-close.ftl
+++ b/core/src/main/resources/template/xhtml/submit-close.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/simple/submit-close.ftl" />
+<#include "/${attributes.templateDir}/simple/submit-close.ftl" />
<#t/>
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/submit.ftl b/core/src/main/resources/template/xhtml/submit.ftl
index fb08cbed6..50125281f 100644
--- a/core/src/main/resources/template/xhtml/submit.ftl
+++ b/core/src/main/resources/template/xhtml/submit.ftl
@@ -20,4 +20,4 @@
-->
<#t/>
-<#include "/${parameters.templateDir}/simple/submit.ftl" />
+<#include "/${attributes.templateDir}/simple/submit.ftl" />
diff --git a/core/src/main/resources/template/xhtml/text.ftl b/core/src/main/resources/template/xhtml/text.ftl
index dc02c03a2..efe866ffd 100644
--- a/core/src/main/resources/template/xhtml/text.ftl
+++ b/core/src/main/resources/template/xhtml/text.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/text.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/text.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/textarea.ftl b/core/src/main/resources/template/xhtml/textarea.ftl
index 0cc2ad450..d601c73db 100644
--- a/core/src/main/resources/template/xhtml/textarea.ftl
+++ b/core/src/main/resources/template/xhtml/textarea.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/textarea.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/textarea.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" />
diff --git a/core/src/main/resources/template/xhtml/tooltip.ftl b/core/src/main/resources/template/xhtml/tooltip.ftl
index faa69f69b..cdbd8955d 100644
--- a/core/src/main/resources/template/xhtml/tooltip.ftl
+++ b/core/src/main/resources/template/xhtml/tooltip.ftl
@@ -18,22 +18,22 @@
* under the License.
*/
-->
-<#if parameters.tooltip??><#t/>
+<#if attributes.tooltip??><#t/>
<#t/>
- src='<@s.url value="${parameters.tooltipIconPath}" includeParams="none" encode="false" />'
+ <#if attributes.tooltipIconPath??><#t/>
+ src='<@s.url value="${attributes.tooltipIconPath}" includeParams="none" encode="false" />'
<#else><#t/>
- src='<@s.url value="${parameters.staticContentPath}/tooltip.gif" includeParams="none" encode="false" />'
+ src='<@s.url value="${attributes.staticContentPath}/tooltip.gif" includeParams="none" encode="false" />'
#if><#t/>
- <#if (parameters.jsTooltipEnabled!'false') == 'true'>
- onmouseover="domTT_activate(this, event, 'content', '<#outputformat 'JavaScript'>${parameters.tooltip}#outputformat>'<#t/>
- <#if parameters.tooltipDelay??><#t/>
- <#t/>,'delay', '${parameters.tooltipDelay}'<#t/>
+ <#if (attributes.jsTooltipEnabled!'false') == 'true'>
+ onmouseover="domTT_activate(this, event, 'content', '<#outputformat 'JavaScript'>${attributes.tooltip}#outputformat>'<#t/>
+ <#if attributes.tooltipDelay??><#t/>
+ <#t/>,'delay', '${attributes.tooltipDelay}'<#t/>
#if><#t/>
- <#t/>,'styleClass', '${parameters.tooltipCssClass!"StrutsTTClassic"}'<#t/>
+ <#t/>,'styleClass', '${attributes.tooltipCssClass!"StrutsTTClassic"}'<#t/>
<#t/>)" />
<#else>
- title="${parameters.tooltip}"
- alt="${parameters.tooltip}" />
+ title="${attributes.tooltip}"
+ alt="${attributes.tooltip}" />
#if>
#if><#t/>
diff --git a/core/src/main/resources/template/xhtml/updownselect.ftl b/core/src/main/resources/template/xhtml/updownselect.ftl
index 947d0e52a..28655a6d7 100644
--- a/core/src/main/resources/template/xhtml/updownselect.ftl
+++ b/core/src/main/resources/template/xhtml/updownselect.ftl
@@ -18,6 +18,6 @@
* under the License.
*/
-->
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlheader.ftl" />
-<#include "/${parameters.templateDir}/simple/updownselect.ftl" />
-<#include "/${parameters.templateDir}/${parameters.expandTheme}/controlfooter.ftl" /><#nt/>
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlheader.ftl" />
+<#include "/${attributes.templateDir}/simple/updownselect.ftl" />
+<#include "/${attributes.templateDir}/${attributes.expandTheme}/controlfooter.ftl" /><#nt/>
diff --git a/core/src/test/java/org/apache/struts2/components/ComponentTest.java b/core/src/test/java/org/apache/struts2/components/ComponentTest.java
index bf0e3dc71..41d37f5b9 100644
--- a/core/src/test/java/org/apache/struts2/components/ComponentTest.java
+++ b/core/src/test/java/org/apache/struts2/components/ComponentTest.java
@@ -531,8 +531,8 @@ public class ComponentTest extends AbstractTagTest {
// Simulate component attribute with a hyphen in its name.
propertyMap.put("hyphen-keyname-for-coverage", "hyphen-keyname-for-coverage-value");
propertyMap.put("someKeyName", "someKeyValue");
- actionComponent.copyParams(propertyMap);
- actionComponent.addAllParameters(propertyMap);
+ actionComponent.copyAttributes(propertyMap);
+ actionComponent.addAllAttributes(propertyMap);
try {
actionComponent.findString(null, "fieldName", "errorMessage");
fail("null expr parameter should cause a StrutsException");
diff --git a/core/src/test/java/org/apache/struts2/components/FormButtonTest.java b/core/src/test/java/org/apache/struts2/components/FormButtonTest.java
index 429ecfd6c..ad6b3f764 100644
--- a/core/src/test/java/org/apache/struts2/components/FormButtonTest.java
+++ b/core/src/test/java/org/apache/struts2/components/FormButtonTest.java
@@ -38,14 +38,14 @@ public class FormButtonTest extends StrutsInternalTestCase {
ValueStack stack = ActionContext.getContext().getValueStack();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
Submit submit = new Submit(stack, req, res);
submit.setId("submitId");
submit.populateComponentHtmlId(form);
- assertEquals("submitId", submit.getParameters().get("id"));
+ assertEquals("submitId", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId2() {
@@ -54,14 +54,14 @@ public class FormButtonTest extends StrutsInternalTestCase {
ValueStack stack = ActionContext.getContext().getValueStack();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
Submit submit = new Submit(stack, req, res);
submit.setName("submitName");
submit.populateComponentHtmlId(form);
- assertEquals("formId_submitName", submit.getParameters().get("id"));
+ assertEquals("formId_submitName", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId3() {
@@ -70,7 +70,7 @@ public class FormButtonTest extends StrutsInternalTestCase {
ValueStack stack = ActionContext.getContext().getValueStack();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
Submit submit = new Submit(stack, req, res);
submit.setAction("submitAction");
@@ -78,7 +78,7 @@ public class FormButtonTest extends StrutsInternalTestCase {
submit.populateComponentHtmlId(form);
- assertEquals("formId_submitAction_submitMethod", submit.getParameters().get("id"));
+ assertEquals("formId_submitAction_submitMethod", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId4() {
@@ -91,7 +91,7 @@ public class FormButtonTest extends StrutsInternalTestCase {
submit.populateComponentHtmlId(null);
- assertEquals("submitId", submit.getParameters().get("id"));
+ assertEquals("submitId", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId5() {
@@ -104,7 +104,7 @@ public class FormButtonTest extends StrutsInternalTestCase {
submit.populateComponentHtmlId(null);
- assertEquals("submitName", submit.getParameters().get("id"));
+ assertEquals("submitName", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId6() {
@@ -118,7 +118,7 @@ public class FormButtonTest extends StrutsInternalTestCase {
submit.populateComponentHtmlId(null);
- assertEquals("submitAction_submitMethod", submit.getParameters().get("id"));
+ assertEquals("submitAction_submitMethod", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId7() {
@@ -134,7 +134,7 @@ public class FormButtonTest extends StrutsInternalTestCase {
submit.populateComponentHtmlId(null);
- assertEquals("secondAction", submit.getParameters().get("id"));
+ assertEquals("secondAction", submit.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId8() {
@@ -152,6 +152,6 @@ public class FormButtonTest extends StrutsInternalTestCase {
submit.populateComponentHtmlId(null);
- assertEquals("boo_foo", submit.getParameters().get("id"));
+ assertEquals("boo_foo", submit.getAttributes().get("id"));
}
}
diff --git a/core/src/test/java/org/apache/struts2/components/FormTest.java b/core/src/test/java/org/apache/struts2/components/FormTest.java
index 649747a41..4f3c188f5 100644
--- a/core/src/test/java/org/apache/struts2/components/FormTest.java
+++ b/core/src/test/java/org/apache/struts2/components/FormTest.java
@@ -60,7 +60,7 @@ public class FormTest extends AbstractUITagTest {
int expectedFooValidators, int expectedStatusValidators, int expectedResultValidators) {
Form form = new Form(stack, request, response);
container.inject(form);
- form.getParameters().put("actionClass", TestAction.class);
+ form.getAttributes().put("actionClass", TestAction.class);
form.setAction("actionName" + (methodName != null ? "!" + methodName : ""));
validationInterceptor.setValidateAnnotatedMethodOnly(validateAnnotatedMethodOnly);
@@ -101,7 +101,7 @@ public class FormTest extends AbstractUITagTest {
EasyMock.expect(invocation.invoke()).andReturn(Action.SUCCESS).anyTimes();
EasyMock.expect(proxy.getMethod()).andReturn("execute").anyTimes();
EasyMock.expect(proxy.getConfig()).andReturn(config).anyTimes();
-
+
EasyMock.replay(invocation);
EasyMock.replay(proxy);
@@ -109,7 +109,7 @@ public class FormTest extends AbstractUITagTest {
defaultNamespace.put("actionName", config);
((DefaultActionMapper) container.getInstance(ActionMapper.class)).setAllowDynamicMethodCalls("true");
-
+
ActionContext.getContext().withActionInvocation(invocation);
}
}
diff --git a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
index 690328942..83f064976 100644
--- a/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
+++ b/core/src/test/java/org/apache/struts2/components/UIBeanTest.java
@@ -43,14 +43,14 @@ public class UIBeanTest extends StrutsInternalTestCase {
MockHttpServletResponse res = new MockHttpServletResponse();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
TextField txtFld = new TextField(stack, req, res);
txtFld.setId("txtFldId");
txtFld.populateComponentHtmlId(form);
- assertEquals("txtFldId", txtFld.getParameters().get("id"));
+ assertEquals("txtFldId", txtFld.getAttributes().get("id"));
}
public void testPopulateComponentHtmlIdWithOgnl() {
@@ -59,14 +59,14 @@ public class UIBeanTest extends StrutsInternalTestCase {
MockHttpServletResponse res = new MockHttpServletResponse();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
TextField txtFld = new TextField(stack, req, res);
txtFld.setName("txtFldName%{'1'}");
txtFld.populateComponentHtmlId(form);
- assertEquals("formId_txtFldName1", txtFld.getParameters().get("id"));
+ assertEquals("formId_txtFldName1", txtFld.getAttributes().get("id"));
}
public void testPopulateComponentHtmlId2() {
@@ -75,14 +75,14 @@ public class UIBeanTest extends StrutsInternalTestCase {
MockHttpServletResponse res = new MockHttpServletResponse();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
TextField txtFld = new TextField(stack, req, res);
txtFld.setName("txtFldName");
txtFld.populateComponentHtmlId(form);
- assertEquals("formId_txtFldName", txtFld.getParameters().get("id"));
+ assertEquals("formId_txtFldName", txtFld.getAttributes().get("id"));
}
public void testPopulateComponentHtmlWithoutNameAndId() {
@@ -91,13 +91,13 @@ public class UIBeanTest extends StrutsInternalTestCase {
MockHttpServletResponse res = new MockHttpServletResponse();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
TextField txtFld = new TextField(stack, req, res);
txtFld.populateComponentHtmlId(form);
- assertNull(txtFld.getParameters().get("id"));
+ assertNull(txtFld.getAttributes().get("id"));
}
public void testEscape() {
@@ -123,12 +123,12 @@ public class UIBeanTest extends StrutsInternalTestCase {
MockHttpServletResponse res = new MockHttpServletResponse();
Form form = new Form(stack, req, res);
- form.getParameters().put("id", "formId");
+ form.getAttributes().put("id", "formId");
TextField txtFld = new TextField(stack, req, res);
txtFld.setName("foo/bar");
txtFld.populateComponentHtmlId(form);
- assertEquals("formId_foo_bar", txtFld.getParameters().get("id"));
+ assertEquals("formId_foo_bar", txtFld.getAttributes().get("id"));
}
public void testGetThemeFromForm() {
@@ -230,7 +230,7 @@ public class UIBeanTest extends StrutsInternalTestCase {
txtFld.setAccesskey(accesskeyValue);
txtFld.evaluateParams();
- assertEquals(accesskeyValue, txtFld.getParameters().get("accesskey"));
+ assertEquals(accesskeyValue, txtFld.getAttributes().get("accesskey"));
}
public void testValueParameterEvaluation() {
@@ -243,7 +243,7 @@ public class UIBeanTest extends StrutsInternalTestCase {
txtFld.addParameter("value", value);
txtFld.evaluateParams();
- assertEquals(value, txtFld.getParameters().get("nameValue"));
+ assertEquals(value, txtFld.getAttributes().get("nameValue"));
}
public void testValueParameterRecursion() {
@@ -265,8 +265,8 @@ public class UIBeanTest extends StrutsInternalTestCase {
txtFld.setName("%{myValue}");
txtFld.evaluateParams();
- assertEquals("%{myBad}", txtFld.getParameters().get("nameValue"));
- assertEquals("%{myBad}", txtFld.getParameters().get("name"));
+ assertEquals("%{myBad}", txtFld.getAttributes().get("nameValue"));
+ assertEquals("%{myBad}", txtFld.getAttributes().get("name"));
}
public void testValueNameParameterNotAccepted() {
@@ -287,13 +287,13 @@ public class UIBeanTest extends StrutsInternalTestCase {
container.inject(txtFld);
txtFld.setName("%{myValueName}");
txtFld.evaluateParams();
- assertEquals("getMyValue()", txtFld.getParameters().get("name"));
- assertEquals("getMyValue()", txtFld.getParameters().get("nameValue"));
+ assertEquals("getMyValue()", txtFld.getAttributes().get("name"));
+ assertEquals("getMyValue()", txtFld.getAttributes().get("nameValue"));
txtFld.setNotExcludedAcceptedPatterns(NO_EXCLUSION_ACCEPT_ALL_PATTERNS_CHECKER);
txtFld.evaluateParams();
- assertEquals("getMyValue()", txtFld.getParameters().get("name"));
- assertEquals("value", txtFld.getParameters().get("nameValue"));
+ assertEquals("getMyValue()", txtFld.getAttributes().get("name"));
+ assertEquals("value", txtFld.getAttributes().get("nameValue"));
}
public void testValueNameParameterGetterAccepted() {
@@ -311,8 +311,8 @@ public class UIBeanTest extends StrutsInternalTestCase {
container.inject(txtFld);
txtFld.setName("getMyValue()");
txtFld.evaluateParams();
- assertEquals("getMyValue()", txtFld.getParameters().get("name"));
- assertEquals("value", txtFld.getParameters().get("nameValue"));
+ assertEquals("getMyValue()", txtFld.getAttributes().get("name"));
+ assertEquals("value", txtFld.getAttributes().get("nameValue"));
}
public void testSetClass() {
@@ -325,7 +325,7 @@ public class UIBeanTest extends StrutsInternalTestCase {
txtFld.setCssClass(cssClass);
txtFld.evaluateParams();
- assertEquals(cssClass, txtFld.getParameters().get("cssClass"));
+ assertEquals(cssClass, txtFld.getAttributes().get("cssClass"));
}
public void testSetStyle() {
@@ -338,7 +338,7 @@ public class UIBeanTest extends StrutsInternalTestCase {
txtFld.setStyle(cssStyle);
txtFld.evaluateParams();
- assertEquals(cssStyle, txtFld.getParameters().get("cssStyle"));
+ assertEquals(cssStyle, txtFld.getAttributes().get("cssStyle"));
}
public void testNonce() {
@@ -354,7 +354,7 @@ public class UIBeanTest extends StrutsInternalTestCase {
DoubleSelect dblSelect = new DoubleSelect(stack, req, res);
dblSelect.evaluateParams();
- assertEquals(nonceVal, dblSelect.getParameters().get("nonce"));
+ assertEquals(nonceVal, dblSelect.getAttributes().get("nonce"));
}
public void testSetNullUiStaticContentPath() {
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
index 64020d598..6f245b61a 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
@@ -131,7 +131,7 @@ public class URLTagTest extends AbstractUITagTest {
param3.doEndTag();
URL url = (URL) tag.getComponent();
- Map parameters = url.getParameters();
+ Map parameters = url.getAttributes();
assertNotNull(parameters);
@@ -250,7 +250,7 @@ public class URLTagTest extends AbstractUITagTest {
param3.doEndTag();
URL url = (URL) tag.getComponent();
- Map parameters = url.getParameters();
+ Map parameters = url.getAttributes();
assertNotNull(parameters);
@@ -396,7 +396,7 @@ public class URLTagTest extends AbstractUITagTest {
param3.doEndTag();
URL url = (URL) tag.getComponent();
- Map parameters = url.getParameters();
+ Map parameters = url.getAttributes();
assertEquals(parameters.size(), 5);
assertEquals(parameters.get("id1"), "paramId1");
@@ -479,7 +479,7 @@ public class URLTagTest extends AbstractUITagTest {
param3.doEndTag();
URL url = (URL) tag.getComponent();
- Map parameters = url.getParameters();
+ Map parameters = url.getAttributes();
assertEquals(parameters.size(), 5);
assertEquals(parameters.get("id1"), "paramId1");
@@ -529,7 +529,7 @@ public class URLTagTest extends AbstractUITagTest {
tag.doStartTag();
URL url = (URL) tag.getComponent();
- Map parameters = url.getParameters();
+ Map parameters = url.getAttributes();
tag.doEndTag();
@@ -563,7 +563,7 @@ public class URLTagTest extends AbstractUITagTest {
setComponentTagClearTagState(tag, true); // Ensure component tag state clearing is set true (to match tag).
URL url = (URL) tag.getComponent();
- Map parameters = url.getParameters();
+ Map parameters = url.getAttributes();
tag.doEndTag();
diff --git a/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java b/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java
index ca6fc3d43..4c52b63f4 100644
--- a/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java
+++ b/core/src/test/java/org/apache/struts2/views/jsp/ui/FormTagTest.java
@@ -798,7 +798,7 @@ public class FormTagTest extends AbstractUITagTest {
t.setList("{}");
tag.doStartTag();
- tag.getComponent().getParameters().put("actionClass", IntValidationAction.class);
+ tag.getComponent().getAttributes().put("actionClass", IntValidationAction.class);
t.doStartTag();
t.doEndTag();
tag.doEndTag();
@@ -847,7 +847,7 @@ public class FormTagTest extends AbstractUITagTest {
tag.doStartTag();
setComponentTagClearTagState(tag, true); // Ensure component tag state clearing is set true (to match tag).
- tag.getComponent().getParameters().put("actionClass", IntValidationAction.class);
+ tag.getComponent().getAttributes().put("actionClass", IntValidationAction.class);
t.doStartTag();
setComponentTagClearTagState(t, true); // Ensure component tag state clearing is set true (to match tag).
t.doEndTag();
@@ -896,7 +896,7 @@ public class FormTagTest extends AbstractUITagTest {
t.setList("{}");
tag.doStartTag();
- tag.getComponent().getParameters().put("actionClass", DoubleValidationAction.class);
+ tag.getComponent().getAttributes().put("actionClass", DoubleValidationAction.class);
t.doStartTag();
t.doEndTag();
tag.doEndTag();
@@ -945,7 +945,7 @@ public class FormTagTest extends AbstractUITagTest {
tag.doStartTag();
setComponentTagClearTagState(tag, true); // Ensure component tag state clearing is set true (to match tag).
- tag.getComponent().getParameters().put("actionClass", DoubleValidationAction.class);
+ tag.getComponent().getAttributes().put("actionClass", DoubleValidationAction.class);
t.doStartTag();
setComponentTagClearTagState(t, true); // Ensure component tag state clearing is set true (to match tag).
t.doEndTag();
diff --git a/core/src/test/resources/template/test/Component.ftl b/core/src/test/resources/template/test/Component.ftl
index 8885b9f73..103923df2 100644
--- a/core/src/test/resources/template/test/Component.ftl
+++ b/core/src/test/resources/template/test/Component.ftl
@@ -18,11 +18,11 @@
* under the License.
*/
-->
-param hello = ${parameters.hello}
-param argle = ${parameters.argle}
-param glip = ${parameters.glip}
-param obj.Class = ${parameters.objClass}
+param hello = ${attributes.hello}
+param argle = ${attributes.argle}
+param glip = ${attributes.glip}
+param obj.Class = ${attributes.objClass}
-<#list parameters.array as element>
+<#list attributes.array as element>
param array[${element_index}] = ${element}
#list>
diff --git a/core/src/test/resources/template/test/text.ftl b/core/src/test/resources/template/test/text.ftl
index 84f55b705..d4165cbfc 100644
--- a/core/src/test/resources/template/test/text.ftl
+++ b/core/src/test/resources/template/test/text.ftl
@@ -19,7 +19,7 @@
*/
-->
-<#if parameters.autofocus!false>
+<#if attributes.autofocus!false>
autofocus="autofocus"<#rt/>
#if>
/><#rt/>
\ No newline at end of file
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
index f53a3d2a3..9bb9ded18 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SelectHandler.java
@@ -61,7 +61,7 @@ public class SelectHandler extends AbstractTagHandler implements TagGenerator {
boolean selected = ContainUtil.contains(value, params.get("headerKey"));
writeOption(headerKey, headerValue, selected);
}
-
+
//emptyoption
Object emptyOption = params.get("emptyOption");
if (emptyOption != null && emptyOption.toString().equals(Boolean.toString(true))) {
@@ -81,10 +81,10 @@ public class SelectHandler extends AbstractTagHandler implements TagGenerator {
//key
Object itemKey = findValue(listKey != null ? listKey : "top");
- String itemKeyStr = StringUtils.defaultString(itemKey == null ? null : itemKey.toString());
+ String itemKeyStr = StringUtils.defaultString(itemKey == null ? null : itemKey.toString());
//value
Object itemValue = findValue(listValue != null ? listValue : "top");
- String itemValueStr = StringUtils.defaultString(itemValue == null ? null : itemValue.toString());
+ String itemValueStr = StringUtils.defaultString(itemValue == null ? null : itemValue.toString());
boolean selected = ContainUtil.contains(value, itemKey);
writeOption(itemKeyStr, itemValueStr, selected);
@@ -115,7 +115,7 @@ public class SelectHandler extends AbstractTagHandler implements TagGenerator {
}
private void writeOptionGroup(ListUIBean listUIBean, Object value) throws IOException {
- Map params = listUIBean.getParameters();
+ Map params = listUIBean.getAttributes();
Attributes attrs = new Attributes();
attrs.addIfExists("label", params.get("label"))
.addIfTrue("disabled", params.get("disabled"));
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractCommonAttributesTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractCommonAttributesTest.java
index 0b60759e0..885acd4ea 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractCommonAttributesTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AbstractCommonAttributesTest.java
@@ -30,7 +30,7 @@ public abstract class AbstractCommonAttributesTest extends AbstractTest {
applyScriptingAttrs(tag);
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
@@ -44,7 +44,7 @@ public abstract class AbstractCommonAttributesTest extends AbstractTest {
applyCommonAttrs(tag);
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
@@ -57,7 +57,7 @@ public abstract class AbstractCommonAttributesTest extends AbstractTest {
applyDynamicAttrs(tag);
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionErrorTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionErrorTest.java
index 18de37478..192e5a481 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionErrorTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionErrorTest.java
@@ -36,7 +36,7 @@ public class ActionErrorTest extends AbstractTest {
tag.setCssStyle("style");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -47,7 +47,7 @@ public class ActionErrorTest extends AbstractTest {
tag.setCssStyle("style");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -57,7 +57,7 @@ public class ActionErrorTest extends AbstractTest {
public void testRenderActionErrorNoErrors() {
this.errors.clear();
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
assertEquals("", output);
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionMessageTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionMessageTest.java
index 3d635a13c..bd550819f 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionMessageTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ActionMessageTest.java
@@ -36,7 +36,7 @@ public class ActionMessageTest extends AbstractTest {
tag.setCssStyle("style");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -47,7 +47,7 @@ public class ActionMessageTest extends AbstractTest {
tag.setCssStyle("style");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -57,7 +57,7 @@ public class ActionMessageTest extends AbstractTest {
public void testRenderActionErrorNoErrors() {
this.errors.clear();
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
assertEquals("", output);
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
index 595713547..2ac3b38d6 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/AnchorTest.java
@@ -39,7 +39,7 @@ public class AnchorTest extends AbstractTest {
tag.setHref("http://sometest.com?ab=10");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -59,7 +59,7 @@ public class AnchorTest extends AbstractTest {
tag.setHref("http://sometest.com?ab=10");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -75,7 +75,7 @@ public class AnchorTest extends AbstractTest {
tag.setEscapeHtmlBody(true);
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
context.getParameters().put("body", s("
"));
theme.renderTag(getTagName(), context);
@@ -93,7 +93,7 @@ public class AnchorTest extends AbstractTest {
//tag.setEscapeHtmlBody(true);
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
context.getParameters().put("body", s("
"));
theme.renderTag(getTagName(), context);
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
index d7d56ec0a..a7060130f 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/CheckboxTest.java
@@ -38,7 +38,7 @@ public class CheckboxTest extends AbstractCommonAttributesTest {
tag.setFieldValue("xyz");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -57,7 +57,7 @@ public class CheckboxTest extends AbstractCommonAttributesTest {
tag.setSubmitUnchecked("true");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -69,7 +69,7 @@ public class CheckboxTest extends AbstractCommonAttributesTest {
tag.setValue("%{someValue}");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java
index fb37eebce..67d9dc5a5 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/DateTextFieldTest.java
@@ -33,7 +33,7 @@ public class DateTextFieldTest extends AbstractCommonAttributesTest {
tag.setFormat("yyyy-MM-dd");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
" +
@@ -42,10 +42,10 @@ public class DateTextFieldTest extends AbstractCommonAttributesTest {
"-
");
assertEquals(expected, output);
}
-
+
@Override
public void testRenderTextFieldScriptingAttrs() throws Exception { }
-
+
@Override
public void testRenderTextFieldCommonAttrs() throws Exception { }
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FieldErrorTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FieldErrorTest.java
index e5a39d7bc..fe35a58a0 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FieldErrorTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FieldErrorTest.java
@@ -35,7 +35,7 @@ public class FieldErrorTest extends AbstractTest {
tag.setCssStyle("style");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
not good bad bad to the bone ");
@@ -46,7 +46,7 @@ public class FieldErrorTest extends AbstractTest {
tag.setCssStyle("style");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
not good bad bad to the bone ");
@@ -57,7 +57,7 @@ public class FieldErrorTest extends AbstractTest {
this.fieldNames.clear();
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
not good bad bad to the bone ");
@@ -67,7 +67,7 @@ public class FieldErrorTest extends AbstractTest {
public void testRenderFieldErrorWithoutOneFieldName() {
tag.setFieldName("field1");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -79,7 +79,7 @@ public class FieldErrorTest extends AbstractTest {
this.fieldNames.clear();
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
assertEquals("", output);
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FileTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FileTest.java
index 16ce86b65..bf9786f3a 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FileTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FileTest.java
@@ -39,7 +39,7 @@ public class FileTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FormTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FormTest.java
index af8f303c9..34d176962 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FormTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/FormTest.java
@@ -45,7 +45,7 @@ public class FormTest extends AbstractCommonAttributesTest {
tag.setMethod("post");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -55,7 +55,7 @@ public class FormTest extends AbstractCommonAttributesTest {
public void testDefaultMethod() {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HeadTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HeadTest.java
index 073da1f2b..7f9fdcd3f 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HeadTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HeadTest.java
@@ -28,7 +28,7 @@ public class HeadTest extends AbstractTest {
public void testRenderTextField() {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HiddenTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HiddenTest.java
index 497ea88f1..8884aaca0 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HiddenTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/HiddenTest.java
@@ -38,7 +38,7 @@ public class HiddenTest extends AbstractTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LabelTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LabelTest.java
index 39adea597..0dfbb81ad 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LabelTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LabelTest.java
@@ -37,7 +37,7 @@ public class LabelTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
val1 ");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java
index 873ede269..b8f88980f 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/LinkTest.java
@@ -45,7 +45,7 @@ public class LinkTest extends AbstractTest{
tag.setTitle("test");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
@@ -77,7 +77,7 @@ public class LinkTest extends AbstractTest{
tag.setTitle("test");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/PasswordTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/PasswordTest.java
index 84f48ce92..a17e0fdce 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/PasswordTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/PasswordTest.java
@@ -43,7 +43,7 @@ public class PasswordTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -66,7 +66,7 @@ public class PasswordTest extends AbstractCommonAttributesTest {
tag.setShowPassword("%{'true'}");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ResetTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ResetTest.java
index 3e78fcf78..9695e884f 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ResetTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ResetTest.java
@@ -39,7 +39,7 @@ public class ResetTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
some label");
@@ -58,7 +58,7 @@ public class ResetTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java
index 832653692..005aa3b5a 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/ScriptTest.java
@@ -47,7 +47,7 @@ public class ScriptTest extends AbstractTest {
tag.setCrossorigin("test");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SelectTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SelectTest.java
index 28d601fb6..4fa2a6ed7 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SelectTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SelectTest.java
@@ -42,7 +42,7 @@ public class SelectTest extends AbstractCommonAttributesTest {
tag.setTitle("title");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -55,7 +55,7 @@ public class SelectTest extends AbstractCommonAttributesTest {
tag.setHeaderValue("%{'val'}");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
val ");
@@ -68,7 +68,7 @@ public class SelectTest extends AbstractCommonAttributesTest {
tag.setListValue("stringField");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
val ");
@@ -79,7 +79,7 @@ public class SelectTest extends AbstractCommonAttributesTest {
tag.setList("%{#{'key0' : 'val'}}");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
val ");
@@ -93,7 +93,7 @@ public class SelectTest extends AbstractCommonAttributesTest {
tag.setValue("%{'1'}");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
val ");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SubmitTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SubmitTest.java
index cbb7f6c5f..84f45c2d8 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SubmitTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/SubmitTest.java
@@ -39,12 +39,12 @@ public class SubmitTest extends AbstractCommonAttributesTest {
tag.setType("button");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
tag.addParameter("body", "
hey hey hey, here I go now ");
map.clear();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
String expected = s("
hey hey hey, here I go now ");
@@ -65,7 +65,7 @@ public class SubmitTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -87,7 +87,7 @@ public class SubmitTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -108,7 +108,7 @@ public class SubmitTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -123,7 +123,7 @@ public class SubmitTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
@@ -138,12 +138,12 @@ public class SubmitTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
map.clear();
tag.setType("image");
tag.addParameter("body", "
hey hey hey, here I go now ");
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName() + "-close", context);
String output = writer.getBuffer().toString();
String expected = s("
hey hey hey, here I go now ");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextAreaTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextAreaTest.java
index fb5d8e071..d72f42bcb 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextAreaTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextAreaTest.java
@@ -41,7 +41,7 @@ public class TextAreaTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
@@ -60,7 +60,7 @@ public class TextAreaTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextFieldTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextFieldTest.java
index 5973ea5ff..212a991cc 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextFieldTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TextFieldTest.java
@@ -41,7 +41,7 @@ public class TextFieldTest extends AbstractCommonAttributesTest {
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
String expected = s("
");
diff --git a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
index e1ad3f907..7f7b3fbef 100644
--- a/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
+++ b/plugins/javatemplates/src/test/java/org/apache/struts2/views/java/simple/TokenTest.java
@@ -35,7 +35,7 @@ public class TokenTest extends AbstractTest {
tag.setValue("val1");
tag.evaluateParams();
- map.putAll(tag.getParameters());
+ map.putAll(tag.getAttributes());
theme.renderTag(getTagName(), context);
String output = writer.getBuffer().toString();
diff --git a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java
index 3e5996930..44fc9047d 100644
--- a/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java
+++ b/plugins/velocity/src/main/java/org/apache/struts2/views/velocity/components/AbstractDirective.java
@@ -40,7 +40,6 @@ import org.apache.velocity.exception.ResourceNotFoundException;
import org.apache.velocity.runtime.directive.Directive;
import org.apache.velocity.runtime.parser.node.Node;
-import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.inject.Container;
import com.opensymphony.xwork2.util.ValueStack;
@@ -74,7 +73,7 @@ public abstract class AbstractDirective extends Directive {
container.inject(bean);
// get the parameters
Map params = createPropertyMap(ctx, node);
- bean.copyParams(params);
+ bean.copyAttributes(params);
//bean.addAllParameters(params);
bean.start(writer);