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/12/17 21:42:56 UTC
svn commit: r488046 - in
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component:
TextAreaTag.java TextAreaTagDeclaration.java
Author: bommel
Date: Sun Dec 17 12:42:55 2006
New Revision: 488046
URL: http://svn.apache.org/viewvc?view=rev&rev=488046
Log:
(TOBAGO-215) markup attribute for all input components
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTag.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTagDeclaration.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTag.java?view=diff&rev=488046&r1=488045&r2=488046
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTag.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTag.java Sun Dec 17 12:42:55 2006
@@ -20,6 +20,7 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_ROWS;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_MARKUP;
import org.apache.myfaces.tobago.component.ComponentUtil;
import javax.faces.component.UIComponent;
@@ -30,11 +31,14 @@
private static final Log LOG = LogFactory.getLog(TextAreaTag.class);
private String rows;
+ private String markup;
+
@Override
public void release() {
super.release();
rows = null;
+ markup = null;
}
@Override
@@ -46,6 +50,7 @@
}
ComponentUtil.setStringProperty(component, ATTR_ROWS, rows);
+ ComponentUtil.setStringProperty(component, ATTR_MARKUP, markup);
}
public String getRows() {
@@ -54,5 +59,13 @@
public void setRows(String rows) {
this.rows = rows;
+ }
+
+ public String getMarkup() {
+ return markup;
+ }
+
+ public void setMarkup(String markup) {
+ this.markup = markup;
}
}
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTagDeclaration.java?view=diff&rev=488046&r1=488045&r2=488046
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTagDeclaration.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TextAreaTagDeclaration.java Sun Dec 17 12:42:55 2006
@@ -54,4 +54,12 @@
@TagAttribute
@UIComponentTagAttribute()
void setRows(String rows);
+
+ /**
+ * Indicate markup of this component.
+ * Possible value is 'none'. But this can be overridden in the theme.
+ */
+ @TagAttribute
+ @UIComponentTagAttribute(defaultValue = "none")
+ void setMarkup(String markup);
}