[richfaces-issues] [JBoss JIRA] Created: (RF-4030) Javascript errors after redirect

Michael Heinen (JIRA) jira-events at lists.jboss.org
Mon Jul 28 07:50:04 EDT 2008


Javascript errors after redirect
--------------------------------

                 Key: RF-4030
                 URL: https://jira.jboss.org/jira/browse/RF-4030
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.1.5
         Environment: myFaces 1.1.5
tomahawk 1.1.5
            Reporter: Michael Heinen


I use a ServletFilter for all requests to check whether user is still logged in, his session is still valid and whether backend system are available.
If anything is wrong I redirect the current (Ajax) request to another page which can be outside of my application.

In this szenario Javascript errors occur in function A4J.AJAX.replacePage
All access to LOG has to be checked after following line:
window.document.write(req.getResponseText());

Logging debug output should not result in javascript errors.
Therefore the existence of LOG has to be checked after the response is inserted into the current document.
I found 7 occurrences
e.g. 
if (window.LOG){LOG.debug("...");}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list