Search in sources :

Example 1 with BeginRender

use of org.apache.tapestry5.annotations.BeginRender in project tapestry5-hotel-booking by ccordenier.

the class AjaxLoader method initAjaxLoader.

@BeginRender
void initAjaxLoader(MarkupWriter writer) {
    loader = javascriptSupport.allocateClientId("loader");
    JSONObject data = new JSONObject();
    data.put("zone", zone);
    data.put("trigger", trigger);
    data.put("loader", loader);
    javascriptSupport.addInitializerCall(InitializationPriority.NORMAL, "initAjaxLoader", data);
}
Also used : JSONObject(org.apache.tapestry5.json.JSONObject) BeginRender(org.apache.tapestry5.annotations.BeginRender)

Aggregations

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