Johan Doornenbal created ISIS-3205:
--------------------------------------

             Summary: 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
         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)

Reply via email to