Re: how to pass hash map to native java script method

2011-06-12 Thread rsutton
? On Thursday, June 9, 2011 3:19:05 AM UTC+2, rsutton wrote:   var form = document.createElement(form); FormElement form = Document.get().createFormElement();   form.setAttribute(method, post); form.setAttribute(method, post); or form.setMethod(post); (would be the equivalent of form.method='post

Re: how to pass hash map to native java script method

2011-06-10 Thread rsutton
when I do a post from gwt, the generated html page is returned in an object. there are 2 problems with this. 1. I want the browser to render the returned page 2. this report could be excess of 1GB. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit

Re: how to pass hash map to native java script method

2011-06-10 Thread rsutton
OK, I'll try this. Thanks On Jun 11, 12:03 am, Derek derekad...@gmail.com wrote: Actually I don't think it's as simple as you'd think. Gwt java objects are pretty opaque to JSNI. Depending on what you need, i'd suggest using JSONObject as a replacement for HashMap. That should probably work

how to pass hash map to native java script method

2011-06-09 Thread rsutton
I am trying to pass a Hashmap to a native method as can be seen below. I have been unable to find any suitable example code. Any assistance would be greatly appreciated. I know this is simple, I just haven't done it before. Thanks. public void onClick(ClickEvent event) { MapString,