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

    JavaScript Bug with Calendar in ModalPanel

    joe_leads

      Hi,

       

      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:

      do{if(obj.id==id)

       

      Essentially my JSF looks like this:

       

      <html ...>

      <head>

      ...

      </head>

      <body>

      <a4j:form id="tnForm">

      ...some other form...

      </a4j: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>

                </a4j:form>

      </rich:modalPanel>

      </body>

      </html>

       

      Any suggestions?