Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想维护在页面加载时生成的错误消息,即使用户刷新页面也是如此。我可以通过全局保存它们来让它们留下来,然后在FeedBackPanel页面renderHead方法的内部重新输入它们,但是当我回到上一页时,错误仍然存在,直到我刷新页面。
FeedBackPanel
renderHead
您可以使用 IApplicationSettiongs#setFeedbackMessageCleanupFilter() 注册 IFeedbackMessageFilter - 这样您就可以控制每次请求后将清除哪些消息。