You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2007/09/21 16:27:40 UTC

svn commit: r578141 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/DateExtensionTag.java

Author: bommel
Date: Fri Sep 21 07:27:39 2007
New Revision: 578141

URL: http://svn.apache.org/viewvc?rev=578141&view=rev
Log:
(TOBAGO-495) tx:date tag misses the markup attribute

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/DateExtensionTag.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/DateExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/DateExtensionTag.java?rev=578141&r1=578140&r2=578141&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/DateExtensionTag.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/DateExtensionTag.java Fri Sep 21 07:27:39 2007
@@ -26,6 +26,7 @@
 import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
 import org.apache.myfaces.tobago.taglib.decl.HasLabel;
 import org.apache.myfaces.tobago.taglib.decl.HasLabelWidth;
+import org.apache.myfaces.tobago.taglib.decl.HasMarkup;
 import org.apache.myfaces.tobago.taglib.decl.HasOnchange;
 import org.apache.myfaces.tobago.taglib.decl.HasTabIndex;
 import org.apache.myfaces.tobago.taglib.decl.HasTip;
@@ -69,7 +70,7 @@
 public class DateExtensionTag extends BodyTagSupport
     implements HasValue, HasValueChangeListener, HasValidator, HasIdBindingAndRendered,
     HasConverter, IsReadonly, IsDisabled, HasOnchange, IsRequired, HasTip, 
-    HasLabel, HasLabelWidth, IsFocus, IsInline, HasTabIndex {
+    HasLabel, HasMarkup, HasLabelWidth, IsFocus, IsInline, HasTabIndex {
 
   private static final long serialVersionUID = 2044784791513107420L;
 
@@ -88,6 +89,7 @@
   private String inline;
   private String onchange;
   private String tabIndex;
+  private String markup;
 
   private String labelWidth;
   private LabelExtensionTag labelTag;
@@ -153,6 +155,9 @@
     if (required != null) {
       dateTag.setRequired(required);
     }
+    if (markup != null) {
+      dateTag.setMarkup(markup);
+    }
     if (tabIndex != null) {
       dateTag.setTabIndex(tabIndex);
     }
@@ -203,6 +208,7 @@
     value = null;
     valueChangeListener = null;
     onchange = null;
+    markup = null;
     tabIndex = null;
     labelTag = null;
     dateTag = null;
@@ -265,6 +271,10 @@
 
   public void setLabelWidth(String labelWidth) {
     this.labelWidth = labelWidth;
+  }
+
+  public void setMarkup(String markup) {
+    this.markup = markup;
   }
 
   public void setTabIndex(String tabIndex) {