Re: need to execute commands on windows machine from remote server

2009-10-25 Thread sathya
is there any procedure to remote access files or remote call any dos or other command on the client computer ? Also I need the respone back after executing cmd. It is not specific to GWT. I just wanted to know is there any procedure to do this in JAVA. On Oct 22, 8:50 am, Lazo Apostolovski wr

GWT & Maven2 (1.7.1) Possible?

2009-10-25 Thread J.V.
I'm trying to get a first app up and running with GWT. What I would like to do is download the jars and compile with maven2. Has anyone been able to do this successfully? I can not find any documentation anywhere that actually leads me to a working example. Are the latest 1.7.1 jars available

HashMap argument type mismatch

2009-10-25 Thread Palani
Hello, I am in the process of converting from gwt 1.5 to 1.7.1 and getting the following error when I am trying to get a HashMap from the server. Any idea why this might happen? I am using JDK 1.6.0_13. The request looks like 5|0|4|http://localhost:54002/Webclient/webclient/| E2C9084EB9

Re: RunAsyncCallback

2009-10-25 Thread Sripathi Krishnan
Also, this paragraph from Code Splitting wikimay be useful - A less common example is that you expected an item to be exclusive to some > split point, but actually it's only included in leftover fragments. In this > case, browse to th

Re: RunAsyncCallback

2009-10-25 Thread Sripathi Krishnan
Maybe somebody from google will confirm this, but I doubt you are going to achieve code splitting by using proxies or interfaces, or by using any generic parameterized approach. A piece of code will end up in split-point-1.js *only if* it is always being used from within GWT.runAsync(). If a class

Re: HashMap Serialization Errors - GWT 1.7.0/1.7.1

2009-10-25 Thread Palani
I am also having the same problem and I have been struggling for the last two days. On Oct 19, 11:53 am, Doug In SC wrote: > The Windows version of the GWT fails whenever aHashMapis used in an > object that implements the IsSerializable interface.  An > IllegalArgumentException is thrown from t

Re: JSNI method doesn't work in IE?

