Hi sjivan
Great works in smartClientGWT. thanks Kumaresan. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
RichTextArea with SetEnabled(false) and listener added throws Javascript Exception
Hi, I have RichTextArea on which i setEnabled(false) and i have added click listener for the same object. it throws Javascript Exception Object Required on IE browsers only. --~--~-~--~~~---~--~~ 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: Invoking Web Services
Hi Make an RPC and the do it the Java way on the server. Paul --Original Message-- From: gerardc Sender: Google-Web-Toolkit@googlegroups.com To: Google Web Toolkit ReplyTo: Google-Web-Toolkit@googlegroups.com Subject: Invoking Web Services Sent: 12 Aug 2009 06:13 I'm trying to figure out how to make Web Service calls from GWT. Anyone have any ideas or can point me in the right direction? Thanks. Gerard Sent from my Archimedes A3000 --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
Read the tutorial Rakesh suggested. Hasan's sample has only one domain class and it works "by accident". If you have a more complex domain model, classes referencing one another, then this approach will not work as is. ORM libraries add proxies, which GWT serializer can not handle. On Tue, Aug 11, 2009 at 11:50 PM, tolga ozdemir wrote: > > And.. may something be wrong in GWT eclipse plugin? > > 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-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 -~--~~~~--~~--~--~---
Invoking Web Services
I'm trying to figure out how to make Web Service calls from GWT. Anyone have any ideas or can point me in the right direction? Thanks. Gerard --~--~-~--~~~---~--~~ 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 get values on server
Hello I am using gwt ext . In html file I have two div tags. by using gwt ext I am setting datefield object on these two tags and after clicking on submit button how to get values on server. its not getting like.. request.getParameter("one") and request.getParameter("two"). here is my gwtext code public class DateFieldProject implements EntryPoint { public void onModuleLoad() { DateField from = new DateField("From Date","frmdt",100); DateField to = new DateField("To Date","todt",100); RootPanel.get("fromDate").add(from); RootPanel.get("toDate").add(to); } } --~--~-~--~~~---~--~~ 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: How to replace the GWT css?
Hi, I found that defining a custom style with the same name in the application css overrides the default style. thanks! Lakshmi On Tue, Aug 11, 2009 at 9:42 PM, lakshmi thyagarajan < tlakshmipr...@gmail.com> wrote: > Hi Kamal, > > I tried setting the styles that way. But it replaces all the styles > associated with the GWT Dialog box. I want to change only the 'Caption' > style and not the rest. > > thanks, > Lakshmi > > > On Tue, Aug 11, 2009 at 9:30 PM, Kamal Chandana Mettananda < > lka...@gmail.com> wrote: > >> Hi, >> >> You can set the your own style name as you needed. >> >> You just have to call setStyleName(String) method. >> >> http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html >> >> HTH, >> >> Kamal Mettananda >> >> >> >> >> >> On Wed, Aug 12, 2009 at 9:53 AM, lakshmi thyagarajan < >> tlakshmipr...@gmail.com> wrote: >> >>> Hi, >>> >>> I want to replace either "gwt-DialogBox .Caption" with my own style or >>> modify the contents of gwt-DialogBox .Caption. I dont want to replace all >>> the other default styles associated with the GWT Dialog box. Is there a way >>> to do this? >>> >>> thanks, >>> Lakshmi >>> >>> >>> >>> >>> >> >> >> >> > --~--~-~--~~~---~--~~ 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: How to replace the GWT css?
Have you tried the addStyleName(String) method? That may help you. http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/user/client/ui/UIObject.html#addStyleName(java.lang.String) --- Kamal Mettananda http://lkamal.blogspot.com On Wed, Aug 12, 2009 at 10:12 AM, lakshmi thyagarajan < tlakshmipr...@gmail.com> wrote: > Hi Kamal, > > I tried setting the styles that way. But it replaces all the styles > associated with the GWT Dialog box. I want to change only the 'Caption' > style and not the rest. > > thanks, > Lakshmi > > > On Tue, Aug 11, 2009 at 9:30 PM, Kamal Chandana Mettananda < > lka...@gmail.com> wrote: > >> Hi, >> >> You can set the your own style name as you needed. >> >> You just have to call setStyleName(String) method. >> >> http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html >> >> HTH, >> >> Kamal Mettananda >> >> >> >> >> >> On Wed, Aug 12, 2009 at 9:53 AM, lakshmi thyagarajan < >> tlakshmipr...@gmail.com> wrote: >> >>> Hi, >>> >>> I want to replace either "gwt-DialogBox .Caption" with my own style or >>> modify the contents of gwt-DialogBox .Caption. I dont want to replace all >>> the other default styles associated with the GWT Dialog box. Is there a way >>> to do this? >>> >>> thanks, >>> Lakshmi >>> >>> >>> >>> >>> >> >> >> > > > > --~--~-~--~~~---~--~~ 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: How to replace the GWT css?
Hi Kamal, I tried setting the styles that way. But it replaces all the styles associated with the GWT Dialog box. I want to change only the 'Caption' style and not the rest. thanks, Lakshmi On Tue, Aug 11, 2009 at 9:30 PM, Kamal Chandana Mettananda wrote: > Hi, > > You can set the your own style name as you needed. > > You just have to call setStyleName(String) method. > > http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html > > HTH, > > Kamal Mettananda > > > > > > On Wed, Aug 12, 2009 at 9:53 AM, lakshmi thyagarajan < > tlakshmipr...@gmail.com> wrote: > >> Hi, >> >> I want to replace either "gwt-DialogBox .Caption" with my own style or >> modify the contents of gwt-DialogBox .Caption. I dont want to replace all >> the other default styles associated with the GWT Dialog box. Is there a way >> to do this? >> >> thanks, >> Lakshmi >> >> >> >> >> > > > > --~--~-~--~~~---~--~~ 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: How to replace the GWT css?
Hi, You can set the your own style name as you needed. You just have to call setStyleName(String) method. http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html HTH, Kamal Mettananda On Wed, Aug 12, 2009 at 9:53 AM, lakshmi thyagarajan < tlakshmipr...@gmail.com> wrote: > Hi, > > I want to replace either "gwt-DialogBox .Caption" with my own style or > modify the contents of gwt-DialogBox .Caption. I dont want to replace all > the other default styles associated with the GWT Dialog box. Is there a way > to do this? > > thanks, > Lakshmi > > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Directory structure for multiple applications in a project
Hi, For my project there are two applications (query and controller, there would be separate invocation for both) and some common code (utility methods and some framework related code). For example, directory structure for this could be: common/.. query/.. controller/.. I want to share this common code in both the applications. I'm confused if I'm correct: - Multiple entry points are not allowed in GWT. How to achieve this? Thanks in advance, Vikas Yadav --~--~-~--~~~---~--~~ 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 replace the GWT css?
Hi, I want to replace either "gwt-DialogBox .Caption" with my own style or modify the contents of gwt-DialogBox .Caption. I dont want to replace all the other default styles associated with the GWT Dialog box. Is there a way to do this? thanks, Lakshmi --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Changing the CSS of a div programmatically
Hello, For my first GWT app I want to change the position of a div (HTMLPanel in my case) at run-time (e.g. after pressing a button). To do that i would like to do something like : - set the position to relative - set the top property of the div - set the left property. Any idea how? Or any different approach that achieves the same? --~--~-~--~~~---~--~~ 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: Asynch call does not return
Thanks David and Daniel! I changed my code to periodically poll the result store to detect completion. thanks, Lakshmi On Tue, Aug 11, 2009 at 1:00 PM, Daniel Jue wrote: > I meant to mention that you'd probably want to save the finished results in > a database, and maybe keep the last few jobs per user. My wife runs jobs > that take weeks to process. Saving all on the server would let you come > back the next day or 10 minutes later, from a different browser instance. > This would also make sense for any type of job that takes a long time, like > shipping a package, etc, not just computationally intense ones. > > Not sure if it will help, but here is a job scheduler for grid computing > using gwt...didn't see if the back end is available > > http://code.google.com/p/inters/ > > > > > On Tue, Aug 11, 2009 at 3:51 PM, Daniel Jue wrote: > >> Assuming you can't make the code run faster, one technique I've seen done >> is to have the the RPC return when the job has been submitted. The user can >> then check on a "jobs" page to see a list of jobs from a database. >> Unfinished jobs can say "processing" until the server side has updated the >> list that it has completed/failed/etc. Save the results on the server side >> (possibly write the bare minimum needed to construct the final object, >> whether it's a report or a rendered image, etc) and for finished jobs on the >> jobs page, selecting a finished job will stream back the finished >> binary/display a widget/etc. >> >> On Tue, Aug 11, 2009 at 3:43 PM, lakshmi thyagarajan < >> tlakshmipr...@gmail.com> wrote: >> >>> Hi, >>> >>> One of my server side methods requires about 20 minutes to complete >>> (involves executing a series of scripts and a whole lot of iterations to >>> execute a complex algorithm). >>> An asynchronous call to this method from my client does not return back >>> to the client even after the method finishes execution. My GWT application >>> is deployed in a Tomcat server. The session expiry time in the tomcat server >>> is set to 30 minutes. This problem however does not exist in the hosted >>> mode. Could any of you help? >>> >>> thanks, >>> Lakshmi >>> >>> >>> >>> >> > > > > --~--~-~--~~~---~--~~ 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: Newbie proudly presents his first GWT App
I dig it, On Aug 11, 9:59 pm, CI-CUBE wrote: > this is a little bit off topic but anyway I'd like to give you a short > response > > they're just valuable gifts/presents/trophys/awards/souvenirs - in > whatever context (personal, commercial, non-commercial). Currently > they do not have a functionality (although I'm working on some W-USB > Gadget framework) but even those passive ones can be arranged together > in a one- or dimensional way, just have a look > here:http://i588.photobucket.com/albums/ss330/CI-CUBE/PictoCubing/PCA009_P... > > If you want to know more about send me a private mail please > > Ekki > > On Aug 11, 10:21 pm, Eduardo Nunes wrote: > > > Sorry about that, but what are these cubes for? > > > On Tue, Aug 11, 2009 at 4:51 PM, CI-CUBE wrote: > > > > Hi all, > > > > 'though pretty new to Eclipse/Java/GWT, after effectively 2 days or > > > so, I'm happy to present my first App. It's something I wanted to have > > > for so long, but with all this strange, (native) JS/PHP/HTML multi- > > > syntax crap I didn't even start the project. The project as such is a > > > small front end to a portal, it's primarily controlled by XML to > > > enable mods and extensions w/o updating the App. I'm happy about the > > > way I could do that w/ GWT and also want to say 'Thank U' for the help > > > I got so far. Hope to give something back to others in the future! My > > > next steps will focus on seamless O3D integration into GWT [Designer]. > > > But now I'll have a Coke on Vodka and ice to celebrate my first GWT > > > App!! > > > >http://www.ci-cube.biz/en/cubes/cubes.html > > >http://cubebrowser.appspot.com/ > > > > Ekki > > > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 > > > -- > > Eduardo S. Nuneshttp://e-nunes.com.br --~--~-~--~~~---~--~~ 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: Newbie proudly presents his first GWT App
this is a little bit off topic but anyway I'd like to give you a short response they're just valuable gifts/presents/trophys/awards/souvenirs - in whatever context (personal, commercial, non-commercial). Currently they do not have a functionality (although I'm working on some W-USB Gadget framework) but even those passive ones can be arranged together in a one- or dimensional way, just have a look here: http://i588.photobucket.com/albums/ss330/CI-CUBE/PictoCubing/PCA009_PC0161/pc0161_13th-edition.jpg If you want to know more about send me a private mail please Ekki On Aug 11, 10:21 pm, Eduardo Nunes wrote: > Sorry about that, but what are these cubes for? > > > > On Tue, Aug 11, 2009 at 4:51 PM, CI-CUBE wrote: > > > Hi all, > > > 'though pretty new to Eclipse/Java/GWT, after effectively 2 days or > > so, I'm happy to present my first App. It's something I wanted to have > > for so long, but with all this strange, (native) JS/PHP/HTML multi- > > syntax crap I didn't even start the project. The project as such is a > > small front end to a portal, it's primarily controlled by XML to > > enable mods and extensions w/o updating the App. I'm happy about the > > way I could do that w/ GWT and also want to say 'Thank U' for the help > > I got so far. Hope to give something back to others in the future! My > > next steps will focus on seamless O3D integration into GWT [Designer]. > > But now I'll have a Coke on Vodka and ice to celebrate my first GWT > > App!! > > >http://www.ci-cube.biz/en/cubes/cubes.html > >http://cubebrowser.appspot.com/ > > > Ekki > > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 > > -- > Eduardo S. Nuneshttp://e-nunes.com.br --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
java to javascript code conversion question
I have two modules, module 1 & module 2 with module 2 inheriting module 1. When the code in module 2 gets converted to JavaScript, is gwt converting only the classes in module 1 used by module 2 or does it convert everything in module 1? I have this common module that contains code used in several other modules. Some of the panels are used in one other module, other panels are used in more than one module. When one module loads up I do not want the browser to load javascript code that is never used in that module. I am using GWT 1.5. 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Freeze the first Row in FlexTable
The flexTable is added in the scrollPanel but it scrolls all rows including header. On Aug 12, 9:52 am, hockie wrote: > I have created one FlexTable with the first row is header of table and > other rows is a list of record. How I can freeze the header in Firefox? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Freeze the first Row in FlexTable
I have created one FlexTable with the first row is header of table and other rows is a list of record. How I can freeze the header in Firefox? --~--~-~--~~~---~--~~ 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 and PHP
2009/8/12 Tiago Z.C > > Ian > > If i do that, every time that i want to see the chances that i made on my > app i will have to compile right? I have some doubts because with a small > project the compile process take around 30 seconds. > Hi Tiago, No, you don't have to compile every time for the GWT code, it's the same as hosted mode, just refresh. For PHP code, you might have to refresh the hosted mode browser (not recompile, just F5), but you might not even have to do that. If your app has a search button which does a typical search, then provided just the PHP code has changed (and not the GWT code which displays the results), you can just click 'Search' again. Ian http://examples.roughian.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.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and PHP
twdarkflame I think doing the way you sad may be work, but i think that way i will have some problems with the installation of my app because of the absolute urls, for now, i see at least one problem. To install my app, i will have always to chance some variable that prefix my urls. Ian If i do that, every time that i want to see the chances that i made on my app i will have to compile right? I have some doubts because with a small project the compile process take around 30 seconds. On Tue, Aug 11, 2009 at 8:55 AM, Ian Bambury wrote: > You can use the -noserver switch, and point a web server at your project's > war directory. > Ian > > http://examples.roughian.com > > > 2009/8/11 twdarkflame > > >> Cant you just use HttpRequests to the php pages (using query strings >> to send the data), and set them pointing to absolute urls for your >> sever? >> That should work, I think. >> >> >> On Aug 11, 6:25 am, Tiago wrote: >> > Hello, >> > >> > I started my studies about GWT 1 week ago and i'm interested on using >> > GWT with PHP. I have experience with web development using PHP and >> > Symfony framework and Java with VRaptor and Tomcat. >> > >> > Well, i saw that GWT executes on hosted mode using Jetty container and >> > work with GWT RPC for data exchange between java server and client. >> > For PHP, JSON appear to be the only way right? >> > >> > As i would like to use GWT for development with PHP, i would like to >> > know how can i develop without having to compile the GWT to run on web >> > mode. For example, how can i run a GWT application and communicate >> > with my Apache server while i am developing the application? >> > >> > The GWT runs on localhost:8080, the Apache on port 80, the >> > GWT.getModuleBaseUrl() returns me localhost:8080, and my PHP server- >> > side code runs on a virtual host xxx.com. >> > >> > Is there a good way of doing that? >> > >> > Thank you and sorry about my poor english. >> >> > > > > -- Tiago Zortéa de Conto Mac User - MAC OS X Leopard MSN: tiag...@pop.com.br --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
HowTo: Module Inheritance in Eclipse
I fought with this for awhile, and finally figured out how to do this. I hope it can help someone else as they progress through their own GWT project. The problem arises when you want to create a GWT application, but not cram all your code in one huge monolithic GWT project. If you can isolate functionality into modules, you are much better off. Plus, you can let others make use of your hard work and contribute to GWT. In my application, I needed user authentication/authorization, but I certainly didn't want to put the code in my top level project. I wanted it generic enough where it could be used by not only the current project, but future endeavors. If I was writing a plain ol' java application, its really a no-brainer; you create a separate project, lets call it 'commons', and have your project to use the commons project on its build path. GWT is almost this simple, but it has a few gotchas that can drive you crazy. My projects are a bit more complex than the following, but for the sake of simplicity, lets say we have the following. I will highlight the most important features. I'm using the following. Hopefully my explanations of eclipse settings are similar to yours. Mac OSX Eclipse v 3.4.1 GWT v 1.7.0 loginmanager - an eclipse project - client folder: contains widgets like a LoginWidget, AccountManagementWidget,etc. Listeners can be hooked up to a anonymous event bus where you can receive notification about signin, signon, account update, etc. - server folder: contains a servlet with signIn, signOut, updateAccount, etc. Account persistence is in a mySQL database. WEB-INF/web.xml contains this among other things... LoginManager org.reue.loginmanager.server.LoginManagerServiceImpl LoginManager /loginmanager/login I used the Eclipse GWT plugin, so I automatically get a Loginmanager.gwt.xml file created for me. This works great when developing this project module, but it will not work when you want to use this module in another project. It contains an tag that points to the class I used when I ran the module standalone during its development. Lets make another module without the . I called mine login.gwt.xml. It contains the exact information as Loginmanager.gwt.xml, but does not include the Now i have loginmanager -src -org.reue.loginmanager +client +server login.gwt.xml loginmanager.gwt.xml ... MyApp - An eclipse project - I want to push a button and have the LoginWidget from the loginmanager module show on the screen. I should be able to access the anonymous event handler bus provided by the loginmanager module to register myself as a listener for the events that my loginmanager fires. I should not have to write any authentication/authorization/ persistence code. - client folder - contains MyApp.java which implements EntryPoint. I just have a button that when pushed, instantiates a new LoginWidget, provided by the loginmanager module, and shows it on the screen. I will also register myself as a SignInHandler which is provided by my module. - server folder - no server code As you can see in this example, the application code is tiny. All the work is done in the module. When I click the button, the LoginWidget will show where I can enter my credentials and then click login. An RPC call will be made to the servlet provided by the loginmanager module, and I didnt have to write a single line of code as a user of the module. (Obviously, one will have to create the MySQL database, schema, etc) but the point here is that my application code is not polluted by all the common authorization code. Steps to get the MyApp project to properly inherit the loginmanager module for design-time and runtime use: 1) Remember to create the extra *.gwt.xml file in your module so you can inherit the module. Otherwise you will get complains of having multiple entry points. 2) With the MyApp project selected, edit the build path Click: Project | Properties | Java Build Path Click the Projects tab Click the Add... button and add the loginmanager project Click the Source tab Click the Link Source... button The Link Source dialog shows For 'Linked Folder Location', Click Browse... and navigate to the loginmanager project. You want the src folder here. For 'FolderName', you can give it any name you wish. I would just name it after your module, like loginmanager. Click Finish Click OK on the Properties dialog In your Eclipse Package Explorer, you should now have 'loginmanager' as a folder under your MyApp project **Notes When setting the build path of your app project, you must use the 'Link Source' option if your module contains any servlet code. This was one of my main stumbling blocks. The LoginWidget would show up fine, but when I clicked the login button, which made an RPC call, I would get a ClassNotFoundException. If you do not link source, the classes will in war/classes will not have your server code. 4)
Re: How can I add a MouseOutHandler to a FlexTable cell?
Based on Kelo's example above: public class BocaJrsTable extends FlexTable implements HasMouseOutHandlers { // ... as above, but add the following: public int[] getCellForEvent(final MouseEvent event) { final Element td = getEventTargetCell(Event.as(event.getNativeEvent ())); if (td == null) { return null; } final Element tr = DOM.getParent(td); final Element body = DOM.getParent(tr); final int r = DOM.getChildIndex(body, tr); final int c = DOM.getChildIndex(tr, td); final int[] idx = new int[] { r, c }; return idx; } } someTable = new BocaJrsTable(); someTable.addMouseOverHandler(new MouseOverHandler() { @Override public void onMouseOver(final MouseOverEvent event) { final int r = row(event); ... }} ); public static int row(final MouseEvent event) { // note that in general, events can have sources that are not Widgets. BocaJrsTable sender = (BocaJrsTable) event.getSource(); final int[] idx = sender.getCellForEvent(event); if (idx == null) { return -1; } return idx[0]; } I hope that helps,. Cheers, C. On Aug 8, 3:51 am, Wimpog wrote: > I would also like to know how to find out which row mouseEvent has > occurred --~--~-~--~~~---~--~~ 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 architecture MVP/EventBus (mentioned at Google I/O)
Hi, I created a framework, Mvp4g, to easily build gwt application using Mvp + event bus + DI thanks to an xml file. A new version is now available (mvp4g-0.13-beta). You can: -Set an event bus without creating extra classes. -Configure which presenter handles an event. -Inject a view and one to many services into the presenter. I also added the Pure Mvc example (that you can see here: http://employeeadm.appspot.com/) but implemented with the Mvp4g framework in order to easily compare the two implementations. To ensure quality, the framework is covered by JUnit tests. It's still a beta version because I'd like to add a Place service before a version 1.0 (I'd actually like people ideas and remarks about the best way to manage history before starting, http://groups.google.com/group/mvp4g/browse_thread/thread/3d3e1753c43f1270) The framework and examples can be downloaded here: http://code.google.com/p/mvp4g/. I would like people opinions on it. Thanks :) On Jul 20, 7:39 am, Norman Maurer wrote: > I already ported my app to use gwt-presenter. So far it really work out :) > > Bye, > Norman > > 2009/7/20 Eduardo Nunes : > > > > > > > For everyone following this thread, I would recommend to take a look > > in the presenter's implementation created by David > >http://gwt-presenter.googlecode.com > > > I'm taking a look on it too, and it seems to be very interesting. I > > will port my little application as a proof concept. As soon as > > possible I will post here a feedback. > > > Best regards, > > Eduardo S. Nunes > > > On Wed, Jul 15, 2009 at 4:43 AM, Thomas Broyer wrote: > > >> On 13 juil, 11:18, Kwhit wrote: > >>> I'm following your work with interest Eduardo, I'm in the process of > >>> building a 'dream-team reference application' myself including RPC, > >>> EasyMock, GIN, Guice, ... so I can unit test and hack end-to-end > >>> without deploying on a server. > > >>> Here's question / comment... > > >>> I don't understand the go() method on the presenter impl classes. Take > >>> for example mainPresenter.go(): it does a bit of widget composition > >>> adding the menu and returns the view which is the job of getView(). > >>> Then in go() you call menuPresenter.showMenu() which doesn't actually > >>> show the menu but instead it returns the view which is again the job > >>> of MenuPresenterImpl.getView(). > > >>> My guess is you are (like me) having some problems in the last metre > >>> of the 100m just glueing the application together. I don't have a nice > >>> answer for that yet... > > >> Just a thought: how about building *some of* the "view hierarchy" via > >> DI too and inject the very same views (widgets) in both their parent > >> widget (for "view compositing") and presenter? (only in the case of > >> singletons of course, and use providers and/or these getView/getWidget > >> methods we've talked about otherwise). > > >> E.g. in Eduardo's sample: inject a MenuWidget instance into both the > >> MainWidget constructor and the MenuPresenterImpl (MenuWidget is laid > >> out by MainWidget and controlled by MenuPresenterImpl); and in the > >> case of the IssueDisplayXXX and IssueEditXXX, use providers as of > >> today for lazy-init (inject Provider and > >> Provider into MainWidget), but use singletons though, > >> so that the view and presenter are correctly associated while still > >> using two distinct, unrelated providers. > > >> And only in those cases where you need several instances of a > >> component (presenter/view) you'd have to use the getView/getWidget > >> methods so that you get/create a presenter instance from the Ginjector > >> which gets injected its own view. > > >> It's just an idea, feel free to reject it with whichever argument > >> comes to your mind ;-) > > > -- > > Eduardo S. Nunes > >http://e-nunes.com.br- 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 -~--~~~~--~~--~--~---
Re: location for images
Thanks, That's just what I wanted to hear. On 11 Aug., 17:32, Sean wrote: > I had problems with this too. > > Regular images, that are NOT in an Image Bundle can go in your war > file. I typically keep a WAR/images folder and drop everything in > there. Then a reference to them would be Image test = new Image(images/ > test.png); if the image file is WAR/images/test.png > > ImageBundle pictures have to be kept in the code files. It's kind of > confusing, but essentially these pictures get compiled using the code > and put into one single image. They will be kept somewhere in (typical > folder structure) com/client/[AppName]/... > > An example from the API: > > �...@resource("com/client/myapp/icons/btn_cancel_icon.png") > public AbstractImagePrototype cancelButtonIcon(); > > Hope this helps. > > On Aug 10, 5:55 am, denis56 wrote: > > > > > His, > > > In GWT 1.5 one needed to put images under public directory, with gwt > > 1.6/1.7 the recommended location is somewhere under your war > > directory. I use normal images as well as ImageBundle in my project. > > Could someone please clarify where image bundles are supposed to go > > now - stay under public directory or go together with other non- > > imagebundle files out to war? > > > Thannks --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
And.. may something be wrong in GWT eclipse plugin? 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-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: prerequisities of GWT to develop JPA
Hi, After examining Hasan's code, I can run my code successfully, too. Thanks Hasan you helped a lot! On the other hand, Oskar you seem right too.. When I set up a new project to test my ability I noticed plugin puts come jar in template folder (war\WEB-INF\lib) and I start receiving datanucleus errors.. Then I delete all jars in this folder and copied my own.. viola! code run again.. 1- Do I misunderstand? Google App engine may block persistency?? 2- Could I use datanucleus and other stuff in Google app engine with hibernate, mysql etc? Thanks guys! On Aug 11, 7:48 pm, Rakesh wrote: > Read this > tutorial:http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib... > > It might have answers to most of your questions. > > Rakesh Wagh > > On Aug 11, 2:04 am, tolga ozdemir wrote: > > > > > Hi everybody, > > > I am starting to learn GWT stuff for a while. I am really getting > > enjoy it. Now, I am considering to use JPA to access my database.. I > > read a lot of articles about this.. (took a look at GWT 1.4 and GWT > > 1.5 samples also) > > > But guys, I have not succeeded yet.. Any help about this would be > > great.. Bu my question is different.. > > > Would you jote down a list what we need to use JPA with GWT > > > JDK? (I have Java SE 1.6 JDK) > > Server? (I use hosted mode, I love it) > > Database (I can use MySQL and MsSql) > > GWT SDK (1.7) > > Google App SDK (1.2.2) > > Hibernate api > > Any more tools do we need to develop??? > > > please write a simple list to me, maybe I missing the point right > > there.. My tools are enough?? > > > Thank you, > > > Tolga --~--~-~--~~~---~--~~ 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: Newbie proudly presents his first GWT App
Sorry about that, but what are these cubes for? On Tue, Aug 11, 2009 at 4:51 PM, CI-CUBE wrote: > > Hi all, > > 'though pretty new to Eclipse/Java/GWT, after effectively 2 days or > so, I'm happy to present my first App. It's something I wanted to have > for so long, but with all this strange, (native) JS/PHP/HTML multi- > syntax crap I didn't even start the project. The project as such is a > small front end to a portal, it's primarily controlled by XML to > enable mods and extensions w/o updating the App. I'm happy about the > way I could do that w/ GWT and also want to say 'Thank U' for the help > I got so far. Hope to give something back to others in the future! My > next steps will focus on seamless O3D integration into GWT [Designer]. > But now I'll have a Coke on Vodka and ice to celebrate my first GWT > App!! > > http://www.ci-cube.biz/en/cubes/cubes.html > http://cubebrowser.appspot.com/ > > Ekki > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 > > > -- Eduardo S. Nunes http://e-nunes.com.br --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Newbie - HTML pages
Hello everybody.. I am just beginning with GWT development and this is my first post. I have some experience with web development. I am using Eclipse as IDE for developing. I created an GWT project using the GWT plugin for Eclipse. So far, so good... Eclipse created the packages, classes, etc.. I am able to change the client and the server-side, make deploy on tomcat. Everithing is working fine. My question is: I need to develop an application that will heavy many pages. Do I need one GWT project to each page of my application? Or can I have many HTML's in my WAR folder and only one project? My idea is to have some links in the top of these pages. Each link to a page of the application. I am not sure how to do that. I've searching for in the web, but I got nothing about. Can anybody give me a little help about? 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: Asynch call does not return
I meant to mention that you'd probably want to save the finished results in a database, and maybe keep the last few jobs per user. My wife runs jobs that take weeks to process. Saving all on the server would let you come back the next day or 10 minutes later, from a different browser instance. This would also make sense for any type of job that takes a long time, like shipping a package, etc, not just computationally intense ones. Not sure if it will help, but here is a job scheduler for grid computing using gwt...didn't see if the back end is available http://code.google.com/p/inters/ On Tue, Aug 11, 2009 at 3:51 PM, Daniel Jue wrote: > Assuming you can't make the code run faster, one technique I've seen done > is to have the the RPC return when the job has been submitted. The user can > then check on a "jobs" page to see a list of jobs from a database. > Unfinished jobs can say "processing" until the server side has updated the > list that it has completed/failed/etc. Save the results on the server side > (possibly write the bare minimum needed to construct the final object, > whether it's a report or a rendered image, etc) and for finished jobs on the > jobs page, selecting a finished job will stream back the finished > binary/display a widget/etc. > > On Tue, Aug 11, 2009 at 3:43 PM, lakshmi thyagarajan < > tlakshmipr...@gmail.com> wrote: > >> Hi, >> >> One of my server side methods requires about 20 minutes to complete >> (involves executing a series of scripts and a whole lot of iterations to >> execute a complex algorithm). >> An asynchronous call to this method from my client does not return back to >> the client even after the method finishes execution. My GWT application is >> deployed in a Tomcat server. The session expiry time in the tomcat server is >> set to 30 minutes. This problem however does not exist in the hosted mode. >> Could any of you help? >> >> thanks, >> Lakshmi >> >> >> >> >> > --~--~-~--~~~---~--~~ 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: Asynch call does not return
Assuming you can't make the code run faster, one technique I've seen done is to have the the RPC return when the job has been submitted. The user can then check on a "jobs" page to see a list of jobs from a database. Unfinished jobs can say "processing" until the server side has updated the list that it has completed/failed/etc. Save the results on the server side (possibly write the bare minimum needed to construct the final object, whether it's a report or a rendered image, etc) and for finished jobs on the jobs page, selecting a finished job will stream back the finished binary/display a widget/etc. On Tue, Aug 11, 2009 at 3:43 PM, lakshmi thyagarajan < tlakshmipr...@gmail.com> wrote: > Hi, > > One of my server side methods requires about 20 minutes to complete > (involves executing a series of scripts and a whole lot of iterations to > execute a complex algorithm). > An asynchronous call to this method from my client does not return back to > the client even after the method finishes execution. My GWT application is > deployed in a Tomcat server. The session expiry time in the tomcat server is > set to 30 minutes. This problem however does not exist in the hosted mode. > Could any of you help? > > thanks, > Lakshmi > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Newbie proudly presents his first GWT App
Hi all, 'though pretty new to Eclipse/Java/GWT, after effectively 2 days or so, I'm happy to present my first App. It's something I wanted to have for so long, but with all this strange, (native) JS/PHP/HTML multi- syntax crap I didn't even start the project. The project as such is a small front end to a portal, it's primarily controlled by XML to enable mods and extensions w/o updating the App. I'm happy about the way I could do that w/ GWT and also want to say 'Thank U' for the help I got so far. Hope to give something back to others in the future! My next steps will focus on seamless O3D integration into GWT [Designer]. But now I'll have a Coke on Vodka and ice to celebrate my first GWT App!! http://www.ci-cube.biz/en/cubes/cubes.html http://cubebrowser.appspot.com/ Ekki GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 --~--~-~--~~~---~--~~ 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: Asynch call does not return
This is actually a very bad idea! IE will most probably kill the request before the server does. You should see if you can implement this in an asynchronous operation on the server side and check for the state on regular intervals. On Tue, Aug 11, 2009 at 9:43 PM, lakshmi thyagarajan wrote: > Hi, > > One of my server side methods requires about 20 minutes to complete > (involves executing a series of scripts and a whole lot of iterations to > execute a complex algorithm). > An asynchronous call to this method from my client does not return back to > the client even after the method finishes execution. My GWT application is > deployed in a Tomcat server. The session expiry time in the tomcat server is > set to 30 minutes. This problem however does not exist in the hosted mode. > Could any of you help? > > thanks, > Lakshmi > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Asynch call does not return
Hi, One of my server side methods requires about 20 minutes to complete (involves executing a series of scripts and a whole lot of iterations to execute a complex algorithm). An asynchronous call to this method from my client does not return back to the client even after the method finishes execution. My GWT application is deployed in a Tomcat server. The session expiry time in the tomcat server is set to 30 minutes. This problem however does not exist in the hosted mode. Could any of you help? thanks, Lakshmi --~--~-~--~~~---~--~~ 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: Entire Website in GWT
Hi Jack -- this completely depends on what you want to do. You can build a standard website using whatever tool/frameworks, etc. you want and you can embed GWT widgets into pages. You could also build your entire site in GWT. Normally what people do is have a single entry point, and then dynamically add / remove components from the application based on user input. I like the idea of putting nearly 100% of the presentation logic into the client's browser and not having this served from the server. I have always found that model painful. This is the pattern I am using now for building a fairly complex application. The only thing I go back to the server for are stateless service requests for data (not presentation). I found the single entry point model slightly limiting, especially since I want to have a couple different entry points based on the initial URL ( e.g. http://host/app/admin or http://host/user/davis ). I posted a blog on how to use multiple entry points here: http://zenoconsulting.wikidot.com/blog:16 Regards, Davis On Aug 11, 6:09 am, Jack wrote: > Hi Guys, > > I want to develop a portal in GWT 1.5. As per my knowledge we normally > create a GWT Application by creating a Entry Point Class and you put > all your logic in it. Now in the case of a website you need to go > through one link to another. > > Does it mean that i need to put all my login inside the single Entry > Point Class and change the put the different content on a Panel > everytime the user clicks on a Navigation Menu..? > > Kindly Help.. --~--~-~--~~~---~--~~ 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-presenter] PlaceManager etc
Hi all, I'm currently working on a GWT based webmail called Hupa (http://svn.apache.org/repos/asf/labs/hupa) using the gwt-presenter framework. All is working fine except that I'm stull not 100% sure howto to use the PlaceManager stuff in gwt-presenter. Someone has some examples ? Thx, Norman Ps: Nice Framework :) --~--~-~--~~~---~--~~ 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: JUnitFatalLaunchException
Ok I had to add the source folder into the Test Configuration in Eclispe ... It is strange. On Aug 10, 11:43 pm, Simon wrote: > I am trying to make a Junit test, and I am getting this exception : > > com.google.gwt.junit.JUnitFatalLaunchException: The test class > 'helios.client.ListTestCase' was not found in module > 'helios.Application'; no compilation unit for that type was seen > > Here is my module XML : > > > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.6.4/distro- > source/core/src/gwt-module.dtd"> > > > > > > > > > > And the class helios.client.ListTestCase is present. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Datepicker year selection
Hi All, I could not find how to enable the year selection on the datepicker widget. Is it possible? I want to do what is on this demo! http://www.zenika.com/demos/DatePicker/ Regards, José Vicente --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
WITH GRID class?
Hi All, I am trying to create a grid which should have header columns and some rows. I tried to use the grid class but it does not look like it has a way to add a header row? Is that correct or am i missing something? 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: A newb needs your help with hyperlinks
You'll be better off using an Anchor instead of a Hyperlink - it's the same visually, but you get to control what happens on click by adding a ClickHandler. You should find it results in much cleaner code. HTH Paul Ray wrote: > I been assigned the task of making hyperlinks work, change color on > hovering and clicking, and being able to enable and disable the > links. I have the color changing part working and I thought I had the > disable/enble working, but now I can not get the onClick to be > reconized. Below is the code to extend the hyperlink so I can add the > enable/disable methods. > > public class lawHyperlink extends Hyperlink implements > SourcesClickEvents, HasClickHandlers { > // define the HTML hyperlink > private Html hyperLink; > private final String str; > private static HyperlinkImpl impl = GWT.create(HyperlinkImpl.class); > > public lawHyperlink(String s1, String s2) { > str = s1; > hyperLink = new Html("" + s1 + "") > { > protected void onRender(Element target, int index) { > super.onRender(target, index); > el().addEventsSunk(Event.MOUSEEVENTS); > el().addEventsSunk(Event.ONCLICK); > } > }; > > enabled(); > > } // end of lawHyperlink constructor > > public Html displayHyperlink() { > return hyperLink; > } > > public void disabled() { > hyperLink.removeAllListeners(); > hyperLink.addStyleName("gwt-Hyperlink-disabled"); > hyperLink.setStyleAttribute("color", "#E0E0DA"); > } // end of disabled method > > public void enabled() { > Listener listener = new Listener() { > public void handleEvent(BaseEvent be) { >Html h = (Html) be.getSource(); >String c = h.el().getStyleAttribute("color"); > // Info.display("Listener color before test ", c); >c = c .equals("#ff00ff") ? "#ff" : "#FF00FF"; > // Info.display("Listener color after test ", c); >h.setStyleAttribute("color", c); > }}; > > hyperLink.addStyleName("gwt-Hyperlink"); > hyperLink.setStyleAttribute("color", "#00ff00"); > hyperLink.addListener(Events.OnMouseOver, listener); > hyperLink.addListener(Events.OnMouseOut, listener); > > } //end of enabled method > > @Override > public HandlerRegistration addClickHandler(ClickHandler handler) { > Info.display("addClickHanler called ", "from lawHyperlink"); > return addHandler(handler, ClickEvent.getType()); > } // end of addClickHandler method override > > @Override > public void onBrowserEvent(Event event) { > super.onBrowserEvent(event); > if (DOM.eventGetType(event) == Event.ONCLICK && > impl.handleAsClick > (event)) { > History.newItem(getTargetHistoryToken()); > DOM.eventPreventDefault(event); > } > } // end of onBrowserEvent method override > > > } // end of lawHyperlink class definition > > I add the onClick handler in another class that puts it on a panel > that gets added to the rootPanel. > > lawHyperlink firstPage = new lawHyperlink("|< First Page", > "FirstPage"); > firstPage.addClickHandler(new ClickHandler() { > public void onClick(ClickEvent event) { > MessageBox.alert("onClick", "Clicked First Page", null); > }}); > linkPanel.add(firstPage.displayHyperlink()); > > Everything displays fine and the trace looks good, but the onClick > event is not being reconized. I believe I'm missing something from my > lawHyperlink class, but I have not been able to determine what. Any > help will be greatly appreciated. > > Thanks, > Ray > > > > > --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
Read this tutorial: http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hibernate.html It might have answers to most of your questions. Rakesh Wagh On Aug 11, 2:04 am, tolga ozdemir wrote: > Hi everybody, > > I am starting to learn GWT stuff for a while. I am really getting > enjoy it. Now, I am considering to use JPA to access my database.. I > read a lot of articles about this.. (took a look at GWT 1.4 and GWT > 1.5 samples also) > > But guys, I have not succeeded yet.. Any help about this would be > great.. Bu my question is different.. > > Would you jote down a list what we need to use JPA with GWT > > JDK? (I have Java SE 1.6 JDK) > Server? (I use hosted mode, I love it) > Database (I can use MySQL and MsSql) > GWT SDK (1.7) > Google App SDK (1.2.2) > Hibernate api > Any more tools do we need to develop??? > > please write a simple list to me, maybe I missing the point right > there.. My tools are enough?? > > Thank you, > > Tolga --~--~-~--~~~---~--~~ 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: Best practices for screen layout in GWT
I personally did the layout all in code. I originally used a DockPanel and realized that I was only using WEST, NORTH, and CENTER. And being in a DockPanel limited me. So I ended up swapping out (Fairly easily) for a VerticalPanel with either Widgets or a HorizontalPanel in it. While the widgets were all set in code, I still have a lot of flexibility to change things with CSS. This also allows the widgets to all "speak" to each other if you so choose. On Aug 11, 6:48 am, Oskar Hannesson wrote: > Hello. > Can anyone give me a hint what layout technique is best suitable for > GWT. > Should I use , , or even construct the page in > code by using DockPanel. > I tried the iframe but I had trouble directing the response message to > a different iframe. > I also got DockPanel to work but i'm not sure if it is a good idea to > do the layout in code entirely. > > Thanks > Oskar H. --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
I had to disable the Google App Engine for the project to make JPA with Hibernate/MySQL work. (In Eclipse project Properties uncheck "Use Google App Engine" under Google->App Engine) Also check this link http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg18498.html --~--~-~--~~~---~--~~ 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: Showcase example implimentation
The entire Showcase project is included when you download GWT. Look under your GWTdirectory, under samples. You'll find all the source code to Showcase. On Aug 11, 7:08 am, Milon wrote: > Hi Experts, > > Did anyone tried the Showcase example of GWT where on the left pane > there is a tree view and on the right side showing different pages for > different elements of Tree. > > Actually i am trying to do similar things. But cannot proceed as the > is no sample application provided to develop that kind of feature. > > If you have any such sample example where we can show different panel > (eg Tab panel) upon a single panel > > Thanks in advance, > Milon --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
server side hot redeploy
Using GWT plugin + GWT 1.7 why there is not hot deployment on server side? every time you change a class you have to restart everything?? any help appreciated Edoardo --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Entire Website in GWT
Hi Guys, I want to develop a portal in GWT 1.5. As per my knowledge we normally create a GWT Application by creating a Entry Point Class and you put all your logic in it. Now in the case of a website you need to go through one link to another. Does it mean that i need to put all my login inside the single Entry Point Class and change the put the different content on a Panel everytime the user clicks on a Navigation Menu..? Kindly Help.. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
[ running problem ? ]
hi everybody could you tell me why a GWT projet dont want to run correctly when i delete the service classes (service, serviceAsynch,serviceImpl), so my projet is just a simple GUI projet and i don't use any service ? 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
A newb needs your help with hyperlinks
I been assigned the task of making hyperlinks work, change color on hovering and clicking, and being able to enable and disable the links. I have the color changing part working and I thought I had the disable/enble working, but now I can not get the onClick to be reconized. Below is the code to extend the hyperlink so I can add the enable/disable methods. public class lawHyperlink extends Hyperlink implements SourcesClickEvents, HasClickHandlers { // define the HTML hyperlink private Html hyperLink; private final String str; private static HyperlinkImpl impl = GWT.create(HyperlinkImpl.class); public lawHyperlink(String s1, String s2) { str = s1; hyperLink = new Html("" + s1 + "") { protected void onRender(Element target, int index) { super.onRender(target, index); el().addEventsSunk(Event.MOUSEEVENTS); el().addEventsSunk(Event.ONCLICK); } }; enabled(); } // end of lawHyperlink constructor public Html displayHyperlink() { return hyperLink; } public void disabled() { hyperLink.removeAllListeners(); hyperLink.addStyleName("gwt-Hyperlink-disabled"); hyperLink.setStyleAttribute("color", "#E0E0DA"); } // end of disabled method public void enabled() { Listener listener = new Listener() { public void handleEvent(BaseEvent be) { Html h = (Html) be.getSource(); String c = h.el().getStyleAttribute("color"); // Info.display("Listener color before test ", c); c = c .equals("#ff00ff") ? "#ff" : "#FF00FF"; // Info.display("Listener color after test ", c); h.setStyleAttribute("color", c); }}; hyperLink.addStyleName("gwt-Hyperlink"); hyperLink.setStyleAttribute("color", "#00ff00"); hyperLink.addListener(Events.OnMouseOver, listener); hyperLink.addListener(Events.OnMouseOut, listener); } //end of enabled method @Override public HandlerRegistration addClickHandler(ClickHandler handler) { Info.display("addClickHanler called ", "from lawHyperlink"); return addHandler(handler, ClickEvent.getType()); } // end of addClickHandler method override @Override public void onBrowserEvent(Event event) { super.onBrowserEvent(event); if (DOM.eventGetType(event) == Event.ONCLICK && impl.handleAsClick (event)) { History.newItem(getTargetHistoryToken()); DOM.eventPreventDefault(event); } } // end of onBrowserEvent method override } // end of lawHyperlink class definition I add the onClick handler in another class that puts it on a panel that gets added to the rootPanel. lawHyperlink firstPage = new lawHyperlink("|< First Page", "FirstPage"); firstPage.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { MessageBox.alert("onClick", "Clicked First Page", null); }}); linkPanel.add(firstPage.displayHyperlink()); Everything displays fine and the trace looks good, but the onClick event is not being reconized. I believe I'm missing something from my lawHyperlink class, but I have not been able to determine what. Any help will be greatly appreciated. Thanks, Ray --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Showcase example implimentation
Hi Experts, Did anyone tried the Showcase example of GWT where on the left pane there is a tree view and on the right side showing different pages for different elements of Tree. Actually i am trying to do similar things. But cannot proceed as the is no sample application provided to develop that kind of feature. If you have any such sample example where we can show different panel (eg Tab panel) upon a single panel Thanks in advance, Milon --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Best practices for screen layout in GWT
Hello. Can anyone give me a hint what layout technique is best suitable for GWT. Should I use , , or even construct the page in code by using DockPanel. I tried the iframe but I had trouble directing the response message to a different iframe. I also got DockPanel to work but i'm not sure if it is a good idea to do the layout in code entirely. Thanks Oskar H. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
IFrame reload Problem in FireFox
I have some problem regarding IFrame issue. When loading the IFrame, the object of IFrame will be stored in the Map. Each time when i get the same object for the IFrame from the Map, It reloads again. It doesn't reload in the IE but It does in Firefox. How can I do to prevent IFrame from reloading in FIrefox? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
use memcache portability ...?
if i create java app engine that use google memcache. how to ensure it portability when if later on, i decided just to deploy on simple tomcat as war file ? --~--~-~--~~~---~--~~ 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: Java To Java RPC
We solved this by treating the RPC Server as a facade, calling a true "business type object". Create another facade that the Java client can interact with. Standard OO design guys... On Aug 11, 4:13 am, Nathan Wells wrote: > Possible, yes. > > Problematic, yes. > > The basic problem you'll run into is that GWT RPC uses a custom > version of JSON for serialization. Essentially, you would have to > recreate the GWT-RPC mechanism for your thick client, which may or may > not be difficult. I can't say how difficult, since I've never had to > do it, but I would wager that it would be easier to either > > 1) Leave GWT-RPC behind in favor of the more standard XML or JSON > methods. > 2) Forget about having a thick Java client. > > Personally, I would prefer 2, but I don't know your particular use > case. > > On Aug 10, 9:39 pm, steven a wrote: > > > > > Hi, > > > Is it possible to call the GWT RPC Server from an remote Java client, > > instead of from GWT client? > > > -steve- 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 -~--~~~~--~~--~--~---
Re: location for images
I had problems with this too. Regular images, that are NOT in an Image Bundle can go in your war file. I typically keep a WAR/images folder and drop everything in there. Then a reference to them would be Image test = new Image(images/ test.png); if the image file is WAR/images/test.png ImageBundle pictures have to be kept in the code files. It's kind of confusing, but essentially these pictures get compiled using the code and put into one single image. They will be kept somewhere in (typical folder structure) com/client/[AppName]/... An example from the API: @Resource("com/client/myapp/icons/btn_cancel_icon.png") public AbstractImagePrototype cancelButtonIcon(); Hope this helps. On Aug 10, 5:55 am, denis56 wrote: > His, > > In GWT 1.5 one needed to put images under public directory, with gwt > 1.6/1.7 the recommended location is somewhere under your war > directory. I use normal images as well as ImageBundle in my project. > Could someone please clarify where image bundles are supposed to go > now - stay under public directory or go together with other non- > imagebundle files out to war? > > Thannks --~--~-~--~~~---~--~~ 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: Will I have memory leaks if a Widget is removed from Panel without call to HandlerRegistration#removeHandler()
Hi, If you remove the widget from the view and you keep no reference to that widget then normally the widget will be garbage collected. You only need to keep the HandlerRegistration and call remove if you want to stop listening to the widget, while the widget is still being used somewhere. David On Mon, Aug 10, 2009 at 6:07 PM, Arthur Kalmenson wrote: > > I think that if you have handlers attached to a widget that gets > removed, it won't be garbage collected. There was a discussion about > this earlier here. I think if you hang onto the HandlerRegistration, > you can remove yourself onUnload(). > > Regards, > -- > Arthur Kalmenson > > > > On Tue, Aug 4, 2009 at 5:45 PM, Justas wrote: >> >> There is an application in which a Panel instance is *Handler for >> widgets, which are added dynamically depending on the result returned >> by async call. Instances of HandlerRegistration are not maintained by >> the application (i.e. values returned by #add*Handler() are not stored >> anywhere). >> >> Now lets suppose that one of these widgets is removed from the panel >> without calling respective HandlerRegistration#removeHandler(). Will I >> have unnecessary references to the panel related to removed widget? Is >> it possible that this panel (as a Handler) will be invoked to handle >> an event (either native or logical) having removed widget as a source >> (either before or after garbage collection)? >> >> GWT 1.7, no JSNI used. >> >> > >> > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Missing quick fix in the eclipse plugin for RemoteService with super interfaces
Using plugin version 1.7.0 and Eclipse Galileo. When a RemoteService interface defines a method, the corresponding Async interface is marked as error and there is a quick fix which generates the method in the Async. Good. However, when the method is defined in a super interface of the RemoteService, the Async is marked as error, but the quick fix is missing. Here is how to reproduce: public interface Super { void x(); } public interface GreetingService extends RemoteService, Super { } public interface GreetingServiceAsync { // The error is reported that x() must be declared, but there's no quick fix } --~--~-~--~~~---~--~~ 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: Does anyone has a nice written class for bypassing SOP restrinctions
Thanks for the code. This actually covers well the GET part, but as you say, not the POST. Thanks cause it is still very interesting implementation. Does anybody has written or seen around a similar code that would also support POST ? Thanks for the help. Arnaud On 10 ago, 14:38, MiSt wrote: > Inspired by someone's example I don't remember where I've found it. > This method works only with GET > > Example: > > CrossSiteJsonRequestUtil.INSTANCE.doFetchURL("www.test.com", > "callbackmethodname", new AsyncCallback() { > > @Override > public void onFailure(Throwable caught) { > // TODO > > } > > @Override > public void onSuccess(JSONObject result) { > // TODO > > } > > }); > > import java.util.HashMap; > import java.util.Map; > > import com.google.gwt.core.client.JavaScriptObject; > import com.google.gwt.json.client.JSONObject; > import com.google.gwt.user.client.rpc.AsyncCallback; > > public class CrossSiteJsonRequestUtil { > > public static CrossSiteJsonRequestUtil INSTANCE = new > CrossSiteJsonRequestUtil(); > > private Map> callbacks = new > HashMap>(); > > private int curIndex = 0; > > private static final String CALLBACK_PARAM_NAME = "callback"; > > public void doFetchURL(String baseUrl, > AsyncCallback responseHandler) { > doFetchURL(baseUrl, CALLBACK_PARAM_NAME, responseHandler); > } > > public void doFetchURL(String baseUrl, String callbackParamName, > AsyncCallback responseHandler) { > String callbackName = reserveCallback(responseHandler); > setup(callbackName); > > char sep; > if (baseUrl.contains("?")) { > sep = '&'; > } else { > sep = '?'; > } > > addScript(callbackName, baseUrl + sep + callbackParamName + "=" > + callbackName); > > } > > private void setup(String callback) { > setup(this, callback); > } > > private String reserveCallback(AsyncCallback > responseHandler) { > while (true) { > if (!callbacks.containsKey("__gwt_callback" + curIndex)) { > callbacks.put("__gwt_callback" + curIndex, responseHandler); > return "__gwt_callback" + curIndex++; > } > } > } > > private native static void setup(CrossSiteJsonRequestUtil > instance, > String callback) /*-{ > window[callback] = function(someData) { > instan...@crosssitejsonrequestutil::handle(Lcom/google/gwt/ > core/client/JavaScriptObject;Ljava/lang/String;)(someData,callback); > var scriptEl = document.getElementById(callback); > document.getElementsByTagName("body")[0].removeChild > (scriptEl); > window[callback] =null; > } > }-*/; > > private native void addScript(String uniqueId, String url) /*-{ > var elem = document.createElement("script"); > elem.setAttribute("language", "JavaScript"); > elem.setAttribute("src", url); > elem.setAttribute("id", uniqueId); > document.getElementsByTagName("body")[0].appendChild(elem); > }-*/; > > @SuppressWarnings("unused") > private void handle(JavaScriptObject jso, String callback) { > JSONObject jsonObject = null; > AsyncCallback responseHandler = callbacks.get(callback); > try { > jsonObject = new JSONObject(jso); > } catch (RuntimeException e) { > responseHandler.onFailure(e); > } > if (jsonObject != null) { > responseHandler.onSuccess(jsonObject); > } > > } > > } --~--~-~--~~~---~--~~ 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: optimistic ui
They already open sourced OT: http://code.google.com/p/wave-protocol/ -- Arthur Kalmenson On Mon, Aug 10, 2009 at 12:25 AM, CoolDude wrote: > > any idea whether google gonna open source OT library? or sample on > this? > > > --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
great.. thank you.. On Aug 11, 4:36 pm, Hasan Turksoy wrote: > @Tolga, > > I have attached the source of the project... this attachment does not > include the necessary jar files because of the attachment size policy of my > environment. But, below is the necessary jar dependency list for the > project. You can download and put them into the "war/WEB-INF/lib" folder. > > -- > antlr-2.7.6.jar > commons-collections-3.2.1.jar > commons-logging-1.1.1.jar > dom4j-1.6.1.jar > ejb3-persistence-1.0.2.GA.jar > gwt-servlet.jar > hibernate-annotations-3.4.0.GA.jar > hibernate-commons-annotations-3.1.0.GA.jar > hibernate-core-3.3.1.GA.jar > hibernate-entitymanager-3.4.0.GA.jar > hsqldb-1.8.0.10.jar > javassist-3.8.0.GA.jar > jta-1.1.jar > slf4j-api-1.5.8.jar > slf4j-jdk14-1.5.8.jar > -- > > regards, > > Hasan... > > > > On Tue, Aug 11, 2009 at 3:44 PM, tolga ozdemir wrote: > > > Thank you Hasan, > > > I could not download your projects via SVN.. Would you mind to send it > > as a zip file to me? > > > Tolga > > > On Aug 11, 10:56 am, Hasan Turksoy wrote: > > > Hi Tolga, > > > > Below is a simple demo [1] from one of my GWT presentations implementing > > > GWT-JPA integration. It's configured as to connect HSQLDB but you can > > find a > > > commented configuration to connect to MySQL as well (see [2])... > > > > you can check it out and run using GWT Eclipse Plugin - you don't need > > any > > > extra tool: > > > svn checkouthttp:// > > faculty-gwt.googlecode.com/svn/trunk/examples/hellogwtwithjpa-... > > > > [1] > >http://code.google.com/p/faculty-gwt/source/browse/#svn/trunk/example... > > > [2] > >http://code.google.com/p/faculty-gwt/source/browse/trunk/examples/hel... > > > > hope it helps, > > > > Hasan...http://www.jroller.com/hasant > > > > On Tue, Aug 11, 2009 at 10:04 AM, tolga ozdemir > > wrote: > > > > > Hi everybody, > > > > > I am starting to learn GWT stuff for a while. I am really getting > > > > enjoy it. Now, I am considering to use JPA to access my database.. I > > > > read a lot of articles about this.. (took a look at GWT 1.4 and GWT > > > > 1.5 samples also) > > > > > But guys, I have not succeeded yet.. Any help about this would be > > > > great.. Bu my question is different.. > > > > > Would you jote down a list what we need to use JPA with GWT > > > > > JDK? (I have Java SE 1.6 JDK) > > > > Server? (I use hosted mode, I love it) > > > > Database (I can use MySQL and MsSql) > > > > GWT SDK (1.7) > > > > Google App SDK (1.2.2) > > > > Hibernate api > > > > Any more tools do we need to develop??? > > > > > please write a simple list to me, maybe I missing the point right > > > > there.. My tools are enough?? > > > > > Thank you, > > > > > Tolga > > > > hellogwtwithjpa.rar > 17KViewDownload --~--~-~--~~~---~--~~ 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: How to split a large application?
Hi Stefan, take a look at the blog entry that I just wrote. It may give you some idea on how to do this: http://zenoconsulting.wikidot.com/blog:16 I split my app up into multiple GWT entry points that all build in the same project. It has been working great so far. Regards, Davis On Aug 10, 3:44 am, Stefan wrote: > Hi all, > > I am to develop a GWT application that shall consist of a main > application that is used to start and control the execution of "sub > applications". The "sub applications" are not now at compile time of > the main application. They are identified by IDs and should be > startable by these IDs. > > In Java I could use reflection to instantiate the sub applications and > use interfaces that must be implemented by "sub applications" in order > to control them. > > Is it possible to achieve something similar with GWT? The "sub > applications" should be compilable into JavaScript independently of > the main application and must be dynamically loadable by the main > application. > > Thanks for your attention, > > --Stefan --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
@Tolga, I have attached the source of the project... this attachment does not include the necessary jar files because of the attachment size policy of my environment. But, below is the necessary jar dependency list for the project. You can download and put them into the "war/WEB-INF/lib" folder. -- antlr-2.7.6.jar commons-collections-3.2.1.jar commons-logging-1.1.1.jar dom4j-1.6.1.jar ejb3-persistence-1.0.2.GA.jar gwt-servlet.jar hibernate-annotations-3.4.0.GA.jar hibernate-commons-annotations-3.1.0.GA.jar hibernate-core-3.3.1.GA.jar hibernate-entitymanager-3.4.0.GA.jar hsqldb-1.8.0.10.jar javassist-3.8.0.GA.jar jta-1.1.jar slf4j-api-1.5.8.jar slf4j-jdk14-1.5.8.jar -- regards, Hasan... On Tue, Aug 11, 2009 at 3:44 PM, tolga ozdemir wrote: > > Thank you Hasan, > > I could not download your projects via SVN.. Would you mind to send it > as a zip file to me? > > Tolga > > On Aug 11, 10:56 am, Hasan Turksoy wrote: > > Hi Tolga, > > > > Below is a simple demo [1] from one of my GWT presentations implementing > > GWT-JPA integration. It's configured as to connect HSQLDB but you can > find a > > commented configuration to connect to MySQL as well (see [2])... > > > > you can check it out and run using GWT Eclipse Plugin - you don't need > any > > extra tool: > > svn checkouthttp:// > faculty-gwt.googlecode.com/svn/trunk/examples/hellogwtwithjpa-... > > > > [1] > http://code.google.com/p/faculty-gwt/source/browse/#svn/trunk/example... > > [2] > http://code.google.com/p/faculty-gwt/source/browse/trunk/examples/hel... > > > > hope it helps, > > > > Hasan...http://www.jroller.com/hasant > > > > > > > > On Tue, Aug 11, 2009 at 10:04 AM, tolga ozdemir > wrote: > > > > > Hi everybody, > > > > > I am starting to learn GWT stuff for a while. I am really getting > > > enjoy it. Now, I am considering to use JPA to access my database.. I > > > read a lot of articles about this.. (took a look at GWT 1.4 and GWT > > > 1.5 samples also) > > > > > But guys, I have not succeeded yet.. Any help about this would be > > > great.. Bu my question is different.. > > > > > Would you jote down a list what we need to use JPA with GWT > > > > > JDK? (I have Java SE 1.6 JDK) > > > Server? (I use hosted mode, I love it) > > > Database (I can use MySQL and MsSql) > > > GWT SDK (1.7) > > > Google App SDK (1.2.2) > > > Hibernate api > > > Any more tools do we need to develop??? > > > > > please write a simple list to me, maybe I missing the point right > > > there.. My tools are enough?? > > > > > Thank you, > > > > > Tolga > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~--- hellogwtwithjpa.rar Description: application/rar-compressed
Re: Mouse Event Handlers on table rows
I still haven't heard anything about this, I've tried everything from creating my own JavascriptObject to represent a TR to adding mouseover and mouseout attributes to the tr's themselves. Does anyone happen to know a way that I can accomplish this? Thanks, Brett On Jul 17, 11:24 am, bconoly wrote: > Does anyone know of a way I can add Handlers to a TableRowElement? > I've tried all that I can think of right now and I'm kinda stuck... --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
Thank you Hasan, I could not download your projects via SVN.. Would you mind to send it as a zip file to me? Tolga On Aug 11, 10:56 am, Hasan Turksoy wrote: > Hi Tolga, > > Below is a simple demo [1] from one of my GWT presentations implementing > GWT-JPA integration. It's configured as to connect HSQLDB but you can find a > commented configuration to connect to MySQL as well (see [2])... > > you can check it out and run using GWT Eclipse Plugin - you don't need any > extra tool: > svn > checkouthttp://faculty-gwt.googlecode.com/svn/trunk/examples/hellogwtwithjpa-... > > [1]http://code.google.com/p/faculty-gwt/source/browse/#svn/trunk/example... > [2]http://code.google.com/p/faculty-gwt/source/browse/trunk/examples/hel... > > hope it helps, > > Hasan...http://www.jroller.com/hasant > > > > On Tue, Aug 11, 2009 at 10:04 AM, tolga ozdemir wrote: > > > Hi everybody, > > > I am starting to learn GWT stuff for a while. I am really getting > > enjoy it. Now, I am considering to use JPA to access my database.. I > > read a lot of articles about this.. (took a look at GWT 1.4 and GWT > > 1.5 samples also) > > > But guys, I have not succeeded yet.. Any help about this would be > > great.. Bu my question is different.. > > > Would you jote down a list what we need to use JPA with GWT > > > JDK? (I have Java SE 1.6 JDK) > > Server? (I use hosted mode, I love it) > > Database (I can use MySQL and MsSql) > > GWT SDK (1.7) > > Google App SDK (1.2.2) > > Hibernate api > > Any more tools do we need to develop??? > > > please write a simple list to me, maybe I missing the point right > > there.. My tools are enough?? > > > Thank you, > > > Tolga --~--~-~--~~~---~--~~ 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: How to split a large application?
I already described how I do it. I can not just post the complete code since I am not allowed to do that. Through JSNI I just define a property on the DIV element. This property maps back to the GWT applications so acts as a communication gateway. nothing special really. David On Mon, Aug 10, 2009 at 5:31 PM, Saeed Zarinfam wrote: > > Hi David > I have the same problem. I connect main application with sub > application using append # in the end of iframe URL but this > approach does not work in some browser. > please describe about how you enabled the communication between the > applications with an example. > > 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to split a large application?
Nathan, The use case is indeed not what you think it is. In your case I could just deliver the main application as a widget library and build the final application from this jar. It is not possible to compile both the main application and child applications in one unit because these are developed by different groups/companies. The sub applications are installed separately from the main applications and the main application is updated separately from the sub applications as well. When you create a portal you don't always write/compile all the portlets that are being deployed. Per installation the version and type of portlets can also be different so it is just impossible to deliver everything as one big application. We do not host the service either, so the portal is delivered as an ear that will allow appserver admins to configure the installed applications at runtime. So we just don't know what applications are used and they are not even from our group/company. David On Tue, Aug 11, 2009 at 12:05 PM, Nathan Wells wrote: > > I agree with Ed, but don't know that I fully understand the use > case... I'm doing a similar thing without iframes or runAsync. > > Essentially, I created a PresenterMap that extends HashMap Presenter> where Presenter is an interface that has an "presentIn > (HasWidgets)" method. This method does the necessary work to load the > UI into the given panel (of course, I separate UI-specific concerns > into "view" classes). What this allows me to do is generate a > navigation pane that has no knowledge of the underlying pages and can > be configured for whatever navigation needs a given user/admin has. > > I know I'm kind of leaving things unclear, but I don't want to go into > too much detail without understanding your needs. > > On Aug 11, 3:22 am, Ed wrote: >> Hi All, >> >> Why not use the Async functionality in 2.0? (to lazy load/run the code >> for the other apps). >> See:http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting > > > --~--~-~--~~~---~--~~ 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: How to split a large application?
On Tue, Aug 11, 2009 at 11:18 AM, Stefan wrote: > > Hi David, > > I started my struggle to launch sub applications. The first results > using an iframe to load the sub applications look promising. Yet, > until now, I did not manage to run it in the hosted browser. Do you > know / think that it is possible at all? Yes, sure it works in the hosted browser ... BUT ... I run the server side in a different application server. So I use -noserver flag to disable the build-in jetty. This means that you need to have a compiled version on the server side because the bootstrapping of GWT needs to be downloaded from your server. > When I try to start a sub application the hosted browser loads the > iframe but complains that it can not find the requested module. It > gives the hint that "all active GWT modules must be specified in the > command line arguments". Unfortunately I did not find much material > that documents the command line of the HostedMode.java class. Check the classpath that it includes all sources of both the main application and the subapplications or this will not work. I don't know if you can make it work with the build in jetty server since you will need to make sure that both web applications are actually launched (I presume that this is the cause of your problem). David --~--~-~--~~~---~--~~ 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 can i right to left a MenuBar ?
Hi How can i right to left a MenuBar ? please help me 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Programmatic resize of root panel
I have a Tree widget within a HorizontalSplitPanel within the root panel. I have an intermittent problem with the hosted browser at process start--the TreeItems are collapsed to the vertical center of the enclosing panel. Resizing the browser window, even by a very small amount, causes the tree items to paint normally, and everything works as desired from that point. Does anyone know why there would be an intermittent problem painting the tree? Is there a programmatic method to resize the browser window? 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT and PHP
You can use the -noserver switch, and point a web server at your project's war directory. Ian http://examples.roughian.com 2009/8/11 twdarkflame > > Cant you just use HttpRequests to the php pages (using query strings > to send the data), and set them pointing to absolute urls for your > sever? > That should work, I think. > > > On Aug 11, 6:25 am, Tiago wrote: > > Hello, > > > > I started my studies about GWT 1 week ago and i'm interested on using > > GWT with PHP. I have experience with web development using PHP and > > Symfony framework and Java with VRaptor and Tomcat. > > > > Well, i saw that GWT executes on hosted mode using Jetty container and > > work with GWT RPC for data exchange between java server and client. > > For PHP, JSON appear to be the only way right? > > > > As i would like to use GWT for development with PHP, i would like to > > know how can i develop without having to compile the GWT to run on web > > mode. For example, how can i run a GWT application and communicate > > with my Apache server while i am developing the application? > > > > The GWT runs on localhost:8080, the Apache on port 80, the > > GWT.getModuleBaseUrl() returns me localhost:8080, and my PHP server- > > side code runs on a virtual host xxx.com. > > > > Is there a good way of doing that? > > > > Thank you and sorry about my poor english. > > > --~--~-~--~~~---~--~~ 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: about iframe
I dont know if its the best solution for what your doing, but Ive certainly used the same and it seems to work. The key is you gota use native javascript commands to communicate between the inner/outer gwt. (if you need to do that at all) On Aug 10, 9:19 am, Saeed Zarinfam wrote: > Hi > A friend suggest me use Frame widget for loading a GWT module in > another GWT module. I want to know is this a best solution for me. I > want to build an application that load GWT modules and manage in (like > a gadget container). > > 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, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem cascading styles in GWT
I also applied properties to "body" element and i noticed that the font-family property is inherited only by labels and not by buttons. Is that ok? On Aug 11, 12:41 pm, Ice13ill wrote: > Hello, i'm trying to use CSS with gwt (cascade styles). > I have this code: > > hpMain.add(hp1); > hpMain.add(vp1); > > hp1.add(lb); > hp1.add(new Label("in hp1")); > > vp1.add(new Button("B 1")); > vp1.add(new Button("B 2")); > vp1.add(new Button("B 3")); > > hpMain.setStyleName(styleMain); > vp1.setStyleName(styleVP1); > hp1.setStyleName(styleHP1); > lb.setStyleName(styleLabel); > > where > > private String styleMain = "GadgetTest1"; > private String styleHP1 = "hPanel1"; > private String styleVP1 = "vPanel1"; > private String styleLabel = "lbl"; > > CSS file: > > .GadgetTest1 .hPanel1 .lbl{ > color: blue; > > } > > .GadgetTest1 { > font-size: 11px; > font-family: Arial Unicode MS, Arial, sans-serif; > > border: 1px solid red; > width: 100%; > > } > > The label with style "lbl" has a blue color and inherits style > "GadgetTest" (set to main panel). The problem is that only the font- > family tag is recognized (the font size is still large which is > implicit) but I used firebug plugin and i saw that the label object > also inherits the font-size tag but it doesn't show on the browser (if > i modify it nothing happens). What's the problem here ? Is it a bug? --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
server side expected behaviour?
Hello, I am experimenting with new GWT plugin + GWT 1.7 and I notice the following: I create a new GWT only application and start it in debug mode, if I get on the code view of eclipse and edit anything on the client side, the changes are loaded instantly after I reload the page, if I edit anything on the server side (package com.niceapp.server) for example the class GreetingServiceImpl.java nothing happens: the only way to see it is to stop the engine (embedded jetty in gwt plugin) and start it again. I just wanted to know if this is the expected behaviour, since using jetty in eclipse normally this doesn't happen. Thanks Edoardo --~--~-~--~~~---~--~~ 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: How to split a large application?
Hi Ed & Nathan, the crux of the matter is, that I really can't use a single compilation unit. There are potentially hundreds of sub applications that are automatically generated. If that would not be the case I really would like to use runAsync and some interfaces to split the code. Thanks for your ideas, --Stefan --~--~-~--~~~---~--~~ 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: Spring and GWT integration
Hi P.G. I've seen a lot of ways to achieve that integration, and none looks complicated. The fact is that spring-gwt integration is easy (thanks to R. Jellinghaus' refactoring of the RemoteServiceServlet), which explains the plethora of libraries. Hibernate-gwt integration on the other hand is hard, that's why there are only 3 (afaik) out there of which only 1 (imo) is to be taken seriously. I guess it all comes down to : - what kind of flavour you prefer - if you like annotations or XML - prefer convention over configuration - whether you can live with a certain 3rd party dependency or not - how much documentation you need - how big and active the supporting community is Especially the later point is a threshold for commercial adoption when arguing in favour of a library in technical meetings, so maybe that's the answer you are looking for ;-) On Aug 11, 11:04 am, "P.G.Taboada" wrote: > Hi, > > I have seen a lot of (quite complicated) Spring and GWT integration > approaches, and I wonder why noone is using the autowiring bean bean > factory to simple auto-inject the required beans into the GWT RPC > services. > > http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-relo... > > I have been using this approach for a while. It is easy to setup and > works perfectly. > > Would appreciate any comments. --~--~-~--~~~---~--~~ 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: How to split a large application?
But why not make a direct link from the main app to the sub app? And why not make it one compiler unit ? I have the same now: I have 4 app's: login, profile, admin, declare. After the login I decide which app to load... When I start using 2.0 I will make it one compile unit and do the same switch... They are just separate eclipse projects and just linke them together when using 2.0... --~--~-~--~~~---~--~~ 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: Java To Java RPC
Possible, yes. Problematic, yes. The basic problem you'll run into is that GWT RPC uses a custom version of JSON for serialization. Essentially, you would have to recreate the GWT-RPC mechanism for your thick client, which may or may not be difficult. I can't say how difficult, since I've never had to do it, but I would wager that it would be easier to either 1) Leave GWT-RPC behind in favor of the more standard XML or JSON methods. 2) Forget about having a thick Java client. Personally, I would prefer 2, but I don't know your particular use case. On Aug 10, 9:39 pm, steven a wrote: > Hi, > > Is it possible to call the GWT RPC Server from an remote Java client, > instead of from GWT client? > > -steve --~--~-~--~~~---~--~~ 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: How to split a large application?
Hi Ed, thanks for the interesting link. The problem is that I have separate compilation units. The main application does not know its potential sub applications. --Stefan --~--~-~--~~~---~--~~ 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: How to split a large application?
I agree with Ed, but don't know that I fully understand the use case... I'm doing a similar thing without iframes or runAsync. Essentially, I created a PresenterMap that extends HashMap where Presenter is an interface that has an "presentIn (HasWidgets)" method. This method does the necessary work to load the UI into the given panel (of course, I separate UI-specific concerns into "view" classes). What this allows me to do is generate a navigation pane that has no knowledge of the underlying pages and can be configured for whatever navigation needs a given user/admin has. I know I'm kind of leaving things unclear, but I don't want to go into too much detail without understanding your needs. On Aug 11, 3:22 am, Ed wrote: > Hi All, > > Why not use the Async functionality in 2.0? (to lazy load/run the code > for the other apps). > See:http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting --~--~-~--~~~---~--~~ 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: XML Parsing and NamedNodeMap
has nothing to do with that IF! The problem is I've an XML with N nodes but my Node list contains 2*N+1 nodes. Every 2nd node is a wrong one - for whatever reason. Have to check this. The XML is valid 'though. If I skip those wrong ones it does what it should... Ekki On Aug 11, 11:32 am, CI-CUBE wrote: > I saw that the implementation of that IF depends on the browser. This > however should be transparent to the GWT programmer I'd say... Any > further hints? > > On Aug 11, 11:16 am, CI-CUBE wrote: > > > This is what I included: > > > On Aug 11, 10:50 am, George Georgovassilis > > > wrote: > > > You inherited the right module in your .gwt.xml module? > > > > On Aug 11, 10:15 am, CI-CUBE wrote: > > > > > Want to process an XML document, everything looks good but I get an > > > > exception when creating a NamedNodeMap, which obviously is just an > > > > Interface. Using the Eclipse Debugger I saw that > > > > com.google.gwt.xml.client.impl.NamedNodeMapImpl cannot be found. > > > > > Any hints please? TIA > > > > > Ekki > > > > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 --~--~-~--~~~---~--~~ 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: How to split a large application?
After some more tries managed to start a sub application in the hosted browser. In order to achieve this I added the module name of the sub application after the module name of the main application and included the source and class directories of the sub application in the class path of the HostedMode execution. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Problem cascading styles in GWT
Hello, i'm trying to use CSS with gwt (cascade styles). I have this code: hpMain.add(hp1); hpMain.add(vp1); hp1.add(lb); hp1.add(new Label("in hp1")); vp1.add(new Button("B 1")); vp1.add(new Button("B 2")); vp1.add(new Button("B 3")); hpMain.setStyleName(styleMain); vp1.setStyleName(styleVP1); hp1.setStyleName(styleHP1); lb.setStyleName(styleLabel); where private String styleMain = "GadgetTest1"; private String styleHP1 = "hPanel1"; private String styleVP1 = "vPanel1"; private String styleLabel = "lbl"; CSS file: .GadgetTest1 .hPanel1 .lbl{ color: blue; } .GadgetTest1 { font-size: 11px; font-family: Arial Unicode MS, Arial, sans-serif; border: 1px solid red; width: 100%; } The label with style "lbl" has a blue color and inherits style "GadgetTest" (set to main panel). The problem is that only the font- family tag is recognized (the font size is still large which is implicit) but I used firebug plugin and i saw that the label object also inherits the font-size tag but it doesn't show on the browser (if i modify it nothing happens). What's the problem here ? Is it a bug? --~--~-~--~~~---~--~~ 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: XML Parsing and NamedNodeMap
I saw that the implementation of that IF depends on the browser. This however should be transparent to the GWT programmer I'd say... Any further hints? On Aug 11, 11:16 am, CI-CUBE wrote: > This is what I included: > > On Aug 11, 10:50 am, George Georgovassilis > > wrote: > > You inherited the right module in your .gwt.xml module? > > > On Aug 11, 10:15 am, CI-CUBE wrote: > > > > Want to process an XML document, everything looks good but I get an > > > exception when creating a NamedNodeMap, which obviously is just an > > > Interface. Using the Eclipse Debugger I saw that > > > com.google.gwt.xml.client.impl.NamedNodeMapImpl cannot be found. > > > > Any hints please? TIA > > > > Ekki > > > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 --~--~-~--~~~---~--~~ 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: How to split a large application?
Hi All, Why not use the Async functionality in 2.0? (to lazy load/run the code for the other apps). See: http://code.google.com/p/google-web-toolkit/wiki/CodeSplitting --~--~-~--~~~---~--~~ 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: How to split a large application?
Hi David, I started my struggle to launch sub applications. The first results using an iframe to load the sub applications look promising. Yet, until now, I did not manage to run it in the hosted browser. Do you know / think that it is possible at all? When I try to start a sub application the hosted browser loads the iframe but complains that it can not find the requested module. It gives the hint that "all active GWT modules must be specified in the command line arguments". Unfortunately I did not find much material that documents the command line of the HostedMode.java class. --Stefan --~--~-~--~~~---~--~~ 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: XML Parsing and NamedNodeMap
This is what I included: On Aug 11, 10:50 am, George Georgovassilis wrote: > You inherited the right module in your .gwt.xml module? > > On Aug 11, 10:15 am, CI-CUBE wrote: > > > Want to process an XML document, everything looks good but I get an > > exception when creating a NamedNodeMap, which obviously is just an > > Interface. Using the Eclipse Debugger I saw that > > com.google.gwt.xml.client.impl.NamedNodeMapImpl cannot be found. > > > Any hints please? TIA > > > Ekki > > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Spring and GWT integration
Hi, I have seen a lot of (quite complicated) Spring and GWT integration approaches, and I wonder why noone is using the autowiring bean bean factory to simple auto-inject the required beans into the GWT RPC services. http://pgt.de/2009/07/17/non-invasive-gwt-and-spring-integration-reloaded/ I have been using this approach for a while. It is easy to setup and works perfectly. Would appreciate any comments. --~--~-~--~~~---~--~~ 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: XML Parsing and NamedNodeMap
You inherited the right module in your .gwt.xml module? On Aug 11, 10:15 am, CI-CUBE wrote: > Want to process an XML document, everything looks good but I get an > exception when creating a NamedNodeMap, which obviously is just an > Interface. Using the Eclipse Debugger I saw that > com.google.gwt.xml.client.impl.NamedNodeMapImpl cannot be found. > > Any hints please? TIA > > Ekki > > GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 --~--~-~--~~~---~--~~ 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 and PHP
Cant you just use HttpRequests to the php pages (using query strings to send the data), and set them pointing to absolute urls for your sever? That should work, I think. On Aug 11, 6:25 am, Tiago wrote: > Hello, > > I started my studies about GWT 1 week ago and i'm interested on using > GWT with PHP. I have experience with web development using PHP and > Symfony framework and Java with VRaptor and Tomcat. > > Well, i saw that GWT executes on hosted mode using Jetty container and > work with GWT RPC for data exchange between java server and client. > For PHP, JSON appear to be the only way right? > > As i would like to use GWT for development with PHP, i would like to > know how can i develop without having to compile the GWT to run on web > mode. For example, how can i run a GWT application and communicate > with my Apache server while i am developing the application? > > The GWT runs on localhost:8080, the Apache on port 80, the > GWT.getModuleBaseUrl() returns me localhost:8080, and my PHP server- > side code runs on a virtual host xxx.com. > > Is there a good way of doing that? > > Thank you and sorry about my poor english. --~--~-~--~~~---~--~~ 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: Best way for changing UI layout on browser size changes? Deferred binding an option?
My advice would be to use alternative sets of CSS for different sizes, and switch between them. This dosnt have to be done ver gwt, you can use this script I found usefull; http://particletree.com/features/dynamic-resolution-dependent-layouts/ On Aug 11, 8:40 am, TomJanssens wrote: > Hello all, > > I am working on a kind of application which can best be described as a > CRM. The UI is built as a Flextable containing labels, textboxes, ... > However, I would like that the UI can change automatically depending > on the size (width) of the browser window. If the browser window is > large enough, all data should be shown in 2 columns, otherwise the UI > should automatically change to one column. Moreover, the UI should > also automatically update when the browser is resized by the user. > > So my question; what is the best way to do this. Is deferred binding > an option for realizing this (what about the brwoser resizing)? Or am > I forced to check the browser size myself, construct the UI as I want > it and add events for browser resizes? > > Cheers > Tom --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
XML Parsing and NamedNodeMap
Want to process an XML document, everything looks good but I get an exception when creating a NamedNodeMap, which obviously is just an Interface. Using the Eclipse Debugger I saw that com.google.gwt.xml.client.impl.NamedNodeMapImpl cannot be found. Any hints please? TIA Ekki GWT 1.7, App Engine 1.2.2, Eclipse 3.5, JRE 1.6.0_13 --~--~-~--~~~---~--~~ 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: prerequisities of GWT to develop JPA
Hi Tolga, Below is a simple demo [1] from one of my GWT presentations implementing GWT-JPA integration. It's configured as to connect HSQLDB but you can find a commented configuration to connect to MySQL as well (see [2])... you can check it out and run using GWT Eclipse Plugin - you don't need any extra tool: svn checkout http://faculty-gwt.googlecode.com/svn/trunk/examples/hellogwtwithjpa-addwidgetshellogwtwithjpa [1] http://code.google.com/p/faculty-gwt/source/browse/#svn/trunk/examples/hellogwtwithjpa-addwidgets [2] http://code.google.com/p/faculty-gwt/source/browse/trunk/examples/hellogwtwithjpa-addwidgets/src/META-INF/persistence.xml hope it helps, Hasan... http://www.jroller.com/hasant On Tue, Aug 11, 2009 at 10:04 AM, tolga ozdemir wrote: > > Hi everybody, > > I am starting to learn GWT stuff for a while. I am really getting > enjoy it. Now, I am considering to use JPA to access my database.. I > read a lot of articles about this.. (took a look at GWT 1.4 and GWT > 1.5 samples also) > > But guys, I have not succeeded yet.. Any help about this would be > great.. Bu my question is different.. > > Would you jote down a list what we need to use JPA with GWT > > JDK? (I have Java SE 1.6 JDK) > Server? (I use hosted mode, I love it) > Database (I can use MySQL and MsSql) > GWT SDK (1.7) > Google App SDK (1.2.2) > Hibernate api > Any more tools do we need to develop??? > > please write a simple list to me, maybe I missing the point right > there.. My tools are enough?? > > Thank you, > > Tolga > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
prerequisities of GWT to develop JPA
Hi everybody, I am starting to learn GWT stuff for a while. I am really getting enjoy it. Now, I am considering to use JPA to access my database.. I read a lot of articles about this.. (took a look at GWT 1.4 and GWT 1.5 samples also) But guys, I have not succeeded yet.. Any help about this would be great.. Bu my question is different.. Would you jote down a list what we need to use JPA with GWT JDK? (I have Java SE 1.6 JDK) Server? (I use hosted mode, I love it) Database (I can use MySQL and MsSql) GWT SDK (1.7) Google App SDK (1.2.2) Hibernate api Any more tools do we need to develop??? please write a simple list to me, maybe I missing the point right there.. My tools are enough?? Thank you, Tolga --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---