简体   繁体   English

rich:modalPanel中的jboss-seam-pdf无法正常工作

[英]jboss-seam-pdf inside rich:modalPanel cannot work

I have a modalPanel declared as 我有一个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>

There is also a commandbutton to show the modalPanel in the same page 还有一个命令按钮在同一页面上显示modalPanel

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

inside the printEmailExelPopup.xhtml, there is a 在printEmailExelPopup.xhtml里面,有一个

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

order.xhtml : 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>

The problem is that when i click the s:button in the modalPanel, it only refresh the whole page and the pdf file IS NOT downloaded. 问题是,当我单击modalPanel中的s:按钮时,它只会刷新整个页面,而不会下载pdf文件。 However, if i place the s:button outside the modalPanel(same level of the rich:modalPanel, it works normally). 但是,如果我将s:button放在modalPanel之外(与rich:modalPanel处于同一级别,则可以正常工作)。 Any Help? 有帮助吗?

尝试将您的commandButton包围在表单标签中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM