<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How to submit Ext forms the right way</title>
	<atom:link href="http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/</link>
	<description>About the construction of a sophisticated Web-Application with ExtJs</description>
	<lastBuildDate>Thu, 20 Oct 2011 10:27:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: pawel</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-22124</link>
		<dc:creator>pawel</dc:creator>
		<pubDate>Tue, 19 Apr 2011 20:05:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-22124</guid>
		<description>Thank You! :)</description>
		<content:encoded><![CDATA[<p>Thank You! <img src='http://www.diloc.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ross</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-15569</link>
		<dc:creator>Ross</dc:creator>
		<pubDate>Mon, 19 Jul 2010 20:15:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-15569</guid>
		<description>After two hours of trying to write my own, yours worked in 10 minutes.  I grovel before you...</description>
		<content:encoded><![CDATA[<p>After two hours of trying to write my own, yours worked in 10 minutes.  I grovel before you&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kumar McMillan</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-7795</link>
		<dc:creator>Kumar McMillan</dc:creator>
		<pubDate>Wed, 13 May 2009 00:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-7795</guid>
		<description>You are a prince among thieves.  Thank you for posting this code.</description>
		<content:encoded><![CDATA[<p>You are a prince among thieves.  Thank you for posting this code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4997</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Thu, 29 Jan 2009 08:51:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4997</guid>
		<description>Yes I think this would be doable, but then you would not have a traditional form that gets submitted. Because forms cannot include sub-items that are not form-items.
But it would be surely possible to write a plugin that could be attached to any panel, and that recursively goes through all items and checks wether items are form-items and collects their data.
This data could then be transmitted over a custom request. You should then parse the answer of the &quot;save&quot; manually and show the user hints about fields that failed.
This whole thing would then not be a submit action anymore, but a plugin attachable to any panel, that would add a method getFormData() which would in turn collect the values of all fields in the panel.
- Certainly doable, but don&#039;t copy to much code from this plugin, rather try to understand the code, and rewrite it from scratch for your needs.</description>
		<content:encoded><![CDATA[<p>Yes I think this would be doable, but then you would not have a traditional form that gets submitted. Because forms cannot include sub-items that are not form-items.<br />
But it would be surely possible to write a plugin that could be attached to any panel, and that recursively goes through all items and checks wether items are form-items and collects their data.<br />
This data could then be transmitted over a custom request. You should then parse the answer of the &#8220;save&#8221; manually and show the user hints about fields that failed.<br />
This whole thing would then not be a submit action anymore, but a plugin attachable to any panel, that would add a method getFormData() which would in turn collect the values of all fields in the panel.<br />
- Certainly doable, but don&#8217;t copy to much code from this plugin, rather try to understand the code, and rewrite it from scratch for your needs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SunWuKung</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4989</link>
		<dc:creator>SunWuKung</dc:creator>
		<pubDate>Wed, 28 Jan 2009 13:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4989</guid>
		<description>Do you see any problems with using a recursive function to traverse the form? - go through all items, if it has items go through them as well

If you think that can work, we may give it a try - if I can convince my fellow here, since I can&#039;t write code :)</description>
		<content:encoded><![CDATA[<p>Do you see any problems with using a recursive function to traverse the form? &#8211; go through all items, if it has items go through them as well</p>
<p>If you think that can work, we may give it a try &#8211; if I can convince my fellow here, since I can&#8217;t write code <img src='http://www.diloc.de/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4849</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Wed, 14 Jan 2009 18:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4849</guid>
		<description>@ SunWuKung:
This would not work out of the box. Unfortunately I see no easy way to implement that.
However Line 40-50 of the first code-block are the place to look at. It iterates over all items in the form. Maybe it would be possible to add an array of other forms / panels whose items should be collected into the options object of the submit method. But this could create problems when Ext is parsing the result of the request and tries to find the fields to display the errorText. Sorry, but I don&#039;t know how Ext handles such more complex forms...</description>
		<content:encoded><![CDATA[<p>@ SunWuKung:<br />
This would not work out of the box. Unfortunately I see no easy way to implement that.<br />
However Line 40-50 of the first code-block are the place to look at. It iterates over all items in the form. Maybe it would be possible to add an array of other forms / panels whose items should be collected into the options object of the submit method. But this could create problems when Ext is parsing the result of the request and tries to find the fields to display the errorText. Sorry, but I don&#8217;t know how Ext handles such more complex forms&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SunWuKung</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4848</link>
		<dc:creator>SunWuKung</dc:creator>
		<pubDate>Wed, 14 Jan 2009 17:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-4848</guid>
		<description>Would this work in cases when the submitted items aren&#039;t direct items of the form - eg. they are in a fieldset, or inside a tab?
If not, how could this be extended to cases like that?</description>
		<content:encoded><![CDATA[<p>Would this work in cases when the submitted items aren&#8217;t direct items of the form &#8211; eg. they are in a fieldset, or inside a tab?<br />
If not, how could this be extended to cases like that?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: tonextone</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-114</link>
		<dc:creator>tonextone</dc:creator>
		<pubDate>Thu, 24 Apr 2008 12:17:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-114</guid>
		<description>seems like you saved my life!
thanx!</description>
		<content:encoded><![CDATA[<p>seems like you saved my life!<br />
thanx!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-105</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Tue, 22 Apr 2008 07:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-105</guid>
		<description>@surfyogi:
standardSubmit is not compatible with OOSubmit because of the nature of OOSubmit.
The only way to get it to work would be, iterating over all fields in the submit method, getting their submitValue and setting that as value of the input-tag, and then submit the form the traditional way. This would however mean that values would be &quot;flashing&quot; prior to submit, because they would be changed.
And I even dont know, if it would work for comboboxes.

So sorry, OOSubmit has no solution for your particular problem, but could be the starting point for a custom solution.

The plugin does nothing more than overriding the standard submit() method of the form to use oosubmit instead of submit. Other than that it is the same. This is for example handy when some other code has to submit the form, but this other code does not know that it should use OOSubmit to submit the form. (For example third party code)

Hope that helps!</description>
		<content:encoded><![CDATA[<p>@surfyogi:<br />
standardSubmit is not compatible with OOSubmit because of the nature of OOSubmit.<br />
The only way to get it to work would be, iterating over all fields in the submit method, getting their submitValue and setting that as value of the input-tag, and then submit the form the traditional way. This would however mean that values would be &#8220;flashing&#8221; prior to submit, because they would be changed.<br />
And I even dont know, if it would work for comboboxes.</p>
<p>So sorry, OOSubmit has no solution for your particular problem, but could be the starting point for a custom solution.</p>
<p>The plugin does nothing more than overriding the standard submit() method of the form to use oosubmit instead of submit. Other than that it is the same. This is for example handy when some other code has to submit the form, but this other code does not know that it should use OOSubmit to submit the form. (For example third party code)</p>
<p>Hope that helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: surfyogi</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-103</link>
		<dc:creator>surfyogi</dc:creator>
		<pubDate>Mon, 21 Apr 2008 22:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-103</guid>
		<description>hiddenName works too, for combo values and STANDARD submit, instead of using OOSubmit:
			                items: [{			                    xtype:&#039;selectbox&#039;,			id:&#039;rt_air_class&#039;,
valueField:&#039;value&#039;,			displayField:&#039;display&#039;,			hiddenName: &#039;rt_air_class&#039;, &lt;&lt;&lt; HERE</description>
		<content:encoded><![CDATA[<p>hiddenName works too, for combo values and STANDARD submit, instead of using OOSubmit:<br />
			                items: [{			                    xtype:&#8217;selectbox&#8217;,			id:&#8217;rt_air_class&#8217;,<br />
valueField:&#8217;value&#8217;,			displayField:&#8217;display&#8217;,			hiddenName: &#8216;rt_air_class&#8217;, &lt;&lt;&lt; HERE</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: surfyogi</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-102</link>
		<dc:creator>surfyogi</dc:creator>
		<pubDate>Mon, 21 Apr 2008 19:39:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-102</guid>
		<description>Can&#039;t figure out how to enable:

standardSubmit:true,

using OOSubmit. So far, it just gets ignored.

I also don&#039;t understand the difference between using the plugin version vs not using the plugin version, or is there only one configuration for OOSubmit?

Seems like i need to modify the submit method to recognize this option, but every time I try, either I break OOSubmit and it no longer submits correct values, or the submit override is ignored and this option is never seen.

Could use a clue how to go about this, with a working example to examine.

thx, Jeff Papineau</description>
		<content:encoded><![CDATA[<p>Can&#8217;t figure out how to enable:</p>
<p>standardSubmit:true,</p>
<p>using OOSubmit. So far, it just gets ignored.</p>
<p>I also don&#8217;t understand the difference between using the plugin version vs not using the plugin version, or is there only one configuration for OOSubmit?</p>
<p>Seems like i need to modify the submit method to recognize this option, but every time I try, either I break OOSubmit and it no longer submits correct values, or the submit override is ignored and this option is never seen.</p>
<p>Could use a clue how to go about this, with a working example to examine.</p>
<p>thx, Jeff Papineau</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luv2hike</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-34</link>
		<dc:creator>luv2hike</dc:creator>
		<pubDate>Wed, 26 Mar 2008 12:45:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-34</guid>
		<description>Disregard my last post about the incorrect radio values being sent to the server.  The Ext.ux.RadioGroup extension fixes this.</description>
		<content:encoded><![CDATA[<p>Disregard my last post about the incorrect radio values being sent to the server.  The Ext.ux.RadioGroup extension fixes this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: luv2hike</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-25</link>
		<dc:creator>luv2hike</dc:creator>
		<pubDate>Tue, 25 Mar 2008 14:37:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-25</guid>
		<description>Overall I like this approach.  However, it does not submit the correct values to the server for radio button groups.  It sends true/false for the last button instead of the inputValue for the one that is selected.</description>
		<content:encoded><![CDATA[<p>Overall I like this approach.  However, it does not submit the correct values to the server for radio button groups.  It sends true/false for the last button instead of the inputValue for the one that is selected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-24</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Mon, 24 Mar 2008 20:55:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-24</guid>
		<description>Hi, thanks for this great extension. 
Another fix you could include would be a workaround for the fact that you cannot currently have form fields named as arrays, ie foo[bar]. This currently throws an exception on submission!</description>
		<content:encoded><![CDATA[<p>Hi, thanks for this great extension.<br />
Another fix you could include would be a workaround for the fact that you cannot currently have form fields named as arrays, ie foo[bar]. This currently throws an exception on submission!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-16</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Wed, 12 Mar 2008 12:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-16</guid>
		<description>I have now updated the post, and fixed/improved various parts of the code. Thanks for all the feedback!</description>
		<content:encoded><![CDATA[<p>I have now updated the post, and fixed/improved various parts of the code. Thanks for all the feedback!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-15</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Wed, 12 Mar 2008 11:04:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-15</guid>
		<description>Ah, now i see the problem. A fix is underway...</description>
		<content:encoded><![CDATA[<p>Ah, now i see the problem. A fix is underway&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-14</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Wed, 12 Mar 2008 11:01:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-14</guid>
		<description>@Infinit: Sorry I do not see your problem. As the original submit action, i use the getMethod() call to retrieve the method to use. OOSubmit calls the original getMethod of the submit action so it should work exactly as the submit action.
Why do you use &quot;_method&quot; instead of &quot;method&quot; to specify the method? In my opinion this would never work, since getMethod() only looks at the following places to find the method:
this.options.method
this.form.method
this.form.el.dom.method

Is this perhaps a typo?</description>
		<content:encoded><![CDATA[<p>@Infinit: Sorry I do not see your problem. As the original submit action, i use the getMethod() call to retrieve the method to use. OOSubmit calls the original getMethod of the submit action so it should work exactly as the submit action.<br />
Why do you use &#8220;_method&#8221; instead of &#8220;method&#8221; to specify the method? In my opinion this would never work, since getMethod() only looks at the following places to find the method:<br />
this.options.method<br />
this.form.method<br />
this.form.el.dom.method</p>
<p>Is this perhaps a typo?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Infinit</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-13</link>
		<dc:creator>Infinit</dc:creator>
		<pubDate>Wed, 12 Mar 2008 10:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-13</guid>
		<description>Error when used with a REST style rails backend =&gt;  When I post a modified record, if configured params: { _method: &#039;PUT&#039; } rails should recognize the request as PUT and route the request to a controller&#039;s update method. 
Can you fix this? ( the orignal submit method hv no such problem)</description>
		<content:encoded><![CDATA[<p>Error when used with a REST style rails backend =&gt;  When I post a modified record, if configured params: { _method: &#8216;PUT&#8217; } rails should recognize the request as PUT and route the request to a controller&#8217;s update method.<br />
Can you fix this? ( the orignal submit method hv no such problem)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dhaas</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-12</link>
		<dc:creator>dhaas</dc:creator>
		<pubDate>Sat, 08 Mar 2008 00:13:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-12</guid>
		<description>First: I apologize for not responding quickly. I&#039;m currently moving at home and have not been able to get online for some days.
Thanks very much for your reponsens!
@kimu: You are right, i simply forgot that line when copying it out from my file, sorry! Also thanks for the improvements in the date getSubmitValue() function, i will incorporate that.
@Oleg: Yes it should read plugins: instead of plugin:. That was a typo.

Regarding the fileUpload problem: Yes you are right, thats a problem. Until now I simply did not have to deal with file uploads. But for file uploding, I would rather use one of the various file upload extensions floating around in the ext forum.</description>
		<content:encoded><![CDATA[<p>First: I apologize for not responding quickly. I&#8217;m currently moving at home and have not been able to get online for some days.<br />
Thanks very much for your reponsens!<br />
@kimu: You are right, i simply forgot that line when copying it out from my file, sorry! Also thanks for the improvements in the date getSubmitValue() function, i will incorporate that.<br />
@Oleg: Yes it should read plugins: instead of plugin:. That was a typo.</p>
<p>Regarding the fileUpload problem: Yes you are right, thats a problem. Until now I simply did not have to deal with file uploads. But for file uploding, I would rather use one of the various file upload extensions floating around in the ext forum.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kimu</title>
		<link>http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-11</link>
		<dc:creator>kimu</dc:creator>
		<pubDate>Fri, 07 Mar 2008 18:47:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.diloc.de/blog/2008/03/05/how-to-submit-ext-forms-the-right-way/#comment-11</guid>
		<description>Another problem with this solution is that if fileUpload is set to true file aren&#039;t uploaded</description>
		<content:encoded><![CDATA[<p>Another problem with this solution is that if fileUpload is set to true file aren&#8217;t uploaded</p>
]]></content:encoded>
	</item>
</channel>
</rss>

