logo

JSF & PrimeFaces & Spring tutorial 14: JSF messages & growl

Using JSF messages & growl.

download result: https://app.box.com/s/ugo9dc97v7klf6n4yr80

index.xhtml:
<p:messages />

or:

<p:growl />


<p:commandButton value="save" action="#{checkListController.save()}" 
     update="checkForm, :checkTable, :messages" />
CheckListController:
FacesContext.getCurrentInstance().addMessage
		(null, new FacesMessage(FacesMessage.SEVERITY_INFO, 
		"Check saved!", null));

comments powered by Disqus

rss

Free online Java web application examples

Want to develop whole web applications which use database, security and more? See my github account, where are lot's of example projects:
github

Search