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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 5.0.15
    • tapestry-core
    • 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

        1. TAPESTRY-2137.patch
          23 kB
          Igor Drobiazko

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: