Re: launching in a new tab/broswer
for ur second point ...u can create your custom command implement all the logic in one execute block On Fri, Apr 23, 2010 at 1:04 AM, Stefan Bachert stefanbach...@yahoo.dewrote: Hi, you can create a new window. (Window.open) But as far as I remember, you can not control whether the new browser window is a further tab or a separate window. Stefan Bachert http://gwtworld.de On 21 Apr., 20:10, Vik vik@gmail.com wrote: Hie I am using menu like: MenuBar aboutMenu = new MenuBar(true); aboutMenu.addItem(Dreamweavers..., new Command(){ @Override public void execute() { Window.Location.replace(http://sakshum.blogspot.com;); } }); But this opens the link at the same place. how to open in a new tab? Also do i have to write this much code for each menu item i create? Thankx and Regards Vik Founderwww.sakshum.comwww.sakshum.blogspot.comhttp://founderwww.sakshum.comwww.sakshum.blogspot.com/ -- 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: image help
i am not sure if this is a right approach...how about placing a transparent div over the image. would that work. On Tue, Mar 30, 2010 at 12:22 AM, Chris thechris...@gmail.com wrote: does anyone know if there is a way to disable someone from right clicking on an image and being able to save it? i am trying to make an application where people can purchase images but if they can just right click it and Save Image As there isn't any point. Any suggestions would be great. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Passing parameter via POST
HI Vincent, I had a similar requirement, i've used a intermediate servlet to which the data was posted ...the parameters were picked and stored in session and later retrieved from gwt servlet. had to follow this approach because gwt servlet doesnt take POST method. Thanks Sudeep On Wed, Mar 24, 2010 at 2:22 AM, Vincent vyau5...@gmail.com wrote: Hi: I am new to GWT so please excuse this stupid question. I have a GWT app that I can jump from page to page. On one page, I want to jump to another page with a set of parameters but I do not want to pass them via GET. I like to use POST. Is there a way to redirect a page in GWT with a set of parameters? Thanks --V -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to capture that the user has moved away from the current browser window.
have you tried hiding the suggestions on blur event, to my knowledge that is fired when the user moves away from the current window On Fri, Mar 19, 2010 at 9:50 AM, subhro subhrajyo...@gmail.com wrote: Hello, I am trying to implement a google.com search form style auto-suggest box. I have reached a stage where the drop down with suggestions appear correctly. However on changing windows (click on any other app window on the desktop) The or click any where else other that the body of the page, DOES NOT close the drop down. I would idealy like to close this drop down the moment the user clicks on anything else other than the current application page Using firebug i found that google uses a hidden table, to display all the suggestions. It sets the visibility to hidden the moment the user moves away from the current window to any other window. How do you detect that the user has moved away from the current window? Onblur of the auto-suggest textfield does not seem to work in this case. How are gwt experts on this list solving this loss of focus on the current browser window event in the any GWT page? Any pointers in this direction would be appreciated. Thanks, Subhro. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Inter-frame communication
hey Jonny, jquery has a plugin for window.post that works for all browsers. i've used that with gwt for resizing cross domain iframe. you can give that a shot. On Thu, Mar 18, 2010 at 2:08 PM, jjh j...@42quarks.com wrote: Hi, I am wanting allow extensions to my website (essentially third-party javascript code that can provide response to certain events, sort of simplified, gui-less gadgets). It seems like the safest way to this is to use iframes and inter-frame communication to limit what the third- party code can do (to some extent). So now I need to be able to post events to the gadget-frames and receive responses (basically RPC between frames). I know this can be done in javascript using postMessage (window.name hacks for older browsers). But I'm not sure what the best way to do this in GWT is. Does anyone have any pointers for a clean way of doing this in GWT. Regards, Jonny -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to center a button widget in a Panel.
just ensure that the new panel that you have added is occupying all the width of the parent panel. set a border width to check that. On Sun, Mar 14, 2010 at 4:50 AM, Rob34226 rob34...@gmail.com wrote: I have a DialogBox with a vertical panel. The last thing I added was a button that I want to be centered. I tried to put the button in a another panel and then setHorizontalAlignmnet(center) that panel in the parent panel but it still doesn't work. How do you center widgets or set any alignment for GWT widgets? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help on SuggestBox
Hi All, I have a use case wherein there are 2 suggestboxes and the requirement is such that the user can either select one of the suggestions or can even input his own. When a suggestion is selected from box1, box2 is populated. Now if the user types his own then its called as non standard suggestion and box2 is not populated. and the same applies to box2 as well. if an option is selected in box2 other details are fetched else if the user types his own, they are not fetched.. on both the cases when the user enters a non standard suggestion an alert is to be displayed saying that he is selecting a non std suggestions. there is also one more condition that after selecting box2 if the user goes back to change box1, all the subsequent fields are to be reset. take the simple case of manufacturer , model , accessory and price as we see in shopping cart Now how can this be achieved. On what event(s) can i do the validation as to what the user entered is standard or non standard. I've been on this one for 3-4 days now and i dont seem to get this thing rt. Any recommendations/suggestions are welcome Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Get data of widgets in a Panel or dynamically determine their class
you can try checking widget.isAttached on all the widgets. the one widget that is added will return you a true. now that you know the widget you can retrieve the data entered. hope it helps Sudeep On Wed, Feb 10, 2010 at 9:23 PM, mrubioroy mrubio...@gmail.com wrote: Hi all, I'm dynamically adding different widgets (TextBox, CheckBox or TextArea) to a Panel, depending on the columns found in an SQL table. Once the different fields are filled up by the user and the Save button is clicked, the code must collect all the introduced data and send it to server side. The problem I have is: How do I access data on every widget without knowing what class is each one? That is, I can have access to any widget in the Panel, using the getWidget method: myPanel.getWidget(i) But how do I access data? I've tried something like TextBox myWidget; myWidget = (TextBox) myPanel.getWidget(i); String data = myWidget.getText(); But this generates an exception if the Widget is of type CheckBox, because it cannot be cast to TextBox class. If I could determine the class of myPanel.getWidget(i), then I would use some if's to cast that to whatever class it's needed. Thanks Miguel -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using the ReCaptcha Java API with GWT 2.0
is ReCaptcha a gwt library or a simple java library. gwt module dicatates that source code be present in the lib that is refererred. On Tue, Jan 19, 2010 at 1:21 AM, jfagh jfa...@gmail.com wrote: I am trying to integrate the opensource ReCaptcha on my GWT 2.0 app. I followed the instructions given at: http://wiki.recaptcha.net/index.php/Overview#Java.2FJSP And just like any added module, I added its JAR file to the lib directory and to the classpath. When I try to run the app with a new ReCaptcha object I get a run-time error: [ERROR] No source code is available for type net.tanesha.recaptcha.ReCaptcha; did you forget to inherit a required module? I am not sure if I am supposed to modify the app.gwt.xml or is it just that the ReCaptcha java library uses some methods that cannot be translated into js by the GWT compiler. Please help if you have any ideas. Thank you. James -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using the ReCaptcha Java API with GWT 2.0
gwt compiles your java to javascript so the source code should be present in that captcha.jar its not sufficient if it has only .class files. also it should have a gwt module.xml. hope this helps thanks Sudeep On Tue, Jan 19, 2010 at 1:44 AM, jfagh jfa...@gmail.com wrote: Hi Sudeep, ReCaptcha is just a Java library. I added its JAR file to the lib/ folder and to the classpath. When reference methods from the library, the IDE doesn't complain but when I run the app it gives the error I listed above. I am not sure what you mean by: gwt module dicatates that source code be present in the lib that is refererred. Thanks. James On Jan 18, 1:59 pm, Sudeep S sudee...@gmail.com wrote: is ReCaptcha a gwt library or a simple java library. gwt module dicatates that source code be present in the lib that is refererred. On Tue, Jan 19, 2010 at 1:21 AM, jfagh jfa...@gmail.com wrote: I am trying to integrate the opensource ReCaptcha on my GWT 2.0 app. I followed the instructions given at: http://wiki.recaptcha.net/index.php/Overview#Java.2FJSP And just like any added module, I added its JAR file to the lib directory and to the classpath. When I try to run the app with a new ReCaptcha object I get a run-time error: [ERROR] No source code is available for type net.tanesha.recaptcha.ReCaptcha; did you forget to inherit a required module? I am not sure if I am supposed to modify the app.gwt.xml or is it just that the ReCaptcha java library uses some methods that cannot be translated into js by the GWT compiler. Please help if you have any ideas. Thank you. James -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using the ReCaptcha Java API with GWT 2.0
forgot to ask, are u using this library in the client side or the server side. all that i told is applicable only if u are using it in the client side. on the server side u can use it like a normal jar On Tue, Jan 19, 2010 at 8:57 AM, Sudeep S sudee...@gmail.com wrote: gwt compiles your java to javascript so the source code should be present in that captcha.jar its not sufficient if it has only .class files. also it should have a gwt module.xml. hope this helps thanks Sudeep On Tue, Jan 19, 2010 at 1:44 AM, jfagh jfa...@gmail.com wrote: Hi Sudeep, ReCaptcha is just a Java library. I added its JAR file to the lib/ folder and to the classpath. When reference methods from the library, the IDE doesn't complain but when I run the app it gives the error I listed above. I am not sure what you mean by: gwt module dicatates that source code be present in the lib that is refererred. Thanks. James On Jan 18, 1:59 pm, Sudeep S sudee...@gmail.com wrote: is ReCaptcha a gwt library or a simple java library. gwt module dicatates that source code be present in the lib that is refererred. On Tue, Jan 19, 2010 at 1:21 AM, jfagh jfa...@gmail.com wrote: I am trying to integrate the opensource ReCaptcha on my GWT 2.0 app. I followed the instructions given at: http://wiki.recaptcha.net/index.php/Overview#Java.2FJSP And just like any added module, I added its JAR file to the lib directory and to the classpath. When I try to run the app with a new ReCaptcha object I get a run-time error: [ERROR] No source code is available for type net.tanesha.recaptcha.ReCaptcha; did you forget to inherit a required module? I am not sure if I am supposed to modify the app.gwt.xml or is it just that the ReCaptcha java library uses some methods that cannot be translated into js by the GWT compiler. Please help if you have any ideas. Thank you. James -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Composite and Resize event.
Hi I have a vertical panel which has multiple sections and each of them is a composite. There is an option to add or remove records from these sections.how can the container panel be reiszed/notified with the events in the section composite. Any suggestions solutions ideas are welcome. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: pls help !!!!!!!!!!
use -style PRETTY and -logLevel DEBUG to get detailed messages On Wed, Jan 6, 2010 at 11:33 PM, ben fenster fenster@gmail.com wrote: i send them they work ok in hosted but in compiled when i get to check status i get exception the site is www.vzooo.com if anyone can check it out and see i will apreceate it it is relly strange i noticed that the gwt compile only compiles 5 out of 6 permutations but it says compiled ok is ther a way to get more detailed compile log On Jan 6, 7:53 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: What do you mean by all of the http request does not work On Wed, Jan 6, 2010 at 7:49 PM, ben fenster fenster@gmail.com wrote: how can it be that something runs great in hosted from the browser it self but dont work in compile ??? On Jan 6, 7:21 pm, ben fenster fenster@gmail.com wrote: i am also using smart gwt could this be the reason for my problems? On Jan 6, 7:15 pm, olivier nouguier olivier.nougu...@gmail.com wrote: euh your backend is full php ? If true I have no knowlegde :( On Wed, Jan 6, 2010 at 6:11 PM, ben fenster fenster@gmail.com wrote: i use it and no errors there also i am accessing php pages threw http request the php works ok and when i use it in hosted mode every thing is great but when i use it in compile nothing works On Jan 6, 7:03 pm, olivier nouguier olivier.nougu...@gmail.com wrote: You should use firebug to learn more ! On Wed, Jan 6, 2010 at 5:55 PM, ben fenster fenster@gmail.com wrote: i have a presentation tomorrow and every thing works great i am using gwt 2.0 but when i compile and run from the compiled version all of the http request does not work -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com google-web-toolkit%25252bunsubscr...@googlegroups.comgoogle-web-toolkit%2525252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com google-web-toolkit%252bunsubscr...@googlegroups.comgoogle-web-toolkit%25252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to
Re: Hosting GWT app on an external site
I guess you would have to add linker = xs in the .gwt.xml thanks Sudeep On Tue, Dec 8, 2009 at 4:59 AM, Jay kry...@tpg.com.au wrote: Hi, I'm new to GWT and have been struggling with this issue for a while now. I'd like to compile my GWT application so that other sites can include my GWT application via a simple script tag eg. script type=text/javascript src=http://mydomain.com/MyGWTApp.js;/ script script type=text/javascript var myApp = new MyApp.init(); myApp.run(); /script I've tried just using the MyGWTApp.nocache.js in external sites, but this does not work. My guess is MyGWTApp.nocache.js can not load the other resources (ie. other js files) that it needs? Cheers -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Testing GWT
Good Day, I am new to GWT. Just as I thought I have crossed the first hurdle of making a gwt application, the second big challenge is already staring in my face. TDD might not be the right word with the approach that i am following since i have almost completed development. But i would like to know what should be tested in gwt. Is it the UI or the RPC calls. Unit test or Integration test. Links to any good references, blogs would be welcome. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: flextable getcellcount and clear issue...
can u post the code snippet for clearing cells. i guess you might be doing table.clear .. that only removes the widgets from the cells but the not cell as a whole u can try doing table.removeRow(index); On Thu, Nov 26, 2009 at 11:46 AM, golfdude padysr...@gmail.com wrote: gwt 1.7... I have a flextable in which I add a row, clear the table, and then add another row. The getCellCount does not get reset during the second add to zero. So the cells get added after the first col count. Anybody else see this ? I see that this was reported as a bug in 2006 but I still see the issue. gd -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MenuBar in a Flextable cell
Thanks a lot for your inputs Brian. Yes I am using an absolute panel for positioning. There seems to be a simple way to deal with this. A menubar inside a menubar did the trick. A menu bar with the list of items is added to a parent menubar and that parent menubar is placed inside the cell. It works like a charm. thanks for ur suggestions once again Thanks Sudeep On Tue, Nov 24, 2009 at 10:26 PM, Brian brian.irei...@gmail.com wrote: I haven't had a need to be too picky about positioning, so I'm not sure what the tricky conditions are (though I'm sure they're there). You didn't mention how you're doing your positioning, but I can imagine you're using either AbsolutePanel or PopupPanel. I had suggested PopupPanel because it has a showRelativeTo(UIObject) method that might be helpful. According to the docs, though: from http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/PopupPanel.html#showRelativeTo(com.google.gwt.user.client.ui.UIObject) Normally, the popup is positioned directly below the relative target, with its left edge aligned with the left edge of the target. Depending on the width and height of the popup and the distance from the target to the bottom and right edges of the window, the popup may be displayed directly above the target, and/or its right edge may be aligned with the right edge of the target. So it looks like the algorithm that it uses for positioning may be too variable for your needs. One final note is that, assuming you manage to cover up the link in the table cell, you probably don't have to remove it, which might cause the table to shift around. -Brian On Nov 23, 1:12 pm, Sudeep S sudee...@gmail.com wrote: Thank you for your suggestion. i am trying a similar approach for this one. instead of having a menu bar in the cell i have placed a simple link in the cell and when it is clicked, i capture the cell and the absolute position of link that is clicked. With the absolute position of the link inhand i delete the link and place my menubar at that position. having little trouble with positioning though. thanks Sudeep On Mon, Nov 23, 2009 at 7:36 PM, Brian brian.irei...@gmail.com wrote: Sounds like a tricky problem. I haven't worked with menu bars so I'm not sure this will work. What I'm thinking is that you could use a placeholder menu bar in the table cell that doesn't have any menu items. Then, when that is clicked on, display a PopupPanel with the real menu bar and position it relative to the placeholder menu bar. You may have to play with styling on the PopupPanel to remove any decoration and/or margins to get the effect right. You'll also have to capture which menu item (assuming there's more than one) was clicked on the placeholder and simulate a click on the corresponding item in the real menu bar. Or maybe you can do away with the menu bar in the table cell altogether and make your own drop-down menu using PopupPanels. It depends on what you're looking for in terms of user interface feel. -Brian On Nov 22, 10:56 am, Sudeep S sudee...@gmail.com wrote: Hi, I have a req wherein I have to add a menubar widget to every row in a flextable. When the menubar is clicked it opens but it also expands the cell in which it is placed distorting the layout. Any ideas on this one. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt + jquery rounded corner
my Mistake i called the roundCorner() method before RootPanel.*get*().add(a); it worked now ..when i called it after doing RootPanel.*get*().add(a); Thanks Sudeep 2009/11/23 Дмитрий Николаев blacklit...@gmail.com What log say? Do you really include jquery library ? How do you know this ? On 22 ноя, 22:14, Sudeep S sudee...@gmail.com wrote: Hi, I am trying to use jquery.corner.js to round my panel in gwt using the below code * public* *final* *native* *void* roundCorner()/*-{ $wnd.$(#roundedPanel).corner(5px); }-*/; where roundedPanel is the id of the div panel. Though it is invoking the jquery.corner.js it is not rounding it. Is it not possible to round corners using this. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
MenuBar in a Flextable cell
Hi, I have a req wherein I have to add a menubar widget to every row in a flextable. When the menubar is clicked it opens but it also expands the cell in which it is placed distorting the layout. Any ideas on this one. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
gwt + jquery rounded corner
Hi, I am trying to use jquery.corner.js to round my panel in gwt using the below code * public* *final* *native* *void* roundCorner()/*-{ $wnd.$(#roundedPanel).corner(5px); }-*/; where roundedPanel is the id of the div panel. Though it is invoking the jquery.corner.js it is not rounding it. Is it not possible to round corners using this. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
UI Layout and Alignments
Hi I am new to gwt. Can someone tell me wht are the best practices in UI Design and alignments. I am using a Flex Table and FlexCell formatter for almost everything. Are there better ways to ahieve it. Thanks Sudeep -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Rounded Borders in GWT
HI, I tried to achieve Rounded Panel for a header by placing a caption Panel inside another. But it was introducing a cell padding by default. Can anyone suggest alternatives. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Rounded Borders in GWT
Thank you Chrisom, I will give it a try. On Sun, Nov 1, 2009 at 6:36 PM, chrisom sommerm...@googlemail.com wrote: You could give this one a try. It's easy to use. http://advanced-gwt.sourceforge.net/borders.html On Nov 1, 8:17 am, Sudeep S sudee...@gmail.com wrote: HI, I tried to achieve Rounded Panel for a header by placing a caption Panel inside another. But it was introducing a cell padding by default. Can anyone suggest alternatives. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Packaging Applications in GWT
Hello, Can someone suggest the techniques/best practices involved in packaging the GWT applications where the client code and server code reside separately. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
GWT + ContentServer
Hi Is it possible to deploy the GWT client code on Content Server and the server code on Application Server. My current application heavily uses Content Server for the front end, so I need to find a way to get GWT working with Content Server. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT + ContentServer
We are using Fatwire On Sat, Oct 31, 2009 at 12:17 AM, maratkalibek maratkali...@gmail.comwrote: Hi, can you name your Content Server? GWT is only about client side and can interoperate with servers by JSON or GWT built-in RPC. So your server must provide one of this approaches. On 31 окт, 00:24, Sudeep S sudee...@gmail.com wrote: Hi Is it possible to deploy the GWT client code on Content Server and the server code on Application Server. My current application heavily uses Content Server for the front end, so I need to find a way to get GWT working with Content Server. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Session-Confusion
Hi Philip, You need not create a new session for every tab. Rather what you can do is, ensure that every request from a new tab passes a Id to the gwt module and use your session like ...request.setAttribute( 'SESSION_DATA_'+Id, sessionData ) since your client is passing the id, it can use the same id at a later stage to retrieve the data (i used a random number). But i doubt if this can be used in distributed server envrionment where sessions are not replicated across all the servers. Thanks Sudeep On Mon, Oct 26, 2009 at 9:25 PM, Thomas Broyer t.bro...@gmail.com wrote: On 26 oct, 12:38, philipp.bouil...@gmail.com philipp.bouil...@gmail.com wrote: ? Thanks, Paul, but I fear I don't (quite) understand. Are you saying that I have to start FF with command line options in order to be able to create different session IDs for different tabs? Even if that should be so, I can hardly communicate this information to all our clients and ask them to start their FF with those options (let alone those clients that are using different browsers, like IE 8 for example). Are your clients *expected* to open the app twice side-by-side with different credentials? Most webapps do not allow it (including Google apps and apps hosted on AppEngine, as well as Yahoo! and Microsoft apps, to cite a few). Isn't there a way of getting different session IDs for different tabs? Sure: do not use cookies to maintain sessions (servlet containers usually have a way of disabling cookie-based sessions). But you'd better not use sessions at all if you can: if your GWT app is a single-page app, then the page itself can maintain the session without the need for cookies: just pass the credentials (generally an authentication ticket that the server generated in response to a request to a login servlet) with all your calls (e.g. use RequestBuilder.addHeader, and if you use RPC, use the RpcRequestBuilder to do the same, if you use a GWT 2.0 milestone or similar). See Ray Ryan's talk at Google I/O last spring: http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html (look for statelessness) You can also google for REST, RESTful or RESTful web services. --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: HashMap argument type mismatch
2 quick questions. 1. are u using generics. 2. have all the objects of your hashmap implemented isSeriliazable or Serilizable interface. On Mon, Oct 26, 2009 at 10:51 AM, Palani pas...@gmail.com wrote: 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/| E2C9084EB9E82F1F373FDB40DF5D423D|http://localhost:54002/Webclient/webclient/%7CE2C9084EB9E82F1F373FDB40DF5D423D%7C com.client.web.client.WebClientService|getPropertiesMapNew|1|2|3|4|0| method Return Type shows as class java.util.HashMap typeSignature is java.util.HashMap/962170901 customSerializar is class com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer args is [[1,[java.util.HashMap/962170901],0,5], {XXX=}] looks like in Method.invoke public static void com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize (com.google.gwt.user.client.rpc.SerializationStreamWriter,java.util.HashMap) throws com.google.gwt.user.client.rpc.SerializationException = Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.IllegalArgumentException: argument type mismatch at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:690) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:636) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:666) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:573) at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess (RPC.java:441) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse (RPC.java:529) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall (RemoteServiceServlet.java:166) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 487) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run
Re: GWT.log listener in hosted mode
Hi Alan, You can use gwt_log or i_log for remote logging gwt logger. Thanks Sudeep On Sun, Oct 25, 2009 at 10:59 PM, al.hicks al.hi...@gmail.com wrote: 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 them to a file? Does anyone know how to do this? Ideally there would be a way that I can do this would modifying the GWT code base. Any help/ advice would be great. Thanks, Alan. --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: HashMap argument type mismatch
in your service impl you have not used a generic version of hashmap. try the below code public HashMapString, String getPropertiesMap() throws InvalidSessionException { change from *HashMap m = new HashMap(); to HashMapString,String m = new HashMapString,String(); * m.put(XXX, ); return m; } Thanks Sudeep On Mon, Oct 26, 2009 at 11:38 PM, Palani pas...@gmail.com wrote: Thanks for the reply. (1) Yes, I am using generics. (2) I am putting only String in the map Below is how the code looks like // method that gets the data from the server public void getPropertiesMap { AsyncCallbackHashMapString, String callback = new AsyncCallbackHashMapString, String() { public void onSuccess(HashMapString, String result) { } public void onFailure(Throwable caught) { System.out.println(caught); } }; service.getPropertiesMap(callback); } // Method declartion in the service ( I tried without the @gwt.typeArgs declaration also). /** * @gwt.typeArgs HashMapString, String */ HashMapString, String getPropertiesMap() throws InvalidSessionException; //Method declaration in ServiceAsync void getPropertiesMap(AsyncCallbackHashMapString, String callback); // Service Impl method public HashMapString, String getPropertiesMap() throws InvalidSessionException { *HashMap m = new HashMap(); * m.put(XXX, ); return m; } On Oct 26, 12:49 pm, Sudeep S sudee...@gmail.com wrote: 2 quick questions. 1. are u using generics. 2. have all the objects of your hashmap implemented isSeriliazable or Serilizable interface. On Mon, Oct 26, 2009 at 10:51 AM, Palani pas...@gmail.com wrote: 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/|http://localhost:54002/Webclient/webclient/%7C E2C9084EB9E82F1F373FDB40DF5D423D| http://localhost:54002/Webclient/webclient/%7CE2C9084EB9E82F1F373FDB4... com.client.web.client.WebClientService|getPropertiesMapNew|1|2|3|4|0| method Return Type shows as class java.util.HashMap typeSignature is java.util.HashMap/962170901 customSerializar is class com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer args is [[1,[java.util.HashMap/962170901],0,5], {XXX=}] looks like in Method.invoke public static void com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize (com.google.gwt.user.client.rpc.SerializationStreamWriter,java.util.HashMap) throws com.google.gwt.user.client.rpc.SerializationException = Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.IllegalArgumentException: argument type mismatch at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer (ServerSerializationStreamWriter.java:690) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:659) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject (AbstractSerializationStreamWriter.java:129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:146) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue (ServerSerializationStreamWriter.java:530) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass (ServerSerializationStreamWriter.java:636) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl (ServerSerializationStreamWriter.java:666) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize (ServerSerializationStreamWriter.java:593
Re: how to send variables in form panel
multipart requests have to be sent via a FORM panel On Thu, Oct 22, 2009 at 6:53 PM, Lazo Apostolovski qbox2...@gmail.comwrote: Its probably a multipart message :S Try googling for how to accept multipart message on the server side here is some example but i don't know if you find usefull. public HashMapString, InputStream parseMultipartMessage( HttpServletRequest request) { mapWithStreams = new HashMapString, InputStream(); boolean isMultipart = ServletFileUpload.isMultipartContent(request); try { if (isMultipart) { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); ListFileItem items = upload.parseRequest(request); for (FileItem item : items) { mapWithStreams.put(item.getFieldName(), item.getInputStream()); } } else { mapWithStreams.put(DEFAULT_KEY, request.getInputStream()); } } catch (FileUploadException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } return mapWithStreams; In normal message (not multipart) data from the text fields come like the body of the message. If you try to transfer file in normal message then Stream is send like the body of the message. So you can transver only Parameters or only stream. If you want to transfer parameters and stream in same message you need to use multipart message. In multipart message InputStream come on server like a body of the message. If that input stream contain multipart message you need to parse that message. So in one part you will have values from input fields and in other part you will have Stream for uploaded file. Read about multipart messages on the wiki site. Code abowe will parse all input streams from multipart message and place them to the HasMap. The Key in HashMap is the File name. You can access to streams later when you need them. To the parameters you can access on the same way like you deed before: request.getParameter(parameterName); Good luck. YoeZ wrote: Hey abhiram, I still have a problem in server side,, can you tell me how to catch variable from client. Let say I have a textbox in client. Textbox txtComment = new Textbox; txtComment.setName(txtComment); txtComment .setText(hello); in server side: I've tried: String varXXX = (String) request.getParameter(txtComment); but that's not working. :( and I've also tried like this : try { List items = upload.parseRequest(request); Iterator it = items.iterator(); while (it.hasNext()) { FileItem item = (FileItem) it.next(); if (item.isFormField()) { String name = item.getFieldName(); if (name.equals(txtComment)) { ret = item.getString(); } return ret; } } } catch (FileUploadException e) { return null; } but still null return. can you tell me how to catch it. regards On Oct 21, 12:32 am, abhiram wuntakal abhir...@gmail.com wrote: Hey Yoez, Not sure if it helps. But i have a workaround solution for this. Make it a two-step process. First use a RemoteServiceServlet to pass across your variables to the server side and then save these values into some variables on the server side. Then you can use a HTTPServlet to pass across your file contents to the server side. Now you have the file as well as the variables. HTH, Cheers, Abhiram On Mon, Oct 19, 2009 at 6:12 PM, YoeZ juz...@gmail.com wrote: thanks ian,, but i'm using GWT and tried to uploadfile which is must using FormPanel. I have successfully upload my file to server with UploadFile widget, but I have another textboxes too. and dunno how to catch inside FormPanel. On Oct 19, 7:15 pm, Ian Bambury ianbamb...@gmail.com wrote: You'll stand more chance of an answer if you ask that question in a Java forum. This is a GWT group. Ian http://examples.roughian.com 2009/10/19 YoeZ juz...@gmail.com hello... please help On Oct 18, 12:31 am, YoeZ juz...@gmail.com wrote: Hi. I have 1 form panel with some textboxes and file upload. the question is, how to get variables from client/form panel in servlet? i created DTO/Pojo object to hold variables in client, but i donk know how to catch in servlet.. please help 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 unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options,
Re: debug gwt compiled javascript
Thank you Ian Thank you Adligo, reg logging library approach, can we turn off the loggers without having to deploy the code again. -Sudeep On Wed, Oct 21, 2009 at 10:58 PM, Adligo sc...@adligo.com wrote: Hi, I would recommend the following; 1) Add a uncaught exception handler and if that doesn't solve the issue 2) pick a log library gwt-log or i_log (my adligo packages) direct the log output back to the server, so you can determine where the code is blowing up, add a try catch to catch your exception. As a last resort work in halves to determine the location of the blowup. Cheers, Scott On Oct 20, 1:29 pm, Ian Bambury ianbamb...@gmail.com wrote: Hi Sudeep, This, in my experience, is usually due to IE being politically correct and FF being lenient (as opposed to FF being correct and IE being complete , which is what people would tell you if things were the other way around) Assuming you are on Linux and using something less that GWT v2.0, then the easiest way to sort it out is to run the project on a Windows machine (since hosted mode uses IE and you'll get an error with a line number) If that isn't an option, then compile with -style PRETTY or DETAILED, which will at least tell you the method that is failing - have a look at it, and post again if you can't see the problem. Ian http://examples.roughian.com 2009/10/20 Sudeep S sudee...@gmail.com hello, I hav my gwt app, compiled and running fine on FF, but on IE it says that *this.h.a* is null or not an object. Any ideas how to debug/backtrack the java code for such an error. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating new methods for Async class
I am doing something like * public* *interface* UtilService *extends* RemoteService { MapString, MapString, RateCard[] fetchdata (Customer objCustomer); } * public* *interface* UtilServiceAsync { * void* fetchData(Customer objCustomer ,AsyncCallbackMapString, MapString, Card[] callback); } and this works without any hassles. I have even tried ArrayList ..works without a problem.. but make sure all the attributes of list have implemented Serializable or isSerilizable interface. Thanks Sudeep On Tue, Oct 20, 2009 at 9:55 AM, Ralf B ralf.bie...@gmail.com wrote: Your return value is an ArrayList, not a String - so much about compatibility of types. However I am not sure if you can actually return an ArrayList (due to the requirement to have implemented the Serializable interface). Working with String[] directly will certainly work but would require you to turn your return value into a static String array. Ralf On Mon, Oct 19, 2009 at 4:54 PM, michael.d.clay...@hotmail.com michael.d.clay...@hotmail.com wrote: I have an implementation method that I want to return an arraylistString from the DB. Here is the method: public ArrayListString greetClients() { String result = ; Connection conn = null; Statement st = null; String sql = select distinct dealernumber from financialaccount; ArrayListString clients = new ArrayListString(); try{ Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql://localhost:3306/ DB, user, password); st = conn.createStatement(); ResultSet rs = st.executeQuery(sql); while(rs.next()){ if(rs.getString(0)!=null){ clients.add(rs.getString(0)); } } //System.out.println(result); st.close(); conn.close(); }catch(Exception e){ e.printStackTrace(); } return clients; } When I try to create the methods in the other classes; in the Service and ServiceAsync class I get this error: Return type is not compatible with the AsyncCallback parameter from GreetingServiceAsync.getClients Here is are my classes: GreetingService.java package com.appcrown.dashboard.client; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { String greetServer(String name); ArrayListString getClients(); //gives error } GreetingServiceAsync.java package com.appcrown.dashboard.client; import java.util.ArrayList; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void greetServer(String input, AsyncCallbackString callback); void getClients(AsyncCallbackString callback); //gives error } --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating new methods for Async class
try doing ListString clients = new ArrayListString(); instead of ArrayListString clients = new ArrayListString(); On Tue, Oct 20, 2009 at 11:31 PM, Sudeep S sudee...@gmail.com wrote: I am doing something like * public **interface* UtilService *extends* RemoteService { MapString, MapString, RateCard[] fetchdata (Customer objCustomer); } * public **interface* UtilServiceAsync {* void *fetchData(Customer objCustomer ,AsyncCallbackMapString, MapString, Card[] callback); } and this works without any hassles. I have even tried ArrayList ..works without a problem.. but make sure all the attributes of list have implemented Serializable or isSerilizable interface. Thanks Sudeep On Tue, Oct 20, 2009 at 9:55 AM, Ralf B ralf.bie...@gmail.com wrote: Your return value is an ArrayList, not a String - so much about compatibility of types. However I am not sure if you can actually return an ArrayList (due to the requirement to have implemented the Serializable interface). Working with String[] directly will certainly work but would require you to turn your return value into a static String array. Ralf On Mon, Oct 19, 2009 at 4:54 PM, michael.d.clay...@hotmail.com michael.d.clay...@hotmail.com wrote: I have an implementation method that I want to return an arraylistString from the DB. Here is the method: public ArrayListString greetClients() { String result = ; Connection conn = null; Statement st = null; String sql = select distinct dealernumber from financialaccount; ArrayListString clients = new ArrayListString(); try{ Class.forName(com.mysql.jdbc.Driver); conn = DriverManager.getConnection(jdbc:mysql://localhost:3306/ DB, user, password); st = conn.createStatement(); ResultSet rs = st.executeQuery(sql); while(rs.next()){ if(rs.getString(0)!=null){ clients.add(rs.getString(0)); } } //System.out.println(result); st.close(); conn.close(); }catch(Exception e){ e.printStackTrace(); } return clients; } When I try to create the methods in the other classes; in the Service and ServiceAsync class I get this error: Return type is not compatible with the AsyncCallback parameter from GreetingServiceAsync.getClients Here is are my classes: GreetingService.java package com.appcrown.dashboard.client; import java.util.ArrayList; import java.util.List; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; /** * The client side stub for the RPC service. */ @RemoteServiceRelativePath(greet) public interface GreetingService extends RemoteService { String greetServer(String name); ArrayListString getClients(); //gives error } GreetingServiceAsync.java package com.appcrown.dashboard.client; import java.util.ArrayList; import com.google.gwt.user.client.rpc.AsyncCallback; /** * The async counterpart of codeGreetingService/code. */ public interface GreetingServiceAsync { void greetServer(String input, AsyncCallbackString callback); void getClients(AsyncCallbackString callback); //gives error } --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
debug gwt compiled javascript
hello, I hav my gwt app, compiled and running fine on FF, but on IE it says that *this.h.a* is null or not an object. Any ideas how to debug/backtrack the java code for such an error. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
JSNI Help
Hi, I am trying to make a jsni method call and using the return value, I want to invoke another method in the calling html. Using the getData() method in the html, I am calling getId() whose implementation is in the gwt module. The getId returns an Id which is used to make another function call from the parent html. *JS in html* var id; function getData(){ getId(); if(typeof(id)!== 'undefined') { fetchData(id); } } function fetchData(id){ // Implementation here } *JSNI code* public native void publishGetId() /*-{ var jsId = th...@com.foo.test::instanceId; $wnd.getId = function() { $wnd.id = jsId; }; }-*/; the instanceId is an int and non static and on the pageload is not initialised, but is updated at a later stage. The method is publishGetId is called on the onModuleLoad. *The strange behavior that i am facing is that even though the instanceId is getting updated the jsId is not reflecting the same.It shows undefined all the time.* The getData() is called from the parent html after gwt module is loaded and after the instanceId is updated. Any help would be greatly appreciated. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: JSNI Help
This the code that I am using currently. On Sat, Oct 17, 2009 at 5:12 PM, Sudeep S sudee...@gmail.com wrote: Hi, I am trying to make a jsni method call and using the return value, I want to invoke another method in the calling html. Using the getData() method in the html, I am calling getId() whose implementation is in the gwt module. The getId returns an Id which is used to make another function call from the parent html. *JS in html* var id; function getData(){ getId(); if(typeof(id)!== 'undefined') { fetchData(id); } } function fetchData(id){ // Implementation here } *JSNI code* public native void publishGetId() /*-{ $wnd.getId = function() { *var jsId = **th...@com.foo.test::instanceId*th...@com.foo.test::instanceId *; * $wnd.id = jsId; }; }-*/; the instanceId is an int and non static and on the pageload is not initialised, but is updated at a later stage. The method is publishGetId is called on the onModuleLoad. *The strange behavior that i am facing is that even though the instanceId is getting updated the jsId is not reflecting the same.It shows undefined all the time.* The getData() is called from the parent html after gwt module is loaded and after the instanceId is updated. Any help would be greatly appreciated. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
How to read POST parameters in GWT
Hi, I am new to gwt. I am invoking a gwt module from an external html and passing parameters in the POST. How can they be retrieved in the gwt app. Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Integrating GWT with JSP
Hi, I have a requirement wherein my application loads an external gwt application as a widget in its iframe. The application's UI is developed using JSP. Can someone suggest me the best practices followed in communicating with external GWT applications (passing data back and forth). Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Integrating GWT with JSP
Thanks a lot Venkat !!! for your prompt reply.. Before I can start experimenting on JSNI, just wanted to know does JSNI work when both JSP and GWT (gwt module hosted on a different domain is loaded as an iframe in jsp) come from different domains. Thanks Sudeep On Fri, Oct 9, 2009 at 10:16 AM, venki pola.ve...@gmail.com wrote: You have to use JSNI(Java Script Native Interface) which is provided by GWT. Using this you can able to access java script code of your jsp page. If you wish to send any data from your jsp to GWT module then export that variable in java script of your jsp page. In your module write one JSNI method and write your stuff to take the data from your java script code of jsp page. On Oct 9, 12:19 am, Sudeep S sudee...@gmail.com wrote: Hi, I have a requirement wherein my application loads an external gwt application as a widget in its iframe. The application's UI is developed using JSP. Can someone suggest me the best practices followed in communicating with external GWT applications (passing data back and forth). Thanks Sudeep --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Passing data from GWT to JSP across domains
Hi, I am new to gwt. I had to prototype an application that loads a gwt application from a different domain as an iframe in a parent jsp. The gwt module is a utility which is used across mulitple applications (its some sort of complex calculator). It only has one button 'calculate' to trigger an event to perform calculation and display the results in the iframe. The challenge that i am confronted with is, I have a save and sumbit options in my parent jsp and not on the gwt module. On click on the save or submit options I will have to process the gwt data in the host application. The approach I had taken was,once the gwt module completes calculation it stores all the data in a session. Then on click of the submit or save options, an asynchronous call is made to a servlet in the gwt module that stores the gwt session data and using jquery the cross domain data exchange is achieved. The problem in short is The processing happens in one system and the event is trigerred from a different system Can this be done in a better way without using session, to pass the data between the gwt and the parent jsp. Thanks in advance --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: rpc serialization problem
Hey Benjamin, Since u are using Generics ensure that all the classes Service, ServiceAync and ServiceImpl use the same signature i.e ListSubCatagory . btw which version of gwt are u using. Also, you can the temp dir where u can find a rpc.log file with the list of all objects that are serialized. On Wed, Oct 7, 2009 at 2:20 AM, Benjamin bsaut...@gmail.com wrote: I'm struggeling with this now - did you guys solve it? I have a simple client class that will be a parent in a simple parent-child relationship. If i add an ArrayList property to the parent class (i don't even have to decorate it as persistant) i get EVERE: [1254861190636000] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized. i've tried java.util.list and java.util.arraylist with same result - defiitly not a 'org.datanucleus.sco.backed.List' what's odd is that the RPC call runs in a way and the object is persisted but without the list field. Anyway - this seems like something that can't be passed in an RPC call but i don't see why @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Catagory extends BaseTreeModel implements Serializable { public Catagory() {} private static final long serialVersionUID = 1L; @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String key; @Persistent(mappedBy = catagory) private ListSubCatagory subcatagories; } On Sep 22, 5:43 am, Angel gonzalezm.an...@gmail.com wrote: i have the same problem On 5 ago, 04:52, mike m...@introspect.com wrote: I have a simple one-to-many betwen two entities. The parent entity uses List to contain the child entities. I am able to persist these entities in the datastore without problems. However, when reading a root entity at the server, I get: rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ 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 from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---