Repository: wicket
Updated Branches:
  refs/heads/wicket-6.x 626d93fb0 -> 73a384435


WICKET-5760 Add constructor (String, Serializable, String) to AttributeAppender


Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/73a38443
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/73a38443
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/73a38443

Branch: refs/heads/wicket-6.x
Commit: 73a384435a9a0d6568e04909a4f3a86aa54d2125
Parents: 626d93f
Author: Martin Tzvetanov Grigorov <[email protected]>
Authored: Mon Nov 17 18:01:10 2014 +0200
Committer: Martin Tzvetanov Grigorov <[email protected]>
Committed: Mon Nov 17 18:01:10 2014 +0200

----------------------------------------------------------------------
 .../apache/wicket/behavior/AttributeAppender.java  | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/wicket/blob/73a38443/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
----------------------------------------------------------------------
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java 
b/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
index 5db4526..3c2eaa6 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/behavior/AttributeAppender.java
@@ -107,6 +107,23 @@ public class AttributeAppender extends AttributeModifier
        }
 
        /**
+        * Creates an AttributeModifier that appends the value to the current 
value of the
+        * attribute, and will add the attribute when it is not there already.
+        *
+        * @param attribute
+        *            the attribute to append the appendModels value to
+        * @param value
+        *            the value to append
+        * @param separator
+        *            the separator string, comes between the original value 
and the append value
+        */
+       public AttributeAppender(String attribute, Serializable value, String 
separator)
+       {
+               super(attribute, value);
+               setSeparator(separator);
+       }
+
+       /**
         * Creates an AttributeModifier that appends the appendModel's value to 
the current value of the
         * attribute, and will add the attribute when it is not there already.
         * 

Reply via email to