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

The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0.15
    • Component/s: tapestry-core
    • Labels:
      None

      Description

      Perhaps "autoconnect" to indicate that this parameter should default to the corresponding property of its container.

      @Parameter(required=true, autoconnect=true)
      private String _value;

      would save from having to write:

      @Inject
      private ComponentDefaultProvider _defaultProvider;

      Object defaultValue()
      {
      return _defaultProvider.defaultBinding("value", _resources);
      }

        Attachments

          Activity

            People

            • Assignee:
              igor.drobiazko Igor Drobiazko
              Reporter:
              hlship Howard M. Lewis Ship
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: