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

Constant not used from app-name in TapestryModule

    Details

    • Type: Wish
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 5.0.6
    • Fix Version/s: 5.0.15
    • Component/s: tapestry-core
    • Labels:
      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

          Activity

            People

            • Assignee:
              hlship Howard M. Lewis Ship
              Reporter:
              hrgdavor Davor Hrg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: