ajax – JSF:执行多个表单的值
发布时间:2020-12-15 22:52:27 所属栏目:百科 来源:网络整理
导读:我想从多个表单提交(执行)值,而不仅仅是封闭表单.所以,我希望能够做到这样的事情: h:form id="form1 h:inputText id="testinput1" value="#{testBean.input1}" //h:formh:form id="form2 h:inputText id="testinput2" value="#{testBean.input2}" / h:comma
我想从多个表单提交(执行)值,而不仅仅是封闭表单.所以,我希望能够做到这样的事情:
<h:form id="form1> <h:inputText id="testinput1" value="#{testBean.input1}" /> </h:form> <h:form id="form2> <h:inputText id="testinput2" value="#{testBean.input2}" /> <h:commandButton value="Submit"> <f:ajax execute=":form1 :form2"/> </h:commandButton> </h:form> 你怎么解决这个问题? What is <f:ajax execute=”@all”> really supposed to do? It POSTs only the enclosing form 解决方法
是否使用Ajax,使用普通的JSF / HTML是不可能的.需要处理的所有输入元素确实需要进入同一个表单.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |