Hi,

For 1.1,

FacesContext ctx =  FacesContext.getCurrentInstance();
ValueBinding vb= ctx.getApplication().createValueBinding("#{barca}");
Barca barca = (Barca)vb.getValue(ctx);

or

Barca barca = (Barca)ctx
.getApplication().getVariableResolver().resolveVariable(ctx ,
"barca");

If you're on 1.2, ValueExpressions would do the same.

Cagatay

On Nov 7, 2007 2:04 AM, nikkomarc <[EMAIL PROTECTED]> wrote:
>
> Is it possible to access managed bean (session) in my phase listener.
> Specifically, how would I access it in the afterPhase method?
>
>     public void afterPhase(PhaseEvent event) {
>
>     }
>
> Thank you,
>
> Marc
> --
> View this message in context: 
> http://www.nabble.com/Accessing-a-managed-bean-in-a-phase-listener--tf4761876.html#a13618833
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Reply via email to