java - CSS file not found if dynamically loaded with JSF -
i have problem dynamically loaded css files in jsf application running on tomcat 7.
if load css file on static way like
<link href="mystyle.css" rel="stylesheet" type="text/css">
all ok , web page looks fine. if trying load css file dynamically like
<link href="#{pagemanagerbean.getcssfile()}" rel="stylesheet" type="text/css">
where pagemanagerbean.getcssfile() returns "mystyle.css", css file not loaded. browser gets tomcat "404 - not found". if doing browser refresh css file found , web site looks fine.
Comments
Post a Comment