Jsf 无法将转换器插入facelets模板组件

Jsf 无法将转换器插入facelets模板组件,jsf,myfaces,mojarra,Jsf,Myfaces,Mojarra,使用MyFaces时,我在使用ui:insert将转换器插入模板组件时遇到问题。JSF实现抱怨我的convertdateTime的父项类型不正确: 父项不是复合组件或ValueHolder的实例:org.primefaces.component.fieldset。Fieldset@6559fbd6 然后它似乎会检查一个字段集(在我的例子中,它是父项的父项) 我的OutputExtWithLabel组件如下所示: <!DOCTYPE html> <html xmlns="ht

使用MyFaces时,我在使用ui:insert将转换器插入模板组件时遇到问题。JSF实现抱怨我的convertdateTime的父项类型不正确:

父项不是复合组件或ValueHolder的实例:org.primefaces.component.fieldset。Fieldset@6559fbd6

然后它似乎会检查一个字段集(在我的例子中,它是父项的父项)


我的OutputExtWithLabel组件如下所示:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:jsf="http://xmlns.jcp.org/jsf">
    <ui:composition>
        <h:panelGroup rendered="#{rendered or empty rendered}">
            <p:outputLabel for="#{id}" value="#{label}" />
            <div class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all">
                <h:outputText id="#{id}" value="#{value}">
                    <ui:insert/>
                </h:outputText>
            </div>
        </h:panelGroup>
    </ui:composition>
</html>

此代码与Mojarra配合使用效果良好。。。
那么,为了清楚起见:这不应该奏效吗?莫哈拉是对的,还是我的脸?这里可以做些什么呢?

注意,对于相同的my:outputTextWithLabel,标准的f:converter也会出现同样的问题。您有关于Mojarra和MyFaces的版本信息吗?请编辑代码并更换转换器。把它变成一个可以帮助其他人繁衍后代的。。。。干杯
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:p="http://primefaces.org/ui" xmlns:jsf="http://xmlns.jcp.org/jsf">
    <ui:composition>
        <h:panelGroup rendered="#{rendered or empty rendered}">
            <p:outputLabel for="#{id}" value="#{label}" />
            <div class="ui-inputfield ui-inputtext ui-widget ui-state-default ui-corner-all">
                <h:outputText id="#{id}" value="#{value}">
                    <ui:insert/>
                </h:outputText>
            </div>
        </h:panelGroup>
    </ui:composition>
</html>