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

Use Symbols for Default Component Parameter Values

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3
    • Fix Version/s: 5.3
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      For example, the Grid component has the following:

      @Parameter("25")
      private int rowsPerPage;

      meaning if I wish for a pagination of 50 rows, I have to find all instances of the Grid component in my application and manually add a "rowsPerPage" parameter.

      But if the parameter was defined as:

      @Parameter("symbol:tapestry.grid.rowsPerPage")
      private int rowsPerPage;

      then all I would need to do is override the symbol contribution and voilĂ , it changes throughout the whole application.

      Other specific component defaults that would be nice are, the "update" parameter for Zone et al (because the classic "yellow fade" doesn't work for everyone!) and a date format for DateField.

        Attachments

          Activity

            People

            • Assignee:
              mlusetti Massimo Lusetti
              Reporter:
              slimerdude Steve Eynon
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: