Re: Referencing deprecated class warning stack
Hi, I've got the same type of exception with same environment. Is there something that we missed? Regards. KT On Jan 2, 7:54 pm, leslie web...@comcast.net wrote: Eclipse 3.5 Galileo Java EE Cocoa Java 1.5.0_13 Mac OS X 10.5.7 GWT 2.0 Hello, I'm seeing a series of warning messages in my console when I attempt to compile my project. Posted below: Scanning for additional dependencies: file:/Users/leslie/Documents/ projects/myprojectfolder/galileoWorkspace/myproject/src/com/foo/ projectgwt/controller/AddAddressListener.java Adding '2' new generated units Validating newly compiled units [WARN] Warnings in 'generated:// 27507DF474CDC042922DAFFEA239ABF3/com/foo/projectgwt/client/ AddressService_TypeSerializer.java' [WARN] Line 81: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection' [WARN] Line 86: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection' [WARN] Line 91: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection' [WARN] Line 96: Referencing deprecated class 'com.google.gwt.user.client.ui.FormHandlerCollection' [WARN] Line 101: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection' [WARN] Line 106: Referencing deprecated class 'com.google.gwt.user.client.ui.LoadListenerCollection' [WARN] Line 111: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseListenerCollection' [WARN] Line 116: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' [WARN] Line 121: Referencing deprecated class 'com.google.gwt.user.client.ui.PopupListenerCollection' [WARN] Line 126: Referencing deprecated class 'com.google.gwt.user.client.ui.ScrollListenerCollection' [WARN] Line 131: Referencing deprecated class 'com.google.gwt.user.client.ui.TabListenerCollection' [WARN] Line 136: Referencing deprecated class 'com.google.gwt.user.client.ui.TableListenerCollection' [WARN] Line 141: Referencing deprecated class 'com.google.gwt.user.client.ui.TreeListenerCollection' See snapshot: /tmp/ AddressService_TypeSerializer49102.java I'm not referencing any of these classes in my code. I've posted elsewhere in another related thread which involved the assignment of collections. And in that case the discussion referred to the RPC calls returning objects of Collection types. But in this class, that isn't happening. This class, AddAddressListener, does not use or involve any types of collection classes. And furthermore, I didn't notice any of these messages in my code until I made assignment changes in my GUI code, in classes which may use this listener. (but then I tried to reverse these changes and yet still the issue remains - so now I have no idea..) But why is the warning message targeting this class? This is just part of the stack that appears in the console. There are other classes referenced there too and the warnings are very similar, maybe identical. I'm focusing on one for brevity. I guess my question is - What does this warning stack mean and how should I resolve it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
help in creating menu using popuppanel or dialogbox
Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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: request builder
?? On Jan 7, 7:30 pm, ben fenster fenster@gmail.com wrote: thats what i am doing and it works great in hosted but not in compile mode do you have an idea way ?? On Jan 7, 3:55 pm, Jamie jamiesharbor-sou...@yahoo.com wrote: You should then probably install something like TamperData or Firebug for firefox, and see if your request is actually being sent from the browser. Or you could use wireshark, but that's not as easy to read. As well, tamperdata or wireshark will let you see the data in the responses. BTW, if you are running a separate PHP web server, firefox considers a different port to be cross-site. You can work around that by deploying your compiled javascript via the PHP server, or you can use (eg) Apache to do proxy forwarding so the browser thinks it is all one site. On Jan 7, 5:51 am, ben fenster fenster@gmail.com wrote: ??? On Jan 7, 11:56 am, ben fenster fenster@gmail.com wrote: its not cross site and it works ok in hosted more over it doesnt fail in compile but keep getting empty responses and in hosted they are ok i cant understand why On Jan 7, 10:47 am, olivier nouguier olivier.nougu...@gmail.com wrote: SOP ? or some GWT SOP All I known is that when using GWT-RPC the standard policy doesn't want cross webapp access! HIH On Thu, Jan 7, 2010 at 9:39 AM, ben fenster fenster@gmail.com wrote: does any one know why would a request sent using equest builder works in hosted mode but dont work in compile mode i am using it to access php scripts running on the same xamp 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
better place for image
Hi, I can not decide where put some image in a application, image like logo, icon for button, ecc. Is better put it in css or use the ImageBundle and AbstractImagePrototype? I prefer the solution that make the load of the page faster. Thanks! Bye Alessandro -- 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: help in creating menu using popuppanel or dialogbox
Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks Política de Protección de Datos de Carácter Personal En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: DIGIWORKS SPAIN, S.L. AVDA SAN RAFAEL, 11, LOCAL 2 03580 ALFAZ DEL PI ALICANTE También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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: addWindowClosingHandler firing when frame loads in IE
On Jan 8, 8:54 am, jd jdpatter...@gmail.com wrote: I have found that I could avoid the problem by using Button's (or probably other widgets) instead of Anchor widgets for my internal navigation. Perhaps it is due to the default href javascript:; ? Maybe IE7/8 does not recognise this as an internal link. Use Hyperlink or InlineHyperlink widgets for internal navigation (unless you also want ClickHandlers, in which case Anchor is fine, calling History.newItem() in a ClickHandler, but do not forget to ClickEvent#preventDefault() // this is more or less what Hyperlink/InlineHyperlink widgets do). -- 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: Compilation error
Looks like I have finally solved the problem. The case was something like this. I am using ExtGWT which has a class TreePanel with an inner class TreeNode, which looks like below: public class TreePanelM extends ModelData { - class TreeNode { --- private M data; } -- } And, since the TreeNode class is public inside TreePanel, I was directly using TreeNode class in my code. I would do: import ..TrePanel.TreeNode; - -- TreeNode node = ; As you can see, TreeNode internally uses the type M, which is not defined in the above kind of usage. And GWT compiler gets confused when it sees this. I solved this problem by removing the import statement as accessing the TreeNode only in the context of the outer class(TreePanel) like this: TreePanelMyModeldata.TreeNode node = x; This solved the issue. -- 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: help in creating menu using popuppanel or dialogbox
Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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: Overriding DecoratedTabPanel CSS does not seem to change the look of the Tabs
Thanks for the tip, but I'm not quite ready to switch to standards mode (required for TabLayoutPanel) as it will involve a rework of some of the other elements on my website. I found that I am able to apply custom stylings if I first specifically remove the defaults : tp.getDeckPanel().removeStyleName(gwt-TabPanelBottom); tp.getTabBar().removeStyleName(gwt-DecoratedTabBar ); Not sure why this is necessary, but seems to do the trick. On Dec 28 2009, 12:45 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: Use the new TablayoutPanel it is easer to customize it. -- 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: Problem: certain types of J2EE authentication with GWT 2.0 and Eclipse 3.5 plugin no longer work
Hi Ian, It seems that the Jetty version could have changed and also its API. Try with this little change in the syntax of the configuration (we guessed it looking at the jetty classes API and it worked for us): cheers, Alberto ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Set name=UserRealm New class=org.mortbay.jetty.security.HashUserRealm Set name=nameMyRealm/Set Set name=configWEB-INF/dev_realm.properties/Set /New /Set /Get /Configure On Jan 6, 3:32 pm, Ian.G iandgrat...@googlemail.com wrote: Hi Folks - my first post on the discussion group so big thanks to everyone involved in this great project. We've recently moved up to GWT 2.0 from GWT 1.7 and everything has gone quite smoothly so far. One of the issues I have with the application I'm developing is that it needs to be secured by J2EE security and correctly manage session timeout etc. I know there are lots of hazy bits of information about how/how not to do this along with potential problems the developer faces with the GWT- RPC interface calls from the client after the session has expired etc. - but I think in GWT 1.7 we had a 99% working solution to this that wasn't anything whacky like using client-side timers to keep the session alive - I just need to continue on and complete it now we've moved over to GWT 2.0 I'll describe the problem and to take away the need to understand anything specific to my app so this can all be re-produced from a std wizard-generated GWT project in ecliipse 3.5 (i.e. the Greeting sample that gets built when you start a new project). This sample wont gracefully manage session expiry with GWT-RPC – but it will show a problem that I think I've found with the GWT 2.0 eclipse plugin and J2EE authentication. This is the start of how I previously made GWT (before version 2.0) use J2EE security - and get realm-based security working in the Eclipse DEV environment (and thus whatever container we deploy into for production systems from the app's .war file). in the applications WEB-INF directory I have a jetty-web.xml that contains the following: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Call name=setUserRealm Arg !-- Hash File-based Security Realm -- New class=org.mortbay.jetty.security.HashUserRealm Set name=nameSecurityTestRealm/Set Set name=configSystemProperty name=jetty.home default=.//WEB-INF/etc/realm.properties/Set Set name=RefreshInterval5/Set /New /Arg /Call /Get /Configure This is obviously used to inject a security realm into the JeTTY instance that runs within the Eclipse plugin for GWT. This has always worked perfectly on GWT 1.7 (using the old external hosted mode runtime). Then down in WEB-INF/etc/realm.properties we just add our users, and role mappings as per the JeTTY documentation - for example: username: password,testrole At this point when I start the application I know the embedded JeTTY server within the GWT plugin for eclipse is picking up the jetty- web.xml file as it complains if the realm file can't be found if I don't create it etc. Obviously the next thing that needs to be done is plug in all the J2EE security and session management stuff in the applications main web.xml. So based upon a wizard generated project you would end up with something like: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app descriptionA sample GWT Application that makes use of J2EE security and sessions/description !-- Servlets -- servlet servlet-namegreetServlet/servlet-name servlet- classuk.co.somecompany.securitytest.server.GreetingServiceImpl/ servlet-class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/securitytest/greet/url-pattern /servlet-mapping !--Session Management -- session-config session-timeout10/session-timeout /session-config !-- Default page to serve -- welcome-file-list welcome-fileSecurityTest.html/welcome-file /welcome-file-list !-- Application Security -- security-constraint
Re: help in creating menu using popuppanel or dialogbox
Finally got this link, http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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: help in creating menu using popuppanel or dialogbox
Well it's actually very simple. Create one TabPanel and on mouse over event (over the tab) display menu using absolute positioning starting right under the selected tabbar. On Fri, Jan 8, 2010 at 11:55 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Finally got this link, http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: request builder
Please don't take this the wrong way. I really am trying to help... If you read this: http://catb.org/~esr/faqs/smart-questions.html then you may understand why you've had a poor response and perhaps get some ideas about how to elicit a better response. For example, Jamie tried to help, but it's not clear from what you said whether you've looked at what is actually being sent over the network to the server using something like firebug or TamperData. You don't say what error you get, if any. You don't say whether and how the network traffic is different in dev and production mode. Unless you provide more details, and show that you're actually trying to work out what's happening, nobody else will either. HTH Paul ben fenster wrote: ?? On Jan 7, 7:30 pm, ben fenster fenster@gmail.com wrote: thats what i am doing and it works great in hosted but not in compile mode do you have an idea way ?? On Jan 7, 3:55 pm, Jamie jamiesharbor-sou...@yahoo.com wrote: You should then probably install something like TamperData or Firebug for firefox, and see if your request is actually being sent from the browser. Or you could use wireshark, but that's not as easy to read. As well, tamperdata or wireshark will let you see the data in the responses. BTW, if you are running a separate PHP web server, firefox considers a different port to be cross-site. You can work around that by deploying your compiled javascript via the PHP server, or you can use (eg) Apache to do proxy forwarding so the browser thinks it is all one site. On Jan 7, 5:51 am, ben fenster fenster@gmail.com wrote: ??? On Jan 7, 11:56 am, ben fenster fenster@gmail.com wrote: its not cross site and it works ok in hosted more over it doesnt fail in compile but keep getting empty responses and in hosted they are ok i cant understand why On Jan 7, 10:47 am, olivier nouguier olivier.nougu...@gmail.com wrote: SOP ? or some GWT SOP All I known is that when using GWT-RPC the standard policy doesn't want cross webapp access! HIH On Thu, Jan 7, 2010 at 9:39 AM, ben fenster fenster@gmail.com wrote: does any one know why would a request sent using equest builder works in hosted mode but dont work in compile mode i am using it to access php scripts running on the same xamp 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Any thing in GWT for Gridlayout???
Seconded -- FlexTable is your friend here, and can cope with odd widgets or labels that are too long by using FlexTable.getFlexCellFormatter() to get the cell formatter, and then set 'colspan' (or rowspan) for some cells if necessary. It can produce great results, and basically maps to an HTML table I believe. HTH Dave. On Jan 8, 6:09 am, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: In my case I have used FlexTable, I guess GridTable will also do. You can set the controls using setWidget(row, column, widget) - Abdullah On Fri, Jan 8, 2010 at 11:09 AM, Abhay Singh abhay.asi...@gmail.com wrote: Hi Do we have any thing in GWT to implement GridLayout I need to designs a form having lots of text/check boxes in it, but facing problem in placing them properly and well aligned. I tried with combination of HorizontalPanel and VeticalPanel but this is too tidious and not getting proper aignment... what should i do... Thanks... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem: certain types of J2EE authentication with GWT 2.0 and Eclipse 3.5 plugin no longer work
Hi Alberto, thanks for taking the time to reply. I've changed the wireup of the realm in jetty-web.xml so it more closely matches what you have (i.e instead of doing Call name=setUserRealm we now do a Set name=UserRealm). So our jetty-web.xml now looks like this: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Set name=UserRealm New class=org.mortbay.jetty.security.HashUserRealm Set name=nameSecurityTestRealm/Set Set name=configSystemProperty name=jetty.home default=.//WEB-INF/etc/realm.properties/Set /New /Set /Get /Configure We still get the same errors as I originally reported. I think the way we inject the Realm into the JeTTY SecurityHandler is still almost the same - just slightly different XML notation for doing the set. The Realm does in fact work and when we hit the GWT start page for the app it does in fact re-direct to the login page as you would expect as stated in my previous response. I guess for now the errors that come out can be treated as noise because the realm does in fact work - its just the [WARN] Unknown realm: SecurityTestRealm message that goes to the console implies that it wouldn't. The next thing I have to do now is re-build my Filter that intercepts login re-directs when the client-side JavaScript makes an RPC call and the session has expired. I unfortuately lost this class as I hadn't dropped it into our svn repo before I rebuilt my entire eclipse environment (doh!). Its not too bad so I should have that back again soon. I hope I can get to the point where I can document what I think is probably the most straight forward way of getting J2EE container managed security and sessions working with GWT. There are lots of chunks of useful information about this out there - but there isn't a single source of information that pulls it all together with a full working example for people to study. Maybe I will try and do this. Regards Ian. On Jan 8, 9:47 am, lemaiol lema...@gmail.com wrote: Hi Ian, It seems that the Jetty version could have changed and also its API. Try with this little change in the syntax of the configuration (we guessed it looking at the jetty classes API and it worked for us): cheers, Alberto ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Set name=UserRealm New class=org.mortbay.jetty.security.HashUserRealm Set name=nameMyRealm/Set Set name=configWEB-INF/dev_realm.properties/Set /New /Set /Get /Configure On Jan 6, 3:32 pm, Ian.G iandgrat...@googlemail.com wrote: Hi Folks - my first post on the discussion group so big thanks to everyone involved in this great project. We've recently moved up to GWT 2.0 from GWT 1.7 and everything has gone quite smoothly so far. One of the issues I have with the application I'm developing is that it needs to be secured by J2EE security and correctly manage session timeout etc. I know there are lots of hazy bits of information about how/how not to do this along with potential problems the developer faces with the GWT- RPC interface calls from the client after the session has expired etc. - but I think in GWT 1.7 we had a 99% working solution to this that wasn't anything whacky like using client-side timers to keep the session alive - I just need to continue on and complete it now we've moved over to GWT 2.0 I'll describe the problem and to take away the need to understand anything specific to my app so this can all be re-produced from a std wizard-generated GWT project in ecliipse 3.5 (i.e. the Greeting sample that gets built when you start a new project). This sample wont gracefully manage session expiry with GWT-RPC – but it will show a problem that I think I've found with the GWT 2.0 eclipse plugin and J2EE authentication. This is the start of how I previously made GWT (before version 2.0) use J2EE security - and get realm-based security working in the Eclipse DEV environment (and thus whatever container we deploy into for production systems from the app's .war file). in the applications WEB-INF directory I have a jetty-web.xml that contains the following: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Call name=setUserRealm Arg !-- Hash File-based Security Realm -- New
Re: help in creating menu using popuppanel or dialogbox
And when should I hide the menu ? also should I use PopupPanel or DialogBox for menu ? I will try out with TabPanel, will update my findings. Thanks - Abdullah On Fri, Jan 8, 2010 at 4:10 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Well it's actually very simple. Create one TabPanel and on mouse over event (over the tab) display menu using absolute positioning starting right under the selected tabbar. On Fri, Jan 8, 2010 at 11:55 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Finally got this link, http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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.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.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: addWindowClosingHandler firing when frame loads in IE
On 8 Jan 2010, at 16:22, Thomas Broyer wrote: Use Hyperlink or InlineHyperlink widgets for internal navigation (unless you also want ClickHandlers, in which case Anchor is fine, calling History.newItem() in a ClickHandler, but do not forget to ClickEvent#preventDefault() // this is more or less what Hyperlink/InlineHyperlink widgets do). Using Anchors caused onWindowClosing() to be called in IE7/8 so I could not use them. Using Button has solved this so far although I have a lot of default CSS to override. I just tested with Hyperlink as you suggested and this also works fine. Perhaps the difference is that it uses # as the href rather than javascript:; so IE recognises this as an internal link. -- 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: Validating user input
Hi, In my current project I'm using the gwt validation library (http:// sourceforge.net/projects/gwt-vl/) which supports both client- and server-side validation and integrates itself nicly with e.g. hibernate- validation ... Maybe it's something you're looking for. Kind regards, Lukasz On 7 Jan., 20:13, Dave ladjo...@gmail.com wrote: Hi, Could someone point me to some resources that shows how to validate user input. Specifically, to remove harmful javascript injection attacks etc. I would like to see the validation code done at both server and client. I have searched already and I come across issues related to XSS and forged request etc. -- 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: help in creating menu using popuppanel or dialogbox
Well, when the mouse is not over the tab bar. On Fri, Jan 8, 2010 at 1:09 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: And when should I hide the menu ? also should I use PopupPanel or DialogBox for menu ? I will try out with TabPanel, will update my findings. Thanks - Abdullah On Fri, Jan 8, 2010 at 4:10 PM, mariyan nenchev nenchev.mari...@gmail.com wrote: Well it's actually very simple. Create one TabPanel and on mouse over event (over the tab) display menu using absolute positioning starting right under the selected tabbar. On Fri, Jan 8, 2010 at 11:55 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Finally got this link, http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this
Re: Compilation error
I rebuilt the toolkit from source and narrowed down the issue a bit myself, definitely seems to have something to do with inner classes being defined inside generic classes. Unfortunately my codebase is pretty big and we do this in multiple spots, so I'm still trying to get around it. Will see if i can make similar changes to what Raman has done... but I think that the code around this part of resolving generic types could use a little more error handling to identify these cases at least, because without compiling from source with my own debug statements I wasn't even able to figure out which classes it first started complaining about. cheers Dan On Jan 8, 4:23 am, Raman rama...@gmail.com wrote: Looks like I have finally solved the problem. The case was something like this. I am using ExtGWT which has a class TreePanel with an inner class TreeNode, which looks like below: public class TreePanelM extends ModelData { - class TreeNode { --- private M data; } -- } And, since the TreeNode class is public inside TreePanel, I was directly using TreeNode class in my code. I would do: import ..TrePanel.TreeNode; - -- TreeNode node = ; As you can see, TreeNode internally uses the type M, which is not defined in the above kind of usage. And GWT compiler gets confused when it sees this. I solved this problem by removing the import statement as accessing the TreeNode only in the context of the outer class(TreePanel) like this: TreePanelMyModeldata.TreeNode node = x; This solved the issue. -- 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.
ClientBundle and Image Resource Location
Hello, I have a maven gwt project, and I'm using ClientBundle to package my image resources within the project. I would like to place the images in /src/main/resources as should be done in maven instead of src/main/java/com/mycompany/myproject/client as gwt wants. Is there any way I can achieve this? Thank you, Sammy -- 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 Maven repo
Well, now that they ARE on the maven central repository, I cannot download javadocs or source. Is there a reason for this? Thanks, Sammy On Dec 10 2009, 1:00 am, slind...@gmail.com slind...@gmail.com wrote: Hi, I would like to upgrade my current applications to GWT 2.0, but since they are build withMaven, I'm waiting for GWT 2.0 final being available inMaven repo. When will it be available? I'd not bother to wait for that since it's dependent on some 3rd party uploading it to theMavenrepo.. Just download the zip and use mvn install:install-file to put the jars in your local repository. Br, S.B. -- 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: ClientBundle and Image Resource Location
Did you tried src/main/resources/com/mycompany/myproject/client On Fri, Jan 8, 2010 at 2:07 PM, Sammy pico...@gmail.com wrote: Hello, I have a maven gwt project, and I'm using ClientBundle to package my image resources within the project. I would like to place the images in /src/main/resources as should be done in maven instead of src/main/java/com/mycompany/myproject/client as gwt wants. Is there any way I can achieve this? Thank you, Sammy -- 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: help in creating menu using popuppanel or dialogbox
Hey this where the issue is, when the mouse is not over the tab bar, that means it can be in 2 places either 1) on the menu itself or 2) not on the menu. if we hide the menu if its not over tab bar, its ok for the 2 point, but when its on the menu itself, it will close the menu bcoz the mouse is not over the tab bar. - Abdullah On Fri, Jan 8, 2010 at 5:23 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Well, when the mouse is not over the tab bar. On Fri, Jan 8, 2010 at 1:09 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: And when should I hide the menu ? also should I use PopupPanel or DialogBox for menu ? I will try out with TabPanel, will update my findings. Thanks - Abdullah On Fri, Jan 8, 2010 at 4:10 PM, mariyan nenchev nenchev.mari...@gmail.com wrote: Well it's actually very simple. Create one TabPanel and on mouse over event (over the tab) display menu using absolute positioning starting right under the selected tabbar. On Fri, Jan 8, 2010 at 11:55 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Finally got this link, http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/MenuBar.html Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this site http://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar en www.agpd.es. -- 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.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-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group
Re: Compilation error
As a temporary workaround since I've already burned a whole day on this one, I just refactored several inner classes to the top level. It just compiled. I think my case may have actually done something similar, only where (to use Raman's example) it actually defined TreePanel.TreeNode as part of a method signature, without specifying any type on the parent... This stuff all used to compile fine, so hopefully my other projects don't require too much refactoring, but at least there seem to be ways to work around it. Thanks for the post, Raman. Dan On Jan 8, 4:23 am, Raman rama...@gmail.com wrote: Looks like I have finally solved the problem. The case was something like this. I am using ExtGWT which has a class TreePanel with an inner class TreeNode, which looks like below: public class TreePanelM extends ModelData { - class TreeNode { --- private M data; } -- } And, since the TreeNode class is public inside TreePanel, I was directly using TreeNode class in my code. I would do: import ..TrePanel.TreeNode; - -- TreeNode node = ; As you can see, TreeNode internally uses the type M, which is not defined in the above kind of usage. And GWT compiler gets confused when it sees this. I solved this problem by removing the import statement as accessing the TreeNode only in the context of the outer class(TreePanel) like this: TreePanelMyModeldata.TreeNode node = x; This solved the issue. -- 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: Referencing deprecated class warning stack
I've got the same type of exception with same environment. Is there something that we missed? Yes, you missed the thread which is already discussing it ;) http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cbf566637f03496a/a676bf46bb463f94?#a676bf46bb463f94 -- 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: help in creating menu using popuppanel or dialogbox
If you want a menu which is very personnalized you should uses div elements with some handlers. You must play with dom as html / CSS / Javascript but you can do in gwt / CSS only. You can try with this begin: code public class MyDivPanel extends FlowPanel implements MouseDownHandler, HasMouseDownHandlers { public MyDivPanel() { super(); this.addMouseDownHandler(this); } public void onMouseDown(MouseDownEvent arg0) { GWT.log(Mouse Down Event OK, null); } public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) { return addDomHandler(handler, MouseDownEvent.getType()); } } /code Philippe On 8 jan, 13:12, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Hey this where the issue is, when the mouse is not over the tab bar, that means it can be in 2 places either 1) on the menu itself or 2) not on the menu. if we hide the menu if its not over tab bar, its ok for the 2 point, but when its on the menu itself, it will close the menu bcoz the mouse is not over the tab bar. - Abdullah On Fri, Jan 8, 2010 at 5:23 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Well, when the mouse is not over the tab bar. On Fri, Jan 8, 2010 at 1:09 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: And when should I hide the menu ? also should I use PopupPanel or DialogBox for menu ? I will try out with TabPanel, will update my findings. Thanks - Abdullah On Fri, Jan 8, 2010 at 4:10 PM, mariyan nenchev nenchev.mari...@gmail.com wrote: Well it's actually very simple. Create one TabPanel and on mouse over event (over the tab) display menu using absolute positioning starting right under the selected tabbar. On Fri, Jan 8, 2010 at 11:55 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Finally got this link,http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this sitehttp://www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar enwww.agpd.es. -- 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%2Bunsubs cr...@googlegroups.com . For more options, visit this group at
GWT dev mode with pre-installed tomcat
Hello everybody, I'm implementing gwt on a existing project. and i need to use dev mode with the already installed tomcat. Can anybody help me configure this? I'm using gwt 2.0 Att Bruno Bilescky -- Wants to learn Javascript? Read my blog / Quer aprender a programar? leia meu blog http://tcninja.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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 use CssResource.obfuscationPrefix to have semi-obfuscated css class name
thanks a lot for your replies !! that's exactly what I needed :) On Jan 7, 6:42 am, Brendan Kenny bcke...@gmail.com wrote: Yeah, I ran into the same problem. If the issue is just exposing the style names during development (and you're not looking for this particular solution for an additional reason), I would do as fvisticot suggests and then just remove that line from your module's xml file when you're ready for production mode. It's been a while since I looked at this, but I believe I also just used @external styleName; in the ui:style section to prevent particular style names from being obfuscated. I found the example here a little confusing, but the concept is simple enough:http://code.google.com/p/google-web-toolkit/wiki/CssResource#External... On Jan 6, 9:07 am, emerix rafa...@gmail.com wrote: Hi, I found on this pagehttp://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideClien... that you can use the property CssResource.obfuscationPrefix to choose how to obfuscate your css selectors. However I don't know if it is possible to use it to have a custom obfuscation. During the development phase, I'm using firebug to adjust padding, margin... of my widgets and it became quite difficult with the obsucated css class names... What I would like is a way to have .G1qdtwdtK-MyWidgetName instead of .G1qdtwdtK for a css class named .MyWidgetName Is that feasible ? thanks ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help in creating menu using popuppanel or dialogbox
Thanks Philippe, I will try this out. - Abdullah On Fri, Jan 8, 2010 at 6:47 PM, philippe vonck...@yahoo.fr wrote: If you want a menu which is very personnalized you should uses div elements with some handlers. You must play with dom as html / CSS / Javascript but you can do in gwt / CSS only. You can try with this begin: code public class MyDivPanel extends FlowPanel implements MouseDownHandler, HasMouseDownHandlers { public MyDivPanel() { super(); this.addMouseDownHandler(this); } public void onMouseDown(MouseDownEvent arg0) { GWT.log(Mouse Down Event OK, null); } public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) { return addDomHandler(handler, MouseDownEvent.getType()); } } /code Philippe On 8 jan, 13:12, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Hey this where the issue is, when the mouse is not over the tab bar, that means it can be in 2 places either 1) on the menu itself or 2) not on the menu. if we hide the menu if its not over tab bar, its ok for the 2 point, but when its on the menu itself, it will close the menu bcoz the mouse is not over the tab bar. - Abdullah On Fri, Jan 8, 2010 at 5:23 PM, mariyan nenchev nenchev.mari...@gmail.comwrote: Well, when the mouse is not over the tab bar. On Fri, Jan 8, 2010 at 1:09 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: And when should I hide the menu ? also should I use PopupPanel or DialogBox for menu ? I will try out with TabPanel, will update my findings. Thanks - Abdullah On Fri, Jan 8, 2010 at 4:10 PM, mariyan nenchev nenchev.mari...@gmail.com wrote: Well it's actually very simple. Create one TabPanel and on mouse over event (over the tab) display menu using absolute positioning starting right under the selected tabbar. On Fri, Jan 8, 2010 at 11:55 AM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Finally got this link,http://www.salesforce.com/demos/, when you go to Products or Services menu, there is a popup displayed with 2 columns. I wanted the same way. Any idea on how to achieve this ? - Abdullah On Fri, Jan 8, 2010 at 3:01 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Sorry I should have given some other example site, but I couldn't find any. Actually I want the menu drop down to be in 2 columns or may be 3 ? I will try to find an example online. - Abdullah On Fri, Jan 8, 2010 at 2:43 PM, Olivier oliv...@digiworks.es wrote: Hi, Why don't you use the menu bar. http://gwt.google.com/samples/Showcase/Showcase.html#CwMenuBar http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... Oli On 8 Jan 2010, at 09:51, Abdullah Shaikh wrote: Hi, I want to create menus like on this sitehttp:// www99.shopping.com/, I have used Hyperlink for menu, and added a mouseover handler, on mouseover I display a PopupPanel or should I use DialogBox ?, but now the issue when should I hide the PopupPanel, also there is no mousehandlers for popupanel so that I can add a mouseout handler and hide the PopupPanel, but again this will also not solve the issue as the user might not take his cursor over PopupPanel. Any Ideas ? - Abdullah -- 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. --- Olivier Digiworks *Política de Protección de Datos de Carácter Personal* En cumplimiento de la Ley Orgánica 15/1999, de 13 de diciembre, sobre protección de Datos de Carácter Personal (LOPD) DIGIWORKS SPAIN, S.L. informa a los usuarios de que: Los Datos de Carácter Personal que recoge son objeto de tratamiento automatizado y se incorporan en los ficheros correspondientes, debidamente registrados en la Agencia Española de Protección de Datos. El usuario podrá, en todo momento, ejercitar los derechos reconocidos en la LOPD, de acceso, rectificación, cancelación y oposición. El ejercicio de estos derechos puede realizarlo el propio usuario mediante comunicación escrita en la siguiente dirección postal: *DIGIWORKS SPAIN, S.L.* *AVDA SAN RAFAEL, 11, LOCAL 2* *03580 ALFAZ DEL PI* *ALICANTE* También pueden ejercitar estos derechos en los términos que la normativa aplicable establece y que puede consultar enwww.agpd.es . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group,
Re: Any thing in GWT for Gridlayout???
Hi, Have a look at gwt-mosaic FormLayout: http://69.20.122.77/gwt-mosaic-current/Showcase.html#CwQuickStartExample maybe this can help you. Alejandro. On Fri, Jan 8, 2010 at 2:39 AM, Abhay Singh abhay.asi...@gmail.com wrote: Hi Do we have any thing in GWT to implement GridLayout I need to designs a form having lots of text/check boxes in it, but facing problem in placing them properly and well aligned. I tried with combination of HorizontalPanel and VeticalPanel but this is too tidious and not getting proper aignment... what should i do... Thanks... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: request builder
the thing is there wasnt anything to tell because i used a reequest builder wich sent requests ok in hosted but nor in compile the problem was with the url the problem is with the reequeest builder class that for some reason didnt throw any exception when it considered the diffrence betwen 127.0.0.1 and localhose as a violation of sop policiy so everything was working fine just without a response data On Jan 8, 12:45 pm, Paul Robinson ukcue...@gmail.com wrote: Please don't take this the wrong way. I really am trying to help... If you read this:http://catb.org/~esr/faqs/smart-questions.html then you may understand why you've had a poor response and perhaps get some ideas about how to elicit a better response. For example, Jamie tried to help, but it's not clear from what you said whether you've looked at what is actually being sent over the network to the server using something like firebug or TamperData. You don't say what error you get, if any. You don't say whether and how the network traffic is different in dev and production mode. Unless you provide more details, and show that you're actually trying to work out what's happening, nobody else will either. HTH Paul ben fenster wrote: ?? On Jan 7, 7:30 pm, ben fenster fenster@gmail.com wrote: thats what i am doing and it works great in hosted but not in compile mode do you have an idea way ?? On Jan 7, 3:55 pm, Jamie jamiesharbor-sou...@yahoo.com wrote: You should then probably install something like TamperData or Firebug for firefox, and see if your request is actually being sent from the browser. Or you could use wireshark, but that's not as easy to read. As well, tamperdata or wireshark will let you see the data in the responses. BTW, if you are running a separate PHP web server, firefox considers a different port to be cross-site. You can work around that by deploying your compiled javascript via the PHP server, or you can use (eg) Apache to do proxy forwarding so the browser thinks it is all one site. On Jan 7, 5:51 am, ben fenster fenster@gmail.com wrote: ??? On Jan 7, 11:56 am, ben fenster fenster@gmail.com wrote: its not cross site and it works ok in hosted more over it doesnt fail in compile but keep getting empty responses and in hosted they are ok i cant understand why On Jan 7, 10:47 am, olivier nouguier olivier.nougu...@gmail.com wrote: SOP ? or some GWT SOP All I known is that when using GWT-RPC the standard policy doesn't want cross webapp access! HIH On Thu, Jan 7, 2010 at 9:39 AM, ben fenster fenster@gmail.com wrote: does any one know why would a request sent using equest builder works in hosted mode but dont work in compile mode i am using it to access php scripts running on the same xamp 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Detect browser back or forward button clicked
Well, in fact you don't disable the buttons. In the disableFunctionKey.js file, the function just intercept the keydown or keypress and return a value tha is not the expected by the browser. As I wrote, maybe you can find a solution that intercept the browser back button click. On 7 jan, 12:13, Anita an...@ensarm.com wrote: Hi Rogério Valente, Thanks for the reply. If i disable the buttons how will i come to know that the back button is clicked ? On Jan 7, 7:00 pm, Rogério Valente rogerio.vale...@gmail.com wrote: I don't know if this can help you but, we just add a script in appName.html to disable some functions key (F5 to refresh). Take a look at the code below. Put it in a javascript file in appName/war/js and add a script tag on the head section of your app main html file .. something like script type=text/javascript language=javascript src=js/disableFunctionKey.js/script Maybe you can find a solution to disable the buttons. [CODE] //Disable F5 - Refresh var isIE = ( navigator.userAgent.toLowerCase().indexOf(msie) != -1 ); function interceptKeyDown(e) { keyCode = e.keyCode; //F5 if ( keyCode == 116 ) { if(isIE) { // IE only e.keyCode = 505; } return false; } } function interceptKeyPress(e) { if( !e ) { if (window.event) e = window.event; else return; } //NS 4, NS 6+, Mozilla 0.9+, Opera if(typeof(e.which) == 'number') { var keyCode = e.keyCode ? e.keyCode : e.which ? e.which : void 0; if(e.charCode == null || e.charCode == 0 ) { // F5 if ( keyCode == 116 ) { e.stopPropagation(); e.preventDefault(); } } } } function attachEventListener( obj, type, func, capture ) { if(window.addEventListener) { //Mozilla, Netscape, Firefox obj.addEventListener( type, func, capture ); } else { //IE obj.attachEvent( 'on' + type, func ); } } attachEventListener(document,keydown,interceptKeyDown,true); attachEventListener(document,keypress,interceptKeyPress,true); [END-CODE] On 7 jan, 10:34, Anita an...@ensarm.com wrote: Hi, How can I detect on GWT client side that browser's back or forward button is clicked? Because on click of back and forward button i want to perform custom operation. Thank You. -- 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: better place for image
I use ClientBundle (and CssResource) (I'm using GWT 2 by the way...) e.g. public interface RichToolTipClientBundle extends ClientBundle { @Source(resources/css/rich-tooltip.css) public RichToolTipCssResource getCss(); @Source(resources/img/logo.png) public ImageResource getLogo(); @Source(resources/img/tooltip-top-left.png) @ImageOptions(repeatStyle = RepeatStyle.None) public ImageResource tooltipTopLeft(); public interface RichToolTipCssResource extends CssResource { @ClassName(tooltip) String getToolTipStyleName(); } } public class RichToolTipResources { private static RichToolTipClientBundle INSTANCE; public static final RichToolTipClientBundle getBundle() { if (INSTANCE == null) { INSTANCE = GWT.create(RichToolTipClientBundle.class); INSTANCE.getCss().ensureInjected(); // or StyleInjector.inject(INSTANCE.getCss().getText(), true); } return INSTANCE; } } In your css... @sprite .tooltip { gwt-image: 'tooltipTopLeft'; } then: public ToolTip extends Composite { // injects the css... private RichToolTipClientBundle resources = RichToolTipResources.getBundle(); public ToolTip() { FlowPanel panel = new FlowPanel(); initWidget(panel); addStyleName(resources.getCss().getToolTipStyleName()); Image img = new Image(resources.getLogo()); panel.add(img); } } Using these methods makes use of the GWT compiler and all it clever optimisation such as inlining the images using data-uris when supported... which help make the page load faster. Hope this helps, Cheers, Dave On Jan 8, 9:03 am, ale aleee...@gmail.com wrote: Hi, I can not decide where put some image in a application, image like logo, icon for button, ecc. Is better put it in css or use the ImageBundle and AbstractImagePrototype? I prefer the solution that make the load of the page faster. Thanks! Bye Alessandro -- 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: Clone a widget using DOM.clone ?
public class ClonedWidget extends Widget { public ClonedWidget(Element element) { setElement(element); } } ClonedWidget myNewWidget = new ClonedWidget(Dom.clone(elementToClone, true)); Is that the kind of thing you're looking for? Cheers, Dave On Jan 8, 12:07 am, Michael Dausmann mdausm...@gmail.com wrote: I wish to programatically clone a widget. Dom.clone(... allows me to retrieve an Element. Is it possible to create a new widget around this Element? Is there another way of cloning the Widget? -- 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: Referencing deprecated class warning stack
Thanks 4 your answer. Unfortunately, It looks to be not the same cause. In my case, its the exactly same behaviour as lesli : ... I've posted elsewhere in another related thread which involved the assignment of collections. And in that case the discussion referred to the RPC calls returning objects of Collection types. But in this class, that isn't happening. This class, AddAddressListener, does not use or involve any types of collection classes. ... I thing that the referred thread is indeed http://groups.google.com/group/google-web-toolkit/browse_thread/thread/cbf566637f03496a/a676bf46bb463f94?#a676bf46bb463f94 Regards. KT On Jan 8, 2:11 pm, Luis Fernando Planella Gonzalez lfpg@gmail.com wrote: I've got the same type of exception with same environment. Is there something that we missed? Yes, you missed the thread which is already discussing it ;)http://groups.google.com/group/google-web-toolkit/browse_thread/threa... -- 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: addWindowClosingHandler firing when frame loads in IE
On Jan 8, 12:29 pm, John Patterson jdpatter...@gmail.com wrote: On 8 Jan 2010, at 16:22, Thomas Broyer wrote: Use Hyperlink or InlineHyperlink widgets for internal navigation (unless you also want ClickHandlers, in which case Anchor is fine, calling History.newItem() in a ClickHandler, but do not forget to ClickEvent#preventDefault() // this is more or less what Hyperlink/InlineHyperlink widgets do). Using Anchors caused onWindowClosing() to be called in IE7/8 so I could not use them. Using Button has solved this so far although I have a lot of default CSS to override. I just tested with Hyperlink as you suggested and this also works fine. Perhaps the difference is that it uses # as the href rather than javascript:; so IE recognises this as an internal link. No, the reason is that it ClickEvent#preventDefault() in a ClickHandler. If you do the same with an Anchor in your ClickHandler, it'll work too. Hyperlink/InlineHyperlink though has some differences with Anchor that make it worth it: - the link's href= is the history token the Hyperlink targets, so you can right-click - open in new window (or tab), or ctrl+click or middle-click or whatever to open the link in another window/tab; and you can of course also drag'n'drop the link into another application to have a direct URL to the page targeted by the Hyperlink - the ClickHandler only ClickEvent#preventDefault() under some conditions, so that the right-click, middle-click and ctrl+click work OK (and the conditions are different depending on the browser, thanks to GWT's deferred binding feature) If you don't want this behavior, then a Button or Label/InlineLabel would be more appropriate than Anchor or Hyperlink/InlineHyperlink. -- 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: Referencing deprecated class warning stack
I've read the issues http://code.google.com/p/google-web-toolkit/issues/detail?id=4438 that you created and it looks coming from generic arguments as instance fields.. thks 4 your help. Regards. KT On Jan 8, 3:14 pm, khaled.tl...@gmail.com khaled.tl...@gmail.com wrote: Thanks 4 your answer. Unfortunately, It looks to be not the same cause. In my case, its the exactly same behaviour as lesli : ... I've posted elsewhere in another related thread which involved the assignment of collections. And in that case the discussion referred to the RPC calls returning objects of Collection types. But in this class, that isn't happening. This class, AddAddressListener, does not use or involve any types of collection classes. ... I thing that the referred thread is indeedhttp://groups.google.com/group/google-web-toolkit/browse_thread/threa... Regards. KT On Jan 8, 2:11 pm, Luis Fernando Planella Gonzalez lfpg@gmail.com wrote: I've got the same type of exception with same environment. Is there something that we missed? Yes, you missed the thread which is already discussing it ;)http://groups.google.com/group/google-web-toolkit/browse_thread/threa... -- 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.
CssResource in IE
Hi all, I got a problem using CssResource, after laborious convert from legacy CSS, everything works perfectly in gecko/webkit. However, IE loads/ sees only a couple of my CSS rules, like 5% of the whole stylesheet, which effectively destroys whole application. Debuggin from ensureInjected() call doesn't seem to bring any light into this issue. I refuse to believe that this is a bug of GWT, I guess the CssResource feature wouldn't be released in 2.0 if not working in all supported browsers. Any ideas what could be causing this? Thank you -- 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.
How to cache DTD in Eclipse for GWT 2.0
Hi I just installed fresh copy of eclipse and gwt plugin on it. but now the problem is each time i am doing something in ui.xml file, eclipse is trying to fetch the dtd. i am behind proxy which is 1000 miles away is there any way to cache the http://dl.google.com/gwt/DTD/xhtml.ent in eclipse, so it dosent try to fetch it every time. i read somewhere that i can use XML Catalog feature, but dont know how it works, also in that XML Catalog window i see red mark next to following two entries. Location: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd URI:http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd Key Type: Namespace Name Key:urn:import:com.google.gwt.user.client.ui Location: http://dl.google.com/gwt/dtd/uibinder.xsd URI:http://dl.google.com/gwt/dtd/uibinder.xsd Key Type: Namespace Name Key:urn:ui:com.google.gwt.uibinder -- 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?
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.
Possible bug in gwt with type casting or normal behavior!
Hi, I thing there is possible bug when type casting. Take a look and tell me is this the normal behavior. So if you have HashMapInteger, Object hash = getHashMap(); hash.get((int) myPrimitiveLongValue) will return null even there is value for that key. If you try Integer i = (int) myPrimitiveLongValue; hash.get((int)myPrimitiveLongValue) it will retur nthe value. Regards. -- 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 cache DTD in Eclipse for GWT 2.0
In eclipses: Preferences XML Catalog In User part you can add your custom catalog. On Fri, Jan 8, 2010 at 4:10 PM, Sagar sagar.i...@gmail.com wrote: Hi I just installed fresh copy of eclipse and gwt plugin on it. but now the problem is each time i am doing something in ui.xml file, eclipse is trying to fetch the dtd. i am behind proxy which is 1000 miles away is there any way to cache the http://dl.google.com/gwt/DTD/xhtml.ent in eclipse, so it dosent try to fetch it every time. i read somewhere that i can use XML Catalog feature, but dont know how it works, also in that XML Catalog window i see red mark next to following two entries. Location: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd URI:http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd Key Type: Namespace Name Key:urn:import:com.google.gwt.user.client.ui Location: http://dl.google.com/gwt/dtd/uibinder.xsd URI:http://dl.google.com/gwt/dtd/uibinder.xsd Key Type: Namespace Name Key:urn:ui:com.google.gwt.uibinder -- 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. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ClientBundle and Image Resource Location
That worked, thank you very much :) On Jan 8, 1:10 pm, mariyan nenchev nenchev.mari...@gmail.com wrote: Did you tried src/main/resources/com/mycompany/myproject/client On Fri, Jan 8, 2010 at 2:07 PM, Sammy pico...@gmail.com wrote: Hello, I have a maven gwt project, and I'm using ClientBundle to package my image resources within the project. I would like to place the images in /src/main/resources as should be done in maven instead of src/main/java/com/mycompany/myproject/client as gwt wants. Is there any way I can achieve this? Thank you, Sammy -- 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%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to cache DTD in Eclipse for GWT 2.0
So once you download the two URLs you've already listed, click on 'Add' and then 'File system' and point it to one of the files (do the same for the other.) I just verified this indeed works. jason On Fri, Jan 8, 2010 at 10:46 AM, olivier nouguier olivier.nougu...@gmail.com wrote: In eclipses: Preferences XML Catalog In User part you can add your custom catalog. On Fri, Jan 8, 2010 at 4:10 PM, Sagar sagar.i...@gmail.com wrote: Hi I just installed fresh copy of eclipse and gwt plugin on it. but now the problem is each time i am doing something in ui.xml file, eclipse is trying to fetch the dtd. i am behind proxy which is 1000 miles away is there any way to cache the http://dl.google.com/gwt/DTD/xhtml.ent in eclipse, so it dosent try to fetch it every time. i read somewhere that i can use XML Catalog feature, but dont know how it works, also in that XML Catalog window i see red mark next to following two entries. Location: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd URI: http://dl.google.com/gwt/dtd/com.google.gwt.user.client.ui.xsd Key Type: Namespace Name Key: urn:import:com.google.gwt.user.client.ui Location: http://dl.google.com/gwt/dtd/uibinder.xsd URI: http://dl.google.com/gwt/dtd/uibinder.xsd Key Type: Namespace Name Key: urn:ui:com.google.gwt.uibinder -- 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. -- A coward is incapable of exhibiting love; it is the prerogative of the brave. -- Mohandas Gandhi -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.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.
one servlet, many clients with gwt-rpc
Hello. I just received a question, if it is possible to access one central servlet (extending RemoteServiceServlet) that can be accessed by several gwt client applications. The interface that is implemented by the servlet is fixed. The same interface is used by every client application. I could not find any specific information about it in the docs and on this list, so I tried it out. When accessing the service, I get a null pointer exception - stacktrace below. My guess is, this has something to do with the rpc policy file. What seem to work is, when we install the client apps into the same war file as the servlet. The problem exists, when we try to install the client applications as separate war files. Any comments if this should work at all, and how to get it running is welcome. We are using for this GWT 1.7.1 and Glassfish 2.1 Thanks, Michael Here is the stacktrace: WebModule[/AppsAWC]Exception while dispatching incoming RPC call java.lang.NullPointerException at com.sun.enterprise.web.logger.LoggerBase.write(LoggerBase.java:215) at com.sun.enterprise.web.logger.LoggerBase.log(LoggerBase.java:172) at org.apache.catalina.core.ApplicationContext.log(ApplicationContext.java:839) at org.apache.catalina.core.ApplicationContextFacade.log(ApplicationContextFacade.java:323) at javax.servlet.GenericServlet.log(GenericServlet.java:335) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:219) at com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86) at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) at jorapi.awc.server.AWC.service(AWC.java:314) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:427) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:315) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:287) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:218) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94) at com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:98) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:222) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:166) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1093) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:291) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:666) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:597) at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:872) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263) at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214) at com.sun.enterprise.web.portunif.PortUnificationPipeline $PUTask.doTask(PortUnificationPipeline.java:382) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:264) at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106) -- You received this message because you are
ImageResource bug in IE7
I have a Tree whose TreeItems I originally created according to the Mail sample way back under GWT 1.2: private String imageItemHTML(String imageUrl, String title) { return spanimg style='margin-right:4px' src=' + imageUrl.toLowerCase() + ' + title + /span; } This approach allows for highlighting of the entire TreeItem, and transitioned easily to ImageBundles: private String createHeaderHTML(AbstractImagePrototype imageProto, String caption) { return span style='white-space:nowrap' + imageProto.getHTML() + caption + /span; } Along comes GWT 2 and the ImageResource. No problem (or so I think): private String createHeaderHTML(ImageResource imageRsrc, String caption) { return span style='white-space:nowrap'img src=' + imageRsrc.getURL() + ' + caption + /span; } All well and good in Firefox and Safari, but not in IE. In IE (I'me testing with IE7) I get the **entire** image bundle of some dozen 16x16 icons. How can I get the same effect--one image--without creating them individually? -- 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 gotcha in DatePicker
In migrating an app from 1.7 to 2.0 I found that one thing didn't work. My app holds data based on a Date which can be retrieved by clicking on a date in the DatePicker. In 2.0 the data was not being retrieved. Turns out I was keying based on a Date object and the difference in 2.0 is that the time is set to 12 noon whereas before it was midnight. So glad GWT is open source! Quick look at the source found the change in CalendarUtil. I guess the real lesson was I should have been more careful about how I checked dates, but there you go. Just thought this may be of use for others. Thanks for gwt - and all the hard work that goes behind it. -- 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: ImageResource bug in IE7
On Jan 8, 5:03 pm, Thad thad.humphr...@gmail.com wrote: I have a Tree whose TreeItems I originally created according to the Mail sample way back under GWT 1.2: private String imageItemHTML(String imageUrl, String title) { return spanimg style='margin-right:4px' src=' + imageUrl.toLowerCase() + ' + title + /span; } This approach allows for highlighting of the entire TreeItem, and transitioned easily to ImageBundles: private String createHeaderHTML(AbstractImagePrototype imageProto, String caption) { return span style='white-space:nowrap' + imageProto.getHTML() + caption + /span; } Along comes GWT 2 and the ImageResource. No problem (or so I think): private String createHeaderHTML(ImageResource imageRsrc, String caption) { return span style='white-space:nowrap'img src=' + imageRsrc.getURL() + ' + caption + /span; } All well and good in Firefox and Safari, but not in IE. In IE (I'me testing with IE7) I get the **entire** image bundle of some dozen 16x16 icons. How can I get the same effect--one image--without creating them individually? You'd have to use: AbstractImagePrototype.create(imageRsrc).getHTML() in GWT 2.0 for the equivalent of the ImageBundle code. ...or you can use a ClientBundle with both an ImageResource and a CssResource containing a @sprite, and then: return span style='white-space: nowrap'span style='display: inline-block' class=' + clientBndl.css().sprite() + '/span + caption + /span; (well, you'd probably pass a 'String className' argument instead, which you'd set to clientBndl.css().sprite() or whatever when calling createHeaderHTML) -- 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 dev mode with pre-installed tomcat
What specific issues are you running into? On Fri, Jan 8, 2010 at 8:21 AM, Nuno brun...@gmail.com wrote: Hello everybody, I'm implementing gwt on a existing project. and i need to use dev mode with the already installed tomcat. Can anybody help me configure this? I'm using gwt 2.0 Att Bruno Bilescky -- Wants to learn Javascript? Read my blog / Quer aprender a programar? leia meu blog http://tcninja.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to cache DTD in Eclipse for GWT 2.0
still no luck... eclipse just hangs whenever i start editing the .ui.xml files. -- 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: javascript error (invalid Argument)
Hey John, Would you be able to narrow it down to a smaller repro case? - Chris On Thu, Jan 7, 2010 at 5:29 PM, John V Denley johnvden...@googlemail.comwrote: I have just come across the following error when testing my application in IE7, It seems to work fine in Chrome 4.0 and FF 3.5.7 I have seen several other people having the same problem on this forum, but I cant work out from any of them how I can work out whats wrong with MY application! Can anyone give me any clues as to how and where to look to find out where to fix this problem? Thanks, John 22:04:09.376 [ERROR] [idebanet] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (Error): Invalid argument. number: -2147024809 description: Invalid argument. at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative (ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject (ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject (JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke (MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke (MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke (OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages (BrowserChannel.java:1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection (BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run (BrowserChannelServer.java:222) at java.lang.Thread.run(Unknown Source) -- 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: Suspicious Java interface definition in the Contacts example
yc, There's no GWT-specific reason to declare the interface abstract. The GWT compiler, just like the Java compiler, will discard the abstract qualifier. On Thu, Jan 7, 2010 at 8:44 PM, yc ycx4...@gmail.com wrote: Hello, If you have reviewed the Contacts example in the GWT tutorial, the Presenter interface is defined as the following in the example: public abstract interface Presenter { public abstract void go(final HasWidgets container); } Here is what section 9.1.1 in JLC (2nd edition) has to say: --- quote --- 9.1.1.1 abstract Interfaces Every interface is implicitly abstract. This modifier is obsolete and should not be used in new programs. --- end of quote --- Am I missing something here that the abstract modifier is being used in this example to trigger some JavaScript compiler optimization techniques? I would have just ignored the modifier if this were a regular Java program but this one gives me sweat since it is intended to be compiled into JavaScript source...so what I am missing? yc -- 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: better place for image
Thanks for the answer, I will try your example. I'm a little afraid to upgrade to gwt 2.0, because I have a lot of pages developed with 1.7 ... and the idea of rewrite a lot of code now... Cheers Ale On Jan 8, 3:06 pm, DaveC david.andrew.chap...@googlemail.com wrote: I use ClientBundle (and CssResource) (I'm using GWT 2 by the way...) e.g. public interface RichToolTipClientBundle extends ClientBundle { @Source(resources/css/rich-tooltip.css) public RichToolTipCssResource getCss(); @Source(resources/img/logo.png) public ImageResource getLogo(); @Source(resources/img/tooltip-top-left.png) @ImageOptions(repeatStyle = RepeatStyle.None) public ImageResource tooltipTopLeft(); public interface RichToolTipCssResource extends CssResource { @ClassName(tooltip) String getToolTipStyleName(); } } public class RichToolTipResources { private static RichToolTipClientBundle INSTANCE; public static final RichToolTipClientBundle getBundle() { if (INSTANCE == null) { INSTANCE = GWT.create(RichToolTipClientBundle.class); INSTANCE.getCss().ensureInjected(); // or StyleInjector.inject(INSTANCE.getCss().getText(), true); } return INSTANCE; } } In your css... @sprite .tooltip { gwt-image: 'tooltipTopLeft'; } then: public ToolTip extends Composite { // injects the css... private RichToolTipClientBundle resources = RichToolTipResources.getBundle(); public ToolTip() { FlowPanel panel = new FlowPanel(); initWidget(panel); addStyleName(resources.getCss().getToolTipStyleName()); Image img = new Image(resources.getLogo()); panel.add(img); } } Using these methods makes use of the GWT compiler and all it clever optimisation such as inlining the images using data-uris when supported... which help make the page load faster. Hope this helps, Cheers, Dave On Jan 8, 9:03 am, ale aleee...@gmail.com wrote: Hi, I can not decide where put some image in a application, image like logo, icon for button, ecc. Is better put it in css or use the ImageBundle and AbstractImagePrototype? I prefer the solution that make the load of the page faster. Thanks! Bye Alessandro -- 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 cache DTD in Eclipse for GWT 2.0
Yikes, didn't realize Eclipse hangs as it tries to retrieve the file. Is Eclipse set up for your proxy? Also, could you try clearing all files in WORKSPACE/.metadata/.plugins/org.eclipse.wst.internet.cache ? On Fri, Jan 8, 2010 at 11:39 AM, Sagar sagar.i...@gmail.com wrote: still no luck... eclipse just hangs whenever i start editing the .ui.xml files. -- 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. -- 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: ImageResource bug in IE7
Thanks. AbstractImagePrototype.create(imageRsrc).getHTML() is it. On Jan 8, 11:21 am, Thomas Broyer t.bro...@gmail.com wrote: ... You'd have to use: AbstractImagePrototype.create(imageRsrc).getHTML() in GWT 2.0 for the equivalent of the ImageBundle code. ...or you can use a ClientBundle with both an ImageResource and a CssResource containing a @sprite, and then: return span style='white-space: nowrap'span style='display: inline-block' class=' + clientBndl.css().sprite() + '/span + caption + /span; (well, you'd probably pass a 'String className' argument instead, which you'd set to clientBndl.css().sprite() or whatever when calling createHeaderHTML) -- 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: better place for image
If it's any help, I found moving from 1.7 to 2.0 a **lot** less effort than moving from 1.4 to 1.5. In fact, it was trivial by comparison. On Jan 8, 11:46 am, ale aleee...@gmail.com wrote: Thanks for the answer, I will try your example. I'm a little afraid to upgrade to gwt 2.0, because I have a lot of pages developed with 1.7 ... and the idea of rewrite a lot of code now... Cheers Ale On Jan 8, 3:06 pm, DaveC david.andrew.chap...@googlemail.com wrote: I use ClientBundle (and CssResource) (I'm using GWT 2 by the way...) e.g. public interface RichToolTipClientBundle extends ClientBundle { @Source(resources/css/rich-tooltip.css) public RichToolTipCssResource getCss(); @Source(resources/img/logo.png) public ImageResource getLogo(); @Source(resources/img/tooltip-top-left.png) @ImageOptions(repeatStyle = RepeatStyle.None) public ImageResource tooltipTopLeft(); public interface RichToolTipCssResource extends CssResource { @ClassName(tooltip) String getToolTipStyleName(); } } public class RichToolTipResources { private static RichToolTipClientBundle INSTANCE; public static final RichToolTipClientBundle getBundle() { if (INSTANCE == null) { INSTANCE = GWT.create(RichToolTipClientBundle.class); INSTANCE.getCss().ensureInjected(); // or StyleInjector.inject(INSTANCE.getCss().getText(), true); } return INSTANCE; } } In your css... @sprite .tooltip { gwt-image: 'tooltipTopLeft'; } then: public ToolTip extends Composite { // injects the css... private RichToolTipClientBundle resources = RichToolTipResources.getBundle(); public ToolTip() { FlowPanel panel = new FlowPanel(); initWidget(panel); addStyleName(resources.getCss().getToolTipStyleName()); Image img = new Image(resources.getLogo()); panel.add(img); } } Using these methods makes use of the GWT compiler and all it clever optimisation such as inlining the images using data-uris when supported... which help make the page load faster. Hope this helps, Cheers, Dave On Jan 8, 9:03 am, ale aleee...@gmail.com wrote: Hi, I can not decide where put some image in a application, image like logo, icon for button, ecc. Is better put it in css or use the ImageBundle and AbstractImagePrototype? I prefer the solution that make the load of the page faster. Thanks! Bye Alessandro -- 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: Referencing deprecated class warning stack
I've been watching this thread too. 2.0 also introduced this for me as well. On Jan 8, 2:48 am, khaled.tl...@gmail.com khaled.tl...@gmail.com wrote: Hi, I've got the same type of exception with same environment. Is there something that we missed? Regards. KT On Jan 2, 7:54 pm, leslie web...@comcast.net wrote: Eclipse 3.5 Galileo Java EE Cocoa Java 1.5.0_13 Mac OS X 10.5.7 GWT 2.0 Hello, I'm seeing a series of warning messages in my console when I attempt to compile my project. Posted below: Scanning for additional dependencies: file:/Users/leslie/Documents/ projects/myprojectfolder/galileoWorkspace/myproject/src/com/foo/ projectgwt/controller/AddAddressListener.java Adding '2' new generated units Validating newly compiled units [WARN] Warnings in 'generated:// 27507DF474CDC042922DAFFEA239ABF3/com/foo/projectgwt/client/ AddressService_TypeSerializer.java' [WARN] Line 81: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection' [WARN] Line 86: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection' [WARN] Line 91: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection' [WARN] Line 96: Referencing deprecated class 'com.google.gwt.user.client.ui.FormHandlerCollection' [WARN] Line 101: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection' [WARN] Line 106: Referencing deprecated class 'com.google.gwt.user.client.ui.LoadListenerCollection' [WARN] Line 111: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseListenerCollection' [WARN] Line 116: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' [WARN] Line 121: Referencing deprecated class 'com.google.gwt.user.client.ui.PopupListenerCollection' [WARN] Line 126: Referencing deprecated class 'com.google.gwt.user.client.ui.ScrollListenerCollection' [WARN] Line 131: Referencing deprecated class 'com.google.gwt.user.client.ui.TabListenerCollection' [WARN] Line 136: Referencing deprecated class 'com.google.gwt.user.client.ui.TableListenerCollection' [WARN] Line 141: Referencing deprecated class 'com.google.gwt.user.client.ui.TreeListenerCollection' See snapshot: /tmp/ AddressService_TypeSerializer49102.java I'm not referencing any of these classes in my code. I've posted elsewhere in another related thread which involved the assignment of collections. And in that case the discussion referred to the RPC calls returning objects of Collection types. But in this class, that isn't happening. This class, AddAddressListener, does not use or involve any types of collection classes. And furthermore, I didn't notice any of these messages in my code until I made assignment changes in my GUI code, in classes which may use this listener. (but then I tried to reverse these changes and yet still the issue remains - so now I have no idea..) But why is the warning message targeting this class? This is just part of the stack that appears in the console. There are other classes referenced there too and the warnings are very similar, maybe identical. I'm focusing on one for brevity. I guess my question is - What does this warning stack mean and how should I resolve it? -- 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.
UiBinder, focus events
Using UiBinder setup, but I can't figure out how to detect loss of focus from a TextBox. No matter what I do, only Focus Gained is detected. I thought of examining the FocusEvent, but since the method isn't even called on Focus Lost, there's no point in doing that. I have this: @UiHandler( textBox ) void onVideoIdTextBoxLostFocus( FocusEvent event ){ do something with text in textbox } I don't think it matters what the name of the method is. Can somebody point me in the right direction? 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: Problem: certain types of J2EE authentication with GWT 2.0 and Eclipse 3.5 plugin no longer work
Unfortunately no longer having my Filter code is holding me back. I need to put this functionality back together so I can serialize specific types of Exception that can can catch in my onFailure method. We have an AsyncCallback handler that will hook failed requests (for all our RPC services) in one place - so we can manage the loss of session in one place. So our App has the following paths in the web app /SecurityTest.html - this is the main GWT page /SecurityTest.css - our apps CSS Stylesheet /Login.jsp - the J2EE FORM-based authentication page /securitytest/* - all the servlets that implement our GWT RPC server- side functionality. In terms of our security-constraint section we require an authenticated user to access /SecurityTest.html /SecurityTest.css /securitytest/* (Where the GWT services are) so everything is in place - we hit the entry point of the app - we get sent to the login page, we authenticate and then the containter managed security sends us back to the referring start page we came from. All this is good and its just back to managing the loss of session from client-side JavaScript RPC calls To begin with I had filter-mapping entries for every resource that could be hit bar the login page, e.g. filter-mapping filter-nameApplicationRequestFilter/filter-name url-pattern/SecurityTest.html/url-pattern /filter-mapping filter-mapping filter-nameApplicationRequestFilter/filter-name url-pattern/SecurityTest.css/url-pattern /filter-mapping filter-mapping filter-nameApplicationRequestFilter/filter-name url-pattern/securitytest/*/url-pattern /filter-mapping What I need to figure out is for our Filter that checks the session state and if there is no session returns a Serialized Exception which paths it should be working on. I can't recall now if the filter was watching /* or /securitytest/* Does anyone have a working Filter that does this ? would also be interested to see if your filter mapping is for /* or just for the / services/* part or your app. Regards Ian. On Jan 8, 11:08 am, Ian.G iandgrat...@googlemail.com wrote: Hi Alberto, thanks for taking the time to reply. I've changed the wireup of the realm in jetty-web.xml so it more closely matches what you have (i.e instead of doing Call name=setUserRealm we now do a Set name=UserRealm). So our jetty-web.xml now looks like this: ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Set name=UserRealm New class=org.mortbay.jetty.security.HashUserRealm Set name=nameSecurityTestRealm/Set Set name=configSystemProperty name=jetty.home default=.//WEB-INF/etc/realm.properties/Set /New /Set /Get /Configure We still get the same errors as I originally reported. I think the way we inject the Realm into the JeTTY SecurityHandler is still almost the same - just slightly different XML notation for doing the set. The Realm does in fact work and when we hit the GWT start page for the app it does in fact re-direct to the login page as you would expect as stated in my previous response. I guess for now the errors that come out can be treated as noise because the realm does in fact work - its just the [WARN] Unknown realm: SecurityTestRealm message that goes to the console implies that it wouldn't. The next thing I have to do now is re-build my Filter that intercepts login re-directs when the client-side JavaScript makes an RPC call and the session has expired. I unfortuately lost this class as I hadn't dropped it into our svn repo before I rebuilt my entire eclipse environment (doh!). Its not too bad so I should have that back again soon. I hope I can get to the point where I can document what I think is probably the most straight forward way of getting J2EE container managed security and sessions working with GWT. There are lots of chunks of useful information about this out there - but there isn't a single source of information that pulls it all together with a full working example for people to study. Maybe I will try and do this. Regards Ian. On Jan 8, 9:47 am, lemaiol lema...@gmail.com wrote: Hi Ian, It seems that the Jetty version could have changed and also its API. Try with this little change in the syntax of the configuration (we guessed it looking at the jetty classes API and it worked for us): cheers, Alberto ?xml version=1.0? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Get name=SecurityHandler Set name=UserRealm New
Re: Is it possible to have a resizable FlexTable
I saw your message and my gut reaction is that you should probably be doing this in css. As far as the browser is concerned it's just a table so having it react to the browser resizing should be easily done In css. On Jan 7, 2:37 pm, chris ceb...@gmail.com wrote: I was wondering if any one has had success with making a FlexTable that re-sizes when the browser does. I've added a ResizeListener that re-sizes the root element whenever the browser re-sizes, and this seems to work with most GWT components. My ResizeListener: Window.addResizeHandler(new ResizeHandler() { public void onResize(ResizeEvent event) { int height = event.getHeight(); int width = event.getWidth(); RootPanel.get(myApp).setHeight(height + px); RootPanel.get(myApp).setWidth(width + px); } }); However, I can't seem to get the flex table to re-size: I've tried to get the FlexTable to resize via getFlexCellFormatter ().setWordWrap and applying a css style with word-wrap: break- word; . If I create the sample Composite provided below, the button re-sizes as expected, but the flex table does not. public class Test extends Composite { final SimplePanel panel = new SimplePanel(); final VerticalPanel vertPanel = new VerticalPanel(); final Button test = new Button(test); final FlexTable flexTable = new FlexTable(); public Test() { vertPanel.setWidth(100%); test.setWidth(100%); vertPanel.add(test); flexTable.setSize(100%, 100%); flexTable.setCellPadding(0); flexTable.setCellSpacing(0); flexTable.setText(0, 0, blaaah); flexTable.setText(0, 0,vrommm); flexTable.getFlexCellFormatter().setWordWrap(0, 0, true); flexTable.getFlexCellFormatter().setWordWrap(0, 1, true); panel.add(flexTable); panel.setSize(100%, 100%); initWidget(panel); } } Any help would be greatly appreciated -- 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: Webbrowser game made with GWT 2.0: lacesfirst.com
Assuming a setup with Eclipse, I did the following: * Create file /src/jndi.properties: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces java.naming.provider.url=dns.or.ip.of.j2ee.server * Create file /war/WEB-INF/jetty-web.xml: ?xml version=1.0 encoding=UTF-8? !DOCTYPE Configure PUBLIC -//Mort Bay Consulting//DTD Configure//EN http://jetty.mortbay.org/configure.dtd; Configure class=org.mortbay.jetty.webapp.WebAppContext Set name=systemClasses Array type=java.lang.String Itemjava./Item Itemjavax.servlet./Item Itemjavax.xml./Item Itemorg.mortbay./Item Itemorg.xml./Item Itemorg.w3c./Item Itemorg.apache.commons.logging./Item Itemorg.apache.log4j./Item Itemorg.slf4j./Item /Array /Set Set name=serverClasses Array type=java.lang.String Itemorg.mortbay.jetty./Item Itemorg.mortbay.start./Item Itemorg.mortbay.stop./Item /Array /Set /Configure Create a servlet which will forward all requests to a SessionBean on the JBoss Server: public class RemoteEJBProxyServlet extends RemoteServiceServlet { protected InitialContext ctx; @Override public void init() throws ServletException { super.init(); try { this.ctx = new InitialContext(); } catch (Exception e) { System.err.println(e.getMessage()); throw new ServletException(Could not create InitialContext, e); } } @Override public String processCall(String payload) throws SerializationException { try { // Get the session bean Object bean = ctx.lookup(The JNDI name of your SessionBean); // Decode the request and test if it is legal RPCRequest rpcRequest = RPC.decodeRequest(payload, bean.getClass(), this); // Invoke the requested method on the bean and return the encoded (=RPC serialized) result return invokeAndEncodeResponse(bean, rpcRequest, rpcRequest.getSerializationPolicy()); } catch (NamingException ex) { ex.printStackTrace(); return RPC.encodeResponseForFailure(null, new Exception (ex.getMessage())); } catch (IncompatibleRemoteServiceException ex) { ex.printStackTrace(); return RPC.encodeResponseForFailure(null, ex); } } private String invokeAndEncodeResponse(Object target, RPCRequest rpcRequest, SerializationPolicy serializationPolicy) throws SerializationException { String responsePayload; Method method = rpcRequest.getMethod(); Object[] args = rpcRequest.getParameters(); try { Object result = method.invoke(target, args); responsePayload = RPC.encodeResponseForSuccess(method, result, serializationPolicy); } catch (IllegalAccessException e) { throw new SecurityException(e); } catch (IllegalArgumentException e) { throw new SecurityException(e); } catch (InvocationTargetException e) { Throwable cause = e.getCause(); responsePayload = RPC.encodeResponseForFailure(method, cause, serializationPolicy); } return responsePayload; } } Also make sure that the J2EE Server libraries are included in the Eclipse Run Configuration of your GWT Development Mode. These are needed by Jetty to connect to the J2EE Server. In the case of JBOSS these are all of the JAR files in JBOSS-DIR/ client and JBOSS-DIR/common/lib. Greetz, Menno. On 7 jan, 17:31, mariyan nenchev nenchev.mari...@gmail.com wrote: Could you give us small step by step guide how to make gwt 2.0 development mode working with gwt RPC and JBoss ejb beans? I never got it to work. On Thu, Jan 7, 2010 at 5:47 PM, Fushion menno.van.gange...@gmail.comwrote: Well, I started about 2 years ago, just a few hours a month trying out various GWT things and gradually upgrading to newer GWT versions (1.3 - 1.4 - 1.5 - 1.6 - 1.7 - 2.0). Upgrading was always easy as I found out.
Re: addWindowClosingHandler firing when frame loads in IE
Tom, is there any way to capture the value of an anchor's href in my GWT code? My situation is that my application receives String from an RPC call that is bounded by the pre tag and contains any number of anchors. I display this in a HTML object in a SimplePanel in a ScollPanel for the user to read. Clicking on one of the anchors is supposed to request some additional info from the server about the text highlighted by that anchor. (The text file itself is from a text search database. The anchors mark items in the document that cause the document to be a search hit.) The href's I've been creating on the server point back into my application with a history token that makes the server call and pops up a dialog box. This works fine in Firefox and Safari, but on IE I have jd's problem--my application reloads. Calling preventDefault() inside the click handler for my HTML object stops the call, but I need the data in the href to do anything useful (like make my next server call and show a pop-up at NativeEvent client x and y). Thanks On Jan 8, 9:30 am, Thomas Broyer t.bro...@gmail.com wrote: On Jan 8, 12:29 pm, John Patterson jdpatter...@gmail.com wrote: On 8 Jan 2010, at 16:22, Thomas Broyer wrote: Use Hyperlink or InlineHyperlink widgets for internal navigation (unless you also want ClickHandlers, in which case Anchor is fine, calling History.newItem() in a ClickHandler, but do not forget to ClickEvent#preventDefault() // this is more or less what Hyperlink/InlineHyperlink widgets do). Using Anchors caused onWindowClosing() to be called in IE7/8 so I could not use them. Using Button has solved this so far although I have a lot of default CSS to override. I just tested with Hyperlink as you suggested and this also works fine. Perhaps the difference is that it uses # as the href rather than javascript:; so IE recognises this as an internal link. No, the reason is that it ClickEvent#preventDefault() in a ClickHandler. If you do the same with an Anchor in your ClickHandler, it'll work too. Hyperlink/InlineHyperlink though has some differences with Anchor that make it worth it: - the link's href= is the history token the Hyperlink targets, so you can right-click - open in new window (or tab), or ctrl+click or middle-click or whatever to open the link in another window/tab; and you can of course also drag'n'drop the link into another application to have a direct URL to the page targeted by the Hyperlink - the ClickHandler only ClickEvent#preventDefault() under some conditions, so that the right-click, middle-click and ctrl+click work OK (and the conditions are different depending on the browser, thanks to GWT's deferred binding feature) If you don't want this behavior, then a Button or Label/InlineLabel would be more appropriate than Anchor or Hyperlink/InlineHyperlink. -- 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.
How to change in GXT Header
Hi how can we make changes in GXT header like color, image, editing of header all those thing? -- 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-servlet.jar being deleted at each Eclipse startup after upgrading to gwt 2.0
http://code.google.com/p/google-web-toolkit/issues/detail?id=4463 On Jan 4, 10:09 am, Miguel Méndez mmen...@google.com wrote: Please file a bug against the plugin in the issue trackerhttp://code.google.com/p/google-web-toolkit/issues/list . On Fri, Jan 1, 2010 at 4:58 PM, Jeff Schnitzer j...@infohazard.org wrote: Amazingly, you're right. The solution is to ignore the message, *don't* revert your files back, and restart Eclipse again. The plugin deletes the files the first time, then recreates them the second... and since the new files are identical to the old, svn is happy. Jeff On Fri, Jan 1, 2010 at 12:18 AM, John OConner jsocon...@gmail.com wrote: I found the culprit. The eclipse plugin preferences file explicity names gwt-servlet.jar as a file that it must copy to the web-inf/lib directory. So I assume that SVN (and for me it is Perforce) see that action as an attempted delete as well. I resolved this myself by removing that file from web-inf/lib and just letting the plugin have its way. I tried deleting the offending line from the preferences file, but the plugin insisted on replacing that line on startup. Odd, if an application *insists* on a very specific setting regardless of user intentions or my own preferences, why put the setting in an external preferences file to begin with? Regards, John O'Conner On Dec 31 2009, 7:05 pm, Jeff Schnitzer j...@infohazard.org wrote: I have this exact same problem... it's quite annoying. It also sometimes happens with GAE jars. Every time I restart Eclipse I have to go through my projects and revert any deleted jars. Jeff On Wed, Dec 30, 2009 at 5:53 PM, itwip.81 itwip...@gmail.com wrote: Dear Sir/Madam, I have encountered a problem after upgrading from GWT 1.7 to 2.0. I did uninstall all of the previous GWT SDKs, AppEngine and plugin before I install the new 2.0 plugin. I am using Subversion/subclipse for version control in our eclipse project. However, the gwt- servlet.jar has been marked as being deleted (according to subversion - red cross) every time I start up eclipse since I upgrade to gwt 2.0. So, now i will need to revert the deletion every time I reopen the project before commiting anything. Have anyone experience this before? Does anyone know the soultion to solve this annoying problem. PS: It seems like GWT 2.0 plugin is trying to replace the 2.0 gwt- servlet.jar with any existing gwt-servlet.jar in our project folder after the upgrade. But it is wrong to repeat this process everytime i reopen the project. Best regards, Martin -- 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%2Bunsubs cr...@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-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: addWindowClosingHandler firing when frame loads in IE
On Jan 8, 7:27 pm, Thad thad.humphr...@gmail.com wrote: Tom, is there any way to capture the value of an anchor's href in my GWT code? My situation is that my application receives String from an RPC call that is bounded by the pre tag and contains any number of anchors. I display this in a HTML object in a SimplePanel in a ScollPanel for the user to read. Clicking on one of the anchors is supposed to request some additional info from the server about the text highlighted by that anchor. (The text file itself is from a text search database. The anchors mark items in the document that cause the document to be a search hit.) The href's I've been creating on the server point back into my application with a history token that makes the server call and pops up a dialog box. This works fine in Firefox and Safari, but on IE I have jd's problem--my application reloads. Calling preventDefault() inside the click handler for my HTML object stops the call, but I need the data in the href to do anything useful (like make my next server call and show a pop-up at NativeEvent client x and y). Ah, OK, so in your case, retrieving the NativeEvent's EventTarget, cast ()ing into an AnchorElement (well, first verifying that it *is* an A element by checking its getTagName(), and walking the tree up until the HTML widget's getElement() or an A element is found) then calling AnchorElement#getHref() should give you what you want. Then get the indexOf(#) and then the substring(hashIndex) to pass it to History.newItem(...). You'll find similar code walking up a DOM tree in HTMLTable#getEventCellTarget (or a similar named private/protected method, this is from memory), in this case it's looking for TD elements. -- 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: UiBinder, focus events
On Jan 8, 6:38 pm, John nesre...@gmail.com wrote: Using UiBinder setup, but I can't figure out how to detect loss of focus from a TextBox. No matter what I do, only Focus Gained is detected. I thought of examining the FocusEvent, but since the method isn't even called on Focus Lost, there's no point in doing that. I have this: @UiHandler( textBox ) void onVideoIdTextBoxLostFocus( FocusEvent event ){ do something with text in textbox } I don't think it matters what the name of the method is. Can somebody point me in the right direction? What you're actually looking for is the BlurEvent. -- 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: UiBinder, focus events
On Fri, Jan 8, 2010 at 1:54 PM, Thomas Broyer t.bro...@gmail.com wrote: What you're actually looking for is the BlurEvent. Thanks. That works. 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: Quick question about gwtc
The GWT compiler translates Java sources to JavaScript sources. This allows for things like JSNI, which would be lost in the bytecode, as well as allowing for greater optimization possibilities On Jan 8, 7:14 am, Chris Lercher cl_for_mail...@gmx.net wrote: Hi, quick question: What exactly does gwtc translate? Does it translate .class = .js or .java = .js? I thought I'd find the answer easily in the build.xml generated by webAppCreator - but target gwtc takes both the source and the classes as input, so I'm none the wiser... Thanks Chris -- 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-mvc 0.4 is released
http://code.google.com/p/gwt-mvc/ http://code.google.com/p/gwt-mvc/wiki/ReleaseNotes http://gwt-mvc.googlecode.com/svn/trunk/gwt-mvc-poc/demo/0.4/com.googlecode.gwtmvc.poc.GwtMvcPoc/GwtMvcPoc.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-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: Validating user input
Thanks. I'll take a look. On Jan 8, 6:50 am, Lukasz l.plotni...@googlemail.com wrote: Hi, In my current project I'm using the gwt validation library (http:// sourceforge.net/projects/gwt-vl/) which supports both client- and server-side validation and integrates itself nicly with e.g. hibernate- validation ... Maybe it's something you're looking for. Kind regards, Lukasz On 7 Jan., 20:13, Dave ladjo...@gmail.com wrote: Hi, Could someone point me to some resources that shows how to validate user input. Specifically, to remove harmful javascript injection attacks etc. I would like to see the validation code done at both server and client. I have searched already and I come across issues related to XSS and forged request etc. -- 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 compiler fail
After some research, and adding verbose to the compile step, I found this is a memory error. I tried various values for the -Xss -Xms and -Xmx options, and finally got the compile to succeed. On Jan 7, 12:28 pm, lfrohman lfroh...@gmail.com wrote: On the GWT 2.0 compile, I am getting a The following error occurred while executing this line: ... Java returned: 137 but there is no error description. Has anyone seen 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-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: Referencing deprecated class warning stack
I've updated the issue with a workaround, let me know if it doesn't work for anyone. Also, if you don't mind, please star the issue so that it gets prioritized correctly. - Chris On Fri, Jan 8, 2010 at 12:38 PM, Trevis trevistho...@gmail.com wrote: I've been watching this thread too. 2.0 also introduced this for me as well. On Jan 8, 2:48 am, khaled.tl...@gmail.com khaled.tl...@gmail.com wrote: Hi, I've got the same type of exception with same environment. Is there something that we missed? Regards. KT On Jan 2, 7:54 pm, leslie web...@comcast.net wrote: Eclipse 3.5 Galileo Java EE Cocoa Java 1.5.0_13 Mac OS X 10.5.7 GWT 2.0 Hello, I'm seeing a series of warning messages in my console when I attempt to compile my project. Posted below: Scanning for additional dependencies: file:/Users/leslie/Documents/ projects/myprojectfolder/galileoWorkspace/myproject/src/com/foo/ projectgwt/controller/AddAddressListener.java Adding '2' new generated units Validating newly compiled units [WARN] Warnings in 'generated:// 27507DF474CDC042922DAFFEA239ABF3/com/foo/projectgwt/client/ AddressService_TypeSerializer.java' [WARN] Line 81: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection' [WARN] Line 86: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection' [WARN] Line 91: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection' [WARN] Line 96: Referencing deprecated class 'com.google.gwt.user.client.ui.FormHandlerCollection' [WARN] Line 101: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection' [WARN] Line 106: Referencing deprecated class 'com.google.gwt.user.client.ui.LoadListenerCollection' [WARN] Line 111: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseListenerCollection' [WARN] Line 116: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' [WARN] Line 121: Referencing deprecated class 'com.google.gwt.user.client.ui.PopupListenerCollection' [WARN] Line 126: Referencing deprecated class 'com.google.gwt.user.client.ui.ScrollListenerCollection' [WARN] Line 131: Referencing deprecated class 'com.google.gwt.user.client.ui.TabListenerCollection' [WARN] Line 136: Referencing deprecated class 'com.google.gwt.user.client.ui.TableListenerCollection' [WARN] Line 141: Referencing deprecated class 'com.google.gwt.user.client.ui.TreeListenerCollection' See snapshot: /tmp/ AddressService_TypeSerializer49102.java I'm not referencing any of these classes in my code. I've posted elsewhere in another related thread which involved the assignment of collections. And in that case the discussion referred to the RPC calls returning objects of Collection types. But in this class, that isn't happening. This class, AddAddressListener, does not use or involve any types of collection classes. And furthermore, I didn't notice any of these messages in my code until I made assignment changes in my GUI code, in classes which may use this listener. (but then I tried to reverse these changes and yet still the issue remains - so now I have no idea..) But why is the warning message targeting this class? This is just part of the stack that appears in the console. There are other classes referenced there too and the warnings are very similar, maybe identical. I'm focusing on one for brevity. I guess my question is - What does this warning stack mean and how should I resolve it? -- 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: Deprecation warning in all RPCs dealing with collections on GWT 2.0 RC2
*I've updated the issue ( http://code.google.com/p/google-web-toolkit/issues/detail?id=4438) with a workaround, let me know if it doesn't work for anyone. * * * *- Chris * On Wed, Jan 6, 2010 at 1:42 PM, Chris Ramsdale cramsd...@google.com wrote: Please star the issue and add any relevant data you may have. - Chris On Wed, Jan 6, 2010 at 8:14 AM, Bert roexb...@gmail.com wrote: I'm experiencing the same problem. On Dec 8 2009, 6:24 pm, Luis Fernando Planella Gonzalez lfpg@gmail.com wrote: Hi. We're using GWT 1.7 and I'm starting to experiment with 2.0 RC2 to evaluate GWT.runAsync(). However, now as I compile the app, I get warning for deprecations in all RPC methods which return collections. I guess it's because the result is declared as java.util.Collection, and the deprecated com.google.gwt.user.client.ui.*ListenerCollection classes extends ArrayList, making even the alternative to change the result of RPC methods to ArrayList instead of Collection don't work. The log is something like this, multiple times: [WARN] Warnings in 'generated:// 8D0B12EA4B123D9B133384111C9A7E38/nl/strohalm/cyclos/client/app/users/ images/UserImageRemoteService_TypeSerializer.java' [WARN] Line 50: Referencing deprecated class 'com.google.gwt.user.client.ui.ChangeListenerCollection' [WARN] Line 55: Referencing deprecated class 'com.google.gwt.user.client.ui.ClickListenerCollection' [WARN] Line 60: Referencing deprecated class 'com.google.gwt.user.client.ui.FocusListenerCollection' [WARN] Line 65: Referencing deprecated class 'com.google.gwt.user.client.ui.FormHandlerCollection' [WARN] Line 70: Referencing deprecated class 'com.google.gwt.user.client.ui.KeyboardListenerCollection' [WARN] Line 75: Referencing deprecated class 'com.google.gwt.user.client.ui.LoadListenerCollection' [WARN] Line 80: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseListenerCollection' [WARN] Line 85: Referencing deprecated class 'com.google.gwt.user.client.ui.MouseWheelListenerCollection' [WARN] Line 90: Referencing deprecated class 'com.google.gwt.user.client.ui.PopupListenerCollection' [WARN] Line 95: Referencing deprecated class 'com.google.gwt.user.client.ui.ScrollListenerCollection' [WARN] Line 100: Referencing deprecated class 'com.google.gwt.user.client.ui.TabListenerCollection' [WARN] Line 105: Referencing deprecated class 'com.google.gwt.user.client.ui.TableListenerCollection' [WARN] Line 110: Referencing deprecated class 'com.google.gwt.user.client.ui.TreeListenerCollection' See snapshot: /tmp/ UserImageRemoteService_TypeSerializer2951604978153994580.java Is there a way to remove those classes from being handled in RPC? -- 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: Problem with ClientBundle image resources in development mode.
Right, but I specifically turned the data URIs off (with ClientBundle.enableInlining = false) because I was getting issues with sprites in IE. So in order to debug them in Firefox in development mode I need it to work. On Jan 7, 1:29 am, Thomas Broyer t.bro...@gmail.com wrote: On Jan 7, 3:35 am, Arkady arka...@gmail.com wrote: Hello, I am having the following problem with ClientBundle. Since I am using external web server (IIS), each time I add new image resources to the ClientBundle, I recompile using ant build target and copy all generated md5.cache.png files to the web server. After I added several image resources with repeatStyle == Horizontal, which are used in the @sprite definitions inside the css file, when I run the app in the development mode I don't see the background images because the composite md5.cache.png image, corresponding to those background images, fails to load returning error 404. If I copy to the web server the md5.cache.html files as well and run the application directly from the web server (production mode) everything works fine. I suspect that the md5 name for the composite image generated by the gwtc is different from the name that the development mode puts in the injected css. Is this a known issue with development mode in GWT 2.0? You can also just use any browser other than IE6 or IE7, as they support data: URIs so they don't have to load any *.cache.png file ;-)- 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-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: addWindowClosingHandler firing when frame loads in IE
Bingo again, Tom. In fact, doing this I don't even have to bother with History. I just grab the value href, parse it, and call my pop- up. I don't want (or need) it in the history change. On Jan 8, 1:52 pm, Thomas Broyer t.bro...@gmail.com wrote: ... Ah, OK, so in your case, retrieving the NativeEvent's EventTarget, cast ()ing into an AnchorElement (well, first verifying that it *is* an A element by checking its getTagName(), and walking the tree up until the HTML widget's getElement() or an A element is found) then calling AnchorElement#getHref() should give you what you want. Then get the indexOf(#) and then the substring(hashIndex) to pass it to History.newItem(...). You'll find similar code walking up a DOM tree in HTMLTable#getEventCellTarget (or a similar named private/protected method, this is from memory), in this case it's looking for TD elements. -- 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 Intigration with existing project .... Hosted mode issues.
if you moved the gwt.xml behind your client package you don't need specify source tag. Try removing it. On 7 ene, 07:25, Sorinel C scristescu...@hotmail.com wrote: Have you try to set up the dev env right? for this check first this:http://ui-programming.blogspot.com/2009/12/update-your-application-to... Then, if it's not solving the problem for you do this: - create a newGWTprojectin another eclipse workspace - verify that the generateprojectstructure is the same like yours. - start adding stuff from the oldprojectto the new one by one ... At the end, you'll get there where you want. Success! -- 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.
String.equals not working in IE
Here is the scenario: I have a TextArea on my page that displays a couple of paragraphs pulled from the database for editing. When the form is submitted the TextArea contents are checked to see if any changes have been made. Here is the Java code to test for changes: if (newFormText.equals(originalDBText)) formChanged = false; This works fine for Firefox but fails on IE. I had a hunch it was the returns between the paragraphs so I URL- encoded the text to see. Original text from db: paragraph%0D%0A%0D%0Aparagraph IE sends back this: paragraph%0A%0Aparagraph while FF sends back: paragraph%0D%0A%0D%0Aparagraph The classic Unix/DOS carriage return / line feed problem. So even if the text is unchanged by the user the browser may sent back different text. I may be missing something obvious, but I would have thought this would be something GWT or Javascript took care of automatically. Is there a quick fix / best practice / alternative method available? -- 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: Composite and Resize event.
Hi Suddep, Which code u r looking, JavaScript or Java etc.,, If you can send the screen shot it will be very easy to understand. -Venkat On Thu, Jan 7, 2010 at 11:33 AM, Sudeep S sudee...@gmail.com wrote: Hi I have a vertical panel which has multiple sections and each of them is a composite. There is an option to add or remove records from these sections.how can the container panel be reiszed/notified with the events in the section composite. Any suggestions solutions ideas are welcome. Thanks Sudeep -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Thanks Regards, Venkata Ramana. A M# 650-210-6384 -- 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 Session management regardless of Servlet Container
No, it doesn't. Why it doesn't? How an attacker can obtain and pass our rpc-sessionId? -- 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: Working in development mode in GWT with php
I have ths exact problem with another JSON application using GWT 2.0. It works fine when compiled but the exact same code does not work in hosted mode. I am using SmartGWT, but do not think that is the problem... Doug On Jan 6, 7:35 pm, Skeezix skeezix6...@gmail.com wrote: also when I compile and deploy the compiled output (inside the war folder) to the server, it operates properly...hope someone can help me set this up properly so i can test/debug my app without recompiling and uploading it to the server On Jan 6, 4:59 pm, Skeezix skeezix6...@gmail.com wrote: Hi, I've recently started on the Client-Server Communication part of the tutorial of GWT.I've done everything that is said in the JSON and JSON - PHP part of the tutorial, yet im unable to get the JSON data from the php script.My setup uses XAMPP and the Stockwatcher project is located at C:\xampp\htdocs\...so that makes the host page at C:\xampp\htdocs\StockWatcher\war\ so is the stockPrices.php. When I run the app in dev mode the stock changes wont show and I get an exception..it says 16:53:00.079 [ERROR] [stockwatcher] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (NS_ERROR_NOT_AVAILABLE): Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.statusText] QueryInterface: function QueryInterface() { [native code]} result: 2147746065 filename:http://localhost: lineNumber: 48 columnNumber: 0 inner: null data: null initialize: function initialize() { [native code]} at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript (BrowserChannelServer.java:195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke (ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative (ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject (ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject (JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke (MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke (MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke (OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages (BrowserChannel.java:1668) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection (BrowserChannelServer.java:401) at com.google.gwt.dev.shell.BrowserChannelServer.run (BrowserChannelServer.java:222) at java.lang.Thread.run(Unknown Source) btw the JSON_URL that I used is http://localhost:8080/StockWatcher/ war/stockPrices.php?q=, since this is how I accessed the php script. Hope someone can 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-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: Listen for Browser resize event
You can do it in GWT 1.6+ with: Window.addResizeHandler(new ResizeHandler() { @Override public void onResize(ResizeEvent event) { put your code here } }); or in GWT prior 1.6 with: Window.addWindowResizeListener(new WindowResizeListener() { @Override public void onWindowResized(int arg0, int arg1) { put your code here } }); On Thu, Jan 7, 2010 at 7:56 AM, mariyan nenchev nenchev.mari...@gmail.comwrote: Hi, I have one popup that has absolute positioning. It is positioned according some other widget which is not absolute. But when i resize the browser the popup must be repositioned. Is it possible to listen for such resize event? Regards. -- 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.
Loading/parsing time for CssResource
Hi, I'm playing around with GWT 2.0 and I really like it! But I've encountered a problem with ClientBundles/CssResources. After moving my static CSS files from the HTML-file (style-tags) to a ClientBundle in my EntryPoint, I have timing problems. I position some elements relative to others in an Widget#onLoad() method and the positioning is wrong. I think the (in a static initializer) injected CSS rules are not loaded/parsed/evaluated completely at the time my positioning code runs. For a test, I deferred my positioning (by triggering it via a button- click in the UI) and everything works as expected. Moving the CSS back to the HTML-page works as well, but is neither my nor *the* preferred solution :) I think it's quite important to have the CSS rules included in a ClientBundle fully evaluated before firing any on-load events or calling these methods. Or is there another way to do this? Something like a ClientBundle/ CssResource onLoad-method could be a (rather dirty) work-around... Thank you, Sebastian -- 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: Validating user input
Hi Dave, The JavaScript code sample for Number validation: for Client side validation function isNumeric(obj, fieldName) { var str = obj.value; if ( ! isEmpty(obj, fieldName) ) { if ( ! ValidateNumeric(obj.value) ) { alert(fieldName + can have only numeric values.); obj.value = ; obj.focus(); return false; } else { //obj.value = parseInt(str); return true; } } else { return false; } return true; } function isEmpty(obj, fieldName) { var str = obj.value; if ( ! ValidateNotEmpty(str) ) { alert(fieldName + is a mandatory field.); obj.value = ; obj.focus(); return true; } return false; } if ( ! isNumeric (document.formName.fieldName, 'FieldDisplayName') ) { return false; } The Javat code sample for Number validation: for Server side validation public static boolean isNumeric(String sTextString) { boolean bResult = false; Pattern p = Pattern.compile(^[0-9.]+$); Matcher m = p.matcher(sTextString); bResult = m.matches(); return bResult; } if ( ! ClassName.isNumeric(objBean.getFunctionId().trim()) ) { objErrors.add(ActionErrors.GLOBAL_ERROR, new ActionError(errors.database.error, Selected Function Name in Form Input is Not Valid.)); } -Venkat On Thu, Jan 7, 2010 at 11:13 AM, Dave ladjo...@gmail.com wrote: Hi, Could someone point me to some resources that shows how to validate user input. Specifically, to remove harmful javascript injection attacks etc. I would like to see the validation code done at both server and client. I have searched already and I come across issues related to XSS and forged request etc. -- 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. -- Thanks Regards, Venkata Ramana. A M# 650-210-6384 -- 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: Add massive data into a Grid or FlexTable
I have fixed it , it is my fault , because I always works under dev model while I switch to web model , the time is below 0.5 second now. On Thu, Jan 7, 2010 at 9:49 AM, 郑翼羽 ground...@gmail.com wrote: Hi, I need to construct a table like grid with massive data, for example 100 * 60. The code I used is dataGrid.setText(i, j, value), so I need to call it 6000 times, and the value varied from null data to strings with unfixed length. It took nearly 4 seconds to display grid, regardless of the data transfer time. Date d3 = new Date(); for (int i = 0; i result.length; i++) { String[] rowValues = result[i]; for (int j = 0; j rowValues.length; j++) { String value = rowValues[j]; if (value != null) { dataGrid.setText(i, j, value); } } } d2 = new Date(); l.setText((d2.getTime() - d1.getTime()) / 1000.0 + _ + (d2.getTime() - d3.getTime()) / 1000.0 + ); Is there any other method to speed up these action such as add a row in one time? Anyone could help me, or point out whether my codes have some problems? -- 郑翼羽 Nari Info Nju 13813068756 -- 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.
Add massive data into a Grid or FlexTable
Hi, I need to construct a table like grid with massive data, for example 100 * 60. The code I used is dataGrid.setText(i, j, value), so I need to call it 6000 times, and the value varied from null data to strings with unfixed length. It took nearly 4 seconds to display grid, regardless of the data transfer time. Date d3 = new Date(); for (int i = 0; i result.length; i++) { String[] rowValues = result[i]; for (int j = 0; j rowValues.length; j++) { String value = rowValues[j]; if (value != null) { dataGrid.setText(i, j, value); } } } d2 = new Date(); l.setText((d2.getTime() - d1.getTime()) / 1000.0 + _ + (d2.getTime() - d3.getTime()) / 1000.0 + ); Is there any other method to speed up these action such as add a row in one time? Anyone could help me, or point out whether my codes have some problems? -- 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.
StringBuffer problems in GWT
The simplest way to explain my problem is to show you an example. CODE USING String: String str = Two; str += \n; str += lines; System.out.println(str); OUTPUT: Two lines CODE USING StringBuffer: StringBuffer sb = new StringBuffer(); sb.append(Two); sb.append(\n); sb.append(lines); System.out.println(sb.toString()); OUTPUT: Two\nlines I've tried everything to try to get it to recognize the \n's, but nothing works. It won't recognize anything that came from StringBuffer as an escape character. It reads them all literally. \r, \t, and even html tags. Is this a bug or is there something I'm missing? -- 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.
Development mode - refresh is not enough to see my changes!
Hello :) I am very, very new to all this GWT stuff... so I might need all your patience!! ;D Sorry! I have created a very simple GWT application... and can see it working when I launch in development mode from within my Intellij IDEA! 8D I am having a bit of a problem with this development mode though: When I make some changes in the EntryPoint class I can see those changes by just doing a refresh in my browser... but when I do changes to the host page I need to restart development mode before I can see the changes... Does anybody have an idea of what I am doing wrong? :/ Cheers from Stine :) -- 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.
Can't open my GWT-page
Hi, I created a little GWT-Page. But after I upgraded my GWT to 2.X I can't open the page anymore. The browser always says: Please (re) compile the project, or use hosted mode (actually it doesn't say that litterally, but you know what I mean :) ). I recompiled the project several times and no compiling erros occur. I'm running WinXP SP3 with GET-Eclipse Plugin. Thanks for any advice! noise -- 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 module may need to be (re)compiled
Hi! I had the same problem and I fix it by changing this line in my public void onModuleLoad() method: RootLayoutPanel.get().add(myDockLayout); for the following lines: RootLayoutPanel.get().add(myDockLayout); RootPanel.get().add(RootLayoutPanel.get()); My previous line work like a charm in DEV mode, but I doesn't work once compiled... After this change, it works it both ways! Hope this helps... On Dec 18 2009, 6:36 am, Haydar haydarim...@gmail.com wrote: Thanks, it really helped me... On 18 Aralık, 12:13, Thomas Matthijs thomas.matth...@gmail.com wrote: However after I login and the location of the window changes, I see nothing but an error-boxon the screen: Gwt module 'secondApp' may need to be (re)compiled. This error usually means that you are missing the ?gwt.codesrv= (sp?) parameter, probably gets lost in your redirect to the page -- 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.
Need to insert pdf in tabbed pane
Hi , I need to insert the pdf/excel in the tabbed pane.Can any one help me on this. Thanks Sasiraj -- 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.
Problem with IE.
I am playing with GWT 2.0 and it just works fine with Chrome and FF, but not with IE. I have tested it with IE 7 and 8. Strange thing is that both show no errors at all and say module is loaded. There is no problem to view its source code through IE. It sounds very normal but nothing is displayed. Anyone knows why? -- 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.
How to redefine standard.css ?
Hi, I have a little application (a diaporama) in GWT. I should want distribute this application. But GWT put standard.css at the end of css declarations, so it remove all specifics css. How is it possible to modify that ? I have read How to disable standard css at http://groups.google.com/group/google-web-toolkit/browse_frm/thread/5a52ec845d515fb6/016aa7b7a1daa09e?lnk=gstq=standard.css#016aa7b7a1daa09e but it's nok for me : I can't say to my users Hey please modify the gwt.xml micmac... I'm using GWT 2.0. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT dev mode with pre-installed tomcat
Hello, I use IntelliJ as IDE but basically what I do is to start the Tomcat as normal and to start the GWT class com.google.gwt.dev.DevMode with the following params. -noserver -gen /Users/hennebrueder/workspaces/default/bund-apfel/ target/bund-apfel-gen -war /Users/hennebrueder/workspaces/default/bund- apfel/target/bund-apfel -startupUrl apfel/Editor.html de.laliluna.bund.Editor Here is the full java command which includes all libs as well. /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/bin/java -Xmx512m -Dfile.encoding=MacRoman -classpath /System/Library/ Frameworks/JavaVM.framework/Versions/1.6/Home/lib/deploy.jar:/System/ Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/dt.jar:/ System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home/lib/ javaws.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/ Home/lib/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/ 1.6/Home/lib/management-agent.jar:/System/Library/Frameworks/ JavaVM.framework/Versions/1.6/Home/lib/plugin.jar:/System/Library/ Frameworks/JavaVM.framework/Versions/1.6/Home/lib/sa-jdi.jar:/System/ Library/Frameworks/JavaVM.framework/Versions/1.6/Home/../Classes/ charsets.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.6/ Home/../Classes/classes.jar:/System/Library/Frameworks/ JavaVM.framework/ /Users/hennebrueder/.m2/repository/hsqldb/hsqldb/1.8.0.7/ hsqldb-1.8.0.7.jar com.google.gwt.dev.DevMode -noserver -gen /Users/ hennebrueder/workspaces/default/bund-apfel/target/bund-apfel-gen -war / Users/hennebrueder/workspaces/default/bund-apfel/target/bund-apfel - startupUrl apfel/Editor.html de.laliluna.bund.Editor Best Regards Sebastian Hennebrueder On Jan 8, 2:21 pm, Nuno brun...@gmail.com wrote: Hello everybody, I'm implementing gwt on a existing project. and i need to use dev mode with the already installed tomcat. Can anybody help me configure this? I'm using gwt 2.0 Att Bruno Bilescky -- Wants to learn Javascript? Read my blog / Quer aprender a programar? leia meu bloghttp://tcninja.blogspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Custom class in RPC
Hi, When I read the documentation, it says you can use any Class that implements IsSerializable and has a no args constructor and whose fields are all serializable. I created such a class but I allways get the same error: 09:31:33.795 [ERROR] [pix_me] Line 12: No source code is available for type ch.admin.ofs.diam.data.User; did you forget to inherit a required module? It should not have problems finding the class, as it is written in the application. Is there a restriction on the package the Class must be in? It must be some one line XML configuration thing, but I can not figure it out. I know it's the class because when I change the parameter type of the remote service to String the application works fine. Here is the code for the class: package ch.admin.ofs.diam.data; import com.google.gwt.user.client.rpc.IsSerializable; public class User implements IsSerializable { private String id; private String firstName; private String lastName; public User() { super(); } /** * @return the id */ public String getId() { return id; } /** * @return the firstName */ public String getFirstName() { return firstName; } /** * @param firstName the firstName to set */ public void setFirstName(String firstName) { this.firstName = firstName; } /** * @return the lastName */ public String getLastName() { return lastName; } /** * @param lastName the lastName to set */ public void setLastName(String lastName) { this.lastName = lastName; } } -- 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 can I write to file system from GWT servlet
Hi, I have the same problem. I deactivated GEA in Project Properties Google App Engine but now my client side application doesn't work probably. I m using some objects from smartgwt and the skin seems to be disappeared. If I put the GEA back on everything works fine again (except the filewriting thing...) What can I do now? Thanks for your time. Hackle On Dec 21 2009, 3:43 pm, darkling darkling...@aol.com wrote: Thanks that seems to work well. Just one (probably stupid question) what does it mean to turn off he app engine? Does this effect the way the client side code would run? Thanks On Dec 21, 9:17 am, Nicanor Cristian nicanor.bab...@gmail.com wrote: GWT is a framework for clientside. There is no sandbox for server side. AFAIK the gwt-rpc servlet is an extension of HttpServlet. I don't see any difference between a normal servlet and the gwt-rpc one. Eclipse could tell you that because you enabled google application engine (GAE) and the latter doesn't supportfilewriting. On 12/21/2009 02:36 PM, darkling wrote: I'm using GWT for my web app and Apache POI for a subsystem that involves reading and writing Excel docs. However when I try to build a servlet that uses FileOutputStream, Eclipse tells me that GWT won't allow me to use anyfilewriting class. I just need towriteout the ExcelfileI built to disk so I can pass it back to the client side. I want towriteit out to disk so that it's properly formatted as an Excelfile(I have severe misgivings about trying to pass it back to client side as an HSSFWorkbook which is the class Apache POI uses). Anyway can anyone give me an idea how towriteto disk? Or do I need to use a Content Management System andwriteto that? What are the limits of the GWT sandbox's IO and is there anyway to stretch them? Maybe I can extend HttpServlet and get filesystem access through the normal servlet? Why does GWT forbid servlets to dofileIO? Or am I just confused. Any help anyone can offer on doingfileIO from a GWT servlet would be most appreciated. -- 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.-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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help is needed (running GWT application)
Hi, I am new to GWT and I just installed GWT SDK and Eclipse plugin, after creating a GWT application I can compile and run it, but my problem that when I am copying the URL to any browser, I am getting Web Page unavailable or Link is broken. Please, any one can advise the reason of this issue and how can I rectify it. -- 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.
docklayoutpanel in a dialogbox in ie8
maybe this is super trivial but i'm having trouble getting a docklayoutpanel in a dialogbox to render correctly in ie8 (the center region occupies the entire contents of the dialogbox). everything renders correctly in firefox 3.5 however. the north and south regions are being clipped in ie8. my html host page does have !doctype html public class TestDialog extends DialogBox { interface Binder extends UiBinderWidget, TestDialog {}; private static final Binder binder = GWT.create(Binder.class); public TestDialog() { setWidget(binder.createAndBindUi(this)); setModal(true); setAnimationEnabled(true); setText(DialogBox with DockLayoutPanel); } } ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' ui:style .panel { padding: 1em; } .center { border: 1px solid red; } .buttons { text-align: right; border: 1px solid blue; } /ui:style g:DockLayoutPanel unit='EM' styleName='{style.panel}' width=700px height=400px g:north size=2 g:HTMLnorth/g:HTML /g:north g:center g:HTMLPanel styleName={style.center} Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. /g:HTMLPanel /g:center g:south size=2 g:HTMLPanel styleName={style.buttons} close button /g:HTMLPanel /g:south /g:DockLayoutPanel /ui:UiBinder -- 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 Css issues with new layout panels (Proposal)
Hello, the new layout panels SplitLayout, DockLayout etc do not mark their elements with css classes. As a consequence, if you want to style them with custom css, it is actually impossible. The only option is to inject the styles directly in the code but you cannot use stylesheets based styles. I saw a message somewhere that the developers wanted to kick out the 2 release first before reworking the CSS. My proposal is to mark all elements with css classes. Sample: div class=gwt-SplitLayoutPanel div class=gwt-north../div div class=gwt-center../div /div Every element can now be precisely styled using something like .gwt-SplitLayoutPanel gwt-north{ .. } As not all browser support the selector, it could be better to use gwt-SplitLayOutPanel-north instead of gwt-north. Best Regards Sebastian Hennebrueder http://www.laliluna.de -- 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.