Package de.danet.an.workflow.api

Examples of de.danet.an.workflow.api.PrioritizedMessage.message()


            } else if (s.priority() == PrioritizedMessage.Priority.ERROR) {
                severity = FacesMessage.SEVERITY_ERROR;
            } else if (s.priority() == PrioritizedMessage.Priority.FATAL) {
                severity = FacesMessage.SEVERITY_FATAL;
            }
            String text = s.message(JSFUtil.activeLocale());
            FacesMessage msg = new FacesMessage (severity, text, text);
            FacesContext.getCurrentInstance().addMessage(null, msg);
        }
    }
   
View Full Code Here


     */
    public void message() {
  String testMsg = "test message without key";
  PrioritizedMessage pm = new PrioritizedMessage
      (PrioritizedMessage.Priority.WARN, testMsg);
  assertTrue(pm.message().equals(testMsg));
    }
 
    /**
     * construct a prioritized message with a message that does have
     * the format "<code>a.resource.bundle.base.name#key</code>", then check
View Full Code Here

    private String getMessageWithKey(Locale locale) {
  PrioritizedMessage pm = new PrioritizedMessage
      (PrioritizedMessage.Priority.ERROR,
       "ImportMessages#procdef.transition.otherwise.notatend");
  String internationizedMsg = pm.message(locale);
  logger.debug("internationized message: " + internationizedMsg);
  return internationizedMsg;
    }

    private String getMessageWithKeyAndObjects(Locale locale) {
View Full Code Here

    private String getMessageWithKeyAndObjects(Locale locale) {
  Object[] objects = {"testProcess"};
  PrioritizedMessage pm = new PrioritizedMessage
      (PrioritizedMessage.Priority.ERROR,
       "ImportMessages#procdef.process.ununique", objects);
  String internationizedMsg = pm.message(locale);
  logger.debug("internationized message: " + internationizedMsg);
  return internationizedMsg;
    }

}
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.