<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xmlns:ui="http://java.sun.com/jsf/facelets"xmlns:f="http://java.sun.com/jsf/core"xmlns:h="http://java.sun.com/jsf/html"xmlns:a4j="http://richfaces.org/a4j"xmlns:rich="http://richfaces.org/rich"xmlns:notify="http://richfaces.org/sandbox/notify"><head><title>Notify sample</title><style type="text/css">.bottomLeft{bottom:10px;left:10px;top:auto;right:auto;}.bottomRight{bottom:10px;right:10px;top:auto;left:auto;}</style></head><bodyclass="rich-container"><ui:includesrc="menu.xhtml"/><p> Here we have notify displaying all messages (not only global). Severity is reflected in overriden style classes.</p><h:form><notify:notifysticky="false"stayTime="5000"title="Default stack"text="Details of the message"nonblockingOpacity="0"/><notify:notifytitle="Before stack definition"text="This message is defined in code before stack"stack="bottomLeftStack"/><notify:notifytitle="Left bottom stack 2"text="This message alos should be displayed in the left bottom corner"showCloseButton="true"stack="bottomLeftStack"/><notify:notifyStackid="bottomLeftStack"styleClass="bottomLeft"stackDir1="up"stackDir2="right"push="top"><notify:notifysticky="true"title="Left bottom stack"text="This message should be displayed in the left bottom corner and should stay until you close it"showCloseButton="true"/><notify:notifytitle="Nonblocking"nonblocking="true"/></notify:notifyStack><notify:notifyMessagesinterval="1000"stack="bottomRightStack"ajaxRendered="true"/><notify:notifyStackid="bottomRightStack"styleClass="bottomRight"stackDir1="up"stackDir2="left"push="bottom"/> Leave this blank for error:<br/><h:outputLabelfor="greeting"value="Greeting"/><h:inputTextid="greeting"value="#{greeter.greeting}"required="true"/>* <h:messagefor="greeting"/><br/><h:outputLabelfor="surname"value="Surname"/><h:inputTextid="surname"required="true"><f:validateLongRangeminimum="5"maximum="10"/></h:inputText>* <h:messagefor="surname"/><br/><a4j:commandButtonvalue="Say Hello"action="#{greeter.sayHello}"/><a4j:commandButtonvalue="Warn me"action="#{greeter.warnMe}"/><a4j:commandButtonvalue="Say error"action="#{greeter.sayError}"/><a4j:commandButtonvalue="Say fatal"action="#{greeter.sayFatal}"/></h:form><rich:insertsrc="/notify.xhtml"highlight="xhtml"rendered="#{showSource!=false}"/></body></html>