- All Implemented Interfaces:
- javax.servlet.Filter
@WebFilter(urlPatterns="/javax.faces.resource/*")
public class RelativeResourceHandlingFilter
extends java.lang.Object
implements javax.servlet.Filter
Certain web resources (like CSS / Fonts) tend to use relative positioning to locate each other. This works well in
the case of standard web applications. But if you need to include them in a Faces application (as embedded resources),
this can become a hassle. This filter attempts to rectify such scenarios by looking at the "referer" URL and then
redirecting the browser to the correct resource.