我想<p:messages>用来显示错误信息,用于<p:growl>显示成功信息.在支持bean中:
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(null, new FacesMessage(title, msg));
Run Code Online (Sandbox Code Playgroud)
但是我发现不管我的支持bean添加消息,<p:messages>并且<p:growl>都显示它.
任何建议.
我想隐藏dataTable中的一些列(例如id,serial),将呈现列,因为javascript需要访问列的值.任何的想法?