4 Replies Latest reply on Jun 20, 2014 5:50 AM by michpetrov

    Richfaces 4 is disabled

    naruto_t3

      Hi all,

       

      I used jboss7.1.1, myfaces 2.1.12 and richfaces 4.3.7 for my project. I try test a4j:poll for richfaces 4, however, it is not actice. I checked html by pressed "F12" in IE9 and saw that "new Richfaces.io.poll ..." is claimed like comment. Therefore, it cannot render page by interval time.

       

      1.PNG

      Could you help me why I met this problem, please?

       

      Best regards,

      Trung Trinh.

        • 1. Re: Richfaces 4 is disabled
          ctomc

          Moved to RichFaces forum

          • 2. Re: Richfaces 4 is disabled
            michpetrov

            Hi,

            comments around JavaScript will not disable it; if the poll is not working the problem is somewhere else. Did you try using <a4j:log>?

            • 3. Re: Richfaces 4 is disabled
              naruto_t3

              Hi,

              I try show the Richfaces log by <a4j:log> and saw the error message like below:

               

              info [00:49:06.576]: Received 'begin' event from <span id=form1:poll ...>

              info [00:49:06.593]: Received 'beforedomupdate' event from <span id=form1:poll ...>

              info [00:49:06.594]: Server returned responseText: <?xml version="1.0" encoding="utf-8"?><partial-response><changes><update id="form1:poll"><![CDATA[<span style="display:none;" id="form1:poll"><script type="text/javascript"><!--new RichFaces.ui.Poll("form1:poll",{"enabled":true,"interval":2000,"ontimer":function(event){RichFaces.ajax("form1:poll",event,{"incId":"1"} )}} )//--></script></span>]]></update><update id="form2:myPanel"><![CDATA[<span id="form2:myPanel"><span id="form2:serverDate" style="font-size:16px">Server Date: Fri Jun 20 00:49:06 PDT 2014</span></span>]]></update><update id="javax.faces.ViewState"><![CDATA[rO0ABXQAATY=]]></update><extension id="org.richfaces.extension"><render>form1:poll form2:myPanel</render></extension></changes></partial-response>

              warn [00:49:06.595]: richfaces.queue: ajax submit error

              error[00:49:06.596]: Received 'error@malformedXML' event from <span id=form1:poll ...>

              error[00:49:06.597]: [status=200] no error details


              I also search and investigate this issue and get more information about this issue:

              https://community.jboss.org/thread/229336

              https://issues.jboss.org/browse/RF-12865

              https://code.google.com/p/omnifaces/issues/detail?id=191&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Reporter%20Modified%20Summary

               

              However, I cannot find out the solution

               

              Best regards,

              Trung Trinh.

              • 4. Re: Richfaces 4 is disabled
                michpetrov

                Can you post the page code? From the HTML it seems the poll is not inside a form, that's certainly a mistake.