• 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 values set but not available
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Session values set but not available


  • Subject: Re: Session values set but not available
  • From: Ute Hoffmann <email@hidden>
  • Date: Mon, 25 Jul 2005 18:42:58 +0200

Thank you for your answer. Yes, it should and does. I had a subcomponent, that in some cases reset the session values, which at the time I programmed it did make sense, but in fact does not. I changed that and yes, it works again.

Regards,

Ute

Am Montag, 25.07.05 um 18:34 Uhr schrieb Chuck Hill:

How are you trying to access the value in session from your subcomponents? Are they stateless? What you are describing should work.

Chuck

On Jul 25, 2005, at 4:36 AM, Ute Hoffmann wrote:

Hallo,
I have a page that contains several reusable components.

In the constructor of this page I set a value in the session.

I checked, the value is there in this method and the method can retrieve it from the session, too. But obviously outside of the method nothing else on the page can see this value in the session.

Neither is the value correctly displayed in the headline of this page nor is it seen by the reusable components in this page... They all believe it is null.

But when I insert a variable just to diaplay this value at the top of the page, I get the right output.

So why is that, where is the problem? When I set this value in an action method from a navigation bar everything works fine... but then it is set earlier in the creation process...

Is there a way to set a value in the session in the page constructor (or somewhere else? Awake?) and have the rest of the page and all subcomponents see it correctly? There must be. The value I try to set is a Entity-Value, no simple String, but this should not make any difference.

Thanks for some insight,

Regards,
Ute

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


This email sent to email@hidden


--
Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development 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: 
 >Re: Session values set but not available (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Session values set but not available
  • Next by Date: Re: Debuging WOManyToManyRelationship
  • Previous by thread: Re: Session values set but not available
  • Next by thread: Re: Session values set but not available
  • Index(es):
    • Date
    • Thread