在我的xhtml中,<h:form>
标记内有多个面板,a4j:jsFunction和rich:popupPanel和一个rich:面板。在我的富有:面板中,我有几个文本区域。然后,在另一个面板中,在rich:popupPanel中,我有一个调用a4j:jsFunction的a4j:commandButton。我想要的是,当点击a4j:commandButton时,将提交rich:panel中的所有数据。以下代码不提交任何内容。a4j:命令按钮不提交
<h:form id="createId">
<h:panelGrid columns="1">
<rich:panel
style="border-width: 1px; border-color: #6B489D; padding:30px">
<rich:panel style="width:100%" >
<fieldset>
<table ...>
...some outputText, inputText...
</table>
</fieldset>
</rich:panel>
<rich:popupPanel id="confirmEditPane" autosized="true">
<a4j:commandButton value="Cancel" onclick="#{rich:component('confirmEditPane')}.hide(); return false;" />
<h:outputText value=" " />
<h:outputText value=" " />
<a4j:commandButton value="Edit" onclick="edit(); return false;" />
</rich:popupPanel>
</h:form>
每个面板(包括弹出面板)都应该有自己的'h:form'。有一个巨大的形式与许多内容不能结束,因为你已经观察到 – kolossus
下次正式提到:-) – Robert