对不起,如果我很厚,但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 ..