Re: how to resize window to so that embedded Frame has no scrollbars?

2009-03-01 Thread Darkflame
I think you can do this using the Dom; int scrollarea = DOM.getElementPropertyInt(frame.getElement(), scrollHeight); Cant garenty this will work though as I cant test this here. I think I used a simerla solution before though. On 26 feb, 20:20, limbicsys...@gmail.com limbicsys...@gmail.com

Re: how to add gwt widgets to image(on top of image)

2009-03-01 Thread Darkflame
Maybe instead it would be easier for you to use an AbsolutePanel? This lets you place widgets over other widgets. So youd give the absolute panel the css property of a background you want, then simply place the button and labels ontop. (labels by default, have a transparent back). On 28 feb,

iGoogle-like effect with GWT

2009-03-01 Thread Pete Kay
Hi, I would like to use GWT to develop a user portal much like the front page of iGoogle where user can add or remove widgets at will. So, the question I have is that is it possible to use any GWT lib to develop that front page and how to use GWT to develop the widgets that can be add/remove on

Re: How to remove a GWT widget from the Dom using native javascript?

2009-03-01 Thread Daniel Kurka
read up on calling java code from javascript: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideJavaFromJavaScript 2009/3/1 Darkflame darkfl...@gmail.com Bump Anyone got any ideas? I think the proper way to do it is to get the native

GWT and XSLT

2009-03-01 Thread Juan Backson
Hi, Is there any example showing how GWT and XSLT can be coupled together? We are moving into developing cycle but our UI design is not ready. Therefore, we would like to use XSLT to be able to decouple the GWT RPC coding and the UI workflow and design. Does this make sense with GWT? Could

Re: How to remove a GWT widget from the Dom using native javascript?

2009-03-01 Thread Darkflame
Bump Anyone got any ideas? I think the proper way to do it is to get the native javascript to in turn trigger the gwt code again to remove it cleanly, but I dont have a clue how to do this. On 23 feb, 21:20, Darkflame darkfl...@gmail.com wrote: Because it has to be triggered when native

Project dependencies in GWT 1.6.1

2009-03-01 Thread Tomer
Hi all, I have a GWT project dependent, for server libraries, on another project. In GWT 1.5 and Eclipse, I would just define a required project in the build path and be done with it. GWT 1.6 seems to require a JAR of the required project be put in the war/WEB-INF/lib directory, even for hosted

Re: What are your thoughts on Cappuccino and SproutCore?

2009-03-01 Thread Adligo
Hi All, I agree with gregor (on lots of things not just this thread :) ...) , the JRE emulation of GWT will prove to be deciding factor in the long run. For instance if you wanted to package your logic with your data in the true Object Oriented fashion, GWT provides a way to move the code

Models not added to Serialization Policy

2009-03-01 Thread ben
Hi I have a model class Customer and this one has as a member variable an instance of the model class Address. Both of them satisfy the requirements for serializable Java beans (default constructor, serialVersionUID, implements java.io.Serializable). The path to the model classes are also

(JSNI) Accessing this instance from inner JS functions

2009-03-01 Thread Andrey
Hi list, I want to setup a listener to a widget from java code using JSNI. The listener will call java method. Here's my code: class PageToolbar extends PagingToolbar { private native void patch() /*-{ var pagingToolbar = th...@com.gwtext.client.widgets.component::getOrCreateJsObj()();

How to use SuggestionHandler

2009-03-01 Thread donnysp
Hi there, I've got a bit of code like this: final SuggestBox suggestBox = new SuggestBox(oracle); suggestBox.addClickListener(new ClickListener() { public void onClick(Widget sender) { // stuff } });

Server-side logging with Log4j in GWT 1.6

2009-03-01 Thread Tomer
This might help someone: To use Log4j as your application logger - no configuration is needed. Just put your configuration file (log4j.xml, log4j.properties) in the application's war/WEB-INF/classes. Tomer --~--~-~--~~~---~--~~ You received this message because

Deploying to a Shared TOMCAT

2009-03-01 Thread Sean
Hello, I have read dozens of posts about deploying RPC's to TOMCAT, but I still can't seem to get it done. I am working with MOCHA hosting and they allow one WEB-INF file in the base of your public http directory. I can't seem to figure out what in the web.xml file is talking about what. The

Re: (JSNI) Accessing this instance from inner JS functions

2009-03-01 Thread Thomas Broyer
On 1 mar, 14:02, Andrey razumovsky.and...@gmail.com wrote: Hi list, I want to setup a listener to a widget from java code using JSNI. The listener will call java method. Here's my code: class PageToolbar extends PagingToolbar { private native void patch() /*-{         var pagingToolbar

Re: (JSNI) Accessing this instance from inner JS functions

