Search in sources :

Example 1 with ClientElement

use of org.apache.tapestry5.ClientElement in project flowlogix by flowlogix.

the class DisableAfterSubmit method enableSubmitProcessing.

public static void enableSubmitProcessing(ClientElement clientElement, FormSupport fs, JavaScriptSupport js) {
    JSONObject spec = new JSONObject();
    spec.put("elementId", clientElement.getClientId());
    spec.put("formId", fs.getClientId());
    js.addInitializerCall("disableAfterSubmit", spec);
}
Also used : JSONObject(org.apache.tapestry5.json.JSONObject)

Aggregations

JSONObject (org.apache.tapestry5.json.JSONObject)1