Tapestry
  1. Tapestry
  2. TAPESTRY-1373

Recreate T4's Palette component for T5

    Details

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

      Description

      A good multi-selection (and optionally, ordering) component is essential, especially as we try to implement some Trails-like behavior on top of Hibernate.

        Activity

        Howard M. Lewis Ship created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Hide
        Andreas Andreou added a comment -

        Would this, by any chance, involve the notion of
        http://tapestry.apache.org/tapestry4.1/tapestry-contrib/apidocs/org/apache/tapestry/contrib/form/IMultiplePropertySelectionRenderer.html ?

        I know that Palette is much more widely used and 'cooler' than contrib's http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/multiplepropertyselection.html
        but on the other hand i'm sure it can be implemented as a custom IMultiplePropertySelectionRenderer implementation.

        Show
        Andreas Andreou added a comment - Would this, by any chance, involve the notion of http://tapestry.apache.org/tapestry4.1/tapestry-contrib/apidocs/org/apache/tapestry/contrib/form/IMultiplePropertySelectionRenderer.html ? I know that Palette is much more widely used and 'cooler' than contrib's http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/multiplepropertyselection.html but on the other hand i'm sure it can be implemented as a custom IMultiplePropertySelectionRenderer implementation.
        Howard M. Lewis Ship made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        Hide
        Howard M. Lewis Ship added a comment -

        It's not precisely the same as T4's Palette ... it's actually a lot better. It keeps the available items in natural order (as defined by the SelectModel) and keeps the selected list in natural order if reordering is not enabled. Better, cleaner JavaScript and it generates a real minimum of JS on the page (just an object instantiation, everything else is in a reusable library).

        T4 had the idea of keeping the items sorted by label (the visible value) or value (the invisible value). Keeping them in SelectModel-defined order just makes much more sense.

        Show
        Howard M. Lewis Ship added a comment - It's not precisely the same as T4's Palette ... it's actually a lot better. It keeps the available items in natural order (as defined by the SelectModel) and keeps the selected list in natural order if reordering is not enabled. Better, cleaner JavaScript and it generates a real minimum of JS on the page (just an object instantiation, everything else is in a reusable library). T4 had the idea of keeping the items sorted by label (the visible value) or value (the invisible value). Keeping them in SelectModel-defined order just makes much more sense.
        Howard M. Lewis Ship made changes -
        Fix Version/s 5.0.5 [ 12312477 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Workflow jira [ 12399821 ] Default workflow, editable Closed status [ 12568152 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12568152 ] jira [ 12590034 ]

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Howard M. Lewis Ship
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development