a4j:included rich:dataTable negatively affects a4j:commandButton

前端 未结 2 374
猫巷女王i
猫巷女王i 2021-01-16 08:13

I have a JSF/RichFaces setup with an index.jsp which a4j:includes another piece of code which contains a rich:dataTable.

It in

相关标签:
2条回答
  • 2021-01-16 08:31

    I often experience this when I reRender commandButtons/Links.

    Your a4j:form is in effect reRendering itself. Try changing it to something like this:

    <a4j:form>
        <a4j:outputPanel id="panel">
            <h:outputText style="text-align: center" value="Select " />
            <h:selectOneMenu id="mySelect" value="#{MyBacking.chosen}">
                <f:selectItems value="#{MyBacking.myList}" />
            </h:selectOneMenu>
        </a4j:outputPanel>
        <a4j:commandButton value="Retrieve" reRender="panel"/>
    </a4j:form>
    

    UPDATE: move your h:form to enclose the a4j:include. Pretty sure that it needs a form and of course you can't nest forms.

    0 讨论(0)
  • 2021-01-16 08:37

    The fix was to install a facelets jar. See here.

    0 讨论(0)
提交回复
热议问题