3 Replies Latest reply on Nov 6, 2009 10:54 AM by lvdberg

    Not Able to Use Rich:calendar

    pkatta

      Hi,
      I am Using the rich:calendar in my page.
      When i am using the rich:calendar my other validations on the page are not working.
      Is any setting required to use this calendar.



      Another thing is that on button click i want to change the content color of the div if validations erros are there..its changes but after that it rediplays page...


      Please help regards this,


      Thanks and Regards,
      Pravin Katta

        • 1. Re: Not Able to Use Rich:calendar
          lvdberg

          Hi,


          we are not paranormally gifted in this forum, so please send us some code...

          • 2. Re: Not Able to Use Rich:calendar
            pkatta
            Hi,

            This code for rich:calendar
            <div class="row">
                                                                   <div class="label">DateBirth<h:outputText value="*" /></div>
                                                                   <div class="infoIcon"><img src="images/information.png" alt="info"/></div>
            <div class="textboxCont">
            <rich:calendar id="personBirth" value="#{person.birthDate}" enableManualInput="true" datePattern="dd/MM/yyyy" immediate="true" required="true" requiredMessage="Date of birth required." popup="true">
            <a:support event="oninputblur" reRender="errorMessages" ajaxSingle="true" oncomplete="TabError('tab1')"/>
            <a:support event="onchanged" reRender="errorMessages" bypassUpdates="true" oncomplete="TabError('tab1')"/>
            </rich:calendar>
            </div>
            <br class="clear" />
            </div>

            this code for another component on same page..

            <h:inputText id="PersonName" value="#{pserson.name}" class="inputText" required="true" requiredMessage="person Name is required.">
            <a:support event="onchange" reRender="errorMessages" bypassUpdates="true" oncomplete="TabError('tab1')"/>
            /h:inputText>

            if i am using rich:calendar i unable to validate other components in page.

            Thanks and Regards,
            Pravin Katta
            • 3. Re: Not Able to Use Rich:calendar
              lvdberg

              Hi,


              I never used double ajax-support so the following is sort of a guess (does it work that way?).


              In the first you use AjaxSingle, which means you just update a single field (the date) however the second generates a full submit and possibly the full page Load (I only see a ReRender on errorMessages whatever that is)). Be aware that you're calling javascript in the Calendar and if that fails, the rest will also fail)


              Leo