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 Improvement
    • Status: Closed
    • Priority: Trivial 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);
      }

      1. TAPESTRY-2137.patch
        23 kB
        Igor Drobiazko

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development