You may look at Tomahawks' stylesheet component. It adds "FacesContext.getExternalContext().getRequestContextPath()" to the path attribute value
HTH, Matthias On 2/13/06, Yee CN <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > Is there a JSF component for base path? I like to achieve the equivalence of > the following: > > > > <% String basePath = request.getScheme() + "://" + request.getServerName() + > > ":" + request.getServerPort() + request.getContextPath() + "/";%> > > > > <link href="<%=basePath%>styles/basic.css" rel="stylesheet" > type="text/css" /> > > > > I am migrating to facelets and I need to find an equivalent to the above as > relative path won't work because JSF navigation leaves the URL one step > behind the actual URL. > > > > Or is there an alternate to this? > > > > > > Many thanks in advance, > > > > Best Regards, > > Yee -- Matthias Wessendorf Zülpicher Wall 12, 239 50674 Köln http://www.wessendorf.net mwessendorf-at-gmail-dot-com

