[jboss-user] [JBoss Seam] - render pdf without landing on blank page?
dustismo
do-not-reply at jboss.com
Wed Jun 6 18:47:23 EDT 2007
Hi,
I am trying to render a pdf using an action, problem is that it always lands me on a blank page.. I would settle for opening in a new window, but I can't get that to work either.
my export() method returns the view of the report to render, but I need to submit the form so s:button doesn't work..
| <h:form id="graphreport_fm">
| <s:validateAll>
|
| <h:outputLabel styleClass="form-label" for="title">Title:</h:outputLabel>
| <br />
| <s:decorate>
| <h:inputText size="30" id="title" value="#{graphReport.report.title}" />
| <s:message />
| </s:decorate>
| <br />
|
| <!-- other options -->
|
| </s:validateAll>
| <s:button onclick="document.forms['graphreport_fm'].submit();" value="Export Now" action="#{graphReport.export()}" target="_new"/>
| </h:form>
|
Where my export method is something like:
| public String export() {
| return generateReportViewId();
| }
|
that leads to the following message:
|
| INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
| sourceId=null[severity=(WARN 1), summary=(The conversation ended, timed out or was processing another request), detail=(The conversation ended, timed out or was processing another request)]
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4051923#4051923
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4051923
More information about the jboss-user
mailing list