I'm trying to use Primefaces 5.1 with Twitter Bootstrap 3.3.4
I've added to the files following code in facelets template <h:head>
section
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"/>
</head>
Web.xml
<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>bootstrap</param-value>
</context-param>
And I'm trying to use selectCheckboxMenu component
<h:panelGrid columns="2" cellpadding="5" cellspacing="5" >
<p:outputLabel value="Companies sector"/>
<p:selectCheckboxMenu value="#{operations.selectedSectors}" label="Choose"
filter="true" filterMatchMode="startsWith" panelStyle="width:250px" style="margin-right: 5px">
<f:selectItems value="#{operations.sectors}" />
</p:selectCheckboxMenu>
...
The render
When I remove the bootstrap
Cellpadding and cellspacing does not work as well as seen.
I tried <f:facet name"first">
and <f:facet name"last">
and <f:facet name"middle">
How do I solve this problem?