GWT runAsync - code fragments dependencies
Hi, i'm trying to modify my app's loading performance by using runAsync when initializing different subsystems and I have a few questions: 1. when the code called in callback's onSuccess method is split in another download fragment, will all the code from the called classes, subclasses, methods (those of the main class, and those of the classes used by them) etc be split as well, and not included in the initial download ? 2. when instantiating a class outside the callback's onSuccess, will the whole code of that class be included in the initial download (metods, members, other subclasses)? so if I call methods from that class in the callback's onSuccess will the code be included in a separate download (ie. the code from the class's constructor will be in the initial download and those from its called methods will be in a separate download ?) If the answer is in another post, please share :) -- You received 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. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Diagnose GWT DMP Plugin crashes on Chrome
I believe I have a similar problem. I post it here: http://stackoverflow.com/questions/11578471/gwt-development-mode-unable-to-load-module-in-chrome On Wednesday, February 1, 2012 10:14:50 PM UTC+2, JoseM wrote: Nobody has any ideas how we can diagnose our issue? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Txnwz_U_q68J. 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.
Auto position popup menu
Is there a menu popup like widget with the capability of positioning a the popup automatically so that it doesn't go off-screen ? For example a like a menu bar but when the widget is on the bottom of the screen, the popup opens on top so it will remain on the screen. -- You received 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: Capturing TAB-key in RichTextArea
Maybe this will help: http://albertattard.blogspot.com/2009/11/capturing-tab-key-in-gwt-textarea.html On Jan 18, 4:45 am, Marcus Franzen franzen.mar...@gmail.com wrote: Hi! I would like to use the tab-character within a RichTextArea in GWT. The usual behavior of pressing the tab-key is to switch the focus to the next element. I am trying to capture the TAB-Key when typing text in a RichTextArea (via KeyDownHandler) and insert the tab character at the current cursor position. Sadly the RichTextArea has no getCursorPos/setCursorPos like the TextArea has. Any ideas? Many thanks! Marcus -- You received 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.
Getting OS or hardware info
Is there a way to get more information about a client? Hardware or OS? (using either the servlet methods or browser headers) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem when deploying new compiled code
Hello, I use GWT + GAE for my app development and I have a problem when deploying a version containing a lot of changes (compared to the last version): for example: same gadgets but with a different code/ architecture, changed DTOs, etc. Some times, when deploying a new version (and then setting it default), the browser shows only a blank page (the javascript code is run but nothing is desplayed). I can't really reproduce the problem so it is very hard to debug, but if needed I can instruct my users to clean their cookies and cache, and the problem is solved. Is there a way to solve this problem ? (for ex, creating a script that runs at the beginning of onModuleLoad()) -- You received 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.
Inserting Widgets and simple text into panel
Hello, I want create a panel with a flow layout (for ex. FlowPanel) which contains 2 widgets and a large text at the end (not a div or another element) I tried to add the widgets and then set the panel's element text: flowPanel.add(w1) flowPanel.add(w2) flowPanel.getElement.setInnerText(largeText) but the last line overrides all other widgets. How can i do this (but without using UIBinder for now.) ? -- You received 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: Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)
I also tried extending SuggestOracle, or Suggestion interface, but i cannot access the methods needed or fields, because they have private or default visibility. Is there something I'm missing ? On Oct 5, 1:29 pm, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I want to create a suggest box with suggestions that have replacement strings different from display strings I created acollectionof MultiWordSuggestion(replString, displayString) but i cannot find how to add them to the SuggestOracle. I have methods add(string) or addAll(stringCollection), and only setDefaultSuggestions(suggestionCollection). the oracle does not have a method addAll(CollectionSuggestion suggestions) or add(Suggestions). So how do put suggestions with replacement strings different from display strings? -- You received 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.
Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)
Hello, I want to create a suggest box with suggestions that have replacement strings different from display strings I created a collection of MultiWordSuggestion(replString, displayString) but i cannot find how to add them to the SuggestOracle. I have methods add(string) or addAll(stringCollection), and only setDefaultSuggestions(suggestionCollection). the oracle does not have a method addAll(CollectionSuggestion suggestions) or add(Suggestion s). So how do put suggestions with replacement strings different from display strings? -- You received 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.
Candlestick charts (gchart?)
I need a library to create candlestick charts. I took a look at ghart but i did not found this functionality. Does anyone know if it can help me ? Or at least, if i can customize charts to look like candle stick charst. -- You received 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.
Deploying to App engine
Hello, i have a simple question: I use GWT and GAE for my application, but the deployment phase takes too long: any small modification to the GWT java code will trigger the whole compilation. Is there anything i can do to speed up this process ? -- You received 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.
Animated counter widget with digits
Hello, is there an animated counter widget that simulates digit changes ? Like the ones in these images: http://www.animationlibrary.com/sc/59/Counters/ -- You received 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.
Overriding RemoteServiceServlet.checkPermutationStrongName()
Hello, i get this exception java.lang.SecurityException: Blocked request without GWT permutation header in my app, but only at some user requests. If i override the method checkPermutationStrongName() in the remote servlet (which checks a request header) by leaving it empty, will that cause security issues ? Or is there another way of avoiding this exception ? -- You received 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.
Simple dragdrop
Hello, i want to create a minor dragdrop functionality to a my table (or just use a simple library): rearranging the rows in a table with dragdrop, with the effect of location interchanging (for ex: in mobile apps). What widgets/library would you recommend ? Any advice would be welcomed :) -- You received 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 widget with key events handlers
Hello, i have a widget that extends Composite and has a VerticalPanel as the main widget. I want to catch all key events (let's say on key pressed) when this widget is focused, or any of its containing widget (any widget in the hierarchy). If i try to handle click events everything works ok, but i can't add a handler for key events. Is it a problem with the main widget (which is a table element)? Can someone give me an advice ? (link somewhere, or a simple code) -- You received 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.
Getting child window(s)
Is it possible to get a handle to the windows opened by a certain window ? For example, i have an anchor element with a href and a target that opens a new window at some point. Can i access that window (for ex a method like getChildWindows()'? Or by opening a window with an anchor, i automatically lose the handle to that window. -- You received 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: Window.open without pop-up browser message
Is it possible that new browser versions have a different behavior from the old ones? On Mar 7, 4:19 pm, Ice13ill andrei.fifi...@gmail.com wrote: I want to use window.open when clicking a div with _blank target. The problem is that the browser thinks is a popup window and presents a Allow popup for... message to the user. The link is generated using GWT.getModuleBaseURL() + someQueryString + #m=Somthing etc. (I even tried with a relative path: url = ? + someQueryString + ... ) How can i avoid this message ? Shouldn't the browser display that message only if the url refers to a page on another domain ??? (for example, in google docs, clicking Open in the right-click doc menu works perfectly) -- You received 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.
Window.open without pop-up browser message
I want to use window.open when clicking a div with _blank target. The problem is that the browser thinks is a popup window and presents a Allow popup for... message to the user. The link is generated using GWT.getModuleBaseURL() + someQueryString + #m=Somthing etc. (I even tried with a relative path: url = ? + someQueryString + ... ) How can i avoid this message ? Shouldn't the browser display that message only if the url refers to a page on another domain ??? (for example, in google docs, clicking Open in the right-click doc menu works perfectly) -- You received 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.
Window.open handle ?
I noticed that Window.open() method does not return a handle to the new window (although javascript does...). Is there another mechanism that gives this access to that new window? For example i have a small panel (like the chat in gmail) and i want to implement the pop out! functionality (as easy as i can). -- You received 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.
Blocked request without GWT permutation header
I use GWT and GAE for my deployment environment and sometimes I get this exception (for some of my users): javax.servlet.ServletContext log: Exception while dispatching incoming RPC call java.lang.SecurityException: Blocked request without GWT permutation header (XSRF attack?) at com.google.gwt.user.server.rpc.RemoteServiceServlet.checkPermutationStrongName(RemoteServiceServlet.java: 267) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 202) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 243) . Is this a problem from the GWT compiler ? -- You received 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.
SerializationException problem, please advice!
I use GWT to develop my app, deploying it to GAE. Sometimes, (more often when switching between different versions) i get this exception: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'ro.expert.evt.shared.entities.UserProfile' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized. My entities classes (like UserProfile above) extends an EObject class that also extends EEntity (which is the only class that implements java.io.Serializable). I cannot reproduce it exactly, but i found some posts on the web saying that adding a default empty constructor to all entities will resolve the problem. I'm not sure about that so i would like some advice on implementing IsSerializable (GWT) or Serializable (java.io). Can I use both GWT's IsSerializable AND java.io.Serializable to be implemented by the top level class ? (EEntity in my case) so that my entities can also be passed through a wire or GWT RPC. Or does the GWT IsSerializable needs to be implemented by every entity class ? (like UserProfile) -- You received 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.
Widget/Panel collapse using arrow button or bar
Hello, I need a simple widget that collapses/hides a panel (or div) and looks something like the google reader hiding bar, or gwt tutorial site (or an arrow button like the new google groups interface or google news). I just need a simple code (with some css styles), not a whole library. Even a javascript code that can be integrated with gwt is ok. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Why 5 compilations instead of 6 ?
I noticed that now gwt compiles 5 permutations instead of 6 (for: ie6,ie8,gecko1_8,safari,opera properties). What happened to the gecko property ? Will this affect the rendering in different browsers ? (i.e. firefox for windows or firefox for linux ? ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder or GWT Designer
I believe that junaidp was expecting a more detailed answer :) On Dec 20, 6:37 pm, Thomas Broyer t.bro...@gmail.com wrote: UiBinder is a feature of GWT that generates Java code from XML files to describe user interfaces. GWT Designer is a developer tool that allows you to generate Java code * and/or* UiBinder XML using a *designer* (RAD) rather than typing it by hand in a text editor. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Developing GWT app on both mobile and desktop browsers
I have a gwt application developed for desktop computer browsers and i need to modify it's architecture so that widgets can adapt to mobile screens. The app is using an MVC pattern (with some enhancements from the MVP pattern, like events distributed through an event bus). So i need some pointers or some articles to develop the app for mobile browsers as well (that is, small screen devices). This can be done by creating duplicate visual widgets (2 for each widget lets say... one for small, one for large screen), or maybe by dynamically loading another js gwt compiled code (i don't think this is a solution since the app is pretty large). I was thinking of adapting the app to the MVP pattern (one by one) and maybe also using UiBinder (currently i don't use it because most of the widgets load their inner data or inner widgets dynamically). Also, gwt tutorials/documentation that can help creating/modifying the architecture would be very appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How can I truncate an image before upload
Is it possible to resize an image (thus creating an image with a smaller size) using GWT? Let's say i have a 5Mb picture, but before i upload it to the server i want to automatically resize it to be smaller that 1Mb How can i do 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I truncate an image before upload
Well, I was thinking about creating a temp copy of the image, scale it and upload the new image. But i don't want to use other technologies (Java applet or JavaFx). Other gwt libraries are ok. On Nov 19, 4:16 pm, Didier Durand durand.did...@gmail.com wrote: Hi, GWT translate Java to Javascript to run on the client side. This javascript is then in the usual sandbox preventing access to pc files: I would say that what you want to achieve is not possible because of this js architecture unless you go to very special tricks requiring additional component. Seehttp://www.baconbutty.com/blog-entry.php?id=29 didier On Nov 19, 3:07 pm, Ice13ill andrei.fifi...@gmail.com wrote: Is it possible to resize an image (thus creating an image with a smaller size) using GWT? Let's say i have a 5Mb picture, but before i upload it to the server i want to automatically resize it to be smaller that 1Mb How can i do 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I truncate an image before upload
Well, i haven't found a library yet... If someone knows one, please let me know. On Nov 19, 4:44 pm, ep eplisc...@googlemail.com wrote: before HTML5 its not possible in javascript to transform images, but you can ask google, if found library you can simply use it within GWT. Elsewise, just get your image uploaded - and transform it on the server On 19 Nov., 15:35, Ice13ill andrei.fifi...@gmail.com wrote: Well, I was thinking about creating a temp copy of the image, scale it and upload the new image. But i don't want to use other technologies (Java applet or JavaFx). Other gwt libraries are ok. On Nov 19, 4:16 pm, Didier Durand durand.did...@gmail.com wrote: Hi, GWT translate Java to Javascript to run on the client side. This javascript is then in the usual sandbox preventing access to pc files: I would say that what you want to achieve is not possible because of this js architecture unless you go to very special tricks requiring additional component. Seehttp://www.baconbutty.com/blog-entry.php?id=29 didier On Nov 19, 3:07 pm, Ice13ill andrei.fifi...@gmail.com wrote: Is it possible to resize an image (thus creating an image with a smaller size) using GWT? Let's say i have a 5Mb picture, but before i upload it to the server i want to automatically resize it to be smaller that 1Mb How can i do 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT RPC serialization between 2 servlets
Hello, I want to send objects between 2 servlets and i was wondering if the GWT RPC mechanism used for client - server communication can also be used to send data across two servlets that extend RemoteServiceServlet. Or maybe I can use the Java serialization to actually send bytes from one servlet to another ? Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Test if element has focus
I searched for a method in GWT to test if a widget is focused or not but i couldn't find one. Is there a method in the GWT classes or do i have to create a native js method ? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Advice for GWT.create and replace-with tag ?
I'm developing an app for 2 languages and GWT performs 12 compilation (2*6 for each browser) But i also need to develop a second UI for some widgets so i decided to use the replace-with tag for replacing a class with one of it's children and also instantiating that class with GWT.create(). the problem is that now GWT performs 24 compilation (and it seems very awkward because the gwt library uses a lot of these replace-with/ create() stuff). So if i use a second replace-with tag and GWT.create() for another class replacement, will that generate another 12 compilations ? (36 total !) The question is: am i doing smth wrong ? or should i adopt another strategy for using multiple classes ? Please advice ! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Advice for GWT.create and replace-with tag ?
yes... i understand.. it's obvious, but the property defined that cause the other compilations was in another gwt.xml file. The fact is that i need to rearange the UI for a lot of widgets in my app when using a mobile phone browser. So i figured that using GWT.create and replacing a class with one that overrides some of the drawing logic would be an elegant solution. For that, i created a property named is.mobile with true/false values. So i don't like the fact that i have to compile another 12 permutations, but if it is a good way of doing this, well i guess it's ok. Btw, when i removed the replace-with tag, those other 12 permutations were no more performed. So if i have a property defined, those permutations are compiled only if that property is used somewhere ? On Aug 30, 3:25 pm, Thomas Broyer t.bro...@gmail.com wrote: On 30 août, 11:54, Ice13ill andrei.fifi...@gmail.com wrote: I'm developing an app for 2 languages and GWT performs 12 compilation (2*6 for each browser) But i also need to develop a second UI for some widgets so i decided to use the replace-with tag for replacing a class with one of it's children and also instantiating that class with GWT.create(). the problem is that now GWT performs 24 compilation (and it seems very awkward because the gwt library uses a lot of these replace-with/ create() stuff). So if i use a second replace-with tag and GWT.create() for another class replacement, will that generate another 12 compilations ? (36 total !) The number of permutation is dependent upon the number of deferred- binding properties and their possible values, not the number of replace-with or generate-with rules. The question is: am i doing smth wrong ? or should i adopt another strategy for using multiple classes ? Please advice ! I don't understand what you mean by a second UI for some widgets so I can't tell how you should do it (and whether replace-with and more generally deferred-binding is appropriate for your case). What's clear is that you seem to have added a new deferred-binding property (define-property) with two possible values (to be determined at runtime by a property-provider or explicitly using a meta name=gwt:property), and you should question yourself whether this is needed. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT runAsync question
Nobody? anybody ? On Aug 23, 7:35 pm, Ice13ill andrei.fifi...@gmail.com wrote: I would like to know if the GWT.runAsync method downloads code recursive when calling methods inside the code that is being run async. For example if i have a load() method with let's say 100 lines of code (which also contains some other methods), will GWT download async the code inside load() method ? or will do this only for that line of code (which is actually 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT runAsync question
I would like to know if the GWT.runAsync method downloads code recursive when calling methods inside the code that is being run async. For example if i have a load() method with let's say 100 lines of code (which also contains some other methods), will GWT download async the code inside load() method ? or will do this only for that line of code (which is actually 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Setting / in history token using encodeComponent
Well, it seams it's ok :) If GWT automatically encodes % when setting the history token, well, it will also decode it, that means that i can use URL class for encoding my text, and decoding it when retrieving the history token. (using encodeComponent and decodeComponent methods, for the / character) On Aug 17, 6:37 pm, Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com wrote: Well, this is just stupid... this means i cannot encode http:// in my url ? well, GMAIL can, so what;s the deal ? i don;t think this is a bug it seams like am amateur's mistake. On 17 August 2010 18:31, Thomas Broyer t.bro...@gmail.com wrote: On 17 août, 17:07, Ice13ill andrei.fifi...@gmail.com wrote: I'm trying to set a text in history token containing the / character but i want to encode it before setting the token For exameple : 2/12/a to become 2%2F12%2Fa the problem is that GWT also converts automatically % in %25. thus History.newItem(URL.encodeComponent(text)) does not set the correct text. so how do i set in the history item the text %2F ? You just cannot, at least using the stock History class in its current state (but you could re-implement –copy/paste– on your own to overcome this limitation). I guess this is because some browsers would give you the same thing for both / and %2F; or maybe just that History is actually broken (or let's rather say there's room for improvement, by implementing it differently) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Setting / in history token using encodeComponent
I'm trying to set a text in history token containing the / character but i want to encode it before setting the token For exameple : 2/12/a to become 2%2F12%2Fa the problem is that GWT also converts automatically % in %25. thus History.newItem(URL.encodeComponent(text)) does not set the correct text. so how do i set in the history item the text %2F ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Detecting mobile phones browser
I wont to know if by checking the user.agent property in the gwt.xml file I can detect if the client is using a browser on a mobile phone (like HTC wiht Android, or IPhone etc) And also, are there nasty restrictions on the JS (thus GWT classes) on those browsers ?(at least for those very widely used) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Load widgets with user specific information strategy
I wouldn't use queries that have as parameter the user's ID receiverd from the client because that could cause a security issue (let's say a hack could change the id that will reach the server). Instead you could store the user's ID on server side based on the current session (which probably depends on your server side technology). So then you would pass the stored value of the ID to your query. But the use of the stored account id on client side is ok if you use it for graphical purposes (widget view customization let's say...). On Jul 29, 3:46 am, Ho Jimmy jimmyyl...@gmail.com wrote: Hi, This is a application design question with GWT. After the user login, the application needs to load widgets with user specific data. I maintain a base panel with a private variable, accountId. After the user login, it will assigned the account id to this private variable. Then, the widgets added to the base panel will use the accountId to query the database by RPC. So, everytime I need to check the accountId when I need to load new widgets, and it would be redundant if I have a few base panels. Is there any other suggestion? Thanks Jimmy -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Creating a javascript widget with GWT
Is it possible to create a widget with GWT, and the passing the source of the .js generated file to those who want to use the widget in their sites ? I developed a simple widget with GWT and Google App engine but when i use the .nocache.js file, i get a permission denied exception because some generated JS lines form the generated files (cache.html for example) calls Window.property (document, or location etc) So can i disable some generated code ? or am I restricted to use only a part of the API ? Or do i have to use IFrame element ? (and i don't really want that) Please advice... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT supports custom created annotations ?
Hello, I was wondering if gwt supports my own created annotations. More specifically, let's say i want to log a message whenever an RPC call is made (a call to MyServiceAsync interface). But i don't want to create a wrapper like WrapperMyService { myMethod(..., callback) { Logger.log(msg); myServAsync.myMethod(..., callback); } } So can I create an annotation so a specified method is always called when myMethod() on the async interface is called ? (can I annotatate methods inside the async interf?) If not, is there a nicer approach ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RadioButton detect value change when deselection is automatic
I'm trying to customize some radio buttons in GWT, but i cannot execute operation when value is change by selecting other buttons in the same group. It seams that onValueChange is not triggered for those radio buttons that loose their value (automatic deselection) when a certain radio button in the same group is pressed. So is there a way of detecting that ? or make the method trigger for the widget that looses value ? (i need that to set an image). I also tried checking the value when at focus or blur, but if the input tag is not displayed (i need to hide that to display my own selection images), the onBlur, onFocus methods are not called. I'm i doing smth 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can I cancel firing of ClickEvent or remove on a flex table ?
Hello, I'm using a flex table with some Label widgets and an Anchor widget When i select a row (when i click on a label), the table has a click handler so, a ClickEvent is fired. and every time a cell is clicked i need to call a method (let's say onRowSelected(...), witch always needs to be called when the cell is clicked) Problem: if i add an Anchor element, with it's own handler (associated action) it will fire both the onRowSelected method, and the action given to the Anchor handler. In this case, i dont want to fire the cell clicked event. Also, i can't set the width of the anchor to be the same with the cell (in that case, i could just do nothing if the cell contains an Anchor) So it's there a way to cancel the cell clicked event, if the element already has a handler ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can I cancel firing of ClickEvent or remove on a flex table ?
I thought of a way to stop executing the action associated with the cell by simply adding return; to the method if the mouse is over the Anchor widget. But how do i test if the mouse is over the anchor ? :D On Mar 8, 1:45 pm, Ice13ill andrei.fifi...@gmail.com wrote: Hello, I'm using a flex table with some Label widgets and an Anchor widget When i select a row (when i click on a label), the table has a click handler so, a ClickEvent is fired. and every time a cell is clicked i need to call a method (let's say onRowSelected(...), witch always needs to be called when the cell is clicked) Problem: if i add an Anchor element, with it's own handler (associated action) it will fire both the onRowSelected method, and the action given to the Anchor handler. In this case, i dont want to fire the cell clicked event. Also, i can't set the width of the anchor to be the same with the cell (in that case, i could just do nothing if the cell contains an Anchor) So it's there a way to cancel the cell clicked event, if the element already has a handler ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HanlderManager
Regarding the source of HandlerManager, if i have a custom event and handler (CellClickEvent and CellClickHandler with onCustomCellClicked() let's say...) when i instantiate HandlerManager handlerList = new HandlerManager(flexTable) , fire the event with handlerList.fire(new CellClickEvent(...)) , if i try to get the source with evt.getSource() in the onCustomCellClick(CellClickEvent evt) i get source = null. Why is that ? Shouldn't the source be the flexTable object (above)? On Jan 29, 8:43 pm, Alexander the.malk...@gmail.com wrote: It is normal behaviour On 29 January 2010 19:46, Bolletta Mathieu mathieu.bolle...@gmail.comwrote: Hi there, Can someone tell me *Why* when an event is fired, the source is changed? public void fireEvent(GwtEvent? event) { // If it not live we should revive it. if (!event.isLive()) { event.revive(); } Object oldSource = event.getSource(); // why? event.setSource(source); try { firingDepth++; registry.fireEvent(event, isReverseOrder); } finally { firingDepth--; if (firingDepth == 0) { handleQueuedAddsAndRemoves(); } } if (oldSource == null) { // This was my event, so I should kill it now that I'm done. event.kill(); } else { // Restoring the source for the next handler to use. event.setSource(oldSource); } } thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Regards, Alexander -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DatePicker disabling specified dates
At least tell me if i'm posting the wrong questions :P On Feb 24, 4:47 pm, Ice13ill andrei.fifi...@gmail.com wrote: I tried using formatting but i can't disable the cells of theDatePicker I just want to disable all dates before a given date. how do i do that ? On Jan 20, 6:54 pm, Jim Douglas jdoug...@basis.com wrote: If you're using a DateBox, you can define a custom Format with your own parsing rules with: setFormat(new CustomDateFormat(DateTimeFormat.getFormat (pattern))); http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...) private static final String DATE_BOX_FORMAT_ERROR = dateBoxFormatError; private class CustomDateFormat extends DateBox.DefaultFormat { public CustomDateFormat(DateTimeFormat dateTimeFormat) { super(dateTimeFormat); } @Override public Date parse(DateBox dateBox, String dateText, boolean reportError) { Date date = null; try { if (dateText.length() 0) { date = getDateTimeFormat().parseStrict(dateText); } } catch (Exception exception) { // According to the documentation, this should be an // IllegalArgumentException, but bugs in DateTimeFormat // can cause other exceptions to be thrown, for example: // java.lang.StringIndexOutOfBoundsException: String index out of range: 0 // at java.lang.String.charAt(String.java:558) // at com.google.gwt.i18n.client.DateTimeFormat.parseInt(DateTimeFormat.java: 1415) } if (date == null) { // If there are other formats you want to support, do the parsing here } if (date != null) { // If there aredatesthat you want to disallow, set date to null here } if (date == null reportError) { dateBox.addStyleName(DATE_BOX_FORMAT_ERROR); } return date; } } On Jan 19, 8:02 am, Mark Davis markdavis1...@gmail.com wrote: Hi, I need todisablespecifieddatesinDatePicker. What is the best way to do it? thanks in advance, Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DatePicker disabling specified dates
I tried using formatting but i can't disable the cells of the DatePicker I just want to disable all dates before a given date. how do i do that ? On Jan 20, 6:54 pm, Jim Douglas jdoug...@basis.com wrote: If you're using a DateBox, you can define a custom Format with your own parsing rules with: setFormat(new CustomDateFormat(DateTimeFormat.getFormat (pattern))); http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g...) private static final String DATE_BOX_FORMAT_ERROR = dateBoxFormatError; private class CustomDateFormat extends DateBox.DefaultFormat { public CustomDateFormat(DateTimeFormat dateTimeFormat) { super(dateTimeFormat); } @Override public Date parse(DateBox dateBox, String dateText, boolean reportError) { Date date = null; try { if (dateText.length() 0) { date = getDateTimeFormat().parseStrict(dateText); } } catch (Exception exception) { // According to the documentation, this should be an // IllegalArgumentException, but bugs in DateTimeFormat // can cause other exceptions to be thrown, for example: // java.lang.StringIndexOutOfBoundsException: String index out of range: 0 // at java.lang.String.charAt(String.java:558) // at com.google.gwt.i18n.client.DateTimeFormat.parseInt(DateTimeFormat.java: 1415) } if (date == null) { // If there are other formats you want to support, do the parsing here } if (date != null) { // If there aredatesthat you want to disallow, set date to null here } if (date == null reportError) { dateBox.addStyleName(DATE_BOX_FORMAT_ERROR); } return date; } } On Jan 19, 8:02 am, Mark Davis markdavis1...@gmail.com wrote: Hi, I need todisablespecifieddatesin DatePicker. What is the best way to do it? thanks in advance, Mark -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
File upload problem
I'm trying to upload a file using GWT + GAE. I want to store the file as a BLOB, but i can't get there because i can't make the request: my code is: final FormPanel form = new FormPanel(); form.setAction(/ebas/fileservice); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); ... submit on click i get this exception: Content-Type was 'multipart/form-data; boundary=---15625134051197559972520180008'. Expected 'text/x-gwt-rpc' if i set this: form.setEncoding(text/x-gwt-rpc); i get javax.servlet.ServletException: Content-Type was 'application/x-www- form-urlencoded'. Expected 'text/x-gwt-rpc'. What's the problem? and how do i handle the request since i can't override doPost method ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: File upload problem
ok... so... i found it works with a HttpServlet and i fond a way to get the input stream using some jars from apache (http:// code.google.com/appengine/kb/java.html#fileforms). Should i understand that i can't use a RemoteServiceServlet (GWT) ? or should i change method to METHOD_GET (does that work ?) On Feb 12, 3:18 pm, Ice13ill andrei.fifi...@gmail.com wrote: I'm trying to upload a file using GWT + GAE. I want to store the file as a BLOB, but i can't get there because i can't make the request: my code is: final FormPanel form = new FormPanel(); form.setAction(/ebas/fileservice); form.setEncoding(FormPanel.ENCODING_MULTIPART); form.setMethod(FormPanel.METHOD_POST); ... submit on click i get this exception: Content-Type was 'multipart/form-data; boundary=---15625134051197559972520180008'. Expected 'text/x-gwt-rpc' if i set this: form.setEncoding(text/x-gwt-rpc); i get javax.servlet.ServletException: Content-Type was 'application/x-www- form-urlencoded'. Expected 'text/x-gwt-rpc'. What's the problem? and how do i handle the request since i can't override doPost method ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Good table widgets / panels
I read that using widgets like VerticalPanel, witch are composed of td elements can create some problems when working with some css properties (height in percentage in this case, or vertical align). If i need a cell panel, i found thay DockLayoutPanel for example is good because it uses div elements. My questions are: 1. Are there other panels that don't have problems with height in % or smth like that? (that also use div elements probably ) 2. What would you recommend if i need a table widget ? (FlexTable is also composed from tr, td elements right ?, or a table created by Vertical and Horizontal Panels) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UI Binder paths
i'm using uibinder to create some widgets with a CSS file and the corresponding .java and .ui.xml files. Where can i find how the uibinder accesses the required resources ? For example, i have my widgets in the package com.testapp.client.widgets : MyWidget.java and MyWidget.ui.xml The css file is in war/TestApp.css how can i access the css file with the ui:style src=file.css / tag? if i separate the .java files from .ui.xml files how can i tell where to find the ui.xml file when i create the widget ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Custom event system
Hello, i'm trying to develop a custom application event system using my own events and a base event (inherited by the other event types) Here is the code of the base event class: public class EBaseEventH extends EventHandler extends GwtEventH{ public static GwtEvent.TypeH TYPE = new GwtEvent.TypeH(); @Override public GwtEvent.TypeH getAssociatedType() { return TYPE; } } The first pb is a compilation problem: i get the message: Cannot make a static reference to a non-static type H I don't understand, why is H a static type ? and how can i resolve the pb ? (i'm not very good working with parametrized types) The second pb is that i'm not sure if this is a good/correct approach. Any ideas ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Gadget more ?
Does someone knows a library with gadget/widget like the more item from the google main menu ? (the menu seen on the top of the page, with links to other apps) --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Change focus on another browser window/tab?
If i open another window or tab with a gwt Anchor let's say... is it possible to select that window/tab from within the code ? or just another opened window/tab. Is there a method like .getOpenedWindows() - Window[] ? or .getWindowByTitle(String title) or smth like 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: Using class on both client and server sides
And what if i want to use a package both on the client and server side, but one of the classes has imports from app engine witch cannot be used in GWT. Can i instruct the compiler (let's say in the .gwt.xml file) to exclude a class from a package when compiling ? On Jul 29, 6:18 pm, Nuno brun...@gmail.com wrote: Also, if you class is just a pojo you dont really need to create it in two places... the server code can access all of your client code. You just need to make the classes you want to transport from client to server or vice versa. In your example Contact may stay in the client package, and if you need to send a Contact object to the server, or make the server send it to you, just make this class Serializable. On Wed, Jul 29, 2009 at 12:10 PM, Paul Robinson ukcue...@gmail.com wrote: You want this in your gwt.xml file: source path=client/ source path=shared/ Note that if any source... element appears in your gwt.xml, then the implied client source path is not added for you - so you will need both of the above. Paul Ice13ill wrote: Hello, I'm trying to use a class (let's say Contact) on both client and server sides (packages: com.app.client and com.app.server). For that purpose I created a shared package (com.app.shared) in which to put the Contact class. But gwt (client side) only sees classes in com.app.client package. How can I use the Contact class on client side for the com.app.shared package? Do I have to add a inherits tag in my .gwt.xml file ? Thanks. -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Changing focus on another browser window/tab
If i open another window or tab with a gwt Anchor let's say... is it possible to select that window/tab from within the code ? or just another opened window/tab. Is there a method like .getOpenedWindows() - Window[] ? or .getWindowByTitle(String title) or smth like 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: Is it possible to clone Widgets?
any suggestions? tips? On Aug 13, 4:53 pm, Ice13ill andrei.fifi...@gmail.com wrote: If i have aWidget, in a VerticalPanel let's say, and i want to add awidgetwith the same properties in another panel, is it possible toclonethatwidget? Or to create aWidgetfrom that firstwidget? (Smth like :Widgetw = newWidget(firstWidget) ) --~--~-~--~~~---~--~~ You received 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 it possible to clone Widgets?
If i have a Widget, in a VerticalPanel let's say, and i want to add a widget with the same properties in another panel, is it possible to clone that widget? Or to create a Widget from that first widget ? (Smth like : Widget w = new Widget(firstWidget) ) --~--~-~--~~~---~--~~ You received 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 language/translation support
I was wondering why google developed language support using an interface, annotations, a language file etc. by creating methods for every word/message (annotating if needed), which is kinda annoying because if i create an UI with lots of (predefined) words, i have to create a method and annotate, and then use it. Isn't it easier to read a file for a requested language (xml for ex) and send it basically as a MapString, String ? Which of these methods is better ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem cascading styles in GWT
I also applied properties to body element and i noticed that the font-family property is inherited only by labels and not by buttons. Is that ok? On Aug 11, 12:41 pm, Ice13ill andrei.fifi...@gmail.com wrote: Hello, i'm trying to use CSS with gwt (cascade styles). I have this code: hpMain.add(hp1); hpMain.add(vp1); hp1.add(lb); hp1.add(new Label(in hp1)); vp1.add(new Button(B 1)); vp1.add(new Button(B 2)); vp1.add(new Button(B 3)); hpMain.setStyleName(styleMain); vp1.setStyleName(styleVP1); hp1.setStyleName(styleHP1); lb.setStyleName(styleLabel); where private String styleMain = GadgetTest1; private String styleHP1 = hPanel1; private String styleVP1 = vPanel1; private String styleLabel = lbl; CSS file: .GadgetTest1 .hPanel1 .lbl{ color: blue; } .GadgetTest1 { font-size: 11px; font-family: Arial Unicode MS, Arial, sans-serif; border: 1px solid red; width: 100%; } The label with style lbl has a blue color and inherits style GadgetTest (set to main panel). The problem is that only the font- family tag is recognized (the font size is still large which is implicit) but I used firebug plugin and i saw that the label object also inherits the font-size tag but it doesn't show on the browser (if i modify it nothing happens). What's the problem here ? Is it a bug? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Replace entry point class depending on html file(page)
Hello, I'm trying to use the tag replace-with in .gwt.xml in my GWT project to replace the entrypoint class depending on the html page. I was wondering if there is a way of finding out (in the .gwt.xml file with the property name for example ) what html page is being loaded. Any advices ? --~--~-~--~~~---~--~~ You received 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 class on both client and server sides
Hello, I'm trying to use a class (let's say Contact) on both client and server sides (packages: com.app.client and com.app.server). For that purpose I created a shared package (com.app.shared) in which to put the Contact class. But gwt (client side) only sees classes in com.app.client package. How can I use the Contact class on client side for the com.app.shared package? Do I have to add a inherits tag in my .gwt.xml file ? 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: Using class on both client and server sides
That worked... thanks a lot :) On Jul 29, 6:10 pm, Paul Robinson ukcue...@gmail.com wrote: You want this in your gwt.xml file: source path=client/ source path=shared/ Note that if any source... element appears in your gwt.xml, then the implied client source path is not added for you - so you will need both of the above. Paul Ice13ill wrote: Hello, I'm trying to use a class (let's say Contact) on both client and server sides (packages: com.app.client and com.app.server). For that purpose I created a shared package (com.app.shared) in which to put the Contact class. But gwt (client side) only sees classes in com.app.client package. How can I use the Contact class on client side for the com.app.shared package? Do I have to add a inherits tag in my .gwt.xml file ? 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 -~--~~~~--~~--~--~---
GWT Loading slider
I'm trying to create a loading slider much like the one from gmail (when loading an account) So i made a simple gadget with a horizontal panel that has a gray background let's say, and when the application passes through a checkpoint, it updates the slider Ex the slider has a max width of 300 px, and can be updated at a certain percent: updateSlider(30) etc.. witch does this: hpSlider.setWidth(newWidth). (i have tested it with a timer and it works) When i sign in, the application (client) makes a series of requests in a certain order (ex: first requests some info, then language, then checks session, etc) at each request, the slider is updated (the updateSlider(#) method is called) and it is also visually updated (so far so good) Problem: when i load the rest of the javascript (ex: 4 big gadgets that require about 500 ms each, one of the about 1 sec) i also call updateSlider() after each of then loads, but it does not update the slider visully Does the browser or GWT knows that the elements are constructed one after another and it waits until all of them are loaded and than updates the UI? Or is there another pb? Can i use another widget? or does GWT has a similar widget ? Thx --~--~-~--~~~---~--~~ You received 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 Hyperlink
Hi, I'm trying to build an application containing sub-applications; each sub-app is opened by clicking on a Hyperlink widget. Problem: when hovering above one of the hyperlinks, the browser displays http://site.com/currentapp/# (because the Hyperlink is constructed using arguments and thus, i use Window.open(...) to open the needed sub-application) Can make the Hyperlink to display the URL of the sub-application i want to open ? (ex: current application is http://site.com/currentapp and i want to open http://site.com/2ndapp). Or do i have to use/can i use a href=... .../a tags ? --~--~-~--~~~---~--~~ You received 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: Excluding imports on client side
Where can i find how to use super-source/ tag in gwt.xml ? On Mar 18, 3:34 pm, Thomas Broyer t.bro...@gmail.com wrote: On 18 mar, 11:17, Ice13ill andrei.fifi...@gmail.com wrote: Is there a way to exclude imports when compiling a gwt application ? Simply put: no. Let's say i want to use a class on client and server side with two methods: one uses gwt widgets (this is the method i want to use on the client side) and one uses Sockets (or smth like that... code needed on the server side). Obviously i get an error when importing java.net.Socket. Several options: a) refactor your code so that client and server code are in distinct classes b) include a super-source/ in your module with a dummy java.net.Socket class so that the GWTCompiler doesn't choke (but it won't use it in the final code as the server only method won't be called by client code). Obviously, option a is strongly preferred, as it also makes it obvious that methodB isn't to be called by client code and vice versa. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Organizing CSS with GWT
Hello, I'm trying to create an interface for an application using gwt to arrange widgets and CSS (bigtime) for widgets properties/styles. Can somebody give a few links for hints or tutorials on how is it better to organize, arrange, cascade etc. styles using CSS in GWT ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 Remember username and password
I'm trying to remember the username and password in a gwt login applicaion. I found this: 1. adding a textbox and passwordbox in the html file input type=text id=1 name=text/ input type=password id=2 name=password/ (i read that if i add those in the html file, the browser will automatically remember the values). 2. DOM.getElementById for each of them m_tbUsername = TextBox.wrap(DOM.getElementById(1)); m_tbUsername.addKeyboardListener(this); m_tbPassword = PasswordTextBox.wrap(DOM.getElementById(2)); m_tbPassword.addKeyboardListener(this); I also added a Login button with a ClickListener Problem: neither of those above (textbox, passwordbox, button) will respond to key or click actions So... public void onClick(Widget sender) { Window.alert(b); } does nothing What's the problem ? Can somebody tell me another method in gwt for remembering username and password ? (a link or tip ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Problem with com.google.gwt.core.ext.typeinfo classes.
Hello, I have the following problem: when I try to use any class from the package com.google.gwt.core.ext.typeinfo it does not work and I get something like this: [ERROR] Line 76: No source code is available for type com.google.gwt.core.ext.typeinfo.TypeOracle; did you forget to inherit a required module? I did not find any module.xml related to typeinfo classes to inherit. Please 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---