Skip to content Skip to sidebar Skip to footer

JSF 2.2 HTML5 Pass-through Attributes

I am trying to use JSF 2.2 innovations html5 pass-through attributes feature. Name-spaced attribute on the component tag working with m09 version.

Solution 1:

You should use the following namespace :

xmlns="http://xmlns.jcp.org/jsf/passthrough"

Explanation:

The new namespace xmlns.jcp.org must be used for the new passthrough stuff for 2.2 (since this is new for 2.2). You can use the old (java.sun.com) or new (xmlns.jcp.org) namespace for the ui, h and f namespaces since we need to preserve compatibility. But I would encourage you to use the new namespace for everything going forward for 2.2.

Here is the JIRA reference : Passthrough attributes not working when used with prefixing the attribute with the shortname assigned to the http://java.sun.com/jsf/passthrough


Post a Comment for "JSF 2.2 HTML5 Pass-through Attributes"