当我的页面无法正常渲染时,我在jboss控制台中看到了这些信息。有谁知道这意味着什么?
14:22:46,403 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,404 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,405 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,406 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,406 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,407 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,408 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,409 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,411 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,412 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,413 INFO [facelet] Facelet[/layout/header.xhtml] was modified @ 1
:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,414 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,415 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,417 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,425 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,426 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,428 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,429 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,430 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,431 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,432 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,432 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,433 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,434 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,434 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,435 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,436 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,437 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,438 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,438 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,439 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,440 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,441 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,442 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
14:22:46,443 INFO [facelet] Facelet[/layout/content.xhtml] was modified @
1:54:54 PM, flushing component applied @ 2:22:43 PM
答案 0 :(得分:18)
部署从机器创建的新EAR
或war
时间设置与部署应用程序的服务器的时间设置不同时,可能会发生JSF
组件的刷新。
日志将显示以下错误。
原因是,当发出新请求时,服务器会在未来的时间戳中将页面视为已修改并再次开始编译。这会导致再次创建组件树,导致丢失组件存储的所有状态。
要解决此问题,请将facelets.REFRESH_PERIOD
添加到web.xml
REFRESH_PERIOD
表示,当请求页面时,编译器应检查更改的秒数。如果您不希望编译器在编译页面后检查更改,则使用值-1
。设置较低的刷新周期有助于在开发过程中编辑正在运行的应用程序中的页面。
web.xml
,应该是这样的,
<context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>-1</param-value>
</context-param>
-1
表示不检查更改,因为生产服务器可以安全地设置此值。
答案 1 :(得分:3)