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

Grid component doc: configuration sample code is incorrect

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 5.4.4
    • Fix Version/s: None
    • Component/s: documentation
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              andrewfowler Andrew Fowler
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: