Tapestry 5
  1. Tapestry 5
  2. TAP5-188

Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.15
    • Fix Version/s: 5.0.16
    • Component/s: None
    • Labels:
      None

      Description

      At the bottom of http://tapestry.apache.org/tapestry5/tapestry-ioc/cookbook/servconf.html (Mapped Configurations), you mention:

      Tapestry IoC's symbols mechanism allows configuration values to be defined and perhaps overridden, then provided to services via injection, using the Value annotation.

      I think it would be more clear if you added that you may also need to use the Inject annotation, and maybe if you provided a simple example, like:

      public class Start
      {
      @Inject
      @Value("$

      {tapestry.supported-locales}

      ")
      private String _supportedLocales;

      public String getSupportedLocales()

      { return _supportedLocales; }

      }

        Activity

        Peter Beshai created issue -
        Howard M. Lewis Ship made changes -
        Field Original Value New Value
        Key TAPESTRY-2301 TAP5-188
        Affects Version/s 5.0 [ 12312018 ]
        Component/s Documentation [ 11283 ]
        Project Tapestry [ 10573 ] Tapestry 5 [ 12310833 ]
        Howard M. Lewis Ship made changes -
        Affects Version/s 5.0.15 [ 12313429 ]
        Howard M. Lewis Ship made changes -
        Assignee Howard M. Lewis Ship [ hlship ]
        Howard M. Lewis Ship made changes -
        Summary Improve clarity of Mapped Configuration section (Tapestry-IoC) Document the need to use @Inject with @Value or @Symbol when the parameter/field type is String (to avoid injecting the service id)
        Howard M. Lewis Ship made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 5.0.16 [ 12313427 ]
        Status Open [ 1 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        218d 7h 10m 1 Howard M. Lewis Ship 31/Oct/08 21:53

          People

          • Assignee:
            Howard M. Lewis Ship
            Reporter:
            Peter Beshai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development