Permalink
Browse files

Changed success message display.

  • Loading branch information...
rishabhsrao committed Dec 15, 2012
1 parent 136a06e commit 6fe239fb9831367c86fb8b154f919af7f8e32f64
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/main/java/oss/process/scrum/managed/bean/OrganizationManagedBean.java
@@ -62,11 +62,10 @@ public void createOrganization() {
FacesContext context = FacesContext.getCurrentInstance();
try {
organizationService.create(getOrganization());
+ context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Organization was created successfully!", this.getOrganization().toString()));
} catch (AppException e) {
- context.addMessage(null, new FacesMessage("Error creating organization: " + e.getLocalizedMessage()));
+ context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "Error creating organization.", e.getLocalizedMessage()));
}
-
- context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, "Organization was created successfully!", this.getOrganization().toString()));
}
public String updateOrganization() {

0 comments on commit 6fe239f

Please sign in to comment.