相关疑难解决方法(0)

什么是<f:ajax execute ="@ all">真的应该做什么?它只发布封闭表单

对不起,如果我很厚,但f:ajax标签中的execute ="@ all"真的应该做什么?我希望它提交页面上的所有元素,但它似乎只发布封闭形式的值,而不是页面上的所有表单.

例如

<h:body>
    <h:form id="form1">
        Input1/Form1 <h:inputText id="testinput" value="#{testBean.input1}" />                              
    </h:form>

    <h:form id="form2">
        Input2/form2 <h:inputText id="testinput2" value="#{testBean.input2}" />                             
        <h:commandButton value="Ok" actionListener="#{testBean.al}">
        <f:ajax execute="@all" />
        </h:commandButton>
    </h:form>
</h:body>
Run Code Online (Sandbox Code Playgroud)

单击时仅发布form2.

使用mojarra 2.0.2 ..

ajax jsf-2

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

ajax ×1

jsf-2 ×1