我试图使用primefaces的selectonemenu元素,但是当我单击下拉箭头时,什么都不会发生。
我正在使用Primefaces 5.0.1。
这是我所包含的脚本的顺序:
头部:
<h:outputScript name="js/vendor/modernizr-2.6.2-respond-1.1.0.min.js"/>
):之前的 (at layout.xhtml )
<h:outputScript name="js/vendor/jquery-1.11.0.min.js"/>
<h:outputScript name="jquery/jquery-plugins.js" library="primefaces"/>
<h:outputScript name="js/vendor/bootstrap.min.js"/>
<h:outputScript name="js/main.js"/>我到目前为止尝试过的
browser定义包含到document.ready函数中,但是我得到了这个错误TypeError: n.easing[this.easing] is not a function,下拉菜单出现在视图端口的左边边缘。<h:outputScript name="js/vendor/jquery-1.11.0.min.js"/>,以便只使用PrimefacesjQuery` `,这导致了一个完美工作的下拉菜单,但也使标题的肚脐处的下拉菜单无法工作。js/vendor/jquery-migrate-1.2.1.min.js,但得到了与以前相同的结果,控制台上出现了以下错误:
TypeError: n.easingthis.easing不是一个函数
TypeError: this.preShowValue未定义我就是这样使用< p:selectOneMenu>的:
<div class="col-md-4">
<p:inplace id="house-type" editor="true">
<p:selectOneMenu value="#{houseProfileView.houseType}" >
<f:selectItem itemLabel="Appartment" itemValue="Appartment" />
<f:selectItem itemLabel="House" itemValue="House" />
</p:selectOneMenu>
</p:inplace>
</div>发布于 2014-09-07 12:02:54
尝试对所有的target="head"使用属性h:outputScript。将ui:insert with h:outputScript添加到头页,然后将其作为ui:define: target problem when using templates填充到模板中
https://stackoverflow.com/questions/25704115
复制相似问题