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

Grid.defaultModel() should be a protected method so that subclasses can override the default BeanModel logic

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.0.15
    • Fix Version/s: 5.0.16
    • Component/s: None
    • Labels:
      None
    • Environment:
      All

      Description

      For a sub-class of Grid, it's impossible to provide its own BeanModel to override the default model in Grid because the method
      Binding defaultModel()

      {..}

      is package visible.

      it would be nice to have that method to be protected to let sub-class of Grid be able to override the default model.

      I know a workaround is to make a component to composite the Grid, bind model parameter to a property and copy all the parameters over; but there are so many parameters in Grid component, I don't think it's a good way.

      Thanks,
      Yunhua

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: