aspose file tools*
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
Author

Migrating from JSF 1.2 to JSF 2.0, rapidly.

Robert James Liguori
Author
Ranch Hand

Joined: Nov 27, 2007
Posts: 530
    
    5

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.

Thanks!


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

Joined: Jun 25, 2001
Posts: 16014
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
neni na
Greenhorn

Joined: Mar 03, 2012
Posts: 3
For people who are looking at this thread. Go through this link http://stackoverflow.com/questions/4441713/migrating-from-jsf-1-2-to-jsf-2-0
 
wood burning stoves
 
subject: Migrating from JSF 1.2 to JSF 2.0, rapidly.