3 Replies Latest reply on Sep 1, 2008 9:36 AM by ilya_shaikovsky

    calendar reRender problem

    hrast200

      Hello!

      I have problem with calendar component (rich 3.2.1 and 3.2.2 CR1).
      reRender doesn't work at all and if I try to do a4j:support, it works but the value selected in calender is one trip to server late and the page works very slowly.

      Eg. if I choose 12th and then 15th, the value of 12th will be set on server not before I click the next value (15th). Any ideas?

      When I try to stop the server, I get message like this
      [StandardWrapper] Waiting for 1 instance(s) to be deallocated

      Manual input works just fine.

      This is the page

      ...
      <rich:panel id="panel-main" styleClass="panel-main">
       <h:form>
       <a4j:region id="ajax-region">
       <h:panelGrid id="pg1" columns="1">
       <rich:calendar id="c0" value="#{stacion_imp_bean.datum}"
       popup="true" rendered="true"
       inputClass="input-field input-field-cal"
       converter="EkoDateConverter" enableManualInput="true"
       buttonClass="calendar-button" datePattern="dd.MM.yyyy"
       buttonIcon="/images/datepicker.gif" showApplyButton="false"
       direction="bottom-right" jointPoint="bottom-right"
       weekDayLabels="p,u,s,c,p,s,n"
       weekDayLabelsShort="p,u,s,c,p,s,n"
       monthLabels="1,2,3,4,5,6,7,8,9,10,11,12"
       monthLabelsShort="1,2,3,4,5,6,7,8,9,10,11,12"
       todayControlMode="hidden" required="false" cellWidth="15"
       cellHeight="15">
       <a4j:support event="ondateselected" reRender="dt1"/>
       </rich:calendar>
       </h:panelGrid>
       <rich:dataTable id="dt1" value="#{stacion_imp_bean.importLogList}"
       var="current">
       <rich:column>#{current.cemId}</rich:column>
       <rich:column>#{current.tekst}</rich:column>
       </rich:dataTable>
       <h:messages />
       <a4j:log/>
       </a4j:region>
      </h:form>
      </rich:panel>
      ...
      



        • 1. Re: calendar reRender problem
          ilya_shaikovsky

          use onchanged instead of ondateselected. There was some refactoring according to some other requests and unfortunatelly we had to change some attributes behaviour.

          ondateselected event is fired after the data selected but before the input updated.

          • 2. Re: calendar reRender problem
            hrast200

            Thank you!

            Now the thing is working but when I set date by manual input, it takes 18 sec to get information (I believe it is called server request - progress bar is shown at the bottom of my browser) but when I select that same date, it takse 140 sec to get that same data from database (a4j:status is shown - I believe it is ajax request). Why is that so?

            • 3. Re: calendar reRender problem
              ilya_shaikovsky

              unfortunatelly could not reproduce this on our side and I'm sure that should be no difference between this two requests. Could you please profile you request and reopen the bug with profiler log.