protected void loadInvoke(Button component, boolean enabled, boolean visible, Element element) { if (!StringUtils.isBlank(element.attributeValue("action"))) { return; } final String methodName = element.attributeValue("invoke"); if (StringUtils.isBlank(methodName)) { return; } String actionBaseId = component.getId(); if (StringUtils.isEmpty(actionBaseId)) { actionBaseId = methodName; } DeclarativeAction action = new DeclarativeAction(actionBaseId + "_invoke", component.getCaption(), component.getDescription(), component.getIcon(), enabled, visible, methodName, component.getFrame() ); component.setAction(action); }