How to make Eclipse IDE supports JSF 2.0
来源:互联网 发布:爱普生r230清零软件 编辑:程序博客网 时间:2024/06/05 08:48
In Eclipse Ganymede (v3.4) or Galileo (v3.5), it supports until JSF 1.2 only. For JSF 2.0, upgrade your Eclipse to version Helios (v3.6) onward, it has full support of Java EE 6 support, including JSF 2.0.
Here’s a quick guide to show you how to enable JSF 2.0 features like code assist and visual JSF component editor in Eclipse IDE.
Tools Used
- Eclipse 3.6
- JSF 2.0.x
1. Eclipse Project Facets
To support JSF 2.0, you need to configure Eclipse project to support Web Tools Platform (WTP).
Steps to enable the Web Tools Platform (WTP) :
- Right click on the project, choose “properties” –> “Project Facets“.
- Check “Dynamic Web Module“, select version 2.5.
- Check “Java“, choose version 1.6.
- Check “JavaServer Faces“, choose version 2.0.
- Click on the “further configuration…” link below to do the JSF configuration.
Create an user library and include the JSF 2.0 API and implementation libraries, jsf-api-xxx.jar and jsf-impl-xxx.jar.
P.S You can get the JSF jars official JSF website.
Updated on 8 Aug 2012
For JSF 2.1.11, only one jar file javax.faces-2.1.11 is required.
Done.
2. Demo
Now, Eclipse IDE is supporting the JSF 2.0 capabilities. Try it, in .xhtml
file, click on the “Ctrl + Space“, it will prompts all available JSF 2.0 tags (code assist) automatically.
Furthermore, it add JSF 2.0 visual components to the web page editor as well, see figure below :
- How to make Eclipse IDE supports JSF 2.0
- How to check SnapDragon 810 supports DASH
- How to setup a basic Struts project using Eclipse IDE
- How to setup a basic Struts project using Eclipse IDE
- How to setup a basic Struts project using Eclipse IDE
- How To Install Hibernate / JBoss Tools In Eclipse IDE
- IDE - How to change font size in Eclipse
- How to make makefile!
- How To Make KeyGens
- How to Make Dialogs
- how to make presentation
- How to Make Dialogs
- How to Make Dialogs
- NitroX JSF IDE - 一个JSF IDE的Eclipse插件
- eclipse c/c++IDE 编译 make: *** No rule to make target `all'. Stop. 解决办法
- JSF-IDE(eclipse插件)比较
- JSF-IDE(eclipse插件)比较
- JSF-IDE(eclipse插件)比较 .
- 证明2的方幂中交换任意两位之后绝不是2的整数次幂
- Unity 理解刚体(Rigidbody)和碰撞体(Collider)和触发器(Is Trigger)以及刚体休眠(Rigidbody Sleeping)
- expect脚本
- 强制转换数据溢出
- hdu-2502月之数(找规律)
- How to make Eclipse IDE supports JSF 2.0
- java常量池中string的问题
- Android studio安装Genymotion插件
- Android 进程常驻(1)----开篇
- matlab中的clc命令和clear命令
- Spring Data MongoDB实战(上)
- 数论总结1
- 泛型集合和泛型委托
- zoj3812 We Need Medicine 背包+位优化