I'm starting to use Bootsfaces, but i've encountered a problem using <b:selectManyMenu>
tag.
Here is my xhtml page:
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"></link>
<link rel='stylesheet' type='text/css'
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.4.1/css/bootstrap-slider.css"></link>
<link rel='stylesheet' type='text/css'
href="https://cdn.datatables.net/1.10.13/css/dataTables.bootstrap.min.css
"></link>
<link rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-multiselect/0.9.13/css/bootstrap-multiselect.css"></link>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/9.4.1/bootstrap-slider.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.4.0/bootbox.min.js"></script>
<script
src="https://cdn.datatables.net/1.10.13/js/jquery.dataTables.min.js"></script>
<script
src="https://cdn.datatables.net/1.10.13/js/dataTables.bootstrap.min.js"></script>
<div>
<h:outputLabel value="Select key columns:"/>
<br></br>
<b:selectMultiMenu value="#{controller.keyColumns}">
<f:selectItems value="#{controller.keyLista()}" var="f"
itemLabel="column: -#{f}" itemValue="#{f}"></f:selectItems>
</b:selectMultiMenu>
</div>
in which var keyColumns
and keyColumns1
are List<String>
.
The problem is that no one element of the list is selected, but if i use <b:selectOneMenu>
all works fine.
The google console says 'Uncaught TypeError: $(...).multiselect is not a function'. Ps: i need all scripts for other project functionalities, and i can't change all using bootsfaces tags. is there any way to use the right jquery code only for this case?
thanks