@ManagedBean(name = "procesos")
@ViewScoped
public class ProcesosBean implements Serializable {
@ManagedProperty(value="#{user}") // this references the @ManagedBean named user
private LoginBean loginBean;
private List<VistaProcesosEntity> procesos;
@PostConstruct
public void init(){
UsariosEntity current = loginBean.getCurrent();
}
}
I have extended your ProcesosBean
a bit. Notice the referenced LoginBean
and retrieving the UsariosEntity
in the init()
function. If you have any more questions or something isn't clear (enough), please ask.