2 Replies Latest reply on Jan 21, 2011 12:25 PM by Robert Gary

    a4j:poll redirect redux

    Robert Gary Newbie

      I see that there has been some discussion about this previously but I don't see a clear solution. I have a filter that may occasionally attempt to redirect the user to another page...

       

      web.xml

          <filter>

              <filter-name>JsfLoginCheckFilter</filter-name>

              <filter-class>

                  com.xxx.client.jsf.filter.LoginFilter

              </filter-class>

          </filter>

       

      The filter does...

              ..... (isValid is set for a variety of complex reasons)

              if ( isValid == false)

              {

                  response.sendRedirect("/servlet.html?page=login");

                  if ( session != null )

                  {

                      session.invalidate();

                  }

              }

              else

                  chain.doFilter(request, response); // let other filters do their job

       

       

      However, a4j:poll just shutsdown after a redirect request and does not honor the redirect. Is there anyway I can detect a redirect request in a a4j:poll hook or a way to pass a response or session variable that I can read somewhere in JS to make the redirect happen?

       

      -Robert