Search code examples
javascriptextjsextjs4websphere-7

Submit is not a function in a FormPanel api


I have been following the ExtDirectSpring form posting guide closely. I defined an api with load and submit functions on a FormPanel. load function works as expected, but submit shows "submit is not a function" when debugging in Firebug.

I've checked for buttons named "submit", but haven't found while looking at the source code.

ExtJS 4 is used with Spring 3 on a WebSphere Portal 7 server.

Any ideas?


Solution

  • Ext.form.Panel is just a container for actual Ext.form.Basic component. Use FormPanel.getForm().submit()