- This topic has 5 replies, 2 voices, and was last updated 13 years, 3 months ago by support-swapna.
-
AuthorPosts
-
LucifeiusMemberMy Problem is easy to explain:
I create two Web Projects with MyEclipse 9.1. One with Java EE 6.0 specification and one with Java EE 5.0 specification. I add to both projects JSF and ICEfaces Capabilities, the Java EE 5.0 project with ICEfaces 1.8.x and the Java EE 6.0 project with ICEfaces 2.0.2.
Then I create in both projects a new JSP-file with the ICE template (both files are equal) – MyJsp.jspx. Now I deploy both projects to the My Eclipse Tomcat Server. I try to reach the sites with http://localhost:8080/Project1%5B2%5D/MyJsp.iface.
The project1 (with Java EE 5.0) works fine and shows the site correct. With the project2 (with Java EE 6.0) I get “The requested resource (/Project2/MyJsp.iface) is not available.”
Why?Best regards,
Lucifeius
support-swapnaModeratorLucifeius ,
Sorry for the delayed response.
ICEFaces 2.0 does not support JSPs. You can check in the General section of Known Issues at this link :
http://wiki.icefaces.org/display/ICE/ICEfaces+2.0.2+Release+NotesI have filed a PR for the dev team to remove the ‘ICEFACES 2.0 (JSPX)’ template to choose from when generating a new JSP.
Thanks for pointing it out. Let us know if you have any other issues.
LucifeiusMemberHello,
Thank you for answering. There is one more question: I can use ICEfaces 2.02 for xhtml-files, but not for jsp-files. Where is the difference between xhtml and jsp?
Best regards,
Lucifeius
support-swapnaModeratorLucifeius ,
JSP is singularly focused on generating dynamic output, whereas JSF requires JSP to coordinate building a component model. This is not the original contention of JSP.
Facelets(described as XHTML files) is a much more comprehensive solution: a templating language that is geared toward the JSF component model.Facelets has several compelling features:
Templating (like Tiles)
Composition components
Custom logic tags
Expression functions
Designer-friendly page development
Creating component librariesSo its better to choose XHTML over JSP for JSF development and also for the fact that JSPs are discouraged from JSF 2.0
Hope this helps.
LucifeiusMemberThank you really much. This will help a lot.
support-swapnaModeratorLucifeius ,
Glad that we could help you.
Do let us know if you have any other issues. -
AuthorPosts