private void internalExecuteAllTimerBehaviors(final Component component) { List<AbstractAjaxTimerBehavior> behaviors = component.getBehaviors(AbstractAjaxTimerBehavior.class); for (AbstractAjaxTimerBehavior timer : behaviors) { checkUsability(component, true); if (!timer.isStopped()) { if (log.isDebugEnabled()) { log.debug("Triggering AjaxSelfUpdatingTimerBehavior: {}", component.getClassRelativePath()); } executeBehavior(timer); } } }
private void internalExecuteAllTimerBehaviors(final Component component) { List<AbstractAjaxTimerBehavior> behaviors = component .getBehaviors(AbstractAjaxTimerBehavior.class); for (AbstractAjaxTimerBehavior timer : behaviors) { checkUsability(component, true); if (!timer.isStopped()) { if (log.isDebugEnabled()) { log.debug("Triggering AjaxSelfUpdatingTimerBehavior: {}", component.getClassRelativePath()); } executeBehavior(timer); } } }
private void internalExecuteAllTimerBehaviors(final Component component) { List<IBehavior> behaviors = BehaviorsUtil.getBehaviors(component, AbstractAjaxTimerBehavior.class); for (IBehavior b : behaviors) { AbstractAjaxTimerBehavior timer = (AbstractAjaxTimerBehavior) b; if (!timer.isStopped()) { if (log.isDebugEnabled()) { log.debug("Triggering AjaxSelfUpdatingTimerBehavior: {}", component.getClassRelativePath()); } checkUsability(component); executeBehavior(timer); } } }
/** * Helper method for all the places where an Ajax call should submit an associated * <code>Form</code>. * * @param component * The component the behavior is attached to * @param behavior * The <code>AjaxFormSubmitBehavior</code> with the <code>Form</code> to "submit" */ private void submitAjaxFormSubmitBehavior(final Component component, AjaxFormSubmitBehavior behavior) { // The form that needs to be "submitted". Form<?> form = behavior.getForm(); assertNotNull("No form attached to the submitlink.", form); checkUsability(form, true); serializeFormToRequest(form); executeBehavior(behavior); }
/** * Helper method for all the places where an Ajax call should submit an associated * <code>Form</code>. * * @param component * The component the behavior is attached to * @param behavior * The <code>AjaxFormSubmitBehavior</code> with the <code>Form</code> to "submit" */ private void submitAjaxFormSubmitBehavior(final Component component, AjaxFormSubmitBehavior behavior) { // The form that needs to be "submitted". Form<?> form = behavior.getForm(); assertNotNull(form, "No form attached to the submitlink."); checkUsability(form, true); serializeFormToRequest(form); executeBehavior(behavior); }
Args.notNull(event, "event"); checkUsability(component, true);
Args.notNull(event, "event"); checkUsability(component, true);
notNull(failMessage, form); checkUsability(form);
notNull(failMessage, event); checkUsability(component);
checkUsability(linkComponent, true);
checkUsability(linkComponent, true);
checkUsability(linkComponent);