You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Joshua Jackson <jo...@gmail.com> on 2008/03/28 09:36:53 UTC

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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: T5: How do I get session information?

Posted by Jonathan Barker <jo...@gmail.com>.
That's likely stored in the WebContext that can be directly injected using
tapestry-spring.



> -----Original Message-----
> From: Joshua Jackson [mailto:joshua.java@gmail.com]
> 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 <kr...@porsche.co.at> 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: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How do I get session information?

Posted by Joshua Jackson <jo...@gmail.com>.
On 3/28/08, Kristian Marinkovic <kr...@porsche.co.at> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: T5: How do I get session information?

Posted by Kristian Marinkovic <kr...@porsche.co.at>.
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" <jo...@gmail.com> 
28.03.2008 09:54
Bitte antworten an
"Tapestry users" <us...@tapestry.apache.org>


An
"Tapestry users" <us...@tapestry.apache.org>
Kopie

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







On 3/28/08, Cordenier Christophe <Ch...@atosorigin.com> 
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org



Re: T5: How do I get session information?

Posted by Joshua Jackson <jo...@gmail.com>.
On 3/28/08, Cordenier Christophe <Ch...@atosorigin.com> 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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: T5: How do I get session information?

Posted by Cordenier Christophe <Ch...@atosorigin.com>.
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:joshua.java@gmail.com]
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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org




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: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org