Examples of addToBody()


Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        JSFunctionDefinition function = new JSFunctionDefinition();
        function.addParameter("event");
        if(null!=append && append.length()>0){
          function.addToBody(event+append);
        }else{
          function.addToBody(event);
        }
      return  function;
      }
    }
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        }
        // Replace parameter value to reference.
        parameters.put(name, reference);
      }
    }
    func.addToBody(ajaxFunction.toScript());
    func.appendScript(script);
    return script.toString();
  }
}
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        options.put("pollinterval", interval);
        options.put("pollId", component.getClientId(context));
        Object onsubmit = component.getAttributes().get("onsubmit");
        if (null != onsubmit) {
          JSFunctionDefinition onsubmitFunction = new JSFunctionDefinition();
          onsubmitFunction.addToBody(onsubmit);
          options.put("onsubmit", onsubmitFunction);
        }

//        options.put("timeout", interval);
        function.addParameter(options);
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        buffer.append("; return false;");

  String onPageChange = (String) component.getAttributes().get("onpagechange");
  if (onPageChange != null && onPageChange.length() != 0) {
      JSFunctionDefinition onPageChangeDef = new JSFunctionDefinition("event");
      onPageChangeDef.addToBody(onPageChange);
      onPageChangeDef.addToBody("; return true;");

      definition.addToBody("if (");
      definition.addToBody(onPageChangeDef.toScript());
      definition.addToBody("(event)) {");
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

  String onPageChange = (String) component.getAttributes().get("onpagechange");
  if (onPageChange != null && onPageChange.length() != 0) {
      JSFunctionDefinition onPageChangeDef = new JSFunctionDefinition("event");
      onPageChangeDef.addToBody(onPageChange);
      onPageChangeDef.addToBody("; return true;");

      definition.addToBody("if (");
      definition.addToBody(onPageChangeDef.toScript());
      definition.addToBody("(event)) {");
      definition.addToBody(buffer.toString());
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

   
    JSFunctionDefinition functionDefinition = new JSFunctionDefinition();
   
    JSReference sortEvent = new JSReference("event");
    functionDefinition.addParameter(sortEvent);
    functionDefinition.addToBody(onSortAjaxUpdate(context, grid));
   
    addOption("onSortAjaxUpdate", functionDefinition)
   
  }
 
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        String onselect = (String) attributes.get("onselect");
        if (null != onselect) {
            JSFunctionDefinition function = new JSFunctionDefinition(
                    "suggestion");
            function.addParameter("event");
            function.addToBody(onselect);

            options.put("onselect", function);

        }
        String onobjectchange = (String) attributes.get("onobjectchange");
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        }
        String onobjectchange = (String) attributes.get("onobjectchange");
        if (null != onobjectchange) {
            JSFunctionDefinition function = new JSFunctionDefinition(
                    "suggestion","event");
            function.addToBody(onobjectchange);

            options.put("onobjectchange", function);

        }
        if (component.getValueBinding("fetchValue") != null
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        invocation.addParameter(new JSReference("menuId"));
        invocation.addParameter("show");
        // invocation.addParameter(new JSReference("{'columnId':columnId}"));
        invocation.addParameter(new JSReference("{}"));
        invocation.addParameter(Boolean.FALSE);
        definition.addToBody(invocation.toScript()).addToBody(";\n");
        return definition;
    }

}
View Full Code Here

Examples of org.ajax4jsf.javascript.JSFunctionDefinition.addToBody()

        parameters.remove(clientId);
        parameters.put(dropTargetScriptId, dropTargetScriptId);
      }
    }
   
    definition.addToBody("var dragParams = drag.getParameters();");
   
    String dragSourceScriptId = column.getClientId(context) + ":"+ TableDragDropRenderer.DRAG_SOURCE_SCRIPT_ID;
    definition.addToBody(
      "var source = dragParams['"+ DraggableRendererContributor.DRAG_SOURCE_ID +"'];" +
      "if (source != \"" + dragSourceScriptId + "\"){"//send request only if drag column in not equals to drop column
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.