5 Replies Latest reply on Aug 23, 2013 2:37 PM by bleathem

    Re-rendering a popupPanel fails

    gesh92

      Hello,

       

      I was stuck today with a weird problem: Inside a popupPanel I have an a4j:commandLink which performs some action and then rerenders the whole popupPanel in order for some other content to appear inside. The method specified by the action attribute completes successfully but the Ajax request never ends!

      It was all fixed when I put all the contents inside a h:panelGroup and rerendered that.

       

      I'm currently doing a migration from RF 3 to RF 4.3.2 and this worked on the old version.

       

      I think the a4j:log is interesting to look at in this case:

       

      info [16:56:46.542]: Received 'begin' event from <input id=j_idt1018:j_idt1019 ...>
      info [16:56:47.828]: Received 'beforedomupdate' event from <input id=j_idt1018:j_idt1019 ...>
      info [16:56:47.834]: Listing content of response changes element:
      Element update for id=mergeOrgas
      <update id="mergeOrgas">
      [Some contents... the correct ones but it's way too long.]
      </update>
      Element update for id=javax.faces.ViewState
      <update id="javax.faces.ViewState"><![CDATA[-3254030570941615332:-4599631758106823444]]></update>
      Element extension for id=org.richfaces.extension
      <extension id="org.richfaces.extension"><complete>new RichFaces.ui.Tooltip("j_idt1018:targetOrgDecoDeco:j_idt1017",{"showDelay":100,"hideDelay":500,"ajax":{"incId":"1"} ,"target":"j_idt1018:targetOrgDecoDeco:targetOrgDecoSuggestImage","offset":[10,10] } );new RichFaces.ui.TabPanel("previewTarget",{"ajax":{"incId":"1"} ,"activeItem":"j_idt1020","isKeepHeight":false,"cycledSwitching":false} );new RichFaces.ui.Tab("j_idt1020",{"index":0,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1020","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1023",{"index":1,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1023","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1026",{"index":2,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1026","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1027",{"index":3,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1027","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1028",{"index":4,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1028","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1031",{"index":5,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1031","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1034",{"index":6,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1034","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1037",{"index":7,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1037","enter":null,"disabled":false} );new RichFaces.ui.Tab("j_idt1040",{"index":8,"leave":null,"togglePanelId":"previewTarget","switchMode":"client","name":"j_idt1040","enter":null,"disabled":false} );RichFaces.javascriptServiceComplete();;alert('hi');;</complete><render>mergeOrgas</render></extension>
      

       

       

      It seems to me that the "complete" event is passed not as it should be because it appears under "info [16:56:47.834]: Listing content of response changes element"

       

       

       

      Is this a bug or rerendering a popupPanel shouldn't be done in RF 4?