Examples of addToScriptHash()


Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

  }

  protected Map<String, Object> getSymbolsMap(FacesContext facesContext, UICalendar calendar) {
    Map<String, Object> map = new LinkedHashMap<String, Object>();
    RendererUtils utils = getUtils();
    utils.addToScriptHash(map, WEEK_DAY_LABELS, ComponentUtil.asArray(calendar.getWeekDayLabels()));
    utils.addToScriptHash(map, WEEK_DAY_LABELS_SHORT, ComponentUtil.asArray(calendar.getWeekDayLabelsShort()));
    utils.addToScriptHash(map, MONTH_LABELS, ComponentUtil.asArray(calendar.getMonthLabels()));
    utils.addToScriptHash(map, MONTH_LABELS_SHORT, ComponentUtil.asArray(calendar.getMonthLabelsShort()));
    int day = calendar.getFirstWeekDay();
    if (0 <= day && day <= 6) {
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

  protected Map<String, Object> getSymbolsMap(FacesContext facesContext, UICalendar calendar) {
    Map<String, Object> map = new LinkedHashMap<String, Object>();
    RendererUtils utils = getUtils();
    utils.addToScriptHash(map, WEEK_DAY_LABELS, ComponentUtil.asArray(calendar.getWeekDayLabels()));
    utils.addToScriptHash(map, WEEK_DAY_LABELS_SHORT, ComponentUtil.asArray(calendar.getWeekDayLabelsShort()));
    utils.addToScriptHash(map, MONTH_LABELS, ComponentUtil.asArray(calendar.getMonthLabels()));
    utils.addToScriptHash(map, MONTH_LABELS_SHORT, ComponentUtil.asArray(calendar.getMonthLabelsShort()));
    int day = calendar.getFirstWeekDay();
    if (0 <= day && day <= 6) {
      utils.addToScriptHash(map, "firstWeekDay", day);     
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

  protected Map<String, Object> getSymbolsMap(FacesContext facesContext, UICalendar calendar) {
    Map<String, Object> map = new LinkedHashMap<String, Object>();
    RendererUtils utils = getUtils();
    utils.addToScriptHash(map, WEEK_DAY_LABELS, ComponentUtil.asArray(calendar.getWeekDayLabels()));
    utils.addToScriptHash(map, WEEK_DAY_LABELS_SHORT, ComponentUtil.asArray(calendar.getWeekDayLabelsShort()));
    utils.addToScriptHash(map, MONTH_LABELS, ComponentUtil.asArray(calendar.getMonthLabels()));
    utils.addToScriptHash(map, MONTH_LABELS_SHORT, ComponentUtil.asArray(calendar.getMonthLabelsShort()));
    int day = calendar.getFirstWeekDay();
    if (0 <= day && day <= 6) {
      utils.addToScriptHash(map, "firstWeekDay", day);     
    } else if (day != Integer.MIN_VALUE) {
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

    Map<String, Object> map = new LinkedHashMap<String, Object>();
    RendererUtils utils = getUtils();
    utils.addToScriptHash(map, WEEK_DAY_LABELS, ComponentUtil.asArray(calendar.getWeekDayLabels()));
    utils.addToScriptHash(map, WEEK_DAY_LABELS_SHORT, ComponentUtil.asArray(calendar.getWeekDayLabelsShort()));
    utils.addToScriptHash(map, MONTH_LABELS, ComponentUtil.asArray(calendar.getMonthLabels()));
    utils.addToScriptHash(map, MONTH_LABELS_SHORT, ComponentUtil.asArray(calendar.getMonthLabelsShort()));
    int day = calendar.getFirstWeekDay();
    if (0 <= day && day <= 6) {
      utils.addToScriptHash(map, "firstWeekDay", day);     
    } else if (day != Integer.MIN_VALUE) {
      facesContext.getExternalContext()
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

    utils.addToScriptHash(map, WEEK_DAY_LABELS_SHORT, ComponentUtil.asArray(calendar.getWeekDayLabelsShort()));
    utils.addToScriptHash(map, MONTH_LABELS, ComponentUtil.asArray(calendar.getMonthLabels()));
    utils.addToScriptHash(map, MONTH_LABELS_SHORT, ComponentUtil.asArray(calendar.getMonthLabelsShort()));
    int day = calendar.getFirstWeekDay();
    if (0 <= day && day <= 6) {
      utils.addToScriptHash(map, "firstWeekDay", day);     
    } else if (day != Integer.MIN_VALUE) {
      facesContext.getExternalContext()
        .log(day + " value of firstWeekDay attribute is not a legal one for component: "
            + MessageUtil.getLabel(facesContext, calendar) + ". Default value was applied.");
    }
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

              label = bundle2.getString(bundleKey);
            } catch (MissingResourceException mre) {
            // Current key was not found, ignore this exception;
            }
          }
          utils.addToScriptHash(labels, name, label);      
      }
    }
    return labels;
  }
}
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

            Map<String, Object> menuItemAttributes = menuItem.getAttributes();

            // create attributes string for item without parent
            Map<String, Object> attrMap = new HashMap<String, Object>(3);
      if (!isNestedInMenu(menuItem)) {
                rendererUtils.addToScriptHash(attrMap, "styleClass", menuItemAttributes.get(HTML.STYLE_CLASS_ATTR),
                  null, ScriptHashVariableWrapper.DEFAULT);

                rendererUtils.addToScriptHash(attrMap, "onselect", menuItemAttributes.get(HTML.onselect_ATTRIBUTE),
                      null, ScriptHashVariableWrapper.EVENT_HANDLER);
            }
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

            Map<String, Object> attrMap = new HashMap<String, Object>(3);
      if (!isNestedInMenu(menuItem)) {
                rendererUtils.addToScriptHash(attrMap, "styleClass", menuItemAttributes.get(HTML.STYLE_CLASS_ATTR),
                  null, ScriptHashVariableWrapper.DEFAULT);

                rendererUtils.addToScriptHash(attrMap, "onselect", menuItemAttributes.get(HTML.onselect_ATTRIBUTE),
                      null, ScriptHashVariableWrapper.EVENT_HANDLER);
            }

            //-----------------------------------
            StringBuilder scriptValue = new StringBuilder();
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

                scriptValue.append(";");
              }
              scriptValue.append("RichFaces.Menu.submitForm(event,this");
             
              Map<String, Object> scriptOptionsMap = new HashMap<String, Object>(5);
              rendererUtils.addToScriptHash(scriptOptionsMap, "a", attrMap, null, ScriptHashVariableWrapper.DEFAULT);
             
              Map<String, Object> paramsMap = getParamsAsMap(context, menuItem);
              rendererUtils.addToScriptHash(scriptOptionsMap, "p", paramsMap, null, ScriptHashVariableWrapper.DEFAULT);

              String target = (String) menuItemAttributes.get("target");
View Full Code Here

Examples of org.ajax4jsf.renderkit.RendererUtils.addToScriptHash()

             
              Map<String, Object> scriptOptionsMap = new HashMap<String, Object>(5);
              rendererUtils.addToScriptHash(scriptOptionsMap, "a", attrMap, null, ScriptHashVariableWrapper.DEFAULT);
             
              Map<String, Object> paramsMap = getParamsAsMap(context, menuItem);
              rendererUtils.addToScriptHash(scriptOptionsMap, "p", paramsMap, null, ScriptHashVariableWrapper.DEFAULT);

              String target = (String) menuItemAttributes.get("target");
              rendererUtils.addToScriptHash(scriptOptionsMap, "t", target, null, ScriptHashVariableWrapper.DEFAULT);

              if (!scriptOptionsMap.isEmpty()) {
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.