From: Stéphane Poirier [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 10:37 AM To: MyFaces Discussion Subject: Navigation between applications
Hi, I'm wondering if it's possible, using navigation-cases, to add communication between different JSF applications (or even from a JSF application to a non-JSF app)? I know an getExternalContext().redirect can be used but if there is a more standard and clean way to do this, I'd be glad to know. Im assuming that youre mostly interested in talking to apps outside of the current application context, correct? Things are easier, obviously, if everything is inside of the same web application (which is entirely possible with non-JSF applications). In this scenario, you can either do an ExternalContext.dispatch() or simply use the navigation rules to forward to a JSP that talks to your non-JSF application. If you need to communicate between different web application contexts, redirect is your friend. You can, however, make things easier for developers by decorating the ViewHandler. That way you can translate a specialized viewId (lets say otherapp:index.jsp) into a redirect. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Kito D. Mann - Author, JavaServer Faces in Action <http://www.virtua.com/> http://www.virtua.com - JSF/Java EE consulting, training, and mentoring <http://www.jsfcentral.com/> http://www.JSFCentral.com - JavaServer Faces FAQ, news, and info * Sign up for the JSF Central newsletter! <http://oi.vresp.com/?fid=ac048d0e17> http://oi.vresp.com/?fid=ac048d0e17 *