I tested the addon with Vaadin 6.6.4, and it at least seemed to work ok. Could you post the code you are using to construct the POST? And did you remember to recompile your widgetset?
I have tried to use the FormSender but it does not seem to work.
I have a conformation dialog box in whose button click event I execute:
FormSender formSender = new FormSender();
formSender.setFormMethod(FormSender.Method.POST);
Map<String, String> parameters = baseURLData(userId, moduleId, appId, accessLevel);
for (Iterator it = parameters.keySet().iterator(); it.hasNext() {
String key = (String) it.next();
if (! key.equals(Parameters.url.toString())) // just the parameters, not the base URL
{
String value = parameters.get(key);
formSender.addValue( key, value );
}
}
url = parameters.get( Parameters.url.toString() );
formSender.submit();
I have also tried:
formSender.setFormTarget( “localhost:8080/manutencao_1/module1” );
and
formSender.setFormTarget( “/manutencao_1/module1” );
But noting works. Note that I know the url is correct because I can test it directly on the browser.
I also set breakpoints in the code and the init() and handleParameters() methods are not
invoked so it seems that HTTP is not even executed.
Can anyone see what is wrong? How can I diagnose this further?
Neglected to mention the following. I have 2 applications.
In application 1 I create and use the FormSender.
The URL I use is the url of another application, application 2.
I am also only interested in sending data, not redirecting the
application. Is this possible with FormSender?
You could either use
FireBug to track if the client-side is making the HTTP-request to your second application, or use the
debug mode to view if the client-side actually has the correct implementation (in other words, if you have recompiled the widgetset).
I did try using the debug mode, but could not see anything.
BTW, I am using the Eclipse plug-in and the it did compile the widget.
Have to look closer at the debug output.
The FormSender add-on should do the trick. If you’re having problems, you could start by looking at the sample application at
GitHub and checking if that works for you, and editing from there.
how to call dopost method from vaadin application?
BrowserWindowOpener component always call doGet() of servlet. I want to call dopost method so that parameter is not shown at the browser addressbar if I redirect to another url. Will it be ok to use Form Sender add-on??.. If it is ok, then How to use it?.. Please reply soon…
I am having issues with FormSender Add on.
I am able to succesfully compile the widgetset and I see the output in \src\main\webapp\VAADIN\widgetsets.
I see the compiled files in my war as well.
However still when I run the application which has the FormSender add-on I get the error :
Widgetset does not contain implementation for org.vaadin.risto.formsender.FormSender. Check its component connector’s @Connect mapping, widgetsets GWT module description file and re-compile your widgetset. In case you have downloaded a vaadin add-on package, you might want to refer to add-on instructions.