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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 5.0.15
    • 5.0.16
    • None
    • None
    • 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

            hlship Howard Lewis Ship
            xhfdc Yunhua Sang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: