JSF 传递输入元素的转换器 ("HTML5 friendly markup")

Converter for JSF passthrough input element ("HTML5 friendly markup")

我在 Facelet 页面内使用 passthrough element,如下所示:

<input jsf:value="#{...}"/>

我想附上 Converter。 我怎样才能做到这一点?

与使用普通 JSF <h:inputText> component instead of plain HTML, with either the converter 属性时的方式相同

<input jsf:value="#{...}" jsf:converter="fooConverter" />

<f:converter> 标签。

<input jsf:value="#{...}">
    <f:converter converterId="fooConverter" />
</input>

Table 8-4 of the Java EE 7 tutorial lists which JSF component the given passthrough element will ultimately be converted to, before insertion in the JSF component tree. The Facelets VDL 列出这些 JSF 组件的所有可用标签+属性。