Package org.araneaframework.framework

Examples of org.araneaframework.framework.MessageContext.showMessage()


  }
 
  public static String showError(String error, Environment env) {
    MessageContext msgCtx =
      (MessageContext) env.getEntry(MessageContext.class);  
    msgCtx.showMessage(MessageContext.ERROR_TYPE, error);
   
    return error;
  }
 
  public static Collection showErrors(Collection errors, Environment env) {
View Full Code Here


  public static Collection showErrors(Collection errors, Environment env) {
    MessageContext msgCtx =
      (MessageContext) env.getEntry(MessageContext.class);  
   
    for (Iterator i = errors.iterator(); i.hasNext();) {
      msgCtx.showMessage(MessageContext.ERROR_TYPE, (String) i.next());
    }
   
    return errors;
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.