Home| Printable Version
In the previous section we learned how to bind XML data on the server to HTML fields on the page. WebMaker also enables you to automatically bind HTML field data captured within forms to XML structures on the server Controller. The process is very similar to the one discussed in the previous section, except we can indicate an XML binding fragment for each Action within a page. Again, the XML fragment to bind to is arbitrary and represents the data structure of the Controller at runtime. Navigate to the Data Bindings tab. You are now interested in the Action Submission Bindings. Select this tab on the centre panel and you should see expandable sections for each of the actions that are available on the page. You will also find that most of the bindings will have been pre-populated for you when you created the Page Structure. Using the same drag-and-drop approach as in the previous section you can drag XML elements on the right hand panel onto the bindings tab on the centre for the page field that is selected on the left hand panel. Action Submission Bindings You can actually insert dummy data into the XML fragments and generate and preview pages as you bind information. The previews should show the data as bound if the bindings have been created correctly. The structure of the data on the right-hand side panel represents the data as it will appear when the selected action is clicked at runtime.
Binding Server Data (XML) to Form Fields (HTML) Preserving Data Between Pages