Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.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 a4j:commandButton can';我找不到它的形式_Jsf_Ajax4jsf - Fatal编程技术网

Jsf a4j:commandButton can';我找不到它的形式

Jsf a4j:commandButton can';我找不到它的形式,jsf,ajax4jsf,Jsf,Ajax4jsf,我有以下代码: <h:form id="dispSchedule"> <a4j:commandButton value="View Full Schedule" rendered="#{studentClassView.dispClass.getBoolean('class_publish_loc')}" render ="@form" actio

我有以下代码:

<h:form id="dispSchedule">
  <a4j:commandButton value="View Full Schedule" 
                     rendered="#{studentClassView.dispClass.getBoolean('class_publish_loc')}"
                     render ="@form"
                     action="#{studentClassView.toggleDisplaySchedule()}"/>
  <rich:extendedDataTable id="fullSchedule" 
    ...
  </rich:extendedDataTable>
</h:form>


您使用的是哪个JSF impl/版本?(请在所有JSF问题中始终提及这一点,以节省我们每次提出这一问题的时间)。较旧的Mojarra版本有与此相关的bug。在这种情况下,只需升级即可。对不起;在这方面还是新手。我使用的jar文件是javax.faces-2.1.17.jar。Richfaces是4.3.0.final。哦,那真奇怪。这真的是SSCCE格式的代码吗?也就是说,在真实的代码中,您也可以使用提供的代码自己重现问题本身?在
之间,或者
之间,不应该有更多吗?我还想知道代码片段中的
和按钮的属性与具体问题的相关性。实际上,我将其删减,以便表单只包含按钮和表。在此之前,我将表单放在主体内部(实际上,页眉和页脚有一些模板文件,它们有自己的表单,但表单包含了此文件中的所有内容),因此,当单击按钮时,它不会调用操作方法。数据表中有东西,但我认为这与这个问题无关。我将数据表包含在表单中,因为我正在渲染它。今天再次尝试,但没有出现错误。不知道它为什么开始或为什么消失。(叹气)
The form component needs to have a UIForm in its ancestry. Suggestion: enclose the necessary components within <h:form>