Use:
#{facesContext.externalContext.request.contextPath}
For some insane reason, none of the methods that should work would work when invoked via a @RequestScoped
object with @Inject @FacesContext
- they all merrily returned the empty string. More stupid CDI/JSF brokenness.
No comments:
Post a Comment
Captchas suck. Bots suck more. Sorry.