Parent Action and refresh components

Sometimes we need refresh or access components from region but the problem is that, these components are binding in a bean of master page.

Typical example is when you have a paneltab where each tab is a region  and you need access acomponent for master page.

In this case you can make use of Parent Action, for invoke a parent action activity.

The schema is showed in next diagram:

parentAction

Another way is get a instance of master bean from region bean.


ExternalContext exctxt = FacesContext.getCurrentInstance().getExternalContext();

MasterBean mBean = (MasterBean) exctxt.getRequestMap().get("MasterBean");

Oficial Doc: Using Parent Action Activities

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s