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 PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]


--
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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/amedeo% 40macintossicati.com

This email sent to [EMAIL PROTECTED]


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jerrywwalker %40gmail.com

This email sent to [EMAIL PROTECTED]


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

    [EMAIL PROTECTED]
    203 278-4085        office






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

    [EMAIL PROTECTED]
    203 278-4085        office



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to