【问题标题】:Hiding warning messaging autoUpdate primefaces JSF隐藏警告消息 autoUpdate primefaces JSF
【发布时间】:2018-12-13 19:18:20
【问题描述】:

我的记录器中有这些消息类型 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.

有可能吗? 是的?怎么做?

【问题讨论】:

  • 您好,请随时发布有问题的版本信息

标签: jsf primefaces warnings


【解决方案1】:

有可能吗?

是的

是吗?

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

怎么做?

三个选项:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-07-24
    • 1970-01-01
    • 2013-07-17
    相关资源
    最近更新 更多