Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1964

Constant not used from app-name in TapestryModule

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 5.0.6
    • 5.0.15
    • tapestry-core
    • None

    Description

      I had some trobubles with @Symbol annotation ...
      and ran into following code in TapestryModule

      @Inject @Value("WEB-INF/${tapestry.app-name}.properties") String appCatalog

      I changed it to
      @Inject @Value("WEB-INF/${"InternalConstants.TAPESTRY_APP_NAME_SYMBOL"}.properties") String appCatalog

      and then into
      @Inject @Symbol(InternalConstants.TAPESTRY_APP_NAME_SYMBOL) String appName
      ....
      String appCatalog = "WEB-INF/"appName".properties";

      not that this is a big deal or anything, just a small fix...

      Attachments

        1. TAPESTRY-1964.patch
          1 kB
          Davor Hrg

        Activity

          People

            hlship Howard Lewis Ship
            hrgdavor Davor Hrg
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: