2 Replies Latest reply on Sep 13, 2007 11:54 AM by j-pro

    RC6: Calendar error - Richfaces.getComponent is not a functi

    j-pro

      Using RC6 rich:calendar... Works perfectly, except the month and year changing in Mozilla Firefox 2.0.0.6. When I press arrows for changing month or year, Firebug gives an error: "Richfaces.getComponent is not a function".

      It's strange, because when I tested this component in RF Demo - it worked nice.

      Here is my jsf code:

      <?xml version="1.0" encoding="UTF-8"?>
      <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:jsp="http://java.sun.com/JSP/Page"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      ...
      
      <h:panelGroup>
       <a4j:outputPanel id="calendar" layout="block">
       <rich:calendar id="employeeDocumentDateEdit"
       value="#{amBean.employee.documentDate}"
       enableManualInput="#{amBean.calendarEnableManualInput}"
       popup="#{amBean.calendarPopup}"
       locale="#{amBean.calendarLocale}"
       datePattern="#{amBean.calendarPattern}"
       showInput="#{amBean.calendarShowInput}"
       required="true"/>
       </a4j:outputPanel>
       <h:message style="color: red" for="employeeDocumentDateEdit"/>
      </h:panelGroup>
      
      ...




      And the second notice about rich:calendar. In IE 6 it works, months and years changes well, but it's design is like that: http://www.imagehosting.com/out.php/t1135086_1.PNG


      Thank you very much for your answer.