Hi. In all the examples I have seen hardcoded references to web files
e.g. /seam-booking/images/logo.gif
In other projects on tomcat paths are resolved against the context root so /images/logo.gif would be fine.
How can I achieve the same thing either by having them auto resolve or el referencing the root... something like #{appContext.name}/images/logo.gif? Of course any other methods would be welcome.
Kind Regards,
Mark
<h:graphicImage> should do this for you with images... otherwise #{facesContext.externalContext.request.contextPath} gives you the app name.