myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1099570 - in /myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main: java-jsf-1.1/org/apache/myfaces/tobago/internal/taglib/extension/ java-jsf-1.2/org/apache/myfaces/tobago/internal/taglib/extension/
Date Wed, 04 May 2011 19:44:08 GMT
Author: lofwyr
Date: Wed May  4 19:44:08 2011
New Revision: 1099570

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

Modified:
    myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.1/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
    myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.2/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java

Modified: myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.1/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.1/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java?rev=1099570&r1=1099569&r2=1099570&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.1/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
(original)
+++ myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.1/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
Wed May  4 19:44:08 2011
@@ -35,6 +35,33 @@ import javax.faces.webapp.UIComponentTag
 import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.BodyTagSupport;
 
+/**
+ * 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.internal.taglib.LabelTag")
 public class LabelExtensionTag extends BodyTagSupport

Modified: myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.2/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.2/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java?rev=1099570&r1=1099569&r2=1099570&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.2/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
(original)
+++ myfaces/tobago/trunk/tobago-extension/tobago-taglib-extension/src/main/java-jsf-1.2/org/apache/myfaces/tobago/internal/taglib/extension/LabelExtensionTag.java
Wed May  4 19:44:08 2011
@@ -33,6 +33,33 @@ import javax.el.ValueExpression;
 import javax.faces.webapp.FacetTag;
 import javax.servlet.jsp.JspException;
 
+/**
+ * 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.internal.taglib.LabelTag")
 public class LabelExtensionTag extends TobagoExtensionBodyTagSupport {



Mime
View raw message