Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-1098

Provide new SelectModelFactory service that can automatically build a standard SelectModel from objects and property names

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Something like

      SelectModel model = selectModelFactory.createModel("id", "name", users)

      where users is a Collection of objects of the same type, having properties id (the server side value) and name (the client-side label).

      Maybe variations for other cases, such as when the object itself is the server-side value (i.e., a Hibernate entity).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                igor.drobiazko Igor Drobiazko
                Reporter:
                hlship Howard M. Lewis Ship
              • Votes:
                1 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: