Determine repeated element order

0 views
Skip to first unread message

Ken Young

unread,
Oct 2, 2008, 1:32:06 PM10/2/08
to Web Forms 2.0 Implementation
Hi,

I was wondering if there was a way on the form post to determine what
the order was of a repeated form area. We need to know the order in
order to populate the object. Also, any tips on getting the number of
repeated objects?

Thanks
Ken

Weston Ruter

unread,
Oct 2, 2008, 3:11:17 PM10/2/08
to webf...@googlegroups.com
If using PHP, you may iterate over the values in $_GET or $_POST. They should be in the same order in which they were submitted.

Ken Young

unread,
Oct 2, 2008, 5:57:36 PM10/2/08
to Web Forms 2.0 Implementation
I actually am using Servlets/JSP. I will have to test, but I am not
sure if the ordering is preserved.

Thanks
Ken

On Oct 2, 2:11 pm, "Weston Ruter" <westonru...@gmail.com> wrote:
> If using PHP, you may iterate over the values in $_GET or $_POST. They
> should be in the same order in which they were submitted.
>

Ken Young

unread,
Oct 3, 2008, 12:54:35 PM10/3/08
to Web Forms 2.0 Implementation
It looks like the order isn't being preserved in the servlets/jsp
handling of the post. My solution is probably going to be the
addition of an "order" form element, and update it via and add/up/down
event handler.

Ken

Olaf Merkert

unread,
Oct 7, 2008, 1:43:31 PM10/7/08
to Web Forms 2.0 Implementation
Hi Ken,

like it's mentioned in the wf2 spec: use a hidden input element to
synchronize the server with the client side.

Cheers,
Olaf
Reply all
Reply to author
Forward
0 new messages