Tuesday, August 11, 2015

Whether to use jsp or jspx while creating a page?

While create a page in ADF, there are 2 options whether to use jsf or jspx:










On selection of the Facelets option untitled.jsf file will created and on selection of JSP XML untitled.jspx file will be created. Here lies the confusion...which one to choose??

While searching for this answer came across Frank Nimphius's answer:

"Usually Facelets is considered to be of better performance because it is tighter integrated with the JSf lifcycle and doesn't need to be compiled before running it. Anyway, to lift the FUD:

1. JSPX documents and Facelets are both supported with JDeveloper 11g R2 and we do       
    support them equally in functionality (very little differences exist on both sides)

2. JSPX documents are the only choice in JDeveloper 11g R1

3. The future speaks Facelets (according to the JSF specification) and if you starting a new       
    development project with JDeveloper 11g R2 then we recommend you use Facelets because 
    of this

4. If you are on JDeveloper 11gR1, don't panic, you are good to go and we make sure your 
    applications upgrade nicely to 11g R2 and 12c (later)

5. We plan on providing a JSPX to Facelets migration in JDeveloper. Until then, JSPX are a 
    first class citizen as Facelets is too

6. When you are on JDeveloper 11gR1, don't wait for 12c if you need to start a development 
    project."

No more confusion :)

No comments:

Post a Comment