• 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: Accessing the object of the contained page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing the object of the contained page


  • Subject: Re: Accessing the object of the contained page
  • From: Arturo Perez <email@hidden>
  • Date: Tue, 19 Apr 2005 12:36:51 -0400

Yes!  That's what I do :-)

Chuck Hill wrote:

Or use context().page() to get the top level page component.

Chuck

On Apr 19, 2005, at 9:21 AM, Arturo Perez wrote:

Florijan Stamenkovic wrote:

Hi list.
I have a PageWrapper component in which I keep the navbar and some user info (if user is there). This component has a WOComponentContent in one big cell. Other components are all partial HTML documents and are wrapped in the PageWrapper.
If the user is not logged in, the Wrapper holds a hyperlink to the login page (at least that is my intention). I would like to return the user back to the page he was on when he clicked the login hyperlink. ...

> But I can't get it by using "this"

because the component action that returns the login page is in the PageWrapper component.


IIRC (but I'd have to check) the "this" is the PageWrapper but the parent() is the actual page.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Accessing the object of the contained page (From: Florijan Stamenkovic <email@hidden>)
 >Re: Accessing the object of the contained page (From: Arturo Perez <email@hidden>)
 >Re: Accessing the object of the contained page (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Accessing the object of the contained page
  • Next by Date: Fwd: [SOLVED] Re: Accessing the object of the contained page
  • Previous by thread: Re: Accessing the object of the contained page
  • Next by thread: Fwd: [SOLVED] Re: Accessing the object of the contained page
  • Index(es):
    • Date
    • Thread