You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by mg...@apache.org on 2014/11/17 17:02:38 UTC
wicket git commit: WICKET-5760 Add constructor (String, Serializable,
String) to AttributeAppender
Repository: wicket
Updated Branches:
refs/heads/master 5fb0c772b -> 988f0fa57
WICKET-5760 Add constructor (String, Serializable, String) to AttributeAppender
(cherry picked from commit 73a384435a9a0d6568e04909a4f3a86aa54d2125)
Project: http://git-wip-us.apache.org/repos/asf/wicket/repo
Commit: http://git-wip-us.apache.org/repos/asf/wicket/commit/988f0fa5
Tree: http://git-wip-us.apache.org/repos/asf/wicket/tree/988f0fa5
Diff: http://git-wip-us.apache.org/repos/asf/wicket/diff/988f0fa5
Branch: refs/heads/master
Commit: 988f0fa57195ed60fcf1ac00d1023ca024647ca5
Parents: 5fb0c77
Author: Martin Tzvetanov Grigorov <mg...@apache.org>
Authored: Mon Nov 17 18:01:10 2014 +0200
Committer: Martin Tzvetanov Grigorov <mg...@apache.org>
Committed: Mon Nov 17 18:01:56 2014 +0200
----------------------------------------------------------------------
.../apache/wicket/behavior/AttributeAppender.java | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/wicket/blob/988f0fa5/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 3e690fc..8d59b87 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
@@ -86,6 +86,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.
*