Mar 22, 2012 9:24 AM
1 Posts

Multiple CSS-files combined are not correctly served using XPages

  • Category: Other
  • Platform: Windows
  • Release: 8.5.3
  • Role:
  • Tags: CSS XPages
  • Replies: 1
 Hi,
 
I use several CSS-stylesheets in XPages. When I view the page, I see this in the html-source:
 
 
If I review the source of that link, I only see the CSS-code of the first CSS-files.
There are no other CSS-links that I've manually included in the html-source. 
 
I've included the CSS-files in XPS-pages that are itself included in several pages. The CSS-include code is: 
<xp:this.resources>
<xp:styleSheet href="/menu.css" ></xp:styleSheet>
<xp:styleSheet href="/main.css" ></xp:styleSheet>
</xp:this.resources>
 
And: 
<xp:this.resources>
<xp:styleSheet href="/c_login.css"></xp:styleSheet>
</xp:this.resources> 
 
 How does XPages deal with this? Is this expected behaviour?
 
Thanks, 
Bram 

Mar 22, 2012 10:21 AM
272 Posts
Re: Multiple CSS-files combined are not correctly served using XPages
Hi,
 
this behaviour is caused by the new aggregation feature (available since 8.5.3) .
 
But it seems that under some circumstances the feature does not work correctly.
 
Hope this helps
Sven