Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

The documentation for the Select Component and the Tapestry Tutorial provide simplistic examples of populating a drop-down menu (as the (X)HTML Select element) using comma-delimited strings and enums. However, most real-world Tapestry applications need to populate such menus using values from a database, commonly in the form of java.util.List objects. Doing so generally requires a SelectModel and a ValueEncoder bound to the Select component with its "model" and "encoder" parameters:

...

Wiki Markup
{float:right|background=#eee|padding=0 1em}
    *JumpStart Demos:*
    [Total Control Object Select|httphttps://tapestry-jumpstart.doublenegative.com.auorg/jumpstart/examples/select/totalcontrolobject]
    [ID Select|httphttps://tapestry-jumpstart.doublenegative.com.auorg/jumpstart/examples/select/id]
    [Easy ID Select|httphttps://tapestry-jumpstart.doublenegative.com.auorg/jumpstart/examples/select/easyid]
{float}

...

Wiki Markup
{float:right|background=#eee|padding=0 1em}
    *JumpStart Demo:*
    [Easy Object Select|httphttps://tapestry-jumpstart.doublenegative.com.auorg/jumpstart/examples/select/easyobject]
{float}

...