1
I created a Maven project that is using JSF2 plus the framework Bootstrap, but there are some Bootstrap settings that are not working properly, as you can see in the figures below.
He’s being visualized like this:
And it was supposed to be like this:
How do I fix this problem?
This is the page header to show how it is configured to receive Bootstrap settings:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<h:outputStylesheet library="css" name="bootstrap-theme.css" />
<h:outputStylesheet library="css" name="bootstrap-theme.min.css" />
<h:outputStylesheet library="css" name="bootstrap.css" />
<h:outputStylesheet library="css" name="bootstrap.min.css" />
<h:outputScript library="js" name="jquery-2.1.4.min.js" />
<h:outputScript library="js" name="bootstrap.js" />
<h:outputScript library="js" name="bootstrap.min.js" />
</h:head>
This is the only excerpt from the page that is presenting problem;
<div class="row">
<div class="col-sm-4">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-ok"></span>
<h4>This is the Heading</h4>
<p>Nam velit est, tempor vel posuere et, auctor a lectus.
Aenean gravida, est accumsan dictum rhoncus, lectus mi suscipit
lacus, suscipit accumsan augue tellus vitae dolor. Morbi in
euismod dui</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-star"></span>
<h4>This is the Heading</h4>
<p>Nam velit est, tempor vel posuere et, auctor a lectus.
Aenean gravida, est accumsan dictum rhoncus, lectus mi suscipit
lacus, suscipit accumsan augue tellus vitae dolor. Morbi in
euismod dui</p>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel panel-default text-center">
<div class="panel-body">
<span class="glyphicon glyphicon-play-circle"></span>
<h4>This is the Heading</h4>
<p>Nam velit est, tempor vel posuere et, auctor a lectus.
Aenean gravida, est accumsan dictum rhoncus, lectus mi suscipit
lacus, suscipit accumsan augue tellus vitae dolor. Morbi in
euismod dui</p>
</div>
</div>
</div>
</div>
I tried that way, but I didn’t succeed;
@font-face {
font-family: 'Glyphicons Halflings';
src: url("#{resource['fonts:glyphiconshalflings-regular.eot]}");
src: url("#{resource['fonts:glyphicons-halflings-regular.eot?#iefix")
format('embedded-opentype'),
url("#{resource['fonts:glyphicons-halflings-regular.woff2") format('woff2'),
url("#{resource['fonts:glyphicons-halflings-regular.woff") format('woff'),
url("#{resource['fonts:glyphicons-halflings-regular.ttf") format('truetype'),
url("#{resource['fonts:glyphicons-halflings-regular.svg#glyphicons_halflingsregular")
format('svg');
}
This is the structure of my project;
Good evening, I wonder if any of the answers helped you, if not please comment on what you think is missing.
– Guilherme Nascimento