final UICommand all = (UICommand) CreateComponentUtils.createComponent(
facesContext, UICommand.COMPONENT_TYPE, null, viewRoot.createUniqueId());
all.setOmit(true); // avoid submit
final UIMenu menu = (UIMenu) CreateComponentUtils.createComponent(
facesContext, UIMenu.COMPONENT_TYPE, RendererTypes.MENU, viewRoot.createUniqueId());
menu.setTransient(true);
ComponentUtils.addCurrentMarkup(menu, Markup.TOP);
FacetUtils.setDropDownMenu(all, menu);
int index = 0;
for (final UIComponent child : tabGroup.getChildren()) {