Markus Heussen wrote:
Hi all!
I need to construct a form with multiple pages using the woody form and binding framework. The first page asks for user data, the second page for contract data and so on. I have to bind one XML source to that form. How can I do this?
proposal:
- have multiple forms and matching multiple bindings,
- add the bindings to the matching forms,
- remember them in your flow as you step through them, and
- (most likely only ) at the end of the use-case 'save' them all to the same XML source.
On a side-note: the theme of multi-form flow keeps on recurring, however there hasn't been an decission yet. Honestly I think it doesn't make sense to add this into the declarative form-definitions, we have flow to express the infinitly complex relations between all these forms in a far more elegant way. (you know the kind of: don't show form six if form 3 had some flag checked, of course this only unless form 5 was skipped or the end user is wearing green socks...)
When the user fills in all the part specific data correctly (for example the users data section) the data have to hold and the next form part have to be processed. After all pages and validations done the model have to be bind back to the source XML document.
At this time I load the source once and bind it to one big form definition. The parts I publish doing several showForm() function calls with differnet templates. But like this I cannot do it. The performance is much too bad.
hm, to me it's even surprising that it works at all, I was still under the impression that the widgets that were not submitted back were set to null
Can anybody give me a hint how I do it in a better way?
HTH -marc=
Thanks, Markus
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
