私は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>
modalPanel を同じページに表示するためのコマンド ボタンもあります。
<s:button oncomplete="#{rich:component('printEmailExcel')}.show()" image="/images/icons/btn_print.gif" ></s:button>
printEmailExelPopup.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:button をクリックすると、ページ全体が更新されるだけで、pdf ファイルがダウンロードされないことです。ただし、s:button を modalPanel の外に配置すると (rich:modalPanel と同じレベルで、正常に動作します)。ヘルプはありますか?