2 Replies Latest reply on May 26, 2011 4:38 PM by jbalunas

    status and timer problem

    ivanjsm

      There is a page like this:

       

       

      <?xml version='1.0' encoding='UTF-8' ?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:rich="http://richfaces.org/rich"
            xmlns:c="http://java.sun.com/jsp/jstl/core"> 
            <h:head> 
           </h:head>
        
           <h:body onload="#{TradersSymbolStats.onFirstLoad}" >
             <h:outputStylesheet library="css" name="css.css"  />
             <h:outputScript library="js" name="test_date.js" />
             <h:outputScript library="js" name="status.js" />
             <ui:include src="/waitModalPanel.xhtml" />
             <a4j:status id="waitStatus"
                          onstart="#{rich:component('wait_modal_window')}.show()"
                          onstop="#{rich:component('wait_modal_window')}.hide()" />
             <ui:include src="/upmenu.xhtml" />
              <h:panelGrid columns="2" cellpadding="0" cellspacing="0" border="0"
                           style="vertical-align:text-top;text-align:right;"
                           columnClasses="cols,cols" >
                  <h:panelGroup style="vertical-align:text-top;" >
                      <ui:include src="/leftmenu.xhtml"/>
                  </h:panelGroup>
                  <h:panelGroup> 
                         <h:form>
                             <a4j:poll interval="3000" id="p" render="p" />.
                             <rich:tabPanel >
                                 <rich:tab header="By Currency" limitRender="true" >
        
                                 </rich:tab> 
                            </rich:tabPanel>
                        </h:form>
                    </h:panelGroup>
               </h:panelGrid>
          </h:body>
      </html>
      
      

       

       

      So, the question is... how to make <a4j:poll interval="3000" id="p" render="p" />   be irresponsible to a4j:status id="waitStatus"???

        • 1. status and timer problem
          ivanjsm

          hey, people... is there any ideas about this question?

          the problem appears while using poll inside a tab.

          • 2. Re: status and timer problem
            jbalunas

            By "irresponsible" do you mean that poll is triggering the status message, and you want the poll requests to be ignored by the status?

             

            You said that you think it has something to do with having it in a tab, can you explain more?  Have you tried with poll in its own form?

             

            Have you tried narrowing the scope of the status so that it is not for every request on the page?

             

            I'm going to close the https://issues.jboss.org/browse/RF-10962 you created while we work it out in the forums.  We or you can reopen if we get more details.

             

            -Jay