Re: When is an object passed over RPC safe to modify?
I won't be losing any sleep over it. Our data object structure is pretty robust, so it would be highly unlikely that it would be able to become invalid. Also, I'd be surprised if the RPC serialization occurred in anything but the current JS thread of execution. So I'd be a stunned mullet if we ran into trouble. Having said that, I totally agree, it would be nice to know more about how the serialization works. On Mar 29, 1:52 am, martin liste larsson martin.liste.lars...@gmail.com wrote: On Mon, Mar 28, 2011 at 4:41 AM, Craig Mitchell craig...@gmail.com wrote: FYI: The project I'm on will also be saving in the background. However, we will just transfer all the data back to the server on save (there really isn't that much), so I don't have to worry about the object statuses on the client (the server can work them out). Thanks for the info. It seems you might get partially updated objects to the server then? If it is possible for the user to modify the objects in the client while the RPC- code is serializing, I mean. IOW. if I can run into trouble, so can you. Or maybe there is no problem? Would be nice to know for sure ... 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.
Re: Howto: Optimising RPC
Hello Gal, Sorry, I've had so far no experience with code splitting, my applications are all monolithic beasts. I guess the real bloat is not the DTOs but the marshalling code generated for RPC, right? I can think of a possible solution (haven't tested this) but it's ugly: assuming that my DTOs live in a defined hierarchy, lets take two as an example: my.package.dto.a.* my.package.dto.b.* they can be reflected with a set of corresponding Commands: my.package.commands.CommandA my.package.commands.CommandB where CommandA references only classes from my.package.dto.a and CommandB references only classes from my.package.dto.b. I realise that even this is a long shot because such a distinction might not always be feasible. To make it worse, I'll probably need multiple service interfaces: interface MyBatchServiceA{ ResultA process(ListCommandA commands); } etc If I can think of something better I'll post back On 29/03/11 00:40, Gal Dolber wrote: Nice post, thanks. I am having a problem code-splitting my rpc classes and dependencies when using the command pattern. Even if I only load the login screen, if it uses any command rpc it forces my apps to load all of them. I am testing some solutions at the moment, any thoughts on that? On Mon, Mar 28, 2011 at 7:18 PM, George Georgovassilis g.georgovassi...@gmail.com mailto:g.georgovassi...@gmail.com wrote: Hello all, I've been spending some time with reducing RPC payload size and optimising the request pattern and thought I'd share my pain and wisdom with you :-) You can read the full story here [1], the main points I am discussing are: - rewriting RPC to use GET over POST for reduced network packet count - type name elision (and pitfalls) - packing variables (and when not to) - using higher gzip compression ratios - batching requests Please feel to post any comments G. [1] http://georgovassilis.blogspot.com/2011/03/squeezing-last-bit-out-of-rpc-gwt.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 mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com mailto:google-web-toolkit%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received 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: IE developer plugin installation
Hi Fabio, yep, it ist installed. I'm curently trying to install it under Windows7 and it is listed under the installed Programms and I've registered the DLL successfully. However - it doesn't appear under the AddOns section inside the IE. Eike On 25 Mrz., 19:44, FabioV fabio...@google.com wrote: can you double check if it is installed in control panel and report back? -- You received 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.
RequestFactory with parameter
When chaining Entities I have to call findXXX(record) . with() Is it required or is there a way to declare the Entity so that is always included in EntityProxy Thanks Patrick -- You received 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: TabLayoutPanel
Hello Marco, This is what I do: 1. client code: DecoratedTabPanel tabPanel = new DecoratedTabPanel(); tabPanel.setStylePrimaryName(tabPanel); tabPanel.setAnimationEnabled(true); 2. CSS: .tabPanel { width:99%; height:99%; position:fixed; top:5px; left:5px; } I couldn't get it to 100%, but 99% is enough for me. On Mar 28, 3:19 pm, Marco Gadaleta gadaleta.ma...@gmail.com wrote: Hello, I'm using DecoratorTabPanel inside my gwt project but the compiler say me that DecoratorTabPanel was deprecated and recommend to me to use TabLayoutPanel. But a TabLayoutPanel doesn't work inside a RootPanel that is the component that i must use. Some suggestion? Is there a way to set DecoratorTabPanel to 100% in width and height? -- 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: AutoBean and Generic types (Server-side)
It could be related to http://code.google.com/p/google-web-toolkit/issues/detail?id=5926 -- You received 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: EditTextCell with Editor
You can use any Cell as a widget using the CellWidget. Unfortunately, CellWidget is neighter an Editor nor an IsEditor (that's a bug IMO, so I opened an issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=6206), so you'll have to create an Editor instance yourself. Fortunately, it's as easy as a TakesValueEditor.of(myCellWidget). -- You received 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 ensure LayoutWidget resizes on iPhone?
My app uses LayoutWidgets to create full screen widgets that resize automatically with the browser window. This works very well on all desktop browsers but, on iPhone, it seems to snap to an arbitrary size that has nothing to do with the iPhone screen. That's unfortunate since the app would look reasonably good with resized LayoutWidgets. Is there a simple way to ensure LayoutWidget-derived classes resize correctly on iPhone (haven't tried on other mobiles)? If not, do you have any suggestions for ways to handle this problem? 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: EditTextCell with Editor
Thanks Thomas! -- You received 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: RPC Problem with HashMap containing ArrayList Value
If I got you right, than, the first part of my first post comes up! Instead of declaring all your generics using Serializable object, you can just declare ( in the shared package ) all your possible combinaitons ( the whole veriety of all your non-trivial types ) and than, in your client-side code, you can safetly define objects of your types, and do not worry about serialization issues. On 29 мар, 02:02, Ben Imp benlee...@gmail.com wrote: The more generic your remote interface, the more code the GWT compiler generates to try and handle all the possible values you may pass through it. Having a method that can take something of type Serializable would, I believe, make the GWT compiler generate code for all possible types, since you can't get any more generic than that. -Ben On Mar 28, 3:58 pm, SergeZ comp1...@gmail.com wrote: What it means ? Is it bad or not ? I see nothing bad or just nothing that takes my attention to that ! Can you explain your point about serialization policy in more details ? What did you mean ? On 28 мар, 22:56, ciosbel andrew...@gmail.com wrote: Remember that gwt will create a serialization policy for all serializable types at compile time. -- You received 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: IE developer plugin installation
GWT devmode plugin will not show in the IE add-ons list - that is expected, but that should not prevent it from working. give it a try and let us know. if you want to know the technical reason why it does not show in the add ons list, here it goes: in order to show in the add ons list, it needs to be a BHO and for that to happen the plugin needs to be installed with admin credentials. we choose to make a per user installation instead to avoid requiring users to be admin (UAC). -- You received 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 pass parameters to Token based Activity and Place URL
Hello, I have successfully integrated Activity and Place into my application such that my Places are now tokenized. However, I want to take my application to another level by parameterizing my Places with URLs such as http://mysite.com/myplace#place?view=home, and then be able to get the parameters through Window.Location.getParameter. Any ideas please. Regards -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received 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.
a simple POST with formData
Hi, I have this code: public native void callServer() /*-{ var fd = new FormData(); fd.append(fileField, hola); var xhr = new XMLHttpRequest(); xhr.open(POST, file_handler.php); xhr.send(fd); }-*/; But the debug say: :FormData is not defined I can't do this with GWT ??!! I really don't understand why not found a javascript funcion ... thanks for 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.
Re: How to pass parameters to Token based Activity and Place URL
I think you are confusing URL query parameters ?variable=value with the token associated with a place #place:token -- You received 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 pass parameters to Token based Activity and Place URL
To be clearer, I want to append URL query parameter to a Place. If I am to use RequestBuilder, can it be used to navigate to a Place as long as the Place and its corresponding token exists? I hope this is clear enough. On 3/29/11, Rikard Hultén rikardhul...@gmail.com wrote: I think you are confusing URL query parameters ?variable=value with the token associated with a place #place:token -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received 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: a simple POST with formData
Ups, my doom ass, I was making this run on a not new browser, so don't know what to do with the FormData, now in chrome it's works. Thanks, now I gonna make some test using this on a servert ( and take a look the CORS compatibility ) Sorry for the mess! On Tue, Mar 29, 2011 at 2:25 PM, mightymightyblues mightymightybl...@gmail.com wrote: Hi, I have this code: public native void callServer() /*-{ var fd = new FormData(); fd.append(fileField, hola); var xhr = new XMLHttpRequest(); xhr.open(POST, file_handler.php); xhr.send(fd); }-*/; But the debug say: :FormData is not defined I can't do this with GWT ??!! I really don't understand why not found a javascript funcion ... thanks for 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.
Re: a simple POST with formData
I think that you should take a look to the following classes: - RequestBuilderhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.2/com/google/gwt/http/client/RequestBuilder.html for XHR requests and/or - FormPanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/2.2/index.html?com/google/gwt/http/client/RequestBuilder.html for HTML forms cheers, Yannis -- You received 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 panel's iterator() prevents clickHandler from being called.
Hi, I am new to GWT (and not that expert in Java) and I have a problem I haven't been able to solve. Here's my problem: I want to do a panel (say a VerticalPanel) but also want it to have scroll bars. So, what I did was to nest a VerticalPanel in a ScrollPanel and then overrode the latter's iterator() with a call to the former's iterator. Attached is a (relatively) small test code showing the problem: With the overriding iterator() in place, the SelectedItemsListPanel's ClickHandler() doesn't get called. Comment the iterator() out and everything works perfectly. Regards, -- Olivier Diotte -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. olivier.java Description: Binary data ItemElement.java Description: Binary data ItemSelector.java Description: Binary data ItemsListPanel.java Description: Binary data SelectedItemElement.java Description: Binary data SelectedItemsListPanel.java Description: Binary data
The domain type Foo_$$_javassist_45 cannot be sent to the client
Hi Guys, I am having an issue using GWT 2.2 RequestFactory and Hibernate 3.6. My domain model is looks like this: class Bar { Long id; String title; Foo foo; } class Foo { Long.id; String title; } So, I am trying to populate a CellTable using request factory with Bar.id, Bar.title, Bar.foo.id. The domain model is constructed from the database using JPA/Hibernate. The problem I am getting is: com.google.gwt.requestfactory.server.UnexpectedException: The domain type Foo_$$_javassist_45 cannot be sent to the client at com.google.gwt.requestfactory.server.ServiceLayerDecorator.die(ServiceLayerDecorator.java: 185) at com.google.gwt.requestfactory.server.ResolverServiceLayer.resolveClientType(ResolverServiceLayer.java: 91) at com.google.gwt.requestfactory.server.ServiceLayerDecorator.resolveClientType(ServiceLayerDecorator.java: 122) at com.google.gwt.requestfactory.server.ServiceLayerDecorator.resolveClientType(ServiceLayerDecorator.java: 122) It appears that Hibernate enhances Foo producing a class is called Foo_ $$_javassist_45. However, the RequestFactory cannot associate the enhanced class with FooProxy. Is there a way around it ? Thanks Stefan -- You received 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.
Editor with various data types
Shouldn't the Editor work with various data types? Booleans and checkboxes work. However, the Integer and the TextBox do not work. I should at least see an error, instead I see nothing. Do we have documentation for this yet? See com.google.gwt.requestfactory.client.RequestFactoryEditorDriver -- You received 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.
Canvas performance
Hey, I tried some tests with the canvas objekt. I create a canvas an redraw the canvas every ms, so I get the FPS for the drawing If i use the drawImage method of the Context2d the performance is very bad. I draw currently about 160 images on a canvas 1920x1200 But I only get 50-60 FPS... So is the performance really so bad or do I a failure? Regards, Markus Here the code: protected final Timer mUpdater = new Timer() { @Override public void run() { double start = Duration.currentTimeMillis(); /* * Zeichen start... */ mContext.clearRect(0, 0, mInnerWidth, mInnerHeight); mContext.setFillStyle(mDefaultTextColor); int startW = 0; int startH = 0; while(startH mInnerHeight) { startW = 0; while(startW mInnerWidth) { mContext.drawImage(ResourceHandler.BUILD_SAEGE_01, startW, startH); startW+=ResourceHandler.BUILD_SAEGE_01.getWidth(); } startH+=ResourceHandler.BUILD_SAEGE_01.getHeight(); } /* * Zeichnen ende... */ double t = Duration.currentTimeMillis() - start; double fps = 1000 / (t == 0 ? 1 : t); mContext.fillText(FPS: + fps, mWidth - (mWidth * 0.2), 10); } }; Example URL: http://thandarocom.appspot.com/game.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: Older version of GWT Eclipse plugin
For those who are looking for it, you can download old version of gwt at: http://code.google.com/webtoolkit/versions.html I just unpacked it in the directory my_eclipse_dir/plugin/, then go to eclipse, edit and changed my gwt sdk path under project properties and make it pointing to the new directory created when I unpacked. This works fine for me. On Mar 15, 6:55 pm, KD kanwald...@gmail.com wrote: This is what I would do.. Install sdks in a separate directory say DRIVE/gwt-sdks/2.0 , 2.1, 1.7 etc In Eclipse under Preferences, just choose which one you want to be active/default. Same goes for app engine Now under project properties, chose the desired sdk in Use Specific SDK If you reference versioned gwt jars in your project, then you better mavenize it if possible and change dependency as need be best KD On Mar 15, 9:21 am, Michiel Weggen michiel.weg...@gmail.com wrote: I'm currently working on a piece of software that's still using GWT 2.0.4, and is not (yet) compatible with 2.2. I use eclipse, and the GWT plugin, and recently updated the plugin to GWT2.2, but since it's not working yet I'd like to switch back to GWT plugin 2.0.4; is this possible? -- You received 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.
Relational Database with Drag and Drop Operations
Hello, I am a student and want to make the final draft with a Dynamic Schedule Manager. It was proposed to work in Java. Restriction: Should use GWT with GXT (optional) + Relational Database (eg MySql) and will operate with a Drag and Drop library. The Drag and Drop operations are going to communicate directly with the database, eg drag a student for a class. You should make an insert in the student's respective table. It's an interesting challenge, but requires a lot of knowledge. The question I ask is if anyone has experience doing something similar and could advise me where to start, what technologies to use (eg to Relational Database), best approaches, tips and so on. Note: I've already draw Database, started learning the Google Web Toolkit docs. 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.
Compile error: No source code is available for type
I am attempting to get the wave-in-a-box project building on Windows, and am seeing errors in the GWT compilation. Compiling module org.waveprotocol.box.webclient.WebClient Validating newly compiled units [ERROR] Errors in 'file:/D:/dev/wave/WPL-wave-protocol/proto_src/ org/waveprotocol/box/common/comms/WaveClientRpc.java' [ERROR] Line 9: No source code is available for type com.google.protobuf.ExtensionRegistry; did you forget to inherit a required module? [ERROR] Line 12: No source code is available for type com.google.protobuf.GeneratedMessage; did you forget to inherit a required module? [ERROR] Line 33: No source code is available for type com.google.protobuf.GeneratedMessage.FieldAccessorTable; did you forget to inherit a required module? [ERROR] Line 52: No source code is available for type com.google.protobuf.CodedOutputStream; did you forget to inherit a required module? WaveClientRpc.java doesn't include any import statements at all, which is clearly the problem, but I am not familiar enough with GWT to know how to fix it. I attempted to add inherits name=com.google.protobuf/ to the .gwt.xml file, but then the compiler complains that it can't find protobuf.gwt.xml. Any assistance would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 on linux: Designer not wokring
Summary: GWT Designer Beta crashes eclipse after initialization timeout Detail: I am a GWT newbie setting up on CentOS 5.6. Fresh Eclipse Helios 3.6 SR2 install. I installed GWT Designer to go through tutorials. I encountered problem with: No GWT support found for this system I did my best to confirm system requirements, and I am quite sure that I comply. googling led me to this thread. Per recommendation in this thread I switched to GWT Designer beta. Behavior changed, but did not get better. Eclipse startup now hangs for exactly 60 seconds with dialog box saying Opening Design page. Initializing GWT Development Mode... Eclipse then starts ... displays: GWT Initialization timeout This is visible for 1-2 seconds, then Eclipse crashes/exits Advice appreciated. Michael On Mar 1, 11:10 am, Eric Clayberg clayb...@google.com wrote: I'm glad that worked. That was our recommendation here as well... http://code.google.com/p/google-web-toolkit/issues/detail?id=6029#c26 On Feb 28, 3:20 pm, Richard van der Wath rvanderw...@gmail.com wrote: Problem disappeared after I installedGWTDesignerBETA fromhttp://code.google.com/intl/af/webtoolkit/tools/download-gwtdesigner-... Thanks for everybody's help! Richard [snip] -- You received 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 add ClickHandler for Div Element?
Hi, I created a div element and appended it to a text box as a child. It is working fine. Now I want to add click handler for that div element. Can you please suggest me for this problem. Thanks, Vara Kumar PJD -- You received 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: a simple POST with formData
I had the same problem some time ago and came up with a class called FormBuilder that does just that. The idea: use invisible (Display: none) FormPanel and fill it correctly and post it to the backend. RequestBuilder is nice, but not if you need a synchronized call to the backend like a FORM POST that will return a PDF/HTML stream that the user downloads/opens. Below the FormBuilder class. Usage example (send html plus style to the backend and return PDF from it: final FormBuilder builder = new FormBuilder(Method.POST, GWT.getHostPageBaseURL() + report, getCmsFacade().pdfDownloadTarget()); builder.addValue(ConstantsServicePlus.HTTP_REQ_HTML_SRC, html.getHtml()); builder.addValue(ConstantsServicePlus.HTTP_REQ_HTML_CSS, html.getStyle()); builder.addValue(ConstantsServicePlus.HTTP_REQ_CLIENT_NR, getCustomerNumber()); ... builder.submit(); I use it for some time now, and works very well. I hope it helps you, - Ed - public final class FormBuilder { private FormPanel formPanel; public FormBuilder() { } public FormBuilder(final Method method, final String action, final String target) { setMethod(method); setAction(action); setTarget(target); } public void submit() { try { RootPanel.get().add(getEnsureFormPanel()); getEnsureFormPanel().submit(); } finally { RootPanel.get().remove(getEnsureFormPanel()); } } public void setAcceptedCharset(final String charsets) { getEnsureFormPanel().getElement().setAttribute(accept-charset, charsets); } public void setAction(final String action) { getEnsureFormPanel().setAction(action); } public void setMethod(final Method method) { getEnsureFormPanel().setMethod(method.getValue()); } public void setTarget(final String target) { getEnsureFormPanel().getElement().setAttribute(target, target); } public void addValue(final String name, final String value) { final InputElement el = Document.get().createTextInputElement(); getEnsureFormPanel().getElement().appendChild(el); el.setName(name); el.setValue(value); } public void removeAllValues() { final int size = getEnsureFormPanel().getElement().getChildCount(); if (size 0) { for (int i = size - 1; i = 0; i--) { getEnsureFormPanel().getElement().getChild(i).removeFromParent(); } } } // // private FormPanel getEnsureFormPanel() { if (this.formPanel == null) { this.formPanel = new FormPanel(); this.formPanel.getElement().getStyle().setDisplay(Display.NONE); } return this.formPanel; } /** */ public enum Method { POST(POST), GET(GET); private final String value; private Method(final String methodName) { this.value = methodName; } public String getValue() { return this.value; } } } -- You received 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: Overriding panel's iterator() prevents clickHandler from being called.
You shouldn't need to override any methods just to add scrollbars. Im curious as to why you want to do that. You should be able to just nest the panels, as you have done. -Ben On Mar 29, 12:40 am, Olivier Diotte oliv...@diotte.ca wrote: Hi, I am new to GWT (and not that expert in Java) and I have a problem I haven't been able to solve. Here's my problem: I want to do a panel (say a VerticalPanel) but also want it to have scroll bars. So, what I did was to nest a VerticalPanel in a ScrollPanel and then overrode the latter's iterator() with a call to the former's iterator. Attached is a (relatively) small test code showing the problem: With the overriding iterator() in place, the SelectedItemsListPanel's ClickHandler() doesn't get called. Comment the iterator() out and everything works perfectly. Regards, -- Olivier Diotte olivier.java 1KViewDownload ItemElement.java 2KViewDownload ItemSelector.java 2KViewDownload ItemsListPanel.java 3KViewDownload SelectedItemElement.java 1KViewDownload SelectedItemsListPanel.java 3KViewDownload -- You received 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.
RequestFactory, force field change
I understand the intention behind the RequestFactorys diff mechanism - but what if you want some field to be set (i.e. to transmitt a field even though it hasn't changed)? I have the following scenario: Multiple server-instances, no ORM- caching (shared nor individual), I do however want to cache the entities on the client (however briefly). I therefore let the the version-field propagate to the client. The ORM-system increment the version-field (as recommended) and the underlying sentral storage system handles the optimistic locking based on this version field. I do not load the entity from the storage system on each client request (the intended usage), but construct the entity from the actual request. The problem is - the client will not return the version-field (since it has not changed). I cannot find any way to make it so that the version-field is transmitted without actually changing the field? It's mentioned in the docs that RF is a basis for future (client-side) caching and batching. How will the client-side cache adhere to optimistic locking if it's not allow to provide an (unchanged) version- number? -- You received 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: The domain type Foo_$$_javassist_45 cannot be sent to the client
Actually there is. I encontered the same problem with some Guice- enhanced classes. You can write a custom decorator and override the appropriate methods. Here's my implementation - to get you started: public class GuiceDecorator extends ServiceLayerDecorator { @Override public Class? extends Locator?, ? resolveLocator(Class? domainType) { if(domainType.getName().contains(Guice)) return super.resolveLocator(domainType.getSuperclass()); return super.resolveLocator(domainType); } @Override public T Class? extends T resolveClientType(Class? domainClass, ClassT clientType, boolean required) { if(domainClass.getName().contains(Guice)) return super.resolveClientType(domainClass.getSuperclass(), clientType, required); return super.resolveClientType(domainClass, clientType, required); } @Override public T extends Locator?, ? T createLocator(ClassT clazz) { return GuiceConfig.getInjectorReference().getInstance(clazz); } } On 28 Mar, 23:43, Stefan sbara...@gmail.com wrote: Hi Guys, I am having an issue using GWT 2.2 RequestFactory and Hibernate 3.6. My domain model is looks like this: class Bar { Long id; String title; Foo foo; } class Foo { Long.id; String title; } So, I am trying to populate a CellTable using request factory with Bar.id, Bar.title, Bar.foo.id. The domain model is constructed from the database using JPA/Hibernate. The problem I am getting is: com.google.gwt.requestfactory.server.UnexpectedException: The domain type Foo_$$_javassist_45 cannot be sent to the client at com.google.gwt.requestfactory.server.ServiceLayerDecorator.die(ServiceLayerDecorator.java: 185) at com.google.gwt.requestfactory.server.ResolverServiceLayer.resolveClientType(ResolverServiceLayer.java: 91) at com.google.gwt.requestfactory.server.ServiceLayerDecorator.resolveClientType(ServiceLayerDecorator.java: 122) at com.google.gwt.requestfactory.server.ServiceLayerDecorator.resolveClientType(ServiceLayerDecorator.java: 122) It appears that Hibernate enhances Foo producing a class is called Foo_ $$_javassist_45. However, the RequestFactory cannot associate the enhanced class with FooProxy. Is there a way around it ? Thanks Stefan -- You received 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.
where to put my Module.css file
most GWT doc says, I should put it in the public dir: e.g. src/main/java/com/mydomain/prj/public/Module.css the module file would be here: src/main/java/com/mydomain/prj/Module.gwt.xml but now when I want to use this in a ClientBundle, say in: src/main/java/com/mydomain/prj/client/HtmlResources.java the relative path gives me an errormarker (in eclipse): @Source(../public/Dsm.css) Style style(); Resource file Dsm.css is missing (expected at ../public) what is wrong here? where should the css file be stored instead? TIA, martin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Returning URL from RPC
I make a call to and rpc and the rpc returns a string. The string is the name of a business report generated, report.html. Now I want the client to embed this html in the app, so I use a Frame widget. Now I want to know how to instantiate this frame, since I have been trying Frame frame = new Frame(GWT.getHostPageBaseURL() + report.html); This is just returning a 404 - GET error. I tried passing back the path of the file, /myfolder/report.html, but that didn't work. I also tried getHostPageBaseURL() + modulename/servicename/ + reportname but I get the same 404 error. My question is, what string do I have to pass back in order to be able to embed this page in my app? Is this even possible. I tried passing back the html as a string and it worked, but it took way too long for big business reports, approx 2 1/2 minutes to render, and this is too long, so I'm trying other options. Any insight or advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Canvas performance
Not a GWT-specific question, but you are using canvas through GWT, so... You're doing well by using pre-rendered images and drawing them to your main screen. In some of my initial experiments using canvas, I was using the canvas drawing functions (lines, arcs, etc.). I got a large speed boost by pre-rendering the shapes into an off-screen canvas and then copying the rendered result to the on-screen canvas when needed. This worked for me because my shapes did not change between frames. I think the next thing for you to think about would be whether or not you actually need to redraw the entire screen for every frame. If only 30%* or so of the screen is actually changing each frame, you'll see huge framerate gains by only drawing what's changed. * 30% is a completely arbitrary number that I thought would be safe. There will be some threshold where it will be quicker to draw the entire screen than to calculate which areas to redraw. You'll have to experiment to find what works best for your case. -Brian On Mon, Mar 28, 2011 at 6:28 PM, Markus ad...@thandaro.com wrote: Hey, I tried some tests with the canvas objekt. I create a canvas an redraw the canvas every ms, so I get the FPS for the drawing If i use the drawImage method of the Context2d the performance is very bad. I draw currently about 160 images on a canvas 1920x1200 But I only get 50-60 FPS... So is the performance really so bad or do I a failure? Regards, Markus Here the code: protected final Timer mUpdater = new Timer() { @Override public void run() { double start = Duration.currentTimeMillis(); /* * Zeichen start... */ mContext.clearRect(0, 0, mInnerWidth, mInnerHeight); mContext.setFillStyle(mDefaultTextColor); int startW = 0; int startH = 0; while(startH mInnerHeight) { startW = 0; while(startW mInnerWidth) { mContext.drawImage(ResourceHandler.BUILD_SAEGE_01, startW, startH); startW+=ResourceHandler.BUILD_SAEGE_01.getWidth(); } startH+=ResourceHandler.BUILD_SAEGE_01.getHeight(); } /* * Zeichnen ende... */ double t = Duration.currentTimeMillis() - start; double fps = 1000 / (t == 0 ? 1 : t); mContext.fillText(FPS: + fps, mWidth - (mWidth * 0.2), 10); } }; Example URL: http://thandarocom.appspot.com/game.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. -- You received 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, force field change
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6046 and the related discussion. No feedback from Google so far. -- You received 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: Returning URL from RPC
When you do GWT.log(report path: + GWT.getHostPageBaseURL() + report.html); in hosted mode, you can see the path in the log. Copy/Paste it into your webbrowser and see if it is valid. That will help you tracking down how to enter the correct path. H -- You received 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: Returning URL from RPC
I suppose the obvious thing to investigate would be whether ???/ myfolder/report.html is visible to http requests. That will depend on where exactly your code is writing this HTML file to and whether your app server and/or web server allow reading from that location. -Ben On Mar 29, 10:26 am, azuniga alessandro.zun...@gmail.com wrote: I make a call to and rpc and the rpc returns a string. The string is the name of a business report generated, report.html. Now I want the client to embed this html in the app, so I use a Frame widget. Now I want to know how to instantiate this frame, since I have been trying Frame frame = new Frame(GWT.getHostPageBaseURL() + report.html); This is just returning a 404 - GET error. I tried passing back the path of the file, /myfolder/report.html, but that didn't work. I also tried getHostPageBaseURL() + modulename/servicename/ + reportname but I get the same 404 error. My question is, what string do I have to pass back in order to be able to embed this page in my app? Is this even possible. I tried passing back the html as a string and it worked, but it took way too long for big business reports, approx 2 1/2 minutes to render, and this is too long, so I'm trying other options. Any insight or advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Howto: Optimising RPC
I had the same issue with the command pattern. The problem is that all commands/results implement a common interface. The first time the service is created, it needs all the Marshalling code for all commands/results. The only way to avoid this is to have different services that define unique interfaces for their commands/results i.e. ServiceACommand interface and ServiceAResult interface. In the end I gave up on the command pattern and switched back to standard RPC with different services for each logical area.I added common error handling / version checking in a service facade. -- You received 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: Clickable image in a CellTable changing cell types
Hmm... I don't know if this is so great. It can probably work, but I am hoping there is less of a hack solution to this. A custom cell? Seems like that's what should be done, but I am not sure not sure how to attempt something like that. Anyone? Thanks, -Yaakov. On Mon, Mar 28, 2011 at 3:11 PM, Alex Nederlof a...@nederlof.com wrote: Hi, I maybe have a solution for the first problem: You can set an image in a button. Another option is to just adjust the CSS of a specific button to have that image as a background. Best, Ale On Mon, Mar 28, 2011 at 7:25 PM, Yaakov yaakov.chai...@gmail.com wrote: Hi, Is there an example out there I can look at for the following 2 cases: 1) A clickable image cell. On click of that image, I want to execute some functionality. 2) A textcell, when clicked becomes a drop-down (i.e., selection) cell. How do I accomplish those 2 tasks within the CellTable? -Yaakov. -- You received 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: Returning URL from RPC
Thanks for asking this question. I want to see how you used the rpc to return back to the client an html page. Did you do a redirect on onSuccess? WIll appreciate your snippet. On 3/29/11, Ben Imp benlee...@gmail.com wrote: I suppose the obvious thing to investigate would be whether ???/ myfolder/report.html is visible to http requests. That will depend on where exactly your code is writing this HTML file to and whether your app server and/or web server allow reading from that location. -Ben On Mar 29, 10:26 am, azuniga alessandro.zun...@gmail.com wrote: I make a call to and rpc and the rpc returns a string. The string is the name of a business report generated, report.html. Now I want the client to embed this html in the app, so I use a Frame widget. Now I want to know how to instantiate this frame, since I have been trying Frame frame = new Frame(GWT.getHostPageBaseURL() + report.html); This is just returning a 404 - GET error. I tried passing back the path of the file, /myfolder/report.html, but that didn't work. I also tried getHostPageBaseURL() + modulename/servicename/ + reportname but I get the same 404 error. My question is, what string do I have to pass back in order to be able to embed this page in my app? Is this even possible. I tried passing back the html as a string and it worked, but it took way too long for big business reports, approx 2 1/2 minutes to render, and this is too long, so I'm trying other options. Any insight or advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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. -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received 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: JavaScriptObject array for Java Objects
Anyone? So far I'm pushing Java POJO's into JSO arrays with no problems but would like to make sure that this is safe. Many thanks. On 27 mar, 18:25, Javier javierferre...@gmail.com wrote: In my app I use JsArray extensively to store my overlays. I use java.util.List to store my client-side Java POJOs. For performance reasons and to unify the way I access my model I planned to eliminate the Lists and use only JSO wrappers. Given a wrapper around a native array that can store any Java Object: public class JsArrayObjectT extends JavaScriptObject { protected JsArrayObject() {} public final native T get(int index) /*-{ return this[index]; }-*/; public final native void push(T value) /*-{ this[this.length] = value; }-*/; } Is it safe to store Java Objects this way? The doc says that when you pass a Java Object into JavaScript the result is an opaque value accessible through special syntax. This sounds confussing to me. For instance if I push an Integer and try to get it an exception will be thrown because something different than an Object was found (at least in dev mode). The same happens with the rest of Java primitive Wrappers. Apart from the problems with Java primitive Wrappers, are there other concerns to be aware? Many 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: Clickable image in a CellTable changing cell types
Search the archives, others have asked the same before. You'd have to extend the Image{,Resource}Cell and override getConsumedEvent and onBrowserEvent (and maybe onEnterKeyDown, depending on your needs) -- You received 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.
UIBinder style de-obfuscator
I think I've found a trick and wanted input on if it'll screw anything else up. The UIBinder is really really nice but the bundling of the stylesheets makes it totally undecipherable to see which style is being applied. So I added a directive that preserved the name within the style using a content directive. /*** before **/ .faqA { font-style: italic; } /*** after ***/ .faqA { content: faqA; font-style: italic; } This is the regex I used to replace everything within my style sheet. find: ^\.\(.+\) { replace with: \.\1 { \n\tcontent: \1; This is what it looks like obfuscated .GLQWISYBLQ { content: faqA; font-style: italic; } -- -- Andrew Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received 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: Clickable image in a CellTable changing cell types
On Tuesday, March 29, 2011 6:14:35 PM UTC+2, Yaakov wrote: Ok, I'll try to find it. Thanks. What about #2? How would one accomplish that? I'd go a similar path: copy EditTextCell and make it generate a select and options instead of the input type=text (probably copy some code from SelectionCell) -- You received 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: Clickable image in a CellTable changing cell types
Ok, I'll try to find it. Thanks. What about #2? How would one accomplish that? -Yaakov. On Tue, Mar 29, 2011 at 12:11 PM, Thomas Broyer t.bro...@gmail.com wrote: Search the archives, others have asked the same before. You'd have to extend the Image{,Resource}Cell and override getConsumedEvent and onBrowserEvent (and maybe onEnterKeyDown, depending on your needs) -- You received 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: UIBinder style de-obfuscator
As the docshttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_Worldsay, UiBinder actually just generates a ClientBundle and CssResource, so the same levers and knobshttp://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Levers_and_Knobs apply, particularly set-configuration-property name=CssResource.style value=pretty/ -- You received 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: Returning URL from RPC
On Tue, Mar 29, 2011 at 18:11, azuniga alessandro.zun...@gmail.com wrote: How do I make the file visible to http requests? A file in /war/* is visible. I think we still don't really know what you want to accomplish, when you file is created and so on. Also, is the URL valid? H -- You received 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: Returning URL from RPC
I'm testing this in development mode and when I do the GWT.log and find the path, and type it in the browser I get the 404 file not found error. How do I make the file visible to http requests? Is there a place I should be storing the file, like a public folder under the war file or something? On Mar 29, 11:44 am, Ben Imp benlee...@gmail.com wrote: I suppose the obvious thing to investigate would be whether ???/ myfolder/report.html is visible to http requests. That will depend on where exactly your code is writing this HTML file to and whether your app server and/or web server allow reading from that location. -Ben On Mar 29, 10:26 am, azuniga alessandro.zun...@gmail.com wrote: I make a call to and rpc and the rpc returns a string. The string is the name of a business report generated, report.html. Now I want the client to embed this html in the app, so I use a Frame widget. Now I want to know how to instantiate this frame, since I have been trying Frame frame = new Frame(GWT.getHostPageBaseURL() + report.html); This is just returning a 404 - GET error. I tried passing back the path of the file, /myfolder/report.html, but that didn't work. I also tried getHostPageBaseURL() + modulename/servicename/ + reportname but I get the same 404 error. My question is, what string do I have to pass back in order to be able to embed this page in my app? Is this even possible. I tried passing back the html as a string and it worked, but it took way too long for big business reports, approx 2 1/2 minutes to render, and this is too long, so I'm trying other options. Any insight or advice is greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Clickable image in a CellTable changing cell types
On Tue, Mar 29, 2011 at 12:17 PM, Thomas Broyer t.bro...@gmail.com wrote: On Tuesday, March 29, 2011 6:14:35 PM UTC+2, Yaakov wrote: Ok, I'll try to find it. Thanks. What about #2? How would one accomplish that? I'd go a similar path: copy EditTextCell and make it generate a select and options instead of the input type=text (probably copy some code from SelectionCell) Ok, I see. so, does it mean that you can only customize a Cell one level down? I.e., if I start producing my own HTML instead of having GWT do it, I would lose the functionality I would otherwise have out of the box... Let me make it a bit clearer with regard to what I am asking... I would hope that I can have some construct like this: CustomCell { @Override public xxx render() { // Render a label // Render a SelectionCell } } so, in the pseudo code above, my custom cell would get the functionality of a GWT Label and of a GWT SelectionCell with all of its events, etc. If I were to start rendering using straight HTML, then I would lose the events that come out of the box for the SelectionCell. So, is something like that possible? In fact, I am currently trying to figure out if it's possible to have CellTable have one of its columns be another CellTable. Are you saying that this is not possible? -Yaakov. -- You received 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: Clickable image in a CellTable changing cell types
On Tuesday, March 29, 2011 6:43:14 PM UTC+2, Yaakov wrote: On Tue, Mar 29, 2011 at 12:17 PM, Thomas Broyer t.br...@gmail.com wrote: On Tuesday, March 29, 2011 6:14:35 PM UTC+2, Yaakov wrote: Ok, I'll try to find it. Thanks. What about #2? How would one accomplish that? I'd go a similar path: copy EditTextCell and make it generate a select and options instead of the input type=text (probably copy some code from SelectionCell) Ok, I see. so, does it mean that you can only customize a Cell one level down? I.e., if I start producing my own HTML instead of having GWT do it, I would lose the functionality I would otherwise have out of the box... Let me make it a bit clearer with regard to what I am asking... I would hope that I can have some construct like this: CustomCell { @Override public xxx render() { // Render a label // Render a SelectionCell } } so, in the pseudo code above, my custom cell would get the functionality of a GWT Label and of a GWT SelectionCell with all of its events, etc. If I were to start rendering using straight HTML, then I would lose the events that come out of the box for the SelectionCell. So, is something like that possible? That's what CompositeCell is about (I haven't tried it though). In fact, I am currently trying to figure out if it's possible to have CellTable have one of its columns be another CellTable. Are you saying that this is not possible? Another CellTable? not possible (Cell cannot be a Widget). Rendered as a table with each cell having a specific behavior (similar to CellTable, but as a Cell), possible, but not straightforward 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.
Re: Returning URL from RPC
What I'm trying to do is add the html page which is the report, to the tab panel. I moved the report to the war file and I'm able to embed it in my app. When I tried the url, i would always get the 404 error, until I moved it. I guess it was not visible or accessible to the web app because I copied and pasted the path. On Mar 29, 12:16 pm, Harald Schilly harald.schi...@gmail.com wrote: On Tue, Mar 29, 2011 at 18:11, azuniga alessandro.zun...@gmail.com wrote: How do I make the file visible to http requests? A file in /war/* is visible. I think we still don't really know what you want to accomplish, when you file is created and so on. Also, is the URL valid? H -- You received 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 event handlers to elements in HTML-style UiBinder
Actually, it looks like I do need the Element.as(). Without it, I have a reference to an EventTarget, not an Element. -- You received 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, force field change
Thanks Thomas. Reading the issue (again) I can see that my problem is clearly related. Lets just hope that some 'hooks' that allows us to deal with this issue are implemented in the near future. On 29 Mar, 17:40, Thomas Broyer t.bro...@gmail.com wrote: Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=6046and the related discussion. No feedback from Google so far. -- You received 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 panel's iterator() prevents clickHandler from being called.
Hi, I am new to GWT (and not that expert in Java) and I have a problem I haven't been able to solve. Here's my problem: I want to do a panel (say a VerticalPanel) but also want it to have scroll bars. So, what I did was to nest a VerticalPanel in a ScrollPanel and then overrode the latter's iterator() with a call to the former's iterator. Attached is a (relatively) small test code showing the problem: With the overriding iterator() in place, the SelectedItemsListPanel's ClickHandler() doesn't get called. Comment the iterator() out and everything works perfectly. Regards, -- Olivier -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. olivier.java Description: Binary data ItemElement.java Description: Binary data ItemSelector.java Description: Binary data ItemsListPanel.java Description: Binary data SelectedItemElement.java Description: Binary data SelectedItemsListPanel.java Description: Binary data
Re: SafeHtmlUtils on the server side
The code in question is located in gwt-dev.jar and when I do use that jar it works. It just seems odd that they would place a class inside of gwt-servlet.jar and not have it fully function. I am a bit hesitant to put gwt-dev.jar on my classpath as it is not supposed to be used server side. Perhaps I am just standing on principle. Thanks for your help. --Matt-- On Mar 25, 12:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: I suppose you need some class in the server side. Put gwt-user.jar in server side and test 2011/3/25 Matt viper2...@gmail.com I am trying to use the SafeHtmlUtils class on the server side to make sure some HTML I am sending back to the client side is placed in a SafeHtml object before it is returned. I am assuming it can be used on the server side as its package name is com.google.gwt.safehtml.shared and the class is inside of the gwt-servlet.jar When I go and call SafeHtmlUtils.fromSafeConstant() I get a NoClassDefFoundError (below). java.lang.NoClassDefFoundError: com/google/gwt/thirdparty/ streamhtmlparser/ParseException at com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant(SafeHtmlUtils .java: 79) I found the class/package that it was looking for in the gwt-dev.jar. I am wondering if this is a bug that should be reported to Google or is the SafeHtmlUtils class not allowed to be used on the server side? 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. -- You received 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: SafeHtmlUtils on the server side
It isn't recomend use gwt-dev in server side. It have a lot of libs inner the jar. 2011/3/29 Matt viper2...@gmail.com The code in question is located in gwt-dev.jar and when I do use that jar it works. It just seems odd that they would place a class inside of gwt-servlet.jar and not have it fully function. I am a bit hesitant to put gwt-dev.jar on my classpath as it is not supposed to be used server side. Perhaps I am just standing on principle. Thanks for your help. --Matt-- On Mar 25, 12:35 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: I suppose you need some class in the server side. Put gwt-user.jar in server side and test 2011/3/25 Matt viper2...@gmail.com I am trying to use the SafeHtmlUtils class on the server side to make sure some HTML I am sending back to the client side is placed in a SafeHtml object before it is returned. I am assuming it can be used on the server side as its package name is com.google.gwt.safehtml.shared and the class is inside of the gwt-servlet.jar When I go and call SafeHtmlUtils.fromSafeConstant() I get a NoClassDefFoundError (below). java.lang.NoClassDefFoundError: com/google/gwt/thirdparty/ streamhtmlparser/ParseException at com.google.gwt.safehtml.shared.SafeHtmlUtils.fromSafeConstant(SafeHtmlUtils .java: 79) I found the class/package that it was looking for in the gwt-dev.jar. I am wondering if this is a bug that should be reported to Google or is the SafeHtmlUtils class not allowed to be used on the server side? 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. -- You received 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: CellWidget and RequestFactory the correct order of RequestFactory calls
zixzigma zixzigma@... writes: one of my concern is as RangeChangeEvent fires, and AsyncDataProvider fetches data for new range,the CellWidget flashes, in other words from the time I click Pager, to the time data get fetched for new page(range),the CellWidget (list/table) becomes blank, with no data. (I am displaying images).so part of my question above is, where exactly set the view/update view with data,so that the cellwidget does not flash.Thank You I also have this problem...has anyone found a solution? Thanks Pedro -- You received 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.
Spring Security
Hi, I need to implement Spring Security in my GWT web application. Does anybody know a good tutorial to get me started? Thank you 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: Spring Security
It's two years old, but you can start here: http://seewah.blogspot.com/2009/02/gwt-and-spring-security.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: Spring Security
and here http://raibledesigns.com/rd/entry/integrating_gwt_with_spring_security -- You received 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: Spring Security
I protect the app with spring security in two manner: 1) Protect URL with filter provided with spring security. 2) I protect my service with JSR250 (you can enable in spring). 3) Implement a interface, a wrapper of SpringSecurity classes, that I query userid and if the user is logged. Juan 2011/3/29 Alexei Telles alexeitel...@gmail.com Hi, I need to implement Spring Security in my GWT web application. Does anybody know a good tutorial to get me started? Thank you 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.
multipart/form-data dev. mode - servlet randomly gets corrupted stream
When I submit a form in dev. mode (using FormPanel, Hidden, FileUpload) the servlet gets correct parts from the request stream a couple of times, and then on the following submits the stream gets randomly corrupted. Printing the data to the console shows that the reading starts in the middle of the uploaded file instead of the beginning of the stream. *This hasn't happened in the production mode yet.* Has anyone seen this behavior before and is there a way to fix it? Thank you 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.
very few GWT talk at Google IO 2011
Does anyone know why there are so few GWT talks at Google IO 2011? The last two years had enough talks to fill two days, this year there are only 4 so far. There is not even a GWT track. It is become Developer Tools. Does this say anything about GWT's health at Google? -- You received 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: very few GWT talk at Google IO 2011
Actually, not all the I/O sessions have been published to the I/O Web site yet. There will be about a dozen sessions in the Dev Tools track, mostly about GWT. The name was generalized to Dev Tools because some tools like Google Plugin for Eclipse support multiple Google technologies (GWT + App Engine, etc.) HTH, /dmc On Tue, Mar 29, 2011 at 12:53 PM, Trey Roby rob...@gmail.com wrote: Does anyone know why there are so few GWT talks at Google IO 2011? The last two years had enough talks to fill two days, this year there are only 4 so far. There is not even a GWT track. It is become Developer Tools. Does this say anything about GWT's health at Google? -- You received 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: very few GWT talk at Google IO 2011
GWT aint going no where dont worry:) Even if i have to develop the whole thing myself(Note i dont even know 10% on what s goin on inside gwt), i will :) 2011/3/29 Trey Roby rob...@gmail.com Does anyone know why there are so few GWT talks at Google IO 2011? The last two years had enough talks to fill two days, this year there are only 4 so far. There is not even a GWT track. It is become Developer Tools. Does this say anything about GWT's health at Google? -- You received 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.
Re: Returning URL from RPC
Can you please just share a one liner on how you return a .html request from your rpc. Regards On 3/29/11, azuniga alessandro.zun...@gmail.com wrote: What I'm trying to do is add the html page which is the report, to the tab panel. I moved the report to the war file and I'm able to embed it in my app. When I tried the url, i would always get the 404 error, until I moved it. I guess it was not visible or accessible to the web app because I copied and pasted the path. On Mar 29, 12:16 pm, Harald Schilly harald.schi...@gmail.com wrote: On Tue, Mar 29, 2011 at 18:11, azuniga alessandro.zun...@gmail.com wrote: How do I make the file visible to http requests? A file in /war/* is visible. I think we still don't really know what you want to accomplish, when you file is created and so on. Also, is the URL valid? H -- You received 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. -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received 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: RPC Problem with HashMap containing ArrayList Value
I mean that instead using ListSerializable as base type (that will create a serialization policy for all types that extend Serializable), you just use ListMyDTO where MyDTO is public interface MyDTO extends Serializable { } then gwt will create a serialization policy only for all types that implement MyDTO. But if you are fine with Serializable, just use it. I think that manually declare all possible types is avoidable. But i'm not an expert. -- You received 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: Designer Problem : « uibinder template should be in client package »
That error message is very specific about the file being in the wrong place. I suppose there could be some other problem with the structure of the project, so we would need to see a complete test case project in order to see what the actual problem is. On Mar 28, 3:08 pm, HommeDeJava claude.coulo...@gmail.com wrote: Hi, I supposed that you must put the file in client package. Yes indeed I've put the myUIBinderComposite.ui.xml and myUIBinderComposite.java files into the client package It's when I try to use the GWT Designer opening the myUIBinderComposite.ui.xml file using the Design Tab that I've got the error. Anyway, thanks for your help. I've tried to add UIBinder Composite widget in a project which was initiated without UiBinder using GWT plugin. So, when I tried to open xxx.ui.xml into the designer view, I've got the error « uibinder template should be in client package » You are attempting to use UiBinder for .../xxx.ui.xml however it is not in Java package. Did someone get this problem or have any idea? Thanks Claude -- You received 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: How to add ClickHandler for Div Element?
Better to use widgets. I am using HTMLPanel to wrap my divs. My example has clickable image with text which is ready for internationalization. Actually 3 images where 2 are for some common background and the third gives item specific image. You also better make cursor to be a pointer when mouse goes over so user understands that it is clickable area(see .center:hover). I implemented on GWT 2.2 using UIBinder In UIBinder ui:image field=glass_ball src=../../resources/glass_ball.png/ ui:image field=shine src=../../resources/shine.png/ ui:image field=isite_exit src=../../resources/isite_exit.png/ ui:style src = ../../resources/defines.css type=com.idirect.webnms.isite.client.common.top.TopBarView.UIStyle .center { width:60px; text-align:center; font-size: 12px; font-family: arial; } .center:hover { text-decoration: underline; cursor: pointer; cursor: hand; color: orange; } @sprite .glassBackground { gwt-image: glass_ball; margin-top: 8px; line-height: 8em; } @sprite .shine { gwt-image: shine; } @sprite .backgroundExit { gwt-image: isite_exit; } /ui:style g:HTMLPanel ui:field='cmd_exit' addStyleNames='{style.center}' div div class='{style.glassBackground}' div class = '{style.shine}' div class='{style.backgroundExit}' /div /div /div div ui:msg description='Top bar, command exit'Log out/ui:msg /div /div /g:HTMLPanel In my client Java code I have click handler registration and remove logic. In general you should remove handler when Window closing @UiField HTMLPanel cmd_exit; private HandlerRegistration regCmdExitClick; if(regCmdExitClick == null) { regCmdExitClick = cmd_exit.addDomHandler(new ClickHandler() { public void onClick(final ClickEvent event) { //my logout logic if(regCmdExitClick != null) { regCmdExitClick.removeHandler(); regCmdExitClick = null; } } }, ClickEvent.getType()); } Hope it helps -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of varakumar pjd Sent: Tuesday, March 29, 2011 2:30 AM To: Google Web Toolkit Subject: How to add ClickHandler for Div Element? Hi, I created a div element and appended it to a text box as a child. It is working fine. Now I want to add click handler for that div element. Can you please suggest me for this problem. Thanks, Vara Kumar PJD -- You received 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. /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
Re: Spring Security
This is a good tutorial to start with.. http://www.javacodegeeks.com/2010/12/securing-gwt-apps-with-spring-security.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: Spring Security
Jeff Dwyer. Pro Web 2.0 Application Development with GWT. Great book. All code is ready. Just take it. It is much much more then just security in this book. I bought it for $10. Unfornunately it is about GWT 1.5 on the client side but still most of the ideas and code is pretty much usefull -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-toolkit@googlegroups.com] On Behalf Of Alexei Telles Sent: Tuesday, March 29, 2011 2:22 PM To: Google Web Toolkit Subject: Spring Security Hi, I need to implement Spring Security in my GWT web application. Does anybody know a good tutorial to get me started? Thank you 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. /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: GWT 2.2 on linux: Designer not wokring
Micheal did you use: Eclipse IDE for Java EE Developers? On Mon, Mar 28, 2011 at 10:21 PM, MichaelUFL mich...@uforlife.com wrote: Summary: GWT Designer Beta crashes eclipse after initialization timeout Detail: I am a GWT newbie setting up on CentOS 5.6. Fresh Eclipse Helios 3.6 SR2 install. I installed GWT Designer to go through tutorials. I encountered problem with: No GWT support found for this system I did my best to confirm system requirements, and I am quite sure that I comply. googling led me to this thread. Per recommendation in this thread I switched to GWT Designer beta. Behavior changed, but did not get better. Eclipse startup now hangs for exactly 60 seconds with dialog box saying Opening Design page. Initializing GWT Development Mode... Eclipse then starts ... displays: GWT Initialization timeout This is visible for 1-2 seconds, then Eclipse crashes/exits Advice appreciated. Michael On Mar 1, 11:10 am, Eric Clayberg clayb...@google.com wrote: I'm glad that worked. That was our recommendation here as well... http://code.google.com/p/google-web-toolkit/issues/detail?id=6029#c26 On Feb 28, 3:20 pm, Richard van der Wath rvanderw...@gmail.com wrote: Problem disappeared after I installedGWTDesignerBETA fromhttp://code.google.com/intl/af/webtoolkit/tools/download-gwtdesigner-... Thanks for everybody's help! Richard [snip] -- You received 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.
Making RPC access logs intelligible
GWT's RPC system produces distinctly unfriendly access logs. When I look at my logs (especially the GAE dashboard), every RPC basically boils down to a single line item for the whole servlet (and all the various RPC methods): /mymodule/myservletNNN requests avg MMM ms each I really want this broken down by the method that gets called: /mymodule/myservlet/login NNN requests avg MMM ms each /mymodule/myservlet/doSomething NNN requests avg MMM ms each /mymoudle/myservlet/doOtherThing NNN requests avg MMM ms each How can I make this happen elegantly? All I can think of is to make separate servlets for each method. This is tedious. Even my minimal API still has 14 different methods. Create 14 servlets, 14 RemoteService interfaces, 14 Async interfaces? Yuck. Even if I made a single servlet that implemented all those interfaces and was mapped to 14 different URLs, it's still a PITA. Is there any other solution? It may seem trivial, but this is really a critical issue. It's hard enough to measure that an application is doing even with well-organized log messages. GAE's Appstats is almost unreadable right now. Thanks in advance, Jeff -- You received 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: very few GWT talk at Google IO 2011
Great to hear, thanks David! -- You received 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?
On 29. mars 2011 08:30, Craig Mitchell wrote: Also, I'd be surprised if the RPC serialization occurred in anything but the current JS thread of execution. So I'd be a stunned mullet if we ran into trouble. True. The more I think about it, the more likely this seems. Doing serialization in anything but the main JS thread would be an invitation to all kinds of trouble. The possible speed gain is way too small to be worth it. 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.
Re: very few GWT talk at Google IO 2011
David, For those of us who can't make it Google I/O, would it be possible make the videos of the sessions available for download. YouTube is great for watching the videos at a computer, but not so good for listening to while driving in my car. Thanks, Brendan -- You received 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: The domain type Foo_$$_javassist_45 cannot be sent to the client
Lars, thanks a bunch. The trick with the ServiceLayerDecorator worked like a charm :) For other the benefit of other readers: - I did not need the resolveLocator() and createLocator() methods. My entity objects did conform to the RequestFactory specification so I did not need custom locators. - To activate my service layer decorator I ended up extending RequestFactoryServlet. Here is the code: public class MyRequestFactoryServlet extends RequestFactoryServlet { public FoundryRequestFactoryServlet() { super(new DefaultExceptionHandler(), new MyServiceLayerDecorator()); } } Thanks Stefan -- You received 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: UIBinder style de-obfuscator
Thanks for the tip on the levers and knobs Thomas. I had assumed that setting the compiler output style to pretty would be also alter the uibinder output too. For me, ClientBundle has taken a backseat to figuring out Editor and cell widgets. On Tue, Mar 29, 2011 at 9:16 AM, Thomas Broyer t.bro...@gmail.com wrote: As the docshttp://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Hello_Stylish_Worldsay, UiBinder actually just generates a ClientBundle and CssResource, so the same levers and knobshttp://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Levers_and_Knobs apply, particularly set-configuration-property name=CssResource.style value=pretty/ -- -- A. Stevko === If everything seems under control, you're just not going fast enough. M. Andretti -- You received 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.
Alguien de Argentina?
-- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received 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 on linux: Designer not wokring
Andy, Thank you for your response. I just checked and I did *not* install the Eclipse IDE for Java EE Developers. I am downloading it now and will try again. Q: Was there someplace in the GWT doc that told me I should use the Java EE version of Eclipse? Or should that just have been common knowledge ? Thanks, Michael On Tue, Mar 29, 2011 at 3:22 PM, Andy Nguyen kanef...@gmail.com wrote: Micheal did you use: Eclipse IDE for Java EE Developers? On Mon, Mar 28, 2011 at 10:21 PM, MichaelUFL mich...@uforlife.com wrote: Summary: GWT Designer Beta crashes eclipse after initialization timeout Detail: I am a GWT newbie setting up on CentOS 5.6. Fresh Eclipse Helios 3.6 SR2 install. I installed GWT Designer to go through tutorials. I encountered problem with: No GWT support found for this system I did my best to confirm system requirements, and I am quite sure that I comply. googling led me to this thread. Per recommendation in this thread I switched to GWT Designer beta. Behavior changed, but did not get better. Eclipse startup now hangs for exactly 60 seconds with dialog box saying Opening Design page. Initializing GWT Development Mode... Eclipse then starts ... displays: GWT Initialization timeout This is visible for 1-2 seconds, then Eclipse crashes/exits Advice appreciated. Michael On Mar 1, 11:10 am, Eric Clayberg clayb...@google.com wrote: I'm glad that worked. That was our recommendation here as well... http://code.google.com/p/google-web-toolkit/issues/detail?id=6029#c26 On Feb 28, 3:20 pm, Richard van der Wath rvanderw...@gmail.com wrote: Problem disappeared after I installedGWTDesignerBETA fromhttp://code.google.com/intl/af/webtoolkit/tools/download-gwtdesigner-... Thanks for everybody's help! Richard [snip] [snip] -- You received 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: Making RPC access logs intelligible
Browsing through the GWT code some more, it doesn't look promising. Is there any way to look at the output of the RpcProxyCreator? Reading code is ok, reading code that generates code tortures my brainmeats. Jeff On Tue, Mar 29, 2011 at 2:28 PM, Jeff Schnitzer j...@infohazard.org wrote: GWT's RPC system produces distinctly unfriendly access logs. When I look at my logs (especially the GAE dashboard), every RPC basically boils down to a single line item for the whole servlet (and all the various RPC methods): /mymodule/myservlet NNN requests avg MMM ms each I really want this broken down by the method that gets called: /mymodule/myservlet/login NNN requests avg MMM ms each /mymodule/myservlet/doSomething NNN requests avg MMM ms each /mymoudle/myservlet/doOtherThing NNN requests avg MMM ms each How can I make this happen elegantly? All I can think of is to make separate servlets for each method. This is tedious. Even my minimal API still has 14 different methods. Create 14 servlets, 14 RemoteService interfaces, 14 Async interfaces? Yuck. Even if I made a single servlet that implemented all those interfaces and was mapped to 14 different URLs, it's still a PITA. Is there any other solution? It may seem trivial, but this is really a critical issue. It's hard enough to measure that an application is doing even with well-organized log messages. GAE's Appstats is almost unreadable right now. Thanks in advance, Jeff -- You received 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, Canvas and ImageResources
Howdy all, Do anyone have experience of a project with a lot of image data? I'm creating a Canvas based game through GWT. It's based on a bunch of ClientBundleWithLookups, a total of ~400 images. Everything works quite well. One problem I have tho, is that in dev mode, it can take almost a minute to do a regular browser reload. It works well in non dev mode. My guess is that GWT rebuilds all bundles/interned data, but should it really take that long? The first load seem to go faster than any of the following reloads. For now I have gone back to bundling images manually and manually mapping it up with my own code. The browser refresh seems reasonable now. It feels a bit sucky not getting all the benefits of using ClientBundles tho. Is there a way to optimize the usage of ClientBundles? Thanks! /C -- You received 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: Alguien de Argentina?
jajaj 2011/3/29 Gal Dolber gal.dol...@gmail.com -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received 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: Alguien de Argentina?
el chiste? On Tue, Mar 29, 2011 at 9:16 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: jajaj 2011/3/29 Gal Dolber gal.dol...@gmail.com -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received 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.
why are important methods in HTMLTable protected?
if Grid is a class implementation of HTMLTable, why are most of the methods such as setCellFormatter(), setColumnFormatter etc, protected? How am I expected to access these methods from the instantiation of Grid. How can I use HTMLTable? Regards -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- You received 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: shuttle component
anyone on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Mar 27, 2011 at 3:31 PM, Vik vik@gmail.com wrote: Hie Does gwt has any shuttle component in which we can chose options from left and move to right as selected? If no then whatis the alternative? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received 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, Canvas and ImageResources
Here's a dirty hack that I've never tried but which may work... If your ClientBundleWithLookup doesn't change too often, you could pre-generate the implementation through a GWT-compile (with the -gen option). Once you have the class (or classes?) add them to your project. Then you have two options: 1) The simples: directly instantiate this generated class implemening your ClientBundleWithLookup (instead of using GWT.create on the interface.) 2) Keep on using GWT.create on the interface but add a replace-with line in your GWT module. The advantage of (2) is that you can go back to the auto-generated class simply by commenting out the replace-with One problem might happen if different implementations are generated by GWT for different browsers (i.e. when you do -gen the implementation classes you get for the different permutations are different from one another). In this case, you will either have to restrict yourself to using dev mode on a single browser, or you will have to provide a cascade of conditional replace-with for the different pre-generated implementations. If you try this or anything else, please comment back on this thread as I'm interested! 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: Making RPC access logs intelligible
The command pattern included in GWT-Platform gives a different path to each command and yield very readable logs in GAE. The trick is to call setServiceEntryPoint from the client async service implementation. If you want to see how we do it in GWTP check out: http://code.google.com/p/gwt-platform/source/browse/gwtp-core/gwtp-dispatch-client/src/main/java/com/gwtplatform/dispatch/client/DefaultDispatchAsync.java#70 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: [gwt-contrib] Re: LongLibBase improperly stomps on global 'a' variable. This patch reuses globalTemp (_) instead. (issue1389803)
I did the reimplementation. Being less familiar with the intricacies of JavaScript, it seems likely that I missed an opportunity to preserve the nativeness of the array. I'd be happy to take a look at this after the 2.3 release. On Mon, Mar 28, 2011 at 5:52 PM, Scott Blum sco...@google.com wrote: Something smells fishy here. I'm quite certain that this used to be implemented strictly as a two-double array in web mode, a true array. At some point it was modified to use 3 elements instead of 2, but I don't think it should have lost its nativity. On Mon, Mar 28, 2011 at 5:36 PM, cromwell...@google.com wrote: http://gwt-code-reviews.appspot.com/1389803/diff/1/dev/core/super/com/google/gwt/lang/LongLibBase.java File dev/core/super/com/google/gwt/lang/LongLibBase.java (right): http://gwt-code-reviews.appspot.com/1389803/diff/1/dev/core/super/com/google/gwt/lang/LongLibBase.java#newcode325 dev/core/super/com/google/gwt/lang/LongLibBase.java:325: _.l = l, _.m = m, _.h = h, _); On 2011/03/28 21:31:25, scottb wrote: Stupid question, but why can't we just return {l:l, m:m, h:h}? Good question. It looks like LongEmul is not a JSO, because they want to reuse it in both JVM and ProdMode, so it's a Java type. This code may have existed before @GwtScriptOnly or SingleJsoImpl. If I were during this today, I'd make LongEmul an interface, use JSO for ProdMode, and JRE impl for everything else. I guess we'll revisit it later. http://gwt-code-reviews.appspot.com/1389803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Comment on ProtocolBuffers in google-web-toolkit
Comment by yegor.jb...@gmail.com: Well detailed and well scoped. I think this spec is great. Except I think protobuf compiler command is protoc, not protocc (one 'c' at the end). For more information: http://code.google.com/p/google-web-toolkit/wiki/ProtocolBuffers -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Comment on ProtocolBuffers in google-web-toolkit
Comment by yegor.jb...@gmail.com: Oh, I forgot. This will probably come with AutoBean, but it might be good to mention how code splitting would work. The framework should guarantee that a single protobuf module is code-splittable, i.e. not compiled in its entirety to all code fragments. For more information: http://code.google.com/p/google-web-toolkit/wiki/ProtocolBuffers -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: LongLibBase improperly stomps on global 'a' variable. This patch reuses globalTemp (_) instead. (issue1389803)
Sounds good. Now that I think about it, it may not make much performance difference if time tends to be dominated by the actual math ops, but I suppose every bit helps? On Tue, Mar 29, 2011 at 10:35 AM, Daniel Rice (דניאל רייס) r...@google.comwrote: I did the reimplementation. Being less familiar with the intricacies of JavaScript, it seems likely that I missed an opportunity to preserve the nativeness of the array. I'd be happy to take a look at this after the 2.3 release. On Mon, Mar 28, 2011 at 5:52 PM, Scott Blum sco...@google.com wrote: Something smells fishy here. I'm quite certain that this used to be implemented strictly as a two-double array in web mode, a true array. At some point it was modified to use 3 elements instead of 2, but I don't think it should have lost its nativity. On Mon, Mar 28, 2011 at 5:36 PM, cromwell...@google.com wrote: http://gwt-code-reviews.appspot.com/1389803/diff/1/dev/core/super/com/google/gwt/lang/LongLibBase.java File dev/core/super/com/google/gwt/lang/LongLibBase.java (right): http://gwt-code-reviews.appspot.com/1389803/diff/1/dev/core/super/com/google/gwt/lang/LongLibBase.java#newcode325 dev/core/super/com/google/gwt/lang/LongLibBase.java:325: _.l = l, _.m = m, _.h = h, _); On 2011/03/28 21:31:25, scottb wrote: Stupid question, but why can't we just return {l:l, m:m, h:h}? Good question. It looks like LongEmul is not a JSO, because they want to reuse it in both JVM and ProdMode, so it's a Java type. This code may have existed before @GwtScriptOnly or SingleJsoImpl. If I were during this today, I'd make LongEmul an interface, use JSO for ProdMode, and JRE impl for everything else. I guess we'll revisit it later. http://gwt-code-reviews.appspot.com/1389803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 5129: Accomodate RunAsync in ActivityManager (issue1383802)
It's still unclear to me that your AbstractAsyncActivity actually works. It seems like it will just produce a single split point, as Thomas suggested of my first patch here. Have you seen it make multiple fragments? On Tue, Mar 29, 2011 at 2:36 AM, Antoine DESSAIGNE antoine.dessai...@gmail.com wrote: Hi, Should I modify my patch and repost it or do you go with the http://gwt-code-reviews.appspot.com/1386806/ option ? Again I truely think that it's not necessary to add anything other than the simple AbstractAsyncActivity class (we may call it otherwise though). Antoine. 2011/3/25 rj...@google.com This struck me as being more complicated than warranted. I took a crack at it myself in http://gwt-code-reviews.appspot.com/1386806/, but I may be making some bad assumptions. http://gwt-code-reviews.appspot.com/1383802/diff/1/user/src/com/google/gwt/activity/shared/AbstractAsyncActivity.java File user/src/com/google/gwt/activity/shared/AbstractAsyncActivity.java (right): http://gwt-code-reviews.appspot.com/1383802/diff/1/user/src/com/google/gwt/activity/shared/AbstractAsyncActivity.java#newcode26 user/src/com/google/gwt/activity/shared/AbstractAsyncActivity.java:26: * onCancel. These docs are a bit confusing. All Activities are async, but what you're really talking about here is code splitting via GWT.runAsync() http://gwt-code-reviews.appspot.com/1383802/diff/1/user/src/com/google/gwt/activity/shared/AsyncActivityProvider.java File user/src/com/google/gwt/activity/shared/AsyncActivityProvider.java (right): http://gwt-code-reviews.appspot.com/1383802/diff/1/user/src/com/google/gwt/activity/shared/AsyncActivityProvider.java#newcode85 user/src/com/google/gwt/activity/shared/AsyncActivityProvider.java:85: * Transforms the given synchronous activity into an asynchronous one. Again, synchronous activity isn't a good term. http://gwt-code-reviews.appspot.com/1383802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Adds support for the CSS_ATTRIBUTE_START parse context to HtmlTemplateParser. (issue1392801)
Reviewers: jlabanca, pdr, Description: Adds support for the CSS_ATTRIBUTE_START parse context to HtmlTemplateParser. Please review this at http://gwt-code-reviews.appspot.com/1392801/ Affected files: M user/src/com/google/gwt/safehtml/rebind/HtmlTemplateParser.java M user/src/com/google/gwt/safehtml/rebind/ParsedHtmlTemplate.java M user/test/com/google/gwt/safehtml/rebind/HtmlTemplateParserTest.java Index: user/src/com/google/gwt/safehtml/rebind/HtmlTemplateParser.java === --- user/src/com/google/gwt/safehtml/rebind/HtmlTemplateParser.java (revision 9880) +++ user/src/com/google/gwt/safehtml/rebind/HtmlTemplateParser.java (working copy) @@ -74,10 +74,14 @@ * ddThis context corresponds to a parameter that appears at the very start of * a URL-valued HTML attribute's value; in the above example this applies to * parameter #1. + * dt{@link HtmlContext.Type#CSS_ATTRIBUTE_START} + * ddThis context corresponds to a parameter that appears at the very + * beginning of a {@code style} attribute's value; in the above example this + * applies to parameter #0. * dt{@link HtmlContext.Type#CSS_ATTRIBUTE} * ddThis context corresponds to a parameter that appears in the context of a - * {@code style} attribute; in the above example this applies to - * parameter #0. + * {@code style} attribute, except at the very beginning of the attribute's + * value. * dt{@link HtmlContext.Type#ATTRIBUTE_VALUE} * ddThis context corresponds to a parameter that appears within an attribute * and is not in one of the more specific in-attribute contexts above. In @@ -250,7 +254,11 @@ if (streamHtmlParser.isUrlStart()) { return new HtmlContext(HtmlContext.Type.URL_START, tag, attribute); } else if (streamHtmlParser.inCss()) { -return new HtmlContext(HtmlContext.Type.CSS_ATTRIBUTE, tag, attribute); +if (streamHtmlParser.getValueIndex() == 0) { + return new HtmlContext(HtmlContext.Type.CSS_ATTRIBUTE_START, tag, attribute); +} else { + return new HtmlContext(HtmlContext.Type.CSS_ATTRIBUTE, tag, attribute); +} } else { return new HtmlContext( HtmlContext.Type.ATTRIBUTE_VALUE, tag, attribute); Index: user/src/com/google/gwt/safehtml/rebind/ParsedHtmlTemplate.java === --- user/src/com/google/gwt/safehtml/rebind/ParsedHtmlTemplate.java (revision 9880) +++ user/src/com/google/gwt/safehtml/rebind/ParsedHtmlTemplate.java (working copy) @@ -64,7 +64,11 @@ /** * CSS (style) attribute context. */ - CSS_ATTRIBUTE + CSS_ATTRIBUTE, + /** + * At the very start of a CSS (style) attribute context. + */ + CSS_ATTRIBUTE_START } private final Type type; Index: user/test/com/google/gwt/safehtml/rebind/HtmlTemplateParserTest.java === --- user/test/com/google/gwt/safehtml/rebind/HtmlTemplateParserTest.java (revision 9880) +++ user/test/com/google/gwt/safehtml/rebind/HtmlTemplateParserTest.java (working copy) @@ -134,9 +134,14 @@ // Test correct detection of CSS context. assertParseTemplateResult( [L(div class=\), P((ATTRIBUTE_VALUE,div,class),0), L(\ style=\), ++ P((CSS_ATTRIBUTE_START,div,style),2), L(\Hello ), ++ P((TEXT,null,null),1)], +div class=\{0}\ style=\{2}\Hello {1}); +assertParseTemplateResult( +[L(div class=\), P((ATTRIBUTE_VALUE,div,class),0), L(\ style=\color:green; ), + P((CSS_ATTRIBUTE,div,style),2), L(\Hello ), + P((TEXT,null,null),1)], -div class=\{0}\ style=\{2}\Hello {1}); +div class=\{0}\ style=\color:green; {2}\Hello {1}); assertParseTemplateResult( [L(div), P((TEXT,null,null),0), L(stylefoo ), + P((CSS,null,null),1), L(/style)], -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9907 committed - Cherry picking r9880 into releases/2.3m1
Revision: 9907 Author: rchan...@google.com Date: Fri Mar 25 07:04:13 2011 Log: Cherry picking r9880 into releases/2.3m1 http://code.google.com/p/google-web-toolkit/source/detail?r=9907 Modified: /releases/2.3/user/src/com/google/gwt/requestfactory/server/LocatorServiceLayer.java /releases/2.3/user/src/com/google/gwt/requestfactory/server/ResolverServiceLayer.java /releases/2.3/user/src/com/google/gwt/requestfactory/server/ServiceLayer.java /releases/2.3/user/src/com/google/gwt/requestfactory/server/ServiceLayerDecorator.java /releases/2.3/user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java /releases/2.3/user/test/com/google/gwt/requestfactory/RequestFactorySuite.java /releases/2.3/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java === --- /releases/2.3/user/src/com/google/gwt/requestfactory/server/LocatorServiceLayer.java Tue Mar 22 11:45:18 2011 +++ /releases/2.3/user/src/com/google/gwt/requestfactory/server/LocatorServiceLayer.java Fri Mar 25 07:04:13 2011 @@ -56,7 +56,7 @@ // Enclosing class may be a parent class, so invoke on service class Class? declaringClass = contextMethod.getDeclaringClass(); Class? serviceClass = -getTop().resolveServiceClass((Class? extends RequestContext) declaringClass); + getTop().resolveServiceClass(declaringClass.asSubclass(RequestContext.class)); return locator.getInstance(serviceClass); } === --- /releases/2.3/user/src/com/google/gwt/requestfactory/server/ResolverServiceLayer.java Tue Mar 22 11:45:18 2011 +++ /releases/2.3/user/src/com/google/gwt/requestfactory/server/ResolverServiceLayer.java Fri Mar 25 07:04:13 2011 @@ -119,7 +119,7 @@ public Method resolveDomainMethod(Method requestContextMethod) { Class? declaringClass = requestContextMethod.getDeclaringClass(); Class? searchIn = -getTop().resolveServiceClass((Class? extends RequestContext) declaringClass); + getTop().resolveServiceClass(declaringClass.asSubclass(RequestContext.class)); Class?[] parameterTypes = requestContextMethod.getParameterTypes(); Class?[] domainArgs = new Class?[parameterTypes.length]; for (int i = 0, j = domainArgs.length; i j; i++) { === --- /releases/2.3/user/test/com/google/gwt/requestfactory/RequestFactorySuite.java Fri Jan 14 04:27:42 2011 +++ /releases/2.3/user/test/com/google/gwt/requestfactory/RequestFactorySuite.java Fri Mar 25 07:04:13 2011 @@ -26,6 +26,7 @@ import com.google.gwt.requestfactory.shared.BoxesAndPrimitivesTest; import com.google.gwt.requestfactory.shared.ComplexKeysTest; import com.google.gwt.requestfactory.shared.LocatorTest; +import com.google.gwt.requestfactory.shared.ServiceInheritanceTest; import junit.framework.Test; @@ -46,6 +47,7 @@ suite.addTestSuite(RequestFactoryExceptionPropagationTest.class); suite.addTestSuite(RequestFactoryPolymorphicTest.class); suite.addTestSuite(RequestFactoryUnicodeEscapingTest.class); +suite.addTestSuite(ServiceInheritanceTest.class); return suite; } } === --- /releases/2.3/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java Tue Mar 22 11:45:18 2011 +++ /releases/2.3/user/test/com/google/gwt/requestfactory/shared/ServiceInheritanceTest.java Fri Mar 25 07:04:13 2011 @@ -26,21 +26,17 @@ public class ServiceInheritanceTest extends GWTTestCase { /** - * Generic locator returns an instance of the class named in - * the @{@link Service} annotation + * ServiceLocator that returns the base class or subclass implementation + * specified in the @{@link Service} annotation. */ - public static class AnyServiceLocator implements ServiceLocator { - -@Override + public static class SumServiceLocator implements ServiceLocator { public Object getInstance(Class? clazz) { - assertTrue(BaseImpl.class.isAssignableFrom(clazz)); - try { -return clazz.newInstance(); - } catch (InstantiationException e) { -throw new RuntimeException(e); - } catch (IllegalAccessException e) { -throw new RuntimeException(e); - } + if (BaseImpl.class.equals(clazz)) { +return new BaseImpl(); + } else if (SubclassImpl.class.equals(clazz)) { +return new SubclassImpl(); + } + return null; } } @@ -48,42 +44,63 @@ * The factory under test. */ protected interface Factory extends RequestFactory { -SumService sumContext(); -SumServiceBase sumBaseContext(); +SumServiceBase baseContext(); +SumServiceSub subContext(); } /** - * Specifies a service which extends a base class + * Specifies the base class implementation */ - @Service(value = SubclassImpl.class, locator = AnyServiceLocator.class) - interface SumService extends
[gwt-contrib] Fixes issue 6189. WebAppCreator was not scanning war/WEB-INF/lib to fill up .classpath (issue1393801)
Reviewers: jlabanca, Description: Fixes issue 6189. WebAppCreator was not scanning war/WEB-INF/lib to fill up .classpath Please review this at http://gwt-code-reviews.appspot.com/1393801/ Affected files: M user/src/com/google/gwt/user/tools/WebAppCreator.java M user/test/com/google/gwt/user/tools/WebAppCreatorTest.java Index: user/src/com/google/gwt/user/tools/WebAppCreator.java === --- user/src/com/google/gwt/user/tools/WebAppCreator.java (revision 9906) +++ user/src/com/google/gwt/user/tools/WebAppCreator.java (working copy) @@ -542,7 +542,7 @@ replacements.put(@copyServletDeps, copyServletDeps); // Collect the list of server libs to include on the eclipse classpath. -File libDirectory = new File(outDir + warFolder + WEB-INF/lib); +File libDirectory = new File(outDir + / + warFolder + /WEB-INF/lib); StringBuilder serverLibs = new StringBuilder(); if (libDirectory.exists()) { for (File file : libDirectory.listFiles()) { Index: user/test/com/google/gwt/user/tools/WebAppCreatorTest.java === --- user/test/com/google/gwt/user/tools/WebAppCreatorTest.java (revision 9906) +++ user/test/com/google/gwt/user/tools/WebAppCreatorTest.java (working copy) @@ -15,6 +15,7 @@ */ package com.google.gwt.user.tools; +import com.google.gwt.dev.util.Util; import com.google.gwt.user.tools.WebAppCreator.ArgProcessor; import junit.framework.TestCase; @@ -265,6 +266,32 @@ } /** + * Generate a .classpath containing a .jar in war/WEB-INF/lib + */ + public void testCreatorInlyEclipseWithJars() throws IOException, WebAppCreatorException { +runCreator(-out, projectFolder, -XnoEclipse, -junit, mockJar, +MY_PROJECT); + +String libDir = war + File.separatorChar ++ WEB-INF + File.separatorChar ++ lib; +assertTrue(new File(projectFolder + File.separatorChar + libDir).mkdirs()); + +String libJarName = libDir + File.separatorChar + foo.jar; +File libFile = new File(projectFolder + File.separatorChar + libJarName); +assertTrue(libFile.createNewFile()); + +runCreator(-out, projectFolder, -XonlyEclipse, -junit, mockJar, +MY_PROJECT); + +assertFileExists(.classpath); +File classpathFile = new File(projectFolder + File.separatorChar + .classpath); +String classpathContents = Util.readURLAsString(classpathFile.toURI().toURL()); +assertTrue(.classpath does not contain + libJarName, +classpathContents.contains(libJarName)); + } + + /** * Test the main method. */ public void testMain() { -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Public (issue1394801)
Reviewers: jlabanca, Description: Public Fixes new project template to use 'clean' style. Issue 6208. Please review this at http://gwt-code-reviews.appspot.com/1394801/ Affected files: M user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc Index: user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc === --- user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc (revision 9906) +++ user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc (working copy) @@ -6,7 +6,7 @@ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- - inherits name='com.google.gwt.user.theme.standard.Standard'/ + inherits name='com.google.gwt.user.theme.clean.Clean'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixes issue 6189. WebAppCreator was not scanning war/WEB-INF/lib to fill up .classpath (issue1393801)
http://gwt-code-reviews.appspot.com/1393801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Public (issue1394801)
http://gwt-code-reviews.appspot.com/1394801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Supress errors when building the Type Oracle. (issue1385810)
http://gwt-code-reviews.appspot.com/1385810/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Public (issue1394801)
http://gwt-code-reviews.appspot.com/1394801/diff/1/user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc File user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc (right): http://gwt-code-reviews.appspot.com/1394801/diff/1/user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc#newcode9 user/src/com/google/gwt/user/tools/templates/sample/_srcFolder_/_moduleFolder_/_moduleShortName_.gwt.xmlsrc:9: inherits name='com.google.gwt.user.theme.clean.Clean'/ On 2011/03/29 18:27:03, jlabanca wrote: The standard version should be commented out below the Clean version. Done. http://gwt-code-reviews.appspot.com/1394801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors