MyFaces Commons ResourceHandler is a project aiming to provide a place where to find utilities for create Resource Handler instances and a Extended ResourceHandler which has some useful features like:

  • GZIP compression and local cache in tmp dir.
  • i18n (supporting country code and language).
  • Prevent use #{resource'...'} on css files, using prefix mapping
  • Prefix mapping automatic detection
  • Override request path generation using EL expressions
  • Redirect library names to prevent duplicate usage against other JSF libraries.

Just add this jar to your project and register on a WEB-INF/myfaces-resources-config.xml file or META-INF/myfaces-resources-config.xml the libraries that needs to be handled by the ExtendedResourceHandler. Look on the Web Context Parameter List for the available parameters.

  • No labels