You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2012/11/28 16:17:19 UTC

svn commit: r1414749 - /myfaces/core/branches/2.2.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js

Author: werpu
Date: Wed Nov 28 15:17:17 2012
New Revision: 1414749

URL: http://svn.apache.org/viewvc?rev=1414749&view=rev
Log:
fixing the message handling for the jsf 2.2 exception thrown whenever we have a faulty multipart form scenario

Modified:
    myfaces/core/branches/2.2.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js

Modified: myfaces/core/branches/2.2.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js
URL: http://svn.apache.org/viewvc/myfaces/core/branches/2.2.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js?rev=1414749&r1=1414748&r2=1414749&view=diff
==============================================================================
--- myfaces/core/branches/2.2.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js (original)
+++ myfaces/core/branches/2.2.x/api/src/main/javascript/META-INF/resources/myfaces/_impl/core/Impl.js Wed Nov 28 15:17:17 2012
@@ -355,7 +355,7 @@ _MF_SINGLTN(_PFX_CORE + "Impl", _MF_OBJE
         //spec section jsdoc, if we have a multipart candidate in our execute (aka fileupload)
         //and the form is not multipart then we have to raise an error
         if(multiPartCandidate && ! multipartForm) {
-            throw _Lang.makeException(new Error(), null, null, this._nameSpace, "_getForm", "No multipart form");
+            throw _Lang.makeException(new Error(), null, null, this._nameSpace, "_getTransportType",  _Lang.getMessage("ERR_NO_MULTIPART_FORM", "No Multipart form", form.id));
         }
         var isMultipart = multiPartCandidate && multipartForm;
         /**