Re: How to embed GWT widget in any webapplication

2010-07-13 Thread Pondmouse
You could create the widget, and include the link to the compiled javascript in the page. In the HTML you'd need a div with an id=embed-my-widget-here and then write some native javascript to on-load/on-click to talk back into the gwt to RootPanel.get(embed-my-widget-here).add(myWidget); On Jun

Re: panel set width with percentage

2010-03-29 Thread Pondmouse
I haven't used % with those widgets before, but if you can't do it why not try get the browser Window.getClientWidth() and then fire a resize event to keep sizes in check On Mar 27, 5:21 pm, kozura koz...@gmail.com wrote: Try using one of the new LayoutPanels rooted in RootLayoutPanel, these

Re: Inter-frame communication

2010-03-19 Thread Pondmouse
I did something similar by writing native javascript. See here http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html I had trouble getting the embedded iframes call the javascript functions. See here http://www.dyn-web.com/tutorials/iframes/ Managed to call the

Re: How to add Widget to a DOM element?

2010-03-19 Thread Pondmouse
Doesn't this work Rootpanel.get(MyIDName).add(widget); I've managed to insert HTML with clickhandlers like this On Mar 18, 3:04 pm, Thomas Broyer t.bro...@gmail.com wrote: On Mar 17, 8:07 pm, Stefan Ballmer stefan.ball...@gmail.com wrote: On Mar 17, 10:46 am, Thomas Broyer t.bro...@gmail.com

Re: native java script

2010-03-19 Thread Pondmouse
You can add the javascript through GWT like so: // A Java method using JSNI native void sayHelloInJava(String name) /*-{ $wnd.sayHello(name); // $wnd is a JSNI synonym for 'window' }-*/; For more examples go here:

Re: Image inside button

2010-03-11 Thread Pondmouse
Why not try insert a GWT image and add clickhandlers to the image, the image then becomes your button. On Mar 8, 2:38 pm, gadaleta.marco gadaleta.ma...@gmail.com wrote: can you send me an example please? On 8 Mar, 13:21, mariyan nenchev nenchev.mari...@gmail.com wrote: use

Re: smack api integration

2009-10-27 Thread Pondmouse
I've been trying to figure this out for days. I don't think it's possible. The only JARs I've seen integrated into GWT come with a pre- configured .gwt.xml files But saying that I haven't really found anything that says you can't use any external API, except for a post on