[
https://issues.apache.org/jira/browse/CAUSEWAY-3083?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andi Huber updated CAUSEWAY-3083:
---------------------------------
Issue Type: Improvement (was: Bug)
> Vetoed instances of objects should not be rendered a "(none)"; instead "not
> authorised" or "not available" would be better
> --------------------------------------------------------------------------------------------------------------------------
>
> Key: CAUSEWAY-3083
> URL: https://issues.apache.org/jira/browse/CAUSEWAY-3083
> Project: Causeway
> Issue Type: Improvement
> Reporter: Daniel Keir Haywood
> Priority: Major
> Fix For: 2.0.0
>
>
> For example, support we have a Party superclass, Person and Organisation as
> subclasses.
> We choose to allow the user to access Party, but then have a veto on
> Organisation.
> What we would expect is that the property of type PArty is rendered, and if
> it contains a Person, then show the title of the Person, but if it contains
> an Organisation, then show either "not authorised" or "not available".
> However, we currently see "(none)".
>
> Our guess is that the veto is returning null, which is being translated to
> "(none)". We need to extend the contract of the vetoers in order to
> distinguish null = there isn't one, vs null = not telling you if there is one.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)