5 Replies Latest reply on Dec 7, 2007 3:01 AM by inv3r53 d

    unable to reRender tabpanel

    inv3r53 d Novice

       

      <a4j:region>
      <h:selectOneRadio value="#{myBean.selected}">
      <f:selectItems value="#{myBean.displayItems}" />
      <a4j:support event="onclick" action="#{myBean.action}" reRender="id_tabbedPanel" />
      </h:selectOneRadio>
      </a4j:region>
      


      w.r.t. above code, am trying to rerender a tab panel.this works in IE6 but not in Firefox 2.0.xx

      what couldbe the problem?


        • 1. Re: unable to reRender tabpanel
          Ilya Shaikovsky Master

          check a4j:log for possible errors.

          • 2. Re: unable to reRender tabpanel
            inv3r53 d Novice

            i checked it but could not find any solution to resolve itt..
            i have pasted as below:
            could it be ajax4jsf problem?

            help much appreciated.

            firefox log

            debug[16:53:57,096]: Attempt to update part of page for Id: j_id37:id_tabPanel
            debug[16:53:57,096]: call getElementById for id= j_id37:id_tabPanel
            debug[16:53:57,096]: Replace content of node by replaceChild()
            debug[16:53:57,112]: search for elements by name 'script' in element span
            debug[16:53:57,112]: getElementsByTagName found 1
            debug[16:53:57,112]: Scripts in updated part count : 1
            debug[16:53:57,112]: Update part of page for Id: j_id37:id_tabPanel successful
            debug[16:53:57,112]: call getElementById for id= ajax-view-state
            debug[16:53:57,112]: Hidden JSF state fields: [object HTMLSpanElement]
            debug[16:53:57,112]: Namespace for hidden view-state input fields is undefined
            debug[16:53:57,112]: search for elements by name 'input' in element span
            debug[16:53:57,127]: getElementsByTagName found 1
            debug[16:53:57,127]: Replace value for inputs: 8 by new values: 1
            debug[16:53:57,127]: Input in response: javax.faces.ViewState
            debug[16:53:57,127]: Found same input on page with type: hidden
            debug[16:53:57,127]: Found same input on page with type: hidden
            debug[16:53:57,127]: search for elements by name 'INPUT' in element span
            debug[16:53:57,127]: getElementsByTagName found 0
            debug[16:53:57,127]: Replace value for inputs: 8 by new values: 0
            debug[16:53:57,127]: call getElementById for id= _A4J.AJAX.focus
            debug[16:53:57,127]: No focus information in response
            debug[16:53:57,127]: call getElementById for id= org.ajax4jsf.oncomplete
            debug[16:53:57,174]: Evaluate script replaced area in document: //
            



            IE6:a4j:log
            Attempt to update part of page for Id: j_id37:id_tabPanel
            debug[16:54:42,989]: call selectSingleNode for id= j_id37:id_tabPanel
            debug[16:54:43,004]: Replace content of node by outerHTML()
            debug[16:54:43,020]: search for elements by name 'script' in element span
            debug[16:54:43,020]: selectNodes found 1
            debug[16:54:43,020]: Scripts in updated part count : 1
            debug[16:54:43,020]: Update part of page for Id: j_id37:id_tabPanel successful
            debug[16:54:43,020]: call selectSingleNode for id= ajax-view-state
            debug[16:54:43,020]: Hidden JSF state fields:
            debug[16:54:43,020]: Namespace for hidden view-state input fields is undefined
            debug[16:54:43,020]: search for elements by name 'input' in element span
            debug[16:54:43,020]: selectNodes found 1
            debug[16:54:43,020]: Replace value for inputs: 8 by new values: 1
            debug[16:54:43,020]: Input in response: javax.faces.ViewState
            debug[16:54:43,020]: Found same input on page with type: hidden
            debug[16:54:43,020]: Found same input on page with type: hidden
            debug[16:54:43,020]: search for elements by name 'INPUT' in element span
            debug[16:54:43,020]: selectNodes found 0
            debug[16:54:43,020]: Replace value for inputs: 8 by new values: 0
            debug[16:54:43,036]: call selectSingleNode for id= _A4J.AJAX.focus
            debug[16:54:43,036]: No focus information in response
            debug[16:54:43,036]: call selectSingleNode for id= org.ajax4jsf.oncomplete
            debug[16:54:43,082]: Evaluate script replaced area in document: //
            
            


            • 3. Re: unable to reRender tabpanel
              inv3r53 d Novice

              even if i use a4j button to reRender based on choice , i get same prob.
              action is called but rerender doesnt happen for tab panel.

              appears liek bug in richfaces?

              • 4. Re: unable to reRender tabpanel
                inv3r53 d Novice

                my env:
                RichFaces ver:3.1.2 GA
                firefox:2.0.0.11-->prob


                all this works fine in IE6.0.x.x

                • 5. Re: unable to reRender tabpanel
                  inv3r53 d Novice

                  ok..basically the a4j:mediaOutput image isnt being rerendered.
                  However if i clear the cache in firefox then it rerenders image correctly.

                  is this a bug?