partial-response

<partial-response> XML shown as plain text after ajax redirect on security constraint in WildFly

六月ゝ 毕业季﹏ 提交于 2019-12-17 17:03:57
问题 I've got this weird problem with ajax redirect on a security constraint: When an ajax call is made (by clicking on a sortable p:dataTable column or when a p:poll triggers) on a role-secured page after my session timed out, a <partial-response><redirect-url=... XML from OmniFaces is shown on the screen. When I remove OmniFaces, the ajax calls seem to fail silently and I don't get the XML shown. Security is configured as following in web.xml: <security-constraint> <web-resource-collection> <web

Spring Security login after session expiration redirects to last JSF ajax request and displays its <partial-response> XML response like plain text

*爱你&永不变心* 提交于 2019-12-01 10:56:52
I'm working with a project that use Spring Security, Spring bean, JSF, PrimeFaces and Hibernate in combination. In the homepage, I use poll to automatically get newest data after every 10 seconds. <h:form> <p:poll interval="10" listener="#{mailBean.refreshMail}" update=":list-email"/> </h:form> The problem is after I log-in to the homepage, I open the homepage in another tab and in that tab, I click log-out and it redirect to the log-in page. Even though the session ends, poll will continue to send ajax request and get response after every 10 seconds. Then I wait some seconds and click log-in

Spring Security login after session expiration redirects to last JSF ajax request and displays its <partial-response> XML response like plain text

放肆的年华 提交于 2019-12-01 09:40:47
问题 I'm working with a project that use Spring Security, Spring bean, JSF, PrimeFaces and Hibernate in combination. In the homepage, I use poll to automatically get newest data after every 10 seconds. <h:form> <p:poll interval="10" listener="#{mailBean.refreshMail}" update=":list-email"/> </h:form> The problem is after I log-in to the homepage, I open the homepage in another tab and in that tab, I click log-out and it redirect to the log-in page. Even though the session ends, poll will continue

<partial-response> XML shown as plain text after ajax redirect on security constraint in WildFly

狂风中的少年 提交于 2019-11-28 01:59:11
I've got this weird problem with ajax redirect on a security constraint: When an ajax call is made (by clicking on a sortable p:dataTable column or when a p:poll triggers) on a role-secured page after my session timed out, a <partial-response><redirect-url=... XML from OmniFaces is shown on the screen. When I remove OmniFaces, the ajax calls seem to fail silently and I don't get the XML shown. Security is configured as following in web.xml: <security-constraint> <web-resource-collection> <web-resource-name>Pages</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth