[ https://issues.apache.org/jira/browse/ISIS-3205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber resolved ISIS-3205. ------------------------------ Assignee: Andi Huber Resolution: Not A Problem NOT A PROBLEM: behavior is now fully governed by the associated value-semantics; a property or parameter is either null-able or required; if not specified we default to 'required' per value-semantics we have defaults pre-configured for all number types, which are the replacements for null in that case (I did only check very quickly with the demo app, and everything seems ok there) > [NOT A PROBLEM] Contributed properties returning BigDecimal or BigInteger do > not display null values correctly > -------------------------------------------------------------------------------------------------------------- > > Key: ISIS-3205 > URL: https://issues.apache.org/jira/browse/ISIS-3205 > Project: Isis > Issue Type: Bug > Components: Wicket Viewer > Affects Versions: 2.0.0-M8 > Reporter: Johan Doornenbal > Assignee: Andi Huber > Priority: Major > Attachments: Screenshot 2022-09-07 at 08.07.12.png, Screenshot > 2022-09-07 at 08.07.19.png > > > A property of type BigDecimal and BigInteger having a null value should be > displayed as (none) in UI. > However, when a safe action is contributed, a 0 is displayed. > > Example code > {code:java} > // displays 0 > public BigDecimal getTestFieldBigDecimal(){ > return null; > } > // displays 0 > public BigInteger getTestFieldBigInteger(){ > return null; > } > // displays (none) when null > @javax.persistence.Column(nullable = true) > @Getter @Setter > private BigDecimal testPersistedBigDecimal; {code} > > I am on nightly > 2.0.0-M7.20220830-0421-4fb520ca -- This message was sent by Atlassian Jira (v8.20.10#820010)