Examples of ScriptString


Examples of org.ajax4jsf.javascript.ScriptString

    return "display: none;";
  }
 
  public String getAsEventHandler(FacesContext context, UIComponent component, String attributeName) {
    String event = (String) component.getAttributes().get(attributeName);
    ScriptString result = JSReference.NULL;
   
    if (event != null) {
      event = event.trim();
   
      if (event.length() != 0) {
View Full Code Here

Examples of org.ajax4jsf.javascript.ScriptString

        SelectHelper.encodeItems(facesContext, component, clientSelectItems, HtmlConstants.DIV_ELEM, ITEM_CSS);
    }

    @Override
    protected void preEncodeBegin(FacesContext facesContext, UIComponent component) throws IOException {
        ScriptString script = prepareCSVMessageScript(facesContext);

        JavaScriptService jsService = ServiceTracker.getService(JavaScriptService.class);
        jsService.addScript(facesContext, script);
    }
View Full Code Here

Examples of org.ajax4jsf.javascript.ScriptString

    public void addAjaxSubmitFunction() {
        if (!this.hasSubmittingBehavior()) {
            hasSubmittingBehavior = true;

            ScriptString ajaxFunction = buildAjaxFunction(facesContext, component);
            this.addInlineHandlerAsValue(ajaxFunction.toScript());
        }
    }
View Full Code Here

Examples of org.ajax4jsf.javascript.ScriptString

  return UIPickList.class;
    }

    public String getAsEventHandler(FacesContext context, UIComponent component, String attributeName) {
  String event = (String) component.getAttributes().get(attributeName);
  ScriptString result = JSReference.NULL;

  if (event != null) {
      event = event.trim();
      if (event.length() != 0) {
    JSFunctionDefinition function = new JSFunctionDefinition();
View Full Code Here

Examples of org.ajax4jsf.javascript.ScriptString

  }

  public String getAsEventHandler(FacesContext context,
      UIComponent component, String attributeName) {
    String event = (String) component.getAttributes().get(attributeName);
    ScriptString result = JSReference.NULL;

    if (event != null) {
      event = event.trim();

      if (event.length() != 0) {
View Full Code Here

Examples of org.richfaces.javascript.ScriptString

            options.put(optionName, value);
        }
    }

    protected Object createSubmitEventFunction(FacesContext context, AbstractDashboard component) {
        ScriptString jsFunction;
        Map<String, Object> params = new HashMap<String, Object>();
        params.put(getFieldId(context, component, START_X_PARAM), new JSReference(START_X_PARAM));
        params.put(getFieldId(context, component, START_Y_PARAM), new JSReference(START_Y_PARAM));
        params.put(getFieldId(context, component, END_X_PARAM), new JSReference(END_X_PARAM));
        params.put(getFieldId(context, component, END_Y_PARAM), new JSReference(END_Y_PARAM));
View Full Code Here

Examples of org.richfaces.javascript.ScriptString

        }
    }

    protected Object createSubmitEventFunction(FacesContext context, AbstractVisualsearch component)
    {
        ScriptString jsFunction;
        Map<String, Object> params = new HashMap<String, Object>();
        params.put(getFieldId(context, component, FACET_PARAM), new JSReference(FACET_PARAM));
        params.put(getFieldId(context, component, SEARCH_TERM_PARAM), new JSReference(SEARCH_TERM_PARAM));
        params.put(getFieldId(context, component, QUERY_PARAM), new JSReference(QUERY_PARAM));
        params.put(getFieldId(context, component, QUERY_JSON_PARAM), new JSReference(QUERY_JSON_PARAM));
View Full Code Here

Examples of org.richfaces.javascript.ScriptString

            options.put(optionName, value);
        }
    }

    protected Object createSubmitEventFunction(FacesContext context, AbstractSchedule component) {
        ScriptString jsFunction;
        Map<String, Object> params = new HashMap<String, Object>();
        params.put(getFieldId(context, component, START_DATE_PARAM), new JSReference(START_DATE_PARAM));
        params.put(getFieldId(context, component, END_DATE_PARAM), new JSReference(END_DATE_PARAM));
        params.put(getFieldId(context, component, ITEM_ID_PARAM), new JSReference(ITEM_ID_PARAM));
        params.put(getFieldId(context, component, DAY_DELTA_PARAM), new JSReference(DAY_DELTA_PARAM));
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.