1 2 Previous Next 15 Replies Latest reply on Jan 22, 2009 5:00 AM by Anne Buit

    HtmlCalendar <rich:calendar>, multiple date patterns, button

    Anne Buit Newbie

      Hello,

      I was wondering whether or not it is possible to set multiple date patterns for the RichFaces' calendar component, in a dynamich JSF environment, to be specific.

      HtmlCalendar.setDatePattern("dd MMMM yyyy, HH:mm")
      works like a charm, however,
      setDatePattern(
      "dd MMMM yyyy, HH:mm;" +
      "d MMMM yyyy, HH:mm;" +
      "dd-MMMM-yyyy, HH:mm;" +
      "d-MMMM-yyyy, HH:mm;" +
      "dd-MM-yyyy, HH:mm;" +
      "d-M-yyyy, HH:mm;" +
      "dd-M-yyyy, HH:mm;" +
      "d-MM-yyyy, HH:mm;" +
      "dd MM yyyy, HH:mm;" +
      "d M yyyy, HH:mm; " +
      "dd M yyyy, HH:mm; " +
      "d MM yyyy, HH:mm;" +
      "ddMMyyyy, HH:mm");

      does unfortunately not work.

      Second, in a dynamic JSF environment, it is not possible to set onClicks, onBlur's etc of the calendar button. At least, I can't find the properties.

      Thanks in advance, keep up the great work.

        1 2 Previous Next