You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/02/08 01:55:10 UTC

[jira] Created: (TAPESTRY-2137) The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation

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

                 Key: TAPESTRY-2137
                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2137
             Project: Tapestry
          Issue Type: Improvement
          Components: tapestry-core
            Reporter: Howard M. Lewis Ship
            Priority: Trivial
             Fix For: 5.0 Next Release


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);
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Resolved: (TAPESTRY-2137) The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation

Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko resolved TAPESTRY-2137.
--------------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 5.1)
                   5.0.15

> The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2137
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2137
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>            Reporter: Howard M. Lewis Ship
>            Assignee: Igor Drobiazko
>            Priority: Trivial
>             Fix For: 5.0.15
>
>         Attachments: TAPESTRY-2137.patch
>
>
> 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);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Updated: (TAPESTRY-2137) The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation

Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko updated TAPESTRY-2137:
-------------------------------------

    Attachment: TAPESTRY-2137.patch

Patch fixing the issue. The affected components are using autoconnect=true instead of providing a default binding method.

> The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2137
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2137
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>            Reporter: Howard M. Lewis Ship
>            Priority: Trivial
>             Fix For: 5.1
>
>         Attachments: TAPESTRY-2137.patch
>
>
> 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);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Closed: (TAPESTRY-2137) The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation

Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko closed TAPESTRY-2137.
------------------------------------


> The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2137
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2137
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>            Reporter: Howard M. Lewis Ship
>            Assignee: Igor Drobiazko
>            Priority: Trivial
>             Fix For: 5.0.15
>
>         Attachments: TAPESTRY-2137.patch
>
>
> 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);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org


[jira] Assigned: (TAPESTRY-2137) The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation

Posted by "Igor Drobiazko (JIRA)" <de...@tapestry.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-2137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Drobiazko reassigned TAPESTRY-2137:
----------------------------------------

    Assignee: Igor Drobiazko

> The common idiom of connecting a component's id to a container property should be easier: an attribute of the @Parameter annotation
> -----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAPESTRY-2137
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2137
>             Project: Tapestry
>          Issue Type: Improvement
>          Components: tapestry-core
>            Reporter: Howard M. Lewis Ship
>            Assignee: Igor Drobiazko
>            Priority: Trivial
>             Fix For: 5.1
>
>         Attachments: TAPESTRY-2137.patch
>
>
> 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);
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org