-
1. Re: Ajax functionality stopped working
strannik_2011 Apr 22, 2010 4:53 AM (in response to strannik_2011)More clearly there is one and first successful update of outtext on problematic system (after page is loaded).
After that all the responses come as I described under And extract of the log output where Ajax functionality is broken. -
2. Re: Ajax functionality stopped working
nbelaevski Apr 22, 2010 5:37 AM (in response to strannik_2011)Sergey,
Any messages in server log?
-
3. Re: Ajax functionality stopped working
strannik_2011 Apr 22, 2010 6:33 AM (in response to nbelaevski)Nick, no error messages if you mean that. I enabled DEBUG level in log4j.properties.
log4j.logger.org.ajax4jsf=DEBUG
log4j.logger.org.richfaces=DEBUG
log4j.category.org.springframework.faces=DEBUGThe application log is attached.
-
application.log.zip 10.5 KB
-
-
4. Re: Ajax functionality stopped working
strannik_2011 Apr 22, 2010 6:38 AM (in response to strannik_2011)I also want to clarify how main page(template) is organized.
<f:view contentType="text/html" encoding="UTF-8" viewId="mainView">
<a4j:outputPanel id="mainPanel">........
</a4j:outputPanel>
</f:view> -
5. Re: Ajax functionality stopped working
harut Apr 22, 2010 7:03 AM (in response to strannik_2011)1 of 1 people found this helpfuldoes it start work when you set ajaxRendered=”true” of a4j:outputPanel?
-
6. Re: Ajax functionality stopped working
nbelaevski Apr 22, 2010 9:16 AM (in response to strannik_2011)Are you using Spring WebFlow?
-
7. Re: Ajax functionality stopped working
strannik_2011 Apr 22, 2010 9:21 AM (in response to harut)Yes, I tried that before and this specific case works. But I am not fully satisified with this solution
due to numerous side effects. For example, I have to click 2-3 times tab header to switch to another tab.
So my question was to understand the Ajax behavior. From what I see the Ajax request goes normally
to server. And response is also returned. So the communication is not broken. But why the response is not
valid so there is no refresh of UI pages?
-
8. Re: Ajax functionality stopped working
strannik_2011 Apr 22, 2010 9:22 AM (in response to strannik_2011)Yes, I am using Spring Web Flow 2.0.5.
-
9. Re: Ajax functionality stopped working
ilya_shaikovsky Apr 22, 2010 9:38 AM (in response to strannik_2011)Unfortunatelly has no tests with such configuration. Would you able to create sample for us? It would be very helpfull for investigation.
-
10. Re: Ajax functionality stopped working
strannik_2011 Apr 22, 2010 9:58 AM (in response to ilya_shaikovsky)Yes, I will create and send it.
I also seem to fixed the issue because I had to use the last solution - reboot the server and Ajax features work properly. How the question remains open - what was the issue with Ajax that cannot be fixed by restarting Tomcat but by restarting the server? Also the more informative debug log would be helpful.
-
11. Re: Ajax functionality stopped working
nbelaevski Apr 22, 2010 5:15 PM (in response to strannik_2011)Thanks Sergey, looking forward for receiving test project!