You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2022/09/08 12:22:00 UTC

[jira] [Updated] (ISIS-3205) [NOT A PROBLEM] Contributed properties returning BigDecimal or BigInteger do not display null values correctly

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

Andi Huber updated ISIS-3205:
-----------------------------
    Summary: [NOT A PROBLEM] Contributed properties returning BigDecimal or BigInteger do not display null values correctly  (was: Contributed properties returning BigDecimal or BigInteger do not display null values correctly)

> [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
>            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)