Themes missing when deploying to Tomcat [message #878662] |
Tue, 29 May 2012 13:11  |
Eclipse User |
|
|
|
We have three distinct report themes defined with in a library, they all consist of header colors, text justification, text color, data sources, etc. We apply a theme to a report and the changes show up in the BIRT Web Viewer within Eclipse, but when we deploy our application that uses the BIRT viewer to Tomcat, the themes are no longer displayed.
We also have four data sources defined within the library that all the reports use, and those stay put after the deployment, it is just the CSS coming over that is ignored or dropped.
I have searched and searched for this, and the only thing I've found was an issue on stackoverflow from 2008ish.
Any thoughts, or suggestions?
Thanks,
Ian
Eclipse Indigo SR2
BIRT 3.7.1
Tomcat v6.0
|
|
|
|
|
|
Re: Themes missing when deploying to Tomcat [message #879319 is a reply to message #879132] |
Wed, 30 May 2012 20:58  |
Eclipse User |
|
|
|
Ian
The best way to do this is to set a resource folder in your designer and
put your libs in it. When you items form the library they will be
relative to the resource folder like:
<list-property name="libraries">
<structure>
<property name="fileName">mytheme.rptlibrary</property>
<property name="namespace">mytheme</property>
</structure>
</list-property>
Then in the web.xml of the viewer set the resource folder relative to
the context. For example if I create a folder in my top level of the
viewer name resourcefolder I would then set this in the web.xml
<context-param>
<param-name>BIRT_RESOURCE_PATH</param-name>
<param-value>resourcefolder</param-value>
</context-param>
Jason
On 5/30/2012 11:18 AM, Ian Donaldson wrote:
> Jason,
> I downloaded those files, and added them to our application. The theme
> works as long as the report and report library are in the same
> directory. The problem I am facing with that is I have roughly 85
> reports, and they are broken down into the various departments they
> belong too. The report library is in the root "reports" directory, with
> all the reports falling into sub directories. How can we reference this?
> Currently we have it set to
>
> <property name="theme">mytheme.mytheme</property>
> <property name="iconFile">/templates/blank_report.gif</property>
> <property name="bidiLayoutOrientation">ltr</property>
> <property name="imageDPI">96</property>
> <list-property name="libraries">
> <structure>
> <property name="fileName">WebContent/reports/mytheme.rptlibrary</property>
> <property name="namespace">mytheme</property>
> </structure>
> </list-property>
>
>
> The reports directory looks like:
>
> Reports
> -College 1
> -College 2
> -College 3
> -AccountsReceivable
> -Finance
> -StudentInformation
> *report.rptdesign
>
> -mytheme.rptlibrary
>
>
> Ideally I would only have one rptlibrary, and be able to reference it
> from within any sub directory. Is this possible?
|
|
|
Powered by
FUDForum. Page generated in 0.03648 seconds