<a:log id="log" /> <h3 style="margin-top:0">Client Side API</h3> <a:commandButton type="button" id="info" value="Info" onclick="PrimeFaces.info('This is an info message.')" /> <a:commandButton type="button" id="warn" value="Warn" onclick="PrimeFaces.warn('This is a warn message.')" /> <a:commandButton type="button" id="debug" value="Debug" onclick="PrimeFaces.debug('This is a debug message.')" /> <a:commandButton type="button" id="error" value="Error" onclick="PrimeFaces.error('This is an error message.')" /> <h3>Ajax Request</h3> <a:form id="form"> <h:panelGrid id="grid" columns="4" cellpadding="5"> <a:outputLabel for="name" value="Name:" style="font-weight:bold"/> <a:inputText id="name" /> <a:commandButton value="Submit" update="grid"/> </h:panelGrid> </a:form>