Using XForms VX-S-11
VX-S-11 XForms 1.0 rendering
Rendering VSPX form controls as XForms 1.0 components
Preliminaries
The VSPX (Virtuoso Server Pages Extensions) framework allows form controls to be rendered as XForms 1.0 components. This approach take an advantage to check input field's data-type and to restrict value using XML-Schema constraints. Thus it's possible to make user agent performs input validation before sending a data back to server. It's IMPORTANT that this approach is only possible with browsers that have a plug-in or natively supports XForms 1.0.
VSPX to XForms input rendering
- This example works with IE6 or greater with FormsPlayer installed.
- The example shows turning on the flag for XForms rendering : "connection_set ('RenderXForms', 1)"
- In the simple form all generic input controls are represented.
- When submit is performed, data as XML document will be sent back to server and will be prepared on server side as well-known 'params' array.
As can be seen the XForms rendering do not require any changes to existing VSPX pages (except logic to turn it on).
| View the source | Action |
|---|---|
| 1. vx_s_11_sample.vspx | Run |
OpenLink Home
Technical Support