gpt4 book ai didi

javascript - a4j :commandButton not submitting

转载 作者:行者123 更新时间:2023-12-03 08:59:33 25 4
gpt4 key购买 nike

在我的 xhtml 中,在 <h:form> 内标签我有多个面板,a4j:jsFunction 和 rich:popupPanel 以及 rich:panel。在我的 rich:panel 中,我有一些文本区域。然后,在另一个面板中,在 rich:popupPanel 内,我有一个调用 a4j:jsFunction 的 a4j:commandButton。我想要的是当单击 a4j:commandButton 时,将提交 rich:panel 中的所有数据。以下代码未提交任何内容。

<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="&#160;" />
<h:outputText value="&#160;" />
<a4j:commandButton value="Edit" onclick="edit(); return false;" />
</rich:popupPanel>
</h:form>

最佳答案

尝试将属性 domElementAttachment="form"添加到您的弹出面板。

关于javascript - a4j :commandButton not submitting,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32352734/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com