如何在myeclipse中部署jsf的primefaces框架,文档中说直接拷到lib目录下,但是没成功。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在myeclipse中部署jsf的primefaces框架,文档中说直接拷到lib目录下,但是没成功。相关的知识,希望对你有一定的参考价值。
参考技术A jar包拷贝到lib目录下是第一步。还需要将包文件和工程关联起来,接着就是在faces-config.xml或者web.xml文件中配置primefaces。追问谢谢!能详细点描述吗?查了很多文档了,都是这样不清不楚,有的有配置,结果也不行。
参考技术B 1. put the jar file to "WEB-INF/lib/"2. and include it into your project's class path
3. package it into your .war for deployment追问
第二步如何添加,配置web.xml还是faces-config.xml,如何配置。谢谢你的回答!
追答step 2 is to add this jar as a library to your project. so that you can use primefaces tags in your jsf pages. you don't need to touch web.xml or faces-config.xml.
you might also want to add a primefaces theme jar to your WEB-INF/lib, to customise your web pages look and feel. for instance, if you want to use theme "afterwork.jar", you need to add this section to your web.xml:
primefaces.THEME
afterwork
primefaces has some 25 themes for you to download. just checkout their website and download the one you like. with this theme in place, you don't need to mess with css etc.
i personally like primefaces as well. tested primefaces3.3.1 and it's cool (-;
good luck!
谢谢!
本回答被提问者和网友采纳以上是关于如何在myeclipse中部署jsf的primefaces框架,文档中说直接拷到lib目录下,但是没成功。的主要内容,如果未能解决你的问题,请参考以下文章
如何在myeclipse中安装tomcat和部署项目到tomcat中