【发布时间】:2015-03-03 17:59:24
【问题描述】:
似乎使用passthrough命名空间的某些HTML 5属性存在错误,即:
<h:inputText id="text1" p:autofocus p:placeholder="this is a placeholder text"></h:inputText>
当我尝试在 Glassfish 中运行该页面时,出现此错误:
Error Parsing /index.xhtml: Error Traced[line: 19] Attribute name "p:autofocus" associated with an element type "h:inputText" must be followed by the ' = ' character.
请注意,占位符属性工作正常,只是那些不需要指定值 (="") 的属性,例如 autofocus 失败了。
这是一个已知的错误吗?
【问题讨论】:
标签: html jsf facelets jsf-2.2 passthrough-attributes