[jboss-user] [JBoss Seam] - including CSS and other html elements - context problem

Yacho do-not-reply at jboss.com
Sat Oct 6 16:27:18 EDT 2007


Suppose i have my app at
www.foo.com/foo/

wich gives us /foo/ abs. context.

now CSS file is in
/foo/css/mycss.css (its /css/mycss.css in WAR file)

now i have my layout template at :
/layout/a.xhtml (WAR path again)
and my views in :
/something1/boo.xhtml 
/something1/something2/boo.xhtml

now when i switch views app context changes so i cant bind relative path to css (ie for 1st view its : ../css/mycss.css and ../../css/mycss.css for second)
i could reference the absolute server path that is : /foo/css/mycss.css
its better but still is dependent on app context. so is there a way to reference app context in my facelet view ?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092289#4092289

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092289



More information about the jboss-user mailing list