You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Aaron Bartell <aa...@gmail.com> on 2005/03/16 05:59:25 UTC

Navigation dilema - two parent pages accessing the same child page

Hi all,

I am having trouble thinking through how I should approach navigation 
and would like some input if somebody can direct me.

Let's say I have a page called editdetail.jsp, and that page is accessed 
from both header.jsp and neworder.jsp.  When the user navigates to 
editdetail.jsp from header.jsp I want them to return to header.jsp upon 
"success".  If the user navigates to editdetail.jsp from neworder.jsp I 
want them to return to neworder.jsp upon "success".

Right now in my faces config I don't see how I could re-use a particular 
page and keep the navigation out of my java code.  I know I could set a 
variable in my java code that had a certain value noting which page to 
return to, but that doesn't seem very elegant.  I just wanted to know 
how others have solved this problem.


Thanks in advance,
Aaron Bartell
http://mowyourlawn.com

How use a same data object in two differents applications

Posted by Adrien FOURES <af...@sigems.fr>.
Hello !

I use tomcat 5.0.28, myfaces1.0.8, and i develop on eclispe 3.0.0.
I want know if it's possible to use a same data object in two applications?
Is an scope exist, upper than application (in tomcat, jsf or myfaces)?

My problem is: i have two application, one for user, and one for 
administrator, and i want to look in the adminstrator application, all 
user log in the user application.
All the code is doing and working well, but i need just to communicate a 
data object between the two application.

Thanks a lot for your repply,

Adrien