• 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: Refreshing complete page from a header component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Refreshing complete page from a header component


  • Subject: Re: Refreshing complete page from a header component
  • From: Chuck Hill <email@hidden>
  • Date: Fri, 29 Jun 2007 09:55:08 -0700


On Jun 29, 2007, at 4:31 AM, Johan Henselmans wrote:

I must be missing something: I have a header component, which contains the menubar, and sets the default language, by calling session.setlanguages() via a WOHyperlink. After that I want to return the current page. But a "return this" from within the Header WOComponent will only return the header. Any idea how to get the current page returned from within the header component?

return this; is a dangerous thing to use. It is just a bad habit to get into. Unless I am doing something very out of the ordinary, I will not use this,
return context().page(); is the best general thing to return
return null has the same effect as return context().page() but is not quite as efficient.


Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects






_______________________________________________
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: 
 >Refreshing complete page from a header component (From: Johan Henselmans <email@hidden>)

  • Prev by Date: Re: Selenium tests
  • Next by Date: Re: Refreshing complete page from a header component
  • Previous by thread: Re: Refreshing complete page from a header component
  • Next by thread: Problem with a form SOLVED(sort of)
  • Index(es):
    • Date
    • Thread