2009-10-25 Thread dougx
Hm. IE doesn't support setAttribute to set event listeners, and GWT prides itself on not accommodating different browsers for things like this, You're best off writing your own. Perhaps something like this? public void onModuleLoad() { final Label l = new Label("This is a

Uploading my war to the Server

2009-10-25 Thread Proxy
I have finished building my first sort of complex app using GWT I connect to a MySQL DB using my JDBC connector and everything. Now I have one last issue, why can't I use the app when I deploy it on my server? I have to login and using Firebug I see that I get: Firebug's log limit has been reache

Re: java.lang.NoClassDefFoundError:java.net.Socket

2009-10-25 Thread Sripathi Krishnan
- You cannot connect to database from client side code. - In your server side code, you can connect to databases - however - if you are also using Google App Engine, you cannot. You are perhaps using Google App Engine along with Google Web Toolkit. Disable App Engine, and things should ru

I can't find the Compile/Browse button in GWT 2.0-ms2

2009-10-25 Thread Fangzx
In GWT version 1.x, I can press the Compile/Browse in hosted mode console to compile, but I can't find the Compile/Browse button in GWT 2.0-ms2. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" gr

Re: Organizing multiple HTML hosts / Entry points, etc. in single webapp

2009-10-25 Thread Fangzx
This is the same question what I want to ask also. --~--~-~--~~~---~--~~ 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 unsubscribe

Re: Will RequestBuilder in upcoming 2.0 support PUT and DELETE?

2009-10-25 Thread Fangzx
Thanks! On 10月25日, 下午7时15分, Thomas Broyer wrote: > On 25 oct, 09:47, Fangzx wrote: > > > I want to call server side RESTful service by RequestBuilder, but it > > currently only support GET and POST, any plan to support PUT and > > DELETE in upcoming 2.0? > > Seehttp://code.google.com/p/google-

Re: ListBox and listeners.

2009-10-25 Thread tskaife
The way I would do it is just to make a method out of what you call in your ListBox ChangeHandler then call that method anytime you set the value of the ListBox. Though depending on how complicated the page is or how many list boxes you have that could be a little tricky. On Oct 25, 7:52 pm, Thom

Re: ListBox and listeners.

2009-10-25 Thread Thomas Broyer
On 25 oct, 17:40, Emerson Matsuuchi wrote: > I have a issue that I'm trying to resolve and it may be something > simple that I'm completely overlooking.  I have a ListBox that has a > ChangeHandler registered with it.  I would like to programatically > change the value of the ListBox and have a

Re: EasyMock for GWT + MVP ?

2009-10-25 Thread Thomas Broyer
On 25 oct, 14:32, "fker...@gmail.com" wrote: > On Oct 25, 9:11 am, lowecg2004 wrote: > > > Your error looks like you're using the EasyMock class extensions and > > are missing cglib jars from your build path. > > > As it happens, I recently produced a getting started with MVP and unit > > test

Re: OOPHM - another port

2009-10-25 Thread Thomas Broyer
On 25 oct, 20:31, Andrey wrote: > Hello! > > I want to run two apps in OOPHM simultaneously (one is main site, and > other is admin editor) > How can I change OOPHM bind port 9997 ? See http://groups.google.fr/group/google-web-toolkit/msg/6b96afcd35f4244b --~--~-~--~~

Re: How to read POST parameters in GWT

2009-10-25 Thread jett
I'm fairly new to GWT as well and was trying to solve the same problem. I know you can pull out 'GET' parameters using a call like this: Window.Location.getParameter("token"); Don't know if that is an option you can use. Jett On Oct 9, 2:55 pm, Sudeep S wrote: > Hi, > I am new to gwt. > > I

java.lang.NoClassDefFoundError:java.net.Socket

2009-10-25 Thread balu
hi everyone. i am new to GWT,when i connect to oracle database from my application,i geting following error java.lang.NoClassDefFoundError:java.net.Socket is a restricted class.plz guide me to solve this problem. thanks balu --~--~-~--~~~---~--~~ You re

ListBox and listeners.

2009-10-25 Thread Emerson Matsuuchi
I have a issue that I'm trying to resolve and it may be something simple that I'm completely overlooking. I have a ListBox that has a ChangeHandler registered with it. I would like to programatically change the value of the ListBox and have an event fired that I can listen for. Unfortunately pr

RunAsyncCallback

2009-10-25 Thread skrat
I'm trying to split my code using sort of proxies, where I reuse parametrized RunAsyncCallback class. This class has basically just reference to Gin Provider of the real module class. When I use this for loading one module, it works perfectly, and I'm getting nice and correct location of split po

Liferay and GWT integration issue

2009-10-25 Thread Janusz Prokulewicz
Hi, I'm trying to launch some hello world example using GWT and Liferay (Portlet container). I decided to use Liferay Bundled with Tomcat 6.0. Here are the details of solution I want to implement: 1. I'd like to attach code generated by GWT only once for the whole portal. I figured it out that

Re: how to have app vary numbers of radio buttons?

2009-10-25 Thread Jon
> public RadioButton arbys[] = new RadioButton[#]; That was it. Thanks! -- Jon --~--~-~--~~~---~--~~ 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@goo

OOPHM - another port

2009-10-25 Thread Andrey
Hello! I want to run two apps in OOPHM simultaneously (one is main site, and other is admin editor) How can I change OOPHM bind port 9997 ? Currently I see [ERROR] Unable to bind socket on port 9997 -- is another session active? when running second app. Thanks in advance! --~--~-~--~-

Re: EasyMock for GWT + MVP ?

2009-10-25 Thread lowecg2004
As Arthur said, calling GWTMockUtilities.disarm() will prevent that error (that was in part 2 of my article :) As for needing asm-attrs.jar, I guess try it - any NoClassDefFoundError that looks asm related then that will answer your question... Cheers, Chris. On Oct 25, 5:44 pm, Arthur Kalmen

Re: EasyMock for GWT + MVP ?

2009-10-25 Thread Arthur Kalmenson
It's possible to use EasyMock to mock out GWT widgets in a standard JUnit or TestNG test, but you need to use GWTMockUtilities to disarm GWT. -- Arthur Kalmenson On Sun, Oct 25, 2009 at 12:58 AM, fker...@gmail.com wrote: > > I remember EasyMock didn't work for GWT, because it needed reflectio

GWT.log listener in hosted mode

2009-10-25 Thread al.hicks
Hello, I am looking for some help. I want to be able to listen to the GWT.log messages that are output in the hosted mode console and use them in another application. Currently I am only interested in doing this locally. My thoughts are that the simplest way to achieve this is to some how write t

Re: how to send variables in form panel

2009-10-25 Thread QBox
So in any way you will send multipart message to the server. The multipart message have same structure like normal message request. Have header and body. The key difference is the body structure. The body contain more then one message in his structure. Example: MIME-Version: 1.0 Content-Type: mult

Re: JSNI method doesn't work in IE?

2009-10-25 Thread Tomer
It's also possible to extend FlexTable with a HasMouseOverHandlers, HasMouseOutHandlers and HasMouseMoveHandlers, and copy what GWT does for onClick. However, you will have to do a lot of manual labour in onMouseMove. On Oct 25, 4:34 pm, Ian Bambury wrote: > Just notices that you want mouseover

Re: Bug? (GWT1.7 Linux SMP PAE)

2009-10-25 Thread Math2Gold
Changed a VM,it's ok now. On Oct 25, 10:20 pm, Math2Gold wrote: > 1.5 runs on this platform is perfect. but 1.7 crashed > > ---  T H R E A D  --- > > Current thread (0x08f79000):  JavaThread "CompilerThread0" daemon > [_thread_in_native, id=8994, stack(0x00879000,0x00

Re: Displaying static content on gwt client

2009-10-25 Thread usmanf
Thanks for the reply. So it means that it is going to be a GET request from the client to the server for the resource once the client will load on the browser. I am thinking to place most of the design code [html] in the static files with .html and place their contents into the panel's setHtml() i

Re: JSNI method doesn't work in IE?

2009-10-25 Thread Tomer
Hi Ian, I can actually suggest an acceptable solution here, based on inheritance: private static class MyFlexTable extends FlexTable implements HasMouseOverHandlers, HasMouseOutHandlers { public HandlerRegistration addMouseOverHandler(MouseOverHandler handler) {

Re: JSNI method doesn't work in IE?

2009-10-25 Thread Ian Bambury
Just notices that you want mouseover not click like the original question. I think you might be a bit stuck there unless you have fixed widths in which case you can use horizontalpanels in focuspanels in a verticalpanel. Ian http://examples.roughian.com 2009/10/25 Ian Bambury > Well, if you

Bug? (GWT1.7 Linux SMP PAE)

2009-10-25 Thread Math2Gold
1.5 runs on this platform is perfect. but 1.7 crashed --- T H R E A D --- Current thread (0x08f79000): JavaThread "CompilerThread0" daemon [_thread_in_native, id=8994, stack(0x00879000,0x008fa000)] siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_

Re: JSNI method doesn't work in IE?

2009-10-25 Thread Ian Bambury
Well, if you use a flextable, you can add a clickhandler to the flextable, and in the handler do something like @Override public void onClick(ClickEvent event) { FlexTable source = (FlexTable)event.getSource(); // if you can't get to the original flextable Cell cellFor

Re: Native JSON and safe parsing implementation

2009-10-25 Thread Thomas Broyer
On 25 oct, 13:28, Brendan wrote: > Great! > > stringify seems like it would make things even messier, but I guess > (though I'd have to look) if JSON is natively supported then the > browser vendor also has e.g. Date.prototype.toJSON() defined as well. > > I look forward to seeing your code! es

Re: JSNI method doesn't work in IE?

2009-10-25 Thread Tomer
Ian, thanks for your reply. I'm trying to dynamically create a table and attach a mouseover handler to the table rows, instead of attaching it to the individual widgets. Any idea how I can do this with GWT, given the current situation with IE? Tomer On Oct 24, 2:54 pm, Ian Bambury wrote: > Does

Re: EasyMock for GWT + MVP ?

2009-10-25 Thread fker...@gmail.com
On Oct 25, 9:11 am, lowecg2004 wrote: > Your error looks like you're using the EasyMock class extensions and > are missing cglib jars from your build path. > > As it happens, I recently produced a getting started with MVP and unit > testing with EasyMock article which might be of use: > > http://

Re: A strange setting for MVP

2009-10-25 Thread fker...@gmail.com
On Oct 25, 9:22 am, Thomas Broyer wrote: > > I'd rather use the following, though I understand why the > LoginView.Presenter interface could help with mocking (it's easier to > mock the view then, because you don't have to mock HasClickHandlers > and eventually HandlerRegistration and ClickEvent)

Re: how to have app vary numbers of radio buttons?

2009-10-25 Thread Brendan
have you run this in hosted mode? (or "development mode") I don't see a public RadioButton arbys[] = new RadioButton[#]; anywhere so I would think you would be getting a NullPointerException when you try and do access the 0th element. On Oct 25, 12:35 am, Jon wrote: > The code: works fine when c

Re: Native JSON and safe parsing implementation

2009-10-25 Thread Brendan
Great! stringify seems like it would make things even messier, but I guess (though I'd have to look) if JSON is natively supported then the browser vendor also has e.g. Date.prototype.toJSON() defined as well. I look forward to seeing your code! especially that last case. On Oct 25, 6:13 am, Th

Re: Data aware drop down widgets with MVP ?

2009-10-25 Thread Thomas Broyer
On 25 oct, 01:56, "fker...@gmail.com" wrote: > Hi! Thinking about MVP... how would you implement a data aware drop > down widget? > > Say you want to let the user enter a country code in the View. You > could use a TextBox, but a drop down list would be more usable. How > would the widget get i

Re: GWT ListBox Behavior

2009-10-25 Thread Thomas Broyer
On 23 oct, 22:28, oks wrote: > I create a listbox with item 1, 11, 2, 22, and 3. > > I press 1, then the item with value 1 is selected. > > After 1 second, I press 2, then the item with value 2 is selected. > > If I press 2 immediately right after pressing 1, the item with value 2 > is not sele

Re: MVP: get/set and callbacks

2009-10-25 Thread Thomas Broyer
On 24 oct, 14:39, Eduardo Guerrero wrote: > I have been trying out the MVP idea, and these are some points (read, > doubts) I have come up with. > > * I do not like the "HasValue suchAndSuchField" interface; > it's too "low level" in my opinion, and harder for testing. I have > been toying with

Re: A strange setting for MVP

2009-10-25 Thread Thomas Broyer
On 24 oct, 23:54, "fker...@gmail.com" wrote: > I have been > studyinghttp://blog.appenginefan.com/search/label/Schluesselmeister > application, and that got me to thinking about MVP... In that example, > "Display" is about the same as "View", and "Controller" is like > "Presenter". You inject

Re: Will RequestBuilder in upcoming 2.0 support PUT and DELETE?

2009-10-25 Thread Thomas Broyer
On 25 oct, 09:47, Fangzx wrote: > I want to call server side RESTful service by RequestBuilder, but it > currently only support GET and POST, any plan to  support PUT and > DELETE in upcoming 2.0? See http://code.google.com/p/google-web-toolkit/issues/detail?id=3388 (with workaround and patch)

Re: Native JSON and safe parsing implementation

2009-10-25 Thread Thomas Broyer
On 23 oct, 22:55, Brendan wrote: > I realize this post is coming at the end of the day on friday, but > hopefully it will get a look =) > > Going through the different JSON parsing implementations available for > GWT out there, almost all of them rely on a straight eval and note > that they shou

Re: EasyMock for GWT + MVP ?

2009-10-25 Thread lowecg2004
Your error looks like you're using the EasyMock class extensions and are missing cglib jars from your build path. As it happens, I recently produced a getting started with MVP and unit testing with EasyMock article which might be of use: http://blog.hivedevelopment.co.uk/2009/10/introduction-to-

Re: Native JSON and safe parsing implementation

2009-10-25 Thread Brendan
Thanks for the reply and the source reference. I hadn't seen that class...it would be nice to pull that method into (maybe) JsonUtils so that it would be in the core and more visible. The RFC and the json2.js code (here: http://www.json.org/json2.js ) were both written by Douglas Crockford. The m

Will RequestBuilder in upcoming 2.0 support PUT and DELETE?

2009-10-25 Thread Fangzx
I want to call server side RESTful service by RequestBuilder, but it currently only support GET and POST, any plan to support PUT and DELETE in upcoming 2.0? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google W

GWT eclipse plugin icons do not display on Windows 7

2009-10-25 Thread jsoconner
After installing the GWT plugin for Eclipse on my Windows 7 pc, I quickly noticed that the GWT icons were not displayed in the Eclipse task bar. I repeated the installation instructions several times, uninstalled the plugin, reinstalled... Finally, I decided to try running Eclipse with the "Run a

Re: How do I boostrap my Entry Point class with the User service?

2009-10-25 Thread Adam T
This tutorial might help, particularly section 3 that covers using AppEngine User service in GWT : http://code.google.com/webtoolkit/tutorials/1.6/appengine.html //Adam On 24 Okt, 19:43, nacho wrote: > Hi, im developing an aplication in gwt and i have an entry point > class. What i do no reali