Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.1
    • Fix Version/s: 4.1.2
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      It would be nice to have a better version of PropertySelection with the following features:

      • an API closer to the "@For" component to replace the IPropertySelectionModel. The way IPropertySelectionModel is structured is limitative. It is difficult to obtain any value from outside the component such as data objects or even a squeezer. Also IPrimaryKeyConverter could be used here too;
      • render the component either with a <select> or with radio buttons;
      • have simpler arguments: "source" like in @For, "labelEvaluator" for evaluating the label (same idea as column labels in @Table).

      I could probably provide an implementation and tests for such a component.

        Activity

        Hide
        Jesse Kuhnert added a comment -

        I think it's pretty flexible these days...The addition of allowing custom option rendering impl's has probably allowed for rendering of any / all possible valid html options for a select list.

        A parameter name change is going to be very tricky here, and the IPropertySelectionModel obviously does a lot more than just convert into/out of a single value...I'm curious as to what you had in mind - but pending anything more concrete appearing on this ticket am closing it for now. (though feel free to re-open if you had more ideas to share)

        Show
        Jesse Kuhnert added a comment - I think it's pretty flexible these days...The addition of allowing custom option rendering impl's has probably allowed for rendering of any / all possible valid html options for a select list. A parameter name change is going to be very tricky here, and the IPropertySelectionModel obviously does a lot more than just convert into/out of a single value...I'm curious as to what you had in mind - but pending anything more concrete appearing on this ticket am closing it for now. (though feel free to re-open if you had more ideas to share)

          People

          • Assignee:
            Jesse Kuhnert
            Reporter:
            Henri Dupre
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development