This content has been marked as final.
Show 3 replies
-
1. Re: Get context root (Application.xml)
sunfire Jan 9, 2008 11:56 AM (in response to jboss2007)I assume with .xhtml you mean JSF. If so you can get the contextPath with
#{facesContext.externalContext.requestContextPath}
Hope this helps, Thorsten -
2. Re: Get context root (Application.xml)
jboss2007 Jan 10, 2008 3:56 AM (in response to jboss2007)many thx
effectively, it was rather a jsf question and not a seam one.. -
3. Re: Get context root (Application.xml)
tony.herstell1 Jan 10, 2008 4:30 AM (in response to jboss2007)This is useful too (in components.xml)...
<factory name="basePath" value="#{facesContext.externalContext.request.scheme}://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}#{facesContext.externalContext.request.contextPath}/" />
giving...h:graphicImage class="padded_right_left" alt="Hot" url="#{basePath}/images/background_flames_sm.gif" />