• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Using pageWithName method problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using pageWithName method problem


  • Subject: Re: Using pageWithName method problem
  • From: "Clive Roberts" <email@hidden>
  • Date: Wed, 21 Jul 2004 06:24:59 +0100

Hi Tanmoy
add a key plus accessor to your common page, eg

protected WOComponent referringPage;

public void setReferringPage(WOComponent newReferringPage) {
   referrringPage = newReferringPage;
}

and a return to referringPage

public WOComponent  returnToReferringPage() {
    return referringPage;
}

Before calling your common page, from any referringPage, make a call to set
its referringPage

public CommonPage commonPageCall() {
CommonPage nextPage = (CommonPage)pageWithName("CommonPage");
nextPage.setReferringPage(this);
...
return nextPage;
}

then in your Common component, make a call to returnToReferringPage() from
from the "return" button.

regards
Clive Roberts


> 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.


  • Prev by Date: Re: Using pageWithName method problem
  • Next by Date: Re: Using pageWithName method problem
  • Previous by thread: Re: Using pageWithName method problem
  • Next by thread: RE: Using pageWithName method problem
  • Index(es):
    • Date
    • Thread