Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-179

UIInput.updateModel(...) hides a RuntimeException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.0.9m9
    • 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 =

      {getId()};
      + context.getExternalContext().log(e.getMessage(), e);
      _MessageUtils.addErrorMessage(context, this,CONVERSION_MESSAGE_ID,new Object[]{getId()}

      );
      setValid(false);
      }

      Attachments

        Activity

          People

            manolito Manfred Geiler
            mbroekelmann Mathias Broekelmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: