In the petclinic sample all submits and retrievals from the server/database are happenning in the views. In my situation I will have a lot of data on the dialogs and I will have to call server/database from the dialogs, what is the best way to do it?
Should I pass "clinic" object to the constructor of dialog/form? and "OK" and "Cancel" buttons of the dialog lose their meannings in that case.
How to better handle this situation?
Thank you very much