protected boolean hasNonAjaxActionListener(UIComponent uiComponent) { boolean nonAjaxActionListener = false; Iterator<UIComponent> facetsAndChildren = uiComponent.getFacetsAndChildren(); if (facetsAndChildren != null) { while (facetsAndChildren.hasNext()) { UIComponent facetOrChild = facetsAndChildren.next(); if (facetOrChild instanceof ActionSource) { ActionSource actionSource = (ActionSource) facetOrChild; ActionListener[] actionListeners = actionSource.getActionListeners(); if (actionListeners != null) { for (ActionListener actionListener : actionListeners) { String actionListenerFQCN = actionListener.getClass().getName(); if (P_DATA_EXPORTER_FQCN.equals(actionListenerFQCN) || P_FILE_DOWNLOAD_FQCN.equals(actionListenerFQCN) || PE_EXPORTER_FQCN.equals(actionListenerFQCN)) { nonAjaxActionListener = true; break; } } } } if (!nonAjaxActionListener) { nonAjaxActionListener = hasNonAjaxActionListener(facetOrChild); } } } return nonAjaxActionListener; }
protected boolean hasNonAjaxActionListener(UIComponent uiComponent) { boolean nonAjaxActionListener = false; Iterator<UIComponent> facetsAndChildren = uiComponent.getFacetsAndChildren(); if (facetsAndChildren != null) { while (facetsAndChildren.hasNext()) { UIComponent facetOrChild = facetsAndChildren.next(); if (facetOrChild instanceof ActionSource) { ActionSource actionSource = (ActionSource) facetOrChild; ActionListener[] actionListeners = actionSource.getActionListeners(); if (actionListeners != null) { for (ActionListener actionListener : actionListeners) { String actionListenerFQCN = actionListener.getClass().getName(); if (P_DATA_EXPORTER_FQCN.equals(actionListenerFQCN) || P_FILE_DOWNLOAD_FQCN.equals(actionListenerFQCN) || PE_EXPORTER_FQCN.equals(actionListenerFQCN)) { nonAjaxActionListener = true; break; } } } } if (!nonAjaxActionListener) { nonAjaxActionListener = hasNonAjaxActionListener(facetOrChild); } } } return nonAjaxActionListener; }
private boolean sourceHasProperty(ActionSource source) { for (ActionListener listener : source.getActionListeners()) { if (listener instanceof UpdateActionListener == false) continue; UpdateActionListener al = (UpdateActionListener) listener; if (al.getPropertyBinding().getExpressionString().equals( this.propertyAttr.getValue())) { logger.debug("Action listener already has a listener for " + this.propertyAttr.getValue()); return true; } } logger.debug("Action listener for property is not present. Property: " + this.propertyAttr.getValue()); return false; } }
private boolean sourceHasProperty(ActionSource source) { ActionListener[] listeners = source.getActionListeners(); for (int i = 0; i < listeners.length; i++) { ActionListener listener = listeners[i]; if (listener instanceof UpdateActionListener == false) continue; UpdateActionListener al = (UpdateActionListener) listener; if (al.getPropertyBinding().getExpressionString().equals( this.propertyAttr.getValue())) { logger.debug("Action listener already has a listener for " + this.propertyAttr.getValue()); return true; } } logger.debug("Action listener for property is not present. Property: " + this.propertyAttr.getValue()); return false; } }
private boolean sourceHasProperty(ActionSource source) { ActionListener[] listeners = source.getActionListeners(); for (int i = 0; i < listeners.length; i++) { ActionListener listener = listeners[i]; if (listener instanceof UpdateActionListener == false) continue; UpdateActionListener al = (UpdateActionListener) listener; if (al.getPropertyBinding().getExpressionString().equals( this.propertyAttr.getValue())) { logger.debug("Action listener already has a listener for " + this.propertyAttr.getValue()); return true; } } logger.debug("Action listener for property is not present. Property: " + this.propertyAttr.getValue()); return false; } }
if (component instanceof ActionSource) { ActionSource b = (ActionSource) component; ActionListener[] actionListeners = b.getActionListeners(); if (null != actionListeners && actionListeners.length > 0) { generateNonAJAXCommand = true;
if (component instanceof ActionSource) { ActionSource b = (ActionSource) component; ActionListener[] actionListeners = b.getActionListeners(); if (null != actionListeners && actionListeners.length > 0) { addEventToQueue = true;
if (component instanceof ActionSource) { ActionSource b = (ActionSource) component; ActionListener[] actionListeners = b.getActionListeners(); if (null != actionListeners && actionListeners.length > 0) { addEventToQueue = true;
if (component instanceof ActionSource) { ActionSource b = (ActionSource) component; ActionListener[] actionListeners = b.getActionListeners(); if (null != actionListeners && actionListeners.length > 0) { generateNonAJAXCommand = true;