/** * Go to detail page * * @return forward to DETAIL page */ public String detail() { Integer id = Integer.parseInt(FacesUtils.getRequestParameter("id")); idea = manager.getEntityById(id); return SpringUtils.isAclPermissionGranted(idea, BasePermission.WRITE) ? NavigationResults.EDIT : NavigationResults.DETAIL; }
/** Handle an ABC pager letter click: filter objects by specified starting letter */ public void letterClicked() { if (letter != null) { UIComponent comp = FacesUtils.getComponent("ideas:list"); HtmlDataTable tabla = (HtmlDataTable) comp; tabla.setFirst(0); search.setName(letter + "%"); } else { search.unsetName(); } }