private String valor;
public String getShowContent() {
String viewId = FacesContext.getCurrentInstance().getViewRoot().getViewId();
if ("/pages/login.xhtml".equals(viewId)
|| ("/pages/showSource.xhtml").equals(viewId)
|| ("/pages/places.xhtml".equals(viewId) &&
places != null && places.size() > 0)) {
return "display";
}
else return "none";
}
Teste comentário
ResponderExcluirParabéns pele blog Fabão! ótimo post, já estou acompanhando no meu feed!
ResponderExcluir