1 Reply Latest reply on Mar 17, 2011 10:59 AM by Johannes Lietz

    JavaScript Bug with Calendar in ModalPanel

    Johannes Lietz Newbie



      I've got a possible bug in Richfaces 3.3.3.


      I placed a calendar inside a modalpanel. The calendar input field + icon is displayed, but the date chooser popup doesn't open. It works in Chrome 10, but not in IE8 or Firefox 3.6.15.


      IE says:

      Message: Object required

      Line: 88

      Character: 4

      Code: 0

      URI: http://localhost:8080/MyProject/faces/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/calendar.js


      FF says:

      Error: obj is null

      Source: http://localhost:8080/MyProject/faces/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/calendar.js

      Line: 88


      The JS-Code in question is:



      Essentially my JSF looks like this:


      <html ...>





      <a4j:form id="tnForm">

      ...some other form...


      <rich:modalPanel id="printPanel" moveable="true" resizable="false" minHeight="350" minWidth="300">

                <a4j:form id="dateForm">

          <rich:calendar id="myCalendar" value="#{myBean.myDate}" datePattern="#{labels.calendarDateTimePattern}"></rich:calendar>

          <h:commandButton value="#{labels.someAction}" action="#{myBean.someAction}"></h:commandButton>






      Any suggestions?