• 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: Session class and Localization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Session class and Localization


  • Subject: Re: Session class and Localization
  • From: "Jerry W. Walker" <email@hidden>
  • Date: Thu, 10 Aug 2006 23:47:00 -0400

Hi, Gilles,

As I think about it, I was wrong about functional equivalency in an important way: the statement

   return context().page();

returns the current WOComponent page object. If that object has any significant state persisted, the state is retained in the returned page. Whereas, the statement:

   return pageWithName(context().page().name());

will create a new WOComponent object of the same class as the current WOComponent page's class. If there was any persisted state, it will not be in the new page.

I don't see how this could unset the session's language, however.

Regards,
Jerry

On Aug 10, 2006, at 11:37 PM, Gilles MATHURIN wrote:

Hi Jerry,

Unfortunatly, return context().page(); doesn't work where as pageWithName(context().page().name()) does, even if i don't know why.
Moreover it might be another weird bug i am experiencing today aka check my WOHyperlink bug in the list.
The last one i encounter today is during building, Xcode tells me that the different standard packages (foundation/eoacces etc…) do not exist with the build failing.


I don't know what to do, all my work seem to be lost. it's very disappointing. I wonder where my system config fails

I develop on Dual 1,8GHz G5 /OS X 10.4.7 / Xcode 2.3 / Java 1.5 & 1.4 (i set my WOApp on java 1.4) and now i am updating to Xcode 2.4 with the hope to fix some of those weird bugs.

Wish me luck

Regards.

GM
Le 10 août 06 à 23:01, Jerry W. Walker a écrit :

Hi, Gilles,

Chuck was suggesting:

     return context().page();

not:

     return  pageWithName(context().page());

Although

     pageWithName(context().page().name())

is functionally equivalent to

      context().page()

the latter is the more appropriate code, if not only because it is expected.

Regards,
Jerry

On Aug 10, 2006, at 4:55 PM, Gilles MATHURIN wrote:

Thanks to you !

It works now

Le 10 août 06 à 15:46, Amedeo Mantica a écrit :

return pageWithName(context().page().name());

should work! (Chuck you suggested me this about one year ago :-) Memory Leaks :-))))

Amedeo


On 10/ago/06, at 18:54, Gilles MATHURIN wrote:

It doesn't work neither :-(

Gilles.
Le 10 août 06 à 12:37, Chuck Hill a écrit :


On Aug 10, 2006, at 9:23 AM, Gilles MATHURIN wrote:

Hi all,

Hope the WWDC Folks enjoying their time.
I deal with a problem with setting the language session of my App.
I explain : i had a method on the Main page who set the language of my app using :
session().setLanguages(aLanguage);
return Main nextPage = (Main)pageWithName("Main"); (i use this because "return null;" doesn't work)


Try return context().page();

Chuck


But as soon as i click on an hyperlink, the App language is set back to the browser language, ignoring my Session setting…

Anyone as a clue to help me deal with that ?

Thanks

Regards.

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


This email sent to email@hidden


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


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:
40macintossicati.com


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:
@gmail.com


This email sent to email@hidden


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office






--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems


    email@hidden
    203 278-4085        office



_______________________________________________
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: 
 >Session class and Localization (From: Gilles MATHURIN <email@hidden>)
 >Re: Session class and Localization (From: Chuck Hill <email@hidden>)
 >Re: Session class and Localization (From: Gilles MATHURIN <email@hidden>)
 >Re: Session class and Localization (From: Amedeo Mantica <email@hidden>)
 >Re: Session class and Localization (From: Gilles MATHURIN <email@hidden>)
 >Re: Session class and Localization (From: "Jerry W. Walker" <email@hidden>)
 >Re: Session class and Localization (From: Gilles MATHURIN <email@hidden>)

  • Prev by Date: Re: Session class and Localization
  • Next by Date: Re: General List Disclosure of WWDC WO info
  • Previous by thread: Re: Session class and Localization
  • Next by thread: Lunch
  • Index(es):
    • Date
    • Thread