You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2012/09/02 11:46:07 UTC

[jira] [Updated] (ISIS-258) Extend @Hidden and @Disabled to specify Where the object member should be hidden/disabled.

     [ https://issues.apache.org/jira/browse/ISIS-258?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dan Haywood updated ISIS-258:
-----------------------------

    Description: 
Coming from a desire to hide property members within tables.

@Hidden(Where.COLLECTION_TABLE)
public String getSomeNotVeryInterestingProperty() { ... }

NB: as a result of this change, will slightly break the applib annotation for both @Hidden and @Disabled.

For example, previously we had @Hidden(When.UNTIL_PERSISTED), with the value() attribute being set.  value() has now been renamed to when(), in order to allow where() to also be added.

This will now be @Hidden(when=When.UNTIL_PERSISTED).

Note that @Hidden and @Disabled (by itself, with value() not specified) will continue to work with no changes to application code.



  was:
Coming from a desire to hide property members within tables.

@Hidden(Where.COLLECTION_TABLE)
public String getSomeNotVeryInterestingProperty() { ... }


    
> Extend @Hidden and @Disabled to specify Where the object member should be hidden/disabled.
> ------------------------------------------------------------------------------------------
>
>                 Key: ISIS-258
>                 URL: https://issues.apache.org/jira/browse/ISIS-258
>             Project: Isis
>          Issue Type: Improvement
>    Affects Versions: 0.2.0-incubating
>            Reporter: Dan Haywood
>            Assignee: Dan Haywood
>            Priority: Minor
>
> Coming from a desire to hide property members within tables.
> @Hidden(Where.COLLECTION_TABLE)
> public String getSomeNotVeryInterestingProperty() { ... }
> NB: as a result of this change, will slightly break the applib annotation for both @Hidden and @Disabled.
> For example, previously we had @Hidden(When.UNTIL_PERSISTED), with the value() attribute being set.  value() has now been renamed to when(), in order to allow where() to also be added.
> This will now be @Hidden(when=When.UNTIL_PERSISTED).
> Note that @Hidden and @Disabled (by itself, with value() not specified) will continue to work with no changes to application code.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira