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 2006/11/23 23:37:19 UTC

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

Author: bommel
Date: Thu Nov 23 14:37:18 2006
New Revision: 478695

URL: http://svn.apache.org/viewvc?view=rev&rev=478695
Log:
(TOBAGO-183) tc:out / tc:in support right-aligned it should be possible for tx too

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

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java?view=diff&rev=478695&r1=478694&r2=478695
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/InExtensionTag.java Thu Nov 23 14:37:18 2006
@@ -18,6 +18,8 @@
  */
 
 import org.apache.myfaces.tobago.apt.annotation.Tag;
+import org.apache.myfaces.tobago.apt.annotation.TagAttribute;
+import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
 import org.apache.myfaces.tobago.taglib.component.InTag;
 import org.apache.myfaces.tobago.taglib.decl.HasConverter;
 import org.apache.myfaces.tobago.taglib.decl.HasIdBindingAndRendered;
@@ -75,6 +77,7 @@
   private String valueChangeListener;
   private String onchange;
   private String suggestMethod;
+  private String markup;
 
   private LabelExtensionTag labelTag;
   private InTag inTag;
@@ -93,6 +96,7 @@
     if (rendered != null) {
       labelTag.setRendered(rendered);
     }
+
     labelTag.setParent(getParent());
     labelTag.doStartTag();
 
@@ -137,6 +141,9 @@
     if (required != null) {
       inTag.setRequired(required);
     }
+    if (markup != null) {
+      inTag.setMarkup(markup);
+    }
     inTag.setParent(labelTag);
     inTag.doStartTag();
 
@@ -168,6 +175,17 @@
     valueChangeListener = null;
     onchange = null;
     suggestMethod = null;
+    markup = null;
+  }
+
+   /**
+   * Indicate markup of this component.
+   * Possible value is 'none'. But this can be overridden in the theme.
+   */
+  @TagAttribute
+  @UIComponentTagAttribute(defaultValue = "none")
+  public void setMarkup(String markup) {
+    this.markup = markup;
   }
 
   public void setValue(String value) {