Hi all,
I am working in a project using Vaadin framework.
In a window, I have a table and a form. WHen I click on a row in the table, the form datasource will be updated, I can change the formItem. After saving the form, the table will be updated. THe problem is that I want to get the BeanItem of the form after saving.
Normally I have to do like this:
Item item=form.getItemDatasource();
Company companyitem=new Company();
companyitem.setEmail((String)item.getItemProperty("email").getValue());
companyitem.setFax((String)item.getItemProperty("fax").getValue());
companyitem.setState((String)item.getItemProperty("state").getValue());
I know that it is not the right way to do but I could not find any other method.
Any help?