Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jsf-2/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Twitter bootstrap Primefaces 5.0 SelectOne菜单不工作_Twitter Bootstrap_Jsf 2_Primefaces_Selectonemenu - Fatal编程技术网

Twitter bootstrap Primefaces 5.0 SelectOne菜单不工作

Twitter bootstrap Primefaces 5.0 SelectOne菜单不工作,twitter-bootstrap,jsf-2,primefaces,selectonemenu,Twitter Bootstrap,Jsf 2,Primefaces,Selectonemenu,我正在java web应用程序中使用Primefaces 5.0。单击时不显示下拉项目列表。但是,当我添加panelStyle=display:block时,它将显示项目列表,但不会折叠。它仍在扩大。我怎么修理它 <h:form id="adddisjointcat"> <h:panelGrid cellpadding="5" columns="2" > <h:outputLabel for="adddisjointcat"

我正在java web应用程序中使用Primefaces 5.0。单击时不显示下拉项目列表。但是,当我添加panelStyle=display:block时,它将显示项目列表,但不会折叠。它仍在扩大。我怎么修理它

<h:form id="adddisjointcat">
        <h:panelGrid cellpadding="5" columns="2" > 
            <h:outputLabel for="adddisjointcat" value="Select Category:" /> 
             <p:selectOneMenu id="adddisjointcat" value="#{addDisjointCategory.categoryName}" effect="fold" panelStyle="display:block; width:300px; margin-left:248px; margin-top:-254px;">
                  <f:selectItem itemLabel="Select One" itemValue="" />
                  <f:selectItems value="#{addDisjointCategory.classes}" />
             </p:selectOneMenu>
       </h:panelGrid>
       <p:growl id="growl" life="2000"/>
      <p:commandButton value="ADD" id="adddisjointCategory" actionListener="#{addDisjointCategory.buttonAction}" update="growl" icon="ui-icon-seek-next" ajax="false" />
</h:form>
我正在应用程序中使用引导模板。不知道这是否与这个问题有关

这也适用于h:selectOneMenu,只有p:selectOneMenu才会出现问题


如果您认为p和h组件几乎相同,请调查生成的xhtml,以了解可能的重复。差异很大