Re: Shared CSS
Thanks for all the great suggestions. The shared library has a gwt.xml file but is not an EntryPoint. Can I just pick a class in the library and have it implement EntryPoint to get the shared CSS loaded? To answer the other follow-up questions, I am deploying each app as a separate war file. All of the styles are set through code, so the class names can be obfuscated. John On Jul 8, 6:25 pm, lineman78 linema...@gmail.com wrote: There are many possible solutions for the generic problem you face. You will need to be more specific about your final deployment architecture if you would like a more specific answer of which is best. Are these GWT apps all going to be deployed within the same WAR? EAR? Separate EARs? Is the only thing referencing these classes GWT objects, or do the class names need to remain unobfuscated? If you are willing to go through using a CssResource and obfuscating the class names I would suggest creating a common module and inherit the module whenever you need to use the classes. In the entry point for the common module you would inject the style. If the css must remain unobfuscated, it depends on your final deployment. If they are in different WARs, then I would again create a common module, but add a public path to the module so that if you inherit the module it will write the script to it: module inherits name=com.google.gwt.user.User / source path=client/ public path=www/ stylesheet src=Library.css/ entry-point class=com.ams.common.client.gwt.client.CommonEntryPoint/ /module Put the file Library.css into com/ams/common/client/gwt/www If they are all in 1 WAR, the best method would be to manually copy the file to the WAR root and add the link to your html files. On Jul 7, 10:27 am, Hethcox heth...@gmail.com wrote: Hello, I have a GUI library that is used by several GWT apps. I would like the widgets in the library to use a standard sets of CSS classes from the library so that they don't have to be copied and maintained in the apps that use the library. The library is deployed as a jar currently, but that can change. I've read a lot of posts on this topic, but none of them seems to do the trick. My target platform is JBoss and the closest solution I've found so far is to put the library CSS file in ROOT.war/css at deploy- time. Is there a build-time trick to get the GWT apps to deploy the CSS file when it cross-compiles the library widgets? Cheers, John -- 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.
Shared CSS
Hello, I have a GUI library that is used by several GWT apps. I would like the widgets in the library to use a standard sets of CSS classes from the library so that they don't have to be copied and maintained in the apps that use the library. The library is deployed as a jar currently, but that can change. I've read a lot of posts on this topic, but none of them seems to do the trick. My target platform is JBoss and the closest solution I've found so far is to put the library CSS file in ROOT.war/css at deploy- time. Is there a build-time trick to get the GWT apps to deploy the CSS file when it cross-compiles the library widgets? Cheers, John -- 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 Incubator update for GWT 2.0?
I was out of town for a few weeks and just had a chance to look at this. Regarding the other post (4073), I do not have anything in the BODY of my HTML other then the hook to GWT, so I don't think that's my problem. Also, I tried the Dec 09 drop of the incubator to no avail. Though it sounds like the problem is in the implementation of AbolutePanel, not GlassPanel. Anyone gotten past this issue? Best, John On Jan 8, 10:17 am, Paul Robinson ukcue...@gmail.com wrote: Hethcox wrote: In my app GlassPanel is no longer on top of all the widgets. It's on top of some, but not others. Could be this:http://code.google.com/p/google-web-toolkit/issues/detail?id=4073 If so, read the comments because there are workarounds in there (and star the issue). Paul -- 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 Incubator update for GWT 2.0?
In my app GlassPanel is no longer on top of all the widgets. It's on top of some, but not others. On Dec 27 2009, 11:43 pm, Chris Ramsdale cramsd...@google.com wrote: We're currently working on this and will send out an update shortly. In the meantime, any feedback regarding issues that you are are experiencing with the GWT Incubator and GWT 2.0 are greatly appreciated. - Chris On Fri, Dec 11, 2009 at 1:48 PM, Timmy G t...@paloalto.com wrote: Anyone know when we can expect to see the incubator project get refreshed for GWT 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.0 Eclipse Plugin Not Working
It turns out that my classpath was too long. I was in the habit of just adding all of the JBoss libraries to my path. This was ok under GWT 1.7.1, but I guess the way GWT 2.0 launches Jetty causes a problem. I refined the classpath and things are working well. On Jan 7, 4:29 am, Sorinel C scristescu...@hotmail.com wrote: Why don't you check herehttp://ui-programming.blogspot.com/2009/12/update-your-application-to... where you have the most important steps of upgrading a GWT application to version 2.0 ? I think it will help you... Cheers! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.0 Eclipse Plugin Not Working
Hi, I'm attempting to get my project working in GWT 2.0 under Eclipse 3.5 on Windows XP. The project was previously running under 1.7. Everything is working except jetty under Eclipse. (I separately compile and deploy the app to JBoss and it works fine). When I attempt to debug the app under Eclipse (Debug As-Web Application) I get nothing. It just sits there. Sometimes some text appears at startup in the console, but it disappears immediately. There is no process bound to the relevant port so I don't think jetty is starting. I assume I'm supposed to get the same console that appears when you run DevMode under java. Is that correct? Any thoughts? Cheers, John -- 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 2.0 Eclipse Plugin Not Working
Thanks Keith, Here's the debug command line: C:\Program Files\Java\jdk1.6.0_16\bin\javaw.exe - agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:4615 - Xmx512m -Dfile.encoding=Cp1252 -classpath C:\XCAFE\CDM550Frontend \src;C:\XCAFE\CDM550Frontend\war\WEB-INF\classes; [skip a bit, brother] C:\Software Tools\gwt-2.0.0\gwt-dev.jar com.google.gwt.dev.DevMode -war C:\XCAFE\CDM550Frontend\war -logLevel INFO -remoteUI 4614:71449176286092 -port com.global.xcafe.cdm550.CDM550 On Jan 6, 4:02 pm, Keith Platfoot kplatf...@google.com wrote: Hi John, When you try to debug the app in Eclipse, what is the debug process command line? You can find this by right-clicking the java process in the Debug view in the Debug perspective, and selecting Properties. Also, there might be something useful in your workspace error log (Eclipse workspace/.metadata/.log), so if you can send that it may be helpful in diagnosing the problem. To answer your last question, no, the Google Eclipse Plugin includes an embedded Development Mode log view that is used instead of the standard Java console you'd see if you launched dev mode from the command line. The embedded view should appear automatically when you debug a Web App project. However, since you mentioned Jetty does not appear to be starting, I suspect the problem is not with the view. Let's start by inspecting your debug process args and error log, and go from there. Keith On Wed, Jan 6, 2010 at 3:36 PM, Hethcox heth...@gmail.com wrote: FWIW I created a new project with 2.0 and it works fine. On Jan 6, 2:16 pm, Hethcox heth...@gmail.com wrote: Hi, I'm attempting to get my project working in GWT 2.0 under Eclipse 3.5 on Windows XP. The project was previously running under 1.7. Everything is working except jetty under Eclipse. (I separately compile and deploy the app to JBoss and it works fine). When I attempt to debug the app under Eclipse (Debug As-Web Application) I get nothing. It just sits there. Sometimes some text appears at startup in the console, but it disappears immediately. There is no process bound to the relevant port so I don't think jetty is starting. I assume I'm supposed to get the same console that appears when you run DevMode under java. Is that correct? Any thoughts? Cheers, John -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: AbsolutePanel and Firefox
That fixed it. Thanks! (If that's the desired behavior it should behave that way on all browsers. grumble grumble, grumble). On Sep 17, 3:59 pm, Ian Bambury ianbamb...@gmail.com wrote: Try giving your absolute panel a size. Ian http://examples.roughian.com 2009/9/17 Hethcox heth...@gmail.com The code is all over the place. However, this snippet: public final void onModuleLoad() { AbsolutePanel aPanel = new AbsolutePanel(); aPanel.add( new CheckBox( Pick Me!!! ), 10, 10 ); RootPanel.get().add(aPanel); } doesn't work. If it is a CSS issue, do you have suggestions for diagnosing it? John On Sep 17, 2:23 pm, Ian Bambury ianbamb...@gmail.com wrote: I would guess that this is a css problem (based on the fact that I've had no problem adding absolute panels to the root panel). Do you have a bit of example code? Ian http://examples.roughian.com 2009/9/17 Hethcox heth...@gmail.com Well into our development cycle we discovered the our GWT 1.6 application no longer worked in Firefox. (Versions 3.5.2 and 3.5.3 were the only ones we tried). After some tinkering I found that placing an AbsolutePanel in the RootPanel.get().add(aPanel); call was the problem. Using a DockPanel instead of the AbsolutePanel fixed the issue. (Surprisingly, putting the existing AbsolutePanel in the center of the DockPanel did not help). The app worked great in IE without alteration. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
AbsolutePanel and Firefox
Well into our development cycle we discovered the our GWT 1.6 application no longer worked in Firefox. (Versions 3.5.2 and 3.5.3 were the only ones we tried). After some tinkering I found that placing an AbsolutePanel in the RootPanel.get().add(aPanel); call was the problem. Using a DockPanel instead of the AbsolutePanel fixed the issue. (Surprisingly, putting the existing AbsolutePanel in the center of the DockPanel did not help). The app worked great in IE without alteration. --~--~-~--~~~---~--~~ 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: AbsolutePanel and Firefox
The code is all over the place. However, this snippet: public final void onModuleLoad() { AbsolutePanel aPanel = new AbsolutePanel(); aPanel.add( new CheckBox( Pick Me!!! ), 10, 10 ); RootPanel.get().add(aPanel); } doesn't work. If it is a CSS issue, do you have suggestions for diagnosing it? John On Sep 17, 2:23 pm, Ian Bambury ianbamb...@gmail.com wrote: I would guess that this is a css problem (based on the fact that I've had no problem adding absolute panels to the root panel). Do you have a bit of example code? Ian http://examples.roughian.com 2009/9/17 Hethcox heth...@gmail.com Well into our development cycle we discovered the our GWT 1.6 application no longer worked in Firefox. (Versions 3.5.2 and 3.5.3 were the only ones we tried). After some tinkering I found that placing an AbsolutePanel in the RootPanel.get().add(aPanel); call was the problem. Using a DockPanel instead of the AbsolutePanel fixed the issue. (Surprisingly, putting the existing AbsolutePanel in the center of the DockPanel did not help). The app worked great in IE without alteration. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---