Package org.primefaces.util

Examples of org.primefaces.util.WidgetBuilder.callback()


       
        if(dynamic) {
            wb.attr("dynamic", true).attr("cache", tabView.isCache());
        }
       
        wb.callback("onTabChange", "function(index)", tabView.getOnTabChange())
            .callback("onTabShow", "function(index)", tabView.getOnTabShow())
            .callback("onTabClose", "function(index)", tabView.getOnTabClose());
       
        encodeClientBehaviors(context, tabView);
View Full Code Here


       
        if(layout.isNested()) {
            wb.attr("parent", layout.getParent().getClientId(context));
        }
       
        wb.callback("onToggle", "function(e)", layout.getOnToggle())
            .callback("onClose", "function(e)", layout.getOnClose())
            .callback("onResize", "function(e)", layout.getOnResize());
       
        encodeUnits(context, layout, wb);
        encodeClientBehaviors(context, layout);
View Full Code Here

       
        if(dynamic) {
            wb.attr("dynamic", true).attr("cache", tabView.isCache());
        }
       
        wb.callback("onTabChange", "function(index)", tabView.getOnTabChange())
            .callback("onTabShow", "function(index)", tabView.getOnTabShow())
            .callback("onTabClose", "function(index)", tabView.getOnTabClose());

        wb.attr("effect", tabView.getEffect(), null)
            .attr("effectDuration", tabView.getEffectDuration(), null)
View Full Code Here

  protected void encodeScript(FacesContext context, AjaxStatus status) throws IOException {
    String clientId = status.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("AjaxStatus", status.resolveWidgetVar(), clientId);

        wb.callback(AjaxStatus.START, AjaxStatus.CALLBACK_SIGNATURE, status.getOnstart())
            .callback(AjaxStatus.ERROR, AjaxStatus.CALLBACK_SIGNATURE, status.getOnerror())
            .callback(AjaxStatus.SUCCESS, AjaxStatus.CALLBACK_SIGNATURE, status.getOnsuccess())
            .callback(AjaxStatus.COMPLETE, AjaxStatus.CALLBACK_SIGNATURE, status.getOncomplete());
       
        wb.finish();
View Full Code Here

        if(resizable.isContainment()) {
          wb.attr("isContainment", true);
            wb.attr("parentComponentId", resizable.getParent().getClientId(context));
        }
       
        wb.callback("onStart", "function(event,ui)", resizable.getOnStart())
            .callback("onResize", "function(event,ui)", resizable.getOnResize())
            .callback("onStop", "function(event,ui)", resizable.getOnStop());
           
        encodeClientBehaviors(context, resizable);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.