Details
Description
JSF 2.2 supports HTML 5 through passthrough attributes and data-* attributes. These must be supported with the ICEfaces DOM diff and ajax page updates.
Additional references:
http://jsfcorner.blogspot.ca/2013/06/jsf-22-pass-through-attributes.html
http://jdevelopment.nl/jsf-22/
Additional references:
http://jsfcorner.blogspot.ca/2013/06/jsf-22-pass-through-attributes.html
http://jdevelopment.nl/jsf-22/
Issue Links
- depends on
-
ICE-9681 Modify DOMResponseWriter to render passthrough attribute
- Closed
It looks like things did go wrong, both for h:* and ace:* components.
In case of h:* components the attributes that are really allowed to be rendered are defined in com.sun.faces.renderkit.AttributeManager. They seem to be hardcoded. So when the component implementation class in found in javax.faces.component package RenderKitUtils will choose an optimised method of rendering the passthrough attribute (renderPassThruAttributesOptimized() method) which will skip rendering the attributes that are not listed in the AtributeManager for the component.
In case of ace:* components some HTML5 attributes are rendered but when they are updated, thir value won't change. For example components that render input elements have this problem (we know already that input element updates are treated differently).