You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by ca...@apache.org on 2007/09/29 19:28:14 UTC
svn commit: r580613 -
/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertNumber/TypedNumberConverter.java
Author: cagatay
Date: Sat Sep 29 10:28:13 2007
New Revision: 580613
URL: http://svn.apache.org/viewvc?rev=580613&view=rev
Log:
Fixed TOMAHAWK-1123, set the severity level of the conversion error message to ERROR instead of INFO
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertNumber/TypedNumberConverter.java
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertNumber/TypedNumberConverter.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertNumber/TypedNumberConverter.java?rev=580613&r1=580612&r2=580613&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertNumber/TypedNumberConverter.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertNumber/TypedNumberConverter.java Sat Sep 29 10:28:13 2007
@@ -25,6 +25,7 @@
import java.util.Currency;
import java.util.Locale;
+import javax.faces.application.FacesMessage;
import javax.faces.component.StateHolder;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
@@ -162,9 +163,10 @@
}
catch (ParseException e)
{
- throw new ConverterException(MessageUtils.getMessage(facesContext,
- CONVERSION_MESSAGE_ID,
- new Object[]{uiComponent.getId(),value}), e);
+ FacesMessage message = MessageUtils.getMessage(facesContext, CONVERSION_MESSAGE_ID, new Object[]{uiComponent.getId(),value});
+ message.setSeverity(FacesMessage.SEVERITY_ERROR);
+
+ throw new ConverterException(message, e);
}
}
}