Here's a summary of a problem that I just discovered with 0.4 dev 2.
I'll try to get a test case together and do some further debugging. In
the meantime, if this sparks an idea in one of the developers who may
have worked on this area, I'd love to hear about it. I reverted my app
to use iUI 0.31, and everything is working fine again.
Note: I'm using ASP.NET MVC 2 RC, but again, the problem only exists
when using iUI 0.4 - with 0.31, it works perfectly.
I have a list of machines, and those machines have multiple fields
that need amounts entered. I have hidden fields that are used by
ASP.NET MVC to reconstruct the objects on the backend based on the
HTML elements that are posted to it.
Given the following generated HTML (from View Page Source), the
CollectionDetails elements do not make it back to the server:
<form class="panel" action="/Collection/Summary" method="post"
title="Details" id="CollectionDetail" style="left: 100%;">
<input type="hidden" value="2/1/2010 12:00:00 AM"
name="CollectionDate" id="CollectionDate">
<input type="hidden" value="2" name="LocationId" id="LocationId">
<h3>Machine 1</h3>
<fieldset>
<div class="row">
<input type="hidden" value="21-12"
name="CollectionDetails.index" id="CollectionDetails_index">
<input type="hidden" value="12" name="CollectionDetails
[21-12].MachineFieldId" id="CollectionDetails_21-12__MachineFieldId">
<input type="hidden" value="3" name="CollectionDetails
[21-12].MachineTypeId" id="CollectionDetails_21-12__MachineTypeId">
<input type="hidden" value="21" name="CollectionDetails
[21-12].MachineId" id="CollectionDetails_21-12__MachineId">
<input type="number" value="" placeholder="Cash"
name="CollectionDetails[21-12].Amount"
id="CollectionDetails_21-12__Amount">
</div>
<div class="row">
<input type="hidden" value="21-17"
name="CollectionDetails.index" id="CollectionDetails_index">
<input type="hidden" value="17" name="CollectionDetails
[21-17].MachineFieldId" id="CollectionDetails_21-17__MachineFieldId">
<input type="hidden" value="3" name="CollectionDetails
[21-17].MachineTypeId" id="CollectionDetails_21-17__MachineTypeId">
<input type="hidden" value="21" name="CollectionDetails
[21-17].MachineId" id="CollectionDetails_21-17__MachineId">
<input type="number" value="" placeholder="Software
Fee" name="CollectionDetails[21-17].Amount"
id="CollectionDetails_21-17__Amount">
</div>
</fieldset>
<a href="#" type="submit" class="whiteButton">Save</a>
</form>
Does this ring a bell with anyone who was working with posting forms?
Thanks.
Dan
--
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en.