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.
当我添加消息时,我无法删除它。
< h:message id="myError" /> FacesContext.getCurrentInstance().addMessage("myError", new FacesMessage("Fatal error!")); FacesContext.getCurrentInstance().getMessages();
之后.getMessages()返回空列表。
.getMessages()
如何删除或隐藏已发布的消息?