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

Grid component doc: configuration sample code is incorrect

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.4.4
    • 5.8.2
    • documentation
    • None

    Description

      In the "Configuring the Grid Component in the AppModule class" section of the Grid component documentation this code is given:

      public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration)
      {
        configuration.add(GridConstants.ROWS_PER_PAGE, "show");
      
        configuration.add(GridConstants.PAGER_POSITION, "bottom");
      
        configuration.add(GridConstants.TABLE_CLASS, "t-data-grid");
      }
      

      This should be:

      public static void contributeApplicationDefaults(MappedConfiguration<String, String> configuration)
      {
        configuration.add(ComponentParameterConstants.GRID_ROWS_PER_PAGE, "25");
      
        configuration.add(ComponentParameterConstants.GRID_PAGER_POSITION, "top");
      
        configuration.add(ComponentParameterConstants.GRID_TABLE_CSS_CLASS, "table table-hover table-bordered table-striped");
      }
      

      The relevant documentation source is here in pre-5.5.0:
      Grid.xdoc:364

      Attachments

        Activity

          People

            vlamp Volker Lamp
            andrewfowler Andrew Fowler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: