outputstylesheet

Wildfly 10 issue with css file

三世轮回 提交于 2020-01-11 09:16:32
问题 <h:outputStylesheet library="test/css" name="style.css" /> Above code is not working in wildfly 10 with jar file jsf-impl-2.2.12-jbossorg-2 . Issue getting is: WARNING [javax.enterprise.resource.webcontainer.jsf.application] (default task-6) JSF1064: Unable to find or serve resource, style.css, from library, test/css. Can anyone help on this ? 回答1: The value of a library attribute should not be a path but a reference to a single folder (grouping css ,js etc.) and a direct descendant of the

background-image: url(“”) in CSS h:outputStylesheet is not loading [duplicate]

て烟熏妆下的殇ゞ 提交于 2019-12-03 05:41:33
问题 This question already has answers here : How to reference JSF image resource as CSS background image url (2 answers) Closed 3 years ago . Sorry if question is not properly asked. Image is showing fine in struts project but not in JSF2 project. All the css and buttons are rendering fine except image that has url in css . Folder structure resources -> css -> bootstrap.min.css resources -> img -> glyphicons-halflings.png bootstrap.min.css background-image: url("../img/glyphicons-halflings.png");