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

Create an easier way to populate List of object to Select component

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 5.0.15
    • None
    • None
    • None

    Description

      Create an easier way to populate List of object to Select component. Currently we must create a class that implement SelectModel and a class that implement ValueEncoder. Perhaps it would be nice if there property in the Select component such as list that corresponds to the list of object to be displayed for the combobox as such:

      <select t:type="Select" t:id="member" model="member" list="members" />

      and the Page class as such:
      private List<Member> members;

      public List<Member> getMembers()

      { return members; }

      public void setMembers(List<Member> members)

      { this.members = members; }

      @SetupRender
      public void init()

      { members = dao.getMembers(); }

      Attachments

        Activity

          People

            nirvdrum Kevin Menard
            thejavafreak Joshua Partogi
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: