Here is the relevant part of my code:
final Button submitBtn = new Button("Submit", new
ButtonListenerAdapter() {
public void onClick(Button button, EventObject e) {
submitForm();
}
});
this.addFormListener(new FormListenerAdapter() {
public void onActionComplete(Form form, int httpStatus,
java.lang.String responseText) {
GWT.log("form submit action complete", null);
}
public boolean doBeforeAction(Form form) {
GWT.log("form listener doBeforeAction", null);
return true;
}
public void onActionFailed(Form form, int httpStatus,
java.lang.String responseText) {
GWT.log("form submit listener failure",null);
}
});
private void submitForm() {
GWT.log("about to submit...", null);
this.getForm().submit("http://localhost/recipevault_feed/
updaterecipe.php",
null,Connection.POST,"Saving data...",false);
GWT.log("submited.", null);
}
----------------
I hit the submit button on the form (in hosted mode) and check the Web
Inspector and see a message that just says Permission Denied. I have
added -whitelist "^http://localhost:8888" to the run time arguments in
Eclipse.
This code is just about exactly from the example; what am I missing?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---