gpt4 book ai didi

jsf - Facelet 被修改消息

转载 作者:行者123 更新时间:2023-12-03 18:14:04 27 4
gpt4 key购买 nike

当我的页面无法正确呈现时,我会在 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

最佳答案

部署新的 EAR 时或 war从时间设置与部署应用程序的服务器的时间设置不同的机器创建,刷新 JSF组件可能发生。

日志将显示以下错误。

原因是,每当发出新请求时,服务器都会将页面视为在 future 时间戳中进行了修改并再次开始编译。这会导致再次创建组件树,从而导致组件存储的所有状态丢失。

要解决此问题,请添加 facelets.REFRESH_PERIODweb.xmlREFRESH_PERIOD指示,当请求页面时,编译器应检查更改的时间间隔(以秒为单位)。如果您不希望编译器在编译页面后检查更改,则使用值 -1 .设置低刷新周期有助于在开发过程中编辑正在运行的应用程序中的页面。
web.xml ,应该是这样的,

<context-param>
<param-name>facelets.REFRESH_PERIOD</param-name>
<param-value>-1</param-value>
</context-param>
-1表示不检查更改,因为生产服务器设置此值是安全的。

关于jsf - Facelet 被修改消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3820111/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com