Migrating from JSF 1.1 to JSF 1.2

2020-03-30 05:11发布

问题:

Can anybody tell me what things I need to keep in mind before migrating an application from JSF 1.1 to JSF 1.2?

回答1:

Not much, really. JSF 1.2 is 100% backwards compatible with JSF 1.1. Only thing which you need to take into account that JSF 1.2 fixes many, really many bugs. So if you ever incorrectly assumed some specific JSF 1.1 application behavior as "normal" behavior, but which is under the covers actually caused by a bug, then it would seemingly break.

In any case, just run unit tests before and after the upgrade and fix the issues individually.

It's only migrating from JSF 1.x to 2.x which requires more work, for sure if you also need to change the view technology from JSP to Facelets. For that, refer this answer: Migrating from JSF 1.2 to JSF 2.0.