2012-05-28 2 views
1

작동하지 않을 수는 내가 modalPanel는 printEmailExelPopup 내부의 같은 페이지제이 보스 솔기-PDF : modalPanel이

<s:button oncomplete="#{rich:component('printEmailExcel')}.show()" image="/images/icons/btn_print.gif" ></s:button> 

에 modalPanel을 보여줄 수있는 명령도 있습니다

<rich:modalPanel id="printEmailExcel" minWidth="800" minHeight="600" resizable="true"> 
    <div style="width: 1055px; height: 700px; overflow: auto"> 
     <s:decorate template="/view/popup/printEmailExcelPopup.xhtml"styleClass="popupCDiv"> 
      <ui:param name="panelid" value="printEmailExcel" />value="/view/printForm/order.xhtml" /> 
     </s:decorate> 
    </div> 
</rich:modalPanel> 

로 선언 .xhtml하는

<h:form><s:button view="/view/print/order.xthml" /></h:form> 

order.xhtml이있다 :

,
<p:document xmlns:ui="http://java.sun.com/jsf/facelets" 
    xmlns:f="http://java.sun.com/jsf/core" 
    xmlns:c="http://java.sun.com/jsp/jstl/core" 
    xmlns:p="http://jboss.com/products/seam/pdf"> 

The document goes here. 

< /p:document> 

modalPanel에서 s : 버튼을 클릭하면 전체 페이지가 새로 고침되고 pdf 파일은 다운로드되지 않는 문제가 있습니다. 그러나 modalPanel (rich : modalPanel과 같은 수준) 외부에 s : 단추를 배치하면 정상적으로 작동합니다. 어떤 도움?

답변

0

양식 태그로 commandButton을 둘러보십시오.

관련 문제