Message Boards

liferay / birt reports / css / visioneo

Andy K, modified 5 Years ago.

liferay / birt reports / css / visioneo

New Member Posts: 2 Join Date: 11/1/18 Recent Posts
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">
        <structure>
            <property name="fileName">birt-master.css</property>
            <property name="useExternalCss">true</property>
        </structure>
    </list-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?

Thanks,
Andy K, modified 5 Years ago.

RE: liferay / birt reports / css / visioneo

New Member Posts: 2 Join Date: 11/1/18 Recent Posts
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,