Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
xml
xml
<webwork:select label="label" name="name" list="{'name1','name2','name3'}" value="%{'name2'}" />

...