0

我有一个“j_security_check 连接中断(http 代码 408)”,建议的解决方案是<meta http-equiv="refresh" content="#{session.maxInactiveInterval}"/>https://stackoverflow.com/a/2141274/1852036我的页面结构是使用template.xhtmlview.xhtml组合我的模板.xhtml:<ui:composition

<html ...
<f:view ...
<h:body ...
 <ui:insert name="content">
...

我的 view.xhtml 在session.maxInactiveInterval时刷新

<ui:composition ...
<ui:define name="content">
...

有人可以帮我这样做吗?我想刷新这个<ui:composition视图,我不能<meta http-equiv="refresh" content="#{session.maxInactiveInterval}"/>template.xhtml上使用,因为它被多个视图使用


我已经使用 p:poll 来解决类似的问题。就像是

<p:poll interval="#{session.maxInactiveInterval - 1}" process="@all"/> 
4

1 回答 1

0

我已经使用 p:poll 来解决类似的问题。就像是

<p:poll interval="#{session.maxInactiveInterval - 1}" process="@all"/> 
于 2012-12-16T18:46:15.400 回答