public void execute(Event<UITabContainer> event) throws Exception { String objectId = event.getRequestContext().getRequestParameter(OBJECTID); UITabContainer container = event.getSource(); UIComponent goal = container.findComponentById(objectId); if (goal == null) { return; } UITabContainer parent = goal.getParent(); List<UIComponent> children = parent.getChildren(); for (UIComponent child : children) { if (child.getId().equals(objectId)) { child.setRendered(true); continue; } child.setRendered(false); } }