ZVON > References > XForms 1.0 Reference

Example 11

Possible renderings:

list-box; Vanilla, Strawberry, and Chocolate visible; Strawberry and Chocolate selected

checkboxes, Vanilla, Strawberry, and Chocolate; Strawberry and Chocolate selected



Source code

<selectMany ref="icecream/flavors"> <caption>Flavors</caption> <choices> <item value="v"><caption>Vanilla</caption></item> <item value="s"><caption>Strawberry</caption></item> <item value="c"><caption>Chocolate</caption></item> </choices> </selectMany>