zoukankan      html  css  js  c++  java
  • how to use jquery with primefaces

    PrimeFaces already ships with jQuery bundled, yet you've downloaded and installed another one which would only conflict with PrimeFaces bundled jQuery. I'm sure that if you have paid a bit more attention and love to the webbrowser's builtin JavaScript console, you would have seen JS errors.

    You need to remove the following line:

    <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>

    On pages which do not necessarily use PrimeFaces components, jQuery won't be automatically included, you'd then need to explicitly load its bundled jQuery by a proper <h:outputScript>.

    <h:outputScript library="primefaces" name="jquery/jquery.js" />

    Note that using <h:outputScript> does not end up in a duplicate script include on pages which actually use PrimeFaces components.

  • 相关阅读:
    爱信诺面试总结
    项目进展日志6
    项目进展日志5
    项目进展日志4
    项目进展日志3
    项目进展日志2
    项目阶段总结
    项目进展日志
    事物的ACID特性
    5.27作业
  • 原文地址:https://www.cnblogs.com/sos-blue/p/3429467.html
Copyright © 2011-2022 走看看