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; }
HttpServletRequest request = (HttpServletRequest) externalContext.getRequest(); String url = component.getValue().toString(); RequestContextHolder requestContext = HDIVUtil.getRequestContext(request); String hdivParameter = requestContext.getHdivParameterName();