Exception whit the GWT 2.7
Hello, I work with Eclipse Luna and I installed the GWT plugin. When I want use the GWT Designer with the GWT SDK 2.5.1, it's fine. Now, I want use the GWT Designer with the GWT SDK 2.6 or 2.7 and I can't. When I launch the designer, the following exception : Internal Error encountered unexpected internal error. This could be caused by a bug or by a misconfiguration issue, conflict, partial update, etc. java.lang.NoSuchMethodError: com.google.gwt.dev.cfg.ModuleDefLoader. loadFromClassPath(Lcom/google/gwt/core/ext/TreeLogger;Ljava/lang/String;Z) Lcom/google/gwt/dev/cfg/ModuleDef; Show stack trace. Stack trace:java.lang.NoSuchMethodError: com.google.gwt.dev.cfg. ModuleDefLoader.loadFromClassPath(Lcom/google/gwt/core/ext/TreeLogger;Ljava/ lang/String;Z)Lcom/google/gwt/dev/cfg/ModuleDef; at com.google.gwt.dev.shell.designtime.HostedModeSupportImpl.loadModule( HostedModeSupportImpl.java:85) I'm seeking for some days but I still can't use the 2.7.0 SDK version. Can you explain me why ? Thanks. See you soon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Error: com.google.gwt.user.client.rpc.StatusCodeException: 404 on Tomcat server
Hi Ahmed, Yes the problem was the hosting company did not support GWT. I now use arvixe.com which works fine. http://stackoverflow.com/questions/9691609/gwt-servlet-error-com-google-gwt-user-client-rpc-statuscodeexception-404-on-to Good luck On Monday, May 20, 2013 1:17:58 PM UTC-6, Ahmed El-Fayomy wrote: I'm having the exact same problem, any luck?! On Friday, February 24, 2012 11:30:38 PM UTC+3, Maurice wrote: Hello All, I am having problems getting my RPC code working on a Tomcat server hosted by serversanddomains.com. The steps I have followed are: 1) Using GWT 2.4, and eclipse I create an new web application project - with a project = Hello package = com.gwt.hello Using Google Web ToolKit Not using Google App Engine And Using Generate project sample code 2) In the generated file com.gwt.hello.client.Hello.java I change line serverResponseLabel.setHTML(SERVER_ERROR); to serverResponseLabel.setHTML(caught.toString()); To understand the errors better. 3) I then test the program in development mode and it works as expected. 4) Compile - Build the project with the GWT compiler Compiling module com.gwt.hello.Hello Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into /Users/xxx/Documents/www/Hello/war/hello Link succeeded Compilation succeeded -- 65.826s 5) Upload the files everything in the war directory (Folders hello, WEB-INF and files Hello.html, and Hello.css) into my hosted account in the public_html folder 6) Test the production site at http://www.example.com/Hello.html I get the following error Sending name to the server: GWT User Server replies: com.google.gwt.user.client.rpc.StatusCodeException: 404 Not Found The requested URL /hello/greet was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 7) Contacted serversanddomains.com and they respond There does not appear to be any error on the server side. The jsp test page seems to be working fine now at http://example.com/jsptest.jsp so tomcat itself appears to be just fine. The page in question is simply trying to request a file URL which does not exist. When submitting the form, this shows up in the error log for apache. [Thu Feb 23 16:44:31 2012] [error] [client 208.74.121.102] File does not exist: /home/xxx/public_html/hello/greet, referer: http://example.com/Hello.html That's because there is no such file called greet in the hello folder. This is likely because you have not properly installed the application. = So we have written back to see if we can get exact steps on how you need to upload everything. But I can tell you that if you get hosting with Plesk on Linux with us, Plesk allows you to upload your WAR files and it creates the application for you for your site. 8) Tried to follow the steps outlined in http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideRPCDeployment Simple Example with Apache Tomcat Thanks for taking the time to read this, and any suggestions are welcome. Cheers, Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Error: com.google.gwt.user.client.rpc.StatusCodeException: 404 on Tomcat server
Hi All, I still have not been able to resolve this issue, any advice? Thanks On Feb 24, 1:30 pm, Maurice maurice.tad...@gmail.com wrote: Hello All, I am having problems getting my RPC code working on a Tomcat server hosted by serversanddomains.com. The steps I have followed are: 1) Using GWT 2.4, and eclipse I create an new web application project - with a project = Hello package = com.gwt.hello Using Google Web ToolKit Not using Google App Engine And Using Generate project sample code 2) In the generated file com.gwt.hello.client.Hello.java I change line serverResponseLabel.setHTML(SERVER_ERROR); to serverResponseLabel.setHTML(caught.toString()); To understand the errors better. 3) I then test the program in development mode and it works as expected. 4) Compile - Build the project with the GWT compiler Compiling module com.gwt.hello.Hello Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into /Users/xxx/Documents/www/Hello/war/hello Link succeeded Compilation succeeded -- 65.826s 5) Upload the files everything in the war directory (Folders hello, WEB-INF and files Hello.html, and Hello.css) into my hosted account in the public_html folder 6) Test the production site athttp://www.example.com/Hello.html I get the following error Sending name to the server: GWT User Server replies: com.google.gwt.user.client.rpc.StatusCodeException: 404 Not Found The requested URL /hello/greet was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 7) Contacted serversanddomains.com and they respond There does not appear to be any error on the server side. The jsp test page seems to be working fine now athttp://example.com/jsptest.jspso tomcat itself appears to be just fine. The page in question is simply trying to request a file URL which does not exist. When submitting the form, this shows up in the error log for apache. [Thu Feb 23 16:44:31 2012] [error] [client 208.74.121.102] File does not exist: /home/xxx/public_html/hello/greet, referer:http://example.com/Hello.html That's because there is no such file called greet in the hello folder. This is likely because you have not properly installed the application. === == So we have written back to see if we can get exact steps on how you need to upload everything. But I can tell you that if you get hosting with Plesk on Linux with us, Plesk allows you to upload your WAR files and it creates the application for you for your site. 8) Tried to follow the steps outlined inhttp://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunicat... Simple Example with Apache Tomcat Thanks for taking the time to read this, and any suggestions are welcome. Cheers, Maurice -- 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.
Error: com.google.gwt.user.client.rpc.StatusCodeException: 404 on Tomcat server
Hello All, I am having problems getting my RPC code working on a Tomcat server hosted by serversanddomains.com. The steps I have followed are: 1) Using GWT 2.4, and eclipse I create an new web application project - with a project = Hello package = com.gwt.hello Using Google Web ToolKit Not using Google App Engine And Using Generate project sample code 2) In the generated file com.gwt.hello.client.Hello.java I change line serverResponseLabel.setHTML(SERVER_ERROR); to serverResponseLabel.setHTML(caught.toString()); To understand the errors better. 3) I then test the program in development mode and it works as expected. 4) Compile - Build the project with the GWT compiler Compiling module com.gwt.hello.Hello Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into /Users/xxx/Documents/www/Hello/war/hello Link succeeded Compilation succeeded -- 65.826s 5) Upload the files everything in the war directory (Folders hello, WEB-INF and files Hello.html, and Hello.css) into my hosted account in the public_html folder 6) Test the production site at http://www.example.com/Hello.html I get the following error Sending name to the server: GWT User Server replies: com.google.gwt.user.client.rpc.StatusCodeException: 404 Not Found The requested URL /hello/greet was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 7) Contacted serversanddomains.com and they respond There does not appear to be any error on the server side. The jsp test page seems to be working fine now at http://example.com/jsptest.jsp so tomcat itself appears to be just fine. The page in question is simply trying to request a file URL which does not exist. When submitting the form, this shows up in the error log for apache. [Thu Feb 23 16:44:31 2012] [error] [client 208.74.121.102] File does not exist: /home/xxx/public_html/hello/greet, referer: http://example.com/Hello.html That's because there is no such file called greet in the hello folder. This is likely because you have not properly installed the application. = So we have written back to see if we can get exact steps on how you need to upload everything. But I can tell you that if you get hosting with Plesk on Linux with us, Plesk allows you to upload your WAR files and it creates the application for you for your site. 8) Tried to follow the steps outlined in http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideRPCDeployment Simple Example with Apache Tomcat Thanks for taking the time to read this, and any suggestions are welcome. Cheers, Maurice -- 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 Client Properties / Options / Variables
Hi! I am building a GWT app which must connect to a different server hosted in the same container. I need some place I can put the server address, ensuring it is accessible from the client code and also that it is easily configurable. What are my options for doing this in GWT, using as little HTTP overhead as possible? Apologies if I've missed anything obvious! Thanks, Maurice -- 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: CellTable selection issue
Ah, this was the problem. Thanks for your help! Maurice On Mar 10, 7:42 pm, Thomas Broyer t.bro...@gmail.com wrote: You're probably not using a NoSelectionModel. The SingleSelectionModel and MultiSelectionModel will remember the selection, so when you click on the cell again, the selection doesn't change, so no event is dispatched. -- 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.
CellTable selection issue
Hi! When I click a row on a CellTable, it opens a new view in my app, replacing the present one. However, when I return to the list of rows and reclick the same selection, the selection event does not fire. Is there a way around this? Thanks! Maurice -- 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 Connection to DB
Hey, You can use GWT RPC to handle server side logic like connecting to and interacting with a database. Be warned, if you choose to use Hibernate as an ORM, there is a steep learning curve. Hibernate may drive you crazy in the beginning, but once you understand all the unintuitive nuances, it rocks. Still GWT is not immediately well suited to work with Hibernate. Since everything on the client side of a GWT application is compiled into JavaScript, there are serialization problems when sending Hibernate objects to the client side. If you want to use Hibernate, I suggest also using Gilead to solve this problems. However, again since the client side is all compiled into JavaScript, no matter what you do, you will not be able to invoke any Hibernate related functionality on the client side. Remember, you can only reference classes on the client side that are implemented in GWT's JRE Emulation Reference: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html You're in for a very long haul if you choose to use Hibernate. It's very sophisticated, but you might want to start out with a simpler setup such as using JSON / PHP / MySQL. Instead of using GWT RPC, just make direct Asynchronous HTTP requests for server side PHP using GWT's RequestBuilder object. Your PHP files will connect to and interact with the database. PHP has numerous built in functions for interacting with a MySQL database. Hope that helps! -Lyden On Jan 19, 1:38 am, Saurav Sarkar saurav.sark...@gmail.com wrote: Hi All, I am new to GWT.I installed the google plug-in for Eclipse and also the Window builder. Now i want my application to connect to Database.Is there any GWT form widget kind of thing which will automatically take care of my form submissions to the database.Is something available in the Window Builder also ? Or else what is the best practice being used in GWT code while connecting to DB ?..I even had a look at the GWT-Hibernate libraries. Appreciate your response. Thanks and Regards, Saurav -- 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 Connection to DB
Hey Again, GWT is client side only. There are no GWT widget that have built in server side functionality. Check out Apache Struts, Apache Wicket, and Apache Click. Here's a great resource for comparing web frameworks. Scroll to the java table and note how little GWT provides. http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks -Lyden On Jan 19, 1:38 am, Saurav Sarkar saurav.sark...@gmail.com wrote: Hi All, I am new to GWT.I installed the google plug-in for Eclipse and also the Window builder. Now i want my application to connect to Database.Is there any GWT form widget kind of thing which will automatically take care of my form submissions to the database.Is something available in the Window Builder also ? Or else what is the best practice being used in GWT code while connecting to DB ?..I even had a look at the GWT-Hibernate libraries. Appreciate your response. Thanks and Regards, Saurav -- 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.
Deployment: Choosing a Servlet Container and a Comet Framework
Hi all, I'm in the final stages of developing business management software for the company I work for. My project uses GWT 2.0 (might upgrade to 2.1), Hibernate 3.6, MySQL 5.1.46, and Gilead for GWT/Hibernate Serialization. Now it's time for me to start thinking about deployment, and I was hoping to solicit some advice on which Servlet Container to use. I don't have any experience with setting up and configuring a servlet container. Also I will not be using App Engine. Their website and this app will reside on GoDaddy's servers. I'm under a time crunch, but I'm also still considering replacing some client/server polling with a Comet (Server/Push) framework. Any advice on which framework to use would be most appreciated. Debating between: 1. gwteventservice 2. gwt-comet 3. gwt-comet-streamhub 4. rocket-gwt Lastly this is probably a very stupid question, but is there a way to package my app up along with the servlet container from GWT's embedded Jetty Server, and just host that container rather than go through the process of setting up and configuring a container like Tomcat? I'm guessing there are a number of reasons why, even if I could, I wouldn't want to do this... All in all, whichever container is the quickest and easiest to setup and configure for a beginner is going to be my choice. Any thoughts? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable and Paging question
Great, thanks! Maurice On Oct 5, 2:43 pm, Thomas Broyer t.bro...@gmail.com wrote: On Oct 5, 12:28 pm, Maurice maurice.ocon...@gmail.com wrote: Hi, I have a CellTable with a SimplePager. When I click forward on the SimplePager widget, it flicks through the pages as you'd expect. However, when I get to the last page and continue hitting forward, blank pages keep loading. Which parameters should I change to stop this behaviour? It depends whether the rowCount of your data is exact (isRowCountExact of your CellTable) or not (inexact row count makes hasNextPage return true) and if your SimplePager isRangeLimited(). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CellTable and Paging question
Hi, I have a CellTable with a SimplePager. When I click forward on the SimplePager widget, it flicks through the pages as you'd expect. However, when I get to the last page and continue hitting forward, blank pages keep loading. Which parameters should I change to stop this behaviour? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Confusing Problem With Overlapping Widgets
Hi, I am currently working on a GUI using GWT and I am experiencing a problem with overlapping widgets. Hopefully the images I provided below will make it clear. First I have a SimplePanel, containing a VerticalPanel which has both a Button and a Label. It looks like this: http://goo.gl/j1Yi Next I click the Button. The ClickHandler code is: @Override public void onClick(ClickEvent event) { SimplePanel anotherSimplePanel = new SimplePanel(); SimplePanel.add(new Button(New Button)); simplePanel.setWidget(anotherSimplePanel); } But the outcome looks like this: http://goo.gl/ErHS Why is the new button overlapping the old stuff? Should it be replaced entirely? The widgets behind New Button cannot be clicked or used, it's like only the graphical parts remain. Any advice would be much appreciated! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.1 M3 SimplePager Question
Hi! I have a CellTable, SimplePager and ListDataProvider setup in my view constructor like so: public MyView { cellTable = makeCellTable(); simplePager = makeSimplePager(cellTable); initWidget(uiBinder.createAndBindUi(this)); listDataProvider.addDataDisplay(cellTable); } My list has 25 items in it, and simplePager is setup with these options: simplePager.setDisplay(cellTable); simplePager.setPageSize(10); simplePager.setRangeLimited(false); However, on initially loading the SimplePager widget in my browser for the first time I see: 1-10 of 10 instead of 1-10 of 25 (as you'd expect for a list with 25 items) The widget fixes itself when I click the forward arrow and then go back. Any ideas what could be wrong? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aligning VerticalPanel within DockLayoutPanel
Hi, I'm having a little difficulty aligning a VerticalPanel within a DockLayoutPanel using UIbinder. My solution looks like this: g:DockLayoutPanel unit=PCT g:west size=50 g:VerticalPanel width=100% g:Cell horizontalAlignment=ALIGN_RIGHT g:VerticalPanel !-- Align this to the right -- g:Label styleNameMyLabel/g:Label g:Label styleNameMyOtherLabel/g:Label /g:VerticalPanel /g:Cell /g:VerticalPanel /g:west ... Is this the best way to do this? Shouldn't CSS be able to align the VerticalPanel in question, without the need for an additional panel to contain it? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PagingScrollTable Auto Resize
That did the trick, many thanks! Maurice On Sep 10, 9:27 pm, daniel d.brelov...@googlemail.com wrote: query the container widget's size in a deferred command (http:// code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/ google/gwt/user/client/DeferredCommand.java?r=1061) so the browser has time to calculate the containers size before you ask for it On 10 Sep., 18:06, Maurice maurice.ocon...@gmail.com wrote: Hi, I understand that a PagingScrollTable must have its size specified in pixels. So far I have successfully created a PagingScrollTable and setup a handler to listen for browser resize events like so: Window.addResizeHandler(new ResizeHandler() {...}) When I resize the browser my PagingScrollTable is resized correctly. However, when it initially loads, it does not fill the widget containing it. When I query the container widget's size from its presenter I get 0. Has anyone got a solution for this? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
PagingScrollTable Auto Resize
Hi, I understand that a PagingScrollTable must have its size specified in pixels. So far I have successfully created a PagingScrollTable and setup a handler to listen for browser resize events like so: Window.addResizeHandler(new ResizeHandler() {...}) When I resize the browser my PagingScrollTable is resized correctly. However, when it initially loads, it does not fill the widget containing it. When I query the container widget's size from its presenter I get 0. Has anyone got a solution for this? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Removing / Adding nested LayoutPanels from DockLayoutPanel
Hi, I have a UIBinder that looks like this: g:DockLayoutPanel unit='EM' g:north size='12' g:HorizontalPanel g:LabelSome/g:Label g:LabelStuff/g:Label /g:HorizontalPanel /g:north g:center g:AContainerToHoldLayoutPanels ui:field=centerContainer my:MyDockLayoutPanel/ /g:AContainerToHoldLayoutPanels /g:center /g:DockLayoutPanel The idea is that from the java code I can call: centerContainer.clear(); centerContainer.add(myTotallyDifferentSplitLayoutPanel); However I cannot figure out what AContainerToHoldLayoutPanels should be. Any tips?! Is this even possible? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Resizing and DockLayoutPanel
Hi! I am working with a DockLayoutPanel which has a SimplePanel in the center. I have added a custom composite to the SimplePanel. When I resize the browser, the custom composite is not also resized. Does anyone know how I can fix this? Thanks! Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Buttons and .gwt-Button CSS
Hi! I have a global stylesheet for my project, with .gwt-Button, .gwt- Label etc. defined in it. All the .gwt-Label CSS settings are picked up in my UI, eg. I can add a margin and watch the Labels adjust accordingly with a refresh. However, .gwt-Button doesn't seem to allow adjustments to the margin property. If I add the same CSS in a UIBinder, it functions as expected. Does anyone know why this might be? Maurice -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reflection: Get Variable Name
Thanks for the reply. Generators seem like a lot to swallow. I'm trying to introspect a set of DTO's that I want to marshall to and from a database. I would like to be able to make use of the convention over configuration principle and have my DTO class names = table names in the database and have my Java field names = field names in the database. Then I was hoping to use reflection to dynamically build SQL queries based on the given DTO. Am I out of luck with GWT? Also, I don't have time for the Hibernate learning curve. Hibernate + GWT + Gilead + Maven + Spring = Will not meet deadline :) On Aug 5, 5:20 pm, Ian Petersen ispet...@gmail.com wrote: At run time, it's impossible. At compile time, you use the generator API. Back in the GWT 1.5 time frame it wasn't well documented but that may have changed since. Ian On Thu, Aug 5, 2010 at 1:42 PM, Maurice Nee lyden...@gmail.com wrote: How can I get a variable's name in GWT? How can I get a collection of declared variables in a class in GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Database and GWT
You have a couple of options: 1. Hibernate (or some other ORM tool) 2. JDBC 3. PHP and JSON Be prepared, the Hibernate learning curve is substantial. If you use Eclipse, you will need to install a slew of plugins for integrating Hibernate and whichever build tool you pefer, (Maven, Ant, etc.). Then you will need to address the Hibernate GWT Serialization issues. This is pretty much the best article on using the two together, but unfortunately it does not address how to setup your project. a href=http://code.google.com/webtoolkit/articles/ using_gwt_with_hibernate.htmlUsing GWT and Hibernate/a I have not used JDBC with GWT, but I think you will need a JRE on your server. PHP and JSON is the easiest to get up and running. There are a number of tutorials online on GWT + PHP + MySQL On Aug 5, 5:56 pm, Diego Venuzka dvenu...@gmail.com wrote: Hi! After some hours without sleep to solve my compilation problem, i stop in another problem. I'll need to insert data in database, and how GWT can help with this? Or i can insert using the tradicional method with Java? Thanks =) -- Diego Venuzka -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Database and GWT
Sorry for the broken link. Here you go http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html On Aug 5, 6:20 pm, Maurice Nee lyden...@gmail.com wrote: You have a couple of options: 1. Hibernate (or some other ORM tool) 2. JDBC 3. PHP and JSON Be prepared, the Hibernate learning curve is substantial. If you use Eclipse, you will need to install a slew of plugins for integrating Hibernate and whichever build tool you pefer, (Maven, Ant, etc.). Then you will need to address the Hibernate GWT Serialization issues. This is pretty much the best article on using the two together, but unfortunately it does not address how to setup your project. a href=http://code.google.com/webtoolkit/articles/ using_gwt_with_hibernate.htmlUsing GWT and Hibernate/a I have not used JDBC with GWT, but I think you will need a JRE on your server. PHP and JSON is the easiest to get up and running. There are a number of tutorials online on GWT + PHP + MySQL On Aug 5, 5:56 pm, Diego Venuzka dvenu...@gmail.com wrote: Hi! After some hours without sleep to solve my compilation problem, i stop in another problem. I'll need to insert data in database, and how GWT can help with this? Or i can insert using the tradicional method with Java? Thanks =) -- Diego Venuzka -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reflection: Get Variable Name
Also, it seems like people have made GWT Reflection Frameworks. I found one named GWT Reflection. Then there's gwt-ent or SmartGWT I guess. Any thoughts on using one of these routes? On Aug 5, 6:06 pm, Maurice Nee lyden...@gmail.com wrote: Thanks for the reply. Generators seem like a lot to swallow. I'm trying to introspect a set of DTO's that I want to marshall to and from a database. I would like to be able to make use of the convention over configuration principle and have my DTO class names = table names in the database and have my Java field names = field names in the database. Then I was hoping to use reflection to dynamically build SQL queries based on the given DTO. Am I out of luck with GWT? Also, I don't have time for the Hibernate learning curve. Hibernate + GWT + Gilead + Maven + Spring = Will not meet deadline :) On Aug 5, 5:20 pm, Ian Petersen ispet...@gmail.com wrote: At run time, it's impossible. At compile time, you use the generator API. Back in the GWT 1.5 time frame it wasn't well documented but that may have changed since. Ian On Thu, Aug 5, 2010 at 1:42 PM, Maurice Nee lyden...@gmail.com wrote: How can I get a variable's name in GWT? How can I get a collection of declared variables in a class in GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Mysql Connector/J
Can someone explain to me how to get JDBC to connect to MySQL in my GWT project. Where do I put the mysql-connector-java jar? In war/WEB- INF/lib? What connection url would I have to supply to the DriverManager to connect to the database in development mode using the embedded jetty server? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hibernate Project Structure
Thanks Yau, That would be great. Any info you could give me on how you setup your project would be great. Are you using Eclipse? Also, is it the correct procedure to place your Hibernate jars and dependencies in the war/WEB- INF/lib directory and then add them to the build path? Thanks for your help! On May 26, 9:34 pm, Yau kvle...@gmail.com wrote: I haven't tried Maven but I'm using GWT + Hibernate3 + Gilead. It's very difficult to setup Gilead as the example provided by GWT is very very outdated and no longer compatible. It took me 2 days to figure out how to set it up with the correct jar, import path and syntax. If you're still interested in Gilead, I can provide some info. On May 25, 9:38 pm, Maurice Nee lyden...@gmail.com wrote: Thanks Gabriel, I've read differing opinions on whether client and server code should be split into two projects. At this point, I really don't care which about which approach I use as long as I get something up and running that is error free. Could someone explain to me a specific procedure for setting up a GWT + Maven2 + Hibernate3 projectin Eclipse? For instance, if I were to use only oneproject, do I create a new GWTprojectwith the GWT Eclipse plugin and then modify its directorystructureto conform to Maven's standard directory layout? Or, do I create a Mavenprojectwith the m2eclipse plugin and then enable GWT in thatproject? Frankly, I'm not sure where the best place to start is. This is my firstproject using multiple technologies together, and although I feel like I understand a good deal of how these technologies work individually, I don't understand how to make them work together. Any help would be most appreciated. On May 22, 10:07 am, Gabriel guz...@gmail.com wrote: Hi, Do you have a reason for splitting the application into two projects? If not, there is nothing preventing you from using a singleproject for both client and server. If you do need to have two projects, you can use two (server and client) or three (server, client and common) modules under one mavenprojectand define the dependencies among them (if you hadn't used Maven, you could have used the IDE to define the dependencies between projects). I suggest you read the documentation here:http://code.google.com/eclipse/docs/users_guide.html On May 21, 6:20 am, Maurice Nee lyden...@gmail.com wrote: Hi, This is my first ever forum post. I really need some help with understanding how to setup aGWT2.0 Hibernate3project. I understand theGWTRPC mechanism and the problems with serializingHibernate POJOs. I would prefer to use DTO's rather than Gilead or Dozer. So far, I have aHibernateProject built with Maven2 in Eclipse using the m2eclipse plugin and the HibernateTools plugin for Eclipse. I also have aGWT2.0projectbuilt with theGWTplugin for Eclipse. I'm using MySql as the RDBMS. What I don't understand is how to setup, configure, and deploy the two projects in such a way that they can communicate with each other. Let's say with the above setup, I'm trying to persist a Person object that has only an id, and a name as fields. In myHibernateproject, I would create a Person.hbm.xmlHibernatemapping document, and then generate the correspondingHibernateJava POJO and MySql table. Then, in myGWTproject, I would create a serializable PersonDTO.java class that can be sent 'across the wire' to and from the server viaGWTRPC. Then, for simplicity's sake, let's say that in the client package of myGWTproject I create a CreatePersonService.java interface and a CreatePersonServiceAsync.java interface with one method, void createPerson(). I would then need a CreatePersonServiceImp.java class on the server side that implements createPerson(). Fine, but here's where I get confused. If the createPersonServiceImp.java class is going to transform a PersonDTO.java class into itsHibernatePOJO equivalent, then it needs to utilize classes from both myGWTEclipseprojectandHibernate Eclipseproject. So whichprojectdo I put it in? It needs to have access toGWTclasses like PersonDTO, AsyncCallback and other RPC classes. It also needs access toHibernateclasses like SessionFactory, Transaction, etc. So it needs to have access to myGWT jars andHibernatejars which are in two separate projects. How do do I link them so that CreatePersonServiceImp.java has access to all the libraries it needs. Finally, how do I correctly merge both of these projects into one WAR file for deploying onto a server? Or am I way off track? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com
Re: GWT Hibernate Project Structure
Thanks Gabriel, I've read differing opinions on whether client and server code should be split into two projects. At this point, I really don't care which about which approach I use as long as I get something up and running that is error free. Could someone explain to me a specific procedure for setting up a GWT + Maven2 + Hibernate3 project in Eclipse? For instance, if I were to use only one project, do I create a new GWT project with the GWT Eclipse plugin and then modify its directory structure to conform to Maven's standard directory layout? Or, do I create a Maven project with the m2eclipse plugin and then enable GWT in that project? Frankly, I'm not sure where the best place to start is. This is my first project using multiple technologies together, and although I feel like I understand a good deal of how these technologies work individually, I don't understand how to make them work together. Any help would be most appreciated. On May 22, 10:07 am, Gabriel guz...@gmail.com wrote: Hi, Do you have a reason for splitting the application into two projects? If not, there is nothing preventing you from using a single project for both client and server. If you do need to have two projects, you can use two (server and client) or three (server, client and common) modules under one maven project and define the dependencies among them (if you hadn't used Maven, you could have used the IDE to define the dependencies between projects). I suggest you read the documentation here:http://code.google.com/eclipse/docs/users_guide.html On May 21, 6:20 am, Maurice Nee lyden...@gmail.com wrote: Hi, This is my first ever forum post. I really need some help with understanding how to setup aGWT2.0 Hibernate3 project. I understand theGWTRPC mechanism and the problems with serializingHibernate POJOs. I would prefer to use DTO's rather than Gilead or Dozer. So far, I have aHibernateProject built with Maven2 in Eclipse using the m2eclipse plugin and the HibernateTools plugin for Eclipse. I also have aGWT2.0 project built with theGWTplugin for Eclipse. I'm using MySql as the RDBMS. What I don't understand is how to setup, configure, and deploy the two projects in such a way that they can communicate with each other. Let's say with the above setup, I'm trying to persist a Person object that has only an id, and a name as fields. In myHibernateproject, I would create a Person.hbm.xmlHibernatemapping document, and then generate the correspondingHibernateJava POJO and MySql table. Then, in myGWTproject, I would create a serializable PersonDTO.java class that can be sent 'across the wire' to and from the server viaGWTRPC. Then, for simplicity's sake, let's say that in the client package of myGWTproject I create a CreatePersonService.java interface and a CreatePersonServiceAsync.java interface with one method, void createPerson(). I would then need a CreatePersonServiceImp.java class on the server side that implements createPerson(). Fine, but here's where I get confused. If the createPersonServiceImp.java class is going to transform a PersonDTO.java class into itsHibernatePOJO equivalent, then it needs to utilize classes from both myGWTEclipse project andHibernate Eclipse project. So which project do I put it in? It needs to have access toGWTclasses like PersonDTO, AsyncCallback and other RPC classes. It also needs access toHibernateclasses like SessionFactory, Transaction, etc. So it needs to have access to myGWT jars andHibernatejars which are in two separate projects. How do do I link them so that CreatePersonServiceImp.java has access to all the libraries it needs. Finally, how do I correctly merge both of these projects into one WAR file for deploying onto a server? Or am I way off track? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Hibernate Project Structure
Hi, This is my first ever forum post. I really need some help with understanding how to setup a GWT 2.0 Hibernate3 project. I understand the GWT RPC mechanism and the problems with serializing Hibernate POJOs. I would prefer to use DTO's rather than Gilead or Dozer. So far, I have a Hibernate Project built with Maven2 in Eclipse using the m2eclipse plugin and the HibernateTools plugin for Eclipse. I also have a GWT 2.0 project built with the GWT plugin for Eclipse. I'm using MySql as the RDBMS. What I don't understand is how to setup, configure, and deploy the two projects in such a way that they can communicate with each other. Let's say with the above setup, I'm trying to persist a Person object that has only an id, and a name as fields. In my Hibernate project, I would create a Person.hbm.xml Hibernate mapping document, and then generate the corresponding Hibernate Java POJO and MySql table. Then, in my GWT project, I would create a serializable PersonDTO.java class that can be sent 'across the wire' to and from the server via GWT RPC. Then, for simplicity's sake, let's say that in the client package of my GWT project I create a CreatePersonService.java interface and a CreatePersonServiceAsync.java interface with one method, void createPerson(). I would then need a CreatePersonServiceImp.java class on the server side that implements createPerson(). Fine, but here's where I get confused. If the createPersonServiceImp.java class is going to transform a PersonDTO.java class into its Hibernate POJO equivalent, then it needs to utilize classes from both my GWT Eclipse project and Hibernate Eclipse project. So which project do I put it in? It needs to have access to GWT classes like PersonDTO, AsyncCallback and other RPC classes. It also needs access to Hibernate classes like SessionFactory, Transaction, etc. So it needs to have access to my GWT jars and Hibernate jars which are in two separate projects. How do do I link them so that CreatePersonServiceImp.java has access to all the libraries it needs. Finally, how do I correctly merge both of these projects into one WAR file for deploying onto a server? Or am I way off track? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to resize a DockLayoutPanel pane using gwt 2.0 and uibinder
Hi, I faced the same problem and I solved it by creating the following utility class: import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.user.client.ui.DockLayoutPanel; import com.google.gwt.user.client.ui.Widget; public class DockLayoutPanelUtils extends DockLayoutPanel { private DockLayoutPanelUtils() { super(Unit.PX); } public static double getWidgetSize(Widget widget) { return ((LayoutData) widget.getLayoutData()).size; } public static void setWidgetSize(Widget widget, double size) { ((LayoutData) widget.getLayoutData()).size = size; } } Because it extends the DockLayoutPanel it has access to the protected LayoutData object. With that object you can change the size (width or height depending on the widget) of the widget. So you need to provide the widget that was set with the addNorth, addSouth, addWest or addEast method or the widget that you defined in the uibinding xml file between the north, south, west or east element. Don't forget to execute the forceLayout() method on the DockLayoutPanel after changing the size of a widget. Regards, Maurice On Dec 11, 6:07 pm, morte...@gmail.com morte...@gmail.com wrote: I just tried this (in 2.0GA), and I get errors in the generated code: ui.xml looks something like this: trinity:ResizableDockLayoutPanel ui:field=rootPanel unit=PX trinity:south size=0 trinity:ContentPanel ui:field=bottomPanel/trinity:ContentPanel /trinity:south ... it complains about a type mismatch, when looking at the generated code it is obvious why but not how to fix it: public Widget createAndBindUi(final Trinity owner) { bam.trinity.client.Trinity_BinderImpl_GenBundle clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay = (bam.trinity.client.Trinity_BinderImpl_GenBundle) GWT.create (bam.trinity.client.Trinity_BinderImpl_GenBundle.class); bam.trinity.client.Trinity_BinderImpl_GenCss_style style = clientBundleFieldNameUnlikelyToCollideWithUserSpecifiedFieldOkay.style (); bam.trinity.client.ui.ContentPanel bottomPanel = (bam.trinity.client.ui.ContentPanel) GWT.create (bam.trinity.client.ui.ContentPanel.class); com.google.gwt.user.client.ui.HTML left = (com.google.gwt.user.client.ui.HTML) GWT.create (com.google.gwt.user.client.ui.HTML.class); com.google.gwt.user.client.ui.HTML right = (com.google.gwt.user.client.ui.HTML) GWT.create (com.google.gwt.user.client.ui.HTML.class); com.google.gwt.dom.client.SpanElement headerspan = null; java.lang.String domId0 = com.google.gwt.dom.client.Document.get ().createUniqueId(); com.google.gwt.user.client.ui.HTML f_HTML1 = (com.google.gwt.user.client.ui.HTML) GWT.create (com.google.gwt.user.client.ui.HTML.class); bam.trinity.client.ui.ContentPanel content = (bam.trinity.client.ui.ContentPanel) GWT.create (bam.trinity.client.ui.ContentPanel.class); bam.trinity.client.ui.ResizableDockLayoutPanel rootPanel = new com.google.gwt.user.client.ui.DockLayoutPanel (com.google.gwt.dom.client.Style.Unit.PX); On the last line here, the ResizableDockLayoutPanel is for some reason set to new DockLayoutPanel and not ResizableDockLayoutPanel.. Maybe I did something dumb, but I can't really find it :) On Nov 7, 3:08 am, jd jdpatter...@gmail.com wrote: Here is a subclass I made to expose some functionality that might help you class ResizableDockLayoutPanel extendsDockLayoutPanel { public ResizableDockLayoutPanel(Unit unit) { super(unit); } public double getWidgetSize(Widget widget) { return ((LayoutData) widget.getLayoutData()).size; } public void setWidgetSize(Widget widget, double size) { ((LayoutData) widget.getLayoutData()).size = size; } @Override public void insert(Widget widget, Direction direction, double size, Widget before) { super.insert(widget, direction, size, before); } } On Nov 6, 8:00 pm, gkb gkb...@gmail.com wrote: Hello all. I have a question concerning how to access/modify the size of a DockLayoutPanel'swidget outside of the *.ui.xml file in the java code. For instance, say I have aDockLayoutPanelwith a West widget and a Center widget as follows: {{{ g:DockLayoutPanelunit='EM' g:west size='20' layouts:WestWidget ui:field='westWidget' / /g:west g:center layouts:CenterWidget ui:field='centerWidget' / /g:center /g:DockLayoutPanel}}} Is it possible to dynamically change the width of the westWidget somewhere in the associated java code, or can it only by modified