<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Nette Framework forum : Development of Nette Framework : Bug Reports : do parameter disappears after $form-&gt;setAction</title>
<link>https://forum.nette.org/en</link>
<description>Nette Framework forum</description>
<language>en</language>
<docs>http://backend.userland.com/rss</docs>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>tomcat4x</dc:creator>
	<link>https://forum.nette.org/en/24403#p163154</link>
	<guid isPermaLink="false">163154@http://forum.nette.org/en</guid>
	<description>&lt;blockquote&gt;
	&lt;p&gt;Casper wrote:&lt;/p&gt;

	&lt;p&gt;There are &lt;a
	href=&quot;https://forum.nette.org/cs/21304-nette-2-2-4-a-setaction&quot;&gt;some&lt;/a&gt; (cs) &lt;a
	href=&quot;https://forum.nette.org/en/20851-huge-bc-break-with-moving-do-parameter-from-url-to-post-data-for-forms-request-do-support-old-functionality&quot;&gt;threads&lt;/a&gt;
	(en) about it.&lt;/p&gt;

	&lt;p&gt;You will probably need to setup the &lt;code&gt;do&lt;/code&gt; parameter manually.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I can do so. But what is the sense of the setAction method if the form
afterwards does not work as expected and why is there no hint in the
documentation.&lt;/p&gt;
</description>
	<pubDate>Mon, 28 Sep 2015 09:16:14 +0200</pubDate>
</item>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>tomcat4x</dc:creator>
	<link>https://forum.nette.org/en/24403#p163153</link>
	<guid isPermaLink="false">163153@http://forum.nette.org/en</guid>
	<description>&lt;blockquote&gt;
	&lt;p&gt;old.gandalf wrote:&lt;/p&gt;

	&lt;p&gt;Hello,&lt;/p&gt;

	&lt;p&gt;this is quite strange, I&apos;m using &lt;em&gt;setAction()&lt;/em&gt; in a project driven by
	Nette 2.2.3 and the ‘do’ hidden input &lt;strong&gt;doesn&apos;t&lt;/strong&gt;
	disappear.&lt;br&gt;
	Have you tried calling the &lt;em&gt;setAction()&lt;/em&gt; method &lt;strong&gt;before&lt;/strong&gt;
	setting the &lt;em&gt;onSuccess&lt;/em&gt; callback? I suppose it won&apos;t make any difference,
	but you can at least give it a try ;)&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;It makes no difference.&lt;/p&gt;
</description>
	<pubDate>Mon, 28 Sep 2015 09:12:49 +0200</pubDate>
</item>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>tomcat4x</dc:creator>
	<link>https://forum.nette.org/en/24403#p163152</link>
	<guid isPermaLink="false">163152@http://forum.nette.org/en</guid>
	<description>&lt;blockquote&gt;
	&lt;p&gt;David Grudl wrote:&lt;/p&gt;

	&lt;p&gt;Update to Nette &amp;gt; 2.2.3 &lt;a
	href=&quot;https://github.com/nette/application/issues/33&quot;&gt;https://github.com/…on/issues/33&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;I am using nette 2.3.5&lt;br&gt;
Shall i downgrade?&lt;/p&gt;
</description>
	<pubDate>Mon, 28 Sep 2015 09:10:49 +0200</pubDate>
</item>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>David Grudl</dc:creator>
	<link>https://forum.nette.org/en/24403#p163147</link>
	<guid isPermaLink="false">163147@http://forum.nette.org/en</guid>
	<description>&lt;p&gt;Update to Nette &amp;gt; 2.2.3 &lt;a
href=&quot;https://github.com/nette/application/issues/33&quot;&gt;https://github.com/…on/issues/33&lt;/a&gt;&lt;/p&gt;
</description>
	<pubDate>Sun, 27 Sep 2015 16:02:04 +0200</pubDate>
</item>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>old.gandalf</dc:creator>
	<link>https://forum.nette.org/en/24403#p163146</link>
	<guid isPermaLink="false">163146@http://forum.nette.org/en</guid>
	<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;this is quite strange, I&apos;m using &lt;em&gt;setAction()&lt;/em&gt; in a project driven by
Nette 2.2.3 and the ‘do’ hidden input &lt;strong&gt;doesn&apos;t&lt;/strong&gt;
disappear.&lt;br&gt;
Have you tried calling the &lt;em&gt;setAction()&lt;/em&gt; method &lt;strong&gt;before&lt;/strong&gt;
setting the &lt;em&gt;onSuccess&lt;/em&gt; callback? I suppose it won&apos;t make any difference,
but you can at least give it a try ;)&lt;/p&gt;
</description>
	<pubDate>Sun, 27 Sep 2015 15:42:26 +0200</pubDate>
</item>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>Casper</dc:creator>
	<link>https://forum.nette.org/en/24403#p163140</link>
	<guid isPermaLink="false">163140@http://forum.nette.org/en</guid>
	<description>&lt;p&gt;There are &lt;a
href=&quot;https://forum.nette.org/cs/21304-nette-2-2-4-a-setaction&quot;&gt;some&lt;/a&gt; (cs) &lt;a
href=&quot;https://forum.nette.org/en/20851-huge-bc-break-with-moving-do-parameter-from-url-to-post-data-for-forms-request-do-support-old-functionality&quot;&gt;threads&lt;/a&gt;
(en) about it.&lt;/p&gt;

&lt;p&gt;You will probably need to setup the &lt;code&gt;do&lt;/code&gt; parameter manually.&lt;/p&gt;
</description>
	<pubDate>Sun, 27 Sep 2015 12:06:15 +0200</pubDate>
</item>
<item>
	<title>do parameter disappears after $form-&gt;setAction (Bug Reports)</title>
	<dc:creator>tomcat4x</dc:creator>
	<link>https://forum.nette.org/en/24403#p163137</link>
	<guid isPermaLink="false">163137@http://forum.nette.org/en</guid>
	<description>&lt;p&gt;I am not sure if thats a bug, but i am wondering that the hidden do parameter
in a html form disappears when using the function&lt;/p&gt;

&lt;pre class=&quot;language-php&quot;&gt;&lt;code&gt;$form-&amp;gt;setAction();&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;pre
class=&quot;language-php&quot;&gt;&lt;code&gt;protected function createComponentSimpleForm()
{
    $form = new Form;
    $form-&amp;gt;addText(&apos;name&apos;, &apos;Name:&apos;);
    $form-&amp;gt;addSubmit(&apos;search&apos;, &apos;Search&apos;);
    $form-&amp;gt;onSuccess[] = array($this,&apos;simpleFormSucceeded&apos;);
    return $form;
}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;here everything works well and after rendering the form there is an hidden
parameter in the html&lt;/p&gt;

&lt;pre
class=&quot;language-latte&quot;&gt;&lt;code&gt;&amp;lt;input type=&quot;hidden&quot; name=&quot;do&quot; value=&quot;simpleForm-submit&quot;&amp;gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But after adding&lt;/p&gt;

&lt;pre
class=&quot;language-php&quot;&gt;&lt;code&gt;$form-&amp;gt;setAction($this-&amp;gt;link(&apos;SearchResult:Simple&apos;));&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;the hidden parameter in html form disappears.&lt;/p&gt;
</description>
	<pubDate>Sun, 27 Sep 2015 11:41:44 +0200</pubDate>
</item>
</channel>
</rss>
