Examples of initWithDomReady()


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

        UIComponent target = SearchExpressionFacade.resolveComponent(context, command, command.getTarget());
       
        String clientId = command.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("DefaultCommand", command.resolveWidgetVar(), clientId)
                .attr("target", target.getClientId(context));
       
        String scope = command.getScope();
        if(scope != null) {
            UIComponent scopeComponent = SearchExpressionFacade.resolveComponent(context, command, scope);
View Full Code Here

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

    public void encodeEnd(FacesContext context, UIComponent component) throws IOException {
        IdleMonitor monitor = (IdleMonitor) component;
        String clientId = monitor.getClientId();
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("IdleMonitor", monitor.resolveWidgetVar(), clientId, "idlemonitor")
            .attr("timeout", monitor.getTimeout())
            .callback("onidle", "function()", monitor.getOnidle())
            .callback("onactive", "function()", monitor.getOnactive());
       
        encodeClientBehaviors(context, monitor);
View Full Code Here

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

    protected void encodeScript(FacesContext context, AbstractMenu abstractMenu) throws IOException {
        SlideMenu menu = (SlideMenu) abstractMenu;
    String clientId = menu.getClientId(context);

        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("SlideMenu", menu.resolveWidgetVar(), clientId);
       
        if(menu.isOverlay()) {
            encodeOverlayConfig(context, menu, wb);
        }
View Full Code Here

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

    }
   
    protected void encodeScript(FacesContext context, OutputPanel panel) throws IOException {
        String clientId = panel.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("OutputPanel", panel.resolveWidgetVar(), clientId);
       
        if(panel.isDeferred()) {
            String delay = panel.getDelay();
           
            wb.attr("deferred", true)
View Full Code Here

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

        String update = fileUpload.getUpdate();
        String process = fileUpload.getProcess();
        WidgetBuilder wb = getWidgetBuilder(context);

        if(fileUpload.getMode().equals("advanced")) {
            wb.initWithDomReady("FileUpload", fileUpload.resolveWidgetVar(), clientId, "fileupload");
           
            wb.attr("auto", fileUpload.isAuto(), false)
                .attr("dnd", fileUpload.isDragDropSupport(), true)
                .attr("update", SearchExpressionFacade.resolveComponentsForClient(context, fileUpload, update), null)
                .attr("process", SearchExpressionFacade.resolveComponentsForClient(context, fileUpload, process), null)
View Full Code Here

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

    }

    protected void encodeScript(FacesContext context, DataList list) throws IOException {
        String clientId = list.getClientId();
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("DataList", list.resolveWidgetVar(), clientId);
       
        if(list.isPaginator()) {
            encodePaginatorConfig(context, list, wb);
        }
View Full Code Here

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

        String initMode = table.getInitMode();
       
        WidgetBuilder wb = getWidgetBuilder(context);

        if(initMode.equals("load"))
            wb.initWithDomReady(widgetClass, table.resolveWidgetVar(), clientId);
        else if(initMode.equals("immediate"))
            wb.init(widgetClass, table.resolveWidgetVar(), clientId);
        else
            throw new FacesException(initMode + " is not a valid value for initMode, possible values are \"load\" and \"immediate.");
       
View Full Code Here

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

        int slideshowSpeed = imageSwitch.isSlideshowAuto() ? imageSwitch.getSlideshowSpeed() : 0;
       
        writer.endElement("div");
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("ImageSwitch", imageSwitch.resolveWidgetVar(), clientId, "imageswitch")            .attr("fx", imageSwitch.getEffect())
            .attr("speed", imageSwitch.getSpeed())
            .attr("timeout", slideshowSpeed);

        wb.finish();
  }
View Full Code Here

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

    protected void encodeScript(FacesContext context, Message uiMessage, String targetClientId) throws IOException {
        if(uiMessage.getDisplay().equals("tooltip")) {
            String clientId = uiMessage.getClientId(context);
            WidgetBuilder wb = getWidgetBuilder(context);

            wb.initWithDomReady("Message", uiMessage.resolveWidgetVar(), clientId)
                .attr("target", targetClientId)
                .finish();
        }
    }   
}
View Full Code Here

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

    public void encodeScript(FacesContext context, Ring ring) throws IOException {
        String clientId = ring.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Ring", ring.resolveWidgetVar(), clientId, "ring")
            .attr("startingChild", ring.getFirst())
            .attr("easing", ring.getEasing(), null);
        wb.finish();
  }
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.