public static boolean renderSheetCommands(UISheet sheet, FacesContext facesContext,
TobagoResponseWriter writer) throws IOException {
CommandMap commandMap = null;
for (UIComponent child : sheet.getChildren()) {
if (child instanceof UIColumnEvent) {
UIColumnEvent columnEvent = (UIColumnEvent) child;
if (columnEvent.isRendered()) {
UIComponent selectionChild = child.getChildren().get(0);
if (selectionChild != null && selectionChild instanceof AbstractUICommand && selectionChild.isRendered()) {
UICommand action = (UICommand) selectionChild;
if (commandMap == null) {
commandMap = new CommandMap();
}
commandMap.addCommand(columnEvent.getEvent(), new Command(facesContext, action, null));
}
}
}
}
if (commandMap != null) {