RE: T5: How do I get session information?

2008-03-28 Thread Cordenier Christophe
Hello

You can inject the Request Tapestry service and then get the Session object 
from this service.
This is the Tapestry Session object that wraps the J2EE one and gives you 
access to the content of the session.

I Hope this helps

Christophe

-Message d'origine-
De : Joshua Jackson [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 28 mars 2008 09:37
À : Tapestry users
Objet : T5: How do I get session information?

Dear all,

How do I retrieved information that is stored in a session from my
Page component? I could not find this in the docs.

Thanks in advance

--
Let's show the world what we've got.

Blog: http://joshuajava.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Ce message et les pièces jointes sont confidentiels et réservés à l'usage 
exclusif de ses destinataires. Il peut également être protégé par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
immédiatement l'expéditeur et de le détruire. L'intégrité du message ne pouvant 
être assurée sur Internet, la responsabilité du groupe Atos Origin ne pourra 
être recherchée quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne 
saurait être recherchée pour tout dommage résultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: How do I get session information?

2008-03-28 Thread Joshua Jackson
On 3/28/08, Cordenier Christophe [EMAIL PROTECTED] wrote:
 Hello

 You can inject the Request Tapestry service and then get the Session object 
 from this service.
 This is the Tapestry Session object that wraps the J2EE one and gives you 
 access to the content of the session.

 I Hope this helps

 Christophe

Thanks. :)

I'm going to try it out.

Cheers,

-- 
Let's show the world what we've got.

Blog: http://joshuajava.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: T5: How do I get session information?

2008-03-28 Thread Kristian Marinkovic
i assume you want to access the persistent property of a 
component somewhere else!?...

some tips you might find useful.. regarding state (there are
always advantages and disadvantages to these approaches):

- component parameters are bidirectional; if you assign a new
value to a parameter from within a component its value gets
available in the root component/page as well

- use an ApplicationStateObject to share state accross 
your application (multiple pages, components)

- utilize the Environment service to share state within 
a hierarchy of components

i hope this helps
g,
kris




Joshua Jackson [EMAIL PROTECTED] 
28.03.2008 09:54
Bitte antworten an
Tapestry users users@tapestry.apache.org


An
Tapestry users users@tapestry.apache.org
Kopie

Thema
Re: T5: How do I get session information?







On 3/28/08, Cordenier Christophe [EMAIL PROTECTED] 
wrote:
 Hello

 You can inject the Request Tapestry service and then get the Session 
object from this service.
 This is the Tapestry Session object that wraps the J2EE one and gives 
you access to the content of the session.

 I Hope this helps

 Christophe

Thanks. :)

I'm going to try it out.

Cheers,

-- 
Let's show the world what we've got.

Blog: http://joshuajava.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: T5: How do I get session information?

2008-03-28 Thread Joshua Jackson
On 3/28/08, Kristian Marinkovic [EMAIL PROTECTED] wrote:
 i assume you want to access the persistent property of a
 component somewhere else!?...

Actually I want to get the login session info from Spring security 2.0
I though the best way is to get it manually from the Sessin object.



 some tips you might find useful.. regarding state (there are
 always advantages and disadvantages to these approaches):

 - component parameters are bidirectional; if you assign a new
 value to a parameter from within a component its value gets
 available in the root component/page as well

 - use an ApplicationStateObject to share state accross
 your application (multiple pages, components)

 - utilize the Environment service to share state within
 a hierarchy of components

-- 
Let's show the world what we've got.

Blog: http://joshuajava.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: T5: How do I get session information?

2008-03-28 Thread Jonathan Barker

That's likely stored in the WebContext that can be directly injected using
tapestry-spring.



 -Original Message-
 From: Joshua Jackson [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 28, 2008 6:06 AM
 To: Tapestry users
 Subject: Re: T5: How do I get session information?
 
 On 3/28/08, Kristian Marinkovic [EMAIL PROTECTED] wrote:
  i assume you want to access the persistent property of a
  component somewhere else!?...
 
 Actually I want to get the login session info from Spring security 2.0
 I though the best way is to get it manually from the Sessin object.
 
 
 
  some tips you might find useful.. regarding state (there are
  always advantages and disadvantages to these approaches):
 
  - component parameters are bidirectional; if you assign a new
  value to a parameter from within a component its value gets
  available in the root component/page as well
 
  - use an ApplicationStateObject to share state accross
  your application (multiple pages, components)
 
  - utilize the Environment service to share state within
  a hierarchy of components
 
 --
 Let's show the world what we've got.
 
 Blog: http://joshuajava.wordpress.com/
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]