Or if you want to access another managed bean at "runtime" so to speak
you can use a method something like this:
public static Object resolveExpression(FacesContext ctx, String
expression)
{
Application app = ctx.getApplication();
ValueBinding bind = app.createValueBinding(expression);
return bind.getValue(ctx);
}
Enrique Medina wrote:
Hi,
Why not simply refer to the other bean using Dependency Injection
through the JSF Managed Bean mechanism?
For example,
yourInitialBean
com.whatever.you.want.YourInitialBean
request
otherManagedBean
#{otherManagedBean}
Quique.
2005/6/16, Rogerio Pereira <[EMAIL PROTECTED]>:
Hi,
How can i change/access a managed property from any other managed bean.
Thanks for any answer.
Rogério