Tapestry 5
  1. Tapestry 5
  2. TAP5-1677

Use Symbols for Default Component Parameter Values

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor 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.

        Activity

        Steve Eynon created issue -
        Massimo Lusetti made changes -
        Field Original Value New Value
        Assignee Massimo Lusetti [ mlusetti ]
        Massimo Lusetti made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Massimo Lusetti made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 5.3 [ 12316024 ]
        Resolution Fixed [ 1 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development