是否可以在jsf项目中使用js库 [英] is it possible to use js library in a jsf project

查看:120
本文介绍了是否可以在jsf项目中使用js库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Java Web应用程序中使用javascript库,但我想知道,在jsf应用程序(例如Ice Faces或Prime Faces ??)中是否有可能.

I want to use a javascript library in a java web application, and I am wondering, is this possible in a jsf application (eg Ice Faces, or Prime Faces??).

在jsf项目中集成js库的使用时,是否要遵循任何规则?我应该牢记什么,我该怎么做?

Are there any rules to be followed while integrating use of a js library in a jsf project? What should I keep in mind and how do I do this?

推荐答案

只有一个JSF Framework,最新版本是2.1,并且未与js框架本地捆绑在一起.请记住,JSF和任何其他Web框架(例如Struts或Spring任务)都是通过提供成熟的MVC框架来帮助开发周期的,但是除此之外,它还是一个纯Java Web应用程序.

There is just one JSF Framework and latest version is 2.1, and is not bundled natively with js framework. Remember that JSF and any other web framework like Struts or Spring mission is to help in the development cycle by providing a mature MVC framework, but beyond that, it is a pure Java Web Application.

与任何Web应用程序一样,您可以添加需要使用的任何JavaScript框架(例如 extjs ).特别是在JSF中,您可以添加带有ajax功能的标记组件框架,例如 RichFaces PrimeFaces 两者都随jQuery一起提供,您应先检查出厂版本,然后再尝试添加自己的jQuery版本.

As any Web Application, you can add any JavaScript framework you need to work with (like extjs). Specifically in JSF, there are tag component frameworks you can add that comes with ajax functionality like RichFaces and PrimeFaces both of them come with jQuery and you should check the shipped version before try to add your own jQuery version.

这篇关于是否可以在jsf项目中使用js库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