2009-03-01 Thread Shawn Brown
HI, Is there any way I can access enclosing this instance (that would be PageToolbar)? Pass it in, and call your method. It works for me. patch(this); //method call class PageToolbar extends PagingToolbar { private native void patch(PageToolbar pt) /*-{ /class of whatever gets passed in

Unique color for each tab in a TabPanel

2009-03-01 Thread Ando
Hi, I am trying to set a unique color for each tab in a TabPanel, i.e I want the first tab to be blue, the second to be green etc. The only way I can see to do this is to get a hold of the underlying DOM and set the css id manually, but even then I'm not sure this will work. Is there an easier

Re: Deploying to a Shared TOMCAT

2009-03-01 Thread Shawn Brown
Hi, It looks to me like you have 2 problems. #1 The requested URL /Foo was not found on this server Did you restart the tomcat or restart your app? What url are you using to access it. What is your app called? Are you using something like serverurl/app_name/foo? And this is the

Re: Project dependencies in GWT 1.6.1

2009-03-01 Thread Shawn Brown
Hi, GWT 1.6 seems to require a JAR of the required project be put in the war/WEB-INF/lib directory, even for hosted mode. Has anybody been able to work around this? (not using additional build tools) Have you tried to modify build.xml for example I have: path id=project.class.path

Re: How to retrieve data as byte[] in GWT from getImageData

2009-03-01 Thread Kevin Tarn
I got idea from canvas2image.js(http://www.nihilogic.dk/labs/canvas2image/). So I wrote a JSNI methods as below: public native String getImageData(int left, int top, int width, int height) /*-{ var oData = th...@com.messenger.client.framework.canvas::context.getImageData(left, top,

Re: How to retrieve data as byte[] in GWT from getImageData

2009-03-01 Thread Kevin Tarn
Forgot to tell: getImageData method convert raw data to a Windows DIB format. Kevin On Mon, Mar 2, 2009 at 8:52 AM, Kevin Tarn kevn.t...@gmail.com wrote: I got idea from canvas2image.js(http://www.nihilogic.dk/labs/canvas2image/). So I wrote a JSNI methods as below: public native String

Re: Unique color for each tab in a TabPanel

2009-03-01 Thread gregor
Hi Ando, You can use TabPanel.add(Widget tabContent, Widget tabHeader). The tabHeader widgets can be any type of widget, so you can style them how you like. If you extend TabPanel with your own method to create the tab header widgets when you add tabs, then you could assign each new tab header

popup menu example

2009-03-01 Thread CarloSilva
Please, somebody can help me with a menu popup code? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To

Re: popup menu example

2009-03-01 Thread Vagner Araujo
http://gwt.google.com/samples/Showcase/Showcase.html#CwBasicPopup Vagner Araujo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to

Re: (JSNI) Accessing this instance from inner JS functions

2009-03-01 Thread sutarsa giri
hi andrey, i usually use this trick when deal with this reference inside method class PageToolbar extends PagingToolbar { private native void patch() /*-{ var dummyThis=this; var pagingToolbar = th...@com.gwtext.client.widgets.component::getOrCreateJsObj()();

Which version of Javascript is supported ?

2009-03-01 Thread bala.linux
Hello All, Can some one please let me know which version of Javascript is being supported by the latest GWT ? Regards, Bala --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To

Jsni Help

2009-03-01 Thread jagadesh
HI Guys, i just started working with Jsni and Gwt. my requirement is i will be having a html page with 2 textboxes as firstName and lastName. i need to get the values entered in these textfields into my Gwt code. i was able to get the values as string .i have written 2 methods getFirstName ()

error when loading data from mySQL database

2009-03-01 Thread 144_genting
Hi i was following this example :http://code.google.com/p/gwt-examples/ wiki/project_MySQLConn but i cant seem to complete it and keep getting these errors. [ERROR] Unable to load module entry point class com.mycompany.mypackage.client.mysql2 (see associated exception for details)

Re: Jsni Help

2009-03-01 Thread Shawn Brown
Have you read http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideJavaScriptNativeInterface On Mon, Mar 2, 2009 at 3:21 PM, jagadesh jagadesh.manch...@gmail.com wrote: HI Guys, i just started working with Jsni and Gwt. my requirement is i will

Re: iGoogle-like effect with GWT

2009-03-01 Thread Harald Pehl
My recommendation is to use a widget library like SmartGWT or Ext GWT. They both have support for portal like pages: SmartGWT: http://www.smartclient.com/smartgwt/showcase/#featured_portal Ext GWT: http://extjs.com/examples/portal/portal.html Greetings Harald On 1 Mrz., 11:59, Pete Kay

Div in GWT?

2009-03-01 Thread Joakim Sjöberg
Hi! We have created an application that uses standard html and panels. I wonder if there is any good way to used DIVs instead of panels? Is there anyone who have done this that could give me some advice? Any special way to do it? Joakim Sjöberg Technical Consultant Artificial