|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Re: Problem using DWR + GWT. IE 7 performs Reverse AJAX ok but Firefox only refreshes each 60 secondsHi again.
I'm not too sure about the problem I had but I've tried with another web application server in a different OS environment and it worked, so my problem is now fixed. Regards
|
|
|
Re: Problem using DWR + GWT. IE 7 performs Reverse AJAX ok but Firefox only refreshes each 60 secondsThanks for writing back. What App Server were you originally using?
carlosfernandezherranz wrote: > Hi again. > > I'm not too sure about the problem I had but I've tried with another web > application server in a different OS environment and it worked, so my > problem is now fixed. > > Regards > > > > carlosfernandezherranz wrote: > >> Hi! >> >> I'm using DWR 3.0 RC1: >> >> major:3 >> minor:0 >> revision:0 >> build:116 >> title:rc1 >> >> and I'm facing a problem using DWR in my GWT classes. My experiment is >> based on this post: >> >> http://things-that-i-noticed.blogspot.com/2009/02/reverse-gwt-via-dwr.html >> >> I've followed the post step by step and it works fine in IE 7, a value >> inside a TextBox is refreshed almost inmediately but when I tried it on >> Firefox 3.0, I can check using firebug that the >> http://[whatever]/dwr/call/plainpoll/ReverseAjax.dwr requests only arrive >> each 60 seconds. It also happens with the code I downloaded from that >> post. >> >> Here is my dwr.xml file, web.xml and the place where I set the reverse >> ajax on: >> >> dwr.xml >> >> >> <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting >> 3.0//EN" "http://getahead.org/dwr/dwr30.dtd"> >> <dwr> >> <allow> >> <create creator="new" javascript="Attendant"> >> >> </create> >> <create creator="new" javascript="Directory"> >> >> </create> >> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.vo.CallVO"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.vo.BaseVO"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.vo.ResponseVO"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.vo.ChangesVO"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.vo.DirectoryVO"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.vo.AttendantVO"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.core.PageContext"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.web.core.QueueCall"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.httpserver.beans.ValidarRequest"/> >> <convert converter="bean" >> match="whatever.PersonalAttendant.server.httpserver.core.AttendantRecurso"/> >> >> </allow> >> </dwr> >> >> >> web.xml >> >> >> ... >> <servlet> >> <servlet-name>dwr-invoker</servlet-name> >> <display-name>PersonalAttendant</display-name> >> <description>PersonalAttendant</description> >> >> <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> >> >> <init-param> >> <param-name>debug</param-name> >> <param-value>true</param-value> >> </init-param> >> >> <!-- --> >> <init-param> >> <param-name>logLevel</param-name> >> <param-value>ERROR</param-value> >> </init-param> >> >> <init-param> >> <param-name>maxWaitAfterWrite</param-name> >> <param-value>-1</param-value> >> </init-param> >> >> <!-- Set to true to enable polling and comet --> >> <init-param> >> <param-name>activeReverseAjaxEnabled</param-name> >> <param-value>true</param-value> >> </init-param> >> >> <!-- 72 hours scriptSession --> >> <init-param> >> <param-name>scriptSessionTimeout</param-name> >> <param-value>259200000</param-value> >> </init-param> >> >> >> <init-param> >> >> <param-name>crossDomainSessionSecurity</param-name> >> <param-value>false</param-value> >> </init-param> >> >> <init-param> >> <param-name>classes</param-name> >> <param-value> >> >> whatever.PersonalAttendant.server.web.Attendant, >> >> whatever.PersonalAttendant.server.web.DirectoryServlet, >> >> whatever.PersonalAttendant.server.web.actions.LoginAction, >> >> whatever.PersonalAttendant.server.web.vo.CallVO, >> >> whatever.PersonalAttendant.server.web.vo.ChangesVO, >> >> whatever.PersonalAttendant.server.web.vo.AttendantVO, >> >> whatever.PersonalAttendant.server.httpserver.core.AttendantRecurso >> </param-value> >> </init-param> >> >> <load-on-startup>2</load-on-startup> >> </servlet> >> ... >> >> Code in the GWT client class >> >> public native void setActiveReverseAjax() /*-{ >> try{ >> //a delay is needed or dwr won't have been set up properly when this is >> called >> window.setTimeout("dwr.engine.setActiveReverseAjax(true)",2500); >> >> } catch(err){ >> alert("setActiveReverseAjax failed :YOU WILL not be receiving pushed >> updates from the server though you may be able to send data and receive >> updates only just after data is sent. You can try increasing the delay in >> setActiveReverseAjax() in SampleChat.java --> Reason is: "+err ); >> } >> }-*/; >> >> >> Could it be related to GWT or is some kind of configuration error in DWR? >> >> Thank you! >> >> >> >> > > __________ Information from ESET NOD32 Antivirus, version of virus signature database 4528 (20091021) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Problem using DWR + GWT. IE 7 performs Reverse AJAX ok but Firefox only refreshes each 60 secondsI was using Tomcat 6 and later I tried Glassfish 2.1 using my environment (VMWare Workstation 6.5.1 running a Win XP virtual machine) and it didn't work. Then, I forwarded the war file to another workmate and he tried it in a Glassfish server with success using IE and Firefox.
Sorry I can't provide further information but if get to some conclusion I'll post it.
|
| Free embeddable forum powered by Nabble | Forum Help |