Ah, on closer examination of the form, I found my problem. <br><br>The elements have to have name attributes. Not Id<br><br>this form, where each INPUT tag has a "name" attribute works perfectly.<br><br>Tony<br><br>
<br><FORM action="<a href="http://localhost:8080/rest-example/addUser">http://localhost:8080/rest-example/addUser</a>" method="post"><br> <P><br> <table><br> <tr><br>
<td> <LABEL for="firstname">First name: </LABEL></td><br> <td> <INPUT type="text" name="firstname" ></td><br> </tr><br> <tr><br>
<td><LABEL for="lastname">Last name: </LABEL></td><br> <td><INPUT type="text" name="lastname"></td><br> </tr><br> <tr><br>
<td><LABEL for="email">email: </LABEL></td><br> <td><INPUT type="text" name="email"></td><br> </tr><br> <td> &nbsp;</td><br>
<td><INPUT type="radio" name="sex" value="Male"> Male</td><br> <tr><br> <td>&nbsp;</td><br> <td><INPUT type="radio" name="sex" value="Female"> Female</td><br>
</tr><br> <tr><br> <td> <INPUT type="submit" value="Send"> </td><br> <td><INPUT type="reset"></td><br> </tr><br>
</table><br> </FORM><br><br><br><div class="gmail_quote">On Tue, Jul 12, 2011 at 3:52 PM, Tony Giaccone <span dir="ltr"><<a href="mailto:tgiaccone@gmail.com">tgiaccone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I'm not sure how to go about adding named attributes to a method that processes a form submission.<br><br>But beyond that I guess what I'm curious about is why out of all the elements in the form, the only one that made it to<br>
<br>self requestContext request.<br><br>is the radiobutton. Why aren't the other entries there? Doesn't the request get parsed long before the REST classes<br>get involved? Or am I missing something? <br><font color="#888888"><br>
<br>
Tony<br><br></font><div class="gmail_quote"><div class="im">On Tue, Jul 12, 2011 at 3:15 PM, Philippe Marschall <span dir="ltr"><<a href="mailto:philippe.marschall@gmail.com" target="_blank">philippe.marschall@gmail.com</a>></span> wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
2011/7/12 Tony Giaccone <<a href="mailto:tgiaccone@gmail.com" target="_blank">tgiaccone@gmail.com</a>>:<br>
</div><div><div></div><div>><div class="im"><br>
> When inspected, postFields has exactly one element which is:<br>
> a WARequestFields('sex'->'Male')<br>
> Inspect the body and I get:<br>
> 'sex=Male'<br>
> what happened to my form elements???<br>
<br>
</div></div></div><div class="im">Have you tried adding name attributes?<br>
<br>
Cheers<br>
Philippe<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</div></blockquote></div><br>
</blockquote></div><br>