you just saved my day!
i am new to the dom inspector stuff but thanks for the guide. i will
follow the path.
here is the working code:
<code>
public void onModuleLoad() {
final FormPanel form = new FormPanel("payPal");
VerticalPanel panel = new VerticalPanel();
form.setAction("https://www.paypal.com/cgi-bin/webscr");
form.setMethod(FormPanel.METHOD_POST);
panel.add(new Hidden("item_number", "1"));
panel.add(new Hidden("cmd", "_xclick"));
panel.add(new Hidden("no_note", "1"));
panel.add(new Hidden("business",
"[email protected]"));
panel.add(new Hidden("lc", "US"));
panel.add(new Hidden("button_subtype", "services"));
panel.add(new Hidden("cn", "Add special instructions to the
seller"));
panel.add(new Hidden("no_shipping", "2"));
panel.add(new Hidden("rm", "1"));
panel.add(new Hidden("bn", "PP-
BuyNowBF:btn_paynow_SM.gif:NonHosted"));
panel.add(new Hidden("variables", "http://google.com"));
panel.add(new Hidden("cancel_return", "http://google.com"));
panel.add(new Hidden("notify_url", "http://google.com"));
panel.add(new Hidden("return", "http://halbgasse.at"));
panel.add(new Hidden("currency_code", "USD"));
panel.add(new Hidden("item_name", "Deal Name"));
panel.add(new Hidden("amount", "500"));
panel.add(new Button("Buy Now!", new ClickHandler() {
public void onClick(ClickEvent event) {
form.submit();
// GWT.log("ausgeführt!");
}
}));
form.add(panel);
RootPanel.get().add(form);
}
</code>
@btw: i tryed this already before, but then i was getting the
umbrellaException, so i did take this line out: "panel.add(new
Hidden("submit", "Submit"));" and everything is fine now.
great support!
--
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.