隐藏警告消息自动更新 primefaces JSF

Hiding warning messaging autoUpdate primefaces JSF

我的记录器中有这些消息类型 INFO,我不想隐藏所有 INFO 日志,只是我想删除(避免)primefaces 消息。

14:11:08,325 INFO  [org.primefaces.component.outputpanel.OutputPanelRenderer] 
    (default task-2) autoUpdate attribute is deprecated and will be removed in a future 
    version, use p:autoUpdate component instead.


14:11:08,325 INFO  [org.primefaces.component.growl.GrowlRenderer] 
    (default task-2) autoUpdate attribute is deprecated and will be removed in a future 
    version, use p:autoUpdate component instead.

14:11:08,325 INFO  [org.primefaces.component.messages.MessagesRenderer] 
    (default task-2) autoUpdate attribute is deprecated and will be removed in a future
    version, use p:autoUpdate component instead.

可能吗? 是的?怎么做?

Is it possible?

Yes?

是(如果前一个问题的答案是否定的,那么这个问题的答案也将是否 ;-))

How to do it?

三个选项:

  • 仅将 PrimeFaces 组件的日志记录设置为 'WARNING'
  • 下载源代码并找到此日志行并将其更改为例如调试,重新编译并使用它(或者在它周围添加一个额外的检查,只在开发模式下显示它)
  • 检查您是否实际使用 autoUpdate 属性和 'fix' 它以便您使用新的 <p:autoUpdate .. /> 元素来代替