Re: problem with character encoding
thx for your investigation, i'll try it with chnaged encoding of propery-file (at the moment i load it via Properties.load.getresourceasstream(file)). but is there a way to let my code let the reencoding, so that properties-file could be utf-8? ('til now i thought that all java encoding is utf-x by default :-|) On 22 Mrz., 18:26, Thomas Broyer t.bro...@gmail.com wrote: If you use the java.util.Propertieshttp://download.oracle.com/javase/6/docs/api/java/util/Properties.htmlclass to read from your properties file, depending on how you load the properties, the file should be encoded in ISO-8859-1: The load(Reader)http://download.oracle.com/javase/6/docs/api/java/util/Properties.htm...) / store(Writer, String)http://download.oracle.com/javase/6/docs/api/java/util/Properties.htm..., java.lang.String) methods load and store properties from and to a character based stream in a simple line-oriented format specified below. The load(InputStream)http://download.oracle.com/javase/6/docs/api/java/util/Properties.htm...) / store(OutputStream, String)http://download.oracle.com/javase/6/docs/api/java/util/Properties.htm..., java.lang.String) methods work the same way as the load(Reader)/store(Writer, String) pair, except the input/output stream is encoded in ISO 8859-1 character encoding. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: IE8-like tabs using GWT
Hi Bhavin- I'm not sure what an IE8-tab is. Do you just mean a tabbed interface? If so, you'll probably just need to check out the TabPanel: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/TabPanel.html Putting the tabs a the bottom is going to be trickier. Web pages are pages, not panels, so typically panel heights don't work so well. You might be able to specify a height and then have your content scroll within the panel. You're adding a lot of extra work for yourself, though. Good luck! On Mar 22, 1:47 pm, Bhavin bhavinbpar...@gmail.com wrote: Hello, We are aware as to how we add a new tab in Internet Explorer 8, now we have a requirement to bring in a similar behavior in our web application using GWT. Could someone please help me in knowing whether it's possible using GWT to have IE8-like tabs and if it is, then how can we achieve it? And one more thing is that, we are required to have these tabs at the bottom of our web page! Thanks in advance. -- Bhavin. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT communicate with Tomcat
Hi Bastian- Your questions lead me to believe that you don't fully understand what GWT is or does. The GWT simply rewrites java code into java script. This is entirely a client thing that has nothing to do with a server. Now, there is also GWT RPC, which allows this rewritten (or translated) javascript to make asynchronous calls to a server. This is typically done with a java server and Tomcat will work just fine. As someone else said, once you are in the Tomcat environment you can do whatever you want. Good luck! On Mar 22, 3:29 am, bastian stratmann bastian.stratm...@googlemail.com wrote: hi group, i'm currently giving gwt a try for my project and not sure about some details concerning communication with other servers. i found a lot of documentation dealing with rpc communication between gwt client and gwt server. but in my scenario i would like to call some external service from the gwt server. gwt is going to be the frontend. my backend is going to be provided through a tomcat which runs the main code. i'm asking my self now what would be the best way the communicate between gwt and tomcat (different machines). is it wise to create a web service with the help of axis2, or is there a more native way? regards bastian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Feedback on different backends for GWT
I use servlets because of their ease of use with GWT RPC. Maybe GWT RPC integrates with python nicely now (without needing to use JSON)? I really don't know, I haven't tried it. As for servlets, just like everything else in java, it's only as complicated as you make it. If you don't need struts and spring then why include it? Just create servlets and package a war file and deploy and be done with it. On Mar 22, 3:30 am, Uemit uemit.se...@gmail.com wrote: Hi everyone. I have to re-design an existing application which uses Pylons (Python) on the backend and GWT on the frontend. In the course of this re-design I can also change the backend system. I tried to read up on the advantages and disadvantages of various backend systems (Java, Python, etc) but I would be thankful for some feedback from the community. *Existing application:* The existing application was developed with GWT 1.5 (runs now on 2.1) and is a multi-host-page setup. The Pylons MVC framework defines a set of controllers/host pages in which GWT widgets are embedded (classical website). Data is stored in a MySQL database and accessed by the backend with SQLAlchemy/Elixir. Server/client communication is done with the RequestBuilder (JSON). The application is not a typical business like application with complex CRUD functionality (transactions, locking, etc) or sophisticated permission system (tough a simple ACL is required). The application is used for visualization (charts, tables) of scientific data. The client interface is primarily used to display data in read-only mode. There might be some CRUD functionality but it's not the main aspect of the app. Only a subset of the scientific data is going to be transfered to the client interface but this subset is generated out of large datasets. The existing backend uses numpy/scipy to read data from db/files, create matrices and filter them. The numbers of users accessing or using the app is relatively small, but the burden on the backend for each user/request is pretty high because it has to read and filter large datasets. The analysis of the existing backend (python) showed that because of python's GIL, concurrent heavy requests don't scale that well (cherrypy uses workers/processed for concurrent requests). Numpy/Scipy libraries however work well with matrices and arrays (filtering, sorting, etc). *Requirements on the new system:* I want to move away from the multi-host-page setup to the MVP architecture (one single host page). So the backend only serves one host page and acts as data source for AJAX calls. Data will be still stored in a relational database (PostgreSQL instead of MySQL). There will be a simple ACL (defines who can see what kind of data) and maybe some CRUD functionality (but it's not a priority). The size of the datasets is going to increase so the burden on the backend is probably going to be higher. There won't be many concurrent requests but the few ones have to be handled by the backend quickly. Hardware (RAM and CPU) for the backend server is not an issue. *Possible backend solutions:* *Python (SQLAlchemy, Pylons or Django):* *Advantages: * - Rapid prototyping. - Re-Use of parts of the existing application - Numpy/Scipy for handling large datasets. *Disadvantages:* - Weakly typed language - debugging can be painful - Server/Client communication (JSON parsing or using 3rd party libraries). - Python GIL - scaling with concurrent requests - Server language (python) client language (java) *Java (Hibernate/JPA, Spring, etc)* *Advantages: * - One language for both client and server (Java) - Easier to debug. - Server/Client communication (RequestFactory, RPC) easer to implement. - Performance, multi-threading, etc - Object graph can be transfered (RequestFactory). - CRUD easy to implement - Multitear architecture (features) *Disadvantages: * - Multitear architecture (complexity,requires a lot of configuration) - Handling of arrays/matrices (not sure if there is a pendant to numpy/scipy in java). - Not all features of the Java web application layers/frameworks used (overkill?). I didn't mention any other backend systems (RoR, etc) because I think these two systems are the most viable ones for my use case. To be honest I am not new to Java but relatively new to Java web application frameworks. I know my way around Pylons though in the new setup not much of the Pylons features (MVC, templates) will be used because it probably only serves as AJAX backend. If I go with a Java backend I have to decide whether to do a RESTful service (and clearly separate client from server) or use RequestFactory (tighter coupling). There is no specific requirement for RESTfulness. In case of a Python backend I would probably go with a RESTful backend (as I have to take care of client/server communication anyways). Although mainly
Re: Need Feedback on charts frameworks for GWT
Not exactly client-side, but I generate charts on my server using JFreeChart and it's pretty nice. I do this because there's a lot of data in my charts and it doesn't make sense to send it all client-side first. At some point I want to do some client rendering and for this I've been looking at canvas based tools like flot. Good luck! On Mar 21, 5:08 pm, Romain BIARD biard.rom...@gmail.com wrote: Hi everybody, I'm looking for different feedback about frameworks which provides client-side charts, especially well integrated with GWT MVP Architecture (I managed to persuade my client to migrate to GWT 2.2.0 :p ) . I don't know which solution fit the best and the community didn't discuss about it for a while... What about your XP ? JS wrapper, clientsidegchart, GXT ? Thanks for your feedback ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and related object persistence
2011/3/22 Thomas Broyer t.bro...@gmail.com: Have a look at http://code.google.com/p/google-web-toolkit/issues/detail?id=5776 and related bugs. thanks, at the moment I fire two persistence request (one for A update) and a second for B changes... I'll hope to see that fixed in next releases... -- Luca Morettoni luca(AT)morettoni.net | http://www.morettoni.net gtalk/msn: luca(AT)morettoni.net | http://twitter.com/morettoni jugUmbria founder: https://jugUmbria.dev.java.net/ | skype: luca.morettoni -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Safari window open problem
I'm confused, why not just use this? http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/Window.html#open(java.lang.String, java.lang.String, java.lang.String) On Mar 21, 9:39 am, Werner Assek was...@jahia.com wrote: Hello, I am trying to use a GWT native method to open a window. It is working fine in Chrome, firefox and Internet Explore but there is a problem with Safari: TypeError: Result of expression '$wnd.test.engineWindow' [undefined] is not an object. My Method code: private static native void open(String url, String engineName, String params) /*-{ if (!$wnd.test) { $wnd.test= new Object(); } if ($wnd.test.engineWindow != null ! $wnd.test.engineWindow.closed) { engineName = engineName + new Date().getTime(); } $wnd.test.engineWindow = $wnd.open(url, engineName, params); $wnd.test.engineWindow.focus(); }-*/; It seems correct that $wnd.test.engineWindow is undefined for the first request, but it is no problem with all browsers accept Safari. Thanks for your feedback if you have an idea. regards Werner -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Positioning a Widget using CSS
There are a number of ways to do this depending on your situation. You should read up on CSS positioning. Try here: http://www.w3schools.com/css/css_reference.asp#positioning Generally, you'll be using the properties such as: text-align, vertical-align, top, left, and sometimes margin. Do some experimenting. Good luck! On Mar 19, 3:29 pm, Ray Mammola rmamm...@gmail.com wrote: How do I control the position of a widget in a LayoutPantel, for instance a button or textbox, using CSS? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory and related object persistence
On Wednesday, March 23, 2011 8:49:16 AM UTC+1, Luca Morettoni wrote: 2011/3/22 Thomas Broyer t.br...@gmail.com: Have a look at http://code.google.com/p/google-web-toolkit/issues/detail?id=5776 and related bugs. thanks, at the moment I fire two persistence request (one for A update) and a second for B changes... I'll hope to see that fixed in next releases... OK, so you didn't actually understand: there's nothing to fix in GWT; it's up to your persist() implementation for A to also persist B if that's what you want. -- You received 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.
ORM or JDBC?
Hi everybody, I would like your opinion regarding the use of ORM in web applications built with GWT. I'm a little reconsider about the ORM, and I wonder whether it is worth to use in web applications built with GWT. What would be real advantages in addition to greater independence and portability? Waiting for your comments :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: problem with character encoding
On Wednesday, March 23, 2011 7:10:00 AM UTC+1, tanteanni wrote: thx for your investigation, i'll try it with chnaged encoding of propery-file (at the moment i load it via Properties.load.getresourceasstream(file)). but is there a way to let my code let the reencoding, so that properties-file could be utf-8? Just wrap the InputStream returned from getResourceAsStream within an InputStreamReader, specifying the UTF-8 encoding; and thus use the load(Reader) overload of Properties instead of the load(InputStream) one. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Feedback on charts frameworks for GWT
another important question is if you GWT application has access to the internet or not. e.g. the Google Visualization API is great, but will not work offline I think chronoscope (an interactive time series chart) can also be used offline: a nice offline time-chart is: http://timepedia.org/chronoscope/ regards On Mar 23, 8:41 am, rjcarr rjc...@gmail.com wrote: Not exactly client-side, but I generate charts on my server using JFreeChart and it's pretty nice. I do this because there's a lot of data in my charts and it doesn't make sense to send it all client-side first. At some point I want to do some client rendering and for this I've been looking at canvas based tools like flot. Good luck! On Mar 21, 5:08 pm, Romain BIARD biard.rom...@gmail.com wrote: Hi everybody, I'm looking for different feedback about frameworks which provides client-side charts, especially well integrated with GWT MVP Architecture (I managed to persuade my client to migrate to GWT 2.2.0 :p ) . I don't know which solution fit the best and the community didn't discuss about it for a while... What about your XP ? JS wrapper, clientsidegchart, GXT ? Thanks for your feedback ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Feedback on charts frameworks for GWT
What about clientsidegchart? (http://code.google.com/p/ clientsidegchart/?redir=1) I took a look at it and it looks kind of complex to create the charts, but the style is pretty nice! Anyone tried those and can tell if the library worked for him / her? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Feedback on charts frameworks for GWT
Looks pretty ok but the API is kind of complicate imho. It should me more simpler to do that. 2011/3/23 opn open...@gmx.net What about clientsidegchart? (http://code.google.com/p/ clientsidegchart/?redir=1) I took a look at it and it looks kind of complex to create the charts, but the style is pretty nice! Anyone tried those and can tell if the library worked for him / her? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for the Flash Platform http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Catching Key event in popup
I've got a GWT app with a login step. user enter its login/pass then press enter or login button to perform login action. If login is invalid a popup signals an error. I want to be able to close the popup when user press ok button or when he hits Esc or Enter. I've added a onPreviewNativeEvent method to catch the event public void onPreviewNativeEvent (NativePreviewEvent event) { int keyCode = event.getNativeEvent().getKeyCode(); if ((KeyCodes.KEY_ENTER == keyCode) || (KeyCodes.KEY_ESCAPE == keyCode)){ btnOk.click(); } } It is working fine but the Enter Key is not totaly catched so once the popup is closed the Ok button (for login action) is also triggered so an other popup is open. I try to consume or cancel the event calling event.consume(); or event.cancel(); but I don't see any effect. 1th question what are the effect of - consume and cancel ? 2nd question how can I definitivelly cancel an event to be sure that no other component will handle it ? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
TableLayoutPanel css
can Someone help me saying where i can found an example for a tablelayoupanel styling ? thx -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DockLayoutPanel with global Scroll
Thx john..i think to follow your suggestion. On Tue, Mar 22, 2011 at 9:06 PM, John LaBanca jlaba...@google.com wrote: ResizeLayoutPanel ProvidesResize but does not RequireResize, so it allows you to embed layout panels within your app. However, I wouldn't recommend using too many of them as it could affect the performance of your app. ResizeLayoutPanel is checked into trunk and will be included in GWT 2.3. Thanks, John LaBanca jlaba...@google.com On Tue, Mar 22, 2011 at 3:21 PM, Jens jens.nehlme...@gmail.com wrote: Yeah right. LayoutPanel and all other LayoutPanels should be in a LayoutPanel hierarchy starting with RootLayoutPanel. If you ever put a LayoutPanel in a normal panel I think you have to set width and height to 100%. -- You received 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. -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Detecting blocked RPC
In fact there where an error in the called URL we forget to add at the end of the URL the RPC servlet url-pattern. So In post we where just asking the index... Now this have been corrected, we have an answer which is 405 or 500 depending on how we construct the CURL or WGET request. So we still need to understand what is wrong. Too answer to you point, yes we are sure that we have a problem in our servlet because this one is blocked while tomcat can still serve index.html, images or other servlets. Actually we are not able to debug it because the are no logs in our log4j or in tomcat logs signalling that there is something wrong. More over we have this problem at a frequency than less 1 per month and only in production environnement so it is not easy to find the reason. Next time I will ty a kill -3 on the tomcat to look if there is some blocked threads. Actually we are just trying to detect it as soon as possible to be able to restart the application (if possible before a cusomer detects it). I totally agree that it is not clean and a definitive solution but in a first time we are trying to not create disappointment with our customers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT communicate with Tomcat
Hi there :) , as already explained, the GWT-Compiler converts the java code into java-script code. Everything you implemented in the XX.XX.client package will be transformed into java-script (by the gwt-compiler). Everything you implemented in the XX.XX.server package will work on the server (tomcat) without transformation into java-script. The easiest way to communicate with the server ist over the gwt-rpc protocol. There are many tutorials how to implement such a communication - (imo) its really easy. But you dont need to use the gwt-rpc protocol. You can also use the servlet-technology. F.e. to upload data u have to use the servlet-technology, because the gwt-rpc protocol doesnt support data uploads. A big advantage of the gwt-rpc protocol is that you can exchange objects between client and server (without any transformation into json or any other format) - GWT handle the exchange for you. You only have to implement the IsSerializable-Interface (The class have to lie in the XX.XX.client.XX. package). Try it out, GWT is a nice Framework and easy to understand (if you realized the difference between client/server code). Greetings Daniel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TableLayoutPanel css
TableLayoutPanel is incorrect. I was referring to TabLayoutPanel; On Wed, Mar 23, 2011 at 12:05 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote: can Someone help me saying where i can found an example for a tablelayoupanel styling ? thx -- Marco -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Positioning a Widget using CSS
Hello, you can add a Style-Name and format the element with a css-class: fooButton.setStyleName(test); CSS file: .test { cssAttribute: value; } Maybe you have to add the keyword !importand for attributes that were set by the gwt-framework. rjcarrs link will help you to get the right attributes for the positioning of your elements. Greetings Daniel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Catching Key event in popup
I've got it ! Just need to call event.getNativeEvent().stopPropagation(); Well I still don't understand what are consume and cancel ! -- You received 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.
Is gwt serialization backward compatible ?
I've serialized data with standard java way into files and database. As I'm dicovering RPC.encodeResponseForSuccess to inject data in web pages, I wondered to know if it's safe to store GWT serialized data into files and blobs for future use (either on client and server side) ? And if yes, is gwt (de)serialization procedure slower than stadard java serialization ? -- You received 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.
Hosted Server crashes instantly
Hi, I have an extremely annoying issue with running hosted mode from Eclipse. Since about two weeks ago the development server will start up, just to terminate as soon as its finished startup - without any errors. Worse yet I have no idea what could have caused it, since the timing of the start of the problem doesn't coincide with any major changes I made. Weirdly it does work very rarely but I can't reproduce how to get it to work and when it does work, if I terminate the server and attempt to start it up again, chances are it won't work. I have tried the following: -Changing the AppEngine GWT version - doesn't work -Using a different Eclipse version on the same machine - doesn't work -Running the server on a different port - doesn't work -Running a different GWT project on the same machine - doesn't work -Checking out the project again on the same machine - doesn't work -Running the project on a different machine from an SVN checkout - works -Running the project on a Windows XP virtual machine into which I copied the eclipse workspace that didn't work (and fixed the classpath etc.) - works So the problem persists on one machine, regardless of the Eclipse version, GWT/Appengine version gand project. The only thing that I can think of at the moment is that my Java installation is somehow broken, although that seems very unlikely (Eclipse works fine) and also doesn't really explain the absence of an error message. If it matters, the system which causes the problem is running Mac OS X Snow Leopard and JDK 1.6. If anyone has any ideas on what could be the problem, I would be extremely grateful... Thanks, Johannes Lehmann -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ORM or JDBC?
I've found using ORM in GWT to be pretty much the same as using it in any other setting. If you like it, go for it. I personally do not care for it, as I've found, at least in the projects I've worked on, that the added complexity doesn't seem to pay off. I'd rather just write a thin DAO layer and be done with it. Toplink has been my only real experience with such things, however, so perhaps I just got stuck with a crappy ORM. -Ben On Mar 23, 3:45 am, csaffi csaff...@gmail.com wrote: Hi everybody, I would like your opinion regarding the use of ORM in web applications built with GWT. I'm a little reconsider about the ORM, and I wonder whether it is worth to use in web applications built with GWT. What would be real advantages in addition to greater independence and portability? Waiting for your comments :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Feedback on charts frameworks for GWT
Ok first of all thanks for sharing your XP ;) @Martin Trummer In fact I don't have internet access while most of applications we are developing are located on client's intranet :( I'll take a look on chronoscope :) @Daniel Renner GXT was my first idea but GPLv3 or Commercial License don't fit my client's strategy (only Apache , MIT,... without copyleft). @opn Although its license policy is pretty good, I think that i couldn't explain to my client that all charts in his application would be based on a stack maintained by a few people with no visibility on their roadmap. (and the charts are not such pretty as other Ajax framework like jQuery / ext-js). In the same time of my investigation,I'm trying to build a wrapper for jQPlot which seems to draw pretty charts without any pain and it looks really good. On Mar 23, 11:04 am, nino ekambi jazzmatad...@googlemail.com wrote: Looks pretty ok but the API is kind of complicate imho. It should me more simpler to do that. 2011/3/23 opn open...@gmx.net What about clientsidegchart? (http://code.google.com/p/ clientsidegchart/?redir=1) I took a look at it and it looks kind of complex to create the charts, but the style is pretty nice! Anyone tried those and can tell if the library worked for him / her? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for the Flash Platformhttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TableLayoutPanel css
nothing..?? On Wed, Mar 23, 2011 at 12:24 PM, Marco Gadaleta gadaleta.ma...@gmail.comwrote: TableLayoutPanel is incorrect. I was referring to TabLayoutPanel; On Wed, Mar 23, 2011 at 12:05 PM, Marco Gadaleta gadaleta.ma...@gmail.com wrote: can Someone help me saying where i can found an example for a tablelayoupanel styling ? thx -- Marco -- Marco -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Article about RequestFactory (in italian)
Hi, if someone is interested, part II is now online: http://firenze-gtug.blogspot.com/2011/03/requestfactory-framework-parte-2.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Feedback on charts frameworks for GWT
There was an announcement just yesterday of a visualization library, Protovis-GWT. http://groups.google.com/group/google-web-toolkit/browse_thread/thread/6857b43f4563a335 It looked pretty nice from the examples. I haven't looked at the API yet, though. -Brian On Wed, Mar 23, 2011 at 9:52 AM, Romain BIARD biard.rom...@gmail.com wrote: Ok first of all thanks for sharing your XP ;) @Martin Trummer In fact I don't have internet access while most of applications we are developing are located on client's intranet :( I'll take a look on chronoscope :) @Daniel Renner GXT was my first idea but GPLv3 or Commercial License don't fit my client's strategy (only Apache , MIT,... without copyleft). @opn Although its license policy is pretty good, I think that i couldn't explain to my client that all charts in his application would be based on a stack maintained by a few people with no visibility on their roadmap. (and the charts are not such pretty as other Ajax framework like jQuery / ext-js). In the same time of my investigation,I'm trying to build a wrapper for jQPlot which seems to draw pretty charts without any pain and it looks really good. On Mar 23, 11:04 am, nino ekambi jazzmatad...@googlemail.com wrote: Looks pretty ok but the API is kind of complicate imho. It should me more simpler to do that. 2011/3/23 opn open...@gmx.net What about clientsidegchart? (http://code.google.com/p/ clientsidegchart/?redir=1) I took a look at it and it looks kind of complex to create the charts, but the style is pretty nice! Anyone tried those and can tell if the library worked for him / her? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for the Flash Platformhttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hosted Server crashes instantly
You're probably running into the issue with the latest JDK from Apple. See: http://code.google.com/p/google-web-toolkit/issues/detail?id=6125 and especially http://code.google.com/p/googleappengine/issues/detail?id=4712 -Brian On Wed, Mar 23, 2011 at 9:13 AM, Johannes Lehmann johannes.lehma...@googlemail.com wrote: Hi, I have an extremely annoying issue with running hosted mode from Eclipse. Since about two weeks ago the development server will start up, just to terminate as soon as its finished startup - without any errors. Worse yet I have no idea what could have caused it, since the timing of the start of the problem doesn't coincide with any major changes I made. Weirdly it does work very rarely but I can't reproduce how to get it to work and when it does work, if I terminate the server and attempt to start it up again, chances are it won't work. I have tried the following: -Changing the AppEngine GWT version - doesn't work -Using a different Eclipse version on the same machine - doesn't work -Running the server on a different port - doesn't work -Running a different GWT project on the same machine - doesn't work -Checking out the project again on the same machine - doesn't work -Running the project on a different machine from an SVN checkout - works -Running the project on a Windows XP virtual machine into which I copied the eclipse workspace that didn't work (and fixed the classpath etc.) - works So the problem persists on one machine, regardless of the Eclipse version, GWT/Appengine version gand project. The only thing that I can think of at the moment is that my Java installation is somehow broken, although that seems very unlikely (Eclipse works fine) and also doesn't really explain the absence of an error message. If it matters, the system which causes the problem is running Mac OS X Snow Leopard and JDK 1.6. If anyone has any ideas on what could be the problem, I would be extremely grateful... Thanks, Johannes Lehmann -- You received 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. -- You received 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.
javascript in uibinder bug?
I put javascript inside uibinder safehtmltemplate , all my javascript onblur, onclick or not show in internet explorer7/8 it become like below textarea class=someclass style=height: 60px __listener=null __eventbits=4096some text.../textarea but in firefox, onblur, onclick able to show properly. Is this bug in gwt 2.1 ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to troubleshoot NPE during UIBinder component initialization
Having the NPE problem during view initialization I determined that this element @UiField(provided=true) ShortMessageBox shortMessageBox; causes it. When I remove it from the view everything works fine. The ShortMessageBox is defined UIBinder-based componet: public class ShortMessageBox extends Composite { public interface ShortMessageBoxUiBinder extends UiBinderWidget, ShortMessageBox { } @Inject public ShortMessageBox(final ShortMessageBoxUiBinder uiBinder) { super(); initWidget(uiBinder.createAndBindUi(this)); clearMessageWidget(); } } As you can see I am using gin but I have other similarly defined components that work just fine. Since I am not looking for solution with this question I don't provide all supporting code. The question is how to troubleshoot/debug UIBinder views and components when the following exception encountered during initialization: Caused by: java.lang.NullPointerException at com.myapp.client.ui.ShortMessageBox_ShortMessageBoxUiBinderImpl.createAndBindUi(ShortMessageBox_ShortMessageBoxUiBinderImpl.java: 18) at com.myapp.client.ui.ShortMessageBox_ShortMessageBoxUiBinderImpl.createAndBindUi(ShortMessageBox_ShortMessageBoxUiBinderImpl.java: 1) at com.myapp.client.ui.ShortMessageBox.init(ShortMessageBox.java: 33) at com.myapp.client.gin.MyAppGinjectorImpl.com$myapp$client$ui $ShortMessageBox_ShortMessageBox_methodInjection(MyAppGinjectorImpl.java: 1058) My problem is that something obviously going wrong during ShortMessageBox initialization but no detailed information or ways to debug it that I know of... -- You received 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.
move or not to move to Firefox 4 for GWT development
I want to upgrade my Firefox browser to version 4 on my development machine. Does GWT development plugin support it without known problems? -Sergey /PREBRspan style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366' _BR This electronic message and any files transmitted with it containsBR information from iDirect, which may be privileged, proprietaryBR and/or confidential. It is intended solely for the use of the individualBR or entity to whom they are addressed. If you are not the originalBR recipient or the person responsible for delivering the email to theBR intended recipient, be advised that you have received this emailBR in error, and that any use, dissemination, forwarding, printing, orBR copying of this email is strictly prohibited. If you received this emailBR in error, please delete it and immediately notify the sender.BR _ /SPANPRE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: move or not to move to Firefox 4 for GWT development
I did it today and so far it works. Just make sure FF4 installs the latest GWT Plugin. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT communicate with Tomcat
Thanks for you replies. I'm fairly new to the topic and your answers clarified some concepts. Regards, Bastian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to troubleshoot NPE during UIBinder component initialization
More likely you are calling createAndBindUi() before initializing shortMessageBox -- You received 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.
Using java.lang.reflect or similar
Hi All! I'm developing a little framework like stuff and I need the reflection API (java.lang.reflect) which isn't part of gwt. The problem: I have an object (basically a dto from server) and there is an another object which contains the grid parameters include the method name as string, which is have to called to get the data from dto class. To put simplier way: DTO from server: known (e.g.: getFilename) Method name of DTO (contained in an setup obejct or property file): known Goal: invoke dto.getFilename() method In normal case, for this purpose, I use Apache BeanUtils (http://commons.apache.org/beanutils/). My questions: - is there an existing solution for this? (Honestly, I wouldn't like to invent the wheel again.) - is there a tutorial for this? I would like to appreciate your help! András -- - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- Trust in God and keep your gunpowder dry! - Cromwell -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Catching Key event in popup
No in fact it doesn't works. More over Firefox and IE does not handle events in the same way so when the behaviour is ok in Firefox it doesn't work on IE and inversement. WebApp makes me going crasy ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ORM or JDBC?
We use JPA (Hibernate) but JPQL is not sufficient for our project (the lack of recursive CTEs) and we have to use native queries for complex tree operations. -- You received 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.
Cannot connect to the server 127.0.0.1
Hey, I am trying to write a basic web application and when I run it in eclipse and paste the URL into Safari I get the following message: Safari can’t open the page “http://127.0.0.1:/FirstWebApp.html? gwt.codesvr=127.0.0.1:9997” because Safari can’t connect to the server “127.0.0.1”. It worked the first time and I installed the GWT Developer Plugin for Safari and since then it has not worked. Any ideas on how I can solve this problem? Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need Feedback on charts frameworks for GWT
Came across FusionCharts for GWT today,i have used FusionCharts V3) with php. Havent develved into that with GWT.here is a link http://www.fusioncharts.com/ On Wed, Mar 23, 2011 at 10:41 AM, rjcarr rjc...@gmail.com wrote: Not exactly client-side, but I generate charts on my server using JFreeChart and it's pretty nice. I do this because there's a lot of data in my charts and it doesn't make sense to send it all client-side first. At some point I want to do some client rendering and for this I've been looking at canvas based tools like flot. Good luck! On Mar 21, 5:08 pm, Romain BIARD biard.rom...@gmail.com wrote: Hi everybody, I'm looking for different feedback about frameworks which provides client-side charts, especially well integrated with GWT MVP Architecture (I managed to persuade my client to migrate to GWT 2.2.0 :p ) . I don't know which solution fit the best and the community didn't discuss about it for a while... What about your XP ? JS wrapper, clientsidegchart, GXT ? Thanks for your feedback ! -- You received 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. -- Gibson Wasukira Making Technology a Business Asset www.thegrid.ug -- You received 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.
ScrollBar color
Hi, I would like to change the color of the scrollBar (ScrollBarPanel) but I learn that ScrollBarPanel is scroll panel is simply a div with overflow set to scroll. So anyone has an idea how to change the color ?? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Single-Site GWT Application with Plugins as Modules
Hello, i have to develop a gwt application with the following features: - login mechanism with user roles and permissions - navigation tree with application modules (showing buttons depending on permissions) - each application module can be opened by the user in a seperate UI tab - it must be possible to add new modules later (not at runtime!) - every application module has 3 user roles: administration, read only and write access How could i easily implement such a modularity in my web application framework? Means: how can i reduce the implementation costs for new modules? Remember: modules are only shown if the user has the permission to view/change/administrate it! Thanks for your answers! -- You received 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.
Need to read data from Property file placed in Side META-INF folder but got error
i an getting error when trying to read property file i wrote below code Properties props = new Properties(); InputStream is = this.getClass().getResourceAsStream(topicalert.properties); props.load(is); when i am trying to compile code i will give me below code : [ERROR] Errors in 'file:/E:/Projects/Infodesk/TopicAlert-GWT/src/ gwt/com/idsk/topicalert/client/TopicAlertMain.java' [ERROR] Line 177: No source code is available for type java.util.Properties; did you forget to inherit a required module? [ERROR] Line 190: No source code is available for type java.io.InputStream; did you forget to inherit a required module? [ERROR] Line 190: The method getResourceAsStream(String) is undefined for the type Classcapture#1-of ? extends TopicAlertMain [ERROR] Errors in 'file:/E:/Projects/Infodesk/TopicAlert-GWT/src/ gwt/com/idsk/topicalert/client/TopicAlertMain.java' [ERROR] Line 190: The method getResourceAsStream(String) is undefined for the type Classcapture#1-of ? extends TopicAlertMain [ERROR] Cannot proceed due to previous errors after this error I put inherits name='java.util.Properties'/ inherits name='java.io.InputStream'/ in gwt.xml file then i got below error Loading inherited module 'java.util.Properties' [ERROR] Unable to find 'java/util/Properties.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] Line 6: Unexpected exception while processing element 'inherits' pl. help me to solve this problem how to read and process data from property file -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Working with third party client libraries in gwt
Hi Guys, I'm very new to GWT and have basic experience in web development. Just started learning gwt and trying to build a web application which would use client libraries in order to connect TIBCO EMS but not sure how to import libraries in to gwt project. I've already developed a java desktop application built on swings using those libraries but now not able to use them in gwt project. I'm getting below error when I'm trying to create an object of TibjmsAdmin class. com.tibco.tibjms.admin.TibjmsAdmin can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. Can you please help here? Thanks in Advance Prashant -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ORM or JDBC?
I would use any OR/M which is compatible to JPA (e.g. hibernate or openjpa) On 23 Mrz., 09:45, csaffi csaff...@gmail.com wrote: Hi everybody, I would like your opinion regarding the use of ORM in web applications built with GWT. I'm a little reconsider about the ORM, and I wonder whether it is worth to use in web applications built with GWT. What would be real advantages in addition to greater independence and portability? Waiting for your comments :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: move or not to move to Firefox 4 for GWT development
On 03/23/2011 07:52 AM, Jens wrote: I did it today and so far it works. Just make sure FF4 installs the latest GWT Plugin. I did find that I had to remove the plugin reinstall via the missing plugin page. But, it might have been a quirk of the moment, as there was an active session. Noticeably faster. Linux AMD-64 -- You received 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.
Tag for page encoding
Hello, I have a GWT (2.2) application making use of GWT-RPC. It is working fine, but there is a problem when accessed through a proxy. Besides the proxy issues mentioned in other discusions in this forum (which has been taken into consideration), the proxy blocks responses from the application server which contain the element meta charset=UTF-8 / This element appears in some GWT generated files with names like hashvalue.cache.html but does not appear in the host page, for example, where the encoding is specified by the element meta http-equiv=Content-Type content=text/html; charset=utf-8 Now, after replacing manually the first element (meta charset=UTF-8 /, standard of HTML 5 only) with the second (meta http-equiv=Content-Type content=text/html; charset=utf-8) in all the hashvalue.cache.html files, the application works smoothly even when accessed through the proxy. As the configuration of the proxy is not under my control, I would like to know if there is any compiler switch to achieve what I have manually done (or if you have any other solution, for the matter). Kind 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can't debug with eclipse because launching in eclipse fails
In order to get all resources copied onto the maven classpath when running dev mode from Eclipse, you'll need to use copyWebapptrue/copyWebapp in the config section for gwt-maven-plugin (or run mvn package each time you update resources). If this doesn't work, please post on the gwt-maven-plugin forum: http://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users HTH, /dmc On Tue, Mar 22, 2011 at 1:28 PM, tanteanni tantea...@hotmail.com wrote: first i thought my project is not working at all (http:// groups.google.com/group/google-web-toolkit/browse_frm/thread/ 2363c9992dee4e51) the problem short: a referenced library in server code can't access/ see one of its resources - the persistence.xml. but it seems only a problem with eclipse/maven project configuration: my project works fine if started via mvn gwt:run and it also works in tomcat. the problem mentioned in the thread mentiond above also occurs if i run the app via the generated launch configuration (the app was generated with webappcreator -maven). so how to debug my app? or how to configure launch/eclipse-project to get it work? thx in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using java.lang.reflect or similar
Sorry, the map should be MapString, PropertyMyDTO -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using java.lang.reflect or similar
You can create an interface like this interface PropertyT { String get(T dto); } initialize a MapMyDTO, String for each DTO type myDtoMap.put(getFilename, new Property() { String get(MyDTO dto) { return dto.getFilename(); } }); ... and then call myDtoMap.get(propertyString).get(dto); to get the property value. But if you need this feature to display columns in a table, CellTable has Column class that works similarly. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need to read data from Property file placed in Side META-INF folder but got error
Not everything in java.util is supported by GWT: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_util -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Celltable column header overlap / bug?
Just an update. I think the problem I am seeing has more to do with a bug regarding column header display for a celltable than it does sorting. If I remove all sorting logic from my celltable, I can still get overlapping double image column headers if the data being mapped into the table does not line up with initial placement of column headers before any action is taken that populates the table with data. If columns from the initial empty table need to shift to make room for data, the original column text appears underneath the newly placed column text. As it stands now, even if I carefully control column widths so no shifting is needed, I still get a double image when sorting for the column header of the column being sorted. Controlling the widths so no shift is needed does remove the double image problem when data is mapped into the table, though. Is there a work-around until a fix is released? I notice a commit from October to CellTable that has to do with redrawing headers, that may be the fix to this bug. thanks! On Mar 22, 5:22 pm, Jim Weaver weaver...@gmail.com wrote: Hi, I am new to GWT, and have an issue with column headers on a celltable with GWT 2.2. Several of the columns are sortable, and when I click on the header to sort them, I see a double image on the header text of the sortable column, and also the little graphic that indicates the sort arrow (down or up arrow) overwrites on top of the previous one, so I get an hour-glass looking thing. The columns involved do sort properly. It's not a functional problem. It seems like it is trying to calculate where it should render the column headers and the little sort icon after I click on a sortable column, and is calculating a little bit off and not quite replacing where the previous text was rendered, so you get a fuzzy overlapped effect. Has anyone else seen this? I am using fixed width columns: table.setColumnWidth(col1, 7.00, Unit.PCT); table.setColumnWidth(col2, 7.00, Unit.PCT); table.setColumnWidth(col3, 10.0, Unit.PCT); table.setColumnWidth(col4, 10.0, Unit.PCT); table.setColumnWidth(col5, 10.00, Unit.PCT); table.setColumnWidth(col6, 10.00, Unit.PCT); table.setColumnWidth(col7, 16.00, Unit.PCT); table.setColumnWidth(col8, 10.00, Unit.PCT); table.setColumnWidth(col9, 15.0, Unit.PCT); table.setColumnWidth(col10, 5.0, Unit.PCT); The number of columns that are sortable does not seem to affect this problem. Even with just one column sortable I get some weirdness. Ah, there is one other oddity that could be related. When I make multiple columns sortable, the little sort graphic only shows up on one of them. The columns that are sortable all sort when I click the header, but only one of the columns will show the little arrow graphic beside the header text. Is there an example project that has multiple sortable columns on a cell table? I'm sure it's something I'm doing wrong. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Working with third party client libraries in gwt
If you want to use them on the client side, you must have the source code for GWT to translate to JS. In addition, this code must be compatible with GWT's subset of Java. Using third party jars on the server side, on the other hand, is just straight Java. I would hazard a guess that your issue is due to an attempt to use them on the client. -Ben On Mar 23, 8:27 am, Prashant er.prashants...@gmail.com wrote: Hi Guys, I'm very new to GWT and have basic experience in web development. Just started learning gwt and trying to build a web application which would use client libraries in order to connect TIBCO EMS but not sure how to import libraries in to gwt project. I've already developed a java desktop application built on swings using those libraries but now not able to use them in gwt project. I'm getting below error when I'm trying to create an object of TibjmsAdmin class. com.tibco.tibjms.admin.TibjmsAdmin can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. Can you please help here? Thanks in Advance Prashant -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Need to read data from Property file placed in Side META-INF folder but got error
Also take a look at http://code.google.com/webtoolkit/doc/latest/DevGuideI18nConstants.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Feedback on different backends for GWT
It sounds like much of your performance is issues will probably be more database related than anything, so a lot of the other backend decision probably come down to personal preference or experience. I've been working on a GWT project that talks to a Django/MySQL backend for several months. The RPC is all JSON, which requires a bit of marshalling logic on each end, but so far it's not been a maintenance problem (the data model is fairly stable). If you're worried about Python's GIL for concurrent web requests, I don't think that's an issue because you're going to be running different instances of the runtime (each with their own GIL) for parallel web requests. Apart from a personal preference for Python's syntactic economy, I found I could get my head around Django's ORM, session management and other back-end functionality very quickly. Not wanting to rebuild all of this (or relearn in a new framework) is primarily what drove the Django selection. The Java servlet path may just be suffering from a wealth of options, but it felt like a lot more mental effort to put the appropriate platform together. Which probably just means I'm lazy. It's the devil you know... I'm sure somebody with more depth of experience on the various Java server side frameworks would come to different conclusions. As rjcarr points out, GWT-RPC makes a compelling case for going that route especially with the tools evolving more and more. The downsides you've pointed out are definitely there... You're switching between languages all day (forgetting semicolons in Java and putting extraneous ones into the Python), and you catch a lot more runtime issues that a strongly-typed language would have been caught at compile time, but still nothing FireBug and Django's debug responses don't highlight well. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to troubleshoot NPE during UIBinder component initialization
To debug generated code: pass the -gen argument to DevMode (e.g. -gen gen) so you can look at the generated code (will be emitted to the given folder). Here, you could then have access to the generated createAndBindUi method and the line 18 where the error occurs. You can also add the folder to the Sources tab in your Eclipse launcher (assuming you're using Eclipse) and Eclipse will now allow you to step into the generated class. -- You received 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.
Custom locale in DatePicker
Hello, Is there any way to have on same view two DatePickers with two different locales?. I need to show one with english locale and another with italian locale. I have been searching how to do using LocaleInfo with no luck. Any ideas or suggestions? Thanks a lot. -- You received 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.
Styling Cell individually in CellTable
Hi, I've got a use case with the CellTable where a cell should be rendered with a different background color depending on the cell content. I've also some TD with a rowspan 1. I've implemented an AbstractCell to set a style depending on the status (short version) : public class StatusCell extends AbstractCellStatus { @Override public void render(final Status status, final Object key, final SafeHtmlBuilder sb) { String cellStyle; if (status == Status.OK) { cellStyle = greenCell; } else { cellStyle = redCell; } sb.appendHtmlConstant(div class=\ + cellStyle + \); sb.appendEscaped(status.toString()); sb.appendHtmlConstant(/div); } } Here is the result : table class=cellTableWidget GA3XJ-DDEM thead tr th class=cellTableHeader GA3XJ-DDIC colspan=1Product/th th class=cellTableHeader colspan=1Status/th /tr /thead colgroup/colgroup tbody style= tr class=GA3XJ-DDEC onclick= td class=cellTableCell cellTableEvenRowCell cellTableFirstColumn div tabindex=0 style=outline: medium none;car/div /td td class=cellTableCell cellTableEvenRowCell rowspan=2 div style=outline: medium none; div class=greenCellOK/div /div /td /tr tr class=GA3XJ-DDEC onclick= td class=cellTableCell cellTableEvenRowCell cellTableFirstColumn div tabindex=0 style=outline: medium none;car/div /td /tr tr class=GA3XJ-DDEC onclick= td class=cellTableCell cellTableEvenRowCell cellTableFirstColumn div tabindex=0 style=outline: medium none;car/div /td td class=cellTableCell cellTableEvenRowCell div style=outline: medium none; div class=redCellKO/div /div /td /tr /tbody /table But the point is that when the cell is rendered by the CellTable view, it encapsulates it inside an other DIV and then put it in the TD. Then my Div where I have applied a style will not have the max height of the TD so the background color will not be fully applied to the TD. (The green of the OK cell does not extend to the TD) I got two ideas : 1/ Use css to extends the DIV to be the height of the TD. But setting height: 100% did not work. 2/ Find a way to set manually a style to the TD. But there is nothing on the CellTable api to access the TD after they have been rendered. Is anybody have encountered this use case or have a solution please ? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: [Announcement] Protovis-GWT
Excellent! I 'll have a look ASAP! *thank you*, -g. -- You received 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.
When is an object passed over RPC safe to modify?
We're experimenting with background saving in our GWT-app. IOW. we mark objects as 'modified', and then at regular intervals, find all modified objects and pass them to the database for storage. The question is when is it safe to mark the object as 'clean'. The on- success-handler of the save()-method is too late, obviously. That can happen any time later and the user might have modified the object(s) again. As the status also can be 'new' or 'deleted', I need to pass the status to the server so it knows what to do. IOW. I can't mark the object clean too early. What I'd like is to mark them 'clean' when they're safely serialized, and have the on-failure-handler set them back to 'modified' if the save() failed. So ... is there any point in the code where I can be certain that the objects are serialized and on their way to the server so I can start modifying them in the client without interfering? Figure 4 here: http://eclipse.dzone.com/news/making-gwt-remote-procedure-ca indicates that the objects are safe once the method in *Async returns. Is that safe? M. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Designer Issue: copy/paste CellTable loses columns
I've had great success copying and pasting using GWT Designer, but it seems like copying and pasting CellTables results in lost columns in the copied CellTable. To reproduce simply create a CellTable with one TextColumn, then try to copy and paste it into the same GUI class. In the copy, the TextColumn will be 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable odd/even row styles
Sorry I didn't reply right away... Didn't have access to the app for the last few days... So, I just checked and the styles that I set are NOT there at all, i.e., they are not appearing at all. What am I doing wrong there? -Yaakov. On Wed, Mar 16, 2011 at 5:09 PM, Jeff Larsen larse...@gmail.com wrote: Have you tried looking at the styles with firebug? Are they there and being overwritten or are they not appearing at all? -- You received 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: When is an object passed over RPC safe to modify?
What about 3 states for an object: clean modified saving periodically save only objects in the modified state don't edit objects in the modified and saving sates in onSuccess(): saving-clean in onFailure(): saving-modified -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP pattern for Tabbed UI (Each Tab = Unique Module e.g. Orders)
You may want to take a look at http://gwtplatform.com an MVP framework with built-in support for tabbed presenterd and breadcrumbs. Might not be exactly what you're looking for, but it may help get the conversation started... Cheers! Philippe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Error: Not finding AbstractSerializationStreamReader
I've already constructed and deployed a GWT application successfully, so it's not like I haven't done this before. But with this next app, incorporating Guava, I am getting this error when the app attempts to make an RPC call (this particular service doesn't include any Guava structures). I'm running in debug mode. [WARN] Server class 'com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/...snip.../eclipse-helios/ plugins/com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/ gwt-2.2.0/gwt-user.jar' to the web app classpath for this session For additional info see: file:/C:/...snip.../eclipse-helios/plugins/ com.google.gwt.eclipse.sdkbundle.2.2.0_2.2.0.v201102111811/gwt-2.2.0/ doc/helpInfo/webAppClassPath.html Starting Jetty on port [WARN] Exception while dispatching incoming RPC call java.lang.NoClassDefFoundError: com/google/gwt/user/client/rpc/impl/ AbstractSerializationStreamReader Why can't it find the class definition for AbstractSerializationStreamReader? gwt-usr.jar is in the build path. I even copied it to the web-inf/lib directory, not that it should matter for debug-mode (though the warning keeps coming up). I'm missing something very basic here, so simple that I can't see 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-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.
Creating a reusable DialogBox with UiBinder?
Hi, I'm trying to create a number of reusable dialog boxes using UiBinder. Basically, I want to be able to call... void someFn() { MyDialogBox box = new MyDialogBox(myConfigObj); box.show(); } ... but I want to define the Dialog in its Own MyDialogBox.ui.xml MyDialogBox.java files and the above code could be called in a number of places. So far I have: !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style ... /ui:style g:DialogBox autoHide=true modal=true glassEnabled=true g:caption btitle/b /g:caption g:DockLayoutPanel unit=PX width=700px height=450px ... /g:DockLayoutPanel /g:DialogBox /ui:UiBinder ... and ... public class MyDialogBox extends DialogBox { private static MyDialogBoxUiBinder uiBinder = GWT.create(MyDialogBoxUiBinder.class); interface MyDialogBoxUiBinder extends UiBinderWidget, MyDialogBox { } public MyDialogBox() { uiBinder.createAndBindUi(this); } @UiFactory DialogBox thatsJustMe() { return this; } } This seems... wrong? Is there a better way?? I can't control the dialog size with setWidth/Height.. it screws up royally. Is there a tutorial? And I DO NOT want to embed the dialog box in another UiBinder file as I see all over the place.. its not reusable. (as in: http://h2g2java.blessedgeek.com/2010/02/tutorial-gwt-rpc-stub-modified-with.html) The closest example (used above) i can find is: http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg36101.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable odd/even row styles
Ok, I see. It works now and based on the code to which you provided the link, here is the change that had to be made: Rename the getStyle() method to cellTableStyle() and put @Override just to make it clearer that we are overriding this interface method with our own. That's it! Thanks! -yaakov. On Wed, Mar 16, 2011 at 7:58 PM, Thomas Broyer t.bro...@gmail.com wrote: The obfuscated names of the CSS classes are based on the return type of the ClientBundle method and the method name in the CssResource. Here, because your SystemStatusResources uses CellTable.Style, it will use the same CSS class names as the default resources' style. This means that if you use CellTable with the default resources elsewhere in your app, you'll have a conflict. Declare an interface extending CellTable.Style and make SystemStatusResources return that type (return type covariance FTW), and now you'll have CSS class names specific to SystemStatusResources. See http://code.google.com/p/google-web-toolkit/issues/detail?id=6144 -- You received 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. -- You received 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.
Showing a PopupPanel hides all Elements
Hi! if I create a new PopupPanel and call the show()-Methode, the hole page is white. Nothing changes if I click or do something. BUT if I change to another browser tab, all elements will be shown if I return... Same appears if I create and show other DialogBox- Elements... Has anyone an idea? Browser is IE7. -- You received 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.
Intermittent XSRF attacks: Hosted Mode, FF3.6, GWT2.2
Hi, We keep getting sporadic XSRF attack errors in Hosted Mode. They normally occur only when an application feature is first accessed (we don't use code-splitting so it might be a red herring). We use vanilla GWT RPC. I've recorded the HTTP headers for a good request and bad (i.e, XSRF attack) request. The bad request lacks the GWT header the XSRF protection expects so the error is understandable. Has anybody else experienced any problems? Have any suggestions (other than overriding RemoteServiceServlet.checkPermutationStrongName and effectively removing XSRF protection)? === Fail http://127.0.0.1:/org.drools.guvnor.Guvnor/guvnorService POST /org.drools.guvnor.Guvnor/guvnorService HTTP/1.1 Host: 127.0.0.1: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.15) Gecko/ 20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Content-Length: 154 Content-Type: text/x-gwt-rpc; charset=utf-8 Referer: http://127.0.0.1:/org.drools.guvnor.Guvnor/Guvnor.html?gwt.codesvr=127.0.0.1:9997 Cookie: standalone_usage=true Pragma: no-cache Cache-Control: no-cache 7|0|4|http://127.0.0.1:/org.drools.guvnor.Guvnor/| 6808FDC8A4FA3491026441B59E4DB72A| org.drools.guvnor.client.rpc.RepositoryService|subscribe|1|2|3|4|0| HTTP/1.1 400 Bad Request Content-Type: text/plain;charset=ISO-8859-1 Transfer-Encoding: chunked Date: Wed, 23 Mar 2011 20:11:04 GMT Server: Apache-Coyote/1.1 Connection: close === Success http://127.0.0.1:/org.drools.guvnor.Guvnor/guvnorService POST /org.drools.guvnor.Guvnor/guvnorService HTTP/1.1 Host: 127.0.0.1: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.9.2.15) Gecko/ 20110303 Ubuntu/10.10 (maverick) Firefox/3.6.15 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive X-GWT-Permutation: HostedMode X-GWT-Module-Base: http://127.0.0.1:/org.drools.guvnor.Guvnor/ Content-Type: text/x-gwt-rpc; charset=utf-8 Referer: http://127.0.0.1:/org.drools.guvnor.Guvnor/Guvnor.html?gwt.codesvr=127.0.0.1:9997 Content-Length: 154 Cookie: standalone_usage=true Pragma: no-cache Cache-Control: no-cache 7|0|4|http://127.0.0.1:/org.drools.guvnor.Guvnor/| 41FA1D8B82DBBBC875605A4A29670D99| org.drools.guvnor.client.rpc.RepositoryService|subscribe|1|2|3|4|0| HTTP/1.1 200 OK Content-Disposition: attachment Content-Type: application/json;charset=utf-8 Content-Length: 48 Date: Wed, 23 Mar 2011 20:15:38 GMT Server: Apache-Coyote/1.1 Thanks, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Showing a PopupPanel hides all Elements
Which GWT version are you using? See http://code.google.com/p/google-web-toolkit/issues/detail?id=4532 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Questions on image cell showing images, please help
Hi, If you have ImageResource, you can use com.google.gwt.cell.client.ImageResourceCell . If you have only urls, you can create your own ImageCell like com.google.gwt.cell.client.ImageCell and change html template used : public class MyImageCell extends AbstractCellString { interface Template extends SafeHtmlTemplates { @Template(img src=\{0}\ style=\width:20px;height:20px;\/) // 20*20 size SafeHtml img(String url); } private static Template template; /** * Construct a new MyImageCell. */ public MyImageCell() { if (template == null) { template = GWT.create(Template.class); } } @Override public void render(Context context, String value, SafeHtmlBuilder sb) { if (value != null) { // The template will sanitize the URI. sb.append(template.img(value)); } } } Alexandre. 2011/3/20 Hong mahon...@gmail.com Hi, everyone I tried to put some images in gwt cell table where I used image cells to do this. But those images turned out pretty large in the webpage. I tried to use aCellTable.setColumnWidth(column, width), but it didn't help. I know if only to display a single image, I can say String url = anImageResource.getUrl(); Image aImage = new Image(url); aImage.setPixelSize(x,y); things like that. But how can I scale an image in a image cell / cell table? Some of my codes: CellTableVehicleInfo vehicleCellTable = new CellTableVehicleInfo(1); . ColumnVehicleInfo,String imageColumn = new ColumnVehicleInfo,String(new ImageCell()) { @Override public String getValue(VehicleInfo object) { return object.imageUrl; } }; vehicleCellTable.addColumn(imageColumn,Image); vehicleCellTable.setColumnWidth(imageColumn, 3em); //doesn't help . -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received 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.
Logging client exceptions to a file
Is this possible, I know GWT is client side, but is this possible at all? The debug/log window (client side) is pretty lame and doesnt even allow copy/paste. I know there is an exception thrown, but can hardly scan the window without search facility or copy/paste to notepad and search? Any ideas? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
General purpose RPC libraries
Hi, As I understand it, there's no way to compile a project without an entry point. I've been working on a project that defines 4 or 5 RPC interfaces (each defined as it's own GWT module) which subsequent projects will use, but which this project will not really use at all. Since I was working without an entry point, the deferred binding code and strong names required for serializing objects don't get generated until a project depending on the RPCs is compiled that has an entry point. The problem with this is that the original RPC, if ran, doesn't have any clue about the subsequent strongnames or serialization policies, so often fails for our result objects implementing Serializable. I suppose the way around this would be to create one generic/dummy module with an entry point in the RPC project, which inherits the others RPC modules/interfaces, but I was just curious if this would be the preferred solution or if there was some other way around this that I'm not aware of. Also, will a project that inherits the dummy module receive all the strongnames and serialization policies (I haven't tried this yet) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - Replace g:center of DockLayoutPanel in UiBinder dynamically
I have something like that in my code. I use a com.google.gwt.user.client.ui.LayoutPanel g:center g:LayoutPanel ui:field=placeholder / /g:center and in java code : @UiField LayoutPanel placeholder; public void setPlaceHolder(IsWidget w) { placeholder.clear(); if (w != null) { placeholder.add(w); } } Hope it will help, Alexandre. 2011/3/21 HelperMethod pib.oliver.wei...@googlemail.com I have this simple UiBinder template: !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent; ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:style /ui:style g:DockLayoutPanel unit=EM g:north size=10 g:LabelHeader/g:Label /g:north g:center g:Label ui:field=placeholder/g:Label /g:center g:south size=2.5 g:LabelFooter/g:Label /g:south /g:DockLayoutPanel /ui:UiBinder What I would like to do is dynamically replace content in g:center when application state changes. The problem is, which type of field should I use as a placeholder? -- You received 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. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP pattern for Tabbed UI (Each Tab = Unique Module e.g. Orders)
Thanks very much. Yes I have heard of GWTP. But I wanted to stay with the original MVP pattern offered by Google. I don't know if GWTP is the way to go. On Wed, Mar 23, 2011 at 3:21 PM, Philippe Beaudoin philippe.beaud...@gmail.com wrote: You may want to take a look at http://gwtplatform.com an MVP framework with built-in support for tabbed presenterd and breadcrumbs. Might not be exactly what you're looking for, but it may help get the conversation started... Cheers! Philippe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Upgrading from 2.1 to 2.2 and changing environment
Thanks, you answer was not at all what I asked about but I solved my problem by turning on AppEngine. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: image.getWidth() does not work in GWT. Any workarounds?
Did you try using the onload event in GWT, like you did in the JS? For example: public class MyTest implements EntryPoint { public void onModuleLoad() { final Image testImg = new Image(http://i.cdn.turner.com/ cnn/.element/img/3.0/global/header/hdr-main.gif?nocache= + Math.random()); RootPanel.get().add(testImg); printImageWidth(testImg); // will print 0 testImg.addLoadHandler(new LoadHandler() { public void onLoad(LoadEvent event) { printImageWidth(testImg); // will print a number } }); } public void printImageWidth(Image image) { System.out.println(image width is: + image.getWidth()); } } On Mar 23, 12:30 pm, Brandon Donnelson branflake2...@gmail.com wrote: Is there a way to get the width via the java code? I've documented it and made an issue: Issue:http://code.google.com/p/google-web-toolkit/issues/detail?id=3999can... Getting images size width and height attributes does not work in GWT Image. GWT 2.2.0, Mac OSX, Chrome 10.0.648.151 This will not work: Image testImg = new Image(/images/test.jpg); FlowPanel panel = new FlowPanel(); RootPanel.get().add(panel); panel.add(testImg); System.out.println(testImg.getElement.getOffsetWidth= + testImg.getElement().getOffsetWidth()); // nope System.out.println(testImg.getWidth= + testImg.getWidth()); // nope System.out.println(panel.getOffsetWidth()= + panel.getOffsetWidth()); // gets the windows/document/body width if image overflows System.out.println(panel.getOffsetHeight()= + panel.getOffsetHeight()); // gets the windows/document/body width if the image overflows System.out.println(root width: + RootPanel.get().getOffsetWidth()); // gets the windows/document/body width width if the image overflows This does work in native javascript: script function getWidthAndHeight() { alert(' + this.name + ' is + this.width + by + this.height + pixels in size.); return true;} function loadFailure() { alert(' + this.name + ' failed to load.); return true;} var myImage = new Image(); myImage.name = /images/test.jpg; myImage.onload = getWidthAndHeight; myImage.onerror = loadFailure; myImage.src = /images/test.jpg; /script Brandon Donnelsonhttp://gwt-examples.googlecode.comhttp://c.gawkat.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2 Celltable Paging
Hi, I think you should use : cellTable.setRowCount(result.size()); cellTable.setRowData(0, result); instead of : cellTable.setRowData(result); Javadoc of com.google.gwt.user.cellview.client.AbstractHasData.setRowData(List? extends T) tells : Set the complete list of values to display on one page. Alexandre. 2011/3/22 Dovakhin o.fr...@freenet.de Hi, I have the following problem. I have a celltable with 2 columns. These columns contain Filenames and their size. Due to the fact that i have many files that i want to display I want to use Paging. In my last project i used gwt 2.1 and the paging worked there. The simplePager in GWT 2.2 does not work in my new project but its still the same code that should work. Can anyone show me where it goes wrong? Thanks. Here´s my code reduced to the SimplePager things: public class CellTableTestClass { private VerticalPanel applicationPanel = new VerticalPanel(); private CellTableLogData cellTable = new CellTableLogData(); private SingleSelectionModelLogData selectionModel = new SingleSelectionModelLogData(); public VerticalPanel createContent() { LogFileServiceAsync initData = (LogFileServiceAsync) GWT.create(LogFileService.class); initData.getLogs(new AsyncCallbackList LogData() { public void onFailure(Throwable caught) { Window.alert(caught.getLocalizedMessage()); } public void onSuccess(ListLogData result) { cellTable.setRowData(result); } }); cellTable.setSelectionModel(selectionModel); { cellTable.addColumn(new TextColumnLogData() { @Override public String getValue(LogData object) { return object.getLogName(); } }, Log Name); cellTable.addColumn(new TextColumnLogData() { @Override public String getValue(LogData object) { return object.getSize(); } }, Size); } // create a pager, giving it a handle to the CellTable SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class); SimplePager pager = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true); pager.setDisplay(cellTable); pager.setPageSize(10); // add the Pager to the dialog applicationPanel.add(pager); applicationPanel.add(new HTML(hr /)); applicationPanel.add(cellTable); return applicationPanel; } } -- You received 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. -- You received 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.
Style TabLayoutPanel
Hello everyone, I'm trying to style a TabLayoutPanel but without success. More precisely, I'm trying to change the color of tab and the border of content area.. but i cannot find their way.. Any suggestion would be appreciated. Thx -- Marco -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error: Not finding AbstractSerializationStreamReader
I had a similar NoClassDefFoundError when the jar that contained the not found class was added twice to the classpath. May be the fact that gwt-user.jar is automatically added to the web app classpath for the session is the root of the problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: expand ListBox as droplist using keyboard
ListBox use html SELECT element. Thus, you have natively (without keypresshandler) keys up/down to change selection and : - in Firefox and IE : ALT+DOWN/ALT+UP to expand/collapse select. - in chrome : Space/esc to expand/collapse select. I don't know if you can expand select with javascript. Alexandre. 2011/3/21 Jonathan Alon jonno...@gmail.com Hi, I have a FlexTable full of ListBoxs set to 1 visible item, when clicked on with the mouse the listbox will expand and let me see the full list of items, I want to create a keyboard shortcut to mimic the same effect. I've tried adding keypresshandler to handle specific key and through it fire a mouse down NativeEvent, but it does nothing. Anyone have a clue? ideas? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 1.7.1 - run problem
Hi, I've got a problem when running my project with gwt 1.7.1 and this message appears: Unknown argument: -codeServerPort Google Web Toolkit 1.7.1 HostedMode [-noserver] [-port port-number | auto] [-whitelist whitelist-string] [-blacklist blacklist-string] [-logLevel level] [- gen dir] [-style style] [-ea] [-server servletContainerLauncher] [- startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers count] module[s] Using gwt 2.2 it works fine but with any older versions 1.4 - 1.7: Unknown argument: -codeServerPort or Unknown argument: -remoteUI message appears. I would use gwt sdk 2.2 which works fine but when I compile project I've got error: Unresolvable native reference to method 'instance' in type 'com.gwtext.client.widgets.tree.TreeNode' and I heard that in older version this error doesn't show up, and it's correct, compilation succeeded. Can anyone tell me what's wrong? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Showing a PopupPanel hides all Elements
I'm not realy sure which version I'm using. It's a build from 17/02/2010. I will try to upgrade to a newer GWT version and will report, if the bug is fixed,... On 23 Mrz., 21:39, Thomas Broyer t.bro...@gmail.com wrote: Which GWT version are you using? Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=4532 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: where to place my own jre and google emulated classes?
Is your jre folder in the same folder as your Module.gwt.xml file? On Mar 22, 12:32 pm, KD kanwald...@gmail.com wrote: This is my current setup... src/ com acme Model.gwt.xml model token Token.java ... test/ super com acme jre java lang CloneNotSupportedException.java (introducing class since GWT doesnt support it) google gwt emul java lang Character.java (added a method that GWT doesn't support) the super source path in Model.gwt.xml is super-source path=jre/ when I compile, the compiler complains about errors in both Token.java isWhitespace(char) is undefined for the type Character No source code is available for type java.lang.CloneNotSupportedException; It appears its not picking up the things I emulated. I have tried taking jre folder in to src/com/acme/, ie literally in the same level has the module xml. But doesnt work I am using gwt-maven-plugin to compile and my pom.xml excerpt is What am I doing wrong here? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP pattern for Tabbed UI (Each Tab = Unique Module e.g. Orders)
For info, GWTP is looking to merge back with the GWT MVP classes. The goal is to offer a nice annotation-based alternative to the complex setup and boilerplate often required to wire together a large MVP app. In addition to features such as simple tab presenters or hierarchical name tokens, which are not yet part of the GWT's MVP. If you're curious, there is going to be a talk at Google I/O partly of GWTP: http://127.0.0.1:/Puzzlebazar.html?gwt.codesvr=127.0.0.1:9997#!main See: Highly Productive GWT: Rapid Development with App Engine, Objectify, RequestFactory, and gwt-platform -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP pattern for Tabbed UI (Each Tab = Unique Module e.g. Orders)
Sorry, wrong link: http://www.google.com/events/io/2011/sessions.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Double-click the event grid line
hi, Now I use the grid to traverse a objectList, want to double-click a row, get more information on the object, just do not know what to add double click event row GridFriend.getCellForEvent (event), event mere ClickEvent. . . . . . That can help me to know Thank you thank you 字典 - 查看字典详细内容 代词 that 冠词 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP pattern for Tabbed UI (Each Tab = Unique Module e.g. Orders)
From my experience TabPanel does not fit with MVP, but TabBar on top of a client area fits well. Use DockLayoutPanel, place TabBar into g:north and the client area into g:center -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: [gwt-contrib] Re: [RFC] GWT Widgets that ROCK!
Hi, I'm fairly new in the GWT development but I'm not sure that the selected development answers the initial need. Let me explain you why (sorry it is rather long). It is also very possible that I'm completely wrong. The main goal is allowing the developers to easily theme their application. As a developer I know I'm not good at designing a theme, in the end it always looks ugly. What I want is to be able to browse the themes and say Oh this one looks nice, I'll pick that one!. And then, I just want to download it, add it to my project, add one configuration line that says now on, use this theme. A developer might also have a button in his application that is pretty special: clicking it will erase everything in the database. He wants to have a button that doesn't look like the other ones. He wants to be able to define somewhere a new style for a button with a 10px red border (it's probably good to ask for the help of a designer at this point...). Now, lets turn around and have a look at the designer perspective. He wants to create a theme, he had the nicest ideas. He doesn't really know how to develop simply because it's not his job, but he is really good at creating the CSS and HTML that match his Photoshop mockups. If the pre-existing DOM structure of the widget doesn't match his needs he should be able to simply redefine it. A designer might also wants to tweak a little bit an existing theme (the default one for instance). Imagine that he wants to update how Tabs are rendered and just that. He should be able to do so. Therefore I think that: - Creating a theme should only require to create: - a package that contains it - a simple class that inherits the base theme (the default one or another one). - a .css file with the name of widget to redefine its style - a .ui.xml file with the name of the widget in order to change its DOM structure - Using a theme should only require to point to the right theme class The advantages are: - The rendering of a widget and its style are defined in HTML-like and CSS files. - The themes are simple to create/update/use - If the default theme changes or new widgets are added then there are no impact on pre-existing themes. Now pseudo code samples, it doesn't compile, it just illustrates. First the base Theme class and the Button widget class. // This is the base theme the class that all theme should extends. // This annotation indicates that GWT.create should always return the same instance. @Singleton public class Theme { protected interface UI { // The creation is performed based on the @UiTemplate annotation public Element render(); // Inject the CSS based on the @CssSource annotation injectCss(); } @UiTemplate(button.ui.xml); @CssSource(button.css) public interface ButtonUI extends UI { // Automatic wiring due to the @UiField annotation public void setLabel(Element element, @UiField(label) SafeHtml label); } private ButtonUI buttonUI = null; public final ButtonUI getButtonUI() { // Lazy loading if (buttonUI == null) { buttonUI = GWT.create(ButtonUI.class); buttonUI.injectCss(); } return buttonUI; } // This defines the base style such as the font name and size. // It isn't linked to any widget but rather to the body element @CssSource(style.css) public interface PageStyle extends CssResource {} } public class Button extends NewWidget { private final Theme theme; private SafeHtml label; public Button() { // This should always returns the same instance this.theme = GWT.create(Theme.class) // Render the button, it creates a new DOM structure // The CSS should already be injected setElement(this.theme.getButtonUI().render()); } public Button(SafeHtml label) { this(); setLabel(label); } public void setLabel(SafeHtml label) { // We save it because we cannot retrieve it from the UI this.label = label; // Update the DOM with the new label this.theme.getButtonUI().setLabel(getElement(), label); } } The default button.ui.xml looks like that: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' button class='gwt-button' span class='icon' ui:field='icon'/ span class='label' ui:field='label'/ /button /ui:UiBinder The related button.css looks like that: .gwt-button { /* Style in here */ } .gwt-button icon { /* Style in here */ } .gwt-button label { /* Style in here */ } Now the new theme class: public UglyTheme extends Theme { // Nothing in here } ...with its really ugly button.ui.xml: ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' table class='gwt-button' tr td class='topleft' / td colspan='2' class='top' / td class='topright' / /tr tr td class='left' / td class='icon' ui:field='icon' / td class='label' ui:field='label' / td class='right' / /tr tr td class='bottomleft' / td colspan='2' class='bottom' / td
Re: [gwt-contrib] Re: [RFC] GWT Widgets that ROCK!
With the appearance pattern your proposed Theme class would be the same as a GWT module containing all the deferred bindings for changing all the appearance classes of all widgets. So you would inherit this theme module and you are done. I think you could also overwrite a specific deferred binding in your app module if the compiler always picks the last matching rule. Or am I missing something? But indeed it would be nice to have a UiBinder template (or a general xml template) which defines the DOM structure of a widget instead of a render method. That way we could pass the widget.ui.xml and its widget.css file to a designer and the developer only has to deal with the appearance class and event handling. But with a separate xml template I guess it may be difficult for a developer to implement the onBrowserEvent method because he can not assume any given DOM structure for a widget (each theme may have changed it drastically). So as you pointed out, event handling will be the major issue. But maybe there is a solution for it? I really like the idea of decoupling the DOM structure and having a separate xml file for it. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: [RFC] GWT Widgets that ROCK!
I am wondering if you are considering to use html5 widgets if available and provide a fallback gwt implementation for browsers that do not (yet) support widgets like http://slides.html5rocks.com/#semantic-tags-2 I think in general GWT has the right tools for using native browser stuff whenever available and providing some js-pendants if they are not supported. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Ie9 fix. (issue1389801)
LGTM http://gwt-code-reviews.appspot.com/1389801/diff/1/user/test/com/google/gwt/dom/client/SelectTests.java File user/test/com/google/gwt/dom/client/SelectTests.java (right): http://gwt-code-reviews.appspot.com/1389801/diff/1/user/test/com/google/gwt/dom/client/SelectTests.java#newcode158 user/test/com/google/gwt/dom/client/SelectTests.java:158: group1.appendChild(opt1); extra space http://gwt-code-reviews.appspot.com/1389801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Update partial support elements for ie9. (issue1389802)
Reviewers: jlabanca, Description: Update partial support elements for ie9. Please review this at http://gwt-code-reviews.appspot.com/1389802/ Affected files: M user/src/com/google/gwt/canvas/Canvas.gwt.xml M user/src/com/google/gwt/media/Media.gwt.xml Index: user/src/com/google/gwt/canvas/Canvas.gwt.xml === --- user/src/com/google/gwt/canvas/Canvas.gwt.xml (revision 9873) +++ user/src/com/google/gwt/canvas/Canvas.gwt.xml (working copy) @@ -20,14 +20,14 @@ !-- Define the support property -- define-property name=canvasElementSupport values=maybe,no / - !-- Give default support value of no -- - set-property name=canvasElementSupport value=no / + !-- Give default support value of maybe -- + set-property name=canvasElementSupport value=maybe / - set-property name=canvasElementSupport value=maybe + !-- Give default support value of no to unsupported browsers -- + set-property name=canvasElementSupport value=no any - when-property-is name=user.agent value=safari / - when-property-is name=user.agent value=gecko1_8 / - when-property-is name=user.agent value=opera / + when-property-is name=user.agent value=ie6 / + when-property-is name=user.agent value=ie8 / /any /set-property Index: user/src/com/google/gwt/media/Media.gwt.xml === --- user/src/com/google/gwt/media/Media.gwt.xml (revision 9873) +++ user/src/com/google/gwt/media/Media.gwt.xml (working copy) @@ -21,23 +21,21 @@ define-property name=videoElementSupport values=maybe,no / define-property name=audioElementSupport values=maybe,no / - !-- Give default support value of no -- - set-property name=videoElementSupport value=no / - set-property name=audioElementSupport value=no / + !-- Give default support value of maybe -- + set-property name=videoElementSupport value=maybe / + set-property name=audioElementSupport value=maybe / - set-property name=videoElementSupport value=maybe + set-property name=videoElementSupport value=no any - when-property-is name=user.agent value=safari / - when-property-is name=user.agent value=gecko1_8 / - when-property-is name=user.agent value=opera / + when-property-is name=user.agent value=ie6 / + when-property-is name=user.agent value=ie8 / /any /set-property - set-property name=audioElementSupport value=maybe + set-property name=audioElementSupport value=no any - when-property-is name=user.agent value=safari / - when-property-is name=user.agent value=gecko1_8 / - when-property-is name=user.agent value=opera / + when-property-is name=user.agent value=ie6 / + when-property-is name=user.agent value=ie8 / /any /set-property @@ -53,7 +51,7 @@ replace-with class=com.google.gwt.media.client.Audio.AudioElementSupportDetectedMaybe when-type-is class=com.google.gwt.media.client.Audio.AudioElementSupportDetector / -when-property-is name=videoElementSupport value=maybe / +when-property-is name=audioElementSupport value=maybe / /replace-with replace-with class=com.google.gwt.media.client.Audio.AudioElementSupportDetectedNo -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update partial support elements for ie9. (issue1389802)
LGTM http://gwt-code-reviews.appspot.com/1389802/diff/1/user/src/com/google/gwt/media/Media.gwt.xml File user/src/com/google/gwt/media/Media.gwt.xml (right): http://gwt-code-reviews.appspot.com/1389802/diff/1/user/src/com/google/gwt/media/Media.gwt.xml#newcode54 user/src/com/google/gwt/media/Media.gwt.xml:54: when-property-is name=audioElementSupport value=maybe / good catch! http://gwt-code-reviews.appspot.com/1389802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a new TextButton widget to replace the existing Button widget. The new widget provides th... (issue1383806)
http://gwt-code-reviews.appspot.com/1383806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding a new TextButton widget to replace the existing Button widget. The new widget provides th... (issue1383806)
http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/cell/client/ButtonCellBase.java File user/src/com/google/gwt/cell/client/ButtonCellBase.java (right): http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/cell/client/ButtonCellBase.java#newcode103 user/src/com/google/gwt/cell/client/ButtonCellBase.java:103: ImageResource buttonCellBaseBackground(); On 2011/03/23 03:00:16, pdr wrote: Forgot to add buttonCellBaseBackground.png to the review. It didn't upload to rietveld for some reason. Its part of the change though, and I copied it from our existing button styles. We'll brush up the styles before releasing. http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/User.gwt.xml File user/src/com/google/gwt/user/User.gwt.xml (right): http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/User.gwt.xml#newcode55 user/src/com/google/gwt/user/User.gwt.xml:55: inherits name=com.google.gwt.user.datepicker.DatePicker/ On 2011/03/23 03:00:16, pdr wrote: Can you alphabetize these guys? Done. http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/widget/client/ButtonBase.java File user/src/com/google/gwt/user/widget/client/ButtonBase.java (right): http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/widget/client/ButtonBase.java#newcode56 user/src/com/google/gwt/user/widget/client/ButtonBase.java:56: */ On 2011/03/23 03:00:16, pdr wrote: There is another class called com.google.gwt.user.client.ui.ButtonBase and Eclipse loves picking the wrong one just for fun. Is there a way to avoid that name overlap? I brought this up on the public thread, and most people who commented on this issue said that they are used to duplicate names in Eclipse and would rather we just choose the best name than try to make them unique. Also, only people who extend button will see ButtonBase. Most people will use TextButton. http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/widget/client/TextButton.java File user/src/com/google/gwt/user/widget/client/TextButton.java (right): http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/widget/client/TextButton.java#newcode25 user/src/com/google/gwt/user/widget/client/TextButton.java:25: * A button that displays text and an option icon. On 2011/03/23 03:00:16, pdr wrote: option - optional Done. http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/widget/client/TextButton.java#newcode41 user/src/com/google/gwt/user/widget/client/TextButton.java:41: public static TextButton createDefaultTextButton(String value) { On 2011/03/23 03:00:16, pdr wrote: Subclasses of TextButton won't like these static methods. Should TextButton just be final? It seems to work fine. I created TextButton2 (extends TextButton) and included static classes with the same names. No build errors. http://gwt-code-reviews.appspot.com/1383806/diff/3001/user/src/com/google/gwt/user/widget/client/TextButton.java#newcode83 user/src/com/google/gwt/user/widget/client/TextButton.java:83: * Construct a new {@link TextButton}. On 2011/03/23 03:00:16, pdr wrote: Need to javadoc this. Probably want to include a hint that users can call createXYZTextButton(), etc. Done. http://gwt-code-reviews.appspot.com/1383806/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9877 committed - cherry picking r9861 into release/2.3m1
Revision: 9877 Author: fabio...@google.com Date: Wed Mar 23 05:27:01 2011 Log: cherry picking r9861 into release/2.3m1 http://code.google.com/p/google-web-toolkit/source/detail?r=9877 Modified: /releases/2.3/user/src/com/google/gwt/core/client/impl/Impl.java /releases/2.3/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java /releases/2.3/user/src/com/google/gwt/user/client/impl/DOMImplStandardBase.java === --- /releases/2.3/user/src/com/google/gwt/core/client/impl/Impl.java Thu Dec 16 11:33:51 2010 +++ /releases/2.3/user/src/com/google/gwt/core/client/impl/Impl.java Wed Mar 23 05:27:01 2011 @@ -167,7 +167,7 @@ if (@com.google.gwt.core.client.GWT::isScript()()) { return jsFunction.apply(thisObj, arguments); } else { - _ = jsFunction.apply(thisObj, arguments); + var _ = jsFunction.apply(thisObj, arguments); if (_ != null) { // Wrap for Development Mode _ = Object(_); === --- /releases/2.3/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java Tue Mar 1 06:29:34 2011 +++ /releases/2.3/user/src/com/google/gwt/user/client/impl/DOMImplStandard.java Wed Mar 23 05:27:01 2011 @@ -145,43 +145,23 @@ @Override protected native void initEventSystem() /*-{ - @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent = $entry(function(evt) { - if ((@com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedEvent)(evt)) { -var cap = @com.google.gwt.user.client.impl.DOMImplStandard::captureElem; -if (cap cap.__listener) { - if (@com.google.gwt.user.client.impl.DOMImpl::isMyListener(Ljava/lang/Object;)(cap.__listener)) { - @com.google.gwt.user.client.DOM::dispatchEvent(Lcom/google/gwt/user/client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/gwt/user/client/EventListener;)(evt, cap, cap.__listener); -evt.stopPropagation(); - } -} - } -}); - @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedEvent = $entry(function(evt) { if (!@com.google.gwt.user.client.DOM::previewEvent(Lcom/google/gwt/user/client/Event;)(evt)) { evt.stopPropagation(); evt.preventDefault(); return false; } - return true; }); - @com.google.gwt.user.client.impl.DOMImplStandard::dispatchUnhandledEvent = $entry(function(evt) { - this.__gwtLastUnhandledEvent = evt.type; - @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent.call(this, evt); -}); - @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent = $entry(function(evt) { var listener, curElem = this; while (curElem !(listener = curElem.__listener)) { curElem = curElem.parentNode; } - if (curElem curElem.nodeType != 1) { curElem = null; } - if (listener) { if (@com.google.gwt.user.client.impl.DOMImpl::isMyListener(Ljava/lang/Object;)(listener)) { @com.google.gwt.user.client.DOM::dispatchEvent(Lcom/google/gwt/user/client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/gwt/user/client/EventListener;)(evt, curElem, listener); @@ -189,6 +169,24 @@ } }); + @com.google.gwt.user.client.impl.DOMImplStandard::dispatchUnhandledEvent = $entry(function(evt) { + this.__gwtLastUnhandledEvent = evt.type; + @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent.call(this, evt); +}); + + @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent = $entry(function(evt) { + var dispatchCapturedEventFn = @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedEvent; + if (dispatchCapturedEventFn(evt)) { +var cap = @com.google.gwt.user.client.impl.DOMImplStandard::captureElem; +if (cap cap.__listener) { + if (@com.google.gwt.user.client.impl.DOMImpl::isMyListener(Ljava/lang/Object;)(cap.__listener)) { + @com.google.gwt.user.client.DOM::dispatchEvent(Lcom/google/gwt/user/client/Event;Lcom/google/gwt/user/client/Element;Lcom/google/gwt/user/client/EventListener;)(evt, cap, cap.__listener); +evt.stopPropagation(); + } +} + } +}); + $wnd.addEventListener('click', @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent, true); $wnd.addEventListener('dblclick', @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent, true); $wnd.addEventListener('mousedown', @com.google.gwt.user.client.impl.DOMImplStandard::dispatchCapturedMouseEvent, true); === --- /releases/2.3/user/src/com/google/gwt/user/client/impl/DOMImplStandardBase.java Fri Mar 11 09:47:37 2011 +++
[gwt-contrib] Re: Made UiBinder class lookup more generous. (issue1386803)
http://gwt-code-reviews.appspot.com/1386803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Made UiBinder class lookup more generous. (issue1386803)
Thanks, updated as suggested. http://gwt-code-reviews.appspot.com/1386803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java File user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java (right): http://gwt-code-reviews.appspot.com/1386803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode525 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:525: On 2011/03/22 18:29:42, sbrubaker wrote: Can you add back the if (pkg == null) ... error check? We should still throw an exception if the named package is not found. You can then remove the null check that follows. Done. http://gwt-code-reviews.appspot.com/1386803/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode542 user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:542: } On 2011/03/22 18:29:42, sbrubaker wrote: Please add a unit test for this new functionality to UiBinderTest. Done; verified that the test fails without the change and passes with. http://gwt-code-reviews.appspot.com/1386803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors