users
[Top] [All Lists]

JSF navigation question

To: users@xxxxxxxxxx
Subject: JSF navigation question
From: john.chesher@xxxxxxxxxxxxx
Date: Thu, 4 Jan 2007 15:01:48 -0500
Delivered-to: mailing list users@cinjug.org
Mailing-list: contact users-help@cinjug.org; run by ezmlm



I am pretty new to JSF and trying to convert an application I previously
developed with Struts.
I'm trying to figure out how to make JSF navigate (using the faces-config
file) from one action method to another, without a JSP in between.  Like
the following:

JSP-A --> action-method-1 --> action-method-2 --> JSP-B, with faces-config
defining the navigation between the two methods.  Basically, I need
action-method-2 to retrieve the dynamic data to be displayed on JSP-B.
However, I don't want to imbed that logic into action-method-1, as I might
also want to come to JSP-B from somewhere other than JSP-A and I'll need
the dynamic data similarly retrieved and loaded into beans, ready for the
JSP. (Also, it just doesn't seem kosher to do work not directly related to
JSP-A in action-method-1...)

This seems like it would be a pretty common design pattern, but I can't
find anything in my JSF book or on the Web that discusses it.
Any ideas?

Thanks!
--
"NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected."


<Prev in Thread] Current Thread [Next in Thread>
  • JSF navigation question, john . chesher <=