myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1099569 - /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java
Date Wed, 04 May 2011 19:43:42 GMT
Author: lofwyr
Date: Wed May  4 19:43:41 2011
New Revision: 1099569

URL: http://svn.apache.org/viewvc?rev=1099569&view=rev
Log:
TOBAGO-993: tx:label not working in facelets
 - adding some documentation

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java?rev=1099569&r1=1099568&r2=1099569&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/LabelExtensionTag.java
Wed May  4 19:43:41 2011
@@ -35,6 +35,33 @@ import javax.servlet.jsp.tagext.BodyTagS
 
 import static org.apache.myfaces.tobago.TobagoConstants.FACET_LAYOUT;
 
+/**
+ * Renders a label to any component.
+ * <br />
+ * Short syntax of:
+ * <br />
+ * <pre>
+ * &lt;tc:panel>
+ *   &lt;f:facet name="layout">
+ *     &lt;tc:gridLayout columns="fixed;*"/>
+ *   &lt;/f:facet>
+ *   &lt;tc:label value="#{label}" for="@auto"/>
+ *     ...
+ * &lt;/tc:panel>
+ * </pre>
+ * This is the universal version of the special versions: &lt;tx:in>, etc.
+ * In other words:
+ * <pre>
+ * &lt;tx:label>
+ *   &lt;tc:in/>
+ * &lt;/tx:label>
+ * </pre>
+ * does the same like
+ * <pre>
+ *   &lt;tx:in/>
+ * </pre>
+ */
+
 @Tag(name = "label")
 @ExtensionTag(baseClassName = "org.apache.myfaces.tobago.taglib.component.LabelTag")
 public class LabelExtensionTag extends BodyTagSupport



Mime
View raw message