Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

including JSF application inside <iframe>

843844Nov 13 2007 — edited Nov 13 2007
Hi,

I have an existing website (based on PHP and HTML), where I want to include a new part that is developed with JSF,
and currently runs on another webserver.

I included the JSF part with:
<iframe name="NewPart" src="http://www.myotherwebsite.com/jsp/welcome.faces" width="600" height="400"
scrolling="auto" frameborder="0">
some text.
</iframe>

This page appears fine with any simple JSF example. But as soon as I start navigating inside the JSF application to page2 (see below), I get the following exception:
javax.servlet.ServletException: viewId:/jsp/welcome.faces - View /jsp/welcome.faces could not be restored.
javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)
root cause
javax.faces.application.ViewExpiredException: viewId:/jsp/welcome.faces - View /jsp/welcome.faces could not be restored.
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:185)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
The navigation is defined as:
<navigation-rule>
<from-view-id>/jsp/welcome.jsp</from-view-id>
<navigation-case><from-outcome>page2</from-outcome><to-view-id>/jsp/page2.jsp</to-view-id>
</navigation-case>
</navigation-rule>

What am I doing wrong (I'm fairly new to JSF..)?
best regards, Paul.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 11 2007
Added on Nov 13 2007
2 comments
505 views