/** * <p>Return the value of the <code>rendered</code> property.</p> */ public boolean isRendered() { if (!Util.isRenderedOnUserRole(this)) { return false; } return super.isRendered(); }
private List<ActionLink> getActionLinks(UIComponent component) { List<ActionLink> links = new ArrayList<>(); List<UIComponent> children = component.getChildren(); for (Object child : children) { if (child instanceof HtmlOutputLink) { HtmlOutputLink link = (HtmlOutputLink) child; boolean rendered = link.isRendered(); if (rendered) { List<UIComponent> linkChildren = link.getChildren(); String name = null; String action = null; Object value = link.getValue(); if (value != null) { action = value.toString(); } if (linkChildren != null && !linkChildren.isEmpty()) { Object linkChild = linkChildren.get(0); name = linkChild.toString(); } if (name != null && !name.equals("") && action != null && !action.equals("")) { links.add(new ActionLink(name, action)); } } } } return links; }
private List<ActionLink> getActionLinks(UIComponent component) { List<ActionLink> links = new ArrayList<ActionLink>(); List<UIComponent> children = component.getChildren(); for (Object child : children) { if (child instanceof HtmlOutputLink) { HtmlOutputLink link = (HtmlOutputLink) child; boolean rendered = link.isRendered(); if (rendered) { List<UIComponent> linkChildren = link.getChildren(); String name = null; String action = null; Object value = link.getValue(); if (value != null) { action = value.toString(); } if (linkChildren != null && !linkChildren.isEmpty()) { Object linkChild = linkChildren.get(0); name = linkChild.toString(); } if (name != null && !name.equals("") && action != null && !action.equals("")) { links.add(new ActionLink(name, action)); } } } } return links; }