Hi
What do you use to submit multiple records? A typical use case is that an order creation form will have several order items data input by the end user. My approach is as follows:
At the client side: Put an hidden field in the <form> like <input type='hidden' name='items'/>. User add order items either through multiple predefined input fields or dynamically generated fields using javascript. Hook a event handler to form.submit event, construct a string with all order items information using special separator e.g. ';', update the hidden items field with the calculated string val. Then proceed with the submission process.
At the server side, parse the item string and construct order items object on the fly, add them into a new order model and save it.
Does anyone has better approach with Play!
Thx,
Green