Directory

← Back

FormSender

FormSender is a component for submitting data via post or get.

Author

Rating

Popularity

<100

Sometimes you just have the need to submit. A form, some data to another service... FormSender allows you to set the target URL, the desired submit method (POST or GET) and add as much data as you want to send. Then just call submit() and remember, that the call will probably transfer the user away from the current application.

This is a client-side extension, so the widgetset must be recompiled before the add-on will work.

Sample code

  //using the supplied builder
  FormSenderBuilder.create().withUI(getUI())
                        .withAction("www.targeturl.com/foobar")
                        .withMethod(Method.POST)
                        .withValue("name", usernameField.getValue())
                        .withValue("password", passwordField.getValue())
                        .submit();

  //using like a normal UI extension
  Formsender sender = new FormSender();
  sender.setAction("www.targeturl.com/foobar");
  sender.setMethod(Method.POST);
  sender.addValue"name", usernameField.getValue());
  sender.addValue("password", passwordField.getValue());
  sender.extend(getUI());
  sender.submit();

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Changed into extension

Released
2013-10-31
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.0+
Vaadin 6.2+ in 0.1
Browser
Internet Explorer
Internet Explorer
Internet Explorer
Firefox
Opera
Safari
Google Chrome
Internet Explorer
iOS Browser
Android Browser
Internet Explorer

FormSender - Vaadin Add-on Directory

FormSender is a component for submitting data via post or get. FormSender - Vaadin Add-on Directory
Sometimes you just have the need to submit. A form, some data to another service... FormSender allows you to set the target URL, the desired submit method (POST or GET) and add as much data as you want to send. Then just call submit() and remember, that the call will probably transfer the user away from the current application. This is a client-side extension, so the widgetset must be recompiled before the add-on will work.
Online