MyEclipse: MyEclipse, ICEfaces, and JSTL dason - Feb 02, 2011 - 07:50 PM Post subject: MyEclipse, ICEfaces, and JSTL
I have the need to import external content into an ICEfaces page contained in a MyEclipse project. I had thought to use JSTL, but will settle for alternatives.
If I start with a Web project using Java EE 5, I can add JSF support and JSF Pages without a problem.
I can then use the JSTL tag <c:import …/> to grab what I need.
However, when I go to the MyEclipse menu, and convert the project to an ICEfaces project by adding the 1.8.1 ICEfaces libraries, ICEfaces pages work, but the previously created JSF pages now throw an exception.
ICEfaces pages that use <c:import…/> also throw an exception.
How can I get ICEfaces and the JSTL <c:import…/> statement to work together?
Here’s a little more detail:
MyEclipse Version: 8.6.1
ICEFaces Version: 1.8.1
Java EE version of the web project: 5
Sample JSF Page that worked prior to adding ICEfaces support:
Here is the exception that the ICEFaces page throws with <c:import... />:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: java.lang.Exception: javax.faces.FacesException: java.lang.UnsupportedOperationException
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:179)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
root cause
java.lang.Exception: javax.faces.FacesException: java.lang.UnsupportedOperationException
com.icesoft.faces.context.View.servePage(View.java:142)
com.icesoft.faces.webapp.http.core.SingleViewServer.service(SingleViewServer.java:52)
com.icesoft.faces.webapp.http.common.ServerProxy.service(ServerProxy.java:11)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet$4.service(MainSessionBoundServlet.java:114)
com.icesoft.faces.webapp.http.common.standard.PathDispatcherServer.service(PathDispatcherServer.java:24)
com.icesoft.faces.webapp.http.servlet.MainSessionBoundServlet.service(MainSessionBoundServlet.java:160)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher$1.service(SessionDispatcher.java:42)
com.icesoft.faces.webapp.http.servlet.ThreadBlockingAdaptingServlet.service(ThreadBlockingAdaptingServlet.java:19)
com.icesoft.faces.webapp.http.servlet.EnvironmentAdaptingServlet.service(EnvironmentAdaptingServlet.java:63)
com.icesoft.faces.webapp.http.servlet.SessionDispatcher.service(SessionDispatcher.java:62)
com.icesoft.faces.webapp.http.servlet.PathDispatcher.service(PathDispatcher.java:23)
com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:153)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Thank you very much for your help,
Davesupport-swapna - Feb 03, 2011 - 05:45 AM Post subject: RE: MyEclipse, ICEfaces, and JSTL
dason,
JSTL in ICEfaces is only supported with Facelets. The <c:import> is not supported even by the Facelets. You can use <ui:include/> instead.