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

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.2.0
    • 5.2.0
    • tapestry-core
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment