I have a Thymeleaf template
<input type="text" th:field="*{purchasePrice}" ../>
mapped to this property:
private float purchasePrice;
But I have this error:
Failed to convert property value of type java.lang.String to required type float for property purchasePrice; nested exception is java.lang.NumberFormatException: For input string: "0,132872"
I've trie also with
Failed to convert property value of type java.lang.String to required type float for property purchasePrice; nested exception is java.lang.NumberFormatException: For input string: "0.132872"
I also tried with <input type="text" th:field="${purchasePrice}" .../>
but the I got this error
java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'purchasePrice' available as request attribute
