Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » birt reports / css / liferay /visioneo portlet(updating css has no effect)
birt reports / css / liferay /visioneo portlet [message #1797544] Thu, 01 November 2018 15:22 Go to next message
Andy K  is currently offline Andy K Friend
Messages: 4
Registered: November 2018
Junior Member
I created external css file for styling my birt report.

XML Source inside Eclipose shows it inside the report as follows:
<list-property name="cssStyleSheets">
<property name="fileName">birt-master.css</property>
<property name="useExternalCss">true</property>

When I deploy/copy the report to Liferay and restart Tomcat everything works fine.
Tomcat deploys the report to liferay-portal-6.2-ce-ga5\tomcat-7.0.62\temp\7-visioneo-portlet\birt\reports\demo\report.rptdesign and
css file gets deployed to liferay-portal-6.2-ce-ga5\tomcat-7.0.62\temp\7-visioneo-portlet\birt\resources\birt-master.css
Note the /temp folder.

Whenever I need to modify the report without restarting Tomcat, I access and modify report.rptdesign in that location and, refreshing web page, takes effect immediately with regards to the report. However it doesn't happen when I modify css file though.
Changes will take an effect only either when I modify the report.rptdesign and refresh the page OR when I restart Tomcat. It seems like some sort of caching occurs?

Anyone resolved such issue yet?

Re: birt reports / css / liferay /visioneo portlet [message #1797729 is a reply to message #1797544] Mon, 05 November 2018 18:41 Go to previous message
Andy K  is currently offline Andy K Friend
Messages: 4
Registered: November 2018
Junior Member
I may have found an answer to my question.

As per the visioneo:
Concerning the Community Edition , it now also detects automatically if a report-design has changed by checking the date of the last modification!

There is indeed caching occurs in visioneo, location: liferay-portal-6.2-ce-ga5\tomcat-7.0.62\temp\visioneo\CE\caches

Chaning timestamp of the .rptdesign files inside /temp folder forces visioneo cache refresh.
(windows) C:\>copy /b *.rptdesign +,,
(linux) $touch *.rptdesign

I wished visioneo also checked timestamp of .css files and forced such refresh.

If someone finds a better solution please do share.

Thank you,
Previous Topic:Brainstorming - how to build a report based on 2 layouts
Next Topic:BIRT help pls - access cell values from report output
Goto Forum:

Current Time: Sun Aug 25 00:32:21 GMT 2019

Powered by FUDForum. Page generated in 0.01967 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top