i want to use beanproxy with rpc.
something like that
public class UIBdEmpresaImpl extends UIBdEmpresa {
private final ServiceExportarAsync servicioExportar = GWT.create(ServiceExportar.class);
private UIHomeBdEmpresa uiHomeBdEmpresa;
public UIBdEmpresaImpl(UIHomeBdEmpresa uiHomeBdEmpresa) {
this.uiHomeBdEmpresa=uiHomeBdEmpresa;
loadTable();
}
@Override
public void loadTable() {
popup.showPopup();
ContextMantenimientoBdEmpresa context = FACTORY.contextMantenimientoBdEmpresa();
FACTORY.initialize(EVENTBUS);
String keyPublic = UISesion.keyPublic;
Request<List<BdEmpresaProxy>> request = context.listar(keyPublic);
request.fire(new Receiver<List<BdEmpresaProxy>>() {
@Override
public void onSuccess(List<BdEmpresaProxy> response) {
grid.getSelectionModel().clear();
grid.setData(response);
popup.hidePopup();
//lstBdEmpresa.setData(grid.getData());
}
@Override
public void onFailure(ServerFailure error) {
popup.hidePopup();
//Window.alert(error.getMessage());
Notification not=new Notification(Notification.WARNING,error.getMessage());
not.showPopup();
}
});
}
@Override
public void exportarData() {
servicioExportar.exportar(grid.getData(),new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
GWT.log(caught.getMessage(), caught);
}
@Override
public void onSuccess(Void result) {
}
});
}
public class GridBdEmpresa extends DataGrid<BdEmpresaProxy> {
private List<BdEmpresaProxy> data = new ArrayList<BdEmpresaProxy>();
...
public List<BdEmpresaProxy> getData() {
return data;
}
....
}
I have in following error:
com.webgocommerce.client.beanproxy.BdEmpresaProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory
public class UIBdEmpresaImpl extends UIBdEmpresa {
private final ServiceExportarAsync servicioExportar = GWT.create(ServiceExportar.class);
private UIHomeBdEmpresa uiHomeBdEmpresa;
public UIBdEmpresaImpl(UIHomeBdEmpresa uiHomeBdEmpresa) {
this.uiHomeBdEmpresa=uiHomeBdEmpresa;
loadTable();
}
@Override
public void loadTable() {
popup.showPopup();
ContextMantenimientoBdEmpresa context = FACTORY.contextMantenimientoBdEmpresa();
FACTORY.initialize(EVENTBUS);
String keyPublic = UISesion.keyPublic;
Request<List<BdEmpresaProxy>> request = context.listar(keyPublic);
request.fire(new Receiver<List<BdEmpresaProxy>>() {
@Override
public void onSuccess(List<BdEmpresaProxy> response) {
grid.getSelectionModel().clear();
grid.setData(response);
popup.hidePopup();
//lstBdEmpresa.setData(grid.getData());
}
@Override
public void onFailure(ServerFailure error) {
popup.hidePopup();
//Window.alert(error.getMessage());
Notification not=new Notification(Notification.WARNING,error.getMessage());
not.showPopup();
}
});
}
@Override
public void exportarData() {
servicioExportar.exportar(grid.getData(),new AsyncCallback<Void>() {
@Override
public void onFailure(Throwable caught) {
GWT.log(caught.getMessage(), caught);
}
@Override
public void onSuccess(Void result) {
}
});
}
public class GridBdEmpresa extends DataGrid<BdEmpresaProxy> {
private List<BdEmpresaProxy> data = new ArrayList<BdEmpresaProxy>();
...
public List<BdEmpresaProxy> getData() {
return data;
}
....
}
I have in following error:
com.webgocommerce.client.beanproxy.BdEmpresaProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment