First I added the CSS-File in the liferay-portlet.xml in the XML-Tag <header-css>. Then I added the CSS-File over the include.jsp in the viewpoint-tag "<vp:managedResources". Every time with the same result. The strange think is, that in my local local development environment everything works fine. The problem only occurs on the Server of the customer. The customer use the Viewpoint Version 13.12.00.03 and i use the version 13.03.00.05.
Has someone an idea how I could solve the problem?
If I add the CSS-File over the liferay-portlet.xml in the XML-Tag <header-css> the CSS-File is loaded multiple times. The strange think is, that if take the CSS-File path out from the liferay-portlet.xml and deploy the portlet again, then the CSS-Files are loading again. Why? What is Viewpoint caching?
CSS files should not be added to the liferay-portlet.xml file. They should be added in a vp:managedResources tag inside your include.jsp file. By default CSS files are cached for 1 day in Viewpoint. You should be clearing you cache or forcing your browser to do a hard refresh when updating CSS files during development.
Yes this is what i did now. I added the css file in the vp:managedResources tag inside the include.jsp. After that i restart Viewpoint. Over that way I clear the cache. Then i deploy the portlet again and the problem resolved.