2012-10-02 2 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> 

그러나 취소 또는 저장을 클릭 URL은 : 대신 view.html confirmationCode = 3C5VNP5 & conversationId =의 view.html 내가 기대 같은 x를.

왜이 기능이 작동하지 않거나 해결할 수 있는지 알 수 있습니까?

답변

0

전체 페이지를 다시로드 할 수있는 해결 방법을 취했습니다. 리 포트의 파일 업로드를 수정하는 것이 요청보다 페이지 매개 변수를 관리하여이 문제를 해결하는 것보다 낫습니다.

+0

richfaces 파일을 수정하는 방법에 대한 제안 사항이 있습니까? Ajax를 통해 작동하지 않는다는 것이 내게는 완전히 합리적입니다. – perilandmishap

관련 문제