REQUIRED INFORMATION

Ext version tested:
  • Ext 4.0.2a

Browser versions tested against:
  • Google Chrome 12.0.742.100

Description:
  • Non-200 HTTP response to a form submission via Ext.Direct is not handled.
  • It works as expected without Direct integration (if "api: { submit: test.test }" is commented out below)

Steps to reproduce the problem:
  • Click on "Submit" form button and check the console output.

The result that was expected:
  • Appropriate debug messages in the console:
    Code:
    failure
    actionfailed

The result that occurs instead:
  • Empty console output

Test Case:
PHP Code:
Ext.onReady(function() {
    
Ext.Direct.addProvider({
        
url'nonexistent.php',
        
type'remoting',
        
actions: { test: [{ name'test'len}] }
    });

    
Ext.create('Ext.form.Panel', {
        
renderToExt.getBody(),
        
api: { submittest.test },
        
buttons: [{
            
text'Submit',
            
handler: function() {
                
this.up('form').getForm().submit({
                    
success: function() {
                        
console.debug('success');
                    },
                    
failure: function(formaction) {
                        
console.debug('failure');
                    }
                });
            }
        }],
        
listeners : {
            
actioncomplete : function(objectaction) {
                
console.debug('actioncomplete');
            },
            
actionfailed : function(objectaction) {
                
console.debug('actionfailed');
            }
        }
    });
});