• 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: awake, awake, sleep, sleep: when does which component gets its settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: awake, awake, sleep, sleep: when does which component gets its settings?


  • Subject: Re: awake, awake, sleep, sleep: when does which component gets its settings?
  • From: Johan Henselmans <email@hidden>
  • Date: Mon, 9 Jul 2007 15:22:30 +0200


On 9-jul-2007, at 12:48, Ralf Schuchardt wrote:


Am 09.07.2007 um 09:28 schrieb Johan Henselmans:

I am trying to stay awake during this question, although I feel a bit sleepy:

I am struggling with the following problem: I have localized components that I want to switch to a different language on the fly. So a dutchman edits in English, discovers that her/his English is far worse that he assumes, and wants to fall back to dutch.

No problem, I'd think: some nice flags in the header component, do a setLanguages of the session, and return the page via context ().page(), and all is done.

I don't think that you can use context().page(), as I believe this object contains information from the used page template.
So you should probably create a new page in your language switch action.


Ralf


Ahh, that made the whole thing clear.

I solved the problem by:

WOComponent nextPage = (WOComponent) pageWithName(context ().page().name());
return nextPage;


That solved the problem. Thanks for all the suggestions!

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40netsense.nl


This email sent to email@hidden

Regards,

Johan Henselmans
http://www.netsense.nl
Tel: +31-20-6267538
Fax: +31-20-6273852


_______________________________________________ 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: 
 >awake, awake, sleep, sleep: when does which component gets its settings? (From: Johan Henselmans <email@hidden>)
 >Re: awake, awake, sleep, sleep: when does which component gets its settings? (From: Ralf Schuchardt <email@hidden>)

  • Prev by Date: Re: Temporarily Disable Optimistic Locking
  • Next by Date: MEETING: Chicago CocoaHeads / CAWUG Tuesday July 10th - iPhone & WWDC Recap
  • Previous by thread: Re: awake, awake, sleep, sleep: when does which component gets its settings?
  • Next by thread: Temporarily Disable Optimistic Locking
  • Index(es):
    • Date
    • Thread