3 Replies Latest reply on Aug 11, 2010 11:07 AM by boy18nj

    Dynamically output text value without server round trip?

    boy18nj
      <s:decorate template="/platform/fields/filter.xhtml">
           <ui:define name="label">Acctg Update Date From</ui:define>
           <rich:calendar id="fromDate" value="#{acctgGltransList.fromDate}"
            datePattern="MM/dd/yyyy" required="true"
            requiredMessage="Please enter Acctg Update Date From">
            <a:support event="onblur" reRender="transDate"
             bypassUpdates="true" ajaxSingle="true" />
           </rich:calendar>
          </s:decorate>

       

      Whenever I enter the date in above calendar field, I would expect the below outputText field display the date because I am rerendering it.(Without the refresh of page)

       

      <h:outputText id="transDate" value="#{acctgGltransList.fromDate}"/>
       

       

      Any thoughts?

        • 1. Re: Dynamically output text value without server round trip?
          boy18nj

          Even this is not working-

           

          <s:decorate template="/fields/filter.xhtml">
               <ui:define name="label">Acctg Update Date From</ui:define>
               <rich:calendar id="fromDate" value="#{acctgGltransList.fromDate}"
                datePattern="MM/dd/yyyy" required="true"
                requiredMessage="Please enter Acctg Update Date From">
                <a:support event="" reRender="oninputclick"/>
               </rich:calendar>
              </s:decorate>
              
              
              <s:decorate id="acctgAcctIdField" template="/platform/fields/edit.xhtml">         
                    <h:outputText id="transDate" value="#{acctgGltransList.fromDate}"/>
                    </s:decorate>
          

           

           

          On changing the date's either thru mouse or keyboard it won't update the outputText field.

           

          Looks like bug?

          • 2. Re: Dynamically output text value without server round trip?
            ilya_shaikovsky

            use first snippet but remove

             bypassUpdates="true"

             

            P.S. but it's not a "without server round trip" as ajax request - works the same as standard post but withoutfull page update.

            • 3. Re: Dynamically output text value without server round trip?
              boy18nj

              Still it won't work. I receive the following error in my I.E.8

               

              Webpage error details
              User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6.5; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; MS-RTC LM 8; .NET CLR 3.5.21022; InfoPath.2)
              Timestamp: Wed, 11 Aug 2010 14:56:55 UTC
               
              Message: Object doesn't support this property or method
              Line: 2583
              Char: 12
              Code: 0
              URI: http://localhost:8080/ExampleWeb/a4j/g/3_2_2.GA/org/ajax4jsf/framework.pack.js