JSF 2.2 HTML5 Pass-through attributes

后端 未结 1 1287
借酒劲吻你
借酒劲吻你 2021-01-06 12:41

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.

&l         


        
1条回答
  •  情话喂你
    2021-01-06 13:16

    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

    0 讨论(0)
提交回复
热议问题