2012-10-02 33 views
0

我們有一個模態面板用戶可以上傳圖像。圖片上傳不適用於ajax提交,所以我們使用h:commandLink來提交。不幸的是,這導致我們的url參數消失。目前看來是這樣的。關閉豐富後關閉url參數:modalPanel

<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> 

但是,當您單擊取消或保存網址是:view.html 代替view.html confirmationCode = 3C5VNP5 &的conversationId = X像我期望的那樣。

有誰知道爲什麼這不起作用或可以做些什麼來解決它?

回答

0

你做了一個解決方法,導致整個頁面重新加載...更好的是修復richfaces的文件上傳,而不是通過管理請求上的頁面參數來解決這個問題。

+0

關於如何修復richfaces文件上傳的任何建議?對我來說這是非常合理的,它不能通過ajax工作。 – perilandmishap