You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2012/10/05 14:48:33 UTC
svn commit: r1394485 - in /myfaces/tobago/branches/tobago-1.5.x:
tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/
tobago-core/src/main/java/org/apache/myfaces/tobago/util/
tobago-extension/tobago-facelets/src/main/java/org...
Author: lofwyr
Date: Fri Oct 5 12:48:32 2012
New Revision: 1394485
URL: http://svn.apache.org/viewvc?rev=1394485&view=rev
Log:
TOBAGO-1187: new tag tc:dataAttribute for HTML5 data-*
Modified:
myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/DataAttributeTag.java
myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
myfaces/tobago/branches/tobago-1.5.x/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/DataAttributeHandler.java
myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/DataAttributeTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/DataAttributeTag.java?rev=1394485&r1=1394484&r2=1394485&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/DataAttributeTag.java (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/internal/taglib/component/DataAttributeTag.java Fri Oct 5 12:48:32 2012
@@ -31,6 +31,8 @@ import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ *
* Add an data attribute on the UIComponent
* associated with the closest parent UIComponent custom action.
* Data attributes will be passed through the renderers into the DOM of the user agent and
@@ -45,6 +47,8 @@ public abstract class DataAttributeTag e
public abstract Object getNameAsBindingOrExpression();
/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ *
* The name of the attribute in the parent component.
*/
@TagAttribute(required = true, name = "name")
@@ -58,6 +62,8 @@ public abstract class DataAttributeTag e
public abstract Object getValueAsBindingOrExpression();
/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ *
* The value of the attribute in the parent component.
*/
@TagAttribute(required = true, name = "value")
Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java?rev=1394485&r1=1394484&r2=1394485&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-core/src/main/java/org/apache/myfaces/tobago/util/ComponentUtils.java Fri Oct 5 12:48:32 2012
@@ -90,6 +90,8 @@ public class ComponentUtils {
public static final String LIST_SEPARATOR_CHARS = ", ";
/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ *
* Name of the map for data attributes in components. New in JSF 2.2.
* @since 1.6.0
*/
@@ -1017,6 +1019,8 @@ public class ComponentUtils {
}
/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ *
* Adding a data attribute to the component.
* The name must start with "data-", e. g. "data-tobago-foo" or "data-bar"
*/
@@ -1029,6 +1033,8 @@ public class ComponentUtils {
}
/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ *
* Adding a data attribute to the component.
* The name should not start with "data-", e. g. "tobago-foo" or "bar"
*/
Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/DataAttributeHandler.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/DataAttributeHandler.java?rev=1394485&r1=1394484&r2=1394485&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/DataAttributeHandler.java (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-extension/tobago-facelets/src/main/java/org/apache/myfaces/tobago/facelets/DataAttributeHandler.java Fri Oct 5 12:48:32 2012
@@ -32,6 +32,9 @@ import javax.el.ELException;
import javax.faces.FacesException;
import javax.faces.component.UIComponent;
+/**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ */
public final class DataAttributeHandler extends TagHandler {
private final TagAttribute name;
Modified: myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java?rev=1394485&r1=1394484&r2=1394485&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java (original)
+++ myfaces/tobago/branches/tobago-1.5.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/util/HtmlRendererUtils.java Fri Oct 5 12:48:32 2012
@@ -719,6 +719,9 @@ public final class HtmlRendererUtils {
FacesContextUtils.addMenuAcceleratorScript(facesContext, jsStatement);
}
+ /**
+ * PRELIMINARY - SUBJECT TO CHANGE
+ */
public static void writeDataAttributes(
FacesContext context, TobagoResponseWriter writer, UIComponent component)
throws IOException {