You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "sean schofield (JIRA)" <my...@incubator.apache.org> on 2005/04/19 15:40:19 UTC
[jira] Closed: (MYFACES-179) UIInput.updateModel(...) hides a RuntimeException
[ http://issues.apache.org/jira/browse/MYFACES-179?page=all ]
sean schofield closed MYFACES-179:
----------------------------------
> UIInput.updateModel(...) hides a RuntimeException
> -------------------------------------------------
>
> Key: MYFACES-179
> URL: http://issues.apache.org/jira/browse/MYFACES-179
> Project: MyFaces
> Type: Improvement
> Versions: Nightly Build
> Reporter: Mathias Broekelmann
> Assignee: Manfred Geiler
> Priority: Minor
> Fix For: 1.0.9 beta
>
> 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 = {getId()};
> + context.getExternalContext().log(e.getMessage(), e);
> _MessageUtils.addErrorMessage(context, this,CONVERSION_MESSAGE_ID,new Object[]{getId()});
> setValid(false);
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira