Package org.araneaframework.framework

Examples of org.araneaframework.framework.MessageContext


  public static String localizeAndFormat(String message, Object[] parameters, Environment env) {
    return format(localize(message, env), parameters);
  }
 
  public static String showError(String error, Environment env) {
    MessageContext msgCtx =
      (MessageContext) env.getEntry(MessageContext.class);  
    msgCtx.showMessage(MessageContext.ERROR_TYPE, error);
   
    return error;
  }
View Full Code Here


   
    return error;
  }
 
  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

Related Classes of org.araneaframework.framework.MessageContext

Copyright © 2018 www.massapicom. 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.