<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view xmlns:f="
http://java.sun.com/jsf/core" xmlns:af="
http://xmlns.oracle.com/adf/faces/rich"
xmlns:jsfbirt="
http://jsf4birt.components" xmlns:h="
http://java.sun.com/jsf/html">
<af:document title="BIRTTest.jsf" id="d1">
<af:form id="f1">
<af:panelStretchLayout id="psl1">
<f:facet name="center">
<af:panelGroupLayout layout="scroll">
<!-- id="af_one_column_stretched" -->
<!--af:panelGroupLayout id="mainGroup">
<af:panelFormLayout id="titleForm">
<af:inputText label="Title" id="titleInput" value="#{pageFlowScope.title}"/>
<f:facet name="footer">
<af:group id="g1">
<af:commandButton text="Submit" id="submitButton"/>
</af:group>
</f:facet>
</af:panelFormLayout-->
<!--af:panelGroupLayout id="reportGroup" partialTriggers="titleInput"-->
<jsfbirt:birtWrapper id="helloWorld" reportDesign="/reports/demo.rptdesign">
<!--f:param value="#{pageFlowScope.title}" name="title" id="titleParam"/-->
</jsfbirt:birtWrapper>
<!--/af:panelGroupLayout-->
<!--/af:panelGroupLayout-->
<!--/f:facet-->
</af:panelGroupLayout>
</f:facet>
</af:panelStretchLayout>
<af:resource type="javascript">
function showPDFReport(actionEvent) {
actionEvent.cancel();
JSF4Actuate.pdf('helloWorld');
}
function showMSWordReport(actionEvent) {
actionEvent.cancel();
JSF4Actuate.doc('helloWorld');
}
</af:resource>
<af:toolbar id="reportToolBar">
<af:commandToolbarButton text="PDF" id="pdfReport">
<af:clientListener type="action" method="showPDFReport"/>
</af:commandToolbarButton>
<af:commandToolbarButton text="MSWord" id="MSWordReport">
<af:clientListener type="action" method="showMSWordReport"/>
</af:commandToolbarButton>
</af:toolbar>
</af:form>
</af:document>
</f:view>
This is my webpage. I get a out of heap space error when I try to display as Word.
I am using FireFox 4.0. Please help me with your suggestions.
Thanks,
Veena