How to input numbers with decial places? Like money inputs
I have two questions if someone can help me.
1) How do I input numbers with decimal places? The field is of type BigDecimal on the domain class. Would anyone have any example of that?
On this same field I would like to execute a calculation and show the result on the screen, since this is a price of a product I want to multiply the price times the amount and show the total price.
2) And, if I have an object and this object has an attribute of type Collection and I want to validate the whole object with all items on the collection? How to do on the controller?
This is is my first post, I am learning how to use Thyneleaf with SB and I need help.