cancel
Showing results for 
Search instead for 
Did you mean: 

actionContext, session params for custom action

pierre_duracel
Champ in-the-making
Champ in-the-making
Dear reader,

I'm wondering how to get access to the session object  in order to get a valide ticket from inside the <param> element in use  inside a custom action.

In fact, what I'm trying to do is to call an outside web application by the the use of a custom edit action and this by using the <href> and <params> elements inside my action definition.

Is this possible ? Should it be done by using the actionContext node or an other way ?

I've tried something like that : <param name="myparam">#{session.ticket}</param> but without success.

Any suggestion ?

Thanks in advance !!!
1 REPLY 1

pierre_duracel
Champ in-the-making
Champ in-the-making
Hello,

In fact after spending some time in debug mode inside eclipse (going from UIAction to VariableResolverImpl),
I finally found that a bean is available called : _alfAuthTicket

Under this name it does exist the User bean and the getTicket method which I needed.

By looking inside the VariableResoverImpl, I see that the resolution of variables occurs  in this order :
- Implicit objects
- Request context
- Session context
- Application context
- ManagedBean

Maybe would it be of interest if someone could explain where these contexts are set.

Thanks in advance.