status and timer problem
ivanjsm Apr 20, 2011 8:06 AMThere 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"???