Package org.richfaces.component

Examples of org.richfaces.component.UICalendar


          + onEventDefinition.toScript(), null);
    }
  }

  public String getInputValue(FacesContext context, UIComponent component) {
    UICalendar input = (UICalendar) component;
    // XXX nick - nick - can contain either Date or String instance
    //Fix for myFaces 1.1.x RF-997
    Date value = null;
    try {
      value = input.getAsDate(input.getSubmittedValue());
    } catch (Exception e) {
      if (log.isDebugEnabled()) {
        log.debug(" InputValue: "
            + e.toString(), e);
      }
      value = null;   
    }
    Date curVal = input.getAsDate(input.getValue());

    DateTimeConverter converter = new DateTimeConverter();
    converter.setPattern(input.getDatePattern());
    Object locale = input.getLocale();
    converter.setLocale(input.getAsLocale(locale));
    converter.setTimeZone(input.getTimeZone());
    if (value == null) {
      return converter.getAsString(context, input, curVal);
    } else {
      return converter.getAsString(context, input, value);
    }
View Full Code Here

TOP

Related Classes of org.richfaces.component.UICalendar

Copyright © 2018 www.massapicom. 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.