You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Ron Piterman (JIRA)" <ta...@jakarta.apache.org> on 2006/12/22 15:26:24 UTC

[jira] Created: (TAPESTRY-1213) Meta annotation structure

Meta annotation structure
-------------------------

                 Key: TAPESTRY-1213
                 URL: http://issues.apache.org/jira/browse/TAPESTRY-1213
             Project: Tapestry
          Issue Type: Improvement
    Affects Versions: 4.1.1
            Reporter: Ron Piterman
            Priority: Minor


I had posted to the dev list the same issue with in regard of the binding annotations, in regard of meta this is not so complicated, and has real advantages:


I would like to propse:

depracate @Meta
create a 
annotation interface @Metas (
  @MetaValue[] value()
)

where @MetaValue is : String name(); String value()

the use case:

Meta names can be used as standalone constants.
Meta values can be used as standalone constants.

currently, one has to define two constants: one to inject the meta, one to set its value, which is "unclean":


currently:

META_ROLE="role";
META_ROLE_USER="role=user"; or META_ROLE + "=user";

and 
@Meta(META_ROLE_USER)

@InjectMeta(META_ROLE)

instead:

META_ROLE_USER="user";

@Metas( @MetaValue( name=META_ROLE, value=META_ROLE_USER ) )

and

@InjectMeta(... the same as above.

Ofcouse, the benefit is not straight forward, until one works with constants from sources outside of the tapestry project.
The meta values may be defined outside the tapestry application( in the backend) - and one can not use it in a straight forward manner. instead one has to define an extra constant with the equals sign. Though this is not very "tragic" it is not straightforward, and I consider it an ockwardty (english spelling :( ) of the framework.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Updated: (TAPESTRY-1213) Meta annotation structure

Posted by "Jesse Kuhnert (JIRA)" <ta...@jakarta.apache.org>.
     [ https://issues.apache.org/jira/browse/TAPESTRY-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jesse Kuhnert updated TAPESTRY-1213:
------------------------------------

    Fix Version/s: 4.2

> Meta annotation structure
> -------------------------
>
>                 Key: TAPESTRY-1213
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-1213
>             Project: Tapestry
>          Issue Type: Improvement
>    Affects Versions: 4.1.1
>            Reporter: Ron Piterman
>            Priority: Minor
>             Fix For: 4.2
>
>
> I had posted to the dev list the same issue with in regard of the binding annotations, in regard of meta this is not so complicated, and has real advantages:
> I would like to propse:
> depracate @Meta
> create a 
> annotation interface @Metas (
>   @MetaValue[] value()
> )
> where @MetaValue is : String name(); String value()
> the use case:
> Meta names can be used as standalone constants.
> Meta values can be used as standalone constants.
> currently, one has to define two constants: one to inject the meta, one to set its value, which is "unclean":
> currently:
> META_ROLE="role";
> META_ROLE_USER="role=user"; or META_ROLE + "=user";
> and 
> @Meta(META_ROLE_USER)
> @InjectMeta(META_ROLE)
> instead:
> META_ROLE_USER="user";
> @Metas( @MetaValue( name=META_ROLE, value=META_ROLE_USER ) )
> and
> @InjectMeta(... the same as above.
> Ofcouse, the benefit is not straight forward, until one works with constants from sources outside of the tapestry project.
> The meta values may be defined outside the tapestry application( in the backend) - and one can not use it in a straight forward manner. instead one has to define an extra constant with the equals sign. Though this is not very "tragic" it is not straightforward, and I consider it an ockwardty (english spelling :( ) of the framework.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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