Demos and Usage of javax.faces.context.FacesContext.getMessages(String clientId)


   1: import javax.faces.context.ExternalContext;
   2: import javax.faces.context.FacesContext;
   3: import javax.faces.context.ResponseStream;
   4:         ...
   5: public class FacesContextWrapper
   6:     extends FacesContext
   7: {
   8:         ...
   9: 
  10:     private FacesContext _facesContext;
  11: 
  12:         ...
  13:     {
  14:         return _facesContext.getMessages(clientId);

View Full Code Here
   1: import javax.faces.component.EditableValueHolder;
   2: import javax.faces.context.FacesContext;
   3: import javax.faces.event.AbortProcessingException;
   4:         ...
   5: 
   6:     public Object saveState(FacesContext context)
   7:     {
   8:         ...
   9: 
  10:     public void restoreState(FacesContext context, Object state)
  11:     {
  12:         ...
  13:             String clientId = (String) clientIds.next();
  14:             Iterator messages = context.getMessages(clientId);

View Full Code Here
   1: import javax.faces.application.FacesMessage;
   2: import javax.faces.context.FacesContext;
   3: import javax.faces.component.EditableValueHolder;
   4:         ...
   5: 
   6:     public String getClientId(FacesContext context) {
   7:     String ownClientId = super.getClientId(context);
   8:         ...
   9: 
  10:     public void encodeBegin(FacesContext context) throws IOException {
  11:         if (!keepSaved(context)) {
  12:         ...
  13:             String clientId = (String) clientIds.next();
  14:             Iterator messages = context.getMessages(clientId);

View Full Code Here