I wrote a managed bean with post construct method (using @PostContruct), but the method is not being called. I'm using liferay liferay-portal-6.1.2-ce-ga3 with Jboss 7.1.1, and Icefaces 3.0. Can someone help me figure this out?
@SessionScoped
@ManagedBean
public class DetalleVaPortletBean extends BackingPortletUI {
private static final long serialVersionUID = -7127465434575796794L;
public DetalleVaPortletBean() {
try {
System.out.println(this);
} catch (Exception e) {
error(e);
}
}
@PostConstruct
public void postConstruct(){
adicionarPortletPrincipal();
}
}