hii...
i need help ...
i get problem with save data to database with hibernate.
when i executed the event, i always get on failure
this is the code...

Button btn= new Button("create");
btn.addClickHandler(new ClickHandler() {
                        public void onClick(ClickEvent event) {
                                Info info= new Info();
                                info.setId(null);
                                info.setUsername(txtbxUsername.getText());
                                info.setPassword(passwordTextBox.getText());
                                infoService.saveInfo(info, new 
AsyncCallback<String>() {

                                        @Override
                                        public void onSuccess(String result) {
                                                // TODO Auto-generated method 
stub
                                                Window.alert("success");

                                        }

                                        @Override
                                        public void onFailure(Throwable caught) 
{
                                                // TODO Auto-generated method 
stub
                                                Window.alert("fail"+ 
caught.getMessage());
                                        }
                                });
                        }
                });

how to make it on success?
please your help :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to