Tuesday, July 10, 2007

How to: JSF in Eclipse Europa (Part I)

In this screencast tutorial you'll learn how to setup and use Eclipse JavaServer Faces tools for rapid Web application development.

We will complete the following steps:

  1. Register JSF libraries
  2. Create Dynamic Web Project
  3. Add JSF Facet to the Web project
  4. Create JSP Page templates
  5. Define page navigations rules
  6. Create managed beans
  7. Edit JSF pages in the Web Page Editor
  8. Deploy and execute JSF applications

Let's get started.


Creating a JavaServer Faces Project (steps 1-3) (01:55):

Building a JSF application (steps 4-8) (05:48):

In the next screencast (Part II) we will assemble a JEE application by combining a JSF module and an EJB module from previous tutorials. Feel free to subscribe by RSS or Email.

For basic installation instructions of the Eclipse IDE for Java EE Developers see tutorials from eclipse.org site.

For this tutorial we have used materials from:

  1. JSF tools subproject
  2. Eclipse IDE for Java EE Developers

34 comments:

a o said...

Really great tutorial, thanks.

But i cant solve a problem about policy and security. I did exactly everyhthing you do, but some exception is thrown.

Anonymous said...

Thanks a ton...great tutorial to start with.

Prashanth said...

Very helpful tutorial.
Thanks!

Anonymous said...

Eres el puto amo!!
Eso es un tutorial y lo demás tonterias, si estuvieses en la empresa donde estoy haciendo el proyecto que no tienen ni idea de na te moririas de asco como lo he hecho yo hasta que me has mostrado la luz
Mil gracias

Anonymous said...

Thanks for this really really great tutorial. I've came by a lot of other jsf-starter tutorials, but I couldn't get none of them to work. This one worked straight away! Easy and understandable! Nice job!

PaydayLoans said...

MUdrhY You have a talant! Write more!

Anonymous said...

You are great!!!Thanks a lot

Ajay said...

Heeey it very nice live demo... i hope we can expect more better than this in the future... thax A LOT

Anonymous said...

I love this tutorial! This was the kickstart I needed to get my team to start using Eclipse for JSF (we use Eclipse for all of our other work). Now, we'd like to create maven projects with the stub files and folders (WEB-INF, jsp's, faces-config.xml, etc) and them make them into Eclipse projects.

Do I need to roll my own archeTypeType to create the maven project?

I found some stuff to add to the pom to add the JSF 1.2 and Web 2.5 facets. The maven eclipse plugin -Dwtpversion=2.0 option is only avaialable from the apache snapshot repository right now.

I suppose we could retrofit the project from the tutorial into a maven project.

We really want to use Maven for our projects, so any insight is appreciated.

Anonymous said...

Hi,
it is wonderful 'movie'.
When i follow it, i find an error in the end regarding web.xml validation against schema.
....
Referenced file contains errors (jar:file:C:/eclipse/plugins/org.eclipse.jst.standard.schemas_1.0.0.v200706221355.jar!/dtdsAndSchemas/javaee_5.xsd). For more information, right click on the message and select "Show Details..."
very frustrated. Please help me.

Venky said...

Great stuff!! Really a useful tutorial to get up an running with JSF in no time.

HerQ said...

First JSF tutorial I read that actually makes me understand the concept behind! Thanks!

Payday loan said...

Useful tutorial - keep going !

Anonymous said...

Thanks, I finally understood in a 3min of video what i couldn't learn in 3 days of reading online tutorials.

kike said...

Hi,

I do not get JSF tags on the web-editor pallete. I am using Glassfish distribution. (in the lib folder of that distribution, i can not find jsf-api.jar file, I suppose that is integrated with javaee.jar file... any ideas?

Anonymous said...

Thankyou so much for this. very informative and very helpful!

Anonymous said...

Great work!
I successfully build a JSF project following step by step your tutorial.
That was exactly what I needed to begin work with JSF
Many Thanks...

Anonymous said...

cool!!!!!!!!

Diane said...

I get a ClassNotFound error on CustomerBean.
What did I leave out?
The class is deployed. I see it in WEB-INF/classes

Anonymous said...

Thank you! It is a great!

Anonymous said...

Very helpful tutorial. Thank you!

Anonymous said...

Hi
i am using tomcat server to deploy this. It is giving 404 error. what might be the reason. i followed the steps as u did

Cyberglad said...

First reasonable tutorial on JSF!

Anonymous said...
This comment has been removed by a blog administrator.
xxxx said...

Very very good tutorial , very clear .. and it really work!!!!.
That is the tutorial that people need to start to move from .NET TO JAVA.....

Thank a lot.

Muy bueno ojalá que todos fuesen así, creo que muchas personas entre ellas yo se moveriaN de .net a java si aparecieran más tutorilales como ese.

Gracias muchas Gracias.

Anonymous said...

Thx for the great Screencast.

Anonymous said...

Excellent :)
Merci beaucoup.

en3rgizer said...

nice screencast, bravo!

Anonymous said...

Excelente trabajo. Felicitaciones y mil gracias!!!
kmpfgrpn

Marius Cristea said...

You really got a lot of 'great', but I believe that great is not enough for the demo that you put down. Congrats :)

khalid said...

This is the best jsf tuto to start with,very nice,i did it with tomcat 6 and it works fine
Good job
Khalid

nix said...

Thanks a lot... THE best tutorial for the beginners.. :)

madhan said...

the tutorial is very informative and its good for beginners :D

Anonymous said...

very good tutorial. please post some more related to oracle!!!!!!!!!!!!