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

Use Symbols for Default Component Parameter Values

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 5.3
    • 5.3
    • tapestry-core
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: