Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1983

Add parameter to Grid component that will add additional columns to the BeanModel

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.3, 5.0.4, 5.0.5, 5.0.6
    • Fix Version/s: 5.0.11
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      It would be very useful to have some way to add columns to a Grid without using a BeanModel directly.
      Every object listing Maybe we could add a additionalColumns (or any better name) parameter to Grid expecting a comma-separated list of column names that would be provided through <t:parameter> blocks.

        Activity

        Hide
        jzedlitz Jesper Zedlitz added a comment -

        Is it a possibility to add the "columns" attribute from the Tapestry4 Table component? That was a very flexible way to modify columns.

        Show
        jzedlitz Jesper Zedlitz added a comment - Is it a possibility to add the "columns" attribute from the Tapestry4 Table component? That was a very flexible way to modify columns.
        Hide
        tobiasw Tobias Wehrum added a comment - - edited

        You are right, only one parameter would be needed for both functions.

        Show
        tobiasw Tobias Wehrum added a comment - - edited You are right, only one parameter would be needed for both functions.
        Hide
        thiagohp Thiago H. de Paula Figueiredo added a comment -

        Tobias, I agree that this new parameter could be applied to BeanEditForm too, but I don't think we need two different parameters (one for columns related to fields and other for columns not related to fields).

        Show
        thiagohp Thiago H. de Paula Figueiredo added a comment - Tobias, I agree that this new parameter could be applied to BeanEditForm too, but I don't think we need two different parameters (one for columns related to fields and other for columns not related to fields).
        Hide
        tobiasw Tobias Wehrum added a comment -

        Indeed it would be useful. Same would apply to the BeanEditForm.
        Another convenient parameter would be one which lets you add columns which are related to properties, but which were not added because Tapestry doesn't know how to present them without <t:parameter> blocks.

        Show
        tobiasw Tobias Wehrum added a comment - Indeed it would be useful. Same would apply to the BeanEditForm. Another convenient parameter would be one which lets you add columns which are related to properties, but which were not added because Tapestry doesn't know how to present them without <t:parameter> blocks.

          People

          • Assignee:
            hlship Howard M. Lewis Ship
            Reporter:
            thiagohp Thiago H. de Paula Figueiredo
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development