File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Migrating from JSF 1.2 to JSF 2.0, rapidly. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Migrating from JSF 1.2 to JSF 2.0, rapidly." Watch "Migrating from JSF 1.2 to JSF 2.0, rapidly." New topic

Migrating from JSF 1.2 to JSF 2.0, rapidly.

Robert James Liguori
Ranch Hand

Joined: Nov 27, 2007
Posts: 550

I'm using NetBeans with JSF 1.2...

I goofed, I now need JSF 2.0 features, but my site is pretty well built.

Anyone know of the steps needing to be done for a clean upgrade to 2.0?

That is, what do i need to do to the following: web.xml changes, faces-config.xml changes, jar file inclusions, jar file removals, extra hidden gotchas, etc.


My Blog (I frequently post on Java, JSF and NetBeans)
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

That's something that's easier to do if you're using Maven as a build tool. Yes, there's an obvious need to swap out for newer JSF jars. Faces-config and web.xml shouldn't require any changes.

The exact set of jar differences depends on the brand and version of your server. The latest JBoss and GlassFish servers have the JSF2 implementation jars built into the server. Tomcat doesn't have JSF implementation jars at all, so you'd need to include them in the WAR.

An IDE is no substitute for an Intelligent Developer.
neni na

Joined: Mar 03, 2012
Posts: 3
For people who are looking at this thread. Go through this link
I agree. Here's the link:
subject: Migrating from JSF 1.2 to JSF 2.0, rapidly.
It's not a secret anymore!