Ajax 根据复选框选择展开rich:CollapsablePanel

Ajax 根据复选框选择展开rich:CollapsablePanel,ajax,jsf,richfaces,Ajax,Jsf,Richfaces,我有2个复选框和相应的2个可折叠面板。 我希望实现以下提到的验证: 如果我只选中一个复选框,那么我应该能够展开相应的可折叠面板 </tr> </table> </rich:collapsiblePanel> <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"

我有2个复选框和相应的2个可折叠面板。 我希望实现以下提到的验证: 如果我只选中一个复选框,那么我应该能够展开相应的可折叠面板

                    </tr>
            </table>

 </rich:collapsiblePanel>

            <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"
                align="center" header="File Selection For Igloo"
                switchType="client" >
                <table id="nameTable1">
                    <tr>
                        <td><h:outputText value="Please Provide a name for the plot:" /></td>

                    </tr>
                </table>`enter code here`
                        </rich:collapsiblePanel>
            </h:panelGroup>
        </rich:panel>
下面是我尝试过的,但它给了我。。。update=“HbR,Igl”未由类型org.ajax4jsf.component.behavior.AjaxBehavior的MetaTagHandler处理此错误在eclipse控制台中

                    </tr>
            </table>

 </rich:collapsiblePanel>

            <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"
                align="center" header="File Selection For Igloo"
                switchType="client" >
                <table id="nameTable1">
                    <tr>
                        <td><h:outputText value="Please Provide a name for the plot:" /></td>

                    </tr>
                </table>`enter code here`
                        </rich:collapsiblePanel>
            </h:panelGroup>
        </rich:panel>

                    </tr>
            </table>

 </rich:collapsiblePanel>

            <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"
                align="center" header="File Selection For Igloo"
                switchType="client" >
                <table id="nameTable1">
                    <tr>
                        <td><h:outputText value="Please Provide a name for the plot:" /></td>

                    </tr>
                </table>`enter code here`
                        </rich:collapsiblePanel>
            </h:panelGroup>
        </rich:panel>

`在这里输入代码`

请提供有关如何实现此验证的建议。

a4j:ajax没有
更新
属性,正确的属性是
渲染

                    </tr>
            </table>

 </rich:collapsiblePanel>

            <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"
                align="center" header="File Selection For Igloo"
                switchType="client" >
                <table id="nameTable1">
                    <tr>
                        <td><h:outputText value="Please Provide a name for the plot:" /></td>

                    </tr>
                </table>`enter code here`
                        </rich:collapsiblePanel>
            </h:panelGroup>
        </rich:panel>
对于您的问题,您可以使用JavaScript折叠面板:

                    </tr>
            </table>

 </rich:collapsiblePanel>

            <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"
                align="center" header="File Selection For Igloo"
                switchType="client" >
                <table id="nameTable1">
                    <tr>
                        <td><h:outputText value="Please Provide a name for the plot:" /></td>

                    </tr>
                </table>`enter code here`
                        </rich:collapsiblePanel>
            </h:panelGroup>
        </rich:panel>
RichFaces.$(panelId).switchPanel();
或者,您可以通过服务器变量控制状态:

                    </tr>
            </table>

 </rich:collapsiblePanel>

            <rich:collapsiblePanel id="Igl" style="height: 100%; resize:auto;"
                align="center" header="File Selection For Igloo"
                switchType="client" >
                <table id="nameTable1">
                    <tr>
                        <td><h:outputText value="Please Provide a name for the plot:" /></td>

                    </tr>
                </table>`enter code here`
                        </rich:collapsiblePanel>
            </h:panelGroup>
        </rich:panel>
<rich:collapsiblePanel … expanded="#{bean.panelExpanded}">