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.

2010/06/28

Apache Maven Configuration

1. Download: http://maven.apache.org/download.html

2. set M2_HOME=D:\lib\apache-maven-2.2.1-bin

3. Add the bin directory to your PATH, eg: %M2_HOME%\bin

4. Make sure JAVA_HOME is set

5. Run mvn --version to verify that it is correctly installed.


2010/06/21

Java Server Faces + Spring MVC Framework

Check out this SlideShare Presentation:

2010/06/19

javax.faces.FacesException: javax.servlet.ServletException: java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot@14ad592 not ex

Problem
javax.faces.FacesException: javax.servlet.ServletException: java.lang.IllegalStateException: Component javax.faces.component.UIViewRoot@14ad592 not expected type. Expected: javax.faces.component.UIForm. Perhaps you're missing a tag?

Solution:
insert f:view tag into JSP page

2010/06/16

Java Code Completion does not work in MyEclipse


Environment:
  1. Mac OS
  2. Myeclipse 7.1

Problem: Code Completion Does not Work

Solution:
Go to Preferences>Java>Editor>Content Assist>Advanced> Checked Other Java Proposals

2010/06/10

Spring bean mod02

Check out this SlideShare Presentation:

Spring mvc

Check out this SlideShare Presentation:

Spring db-access mod03

Check out this SlideShare Presentation:

Toms introtospring mvc

Check out this SlideShare Presentation: