I'm quite new to JSF so not sure if I'm just being dim, but when I use <h:outputStylesheet library="default" name="bootstrap/css/bootstrap.css"/>
the style sheet is included fine, however the relative links in the following section of the bootstrap css:
@font-face {
font-family: 'Glyphicons Halflings';
src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
don't work. The only way I've found to get them to work is to remove the library and manually specificy the bootstrap css as <h:outputStylesheet name="default/1_2/bootstrap/css/bootstrap.css"/>
or to edit the css to include ?ln=default
on the URLs.
I don't want to edit the bootstrap.css as it seems a crazy thing to have to do, and I dont' really want to have to manually update 1_2
to 1_3
in my template when I make a change to the CSS. Can anyone offer any alternatives. For instance is there a way to get the faces servlet to assume ln=default ?