reRender + OpenLayers + multiple request problem
fobos Oct 25, 2010 11:21 AMHi all,
I have a page using richfaces and OpenLayers to display maps on my application. I have problems with extensive use of map or only for use a map together richfaces.
In my page have three extendedDataTable updated by a <a4j:poll> component with interval of 5minutes and a Map using OpenLayers in a DIV on left side of page, this maps is like a Google Maps, user can pan,zoom,click,show/hide layers of map...
The page runs fine for a time, all three tables refreshs without problems, map open ok, navigate using pan, zoom, hide/show layers...
My problem is after a time using a map i stop all operations on map and whole page, i´m only watching page with refresh in extendedDataTable´s, the page runs fine for a time, but suddenly the page broken, only one of three extendDataTable is rendered without styles and the rest of page disapears.
Analyzing requests and source of pages, the source of page when error occours is correct to update one extendedDataTable is like a response to reRender only one dataTable, but have only a content for one extendedDataTable and rest of page disapears causing page to broken.
Has a problem to reRender multiple extendedDataTable in same page ??
Why all code of page is lost and only result of a partial region replace all content of page, instead of only a region defined in reRender ??
This error also occurs with extensive use of map, map generate a large number of requests to get images to render map and when map is loading and poll do request data to update dataTables the error occour.
Concurrent requests of OpenLayers and RichFaces can cause this problem ??
I try use only one poll or three, configure many type of queues, configure parse of TIDY and NEKO, LoadStrategy.... nothing solve my problem.
This a peace of my code to explain:
<a:region> This is the polls, i try use only one poll and the error persist. I try reRender direct on extendedDataTable and in a outputpanel with dataTable but the error persist. <a:region> <h:form> <a:poll id="pollTurmas" reRender="turmasTable" action="#{MB.carregaTurmas}" enabled="true" interval="${initParam.refreshTime}" eventsQueue="gestor" limitToList="true" bypassUpdates="true" immediate="true" ajaxSingle="true"/> </h:form> </a:region> <a:region> <h:form> <a:poll id="pollServicos" reRender="servicosTable" action="#{gestorMB.carregaServicos}" enabled="#{not empty gestorMB.filter}" interval="${initParam.refreshTime}" eventsQueue="gestor" limitToList="true" bypassUpdates="true" immediate="true" ajaxSingle="true"/> </h:form> </a:region> <a:region> <h:form> <a:poll id="pollAlarmes" reRender="tableAlarmes" action="#{gestorMB.carregaAlarmes}" enabled="#{not empty gestorMB.filter}" interval="${initParam.refreshTime}" eventsQueue="gestor" limitToList="true" bypassUpdates="true" immediate="true" ajaxSingle="true"/> </h:form> </a:region> <h:form> <a:poll id="pollTurmas" reRender="turmasTable" action="#{gestorMB.carregaTurmas}" enabled="true" My three extendedDataTable: a sample of a outputpanel where the datatable is: <a:outputPanel layout="none" id="listServicos"><a:outputPanel/> <rich:extendedDataTable var="servico" id="turmasTable" value="#{gestorMB.listTurmas}" rendered="#{not empty gestorMB.listTurmas}" height="300px" enableContextMenu="false" > </rich:extendedDataTable> <rich:extendedDataTable var="servico" id="servicosTable" value="#{gestorMB.listServicos}" rendered="#{not empty gestorMB.listServicos}" height="300px" enableContextMenu="false" > <rich:extendedDataTable> <rich:extendedDataTable var="servico" id="alarmesTable" value="#{gestorMB.listAlarmes}" rendered="#{not empty gestorMB.listAlarmes}" height="300px" enableContextMenu="false" > <rich:extendedDataTable>
I using richfaces 3.3.3Final
Facelets 1.1.15
jsf 1.2 sun
Any help or tip is apreciated.
This problem has already months that I can´t solve :-(