RE: Using pageWithName method problem
RE: Using pageWithName method problem
- Subject: RE: Using pageWithName method problem
- From: "Kranthi Sagar Borra" <email@hidden>
- Date: Thu, 22 Jul 2004 03:38:47 +0530
- Thread-topic: Using pageWithName method problem
Hi,
I have a similar question on this,
1. Is there any difference between setting the current page component in the next page, so that the user can access the previous page and setting the current page component in the session variable , so once the user goes to the second page and when he wants to come back to the previous page, he can access the session variable. But soon after he access this variable, he will set the session object to null so that it is not carried forward. Can someone please clarify this. Thank you.
Regards,
Kranthi Sagar.
> ----------
> From: email@hidden on behalf of Tanmoy Roy
> Sent: Wednesday, July 21, 2004 9:35 PM
> To: Michael Parlee; Chuck Hill; email@hidden; email@hidden; email@hidden
> Cc: Apple Webobjects List List
> Subject: RE: Using pageWithName method problem
>
> Hi all,
>
> Thanks a lot for the wonderful suggestions.
> They worked wonderfully well. They really saved my day.
>
> Thanks again.
>
> Thanks and Regards
>
> Tanmoy Roy
> Apple ACD Team
> Infosys Technologies Limited - Bhubaneswar
> * Ph: +91-674-2320001-50
> * Extn: 2190
>
> > ----------
> > From: Chuck Hill
> > Sent: Wednesday, July 21, 2004 11:29 AM
> > To: Michael Parlee; Tanmoy Roy
> > Cc: Apple Webobjects List List
> > Subject: Re: Using pageWithName method problem
> >
> > Or, simpler, in the common page constructor:
> >
> > public CommonPage(WOContext context) {
> > super(context);
> > previousPage = context.page();
> > }
> >
> >
> > Chuck
> >
> >
> >
> > At 10:32 PM 20/07/2004 -0700, Michael Parlee wrote:
> > >In the common page:
> > >
> > >private WOComponent _previousPage;
> > >
> > >public void setPreviousPage(WOComponent page) {
> > > _previousPage = page;
> > >}
> > >
> > >public WOComponent previousPage() {
> > > return _previousPage;
> > >}
> > >
> > >Bind your common page's back button action=previousPage.
> > >
> > >In the referencing page:
> > >
> > >public CommonPage commonPage() {
> > > CommonPage commonPage = (CommonPage)pageWithName("CommonPage");
> > > commonPage.setPreviousPage(this);
> > > return commonPage;
> > >}
> > >
> > >Mike
> > >
> > >On Jul 20, 2004, at 9:42 PM, Tanmoy Roy wrote:
> > >
> > >> Hi all,
> > >> I have curious problem. I have common page which can be called by some
> > >> other pages. But the common page has a return button which is supposed
> > >> to take the user back to the page from where he has come. But if I
> > >> don't know the name of the page how can I go to the page using
> > >> pageWithName method. Is there a workaround here?
> > >>
> > >> Please this is urgent.
> > >>
> > >>
> > >> Thanks and Regards
> > >>
> > >> Tanmoy Roy
> > >> Apple ACD Team
> > >> Infosys Technologies Limited - Bhubaneswar
> > >> * Ph: +91-674-2320001-50
> > >> * Extn: 2190
> > >> _______________________________________________
> > >> webobjects-dev mailing list | email@hidden
> > >> Help/Unsubscribe/Archives:
> > >> http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> > >> Do not post admin requests to the list. They will be ignored.
> > >_______________________________________________
> > >webobjects-dev mailing list | email@hidden
> > >Help/Unsubscribe/Archives:
> > http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> > >Do not post admin requests to the list. They will be ignored.
> > >
> > >
> >
> > --
> >
> > Chuck Hill email@hidden
> > Global Village Consulting Inc. http://www.global-village.net
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.