[英]a4j:commandButton not submitting
In my xhtml, inside a <h:form>
tag I have multiple panels, a4j:jsFunction and rich:popupPanel and a rich:panel. 在我的xhtml中,在
<h:form>
标记内,我有多个面板,a4j:jsFunction和rich:popupPanel和rich:panel。 In my rich:panel I have a few text areas. 在我的rich:panel中,我有几个文本区域。 Then, in another panel, inside a rich:popupPanel I have an a4j:commandButton that calls a a4j:jsFunction.
然后,在另一个面板的rich:popupPanel内部,我有一个a4j:commandButton,它调用a4j:jsFunction。 What I want is when the a4j:commandButton is clicked, all data from rich:panel to be submitted.
我想要的是单击a4j:commandButton时,来自rich:panel的所有数据都将被提交。 The following code is not submitting anything.
以下代码未提交任何内容。
<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>
尝试将属性domElementAttachment =“ form”添加到您的popuppanel中。
I managed to resolve this by adding <p:ajas event="valueChange"/>
inside every panel containing textboxes and now everytime I change the value inside a textbox it gets sent to the server. 我设法通过在每个包含文本框的面板内添加
<p:ajas event="valueChange"/>
来解决此问题,现在每次更改文本<p:ajas event="valueChange"/>
的值后,该值就会发送到服务器。 Thank you for your contribution. 感谢您的贡献。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.