[jboss-user] [JBoss Seam] - Re: including CSS and other html elements - context problem
matt.drees
do-not-reply at jboss.com
Sat Oct 6 16:47:22 EDT 2007
I do this:
|
| <c:set value="#{facesContext.externalContext.requestContextPath}" var="rootPath"/>
| <link href="#{rootPath}/stylesheet/theme.css" rel="stylesheet" type="text/css" />
| <link href="#{rootPath}/stylesheet/layout.css" rel="stylesheet" type="text/css" />
|
It may make more sense to put a
| <factory name="rootPath" value="{facesContext.externalContext.requestContextPath} scope="stateless"/>
|
in components.xml (instead of the c:set) if you'll be using that in a lot of places.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092294#4092294
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092294
More information about the jboss-user
mailing list