Examples of initWithDomReady()


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

    writer.endElement("div");
    }
   
    protected void encodeScript(FacesContext context, Growl growl) throws IOException {
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Growl", growl.resolveWidgetVar(), growl.getClientId(context));
        wb.attr("sticky", growl.isSticky(), false)
            .attr("life", growl.getLife(), 6000)
            .attr("escape", growl.isEscape(), true)
            .append(",msgs:");
        encodeMessages(context, growl);
View Full Code Here

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

    protected void encodeScript(FacesContext context, ColorPicker colorPicker) throws IOException {
    String clientId = colorPicker.getClientId(context);
        String value = (String) colorPicker.getValue();
        WidgetBuilder wb = getWidgetBuilder(context);
       
        wb.initWithDomReady("ColorPicker", colorPicker.resolveWidgetVar(), clientId, "colorpicker")
            .attr("mode", colorPicker.getMode())
            .attr("color", value, null);

        wb.finish();
    }
View Full Code Here

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

   
    protected void encodeScript(FacesContext context, SelectCheckboxMenu menu) throws IOException {
        String clientId = menu.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("SelectCheckboxMenu", menu.resolveWidgetVar(), clientId)
            .callback("onShow", "function()", menu.getOnShow())
            .callback("onHide", "function()", menu.getOnHide())
            .attr("scrollHeight", menu.getScrollHeight(), Integer.MAX_VALUE)
            .attr("appendTo", SearchExpressionFacade.resolveComponentForClient(context, menu, menu.getAppendTo()), null);
       
View Full Code Here

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

    @Override
  public void encodeScript(FacesContext context, InputTextarea inputTextarea) throws IOException {
    String clientId = inputTextarea.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("InputTextarea", inputTextarea.resolveWidgetVar(), clientId).finish();
  }
}
View Full Code Here

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

    protected void encodeScript(FacesContext context, PhotoCam cam) throws IOException {
    String clientId = cam.getClientId(context);
        String camera = getResourceRequestPath(context, "photocam/photocam.swf");
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("PhotoCam", cam.resolveWidgetVar(), clientId)
            .attr("camera", camera);
       
        if(cam.getUpdate() != null) wb.attr("update", SearchExpressionFacade.resolveComponentsForClient(context, cam, cam.getUpdate()));
        if(cam.getProcess() != null) wb.attr("process", SearchExpressionFacade.resolveComponentsForClient(context, cam, cam.getProcess()));
View Full Code Here

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

 
  protected void encodeScript(FacesContext context, Password password) throws IOException {
    String clientId = password.getClientId(context);
        boolean feedback = password.isFeedback();
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Password", password.resolveWidgetVar(), clientId);
       
        if(feedback) {
            wb.attr("feedback", true)
                .attr("inline", password.isInline())
                .attr("promptLabel", escapeText(password.getPromptLabel()))
View Full Code Here

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

    }

    protected void encodeScript(FacesContext context, Layout layout) throws IOException {
        String clientId = layout.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Layout", layout.resolveWidgetVar(), clientId, "layout")
            .attr("full", layout.isFullPage(), false)
            .attr("useStateCookie", layout.isStateful(), false);
       
        if(layout.isNested()) {
            wb.attr("parent", layout.getParent().getClientId(context));
View Full Code Here

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

  }

  protected void encodeScript(FacesContext context, Schedule schedule) throws IOException {
    String clientId = schedule.getClientId(context);
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("Schedule", schedule.resolveWidgetVar(), clientId, "schedule")
            .attr("defaultView", schedule.getView())
            .attr("locale", schedule.calculateLocale(context).toString())
            .attr("offset", schedule.calculateTimeZone().getRawOffset())
            .attr("tooltip", schedule.isTooltip(), false);
       
View Full Code Here

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

   
  protected void encodeScript(FacesContext context, ConfirmDialog dialog) throws IOException {
    String clientId = dialog.getClientId();
        WidgetBuilder wb = getWidgetBuilder(context);

        wb.initWithDomReady("ConfirmDialog", dialog.resolveWidgetVar(), clientId)
            .attr("visible", dialog.isVisible(), false)
            .attr("width", dialog.getWidth(), null)
            .attr("height", dialog.getHeight(), null)
            .attr("appendTo", SearchExpressionFacade.resolveComponentForClient(context, dialog, dialog.getAppendTo()), null)
            .attr("showEffect", dialog.getShowEffect(), null)
View Full Code Here

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

   
    protected void encodeScript(FacesContext context, BlockUI blockUI) throws IOException {
        String clientId = blockUI.getClientId(context);
       
        WidgetBuilder wb = getWidgetBuilder(context);
        wb.initWithDomReady("BlockUI", blockUI.resolveWidgetVar(), clientId);
       
        wb.attr("block", SearchExpressionFacade.resolveComponentsForClient(context, blockUI, blockUI.getBlock()));
        wb.attr("triggers", SearchExpressionFacade.resolveComponentsForClient(context, blockUI, blockUI.getTrigger()), null);
        wb.attr("blocked", blockUI.isBlocked(), false);
        wb.attr("animate", blockUI.isAnimate(), true);
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.