Thanks for the reply. I will go more specific on this.I am using vaadin 7.
basically what i have done…
CatCatalogue catalog=new CatCatalogue();
BeanItem bean=new BeanItem(catalog);
final Property property1=bean.getItemProperty(“name”);
final Property property2=bean.getItemProperty(“catCatalogueStatuses.statusId”);
final Property property4=bean.getItemProperty(“catCatalogueType.typeId”);
for status selection i have taken one combo-box with bean item container>>
final BeanItemContainer beans3 =
new BeanItemContainer(CatCatalogueStatuses.class);
for (CatCatalogueStatuses catalogueStatus :status.loadCatalogStatusFromWS()){
beans3.addBean(catalogueStatus);
}
final ComboBox satsus=new ComboBox("",beans3);
satsus.setImmediate(true);
satsus.setPropertyDataSource(property2);
satsus.setItemCaptionMode(AbstractSelect.ItemCaptionMode.ID);
satsus.setItemCaptionPropertyId("name");
and for type selection >>
final BeanItemContainer beans2 =
new BeanItemContainer(CatCatalogueType.class);
for (CatCatalogueType catalogue :type.loadCatalogTypeFromWS()){
beans2.addItem(catalogue);
}
final ComboBox type=new ComboBox("",beans2);
type.setPropertyDataSource(property4);
type.setItemCaptionMode(AbstractSelect.ItemCaptionMode.ID)
type.setItemCaptionPropertyId("name")
for insertion i was calling hibernate function>>
cat.save(catalog);
firstly it shows conversion exception that CatCatalogueWSStub.CatCatalogueStatuses is not the type of CatCatalogestatusesWSStub.CatCatalogueStatuses.
and it shows error of catCatalogueStatuses and catCatalogueType as null on console.
i think we have to write custom convert for this i tried it but, not works with combobox. please let me know is there any demo
code on this.
i tried lot on it but , unfortunately not works.
suggest any solution on this.
Thanks/