Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Jsf 2 当复合组件参数是ui:repeat var属性时,它不会求值_Jsf 2_Facelets_Composite Component_Mojarra - Fatal编程技术网

Jsf 2 当复合组件参数是ui:repeat var属性时,它不会求值

Jsf 2 当复合组件参数是ui:repeat var属性时,它不会求值,jsf-2,facelets,composite-component,mojarra,Jsf 2,Facelets,Composite Component,Mojarra,我有一个复合组件,它将特定的对象类型作为其值属性。看起来是这样的: <cc:interface> <cc:attribute name="value" type="com.myapp.Tally" required="true" </cc:interface> <ui:repeat value="#{myApp.tallyList}" var="tally">

我有一个复合组件,它将特定的对象类型作为其属性。看起来是这样的:

<cc:interface>
    <cc:attribute name="value" 
                  type="com.myapp.Tally" 
                  required="true" 
</cc:interface>
<ui:repeat value="#{myApp.tallyList}" var="tally">    
  <p>
    <qc:tallySummaryH value="#{tally}" />
  </p>
</ui:repeat>


这与Mojarra 2.1.1中修复的错误有关。考虑我认为这是访问提示修复的直接结果,如Mojarra 2.1.1中修复的问题中所述

从未在Mojarra 2.1.0上尝试过这一点,但它在Mojarra 2.1.3上对我本地运行良好,在使用Mojarra 2.1.1的生产环境中也运行良好(,前10名列表由ui生成:repeat,带有弹出窗口的星号分数是合成的)。你确定没有键入
属性吗?这是从我的应用程序中剪切粘贴(然后删除一些内容)。该属性在Netbeans编辑器中自动完成。然而,这很有趣,有一个Mojarra 2.1.3,我想我有最新的。让我看看是否可以升级,然后再试一次。@BalusC嗯,原来我的家庭系统上有2.1.3。我的笔记本电脑过时了。现在它似乎正在发挥作用。“不幸的是,我没有保留失败的代码,但我会看看是否能让它在我的笔记本电脑上再次失败。”巴卢斯确认。2.1.0故障2.1.3正常工作。如果你想转载作为一个答案,我会标记它。
javax.faces.view.facelets.TagException: /table.xhtml @86,66 <qc:tallySummaryH> The following attribute(s) are required, but no values have been supplied for them: value. 
    at com.sun.faces.facelets.tag.composite.InterfaceHandler.validateComponent(InterfaceHandler.java:233)
    at com.sun.faces.facelets.tag.composite.InterfaceHandler.apply(InterfaceHandler.java:125)
    at javax.faces.view.facelets.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:98)
    at com.sun.faces.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:93)
    at com.sun.faces.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:86)
    at com.sun.faces.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:152)
    at com.sun.faces.facelets.tag.jsf.CompositeComponentTagHandler.applyCompositeComponent(CompositeComponentTagHandler.java:349)