JSF h:outputScript ordering and PrimeFaces jQuery

前端 未结 1 1231
长发绾君心
长发绾君心 2021-02-15 17:44

I want to use (Primefaces with TwitterBootstrap). Currently the DropDown menu it\'s not working if e.g. a p:dataTable is present. I\'ve figured out, that it\'s work

相关标签:
1条回答
  • 2021-02-15 17:59

    If the problem is related to the include order of your resources, you should have a look at the following blog post of the PrimeFaces team: Customizable Resource Ordering.

    You can define a first facet inside your h:head element. Elements placed there will be loaded before the PrimeFaces resources.

    <h:head>
        <f:facet name="first">
            <h:outputScript library="js" name="bootstrap.js"/>
        </f:facet>
    </h:head>
    
    0 讨论(0)
提交回复
热议问题