ユーザーが画像をアップロードできるモーダル パネルがあります。画像のアップロードは ajax 送信では機能しないため、h:commandLink を使用して送信しています。残念ながら、これにより URL パラメータが消えてしまいます。現在、ビューはこのようになっています。
<rich:modalPanel domElementAttachment="parent" id="profilePanel" styleClass="popUp" resizeable="false" moveable="false" autosized="true" zindex="200" top="-10">
<h:form enctype="multipart/form-data" id="profilePanelFormId">
<k:box title="Edit Advocacy Profile" width="width6x" wantFocus="true">
<s:div id="profilePanelForm">
<rich:messages rendered="#{messagesUtil.errorsExist}"/>
<a4j:include viewId="/panel/advocacy/advocateProfileEdit.xhtml"/>
</s:div>
<h:commandLink id="cancel" immediate="true" value="Cancel" action="#{advocateManager.cancelEditCommitment}" styleClass="button cancel" tabindex="100">
<f:param name="confirmationCode" value="3C5VNP5"/>
</h:commandLink>
<h:commandLink id="save" value="Save" action="#{advocateManager.saveCommitment}" styleClass="button submit" tabindex="101">
<f:param name="confirmationCode" value="3C5VNP5"/>
</h:commandLink>
</k:box>
</h:form>
</rich:modalPanel>
しかし、キャンセルまたは保存をクリックしたときの URL は、view.html?confirmationCode=3C5VNP5&conversationId=x ではなく、view.html です。
これが機能しない理由、または回避するために何ができるかを誰かが知っていますか?