<br><div><br></div><div>I&#39;m trying to understand how to do form submissions to a restful web service in seaside. </div><div><br></div><div>I&#39;ve loaded up the restful support from seaside30addons</div><div><br></div>

<div>added these packages to the standard downloaded seaside image:</div><div><br></div><div>Seaside-Pharo-REST-Core-pmm.4.mcz<br>Seaside-REST-Core-pmm.23.mcz<div>Seaside-Tests-REST-Core-dkh.13.mcz</div><br>I rand the test cases and they all run fine. <br>
</div><div><br><br></div><div>My Html form looks like this:</div><div><br></div><div><div>&lt;html&gt;</div><div>&lt;head&gt;</div><div>&lt;/head&gt;</div><div>&lt;body&gt;</div><div><br></div><div>&lt;FORM action=&quot;<a href="http://localhost:8080/rest-example/addUser" target="_blank">http://localhost:8080/rest-example/addUser</a>&quot; method=&quot;post&quot;&gt;</div>

<div>    &lt;P&gt;</div><div>    &lt;LABEL for=&quot;firstname&quot;&gt;First name: &lt;/LABEL&gt;</div><div>              &lt;INPUT type=&quot;text&quot; id=&quot;firstname&quot;&gt;&lt;BR&gt;</div><div>    &lt;LABEL for=&quot;lastname&quot;&gt;Last name: &lt;/LABEL&gt;</div>

<div>              &lt;INPUT type=&quot;text&quot; id=&quot;lastname&quot;&gt;&lt;BR&gt;</div><div>    &lt;LABEL for=&quot;email&quot;&gt;email: &lt;/LABEL&gt;</div><div>              &lt;INPUT type=&quot;text&quot; id=&quot;email&quot;&gt;&lt;BR&gt;</div>

<div>    &lt;INPUT type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;Male&quot;&gt; Male&lt;BR&gt;</div><div>    &lt;INPUT type=&quot;radio&quot; name=&quot;sex&quot; value=&quot;Female&quot;&gt; Female&lt;BR&gt;</div>

<div>    &lt;INPUT type=&quot;submit&quot; value=&quot;Send&quot;&gt; &lt;INPUT type=&quot;reset&quot;&gt;</div><div>    &lt;/P&gt;</div><div> &lt;/FORM&gt;</div><div><br></div><div>&lt;/body&gt;</div></div><div><br></div>

<div><br></div><div>I enter data for each field in the form, set the radio box to &quot;Male&quot; and do the submit. </div><div><br></div><div>I have a break point set in my method </div><div><br></div><div><div>addUser</div>

<div><span style="white-space:pre-wrap">        </span>|aRequest postFields  |</div><div><span style="white-space:pre-wrap">        </span>&lt;POST&gt;</div><div><span style="white-space:pre-wrap">        </span>&lt;Path: &#39;/addUser&#39;&gt;</div>

<div><span style="white-space:pre-wrap">        </span>&lt;Consumes: &#39;application/x-www-form-urlencoded&#39;&gt;</div><div><span style="white-space:pre-wrap">        </span>aRequest := self requestContext request.</div>
<div><span style="white-space:pre-wrap">        </span>postFields := aRequest postFields.</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>self halt.</div>
<div><span style="white-space:pre-wrap">        </span>Transcript show: &#39;Got it&#39;; cr.</div></div><div><br></div><div>When inspected, postFields has exactly one element which is:</div><div><br></div><div>
a WARequestFields(&#39;sex&#39;-&gt;&#39;Male&#39;)</div><div><br></div><div>Inspect the body and I get:</div><div><br></div><div>&#39;sex=Male&#39;</div><div><br></div><div>what happened to my form elements???</div><div>

<br></div><div><br></div><div>Tony</div><div><br></div><div><br></div><div><br></div>