【问题标题】:jboss-seam-pdf inside rich:modalPanel cannot work丰富的jboss-seam-pdf:modalPanel无法工作
【发布时间】:2012-06-02 23:59:46
【问题描述】:

我有一个 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 相同级别,它可以正常工作)。有什么帮助吗?

【问题讨论】:

    标签: java jsf pdf seam itext


    【解决方案1】:

    尝试用表单标签包围你的 commandButton。

    【讨论】:

      猜你喜欢
      • 2012-05-25
      • 1970-01-01
      • 1970-01-01
      • 2011-04-08
      • 2014-01-26
      • 2015-10-14
      • 1970-01-01
      • 1970-01-01
      • 2013-10-05
      相关资源
      最近更新 更多