I wrote something at https://vaadin.com/forum#!/thread/8152096/10403579 and I think it is a good simple idea. You should add the possibility to a Page object to do a post. The post should be done from the browser and not the server to keep cookies and authentication. That way, we could have button that do an HTML form post like in the old times. I would let the programmer build the content of the post in case he want the post an XML instead of a form, that situation occurs. Here is an example of how it would work:
[font=courier new]
StringBuilder wContent = new StringBuilder();
wContent.append(URLEncoder.encode(“key1”, “UTF-8”));
wContent.append( “=” );
wContent.append(URLEncoder.encode(“value1”, “UTF-8”));
wContent.append( “&” );
wContent.append(URLEncoder.encode(“key2”, “UTF-8”));
wContent.append( “=” );
wContent.append(URLEncoder.encode(“value2”, “UTF-8”));
[/font]
Page.getCurrent().post( “some url”, wContent.toString(), “_top” );