Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-3205

[NOT A PROBLEM] Contributed properties returning BigDecimal or BigInteger do not display null values correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.0.0-M7
    • 2.0.0-M8
    • Viewer Wicket
    • None

    Description

      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 

      // 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; 

       

      I am on nightly 

      2.0.0-M7.20220830-0421-4fb520ca

      Attachments

        1. Screenshot 2022-09-07 at 08.07.12.png
          56 kB
          Johan Doornenbal
        2. Screenshot 2022-09-07 at 08.07.19.png
          32 kB
          Johan Doornenbal

        Activity

          People

            hobrom Andi Huber
            johandoornenbal Johan Doornenbal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: