<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Forms are binding because their inputs have the same names. Help.</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122303721" />
  <subtitle>Forms are binding because their inputs have the same names. Help.</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122303721</id>
  <updated>2026-05-30T11:59:14Z</updated>
  <dc:date>2026-05-30T11:59:14Z</dc:date>
  <entry>
    <title>RE: Forms are binding because their inputs have the same names. Help.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122318917" />
    <author>
      <name>Mohammed Yasin</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122318917</id>
    <updated>2024-01-03T10:46:45Z</updated>
    <published>2024-01-03T10:46:44Z</published>
    <summary type="html">&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;You can try using below method for clearing request parameters in
  your action method: &lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;PortalUtil.clearRequestParameters(renderRequest);&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Mohammed Yasin</dc:creator>
    <dc:date>2024-01-03T10:46:44Z</dc:date>
  </entry>
  <entry>
    <title>Forms are binding because their inputs have the same names. Help.</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122303720" />
    <author>
      <name>Kareem Younes</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122303720</id>
    <updated>2023-12-29T19:22:13Z</updated>
    <published>2023-12-24T08:47:57Z</published>
    <summary type="html">&lt;p&gt;I have to identical forms in an MVCPortlet. But both are in different
  .jsp files&lt;br&gt;
  &lt;br&gt; This is a rought structure of the forms.&lt;/p&gt;
&lt;pre&gt;
&lt;code class="language-java"&gt;&amp;lt;aui:form action=&amp;quot;actionURL&amp;quot; name=&amp;quot;crud_form&amp;quot;&amp;gt;
    &amp;lt;aui:input name=&amp;quot;id&amp;quot;/&amp;gt;
    &amp;lt;aui:input name=&amp;quot;name&amp;quot;/&amp;gt;
&amp;lt;aui/form&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Both have the same actionURLs, but different names.&lt;br&gt;
  &lt;br&gt; For some reason, whatever value is in the first form it gets
  autofilled into the second form.&lt;br&gt;
  &lt;br&gt; For example, if in the first form I have id = 1 and name = foo,
  and then I submit. In the second form which is on the next page will
  have id = 1, and name = foo.&lt;br&gt;
  &lt;br&gt; Even if I try to set the values from the .jsp files by setting
  value=&amp;quot;another value&amp;quot;, it gets overwritten. I tried using
  model-context and in both cases this still happends. I tried using
  different ids for each input, but it still happens.&lt;br&gt;
  &lt;br&gt; Sorry, if I am not clear enpugh. Thanks&lt;/p&gt;</summary>
    <dc:creator>Kareem Younes</dc:creator>
    <dc:date>2023-12-24T08:47:57Z</dc:date>
  </entry>
</feed>
