Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.1.0
-
None
-
None
Description
If a RuntimeException is thrown in the Method UIInput.updateModel(FacesContext) an error message is generated but without any stacktrace. This causes a lot of trouble for the user to find the cause of the error.
Here is a patch to write the stacktrace:
Index: UIInput.java
===================================================================
RCS file: /home/cvspublic/incubator-myfaces/src/jsfapi/javax/faces/component/UIInput.java,v
retrieving revision 1.16
diff -u -r1.16 UIInput.java
— UIInput.java 4 Mar 2005 00:28:45 -0000 1.16
+++ UIInput.java 12 Apr 2005 11:13:34 -0000
@@ -252,6 +252,7 @@
catch (RuntimeException e)
{
//Object[] args =
+ context.getExternalContext().log(e.getMessage(), e);
_MessageUtils.addErrorMessage(context, this,CONVERSION_MESSAGE_ID,new Object[]{getId()}
);
setValid(false);
}