I have noticed the TemplateNode.getUrl() does not include the context in the url. As a result the returned URL, without adding the context, seems unuasable. Am I missing something here? How does one deal with the url context without hardcoding it?
I know it is available through the FacesContext, or an HTTPServletRequest, but what if you have neither? i.e. a Utility class that may be run outside of a FacesContext or and HTTPServletRequest.
Are there methods of dealing with URL's with no context and making them work?
Any help would be appriciated.
Thanks.