[ 
https://issues.apache.org/jira/browse/ISIS-3121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17580052#comment-17580052
 ] 

Andi Huber commented on ISIS-3121:
----------------------------------

BigDecimal rendering is now customizable by ValueSemantics annotation. The 
screenshots reflect correct behavior, as the default value semantics states 
minFractionalDigits = 0. However, I can confirm a bug here, as following 
snipped should work (that is, it should render 2 fractional places 
unconditionally), but does not

 
{code:java}
@Property
@Column(nullable = false, scale = 2)
@ValueSemantics(minFractionalDigits = 2) 
@Getter @Setter
private java.math.BigDecimal withMax2FractionDigits;{code}
 

> Wicket UI should display decimals for BigDecimal also when 0
> ------------------------------------------------------------
>
>                 Key: ISIS-3121
>                 URL: https://issues.apache.org/jira/browse/ISIS-3121
>             Project: Isis
>          Issue Type: Bug
>          Components: Isis Viewer Wicket
>            Reporter: Johan Doornenbal
>            Priority: Major
>         Attachments: Screenshot 2022-08-15 at 10.20.25.png, Screenshot 
> 2022-08-15 at 10.20.33.png, Screenshot 2022-08-15 at 10.20.41.png, Screenshot 
> 2022-08-15 at 10.20.46.png
>
>
> For example: Currently, when specifying '1.00' as a BigDecimal the UI renders 
> '1' instead of '1.00' even when JPA / JDP Column annotations have scale = 2.
> See screenshots attached.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to