Facesmessage无法在init上渲染

时间:2019-05-22 10:54:20

标签: jsf primefaces

我无法在使用JSF的init上渲染字符串,但是在change事件上也渲染了字符串。有任何想法吗?

FacesMessage faceMessage = new FacesMessage("Hey Im getting rendered");
faceMessage.setSeverity(FacesMessage.SEVERITY_INFO);
FacesContext.getCurrentInstance().addMessage(null,faceMessage);

0 个答案:

没有答案