public <T> void storeAndExecute(T component, ComponentAction<T> action) { delegate.storeAndExecute(component, action); }
public void render(MarkupWriter writer) { formSupport.storeAndExecute(AjaxFormLoop.this, BEGIN_HEARTBEAT); } };
public void render(MarkupWriter writer) { formSupport.storeAndExecute(AjaxFormLoop.this, END_HEARTBEAT); } };
/** * Records into the Form the cleanup logic for the property. */ void cleanupRender() { // Removes the PropertyEditContext after this component (including the editor block) // has rendered. formSupport.storeAndExecute(this, CLEANUP_ENVIRONMENT); }
void cleanupRender() { formSupport.storeAndExecute(this, CLEANUP_ENVIRONMENT); }
/** * Record into the Form what's needed to process the property. */ void setupRender() { // Sets up the PropertyEditContext for the duration of the render of this component // (which will include the duration of the editor block). formSupport.storeAndExecute(this, new SetupEnvironment(property)); }
void setupRender() { formSupport.storeAndExecute(this, new Prepare()); }
@SetupRender final void setup() { // Often, these controlName and clientId will end up as the same value. There are many // exceptions, including a form that renders inside a loop, or a form inside a component // that is used multiple times. if (formSupport == null) throw new RuntimeException(String.format("Component %s must be enclosed by a Form component.", resources.getCompleteId())); assignedClientId = allocateClientId(); String controlName = formSupport.allocateControlName(assignedClientId); formSupport.storeAndExecute(this, new Setup(controlName)); formSupport.store(this, PROCESS_SUBMISSION_ACTION); }
formSupport.storeAndExecute(this, action);