Re-create "dynamic" form after unsuccessful submit or for editing data

4 views
Skip to first unread message

bunyan

unread,
Feb 13, 2008, 9:16:32 PM2/13/08
to Web Forms 2.0 Implementation
Hello!

What is the best practice to re-create dynamically built form after
its unsuccessful submit or for editing data?

I mean the following: I create a form using web forms 2.0 repeating
blocks functionality (i.e. test case 3), add several blocks and submit
the form, and its validation on the server fails. I need to show user
a form with all the dynamically added blocks, but it will appear in
its initial state.

For this case, shall I generate the form on server side? Or send the
full html of the form along with submitted data to the server, store
it and get back when needed? Or generate an XML file on server side
that contains the "form structure" and pass it to the form?

Thank you.

Weston Ruter

unread,
Feb 14, 2008, 1:14:34 AM2/14/08
to webf...@googlegroups.com
Yes, you'll need to generated the form on the server-side. See test-case 2 on how to populate initial rows.

bunyan

unread,
Feb 17, 2008, 9:25:57 PM2/17/08
to Web Forms 2.0 Implementation
OK, thank you.

On Feb 14, 4:14 pm, "Weston Ruter" <westonru...@gmail.com> wrote:
> Yes, you'll need to generated the form on the server-side. See
> test-case 2<http://webforms2.googlecode.com/svn/trunk/testsuite/002.html>on
Reply all
Reply to author
Forward
0 new messages