2 Replies Latest reply on Sep 8, 2008 1:43 PM by Thai Dang Vu

    rich:calendar javascript error: Calendar is undefined

    Thai Dang Vu Apprentice

      I sometimes got this Javascript error in IE6 when using the calendar component. It seems to me that if I re-render that calendar component after an ajax request, the calendar component works fine.

      Does anybody have the same situation? and is there anything that can be done?

        • 1. Re: rich:calendar javascript error: Calendar is undefined
          Ilya Shaikovsky Master

          page snippet required.

          Also which version you using?

          • 2. Re: rich:calendar javascript error: Calendar is undefined
            Thai Dang Vu Apprentice

            page snippet:

            <h:panelGroup id="selectedPhysicianBox">
             <fieldset style="border: 1px solid #6D7535;">
             <legend><h:outputText style="font-weight: bold;" value="Set Options on Physician" /></legend>
             <rich:spacer height="9" /><br/>
             <h:panelGrid columns="4">
             <rich:spacer width="18"/>
             <h:outputText value="Effective Date for Physician"/>
             <rich:spacer width="9"/>
             <h:graphicImage value="/resources/img/16x16/placeholder.gif"/>
             </h:panelGrid>
             <h:panelGrid columns="8">
             <rich:spacer width="23"/>
             <h:outputText value="Starting:" style="font-style: italic;"/>
             <a4j:outputPanel layout="block">
             <rich:calendar value="#{pmodel.workingPhysician.startDate}" datePattern='MM/dd/yyyy'
             popup="true" enableManualInput="true" />
             </a4j:outputPanel>
             <rich:spacer width="18"/>
             <h:outputText value="Ending:" style="font-style: italic;"/>
             <a4j:outputPanel layout="block">
             <rich:calendar value="#{pmodel.workingPhysician.endDate}" datePattern='MM/dd/yyyy'
             popup="true" enableManualInput="true"/>
             </a4j:outputPanel>
             </h:panelGrid>
             </fieldset>
            </h:panelGroup>
            

            I'm using 3.2.1.GA.
            At first, I didn't use the a4j:outputPanel around the calendars and I got errors. So I look at the calendar example and add that in, but it doesn't help.