Hello,
we have a application with a form, where users can enter costs on different rows.
As they go to the next field, the total should be calculated and shown in a separate textfield.
That’s no problem so far, it works.
But we have the same calculations done in the POJO layer, providing the business logic layer.
Is there a way, to have the calculations been done via POJO, but still have the bound textfields etc. be updated as the user switches from field to field?
It’s “nasty” to do this on the UI with onValueChange listener and handling the buffering/writethrough.
Finally it duplicates the calculation code.
I have attached a sample form.
We use JPAContainer for the databinding.