• 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: Localize WOLips project
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Localize WOLips project


  • Subject: Re: Localize WOLips project
  • From: Guido Neitzer <email@hidden>
  • Date: Thu, 15 May 2008 22:09:27 -0600

On 15.05.2008, at 17:34, Rams wrote:

I think I will look into direct actions and hiding the session in a cookie perhaps :-)

Why? You can use a sessionless application easily with the correct localizer!


Do something like this in your base "performActionNamed":

public WOActionResults performActionNamed(String actionName) {
ERXLocalizer localizer = null;
Session session = (Session) this.existingSession();
if (session != null) {
localizer = ERXLocalizer.currentLocalizer();
}
else {
localizer = ERXLocalizer.localizerForLanguages(this.context().request().
browserLanguages());
ERXLocalizer.setCurrentLocalizer(localizer);
}

return super.performActionNamed(actionName);
}



Hope this works as I just typed it from memory. Try and it and see what happens.


cug

--
http://www.event-s.net

_______________________________________________
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


  • Follow-Ups:
    • Re: Localize WOLips project [SOLVED]
      • From: Rams <email@hidden>
References: 
 >Re: Localize WOLips project (From: Rams <email@hidden>)
 >Re: Localize WOLips project (From: "Daniele Corti" <email@hidden>)
 >Re: Localize WOLips project (From: Rams <email@hidden>)
 >Re: Localize WOLips project (From: "Daniele Corti" <email@hidden>)
 >Re: Localize WOLips project (From: Rams <email@hidden>)
 >Re: Localize WOLips project (From: Rams <email@hidden>)

  • Prev by Date: Re: Shorter URLs without mod_rewrite?
  • Next by Date: ALCATRAZ! (Was: [OT] WOWODC Outing)
  • Previous by thread: Re: Localize WOLips project
  • Next by thread: Re: Localize WOLips project [SOLVED]
  • Index(es):
    • Date
    • Thread