我设法用 Primefaces 创建了捆绑包。我想创建 Java 缓冲区并以 FIFO 顺序存储消息。将消息插入缓冲区时,我想将其显示到 JSF 页面中。我怎么能用 Primefaces 做到这一点?
我发现了 Primefaces 的例子:
<h:form id="dccd">
    <p:growl id="growl" showDetail="true" sticky="true" />
    <p:panel header="Growl">
        <h:panelGrid columns="2">
            <h:outputText value="Your Name: *" /> 
            <p:inputText value="#{bean.text}" required="true" label="Name"/>
        </h:panelGrid>
        <p:commandButton value="Save" actionListener="#{bean.save}" update="growl"/>
    </p:panel>
</h:form>
但这仅在我调用动作侦听器时才有效。