diff --git a/src/main/config/component/watermark.xml b/src/main/config/component/watermark.xml
index d9ecaca..e54a7da 100755
--- a/src/main/config/component/watermark.xml
+++ b/src/main/config/component/watermark.xml
@@ -24,14 +24,14 @@
org.richfaces.taglib.WatermarkTagHandler
com.sun.facelets.tag.jsf.ComponentHandler
- &ui_output_attributes;
+
+ &ui_output_attributes;
- for
+ styleClass
java.lang.String
-
- Id of component that should be focused
+ Assigns one or more CSS class names to the component. Corresponds to the HTML "class"
+ attribute.
- ""
diff --git a/src/main/java/org/richfaces/component/UIWatermark.java b/src/main/java/org/richfaces/component/UIWatermark.java
index 0b22c87..566e172 100755
--- a/src/main/java/org/richfaces/component/UIWatermark.java
+++ b/src/main/java/org/richfaces/component/UIWatermark.java
@@ -7,8 +7,8 @@ public abstract class UIWatermark extends UIOutput {
public static final String COMPONENT_TYPE = "org.richfaces.Watermark";
public static final String COMPONENT_FAMILY = "org.richfaces.Watermark";
- public abstract String getFor();
+ public abstract String getStyleClass();
- public abstract void setFor(String value);
+ public abstract void setStyleClass(String styleClass);
}
diff --git a/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js b/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js
index 383a9da..35f2722 100755
--- a/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js
+++ b/src/main/resources/org/richfaces/renderkit/html/scripts/richfaces.watermark.js
@@ -1,8 +1,8 @@
if (window.RichFaces == null) {
window.RichFaces = {};
}
-RichFaces.Watermark = function(targetId, text) {
+RichFaces.Watermark = function(targetId, text, options) {
jQuery(function() {
- jQuery(document.getElementById(targetId)).watermark(text);
+ jQuery(document.getElementById(targetId)).watermark(text, options);
});
};
\ No newline at end of file
diff --git a/src/main/templates/htmlWatermark.jspx b/src/main/templates/htmlWatermark.jspx
index 5057422..7b679a7 100755
--- a/src/main/templates/htmlWatermark.jspx
+++ b/src/main/templates/htmlWatermark.jspx
@@ -19,27 +19,12 @@
\ No newline at end of file