Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Viewer tag in JSF: are EL expressions allowed?
ravencsi
I would like to be able to tie the report file name to a property in a backing bean as follows:
<birt:viewer id="birtViewer_reg1" reportDesign=#{reports.regMediumReportFilePath} pattern="frameset"
format="HTML" height="350" width="800" frameborder="no"
showNavigationBar="false" showToolBar="false">
</birt:viewer>
The attribute reportDesign=#{reports.regMediumReportFilePath}" will not interpret the file name from the backing bean. Instead, the string literal "{#reports.regMediumReportFilePath}" get appended to the file path and I get an error that the file cannot be found:
The report file : d:jboss422serverdefaultreports/#{reports.regMediumReportFilePath} does not exist
Will the reportDesign attribute not accept a dynamic value?
Find more posts tagged with
Comments
Virgil Dodson
Hi Tom,<br />
<br />
I assume you are using an XHTML page, right? I think the problem lies with the timing of when the file is being interpreted.... once for JSF to convert #{Bean.x} to real values that can then be interpreted by a JSP processor to convert the <birt: tag into rich HTML. <br />
To make this part easier, Exadel has created a wrapper that makes it easier to integrate BIRT content into JSF pages. This wrapper will be announced during a webinar on February 9th. Details below.<br />
<br />
<a class='bbc_url' href='
http://www.birt-exchange.com/be/info/bewsem-techexadel/'>Live
Webcast: Learn How to Add BIRT Reporting to JSF Applications Using RichFaces</a>
ravencsi
That is correct, XHTML.
I worked around the problem for now by deploying to an iframe in the page. I am able to imbed the filename/path into the src definition, and that works fine for now:
<htm:iframe width="800" height="600" frameborder="1" src="/acc/frameset?__report=#{reports.regMediumReportFilePath}&__format=HTML&__toolbar=false&__navigationbar=false" />
I registered for the Webinar a few days ago - I am anxious to see it, as we are embarking on significant additions to our reporting capability.
Thanks.