I was able to create a solution by modifying OmniFaces CombinedResourceHandler
.
Details in short:
Richfaces utilizes a concept called ResourceLibrarys wich means a resource may not only be a single file but instead a collection of those files. For example, RichFaces uses a resource named base-component.reslib. RichFaces ResourceHandler
interpretes this resource dependency as dependency to
- javax.faces:jsf.js
- jquery.js
- richfaces.js
- richfaces-base-component.js
So the CombinedResourceHandler needed some extra functionality to seperate dependencies to ordinary Resources from Richfaces ResourceLibraries. The latter needed to be resolved according to specifications obtained from RichFaces sources.