how to use jquery with primefaces
2013-11-18 14:44
525 查看
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:
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
Note that using
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.
相关文章推荐
- How to Use C++ With PHP and JQuery to Make Neat Apps
- How to use bitBucket with EGit in Eclipse,如何在Eclipse中使用bitbucket远程仓库
- How to use UTF-8_with_BOM, XML and Java together
- OA Framework - How to Find the Correct Version of JDeveloper to Use with E-Business Suite 11i or Release 12.x (Doc ID 416708.1)
- How to Use Lucene.NET with Windows Azure SQL Database
- How to use django with mod_wsgi ¶
- how to use UrlConnection to post/get request with basic authorization?
- How to use iPhone with File I/O Functions: A Tutorial for Software Developers
- how to use Wordnet with Java?
- How To Use Linux epoll with Python
- jooq使用自定义策略生成代码(How to use a custom strategy with the jOOQ code-generator and Maven?)
- [Android] How to use github with android studio
- How to Use 'Exec Sp_executesql' to Read SQL String with Data Exchange(Interface)
- How to use jquery or ajax to update razor partial view in c#/asp.net for a MVC project
- How to use jquery plugin jquery.blockUI.js?
- How To Use Proxy Server To Access Internet at Shell Prompt With http_proxy Variable. [reprint]
- How to use a SQL Server database with your PHP web site
- How to use Clamav check virus with sendmail
- how to use Eclipse with Maven
- (转)How to use MySQL with 3D Studio Max