Facelet是修改后的消息

时间:2010-09-29 08:56:43

标签: jsf richfaces seam facelets

当我的页面无法正常渲染时,我在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

2 个答案:

答案 0 :(得分:18)

部署从机器创建的新EARwar时间设置与部署应用程序的服务器的时间设置不同时,可能会发生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)

这是Facelets的错误,已在新版本中修复。您使用的是哪个版本的facelets?

Here's some info

Facelet Bugtracker