THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Dealing with collections(maps, lists, and sets) in webwork comes often, so here are a few examples using the select tag:
Syntax for list: {e1,e2,e3}. This creates a List containing the String "name1", "name2" and "name3". It also selects "name2" as the default value. Notice the use of the Alt Syntax to provide the literal "name2".
Code Block | ||||
---|---|---|---|---|
| ||||
<webwork:select label="label" name="name" list="{'name1','name2','name3'}" value="%{'name2'}" /> |
...