Total Pageviews

2010/08/23

How to install JSF in Eclipse 3.6

In this article, you will learn:
  • how to install JSF library in Eclipse 3.6
  • how to verify if my JSF application can run successfully or not

1. create a dynamic web project


2. Given an unique project name, assigned configuration and click Next button

3. Click Next Button

4. Click Next Button

5. Click Download Library to download JSF library (for the first time(

6. Choose JSF 2.0 library and click next button

7. Check the checkbox and click Finish Button

8. Downloading

9. Click Finish button. You had finished your project creation process.


10. Added the two jar files into your classpath.

11. Java Build Path --> Add Jar...

12. selected the two jar files

13. Create a new JSP file

14. Assigned a name which named test

15. Choose JSP Template

16. create a simple JSF file

17. Run on Server

18. Click Finish

19. Check the result

2010/07/12

ICEFaces Quick Start



Install IceFace Plug-in for Eclipse 3.6

Please go to here to download the zip file:http://www.icefaces.org/main/downloads/os-downloads.iface


Click Install new software

Click Add button

Click Archive button

Click OK button

Check ICEFaces Plugin and click Next button


Click Next


Check the first radio button and click next button


Installing

Restart Eclipse 3.6

Create a dynamic web project & a simple demo application

fill in project-related information

Click Next

Click Next

download icefaces-related jar files

Download...

Click Next

Click Finish


Scenario

User provide his/her name in index page, and click submit button
System will show welcome message in hello page.

and defined the navigation rule in faces-config.xml

I create one bean class and one controller class and defined in face-config.xml

User.java

UserController.java

Index.xhtml

user.xhtml


Demo
1. User input name and click Submit button

2. System will show welcome message. User click back button to previous page.

3. System will redirect to first page as use click back button.



2010/07/07

Fail to download ICEFaces library in Eclipse


Install IceFace Plug-in for Eclipse 3.6
Please go to here to download the zip file: http://www.icefaces.org/main/downloads/os-downloads.iface


Click Next

Click Next

Choose I accept option, and click Next

After installing software, then restart Eclipse

Create a dynamic web application project

Choose ICEFaces 2 Project as its configuration

Click Next

Click Next

Click download library button to get ICEFaces library

BUT THE POPUP WINDOW IS EMPTY

This problem resulted from my company's firewall.
As I changed to use iPhone to connect to Internet, the problem was solved.