when using CombinedResourceHandler
in a Richfaces application only stylesheets and user defiend scripts are combined. The standard JavaScript resource and all Richfaces specific resources remain as seperated resources.
The Omnifaces documentation states:
RichFaces has the same problem with several JS files, but this is so far not exactly trivial to workaround
So my question is what this 'non-trivial workaround' would be?
As far as I can see, CombinedResourceHandler
wont handle resources when getRendererType()
returns org.richfaces.renderkit.ResourceLibraryRenderer
. These are then handled by org.richfaces.renderkit.html.ResourceLibraryRenderer
.
I am not sure what would be the best way to combine RichFaces behaviour with OmniFaces here.