I am new to JSF. I am trying to put my inline styles to a CSS file but it is not working. Please find the code below.
My XHTML file is in following location:
\WebContent\template\
CSS is in following location:
\WebContent\resources\css\
XHTML code:
<ui:composition template="/template/BasicTemplate.xhtml">
<h:outputStylesheet library="css" name="style.css" />
<ui:define name="content">
<h:form>
dfdskdksdk <h:outputText value="#{msg['message.test1']}" />
<table width="80%">
<tr>
<h:outputStylesheet library="css" name="css/style.css" />
<td width="15%" background="red" >
<b>Location Coverage*</b>
</td>
I have tried using the following combinations
<h:outputStylesheet library="css" name="css/style.css" />
<h:outputStylesheet library="css" name="style.css" />
<h:outputStylesheet library="css" name="/resources/css/style.css" />
<h:outputStylesheet library="css" name="resources/css/style.css" />
Tried using this line inside and outside <ui:composition>
tag.
Thanks