Re: GWT + Palm WebOS
Actually, GWT apps seem to work quite well in the browser, just like any web application... You just need to be careful about the screen size. So if you don't need webOS native libraries, there are no specific settings for GWT, and your project can be a standard GWT project. Wrapping Mojo in GWT would require some work, but I'm definitely interested to see if someone is up to it. On Nov 4, 6:43 pm, cal calsc...@gmail.com wrote: Any suggestions on achieving this. I would love to be able to develop WebOS apps in Java using GWT and I think tons of other people would too. I suppose some particular points of interest would be: -How to integrate with the WebOS eclipse plugin? I was thinking you would need a WebOS project and a GWT project. -How do you get Java wrappers for Palm's Mojo framework. -What kind of GWT compiler settings you would want to work best with WebOS. --~--~-~--~~~---~--~~ You received 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: Enter key on dialog close button results in enter key processed by other widget
On Nov 7, 4:33 am, Open eSignForms yoz...@gmail.com wrote: I have a dialog box, with a close button that is given the focus so that hitting Enter results in it closing. That works fine. In fact, it seems that the Enter actually results in a Click event, perhaps because it's a button receiving the key. But my onClick handler sets the focus on an input TextBox field on the form under it that cause the error. This then seems to cause the onKeyUp key to fire on that TextBox. I don't want this since the key actually was hit on the dialog box. If my dialog box doesn't set the focus back, this doesn't seem to happen. But when it does set the focus back, it seems to cause the Enter to also be sent to it. What am I doing wrong? Probably nothing; it's not clear what browsers should do (and are doing) when you change the focus during key events' handling (particularly, when you change focus during keydown or keypress, should the next keypress and keyup fire on the original target or the newly focused element? and the same applies somehow for push buttons, radio buttons, checkboxes and dropdowns; as you've been experiencing). FYI, this is being discussed at the W3C. What if you setFocus() in a DeferredCommand? that way, the focus wouldn't have already been moved when the keyup event fire (so it'd fire on the button, not the text box) --~--~-~--~~~---~--~~ You received 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: Sending JavaScriptObject back to server
On Nov 6, 7:25 pm, DaGreat chika...@gmail.com wrote: Hi, I'm trying to send a JavaScriptObject back to the server. Is this possible to do? I first tried to send the String representation of my JSON Object to the server just to realize the JSONParser was usable on the client (browser) side only. There are several JSON parsers in Java that you can use on the server side; see http://www.json.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-StockWatcher: German translation of parameterized messages appears as English
You cheated ;-) In the tutorial, you create two separate properties files; StockWatcherConstants_de.properties and StockWatcherMessages_de.properties But you have only created StockWatcherConstants_de.properties, and in there you put both your static and generalized strings. Try creating a StockWatcherMessages_de.properties aswell and put these rows in there: lastUpdate = Letzte Aktualisierung: {0,date,medium} {0,time,medium} invalidSymbol = ''{0}'' ist kein gültiges Aktiensymbol. and remove the same rows from StockWatcherConstants_de.properties On 8 Nov, 03:42, Angel Marquez angel.marq...@gmail.com wrote: I am here in the SW tutorial:http://code.google.com/webtoolkit/tutorials/1.6/i18n.html Completed, I think, the lesson; but, when I check in hosted mode:http://localhost:8080/StockWatcher.html?locale=de The timestamp appears in English... Any ideas? src attached. Thank you in advance. -Angel gwt-SW-src.zip 11KVisaHämta --~--~-~--~~~---~--~~ You received 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: PHP + GWT ????
thank u very much i managed to use -noserver and it works great how the hell can gwt debug the js code running on another web server ?!??!? On Nov 8, 1:55 pm, ben fenster fenster@gmail.com wrote: pls help i cant use hosted mode even after installing apache setting the directory to my war if i use browser it works fine but not in hosted mode pls help me On Nov 4, 6:16 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. The way I do it is like this: In the program arguments you need -noserver -port 1080 if you don't put the port, it will default to 80 in my launch file for my 1.7 minimum app I have stringAttribute key=org.eclipse.jdt.launching.PROGRAM_ARGUMENTS value=-noserver -port 80 -startupUrl index.html com.roughian.appmin_1_7.Module/ but however you run it, you need those arguments. You also need a local web server. I use Abyss (since Apache seemed like overkill) and set it up so that the document root was pointing to the /war/ directory of my project and the port it was using was 1080, and it was also set up to deal with PHP, of course. As far as I can remember, that's all you have to do. The advantage of setting a port number is that you can then set up *another* project with another port number, and another instance of Abyss which is pointed at the new project's /war/ directory and uses the new port number. What is more, you can run both projects in hosted mode at the same time. In GWT 2.0, you can do exactly the same thing, but if you want to run more than one project in development mode at the same time, you will also need to add -portHosted 9998 (or some other unique hosted mode port number) If that doesn't make sense, or doesn't work, or you need help setting up Abyss (if you decide to use it), let me know. Ian http://examples.roughian.com 2009/11/4 ben fenster fenster@gmail.com it will help me alot if you could alaberate on the subject :) On 4 נובמבר, 16:13, Ian Bambury ianbamb...@gmail.com wrote: Have everything in the same place if you can. Run with the -noserver option and have a local web server point to your war directory If that's too cryptic an answer, just shout and I'll give more detail. Ian http://examples.roughian.com 2009/11/4 ben fenster fenster@gmail.com how can i send a post request to my php page without getting an exception about same orign execution restriction --~--~-~--~~~---~--~~ You received 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: MyClass is not a generic type; only generic types can be parameterized
just a guess: maybe somewhere else in the code you use MyClassSomething someVar; On Nov 6, 10:19 am, dinosaurus dinosau...@inbox.lv wrote: Hello, I have the following class which has not methods at all: public class MyClass extends LinkedListMyAnotherClass { } In GWT console and during GWT compilation I'm getting warnings like it is shown below. Could anybody comment what's the cause of the warnings and how to eliminate them? - GWT 1.7.1 - Java 1.6 Thanks in advance [WARN] 'mypackage.MyClass' is not a generic type; only generic types can be parameterized com.google.gwt.core.ext.typeinfo.BadTypeArgsException: 'mypackage.MyClass' is not a generic type; only generic types can be parameterized at com.google.gwt.core.ext.typeinfo.TypeOracle.parseImpl (TypeOracle.java:835) at com.google.gwt.core.ext.typeinfo.TypeOracle.parse(TypeOracle.java: 526) at com.google.gwt.core.ext.typeinfo.TypeOracle.parseTypeArgTokens (TypeOracle.java:934) at com.google.gwt.core.ext.typeinfo.TypeOracle.determineActualType (TypeOracle.java:784) at com.google.gwt.core.ext.typeinfo.TypeOracle.consumeTypeArgMetaData (TypeOracle.java:725) at com.google.gwt.core.ext.typeinfo.TypeOracle.consumeTypeArgMetaData (TypeOracle.java:637) at com.google.gwt.core.ext.typeinfo.TypeOracle.finish(TypeOracle.java: 256) at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits (TypeOracleMediator.java:403) at com.google.gwt.dev.javac.TypeOracleMediator.refresh (TypeOracleMediator.java:417) at com.google.gwt.dev.javac.CompilationState.refresh (CompilationState.java:179) at com.google.gwt.dev.javac.CompilationState.init (CompilationState.java:93) at com.google.gwt.dev.cfg.ModuleDef.getCompilationState (ModuleDef.java:264) at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325) at com.google.gwt.dev.SwtHostedModeBase $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java: 66) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad (BrowserWidgetIE6.java:73) at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke (BrowserWidgetIE6.java:161) at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke (IDispatchImpl.java:294) at com.google.gwt.dev.shell.ie.IDispatchImpl.method6 (IDispatchImpl.java:194) at org.eclipse.swt.internal.ole.win32.COMObject.callback6 (COMObject.java:117) at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method) at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966) at com.google.gwt.dev.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:264) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:557) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.GWTShell.main(GWTShell.java:140) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) --~--~-~--~~~---~--~~ You received 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: Resize image
yes, that's a good idea I use this aproach too when the user uploads an image I create a small thumbnail version I also store the image dimensions. wehn I then need to display an image on the clientside, I will get the imagename and the dimensions from the RPC call and then let the client side code decide which version of the image to use (dependant on the desired display size) On Nov 7, 9:26 am, Dariusz darius...@gmail.com wrote: Thanks Martin for the hint! Now it's working. As usual, the devil is in the details... Using the loadHandler, the image (in my case my thumb) is being resized if image is not in the cache. If you refresh the site, the loadHandler won't be executed. That means, resizing the image has to be in two places. 1. inside the loadHandler 2. outside the loadHandler, in case it's reading from cache... Now, I'm thinking if this approach is the appropriate one... maybe I should shrink the images already when saving to the database for performance reason. On Nov 6, 10:50 am, Martin Trummer martin.trum...@24act.at wrote: well and one alternative, that might sometimes be usefull is, to transfer the imagename and the imagesize to the client then you already know the dimensions when you create the image On Nov 6, 10:49 am, Martin Trummer martin.trum...@24act.at wrote: try to use a load handler the getWidth() methods comment says: Gets the width of the image. When the image is in the unclipped state, the width of the image is not known until the image has been loaded (i.e. load event has been fired for the image). if you just create the Image object and call getWidth() immediately, it cannot know it's width - because the browser has not even loaded it yet It might sometimes work, for images, that the browser already has in it's cache. I didn't actually try it, but it sounds reasonable. On Nov 5, 1:38 pm, Dariusz darius...@gmail.com wrote: I have an image lets say 600x800 pixel. Now I want to resize downit to 60x80 pixel. If I use setWidth or setPixelSize( width, height ), then it sometimes it does it correctly and sometimes not. I've got this problem in both IE FF. Do I need to do it within a loadHandler()? Or does anyone has a better solution for it? My approach: Image thumb = new Image( C:\path\to\image.jpg ); int w = thumb.getWidth(); int h = thumb.getHeight(); int newH = 60; int newW = ( w * newH ) / h; if( h newH ) { thumb.setPixelSize( newW, newH ); } Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Gwt 2.0 trunk and Eclipse
Hi to all, I would like to test new gwt 2.0 features so i downloaded the trunk and compiled it without any problems. I copied the source of the mail sample to see the UiBinder in action but when i try to run with Google Plugin (1.1.2) the console fires an unknown parameter style message. I tried to create a run configuration manually using as Main method the DevMode class and passing the module name as an argument.As working directory i tried with my workspace dir but when i go with firefox to the application url an alert tells me that my module needs to be recompiled,if otherwise i use my war directory as working directory i can navigate the files on the server but I can't see the main html file only the compiled js files and a hosted.html. There's a way to start the app with the google plugin or a simple configuration to run from eclipse? Thanks, Matteo --~--~-~--~~~---~--~~ You received 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 insert static HTML content
They extend 'com.google.gwt.user.client.ui.Composite'. getDisplay().asWidget()) is a method (in use with the MVP) which returns only the Widget: @Override public Widget asWidget() { return this; } I do not separate my views into different EntryPoints, just use them inside one EntryPoint and switch them on/off with my AppPresenter.class . On 6 Nov., 02:00, Yozons Support on Gmail yoz...@gmail.com wrote: Thanks. On Thu, Nov 5, 2009 at 12:30 AM, gwtfanb0y siegfried.b...@googlemail.comwrote: @SuppressWarnings({MethodOnlyUsedFromInnerClass}) private void showMain() { container.clear(); container.add(portalMainWidget.getDisplay().asWidget()); } private void showLogin() { container.clear(); container.add(loginComponent.getDisplay().asWidget()); } What type are the loginComponent and portalMainWidget? 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 -~--~~~~--~~--~--~---
How to unescape a JSONString?
I'm having some trouble dealing with escaping and unescaping of Java strings for encoding in JSON. I use JSONString to encode a Java string and that seems to work ok. For example, newlines turn into \n, tabs turn into \t and so on. However, given this escaped sequence back, how to I turn this back into an unescaped javastring wheren \n is turned into a newline and so on? If I use stringvalue() on the JSONString it just gives back the same json encoded string with the \n and \t encoding etc. Anyone have any ideas? :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Enter key on dialog close button results in enter key processed by other widget
Can you provide us the code where you assign the KeyListener to the button? This makes it easier to analyze the problem. On 7 Nov., 04:33, Open eSignForms yoz...@gmail.com wrote: I have a dialog box, with a close button that is given the focus so that hitting Enter results in it closing. That works fine. In fact, it seems that the Enter actually results in a Click event, perhaps because it's a button receiving the key. But my onClick handler sets the focus on an input TextBox field on the form under it that cause the error. This then seems to cause the onKeyUp key to fire on that TextBox. I don't want this since the key actually was hit on the dialog box. If my dialog box doesn't set the focus back, this doesn't seem to happen. But when it does set the focus back, it seems to cause the Enter to also be sent to it. What am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re:
You can read more about this there http://code.google.com/intl/de-DE/webtoolkit/gettingstarted.html#New On 8 Nov., 15:32, Jignesh Prajapati jig4phys...@gmail.com wrote: Hi all This is AryanDev m not so familiar wid eclipse i like to work in command line can any one give me idea how to create new page in GWT ??? default one page given. bt my project have move then 10 pages how to apply module.nocache,js in all pages ??? psl help me thanks -- Drj --~--~-~--~~~---~--~~ You received 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.0 trunk and Eclipse
On Nov 9, 11:45 am, mfiandesio matteo.fiande...@gmail.com wrote: Hi to all, I would like to test new gwt 2.0 features so i downloaded the trunk and compiled it without any problems. I copied the source of the mail sample to see the UiBinder in action but when i try to run with Google Plugin (1.1.2) the console fires an unknown parameter style message. I tried to create a run configuration manually using as Main method the DevMode class and passing the module name as an argument.As working directory i tried with my workspace dir but when i go with firefox to the application url an alert tells me that my module needs to be recompiled,if otherwise i use my war directory as working directory i can navigate the files on the server but I can't see the main html file only the compiled js files and a hosted.html. There's a way to start the app with the google plugin or a simple configuration to run from eclipse? You're probably missing the ?gwt.hosted= param in the query-string when launching your app (the exact URL to use is given in both the DevMode window and in the console –so you can copy/paste it into your browser, where you'd have installed the devmode plug-in, of course–) Also, are you passing the -war argument to DevMode? (note that if you have the Google Plug-in for Eclipse, you can use the run as webapp, it'll run HostedMode which will warn that you should be using DevMode but it otherwise works very well –at least 2.0-MS2 works like a charm–) --~--~-~--~~~---~--~~ You received 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 use a server class in client code
Hi, You can serialize classes only defined in client side(not server side).Class you defined on server side should be moved to client side to serialize. On Nov 9, 4:01 pm, DaveS dave.sell...@gmail.com wrote: That's how we did it originally, but then we created a separate GWT project (well, actually it's just a JAR project) that defines all our types that are common over the RPC interfaces. We reference that project in both the server and client projects, and the JAR gets pulled into the client side and GWT happily generates JS code from it. We now also use it for some 'shared' client-side classes as well so it's effectively just a library project. DaveS. On Nov 9, 3:35 am, rjcarr rjc...@gmail.com wrote: Hi Sanjith- I don't completely follow your question but any shared code between the client and the server has to reside in the client package (by default). This is because GWT can only see code in the modules you have defined and the server package isn't a GWT module (again, by default). Hope this helps! On Nov 8, 10:30 am, Sanjith Chungath csanj...@gmail.com wrote: Greetings to all, I have defined a class in the server and want to get a list of objects (of that class) as return parameter of an async call. But while compile I got following error No source code is available for type com.abc.pqr.data.XXX; did you forget to inherit a required module?. I know that it is because GWT dont know the java script code for coresponding class. What is the general practice to use a object of class in server side at client code, serialize it? or any other better way. -Sanjith.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Google Closure-library
The Closure UI should be the new GWT widget set. --~--~-~--~~~---~--~~ You received 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 RPC-serialize data manually on client?
You can achieve the same result a different way, but with two network calls. The first, a regular RPC call that uploads the data and returns some unique ID. The second is an HTTP call that goes to your non-GWT servlet and passes in the ID from the first call as a parameter, and the file is returned for the browser to handle as normal. HTH Paul Andrey wrote: Jason, this is exactly what I was thinking of. My question is how to do this part: have a field that contained the serialized rpc style data? How can I rpc-serialize it? BTW I want to download the file not to upload it. So I will not need to decode on client, only encode on client and decode on server On 6 ноя, 20:16, Jason Essington jas...@greenrivercomputing.com wrote: Actually, the process would be to construct a form post (not a XHR) since that is the only way in Javascript/html to upload a file. you could have a field that contained the serialized rpc style data ... then on the server break out the fields ... handle the files and deserialize the other bits. then serialize a response and return it. on the client, the target iframe would have to handle the returned text as RPC data and deserialize it. I don't think that any of this is built into GWT at the moment, but it would be possible to create it. I have created form posts with RPC responses in the past, so it is a short hop to add the rpc style request parameters. -jason On Nov 6, 2009, at 6:48 AM, Sripathi Krishnan wrote: Can't do it via GWT RPC. As you said, you can bypass things on the server, but GWT doesn't have any client side hooks to get raw bytes. In fact, I am not sure if you can do that using a XmlHttpRequest. How will the user save the file, if the data is available as a javascript variable? There is an older discussion on this group - someone wanted to download an image from the servlet but pass in parameters using GWTs RPC request. The conclusion was similar - it can't be done. --Sri 2009/11/6 Andrey razumovsky.and...@gmail.com I'm using GWT 1.7 On 6 ноя, 14:15, Andrey razumovsky.and...@gmail.com wrote: Hi, I want to create a servlet that is downloading some file to client. So, I cannot use RPC services for that. Servlet will take a lot of data from client, so request should be POST. I want to use built-in RPC serialization mechanizm to encode my parameters. On server, I can use com.google.gwt.user.server.rpc.RPC class to decode the request and get the parameters. But how can I encode them on client? I've been unable to fetch SerializationStreamWriter instances or something. In short, I want RPC-request without RPC-response (servlet will be writing a file in output stream instead). Hope, I've been clear enough.. Thanks in advance, Andrey --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
UDP packets GWT
Greetings, I know this is not a pure GWT question, but a related one. I have a web device that continuously sends UDP packets to a specific IP and port. I have a java application that is able to listen to the port and receive the packets. What I want to do is create an OpenSocial gadget in GWT that will somehow take the data and be displayed in the gadget. I understand that I am not able to use the java.net.DatagramSocket and java.net.DatagramPacket classes in GWT because javascript does not support socket listening. Anyone out there have a simple solution that would enable me to get the datagram data somehow. I would appreciate any suggestions. Thank you, Andre --~--~-~--~~~---~--~~ You received 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: UDP packets GWT
Run your java app on a server somewhere that can receive the UDP packets, and then store them (in memory or in a database). GWT client connects to your server to get the data Andre Leger wrote: Greetings, I know this is not a pure GWT question, but a related one. I have a web device that continuously sends UDP packets to a specific IP and port. I have a java application that is able to listen to the port and receive the packets. What I want to do is create an OpenSocial gadget in GWT that will somehow take the data and be displayed in the gadget. I understand that I am not able to use the java.net.DatagramSocket and java.net.DatagramPacket classes in GWT because javascript does not support socket listening. Anyone out there have a simple solution that would enable me to get the datagram data somehow. I would appreciate any suggestions. Thank you, Andre --~--~-~--~~~---~--~~ You received 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: UDP packets GWT
If you want to use reverse ajax (or push ajax) i would recommend comet. On 9 Nov., 14:42, Andre Leger rareleg...@gmail.com wrote: Greetings, I know this is not a pure GWT question, but a related one. I have a web device that continuously sends UDP packets to a specific IP and port. I have a java application that is able to listen to the port and receive the packets. What I want to do is create an OpenSocial gadget in GWT that will somehow take the data and be displayed in the gadget. I understand that I am not able to use the java.net.DatagramSocket and java.net.DatagramPacket classes in GWT because javascript does not support socket listening. Anyone out there have a simple solution that would enable me to get the datagram data somehow. I would appreciate any suggestions. Thank you, Andre --~--~-~--~~~---~--~~ You received 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.0 trunk and Eclipse
this is the same problem i reported in the google plugin for eclipse thread. the plugin automatically appends the -style parameter which is no longer supported by DevMode. my solution was to revert: trunk\dev\core\src\com\google\gwt\dev\DevMode.java trunk\dev\core\src\com\google\gwt\dev\DevModeBase.java to earlier versions (from nov 5th) --~--~-~--~~~---~--~~ You received 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 2 CssResource error
I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and my application compiled and worked fine. Now for GWT 2 I have created a ResourceBundle class and put all image sprites and CSS as follows: public interface ResourceBundle extends ClientBundle { public static final ResourceBundle INSTANCE = GWT.create (ResourceBundle.class); @Source(com/web/tech/public/stylesheet1.css) public Css stylesheet1(); @Source(com/web/tech/public/stylesheet2.css) public Css stylesheet2(); @Source(com/docobo/keswick/keswickweb/public/images/ organisnew.gif) public ImageResource add_org(); . } The Css class is an empty class extending CssResource : public interface Css extends CssResource{ } Then in my onModuleLoad() I use : StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet1().getText ()); StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet2().getText ()); When I compile I get the following error: Rebinding com.docobo.keswick.keswickweb.client.ClientResources.ResourceBundle Invoking generate-with class='com.google.gwt.resources.rebind.context.InlineClientBundleGenerator'/ Creating assignment for gxt_gray() Replacing CSS class names [ERROR] The following unobfuscated classes were present in a strict CssResource: [ERROR] x-tab-scroller-left [ERROR] x-tab-strip-disabled [ERROR] ..loads of other styles Fix by adding String accessor method(s) to the CssResource interface for obfuscated classes, or using an @external declaration for unobfuscated classes. Following the above instruction when I use @external above all my style classes inside the CSS file I get the following error : [ERROR] Generator 'com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' threw threw an exception while rebinding 'com.docobo.keswick.keswickweb.client.ClientResources.ResourceBundle' java.lang.StringIndexOutOfBoundsException: String index out of range: -2 at java.lang.String.substring(Unknown Source) at com.google.gwt.resources.css.GenerateCssAst $GenerationHandler.ignorableAtRule(GenerateCssAst.java:236) at org.w3c.flute.parser.Parser.atRuleDeclaration(Parser.java: 1178) at org.w3c.flute.parser.Parser.ignoreStatement(Parser.java:622) at org.w3c.flute.parser.Parser.parserUnit(Parser.java:452) at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:107) at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:119) at com.google.gwt.resources.css.GenerateCssAst.exec (GenerateCssAst.java:663) at com.google.gwt.resources.rg.CssResourceGenerator.prepare (CssResourceGenerator.java:506) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare (AbstractClientBundleGenerator.java:531) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare (AbstractClientBundleGenerator.java:502) at com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate (AbstractClientBundleGenerator.java:179) at com.google.gwt.dev.cfg.RuleGenerateWith.realize (RuleGenerateWith.java:49) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.tryRebind(StandardRebindOracle.java:108) at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind (StandardRebindOracle.java:54) at com.google.gwt.dev.shell.StandardRebindOracle.rebind (StandardRebindOracle.java:154) at com.google.gwt.dev.shell.StandardRebindOracle.rebind (StandardRebindOracle.java:143) at com.google.gwt.dev.Precompile $DistillerRebindPermutationOracle.getAllPossibleRebindAnswers (Precompile.java:315) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds (WebModeCompilerFrontEnd.java:107) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.process (AbstractCompiler.java:161) at org.eclipse.jdt.internal.compiler.Compiler.compile (Compiler.java:444) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile (AbstractCompiler.java:84) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.compile (AbstractCompiler.java:196) at com.google.gwt.dev.jdt.AbstractCompiler$CompilerImpl.access$300 (AbstractCompiler.java:70) at com.google.gwt.dev.jdt.AbstractCompiler.compile (AbstractCompiler.java:481) at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations (BasicWebModeCompiler.java:113) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations (WebModeCompilerFrontEnd.java:49) at
Re: How to make scroll panel+flex table wrap text correctly?
If anyone has any ideas on this, it would be greatly appreciated. On Nov 6, 8:23 am, chris ceb...@gmail.com wrote: I was wondering if anyone knew how to wrap text like several chat applications do. I have a ChatArea private class that I am trying to add to a widget. It works, however if a message to add to the chat text is 1000 characters with no new lines, the ScrollPanel does not wrap the text and adds a very long horizontal scroll. private class ChatPart extends ScrollPanel { final FlexTable flexTable = new FlexTable(); ChatPart() { super(); FlexCellFormatter cellFormatter = flexTable.getFlexCellFormatter(); cellFormatter.setColSpan(0,0,2); flexTable.addStyleName(chat-FlexTable); flexTable.setWidth(100%); this.add(flexTable); this.setWidth(100%); this.setHeight(300); } /** * Add a message */ void addMessage(String user, String message) { int numRows = flexTable.getRowCount(); flexTable.getFlexCellFormatter().setVerticalAlignment(numRows, 0, HasVerticalAlignment.ALIGN_TOP); flexTable.getFlexCellFormatter().setVerticalAlignment(numRows, 1, HasVerticalAlignment.ALIGN_TOP); flexTable.getFlexCellFormatter().setWordWrap(numRows, 1, true); flexTable.setWidget(numRows, 0, ChatApplication.images.greenIcon ().createImage()); flexTable.setWidget(numRows, 1, new HTML(b + user + :/b +message)); flexTable.getFlexCellFormatter().setRowSpan(0, 1, numRows+1); this.scrollToBottom(); } } --~--~-~--~~~---~--~~ You received 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 CssResource error
On Nov 9, 4:13 pm, shahid shahidza...@gmail.com wrote: I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and my application compiled and worked fine. Now for GWT 2 I have created a ResourceBundle class and put all image sprites and CSS as follows: public interface ResourceBundle extends ClientBundle { public static final ResourceBundle INSTANCE = GWT.create (ResourceBundle.class); @Source(com/web/tech/public/stylesheet1.css) public Css stylesheet1(); @Source(com/web/tech/public/stylesheet2.css) public Css stylesheet2(); @Source(com/docobo/keswick/keswickweb/public/images/ organisnew.gif) public ImageResource add_org(); . } The Css class is an empty class extending CssResource : public interface Css extends CssResource{ } Then in my onModuleLoad() I use : StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet1().getText ()); StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet2().getText ()); When I compile I get the following error: Rebinding com.docobo.keswick.keswickweb.client.ClientResources.ResourceBundle Invoking generate-with class='com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' / Creating assignment for gxt_gray() Replacing CSS class names [ERROR] The following unobfuscated classes were present in a strict CssResource: [ERROR] x-tab-scroller-left [ERROR] x-tab-strip-disabled [ERROR] ..loads of other styles Fix by adding String accessor method(s) to the CssResource interface for obfuscated classes, or using an @external declaration for unobfuscated classes. Following the above instruction when I use @external above all my style classes inside the CSS file I get the following error : It's not to be used above, as a Java5 annotation; see http://code.google.com/p/google-web-toolkit/wiki/CssResource#External_and_legacy_scopes --~--~-~--~~~---~--~~ You received 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 CssResource error
Thank you Thomas. Putting @external next (left) to the style solved the problem :) regards shahid On Nov 9, 3:30 pm, Thomas Broyer t.bro...@gmail.com wrote: On Nov 9, 4:13 pm, shahid shahidza...@gmail.com wrote: I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and my application compiled and worked fine. Now for GWT 2 I have created a ResourceBundle class and put all image sprites and CSS as follows: public interface ResourceBundle extends ClientBundle { public static final ResourceBundle INSTANCE = GWT.create (ResourceBundle.class); @Source(com/web/tech/public/stylesheet1.css) public Css stylesheet1(); @Source(com/web/tech/public/stylesheet2.css) public Css stylesheet2(); @Source(com/docobo/keswick/keswickweb/public/images/ organisnew.gif) public ImageResource add_org(); . } The Css class is an empty class extending CssResource : public interface Css extends CssResource{ } Then in my onModuleLoad() I use : StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet1().getText ()); StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet2().getText ()); When I compile I get the following error: Rebinding com.docobo.keswick.keswickweb.client.ClientResources.ResourceBundle Invoking generate-with class='com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' / Creating assignment for gxt_gray() Replacing CSS class names [ERROR] The following unobfuscated classes were present in a strict CssResource: [ERROR] x-tab-scroller-left [ERROR] x-tab-strip-disabled [ERROR] ..loads of other styles Fix by adding String accessor method(s) to the CssResource interface for obfuscated classes, or using an @external declaration for unobfuscated classes. Following the above instruction when I use @external above all my style classes inside the CSS file I get the following error : It's not to be used above, as a Java5 annotation; seehttp://code.google.com/p/google-web-toolkit/wiki/CssResource#External... --~--~-~--~~~---~--~~ You received 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 CssResource error
My css background images are not working though. May be there is a different way to use background images in GWT 2. On Nov 9, 3:42 pm, shahid shahidza...@gmail.com wrote: Thank you Thomas. Putting @external next (left) to the style solved the problem :) regards shahid On Nov 9, 3:30 pm, Thomas Broyer t.bro...@gmail.com wrote: On Nov 9, 4:13 pm, shahid shahidza...@gmail.com wrote: I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and my application compiled and worked fine. Now for GWT 2 I have created a ResourceBundle class and put all image sprites and CSS as follows: public interface ResourceBundle extends ClientBundle { public static final ResourceBundle INSTANCE = GWT.create (ResourceBundle.class); @Source(com/web/tech/public/stylesheet1.css) public Css stylesheet1(); @Source(com/web/tech/public/stylesheet2.css) public Css stylesheet2(); @Source(com/docobo/keswick/keswickweb/public/images/ organisnew.gif) public ImageResource add_org(); . } The Css class is an empty class extending CssResource : public interface Css extends CssResource{ } Then in my onModuleLoad() I use : StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet1().getText ()); StyleInjector.inject(ResourceBundle.INSTANCE.stylesheet2().getText ()); When I compile I get the following error: Rebinding com.docobo.keswick.keswickweb.client.ClientResources.ResourceBundle Invoking generate-with class='com.google.gwt.resources.rebind.context.InlineClientBundleGenerator' / Creating assignment for gxt_gray() Replacing CSS class names [ERROR] The following unobfuscated classes were present in a strict CssResource: [ERROR] x-tab-scroller-left [ERROR] x-tab-strip-disabled [ERROR] ..loads of other styles Fix by adding String accessor method(s) to the CssResource interface for obfuscated classes, or using an @external declaration for unobfuscated classes. Following the above instruction when I use @external above all my style classes inside the CSS file I get the following error : It's not to be used above, as a Java5 annotation; seehttp://code.google.com/p/google-web-toolkit/wiki/CssResource#External... --~--~-~--~~~---~--~~ You received 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: Does anyone worked with GWT connecting to Web Services in the server side?
Hi, I use tomcat to connect to a variety of webservices. Essentially it works as a client to them. I don't deploy to Google AppEngine though. But it does work if you control the server that you host the tomcat instance on. On Nov 8, 2:25 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: it dosnt have to be a problem if i want to deploy the application in a Tomcat Server for example. You can do that if you disable Google App Engine. If you are using the GWT Eclipse plugin, there is a setting to disable App Engine. --Sri 2009/11/7 nacho vela.igna...@gmail.com The problem is the following. I have an api wich connects to the differents WS and gave me all the DAOs. But when i try to use the API in the server side, in a ServiceImpl class i get the followoing error: javax.xml.ws.Service is a restricted class. Please see the Google App Engine developer's guide for more details. This problem i think is because this class is not in the Appengine Whitelist (http://code.google.com/appengine/docs/java/ jrewhitelist.htmlhttp://code.google.com/appengine/docs/java/%0Ajrewhitelist.html) but it dosnt have to be a problem if i want to deploy the application in a Tomcat Server for example. Buuut because of the above error, my problem is that i can't make the GWT compiler to get run and compile the js files. How could i do? On Nov 7, 6:22 am, MarcoGT marc...@gmail.com wrote: On Nov 6, 7:43 pm, nacho vela.igna...@gmail.com wrote: Hi, i'm trying to develop an application with GWT in wich one i have to get the data from WS that are hosted on a different server. I was googling about that but there not so much examples. Does anyone did that? What do you mean with different server? I do something like that; I use RequestBuilder classs (I do not use RPC and ASyncCallBack) to make request to server; date are sent and received in XML format. Bye 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 -~--~~~~--~~--~--~---
GWT 2 External Css not working
I am using 2 external CSS stylesheets in my application but none of their styles apply anywhere when I load the app. The way I have set it up is as follows: I have placed the 2 CSS files in a folder named public at the same level as the gwt.xml file. In my gwt.xml, I have: inherits name=com.google.gwt.resources.Resources / I have a ResourceBundle interface as follows describing the 2 CSS resources: public interface ResourceBundle extends ClientBundle { public static final ResourceBundle INSTANCE = GWT.create (ResourceBundle.class); @Source(com/docobo/keswick/keswickweb/public/gxt-all.css) public Css gxtall(); @Source(com/docobo/keswick/keswickweb/public/gxt-gray.css) public Css gxtgray(); .. } Where the return type Css resource is an empty class extending CssResource: public interface Css extends CssResource { } In my onModuleLoad(), I injext the styles as follows: public void onModuleLoad() { StyleInjector.inject(ResourceBundle.INSTANCE.gxtall().getText()); StyleInjector.inject(ResourceBundle.INSTANCE.gxtgray().getText()); .. } The application compiles and loads successfully and the CSS files are copied into war/module-folder/ but none of the syles are used or recognised anywhere in the application !!! --~--~-~--~~~---~--~~ You received 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 use a server class in client code
Thanks to all for your suggestions. As my application needs to be deployed in google app engine, I doubt whether I can move those classes from server to client. I use JDO to persist objects to the GAE data store. The class is a simple class and I have mentioned it below, @PersistenceCapable(identityType = IdentityType.DATASTORE) public class PhotoSetStore { @PrimaryKey @Persistent private String setid; @Persistent private String title; @Persistent private String description; @Persistent private String primaryPhotoURL; public PhotoSetStore(String id, String title, String descString, String photoURL) { setSetID(id); setTitle(title); setDescrption(descString); setPrimaryPhotoURL(photoURL); } } Dave, it looks simple approach to have a (java) project to have common classes defined. I need few clarifications, do you have seperate projects for GWT client code and server code? If not, how did you added the common .jar file to the client code? Also, I didnt quiet get how the common .jar file is different from the class existing in a server package of same GWt project! -Sanjith On Mon, Nov 9, 2009 at 5:10 PM, sathya sathyavik...@gmail.com wrote: Hi, You can serialize classes only defined in client side(not server side).Class you defined on server side should be moved to client side to serialize. On Nov 9, 4:01 pm, DaveS dave.sell...@gmail.com wrote: That's how we did it originally, but then we created a separate GWT project (well, actually it's just a JAR project) that defines all our types that are common over the RPC interfaces. We reference that project in both the server and client projects, and the JAR gets pulled into the client side and GWT happily generates JS code from it. We now also use it for some 'shared' client-side classes as well so it's effectively just a library project. DaveS. On Nov 9, 3:35 am, rjcarr rjc...@gmail.com wrote: Hi Sanjith- I don't completely follow your question but any shared code between the client and the server has to reside in the client package (by default). This is because GWT can only see code in the modules you have defined and the server package isn't a GWT module (again, by default). Hope this helps! On Nov 8, 10:30 am, Sanjith Chungath csanj...@gmail.com wrote: Greetings to all, I have defined a class in the server and want to get a list of objects (of that class) as return parameter of an async call. But while compile I got following error No source code is available for type com.abc.pqr.data.XXX; did you forget to inherit a required module?. I know that it is because GWT dont know the java script code for coresponding class. What is the general practice to use a object of class in server side at client code, serialize it? or any other better way. -Sanjith.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 make scroll panel+flex table wrap text correctly?
On Mon, Nov 9, 2009 at 4:24 PM, chris ceb...@gmail.com wrote: If anyone has any ideas on this, it would be greatly appreciated. On Nov 6, 8:23 am, chris ceb...@gmail.com wrote: I was wondering if anyone knew how to wrap text like several chat applications do. I have a ChatArea private class that I am trying to add to a widget. It works, however if a message to add to the chat text is 1000 characters with no new lines, the ScrollPanel does not wrap the text and adds a very long horizontal scroll. private class ChatPart extends ScrollPanel { final FlexTable flexTable = new FlexTable(); ChatPart() { super(); FlexCellFormatter cellFormatter = flexTable.getFlexCellFormatter(); cellFormatter.setColSpan(0,0,2); flexTable.addStyleName(chat-FlexTable); flexTable.setWidth(100%); this.add(flexTable); this.setWidth(100%); this.setHeight(300); } /** * Add a message */ void addMessage(String user, String message) { int numRows = flexTable.getRowCount(); flexTable.getFlexCellFormatter().setVerticalAlignment(numRows, 0, HasVerticalAlignment.ALIGN_TOP); flexTable.getFlexCellFormatter().setVerticalAlignment(numRows, 1, HasVerticalAlignment.ALIGN_TOP); flexTable.getFlexCellFormatter().setWordWrap(numRows, 1, true); flexTable.setWidget(numRows, 0, ChatApplication.images.greenIcon ().createImage()); flexTable.setWidget(numRows, 1, new HTML(b + user + :/b +message)); HTML class has another constructor: HTML(java.lang.String html, boolean wordWrap) Try with: flexTable.setWidget(numRows, 1, new HTML(b + user + :/b +message, true)); flexTable.getFlexCellFormatter().setRowSpan(0, 1, numRows+1); this.scrollToBottom(); } } -- Cheers, Christian López Espínola penyaskito --~--~-~--~~~---~--~~ You received 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 use a server class in client code
I´m not sure you can solve this particular problem the way DaveS suggested, not without modifying the class anyway. Even if you created a separate .jar and referenced that from your client project, the GWT compiler wouldn´t understand the annotations. My problem was similar to yours, and would be solved by creating a new even simpler class like this: Public class PhotoSetStoreDTO { private String setid; private String title; private String description; private String primaryPhotoURL; public PhotoSetStore(String id, String title, String descString, String photoURL) { setSetID(id); setTitle(title); setDescrption(descString); setPrimaryPhotoURL(photoURL); } } Then use Dozer or a similar mapping framework to do the mapping between server side and client side objects. I haven´t been working with GAE at all to be honest, so there might be a better approach. On 9 Nov, 18:39, Sanjith Chungath csanj...@gmail.com wrote: Thanks to all for your suggestions. As my application needs to be deployed in google app engine, I doubt whether I can move those classes from server to client. I use JDO to persist objects to the GAE data store. The class is a simple class and I have mentioned it below, @PersistenceCapable(identityType = IdentityType.DATASTORE) public class PhotoSetStore { @PrimaryKey @Persistent private String setid; @Persistent private String title; @Persistent private String description; @Persistent private String primaryPhotoURL; public PhotoSetStore(String id, String title, String descString, String photoURL) { setSetID(id); setTitle(title); setDescrption(descString); setPrimaryPhotoURL(photoURL); } } Dave, it looks simple approach to have a (java) project to have common classes defined. I need few clarifications, do you have seperate projects for GWT client code and server code? If not, how did you added the common .jar file to the client code? Also, I didnt quiet get how the common .jar file is different from the class existing in a server package of same GWt project! -Sanjith On Mon, Nov 9, 2009 at 5:10 PM, sathya sathyavik...@gmail.com wrote: Hi, You can serialize classes only defined in client side(not server side).Class you defined on server side should be moved to client side to serialize. On Nov 9, 4:01 pm, DaveS dave.sell...@gmail.com wrote: That's how we did it originally, but then we created a separate GWT project (well, actually it's just a JAR project) that defines all our types that are common over the RPC interfaces. We reference that project in both the server and client projects, and the JAR gets pulled into the client side and GWT happily generates JS code from it. We now also use it for some 'shared' client-side classes as well so it's effectively just a library project. DaveS. On Nov 9, 3:35 am, rjcarr rjc...@gmail.com wrote: Hi Sanjith- I don't completely follow your question but any shared code between the client and the server has to reside in the client package (by default). This is because GWT can only see code in the modules you have defined and the server package isn't a GWT module (again, by default). Hope this helps! On Nov 8, 10:30 am, Sanjith Chungath csanj...@gmail.com wrote: Greetings to all, I have defined a class in the server and want to get a list of objects (of that class) as return parameter of an async call. But while compile I got following error No source code is available for type com.abc.pqr.data.XXX; did you forget to inherit a required module?. I know that it is because GWT dont know the java script code for coresponding class. What is the general practice to use a object of class in server side at client code, serialize it? or any other better way. -Sanjith.- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: PHP + GWT ????
Hi Ben, I've been away for a long weekend and only just got back. Is it working OK? Ian http://examples.roughian.com 2009/11/9 ben fenster fenster@gmail.com thank u very much i managed to use -noserver and it works great how the hell can gwt debug the js code running on another web server ?!??!? On Nov 8, 1:55 pm, ben fenster fenster@gmail.com wrote: pls help i cant use hosted mode even after installing apache setting the directory to my war if i use browser it works fine but not in hosted mode pls help me On Nov 4, 6:16 pm, Ian Bambury ianbamb...@gmail.com wrote: OK. The way I do it is like this: In the program arguments you need -noserver -port 1080 if you don't put the port, it will default to 80 in my launch file for my 1.7 minimum app I have stringAttribute key=org.eclipse.jdt.launching.PROGRAM_ARGUMENTS value=-noserver -port 80 -startupUrl index.html com.roughian.appmin_1_7.Module/ but however you run it, you need those arguments. You also need a local web server. I use Abyss (since Apache seemed like overkill) and set it up so that the document root was pointing to the /war/ directory of my project and the port it was using was 1080, and it was also set up to deal with PHP, of course. As far as I can remember, that's all you have to do. The advantage of setting a port number is that you can then set up *another* project with another port number, and another instance of Abyss which is pointed at the new project's /war/ directory and uses the new port number. What is more, you can run both projects in hosted mode at the same time. In GWT 2.0, you can do exactly the same thing, but if you want to run more than one project in development mode at the same time, you will also need to add -portHosted 9998 (or some other unique hosted mode port number) If that doesn't make sense, or doesn't work, or you need help setting up Abyss (if you decide to use it), let me know. Ian http://examples.roughian.com 2009/11/4 ben fenster fenster@gmail.com it will help me alot if you could alaberate on the subject :) On 4 נובמבר, 16:13, Ian Bambury ianbamb...@gmail.com wrote: Have everything in the same place if you can. Run with the -noserver option and have a local web server point to your war directory If that's too cryptic an answer, just shout and I'll give more detail. Ian http://examples.roughian.com 2009/11/4 ben fenster fenster@gmail.com how can i send a post request to my php page without getting an exception about same orign execution restriction --~--~-~--~~~---~--~~ You received 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-StockWatcher: German translation of parameterized messages appears as English
voilà! Not only did that work it made sense. thank you! Do you know of any other GWT resources that pertain to say Audio and Video streams? regards. On Mon, Nov 9, 2009 at 1:48 AM, Dalla dalla_man...@hotmail.com wrote: You cheated ;-) In the tutorial, you create two separate properties files; StockWatcherConstants_de.properties and StockWatcherMessages_de.properties But you have only created StockWatcherConstants_de.properties, and in there you put both your static and generalized strings. Try creating a StockWatcherMessages_de.properties aswell and put these rows in there: lastUpdate = Letzte Aktualisierung: {0,date,medium} {0,time,medium} invalidSymbol = ''{0}'' ist kein gültiges Aktiensymbol. and remove the same rows from StockWatcherConstants_de.properties On 8 Nov, 03:42, Angel Marquez angel.marq...@gmail.com wrote: I am here in the SW tutorial: http://code.google.com/webtoolkit/tutorials/1.6/i18n.html Completed, I think, the lesson; but, when I check in hosted mode: http://localhost:8080/StockWatcher.html?locale=de The timestamp appears in English... Any ideas? src attached. Thank you in advance. -Angel gwt-SW-src.zip 11KVisaHämta --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
RequestBuilder returning empty argument result?
Hi, This is about GWT 1.7.1 on a RedHat EL 5.4 system. I have been messing with GWT for a while now. I am not an expert and am really still a java newbie. I have the following code snippet in an application I am writing. There is an existing CGI app and I am replacing the GUI with GWT and using the existing CGI scripts for the data operations. I am setting up a RequestBuilder call to retrieve data from a CGI script. That script generates data and sends it as a JSON string back to this routine. The issue is that I am receiving an: empty argument message that is generated by the JSONParser. The message comes through the catch clause that holds the LOG(getInfo:onResponseReceived:e2: line. I *know* the CGI script is doing its thing. I can run it from the command line and visit its URL and I get JSON'd data that looks OK to my eye. The code section looks like: public void getInfo() { RequestBuilder req; LOG(getInfo:a); req = new RequestBuilder(RequestBuilder.GET, URL.encode(baseURL + archive.cgi)); LOG(getInfo:b:+req.getUrl()); try { req.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable e) { Window.alert(getInfo failed: + e.toString()); } public void onResponseReceived(Request request, Response response) { JSONObject Info; try { LOG(getInfo:onResponseReceived:a:); Info = JSONParser.parse(response.getText() ).isObject (); } catch (NullPointerException e) { LOG(getInfo:onResponseReceived:e1: + e.getMessage()); throw new RuntimeException( Failed to send JSON request); } catch(IllegalArgumentException e) { LOG(getInfo:onResponseReceived:e2: + e.getMessage()); throw new RuntimeException( Failed to send JSON request); } catch(Exception e) { LOG(getInfo:onResponseReceived:e3: + e.getMessage()); throw new RuntimeException( Failed to send JSON request); } Here is a sample JSON'd string. {searchTerm:,pending:[h2Calendar for Fall 2009/h2 \n,h3Tuesday, November 10, 2009br/MRI Stuff/h3\nh4Speaker: Andrew a href=\mailto:and...@north.com\;img src=\/images/email.jpg \ alt=\(email)\//a, Radiology and Biomedical Engineering/h4 \nh4Time: 12:00PM/h4\nh4Location: Room 5602/h4\nh4Abstract:/ h4\npTranscatheter and percutaneous liver-directed approaches are widely used for the treatment of ... procedures./p\n,h3Tuesday, November 17, 2009br/Title Forthcoming/h3\nh4Speaker: Chas Conway/h4\nh4Time: 12:00PM/h4\nh4Location: /h4 \nh4Abstract:/h4\npAbstract Forthcoming/p\n,h3Tuesday, November 24, 2009\nbr/No Forum - Thanksgiving Vacation/h3 \n,h3Tuesday, December 1, 2009br/Title Forthcoming/h3 \nh4Speaker: Yi Lu, Professor/h4\nh4Time: 12:00PM/h4 \nh4Location: /h4\nh4Abstract:/h4\npAbstract Forthcoming/p \n,h3Tuesday, December 8, 2009br/Title Forthcoming/h3 \nh4Speaker: /h4\nh4Time: 12:00PM/h4\nh4Location: /h4 \nh4Abstract:/h4\n\n,h32009-12-09br/Fall Semester Ends/h3 \n]} This was produced from a Perl cgi script using CGI.pm and JSON::XS FireFox/FireBug shows the request call and the headers but the result is missing. This code is not really different than other working code and the CGI is not really all that different either. I have tried using a POST method and setting req.setHeader(Content-Type, application/x-www-form- urlencoded); though I am not sending any data to the script. I have tried setting req.sendRequest(null, new RequestCallback() { req.sendRequest(, new RequestCallback() { req.sendRequest(dummy=value, new RequestCallback() { and it is still happening. It must be something very trivial that I am not seeing. Can you help? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Difficulties deploying Gwt to Tomcat
GWT Version : 2.0ms2 Tomcat Version : 6.0.20 Os Version : Mac Os 10.6.1 Eclipse Version : 3.5 64bits Everything is working when using hosted mode. When I try to deploy it with the manager in tomcat. I work, then when I try to start it, I got an error saying that the application failed to start. Anyone can help me ? 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 -~--~~~~--~~--~--~---
Problem with memory of Form Panel
Hi all, I've a sequence of Form Panel in a Window. At the end I close the window but if I click on the shortcuts GWT reopens it and I see the last form panel with field filled.How can i reset it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to insert static HTML content
On Mon, Nov 9, 2009 at 2:46 AM, gwtfanb0y siegfried.b...@googlemail.comwrote: They extend 'com.google.gwt.user.client.ui.Composite'. getDisplay().asWidget()) is a method (in use with the MVP) which returns only the Widget: @Override public Widget asWidget() { return this; } Thanks for the answer. I don't know what getDisplay() does or where it's defined, but I figured I didn't really need it. I think I am now doing more or less the same as you, but my page view objects just return their topmost panel which is set into the app presenter's RootPanel, which in my case also does the EntryPoint. It seems to work great. I suppose there's no time benefit to downloading of the application page views (I think there's some code splitting that may help in the now or in the future with 2.0), but it does snap nicely between views. Thanks again... --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Eclipse New Project Wizard
Eclipse 3.5.1 with Google Plugin 1.1.2 (CAPS is not meant to shout but to point out Q's ;) 1.) File New (g+) Web Application Project enter ProjName and Package Finish 2.) Right click Project in Package Explorer Google Web Toolkit WHY THE OPTION TO CONVERT PROJECT INTO GWT PROJECT ? Isn't it already? 3.) Open project directory, open src directory -- WHERE IS THE PUBLIC DIRECTORY REFERRED TO IN TUTORIAL DOCS I only have a root package and client and server subpackages. Where would I put say images I want on the pages??? WHAT IS THE META-INF DIRECTORY UNDER SRC? WHAT IS LOG4J.PROPERTIES? 4.) App Engine SDK and GWT SDK and JRE System Library are compile time resources right? 5.) war directory contains css and html fine (though tut docs suggest css should be in a public folder) but what is web-inf directory with lib subdirectory (I guess files copied to web server as resources???) --~--~-~--~~~---~--~~ You received 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: Getting Started
Noob-ness showing through but I'm not sure what/where you mean the one class to rule them all model nor the RPC issue? Even reviewing Eric's post rather than mine, I still am lost -- suggestions/ clarification? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
JGuard Authentication in GWT Application
Hi, Whether any one has done JGuard based authentication with GWT Application. Any pointers to the same are welcome. Warm Regards, Allahbaksh --~--~-~--~~~---~--~~ You received 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: what should I do with
On Nov 8, 9:23 am, Thomas Broyer t.bro...@gmail.com wrote: On 7 nov, 05:57, ftang frankt...@gmail.com wrote: I want to make the GWT compiled js as one single js so I can delay loading after the page load GWT's *.nocache.js (with whichever built-inlinker) delays loading of the *.cache.html after DOMContentLoaded (or equivalent when DOMContentLoaded isn't supported); it however loads JS dependencies synchronously using document.write(). Is there a way I can make it compile into something depend on nothing ? e.g. load nothing more? ...but if you place your script src=myapp/myapp.nocache.js/ script at the very end of your page, it'll all load after everything else in the page. but that is not what I want. I don't want loading after page load, I want loading on demand (or not loading if no demand) So the question is: why do you want to delay the load of the script after window.onload? because most of the users won't need those feature so I don't want to blow the loading unless user click on a ui to clearly indicate he/she need it. Looks like I should use ssolinker, so I add the following line to add-linkername=sso / SSOlinkerwon't help you, as it also uses document.write() to load JS dependencies, just like any other built-in linkers. What you want (which isn't necessarily what you need ;-) ) doesn't come built-in in GWT, you'd have to make your ownlinker. I assume the permutation mean the generated js for one kind of browser. You're right; except that there will also be additional permutations for each language when you use I18N, and other libraries might add even more of them (gwt-log or gwt-incubator's logging can add up to 5 *times* more permutations, one for each log level threshold) How can I set the flag in GWT configuration to ask it to only have only one distinct permutation so thislinkerwill work? There's no such flag. --~--~-~--~~~---~--~~ You received 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 capture function keys ?
I can't find function keys (F1 - F12) in KeyCodes.* Instead of: NativePreviewHandler handler = new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { if (event.getTypeInt() == Event.KEY_DOWN) { } } }; Event.addNativePreviewHandler(handler); I would like to say: if (event.getTypeInt() == Event.F12) { } Am I missing something obvious, or is this not 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 -~--~~~~--~~--~--~---
Re: How to capture function keys ?
F1..F12 will probably return values of 112..123. But overall, JavaScript key events are...interesting. Read this warning as here there be dragons: http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/event/dom/client/KeyEvent.html Base class for Key events. The native keyboard events are somewhat a mess (http://www.quirksmode.org/js/keys.html), we do some trivial normalization here, but do not attempt any complex patching, so user be warned. PPK is a good starting point: http://www.quirksmode.org/js/keys.html And this article+test script are also excellent: http://unixpapa.com/js/key.html http://unixpapa.com/js/testkey.html On Nov 9, 9:32 pm, hjo1620 hjo1...@gmail.com wrote: I can't find function keys (F1 - F12) in KeyCodes.* Instead of: NativePreviewHandler handler = new NativePreviewHandler() { @Override public void onPreviewNativeEvent(NativePreviewEvent event) { if (event.getTypeInt() == Event.KEY_DOWN) { } } }; Event.addNativePreviewHandler(handler); I would like to say: if (event.getTypeInt() == Event.F12) { } Am I missing something obvious, or is this not 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 -~--~~~~--~~--~--~---
Refreshing a history item/Redo a search
Hi, I'm building an web app which does some searching. When ever I do a search on something I make a a new History Item by calling History.newItem(searchTerm). The History callback then does the searching. However if after the search the user clicks again on search nothing happens because the History.addValueChangeHandler does not get called because the value does not get changed, but I would prefer that the search happens again because if nothing happens the user will be confused Jaap --~--~-~--~~~---~--~~ You received 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.0 trunk and Eclipse
Yes misterln, I saw your post. Thanks all for your answers Matteo On Nov 9, 4:07 pm, misterln2 mister...@googlemail.com wrote: this is the same problem i reported in the google plugin for eclipse thread. the plugin automatically appends the -style parameter which is no longer supported by DevMode. my solution was to revert: trunk\dev\core\src\com\google\gwt\dev\DevMode.java trunk\dev\core\src\com\google\gwt\dev\DevModeBase.java to earlier versions (from nov 5th) --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
collaped Panel
urgent help.. does anybody have build a collapsed panel in GWT pure GWT i need to build it as the Horizontal splitter, but i do not need it to be dragged, i need it only as a small button when click on it it will be opened and if click on it again it will be closed.. thanks -- ~~~With Regards~~~ Muhannad Dar-Nasser ~~Computer Systems Engineering~~ --~--~-~--~~~---~--~~ You received 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-contrib] [google-web-toolkit] r6757 committed - Edited wiki page through web user interface.
Revision: 6757 Author: b...@google.com Date: Mon Nov 9 03:00:34 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=6757 Modified: /wiki/StyleInjector.wiki === --- /wiki/StyleInjector.wikiThu May 21 06:55:33 2009 +++ /wiki/StyleInjector.wikiMon Nov 9 03:00:34 2009 @@ -32,20 +32,22 @@ In your `onModuleLoad`: {{{ +// Preferred +Resources.INSTANCE.css().ensureInjected(); + +// Older style StyleInjector.injectStylesheet(Resources.INSTANCE.css().getText()); }}} You now have your stylesheet applied to the document while taking advantage of strongly-named or inlined resource URLs. Because the standard I18N-style of resource naming is applied to the `ImageResource` instance, it is possible to provide localized CSS background images without the need for multiple, per-locale stylesheets. It is now possible to have `myBackground_fr.png` and `myBackground_en.png` substituted based on the `locale` deferred binding property. -It is possible to update the contents of a previously-injected stylesheet using the `setContents()` method: -{{{ -StyleElement elt = StyleInjector.injectStylesheet(CSS contents); -StyleInjector.setContents(elt, New CSS contents); -}}} - -= Caveats = - -Certain browsers have an upper bound on the total number of stylesheets that can be injected. In this case, StyleInjector will append to previously-created stylesheets when `injectStylesheet()` is called. If the developer wishes to maintain relative ordering of CSS content, the `injectStylesheetAtEnd()` and `injectStylesheetAtStart()` methods should be used instead of `injectStylesheet()`. - -In general, it is more efficient to concatenate the output of multiple CssResource instances before injecting the CSS to reduce the number of times the CSS is re-parsed by the browser. += Optimization = + +DOM manipulation, especially manipulating `style` elements, has a measurable cost. In the interest of improving runtime performance, StyleInjector does not manipulate the DOM immediately. Each call to `CssResource.ensureInjected()` or `StyleInjector.inject()` will append the contents to be injected into a buffer and use `Scheduler.scheduleFinally()` to perform the DOM manipulation immediately before control returns to the browser's event loop. This optimization makes the inject-in-static-initializer pattern operate without excessive runtime cost. + +If it is necessary to have StyleInjector mutate the DOM immediately, there are overloads of the `inject()` method which accept a boolean parameter indicating that the DOM should be updated immediately. + += Caveats = + +Certain browsers have an upper bound on the total number of stylesheets that can be injected. In this case, StyleInjector will append to previously-created stylesheets when `injectStylesheet()` is called. If the developer wishes to maintain relative ordering of CSS content, the `injectAtEnd()` and `injectAtStart()` methods should be used instead of `inject()`. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invoking -runStyle RemoteWeb tests - help needed!
I found a bug related to opening Safari on Mac OS X in BrowserManagerServer - it opens the URL prefixed with the current path of my shell. Anyway, found a way to fix that (see patch at Issue #4209). Q: Is the Selenium route 'just another way' to run the tests on a browser? I found some comments at this thread http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/15d9dbe395026532/f70b8122faa03c58?lnk=gst Longer term, I think we need to do away with RemoteBrowserManager and replace it with Selenium. Current versions of Selenium-RC can launch Chrome and IE, so it seems better to use something that is actually supported and avoids the known problems with RemoteBrowserManager. Thanks, Bart Guijt E: bgu...@gmail.com T: +31 6 30408987 On 7 nov 2009, at 7 nov, 03:03, John Tamplin wrote: You might also consider using -runStyle Selenium:connect-string instead -- that way you can run a Selenium-RC server with the browser you want rather than BrowserManagerServer. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: Fixing FocusImpl
On Nov 4, 7:28 pm, Joel Webber j...@google.com wrote: All, The code in FocusImplOld has been a great source of consternation for some time now. It's probably never going to be possible to fix every bug that crops up as a result of the ugly hidden input it creates, and I'm starting to believe it causes more problems than it solves. What problems does it solve? Making an arbitrary element (usually a div) focusable on the old mozilla browser (used solely by Linux hosted mode, which is now gone) and on Safari = 3. For some reason, WebKit took a surprisingly-long time to make divs focusable, and Safari 3 shipped with such a WebKit. What I'd like to propose is that we drop support for focusable divs on Safari 3 (note that this would not affect Safari 4, or any version of Firefox, IE or Chrome). The net effect would be that widgets which use FocusImpl (e.g., Tree) would silently fail to focus on Safari 3 (also note that this would not affect anything extending FocusWidget, which is the superclass for most naturally-focusable widgets). The following are GWT issues likely related to this: - 1313, 1471, 1790, 2072, 2590, 3252, 3355, 3363 Thoughts? I think it would be a net win, would simplify the code base, and would affect an infinitesimally small (I hope) set of users. Oh, yes please, remove FocusImplSafari! (I've just added a rule to get rid of it in a module, to replace FocusImpl with FocusImpl when user.agent=safari (sic!)) and at the same time, if you could remove everything *MozillaOld and the user.agent=gecko (so I could remove the set-property name=user.agent value=ie6,ie8,safari,gecko1_8,opera / from my modules ;-) ) --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: Fixing FocusImpl
Safari2 is so broken anyway, it's just not worth it. :) On Mon, Nov 9, 2009 at 3:24 AM, Thomas Broyer t.bro...@gmail.com wrote: On Nov 4, 7:28 pm, Joel Webber j...@google.com wrote: All, The code in FocusImplOld has been a great source of consternation for some time now. It's probably never going to be possible to fix every bug that crops up as a result of the ugly hidden input it creates, and I'm starting to believe it causes more problems than it solves. What problems does it solve? Making an arbitrary element (usually a div) focusable on the old mozilla browser (used solely by Linux hosted mode, which is now gone) and on Safari = 3. For some reason, WebKit took a surprisingly-long time to make divs focusable, and Safari 3 shipped with such a WebKit. What I'd like to propose is that we drop support for focusable divs on Safari 3 (note that this would not affect Safari 4, or any version of Firefox, IE or Chrome). The net effect would be that widgets which use FocusImpl (e.g., Tree) would silently fail to focus on Safari 3 (also note that this would not affect anything extending FocusWidget, which is the superclass for most naturally-focusable widgets). The following are GWT issues likely related to this: - 1313, 1471, 1790, 2072, 2590, 3252, 3355, 3363 Thoughts? I think it would be a net win, would simplify the code base, and would affect an infinitesimally small (I hope) set of users. Oh, yes please, remove FocusImplSafari! (I've just added a rule to get rid of it in a module, to replace FocusImpl with FocusImpl when user.agent=safari (sic!)) and at the same time, if you could remove everything *MozillaOld and the user.agent=gecko (so I could remove the set-property name=user.agent value=ie6,ie8,safari,gecko1_8,opera / from my modules ;-) ) --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Trace that auto detects the calling class/method.
Because I also want to include the linenumbers. I hope you are not proposing that I type these in as parameters as well ? ;-) David On Nov 6, 11:22 am, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Why not just include the class.method name at the start of each and every message String sent to your logging method...Its a pain but it works. On Fri, Nov 6, 2009 at 7:06 PM, stuckagain david.no...@gmail.com wrote: Hi, Would it be possible to implement a Trace mechanism that (when enabled) would be able to autodetermine from where it is called (classname.method). In plain java I have such a thing implemented in my tracing package and it really helps in keeping trace statements really simple. In the GWT client I'm using the incubator log API (I also tried out gwt-log from Fred), but none of the log/trace packages that exist today are able to detect from where they are called to give a better output. It looks to me that I will actually need compiler support to be able to implement such a thing. I read in this newsgroup that there is work going on to make stacktraces available in the browser. Could that mechanism be reused to implement what I need ? (In plain Java I get the stacktrace and find the stack element just before the trace statement). David -- mP- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6759 committed - Fixes two bugs in SOYC dashboard:...
Revision: 6759 Author: kpro...@google.com Date: Mon Nov 9 06:20:12 2009 Log: Fixes two bugs in SOYC dashboard: 1. Initial download size and total download size were flipped 2. When there was one single split point, it wasn't displayed. Patch by: Sami Jaber (sami.ja...@gmail.com) Review by: kprobst http://code.google.com/p/google-web-toolkit/source/detail?r=6759 Modified: /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java === --- /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java Tue Nov 3 07:48:32 2009 +++ /trunk/dev/core/src/com/google/gwt/soyc/MakeTopLevelHtmlForPerm.java Mon Nov 9 06:20:12 2009 @@ -445,7 +445,7 @@ outFile.println(dl); outFile.println(dtFull code size/dt); outFile.println(dd class=\value\ -+ globalInformation.getInitialCodeBreakdown().sizeAllCode ++ globalInformation.getTotalCodeBreakdown().sizeAllCode + Bytes/dd); outFile.println(dd class=\report\a href=\total- + permutationId + -overallBreakdown.html\Report/a/dd); @@ -455,7 +455,7 @@ outFile.println(dtInitial download size/dt); // TODO(kprobst) -- add percentage here: (48%)/dd); outFile.println(dd class=\value\ -+ globalInformation.getTotalCodeBreakdown().sizeAllCode + Bytes/dd); ++ globalInformation.getInitialCodeBreakdown().sizeAllCode + Bytes/dd); outFile.println(dd class=\report\a href=\initial- + permutationId + -overallBreakdown.html\Report/a/dd); outFile.println(/dl); @@ -486,7 +486,7 @@ outFile.println(/thead); outFile.println(tbody); -if (globalInformation.getSplitPointToLocation().size() 1) { +if (globalInformation.getSplitPointToLocation().size() = 1) { int numSplitPoints = globalInformation.getSplitPointToLocation().size(); float maxSize = globalInformation.getTotalCodeBreakdown().sizeAllCode; --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Squelch ie6 popup iframe hack on ie7
LGTM. Thanks. http://gwt-code-reviews.appspot.com/97807/diff/3/1002 File user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java (right): http://gwt-code-reviews.appspot.com/97807/diff/3/1002#newcode71 Line 71: private native void do_onHide(Element popup) /*-{ I know these are private, but do_onHide()? Can we just make them doOnHide()? http://gwt-code-reviews.appspot.com/97807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: Fixing FocusImpl
On Nov 9, 12:30 pm, Ray Cromwell cromwell...@gmail.com wrote: Safari2 is so broken anyway, it's just not worth it. :) The issue actually here is with Safari 3 (history, xmlhttprequest being limited to GET and POST, and probably a few other small things were Safari 2 only, but focus is different); only Safari 4 makes any element with a tabIndex attribute focusable (and I'm not even sure 4.0.0 did it, I read somewhere –quirksmode.org?– tabIndex started to work from 4.0.3 only) (I don't really care for Safari actually, as I'm not developping public-facing apps, but only massively Windows-based intranet webapps; I only care for Chrome which is my main browser // and the WebKit version bundled in Adobe AIR is recent enough to not need the safari 3 trick for focus) --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
Sorry to jump in without having been invited but, given http://code.google.com/p/google-web-toolkit/issues/detail?id=805 (among others), shouldn't the iframe shim be extended to all browsers instead? (Closure-library seems to be doing just this; or actually, it moves the responsibility to the developer on a case-by-case basis: http://closure-library.googlecode.com/svn/trunk/closure/goog/docs/class_goog_ui_Dialog.html ) http://gwt-code-reviews.appspot.com/97807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
On 2009/11/09 14:34:54, t.broyer wrote: Sorry to jump in without having been invited but, given http://code.google.com/p/google-web-toolkit/issues/detail?id=805 (among others), shouldn't the iframe shim be extended to all browsers instead? (Closure-library seems to be doing just this; or actually, it moves the responsibility to the developer on a case-by-case basis: http://closure-library.googlecode.com/svn/trunk/closure/goog/docs/class_goog_ui_Dialog.html ) [comments always welcome!] Issue 805 seems to be primarily about Flash. I haven't had time to look into this, but I thought you could add a parameter to the Flash object to fix this (one commenter suggests wmode='transparent', which seems to ring a bell. If this proves insufficient, I would be happy to revisit the problem. http://gwt-code-reviews.appspot.com/97807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Comment on StyleInjector in google-web-toolkit
Comment by natros: I was about to ask the same thing. For more information: http://code.google.com/p/google-web-toolkit/wiki/StyleInjector --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6761 committed - Edited wiki page through web user interface.
Revision: 6761 Author: b...@google.com Date: Mon Nov 9 07:00:31 2009 Log: Edited wiki page through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=6761 Modified: /wiki/CssResource.wiki === --- /wiki/CssResource.wiki Wed Oct 28 09:08:06 2009 +++ /wiki/CssResource.wiki Mon Nov 9 07:00:31 2009 @@ -41,8 +41,9 @@ 1 Declare a method that returns CssResource or a subtype in an ClientBundle 1 When the bundle type is generated with `GWT.create()` a Java expression that evaluates to the contents of the stylesheets will be created * Except in the simplest case where the Java expression is a string literal, it is generally not the case that a CSS file could be generated into the module output - 1 At runtime, call `CssResource.getText()` to retrieve the contents of the stylesheet -* This will typically be combined with StyleInjector + 1 At runtime, call `CssResource.ensureInjected()` to inject the contents of the stylesheet +* This method is safe to call multiple times, as subsequent invocations will be a no-op +* The recommended pattern is to call `ensureInjected()` in the static initializer of your various widget types =Features= --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
On 2009/11/09 14:49:12, jgw wrote: On 2009/11/09 14:34:54, t.broyer wrote: Sorry to jump in without having been invited but, given http://code.google.com/p/google-web-toolkit/issues/detail?id=805 (among others), shouldn't the iframe shim be extended to all browsers instead? (Closure-library seems to be doing just this; or actually, it moves the responsibility to the developer on a case-by-case basis: http://closure-library.googlecode.com/svn/trunk/closure/goog/docs/class_goog_ui_Dialog.html ) [comments always welcome!] Issue 805 seems to be primarily about Flash. I haven't had time to look into this, but I thought you could add a parameter to the Flash object to fix this (one commenter suggests wmode='transparent', which seems to ring a bell. If this proves insufficient, I would be happy to revisit the problem. There's also the issue with PDFs and applets: http://code.google.com/p/google-web-toolkit/issues/detail?id=3268 http://code.google.com/p/google-web-toolkit/issues/detail?id=673 http://code.google.com/p/google-web-toolkit/issues/detail?id=1662 (the last two have been merged with issue 805, and Ray commented on 673 Marking as a dup of 805, which proposes a solution, the solution being to use the iframe shim in all browsers) Oh, and as a side-note, have a look at my recent comment on issue 2907 if you have time, about the iframe shim and the new popup glass pane: http://code.google.com/p/google-web-toolkit/issues/detail?id=2907#c4 (the shim should cover the whole window, just like the glass pane, or it won't fully do its work) http://gwt-code-reviews.appspot.com/97807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Reusing CssResource's @def (within e.g. UiBinder)
Hi all, We're starting using UiBinder quite intensively and one thing we haven't been able to do is to declare some constants in a CssResource and reuse them in our ui.xml (I believe this is unrelated to UiBinder actually, as I don't know how it could be made to work with plain old CssResources only). Our use case is I believe very common: declare constants for common colors to be shared thoughout the app (namely some kind of orange and grays for use with borders, fore color and back color). I suspect we might have the need for font sizes too. As a last resort, I tried the following (which forces me to have the common CSS file in the same package as my ui.xml file): !-- mystyle.css has @def yellow red -- !-- and MyStyle has a String yellow() method -- ui:style field='common' src='mystyle.css' type='com.my.app.client.MyStyle' / ui:style @def yellow value('common.yellow'); .foo { color: yellow; } /ui:style but it fails with: Scanning for additional dependencies: ...\gen\com\my\app\client \Test_MyBinderImpl.java Computing all possible rebind results for 'com.my.app.client.Test_MyBinderImpl_GenBundle' Rebinding com.my.app.client.Test_MyBinderImpl_GenBundle Invoking generate-with class='com.google.gwt.resources.rebind.context.InlineClientBundleGenerator'/ Creating assignment for style() Performing substitution in node color : . ; [ERROR] Could not find no-arg method named yellow in type com.my.app.client.Test_MyBinderImpl_GenCss_common Is there a way to reuse @def-s in other CssResource-s? (in other ClientBundle-s!) and which one? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
I'm not a code reviewer... but just a useful comment: You might want to move the isIE6 method somewhere else so that you could avoid the memory leak on ie7/ie8 when using ImageBundles as well. For ie7 and ie8 this workaround to get transparent PNGs working is no longer needed and it's leaking a lot of memory. Unless you want to wait for soft permutations (first time that I hear that mentioned). See the following: http://code.google.com/p/google-web-toolkit/issues/detail?id=3573 http://code.google.com/p/google-web-toolkit/issues/detail?id=3588 David On Nov 9, 3:22 pm, j...@google.com wrote: LGTM. Thanks. http://gwt-code-reviews.appspot.com/97807/diff/3/1002 File user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java (right): http://gwt-code-reviews.appspot.com/97807/diff/3/1002#newcode71 Line 71: private native void do_onHide(Element popup) /*-{ I know these are private, but do_onHide()? Can we just make them doOnHide()? http://gwt-code-reviews.appspot.com/97807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
Agreed -- we're going to do precisely that. I think we'll probably end up sticking isIE6() in the image bundle code for the moment, as Bob has a better general solution in the pipeline (which he calls soft permutations). But yes, the image bundle insanity on IE6 is the more important of the two that we wanted to fix. On Mon, Nov 9, 2009 at 11:01 AM, stuckagain david.no...@gmail.com wrote: I'm not a code reviewer... but just a useful comment: You might want to move the isIE6 method somewhere else so that you could avoid the memory leak on ie7/ie8 when using ImageBundles as well. For ie7 and ie8 this workaround to get transparent PNGs working is no longer needed and it's leaking a lot of memory. Unless you want to wait for soft permutations (first time that I hear that mentioned). See the following: http://code.google.com/p/google-web-toolkit/issues/detail?id=3573 http://code.google.com/p/google-web-toolkit/issues/detail?id=3588 David On Nov 9, 3:22 pm, j...@google.com wrote: LGTM. Thanks. http://gwt-code-reviews.appspot.com/97807/diff/3/1002 File user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java (right): http://gwt-code-reviews.appspot.com/97807/diff/3/1002#newcode71 Line 71: private native void do_onHide(Element popup) /*-{ I know these are private, but do_onHide()? Can we just make them doOnHide()? http://gwt-code-reviews.appspot.com/97807 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6764 committed - Updated to reflect the merge of tr...@r6762 into this branch.
Revision: 6764 Author: rda...@google.com Date: Mon Nov 9 08:08:33 2009 Log: Updated to reflect the merge of tr...@r6762 into this branch. http://code.google.com/p/google-web-toolkit/source/detail?r=6764 Modified: /releases/2.0/branch-info.txt === --- /releases/2.0/branch-info.txt Fri Nov 6 17:41:50 2009 +++ /releases/2.0/branch-info.txt Mon Nov 9 08:08:33 2009 @@ -454,3 +454,8 @@ tr...@6753 was merged into this branch finish isolating concrete AttributeParser implementations from the rest of the code base svn merge --ignore-ancestry -c 6753 https://google-web-toolkit.googlecode.com/svn/trunk . + +tr...@6762 was merged into this branch + Changes to the Message wire format + svn merge --ignore-ancestry -c 6762 https://google-web-toolkit.googlecode.com/svn/trunk . + --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Invoking -runStyle RemoteWeb tests - help needed!
Created Wiki Page: http://code.google.com/p/google-web-toolkit/wiki/RemoteTesting Thanks, John LaBanca jlaba...@google.com On Mon, Nov 9, 2009 at 6:21 AM, Bart Guijt bgu...@gmail.com wrote: I found a bug related to opening Safari on Mac OS X in BrowserManagerServer - it opens the URL prefixed with the current path of my shell. Anyway, found a way to fix that (see patch at Issue #4209). Q: Is the Selenium route 'just another way' to run the tests on a browser? I found some comments at this thread http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/15d9dbe395026532/f70b8122faa03c58?lnk=gst Longer term, I think we need to do away with RemoteBrowserManager and replace it with Selenium. Current versions of Selenium-RC can launch Chrome and IE, so it seems better to use something that is actually supported and avoids the known problems with RemoteBrowserManager. Thanks, Bart Guijt E: bgu...@gmail.com T: +31 6 30408987 On 7 nov 2009, at 7 nov, 03:03, John Tamplin wrote: You might also consider using -runStyle Selenium:connect-string instead -- that way you can run a Selenium-RC server with the browser you want rather than BrowserManagerServer. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Code Review Request: Make Server and Main TreeLoggers log to Console when using RemoteUI
Reviewers: mmendez, jat, Description: When using the -remoteUI switch, the Main and Server loggers now log their output using a Console-Based TreeLogger (instead of sending these messages over the wire). Also made a change to OOPHMSessionHandler to allow the module logger to be used to log any errors during the module load process (since the module logger is already available at this point). Please review this at http://gwt-code-reviews.appspot.com/98801 Affected files: M dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java M dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java M dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Code Review Request: Make Server and Main TreeLoggers log to Console when using RemoteUI
Reviewers: mmendez, jat, Description: When using the -remoteUI switch, the Main and Server loggers now log their output using a Console-Based TreeLogger (instead of sending these messages over the wire). Also made a change to OOPHMSessionHandler to allow the module logger to be used to log any errors during the module load process (since the module logger is already available at this point). Please review this at http://gwt-code-reviews.appspot.com/98801 Affected files: M dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java M dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java M dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request: Make Server and Main TreeLoggers log to Console when using RemoteUI
LGTM http://gwt-code-reviews.appspot.com/98801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request: Make Server and Main TreeLoggers log to Console when using RemoteUI
LGTM - Just double check what state the system is in if you throw the IllegalStateExceptions. http://gwt-code-reviews.appspot.com/98801/diff/1/3 File dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java (right): http://gwt-code-reviews.appspot.com/98801/diff/1/3#newcode119 Line 119: throw new IllegalStateException( Sure, that you want to throw IllegalStateException? What happens? http://gwt-code-reviews.appspot.com/98801/diff/1/3#newcode125 Line 125: throw new IllegalStateException( Same comment as line 119. http://gwt-code-reviews.appspot.com/98801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6766 committed - Fix bad prefix in Message containing widgets with text bodies sectio...
Revision: 6766 Author: rj...@google.com Date: Mon Nov 9 09:16:02 2009 Log: Fix bad prefix in Message containing widgets with text bodies section http://code.google.com/p/google-web-toolkit/source/detail?r=6766 Modified: /wiki/UiBinderI18n.wiki === --- /wiki/UiBinderI18n.wiki Thu Nov 5 20:47:50 2009 +++ /wiki/UiBinderI18n.wiki Mon Nov 9 09:16:02 2009 @@ -222,8 +222,8 @@ {{{ ui:HTMLPanel To do the thing, - ui:HyperLink token=/doThe#thingclick - here/ui:HyperLink and massage vigorously. + g:HyperLink token=/doThe#thingclick + here/g:HyperLink and massage vigorously. /ui:HTMLPanel }}} @@ -231,8 +231,8 @@ {{{ ui:HTMLPanel ui:msgTo do the thing, - ui:HyperLink token=/doThe#thingclick - here/ui:HyperLink and massage vigorously. + g:HyperLink token=/doThe#thingclick + here/g:HyperLink and massage vigorously. /ui:msg /ui:HTMLPanel }}} --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Code Review Request: Make Server and Main TreeLoggers log to Console when using RemoteUI
Thanks for the review! http://gwt-code-reviews.appspot.com/98801/diff/1/3 File dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java (right): http://gwt-code-reviews.appspot.com/98801/diff/1/3#newcode119 Line 119: throw new IllegalStateException( On 2009/11/09 17:07:10, mmendez wrote: Sure, that you want to throw IllegalStateException? What happens? You're right - this is not the best place to throw this exception. Though the only caller is DevModeServiceRequestProcessor.processRestartServer, someone else would call this method and get unexpected results. Changed this method to return a boolean. DevModServiceRequestProcess.processRestartServer now throws an IllegalStateException, which ends up getting sent back over the wire as a failure message. http://gwt-code-reviews.appspot.com/98801/diff/1/3#newcode125 Line 125: throw new IllegalStateException( On 2009/11/09 17:07:10, mmendez wrote: Same comment as line 119. Done. http://gwt-code-reviews.appspot.com/98801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6767 committed - When using the -remoteUI switch, the Main and Server loggers now log t...
Revision: 6767 Author: rda...@google.com Date: Mon Nov 9 09:33:19 2009 Log: When using the -remoteUI switch, the Main and Server loggers now log their output using a Console-Based TreeLogger (instead of sending these messages over the wire). Also made a change to OOPHMSessionHandler to allow the module logger to be used to log any errors during the module load process (since the module logger is already available at this point). Review by: mmendez http://code.google.com/p/google-web-toolkit/source/detail?r=6767 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java === --- /trunk/dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java Fri Oct 16 20:54:44 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java Mon Nov 9 09:33:19 2009 @@ -169,7 +169,7 @@ ModuleSpace moduleSpace = new ModuleSpaceOOPHM(msh, moduleName, serverChannel); moduleMap.put(serverChannel, moduleSpace); - moduleSpace.onLoad(loadModuleLogger); + moduleSpace.onLoad(logger); } catch (Throwable e) { // We do catch Throwable intentionally because there are a ton of things // that can go wrong trying to load a module, including Error-derived === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java Mon Oct 26 14:02:26 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java Mon Nov 9 09:33:19 2009 @@ -89,7 +89,10 @@ } private Response processRestartServer() { -remoteUI.restartWebServer(); +if (!remoteUI.restartWebServer()) { + throw new IllegalStateException( + Unable to restart the web server. This server may not have the capability to be restarted.); +} DevModeResponse.Builder devModeResponseBuilder = DevModeResponse.newBuilder(); devModeResponseBuilder.setResponseType(DevModeResponse.ResponseType.RESTART_WEB_SERVER); === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java Fri Oct 30 11:02:07 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java Mon Nov 9 09:33:19 2009 @@ -39,8 +39,6 @@ private final String clientId; private final DevModeServiceRequestProcessor devModeRequestProcessor; private final MessageTransport transport; - private ViewerServiceTreeLogger webServerLogger = null; - private ViewerServiceTreeLogger mainLogger = null; private ViewerServiceClient viewerServiceClient = null; private final int webServerPort; private final int browserChannelPort; @@ -62,32 +60,10 @@ throw new RuntimeException(e); } } - - @Override - public TreeLogger getTopLogger() { -if (mainLogger != null) { - return mainLogger; -} - -mainLogger = new ViewerServiceTreeLogger(viewerServiceClient); -int topLoggerHandle = viewerServiceClient.addMainLog(); -mainLogger.setLogHandle(topLoggerHandle); -mainLogger.setMaxDetail(getLogLevel()); -return mainLogger; - } @Override public TreeLogger getWebServerLogger(String serverName, byte[] serverIcon) { -if (webServerLogger != null) { - return webServerLogger; -} - -webServerLogger = new ViewerServiceTreeLogger(viewerServiceClient); -int webServerLoggerHandle = viewerServiceClient.addServerLog(serverName, -serverIcon); -webServerLogger.setLogHandle(webServerLoggerHandle); -webServerLogger.setMaxDetail(getLogLevel()); -return webServerLogger; +return getConsoleLogger(); } @Override @@ -138,10 +114,18 @@ return handle; } - public void restartWebServer() { -if (supportsRestartWebServer() webServerLogger != null) { - ((RestartServerCallback) getCallback(RestartServerEvent.getType())).onRestartServer(webServerLogger); -} + public boolean restartWebServer() { +if (!supportsRestartWebServer()) { + return false; +} + +TreeLogger webServerLogger = getConsoleLogger(); +if (webServerLogger == null) { + return false; +} + +((RestartServerCallback) getCallback(RestartServerEvent.getType())).onRestartServer(webServerLogger); +return true; } public boolean supportsRestartWebServer() { === --- /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java Mon Nov 9 07:26:40 2009 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java Mon Nov 9 09:33:19 2009 @@ -121,22 +121,6 @@ FutureResponse responseFuture =
[gwt-contrib] [google-web-toolkit] r6768 committed - Merges tr...@r6767 into releases/2.0. Merge performed with the followi...
Revision: 6768 Author: rda...@google.com Date: Mon Nov 9 09:38:13 2009 Log: Merges tr...@r6767 into releases/2.0. Merge performed with the following command: svn merge --ignore-ancestry -c 6762 https://google-web-toolkit.googlecode.com/svn/trunk . http://code.google.com/p/google-web-toolkit/source/detail?r=6768 Modified: /releases/2.0/dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java === --- /releases/2.0/dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java Fri Oct 16 20:54:44 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java Mon Nov 9 09:38:13 2009 @@ -169,7 +169,7 @@ ModuleSpace moduleSpace = new ModuleSpaceOOPHM(msh, moduleName, serverChannel); moduleMap.put(serverChannel, moduleSpace); - moduleSpace.onLoad(loadModuleLogger); + moduleSpace.onLoad(logger); } catch (Throwable e) { // We do catch Throwable intentionally because there are a ton of things // that can go wrong trying to load a module, including Error-derived === --- /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java Wed Nov 4 06:59:39 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/DevModeServiceRequestProcessor.java Mon Nov 9 09:38:13 2009 @@ -89,7 +89,10 @@ } private Response processRestartServer() { -remoteUI.restartWebServer(); +if (!remoteUI.restartWebServer()) { + throw new IllegalStateException( + Unable to restart the web server. This server may not have the capability to be restarted.); +} DevModeResponse.Builder devModeResponseBuilder = DevModeResponse.newBuilder(); devModeResponseBuilder.setResponseType(DevModeResponse.ResponseType.RESTART_WEB_SERVER); === --- /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java Fri Oct 30 11:06:32 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/RemoteUI.java Mon Nov 9 09:38:13 2009 @@ -39,8 +39,6 @@ private final String clientId; private final DevModeServiceRequestProcessor devModeRequestProcessor; private final MessageTransport transport; - private ViewerServiceTreeLogger webServerLogger = null; - private ViewerServiceTreeLogger mainLogger = null; private ViewerServiceClient viewerServiceClient = null; private final int webServerPort; private final int browserChannelPort; @@ -62,32 +60,10 @@ throw new RuntimeException(e); } } - - @Override - public TreeLogger getTopLogger() { -if (mainLogger != null) { - return mainLogger; -} - -mainLogger = new ViewerServiceTreeLogger(viewerServiceClient); -int topLoggerHandle = viewerServiceClient.addMainLog(); -mainLogger.setLogHandle(topLoggerHandle); -mainLogger.setMaxDetail(getLogLevel()); -return mainLogger; - } @Override public TreeLogger getWebServerLogger(String serverName, byte[] serverIcon) { -if (webServerLogger != null) { - return webServerLogger; -} - -webServerLogger = new ViewerServiceTreeLogger(viewerServiceClient); -int webServerLoggerHandle = viewerServiceClient.addServerLog(serverName, -serverIcon); -webServerLogger.setLogHandle(webServerLoggerHandle); -webServerLogger.setMaxDetail(getLogLevel()); -return webServerLogger; +return getConsoleLogger(); } @Override @@ -138,10 +114,18 @@ return handle; } - public void restartWebServer() { -if (supportsRestartWebServer() webServerLogger != null) { - ((RestartServerCallback) getCallback(RestartServerEvent.getType())).onRestartServer(webServerLogger); -} + public boolean restartWebServer() { +if (!supportsRestartWebServer()) { + return false; +} + +TreeLogger webServerLogger = getConsoleLogger(); +if (webServerLogger == null) { + return false; +} + +((RestartServerCallback) getCallback(RestartServerEvent.getType())).onRestartServer(webServerLogger); +return true; } public boolean supportsRestartWebServer() { === --- /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java Mon Nov 9 08:06:34 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/dev/shell/remoteui/ViewerServiceClient.java Mon Nov 9 09:38:13 2009 @@ -121,22 +121,6 @@ FutureResponse responseFuture = transport.executeRequestAsync(requestMessage); waitForResponse(responseFuture); } - - /** - *
[gwt-contrib] Re: Code Review Request: Make Server and Main TreeLoggers log to Console when using RemoteUI
Committed as tr...@r6767. Cherry-picked into releases/2...@r6768. http://gwt-code-reviews.appspot.com/98801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6769 committed - Update branch-info.txt to reflect merge of tr...@r6767 into releases/2...
Revision: 6769 Author: rda...@google.com Date: Mon Nov 9 09:40:14 2009 Log: Update branch-info.txt to reflect merge of tr...@r6767 into releases/2.0. http://code.google.com/p/google-web-toolkit/source/detail?r=6769 Modified: /releases/2.0/branch-info.txt === --- /releases/2.0/branch-info.txt Mon Nov 9 08:08:33 2009 +++ /releases/2.0/branch-info.txt Mon Nov 9 09:40:14 2009 @@ -459,3 +459,7 @@ Changes to the Message wire format svn merge --ignore-ancestry -c 6762 https://google-web-toolkit.googlecode.com/svn/trunk . +tr...@6767 was merged into this branch + Make Server and Main TreeLoggers log to Console when using RemoteUI + svn merge --ignore-ancestry -c 6767 https://google-web-toolkit.googlecode.com/svn/trunk . + --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Cleaning up mail sample, adding new styles, changing images to use @sprite.
I think that NavBar.java should be introduced rather than making it a static nested classs. Many indentation and style nits, do with them what you will. http://gwt-code-reviews.appspot.com/97805/diff/1/4 File samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/4#newcode13 Line 13: g:DockPanel Why not DockLayoutPanel? Your sample is generating deprecation warnings... http://gwt-code-reviews.appspot.com/97805/diff/1/5 File samples/mail/src/com/google/gwt/sample/mail/client/ContactPopup.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/5#newcode31 Line 31: ui:image field='photo' src='default_photo.jpg'/ Nit: move this above ui:style to be a little less confusing? http://gwt-code-reviews.appspot.com/97805/diff/1/6 File samples/mail/src/com/google/gwt/sample/mail/client/MailList.java (right): http://gwt-code-reviews.appspot.com/97805/diff/1/6#newcode49 Line 49: static class NavBar extends Composite { Why isn't this NavBar.java? http://gwt-code-reviews.appspot.com/97805/diff/1/7 File samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/7#newcode8 Line 8: border-left: 1px solid #999; Nit: should just indent two more spaces inside rules. http://gwt-code-reviews.appspot.com/97805/diff/1/7#newcode41 Line 41: ui:style field='selectionStyle' type='com.google.gwt.sample.mail.client.MailList.SelectionStyle' Nit: to avoid this kind of wrapping I'm in the habit of indenting four more spaces: ui:style field='...' type='...' .selectedRow {... http://gwt-code-reviews.appspot.com/97805/diff/1/8 File samples/mail/src/com/google/gwt/sample/mail/client/NavBar.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/8#newcode13 Line 13: g:Anchor styleName='{style.anchor}' ui:field='newerButton' href='javascript:;'lt; newer/g:Anchor Nit: could wrap at href (indent four more spaces) http://gwt-code-reviews.appspot.com/97805/diff/1/9 File samples/mail/src/com/google/gwt/sample/mail/client/Shortcuts.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/9#newcode14 Line 14: gwt-image: 'gradient'; Nit: inconsistent indentation here and below http://gwt-code-reviews.appspot.com/97805/diff/1/9#newcode66 Line 66: g:header size='3' We're being inconsistent with g:header, I think. In DisclosurePanel it means put HTML here and you use g:customHeader for a widget, but here it means give me a widget. Seems like we need to iron that out for RC. Doesn't gate this review, though. In the meantime, you don't need an HTMLPanel here, a plain old HTML would do. http://gwt-code-reviews.appspot.com/97805/diff/1/10 File samples/mail/src/com/google/gwt/sample/mail/client/TopPanel.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/10#newcode25 Line 25: ui:image field='logo' src='logo.png'/ Nit: another spot where it would be better to declare the image first. http://gwt-code-reviews.appspot.com/97805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Cleaning up mail sample, adding new styles, changing images to use @sprite.
LGTM with the above feedback. http://gwt-code-reviews.appspot.com/97805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Looking for Incubator sponsor for MultiMonthDatePicker
Henry, thanks very much for the offer. However, we're in the process of phasing out Incubator. It's intentions are noble but the mechanism has proven unwieldy. We're instead encouraging people to create independent project sites on Google Code, or offer things as direct contributions to GWT proper. At the moment the team is so heads down trying to land 2.0 that there's little chance of responding to a GWT patch before the holidays, so I'd really encourage setting up a code site for this to get it out there more quickly. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Hello DialogBoxParser
LGTM, with nits. http://gwt-code-reviews.appspot.com/97806/diff/1001/56 File user/src/com/google/gwt/uibinder/rebind/XMLElement.java (right): http://gwt-code-reviews.appspot.com/97806/diff/1001/56#newcode50 Line 50: @SuppressWarnings(deprecation) This is a big class. http://gwt-code-reviews.appspot.com/97806/diff/1001/62 File user/test/com/google/gwt/uibinder/elementparsers/UiJavaResources.java (right): http://gwt-code-reviews.appspot.com/97806/diff/1001/62#newcode30 Line 30: public static final MockJavaResource DIALOG_BOX = new MockJavaResource( These fields should be initialized from a factory method that accepts a class literal. http://gwt-code-reviews.appspot.com/97806/diff/1001/66 File user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml (right): http://gwt-code-reviews.appspot.com/97806/diff/1001/66#newcode261 Line 261: span style=white-space:nowrapThe pig's in a hurry/span Did you mean to make this change? http://gwt-code-reviews.appspot.com/97806 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6770 committed - Cleaning up the mail sample, adding new styles, and moving most images...
Revision: 6770 Author: j...@google.com Date: Mon Nov 9 10:52:41 2009 Log: Cleaning up the mail sample, adding new styles, and moving most images into @sprite CssResource. Review: http://gwt-code-reviews.appspot.com/97805 http://code.google.com/p/google-web-toolkit/source/detail?r=6770 Added: /trunk/samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/NavBar.java /trunk/samples/mail/src/com/google/gwt/sample/mail/client/NavBar.ui.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/contactsgroup.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/drafts.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/gradient_bg.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/gradient_bg_dark.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/gradient_bg_th.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/home.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/inbox.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/mailboxesgroup.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/sent.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/tasksgroup.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/templates.png /trunk/samples/mail/src/com/google/gwt/sample/mail/client/trash.png /trunk/samples/mail/war/gradient_bg_th.png Deleted: /trunk/samples/mail/src/com/google/gwt/sample/mail/client/contactsgroup.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/drafts.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/home.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/inbox.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/mailgroup.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/sent.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/tasksgroup.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/templates.gif /trunk/samples/mail/src/com/google/gwt/sample/mail/client/trash.gif /trunk/samples/mail/war/default_photo.jpg /trunk/samples/mail/war/gradient.gif /trunk/samples/mail/war/leftCorner.gif /trunk/samples/mail/war/logo.png /trunk/samples/mail/war/rightCorner.gif Modified: /trunk/samples/mail/src/com/google/gwt/sample/mail/Mail.gwt.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.java /trunk/samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.ui.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/ContactPopup.ui.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/MailList.java /trunk/samples/mail/src/com/google/gwt/sample/mail/client/Shortcuts.ui.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/TopPanel.ui.xml /trunk/samples/mail/src/com/google/gwt/sample/mail/client/default_photo.jpg /trunk/samples/mail/src/com/google/gwt/sample/mail/client/logo.png /trunk/samples/mail/war/Mail.css === --- /dev/null +++ /trunk/samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml Mon Nov 9 10:52:41 2009 @@ -0,0 +1,67 @@ +ui:UiBinder + xmlns:ui='urn:ui:com.google.gwt.uibinder' + xmlns:g='urn:import:com.google.gwt.user.client.ui' + xmlns:mail='urn:import:com.google.gwt.sample.mail.client' + + ui:image field='gradient' src='gradient_bg_dark.png' repeatStyle='Horizontal'/ + + ui:style + .outer { +border-left: 1px solid #999; +border-bottom: 1px solid #999; +cursor: pointer; +cursor: hand; + } + + .header { +background: #d3d6dd url(gradient_bg_dark.png) repeat-x bottom left; +table-layout: fixed; +width: 100%; +height: 100%; + } + + .header td { +font-weight: bold; +text-shadow: #fff 0 2px 2px; +padding: 2px 0 1px 10px; +border-top: 1px solid #999; +border-bottom: 1px solid #999; + } + + .table { +table-layout: fixed; +width: 100%; + } + + .table td { +border-top: 1px solid #fff; +border-bottom: 1px solid #fff; +padding: 2px 0 2px 10px; + } + /ui:style + + ui:style field='selectionStyle' +type='com.google.gwt.sample.mail.client.MailList.SelectionStyle' + + .selectedRow { +background: #adcce7; + } + + .selectedRow td { +border-top: 1px solid #88a4d6; +border-bottom: 1px solid #7b97d0; + } + /ui:style + + g:DockLayoutPanel styleName='{style.outer}' unit='EM' +g:north size='2' + g:FlexTable ui:field='header' styleName='{style.header}' cellSpacing='0' cellPadding='0'/ +/g:north + +g:center + g:ScrollPanel +g:FlexTable ui:field='table' styleName='{style.table}' cellSpacing='0' cellPadding='0'/ + /g:ScrollPanel +/g:center + /g:DockLayoutPanel +/ui:UiBinder === --- /dev/null +++ /trunk/samples/mail/src/com/google/gwt/sample/mail/client/NavBar.java Mon Nov 9 10:52:41
[gwt-contrib] Re: Cleaning up mail sample, adding new styles, changing images to use @sprite.
Committed to /trunk @r6770. Committed to /releases/2.0 @r6771. http://gwt-code-reviews.appspot.com/97805/diff/1/4 File samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/4#newcode13 Line 13: g:DockPanel On 2009/11/09 17:58:49, Ray Ryan wrote: Why not DockLayoutPanel? Your sample is generating deprecation warnings... There was no particular reason to be using a panel at all. I just changed the whole thing to use HTML. Much simpler. http://gwt-code-reviews.appspot.com/97805/diff/1/5 File samples/mail/src/com/google/gwt/sample/mail/client/ContactPopup.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/5#newcode31 Line 31: ui:image field='photo' src='default_photo.jpg'/ On 2009/11/09 17:58:49, Ray Ryan wrote: Nit: move this above ui:style to be a little less confusing? Done. http://gwt-code-reviews.appspot.com/97805/diff/1/6 File samples/mail/src/com/google/gwt/sample/mail/client/MailList.java (right): http://gwt-code-reviews.appspot.com/97805/diff/1/6#newcode49 Line 49: static class NavBar extends Composite { On 2009/11/09 17:58:49, Ray Ryan wrote: Why isn't this NavBar.java? Because I was being lazy. Converted to top-level. http://gwt-code-reviews.appspot.com/97805/diff/1/7 File samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/7#newcode8 Line 8: border-left: 1px solid #999; On 2009/11/09 17:58:49, Ray Ryan wrote: Nit: should just indent two more spaces inside rules. Actually, a lot of tabs snuck in here somehow. Fixed. http://gwt-code-reviews.appspot.com/97805/diff/1/7#newcode41 Line 41: ui:style field='selectionStyle' type='com.google.gwt.sample.mail.client.MailList.SelectionStyle' On 2009/11/09 17:58:49, Ray Ryan wrote: Nit: to avoid this kind of wrapping I'm in the habit of indenting four more spaces: ui:style field='...' type='...' .selectedRow {... Done. http://gwt-code-reviews.appspot.com/97805/diff/1/8 File samples/mail/src/com/google/gwt/sample/mail/client/NavBar.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/8#newcode13 Line 13: g:Anchor styleName='{style.anchor}' ui:field='newerButton' href='javascript:;'lt; newer/g:Anchor On 2009/11/09 17:58:49, Ray Ryan wrote: Nit: could wrap at href (indent four more spaces) Done. http://gwt-code-reviews.appspot.com/97805/diff/1/9 File samples/mail/src/com/google/gwt/sample/mail/client/Shortcuts.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/9#newcode14 Line 14: gwt-image: 'gradient'; On 2009/11/09 17:58:49, Ray Ryan wrote: Nit: inconsistent indentation here and below Damned tabs again. Fixed. http://gwt-code-reviews.appspot.com/97805/diff/1/10 File samples/mail/src/com/google/gwt/sample/mail/client/TopPanel.ui.xml (right): http://gwt-code-reviews.appspot.com/97805/diff/1/10#newcode25 Line 25: ui:image field='logo' src='logo.png'/ On 2009/11/09 17:58:49, Ray Ryan wrote: Nit: another spot where it would be better to declare the image first. Done. http://gwt-code-reviews.appspot.com/97805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6771 committed - Merging /trunk c6770.
Revision: 6771 Author: j...@google.com Date: Mon Nov 9 11:00:52 2009 Log: Merging /trunk c6770. http://code.google.com/p/google-web-toolkit/source/detail?r=6771 Added: /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/NavBar.java /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/NavBar.ui.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/contactsgroup.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/drafts.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/gradient_bg.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/gradient_bg_dark.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/gradient_bg_th.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/home.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/inbox.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/mailboxesgroup.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/sent.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/tasksgroup.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/templates.png /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/trash.png /releases/2.0/samples/mail/war/gradient_bg_th.png Deleted: /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/contactsgroup.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/drafts.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/home.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/inbox.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/mailgroup.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/sent.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/tasksgroup.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/templates.gif /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/trash.gif /releases/2.0/samples/mail/war/default_photo.jpg /releases/2.0/samples/mail/war/gradient.gif /releases/2.0/samples/mail/war/leftCorner.gif /releases/2.0/samples/mail/war/logo.png /releases/2.0/samples/mail/war/rightCorner.gif Modified: /releases/2.0/branch-info.txt /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/Mail.gwt.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.java /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/AboutDialog.ui.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/ContactPopup.ui.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/MailList.java /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/Shortcuts.ui.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/TopPanel.ui.xml /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/default_photo.jpg /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/logo.png /releases/2.0/samples/mail/war/Mail.css === --- /dev/null +++ /releases/2.0/samples/mail/src/com/google/gwt/sample/mail/client/MailList.ui.xml Mon Nov 9 11:00:52 2009 @@ -0,0 +1,67 @@ +ui:UiBinder + xmlns:ui='urn:ui:com.google.gwt.uibinder' + xmlns:g='urn:import:com.google.gwt.user.client.ui' + xmlns:mail='urn:import:com.google.gwt.sample.mail.client' + + ui:image field='gradient' src='gradient_bg_dark.png' repeatStyle='Horizontal'/ + + ui:style + .outer { +border-left: 1px solid #999; +border-bottom: 1px solid #999; +cursor: pointer; +cursor: hand; + } + + .header { +background: #d3d6dd url(gradient_bg_dark.png) repeat-x bottom left; +table-layout: fixed; +width: 100%; +height: 100%; + } + + .header td { +font-weight: bold; +text-shadow: #fff 0 2px 2px; +padding: 2px 0 1px 10px; +border-top: 1px solid #999; +border-bottom: 1px solid #999; + } + + .table { +table-layout: fixed; +width: 100%; + } + + .table td { +border-top: 1px solid #fff; +border-bottom: 1px solid #fff; +padding: 2px 0 2px 10px; + } + /ui:style + + ui:style field='selectionStyle' +type='com.google.gwt.sample.mail.client.MailList.SelectionStyle' + + .selectedRow { +background: #adcce7; + } + + .selectedRow td { +border-top: 1px solid #88a4d6; +border-bottom: 1px solid #7b97d0; + } + /ui:style + + g:DockLayoutPanel styleName='{style.outer}' unit='EM' +g:north size='2' + g:FlexTable ui:field='header' styleName='{style.header}' cellSpacing='0' cellPadding='0'/ +/g:north + +g:center + g:ScrollPanel +g:FlexTable ui:field='table' styleName='{style.table}' cellSpacing='0' cellPadding='0'/ +
[gwt-contrib] Re: Running the development server in r6765: Unknown argument: -style
It seems that the ToolBase.processArgs() method receives the -style argument but the argHandlers map doesn't contain a mapping for it. This results in a null handler. Is the -style flag no longer supported? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Running the development server in r6765: Unknown argument: -style
On Mon, Nov 9, 2009 at 2:05 PM, eighty eightyste...@gmail.com wrote: It seems that the ToolBase.processArgs() method receives the -style argument but the argHandlers map doesn't contain a mapping for it. This results in a null handler. Is the -style flag no longer supported? Not on DevMode/HostedMode/GWTShell since there is no compile option to use it. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Refactor test code and api-checker to remove dependencies on CompilationUnit
UiBinder changes LGTM http://gwt-code-reviews.appspot.com/97810 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Improve NumberFormat.format to avoid weird rounding issues
Reviewers: bobv, Description: External issue 4171 points out that: NumberFormat.getFormat(#,##0.##).format(30.555) should yield 30.56 but yields 30.55 instead. This is due to the fact that the fractional part of 30.555 (computed as x - Math.floor(x)) formats as 0.554999... and adding 0.5 still yield 0.55 which truncates to .55 instead of .56. These sorts of errors seem inevitable if we try to extract the fractional part using arithmetic ops and work on it separately. If instead we format the whole number using Double.toString and extract the desired digits we can guarantee results that appear consistent, which is highly desirable for numbers that might be user visible. Please review this at http://gwt-code-reviews.appspot.com/97812 Affected files: user/src/com/google/gwt/i18n/client/NumberFormat.java user/test/com/google/gwt/i18n/client/NumberFormat_en_Test.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
Reviewers: jgw, t.broyer, Message: Okay, we'll back off from this one. Please review this at http://gwt-code-reviews.appspot.com/97807 Affected files: M user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java Index: user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java diff --git a/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java b/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java index 74d28b3811c4d4d2b58de6322024900e4c5a82f4..9d7a696598c4eb74322bca932c7c178282833a64 100644 --- a/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java +++ b/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java @@ -22,9 +22,53 @@ import com.google.gwt.user.client.Element; * {...@link com.google.gwt.user.client.ui.impl.PopupImpl}. */ public class PopupImplIE6 extends PopupImpl { + private static boolean isIE6 = isIE6(); + + // Stolen and modified from UserAgent.gwt.xml. + // TODO(jgw): Get rid of this method, and switch to using soft permutations + // once they land in trunk. + private static native boolean isIE6() /*-{ + function makeVersion(result) { + return (parseInt(result[1]) * 1000) + parseInt(result[2]); + } + + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf(msie) != -1) { + var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua); + if (result result.length == 3) { + var v = makeVersion(result); + if (v 7000) { + return true; + } + } + } + + return false; + }-*/; + + + @Override + public void onHide(Element popup) { +if (isIE6) { + do_onHide(popup); +} + } + + @Override + public void onShow(Element popup) { +if (isIE6) { + do_onShow(popup); +} + } @Override - public native void onHide(Element popup) /*-{ + public void setVisible(Element popup, boolean visible) { +if (isIE6){ + do_setVisible(popup, visible); +} + } + + private native void do_onHide(Element popup) /*-{ // It is at least rarely possible to get an onHide() without a matching // onShow(), usually because of timing issues created by animations. So // we're careful not to assume the existence of '__frame' here. @@ -35,9 +79,8 @@ public class PopupImplIE6 extends PopupImpl { popup.__frame = null; } }-*/; - - @Override - public native void onShow(Element popup) /*-{ + + private native void do_onShow(Element popup) /*-{ // TODO: make this more Java and less JSNI? var frame = $doc.createElement('iframe'); @@ -82,8 +125,7 @@ public class PopupImplIE6 extends PopupImpl { popup.parentElement.insertBefore(frame, popup); }-*/; - @Override - public native void setVisible(Element popup, boolean visible) /*-{ + private native void do_setVisible(Element popup, boolean visible) /*-{ if (popup.__frame) { popup.__frame.style.visibility = visible ? 'visible' : 'hidden'; } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6772 committed - Remove an outdated reference to the compile/browse button...
Revision: 6772 Author: r...@google.com Date: Mon Nov 9 11:49:26 2009 Log: Remove an outdated reference to the compile/browse button Review by: jat http://code.google.com/p/google-web-toolkit/source/detail?r=6772 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java === --- /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Mon Aug 17 09:47:12 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Mon Nov 9 11:49:26 2009 @@ -276,8 +276,7 @@ // Hosted mode link. text.append(alert(\GWT module ' + context.getModuleName() -+ ' needs to be (re)compiled, -+ please run a compile or use the Compile/Browse button in hosted mode\);); ++ ' may need to be (re)compiled\);); text.append(return;); } else if (compilations.size() == 1) { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Squelch ie6 popup iframe hack on ie7
And just to be clear, we recognize that it's a real problem, but I think it's going to take some time to work out how to shove the iframe shim in, in such a way that it doesn't break existing code (the IE6/7 implementation takes advantage of CSS expressions to keep the iframe positioned correctly). Of particular concern to me is the case where you're just using it as a simple tooltip-esque popup and *don't* want anything (i.e. glass) covering the whole page. The closure dialog implementation assumes that you *do* want such a thing, so the problem's a bit easier there. I'm very, very open to ideas on this. On Mon, Nov 9, 2009 at 2:47 PM, rj...@google.com wrote: Reviewers: jgw, t.broyer, Message: Okay, we'll back off from this one. Please review this at http://gwt-code-reviews.appspot.com/97807 Affected files: M user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java Index: user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java diff --git a/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java b/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java index 74d28b3811c4d4d2b58de6322024900e4c5a82f4..9d7a696598c4eb74322bca932c7c178282833a64 100644 --- a/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java +++ b/user/src/com/google/gwt/user/client/ui/impl/PopupImplIE6.java @@ -22,9 +22,53 @@ import com.google.gwt.user.client.Element; * {...@link com.google.gwt.user.client.ui.impl.PopupImpl}. */ public class PopupImplIE6 extends PopupImpl { + private static boolean isIE6 = isIE6(); + + // Stolen and modified from UserAgent.gwt.xml. + // TODO(jgw): Get rid of this method, and switch to using soft permutations + // once they land in trunk. + private static native boolean isIE6() /*-{ + function makeVersion(result) { + return (parseInt(result[1]) * 1000) + parseInt(result[2]); + } + + var ua = navigator.userAgent.toLowerCase(); + if (ua.indexOf(msie) != -1) { + var result = /msie ([0-9]+)\.([0-9]+)/.exec(ua); + if (result result.length == 3) { + var v = makeVersion(result); + if (v 7000) { + return true; + } + } + } + + return false; + }-*/; + + + @Override + public void onHide(Element popup) { +if (isIE6) { + do_onHide(popup); +} + } + + @Override + public void onShow(Element popup) { +if (isIE6) { + do_onShow(popup); +} + } @Override - public native void onHide(Element popup) /*-{ + public void setVisible(Element popup, boolean visible) { +if (isIE6){ + do_setVisible(popup, visible); +} + } + + private native void do_onHide(Element popup) /*-{ // It is at least rarely possible to get an onHide() without a matching // onShow(), usually because of timing issues created by animations. So // we're careful not to assume the existence of '__frame' here. @@ -35,9 +79,8 @@ public class PopupImplIE6 extends PopupImpl { popup.__frame = null; } }-*/; - - @Override - public native void onShow(Element popup) /*-{ + + private native void do_onShow(Element popup) /*-{ // TODO: make this more Java and less JSNI? var frame = $doc.createElement('iframe'); @@ -82,8 +125,7 @@ public class PopupImplIE6 extends PopupImpl { popup.parentElement.insertBefore(frame, popup); }-*/; - @Override - public native void setVisible(Element popup, boolean visible) /*-{ + private native void do_setVisible(Element popup, boolean visible) /*-{ if (popup.__frame) { popup.__frame.style.visibility = visible ? 'visible' : 'hidden'; } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6773 committed - Merge tr...@6772 into this branch...
Revision: 6773 Author: r...@google.com Date: Mon Nov 9 11:52:36 2009 Log: Merge tr...@6772 into this branch Remove an outdated reference to the compile/browse button svn merge --ignore-ancestry -c 6772 https://google-web-toolkit.googlecode.com/svn/trunk . http://code.google.com/p/google-web-toolkit/source/detail?r=6773 Modified: /releases/2.0/branch-info.txt /releases/2.0/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java === --- /releases/2.0/branch-info.txt Mon Nov 9 11:00:52 2009 +++ /releases/2.0/branch-info.txt Mon Nov 9 11:52:36 2009 @@ -467,3 +467,7 @@ Cleaning up the mail sample, adding new styles, and moving most images into @sprite CssResource. svn merge --ignore-ancestry -c 6770 https://google-web-toolkit.googlecode.com/svn/trunk . +tr...@6772 was merged into this branch + Remove an outdated reference to the compile/browse button + svn merge --ignore-ancestry -c 6772 https://google-web-toolkit.googlecode.com/svn/trunk . + === --- /releases/2.0/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Mon Aug 17 09:47:12 2009 +++ /releases/2.0/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java Mon Nov 9 11:52:36 2009 @@ -276,8 +276,7 @@ // Hosted mode link. text.append(alert(\GWT module ' + context.getModuleName() -+ ' needs to be (re)compiled, -+ please run a compile or use the Compile/Browse button in hosted mode\);); ++ ' may need to be (re)compiled\);); text.append(return;); } else if (compilations.size() == 1) { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Trace that auto detects the calling class/method.
Perhaps i would extrapolate on my proposal. The compiler could have an extra feature that went thru and found all log statements and added a String with the classname + method name on your behalf so... Class X void method(){ log( Hello); // } the log above would get modified to log( ClassX.method + Hello); This would not require runtime support and can be easily achieved by finding all log invocations and then inserting a binary op that adds the sythetic classname/method name append to the original String etc... Just an idea. On Mon, Nov 9, 2009 at 11:30 PM, stuckagain david.no...@gmail.com wrote: Joel, I'll take a look at it. The overhead is acceptable since I make sure that we only pay the price if tracing is actually enabled. I'm hoping that the log API in incubator or the one from Fred will end up in the main GWT someday ? In that case it would be a very useful if it could auto-deduce the source of the log/trace event. David On Nov 6, 3:27 pm, Joel Webber j...@google.com wrote: It wouldn't be perfect, but you might be able to get some utility from the code in StackTraceCreator (in the Core module) in the 2.0 release branch. It can't get stack traces on all browsers by default (IE requires an extra flag that generates a fair amount of overhead -- don't use lightly), but could help somewhat. On Fri, Nov 6, 2009 at 5:22 AM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Why not just include the class.method name at the start of each and every message String sent to your logging method...Its a pain but it works. On Fri, Nov 6, 2009 at 7:06 PM, stuckagain david.no...@gmail.com wrote: Hi, Would it be possible to implement a Trace mechanism that (when enabled) would be able to autodetermine from where it is called (classname.method). In plain java I have such a thing implemented in my tracing package and it really helps in keeping trace statements really simple. In the GWT client I'm using the incubator log API (I also tried out gwt-log from Fred), but none of the log/trace packages that exist today are able to detect from where they are called to give a better output. It looks to me that I will actually need compiler support to be able to implement such a thing. I read in this newsgroup that there is work going on to make stacktraces available in the browser. Could that mechanism be reused to implement what I need ? (In plain Java I get the stacktrace and find the stack element just before the trace statement). David -- mP- Hide quoted text - - Show quoted text - -- mP --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Hello DialogBoxParser
Reviewers: bobv, Message: Nits addressed, committed tr...@6774, 2.0 soon. Description: DialogBox is weird--it implements both HasHTML and HasWidgets. This confuses the bejeebers out of UiBinder and leads it to generate bad code, so a custom parser is required. I took this excuse to generalize the mock UiBinderWriter work I did yesterday for DockLayoutPanelParserTest. I also found some low hanging fruit in XMLElement to allow it to fail when there are stray bits of text or widgets in places they shouldn't be. Previously this would result in quietly dropped text, or in things like gwt:Label showing up the rendered DOM, sometimes even user visible. Please review this at http://gwt-code-reviews.appspot.com/97806 Affected files: M user/src/com/google/gwt/uibinder/elementparsers/CustomButtonParser.java A user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java M user/src/com/google/gwt/uibinder/elementparsers/HtmlInterpreter.java M user/src/com/google/gwt/uibinder/rebind/FieldWriterOfExistingType.java M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java M user/src/com/google/gwt/uibinder/rebind/XMLElement.java M user/test/com/google/gwt/uibinder/UiBinderJreSuite.java A user/test/com/google/gwt/uibinder/elementparsers/DialogBoxParserTest.java M user/test/com/google/gwt/uibinder/elementparsers/DockLayoutPanelParserTest.java A user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java A user/test/com/google/gwt/uibinder/elementparsers/MockUiBinderWriter.java A user/test/com/google/gwt/uibinder/elementparsers/UiJavaResources.java A user/test/com/google/gwt/uibinder/rebind/MockMortalLogger.java M user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java M user/test/com/google/gwt/uibinder/test/UiJavaResources.java M user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Hello DialogBoxParser
http://gwt-code-reviews.appspot.com/97806/diff/1001/56 File user/src/com/google/gwt/uibinder/rebind/XMLElement.java (right): http://gwt-code-reviews.appspot.com/97806/diff/1001/56#newcode50 Line 50: @SuppressWarnings(deprecation) On 2009/11/09 18:33:27, bobv wrote: This is a big class. Done. http://gwt-code-reviews.appspot.com/97806/diff/1001/62 File user/test/com/google/gwt/uibinder/elementparsers/UiJavaResources.java (right): http://gwt-code-reviews.appspot.com/97806/diff/1001/62#newcode30 Line 30: public static final MockJavaResource DIALOG_BOX = new MockJavaResource( Agree in theory, but following existing precedent. Not for this patch. http://gwt-code-reviews.appspot.com/97806/diff/1001/66 File user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml (right): http://gwt-code-reviews.appspot.com/97806/diff/1001/66#newcode261 Line 261: span style=white-space:nowrapThe pig's in a hurry/span Yes, this is bad markup, exposed by the new stricter behavior in HtmlInterpreter http://gwt-code-reviews.appspot.com/97806 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6775 committed - Update Chrome plugin naming, cleanup leftover garbage, commit object f...
Revision: 6775 Author: j...@google.com Date: Mon Nov 9 13:01:13 2009 Log: Update Chrome plugin naming, cleanup leftover garbage, commit object freeing code that was never committed. Patch by: jat Review by: rice (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6775 Added: /changes/jat/single-xpi/plugins/npapi/npGwtDevPlugin.def /changes/jat/single-xpi/plugins/npapi/npGwtDevPlugin.rc /changes/jat/single-xpi/plugins/npapi/prebuilt/gwt-dev-plugin Deleted: /changes/jat/single-xpi/plugins/npapi/liboophm.r /changes/jat/single-xpi/plugins/npapi/npOOPHM.def /changes/jat/single-xpi/plugins/npapi/npOOPHM.rc /changes/jat/single-xpi/plugins/npapi/oophm.xpi /changes/jat/single-xpi/plugins/npapi/prebuilt/gwt-dev-plugin/WINNT_x86-msvc/npOOPHM.dll /changes/jat/single-xpi/plugins/npapi/prebuilt/gwtdmp /changes/jat/single-xpi/plugins/npapi/prebuilt/gwtdmp.crx Modified: /changes/jat/single-xpi/plugins/npapi/LocalObjectTable.h /changes/jat/single-xpi/plugins/npapi/ScriptableInstance.cpp /changes/jat/single-xpi/plugins/npapi/VisualStudio/npapi-plugin.vcproj /changes/jat/single-xpi/plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json === --- /dev/null +++ /changes/jat/single-xpi/plugins/npapi/npGwtDevPlugin.defMon Nov 9 13:01:13 2009 @@ -0,0 +1,7 @@ +LIBRARY NPOOPHM + +EXPORTS + NP_GetEntryPoints@1 + NP_Initialize@2 + NP_Shutdown @3 + NP_GetMIMEDescription@4 === --- /dev/null +++ /changes/jat/single-xpi/plugins/npapi/npGwtDevPlugin.rc Mon Nov 9 13:01:13 2009 @@ -0,0 +1,111 @@ +#include resource.h + +#define APSTUDIO_READONLY_SYMBOLS +#include windows.h +#include winres.h +#undef APSTUDIO_READONLY_SYMBOLS + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif + +1 VERSIONINFO + FILEVERSION 0,9,0,0 + PRODUCTVERSION 0,9,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK StringFileInfo + BEGIN + BLOCK 040904e4 + BEGIN + VALUE CompanyName, Google Inc + VALUE FileDescription, GWT Development Mode Plugin +#if 0 + VALUE FileExtents, +#endif + VALUE FileOpenName, Plugin to allow debugging of GWT applications in hosted mode. + VALUE FileVersion, 0.9.0 + VALUE InternalName, GWT DMP + VALUE LegalCopyright, Copyright © 2009 Google Inc. All rights reserved. + VALUE MIMEType, application/x-gwt-hosted-mode + VALUE OriginalFilename, npOOPHM.dll + VALUE ProductName, GWT DMP Plugin + VALUE ProductVersion, 0.9.0 + END + END + BLOCK VarFileInfo + BEGIN +VALUE Translation, 0x409, 1252 + END +END + +#ifdef APSTUDIO_INVOKED +1 TEXTINCLUDE +BEGIN + resource.h\0 +END + +2 TEXTINCLUDE +BEGIN + #include mfc/afxres.h\r\n + \0 +END + +3 TEXTINCLUDE +BEGIN + \r\n + \0 +END + +#endif + +/ +// +// Dialog +// + +IDD_ALLOW_DIALOG DIALOGEX 0, 0, 188, 73 +STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_POPUP | WS_CAPTION +EXSTYLE WS_EX_TOPMOST +CAPTION GWT Plugin Security Alert +FONT 10, Microsoft Sans Serif, 400, 0, 0x0 +BEGIN +CONTROL Remember this decision for this server,IDC_REMEMBER_CHECKBOX, +Button,BS_AUTOCHECKBOX | WS_TABSTOP,30,31,129,10 +LTEXT This web server is trying to initiate a GWT Development\r\nMode Connection -- should it be allowed?,IDC_STATIC,10,7,167,19 +PUSHBUTTON Allow,IDC_ALLOW_BUTTON,37,50,50,14 +DEFPUSHBUTTON Deny,IDCANCEL,100,50,50,14 +END + + +/ +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN +IDD_ALLOW_DIALOG, DIALOG +BEGIN +LEFTMARGIN, 7 +RIGHTMARGIN, 181 +TOPMARGIN, 7 +BOTTOMMARGIN, 66 +END +END +#endif// APSTUDIO_INVOKED + +#else + +#endif === --- /changes/jat/single-xpi/plugins/npapi/liboophm.rMon Aug 3 08:30:11 2009 +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2008 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the License); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an AS IS BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND,
[gwt-contrib] [google-web-toolkit] r6776 committed - Comment tweak
Revision: 6776 Author: rj...@google.com Date: Mon Nov 9 13:13:58 2009 Log: Comment tweak http://code.google.com/p/google-web-toolkit/source/detail?r=6776 Modified: /trunk/user/src/com/google/gwt/uibinder/resources/xhtml.ent === --- /trunk/user/src/com/google/gwt/uibinder/resources/xhtml.ent Thu Nov 5 19:36:00 2009 +++ /trunk/user/src/com/google/gwt/uibinder/resources/xhtml.ent Mon Nov 9 13:13:58 2009 @@ -21,9 +21,10 @@ This file is maintained at http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/uibinder/resources/xhtml.ent - Changes made to it must be propagated to the URLs above. + Changes made to it must be propagated to the URL above. + It is also available as https://dl-ssl.google.com/gwt/DTD/xhtml.ent - + -- !-- Latin-1 characters -- --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6778 committed - Merges tr...@6774 into releases/2.0...
Revision: 6778 Author: rj...@google.com Date: Mon Nov 9 13:24:23 2009 Log: Merges tr...@6774 into releases/2.0 Comment tweaks on xhtml.ent svn merge --ignore-ancestry -c 6776 https://google-web-toolkit.googlecode.com/svn/trunk . http://code.google.com/p/google-web-toolkit/source/detail?r=6778 Modified: /releases/2.0/branch-info.txt /releases/2.0/user/src/com/google/gwt/uibinder/resources/xhtml.ent === --- /releases/2.0/branch-info.txt Mon Nov 9 13:21:34 2009 +++ /releases/2.0/branch-info.txt Mon Nov 9 13:24:23 2009 @@ -474,3 +474,7 @@ tr...@6774 was merged into this branch Hello DialogBoxParser, stricter parsing svn merge --ignore-ancestry -c 6774 https://google-web-toolkit.googlecode.com/svn/trunk . + +tr...@6774 was merged into this branch + Comment tweaks on xhtml.ent + svn merge --ignore-ancestry -c 6776 https://google-web-toolkit.googlecode.com/svn/trunk . === --- /releases/2.0/user/src/com/google/gwt/uibinder/resources/xhtml.ent Thu Nov 5 20:02:18 2009 +++ /releases/2.0/user/src/com/google/gwt/uibinder/resources/xhtml.ent Mon Nov 9 13:24:23 2009 @@ -21,9 +21,10 @@ This file is maintained at http://google-web-toolkit.googlecode.com/svn/trunk/user/src/com/google/gwt/uibinder/resources/xhtml.ent - Changes made to it must be propagated to the URLs above. + Changes made to it must be propagated to the URL above. + It is also available as https://dl-ssl.google.com/gwt/DTD/xhtml.ent - + -- !-- Latin-1 characters -- --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Refactor test code and api-checker to remove dependencies on CompilationUnit
LGTM other than minor comments below. ApiContainerTest and ApiCompatibilityTest throw console errors, even though the tests pass. Validating newly compiled units [ERROR] No JavaScript body found for native method 'protected native int protectedMethod();' in type 'java.lang.Object' Refreshing module from source Validating newly compiled units [ERROR] No JavaScript body found for native method 'protected native int protectedMethod();' in type 'java.lang.Object' http://gwt-code-reviews.appspot.com/97810/diff/1/2 File dev/core/src/com/google/gwt/dev/javac/CompilationState.java (right): http://gwt-code-reviews.appspot.com/97810/diff/1/2#newcode414 Line 414: assert (!unitMap.containsKey(typeName)); LGTM http://gwt-code-reviews.appspot.com/97810/diff/1/8 File dev/core/test/com/google/gwt/dev/javac/CompilationStateTest.java (right): http://gwt-code-reviews.appspot.com/97810/diff/1/8#newcode112 Line 112: perhaps replace with assertSame(State.ERROR, invalidUnit.getState()); http://gwt-code-reviews.appspot.com/97810/diff/1/8#newcode317 Line 317: assertSame(units2.get(typeName), units3.get(typeName)); LGTM++; http://gwt-code-reviews.appspot.com/97810/diff/1/9 File dev/core/test/com/google/gwt/dev/javac/CompilationStateTestBase.java (left): http://gwt-code-reviews.appspot.com/97810/diff/1/9#oldcode19 Line 19: import com.google.gwt.dev.javac.CompilationUnit.State; Cannot view the diff here.I looked at the file in eclipse and everything seems fine. http://gwt-code-reviews.appspot.com/97810/diff/1/14 File dev/core/test/com/google/gwt/dev/javac/TypeOracleTestingUtils.java (right): http://gwt-code-reviews.appspot.com/97810/diff/1/14#newcode66 Line 66: } instead return buildTypeOracle(logger, resources, Collections.GeneratedUnitemptySet()); http://gwt-code-reviews.appspot.com/97810/diff/1/21 File tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java (right): http://gwt-code-reviews.appspot.com/97810/diff/1/21#newcode59 Line 59: * extra space in this line and above. http://gwt-code-reviews.appspot.com/97810/diff/1/21#newcode67 Line 67: * extra space http://gwt-code-reviews.appspot.com/97810/diff/1/21#newcode74 Line 74: * extra space http://gwt-code-reviews.appspot.com/97810/diff/1/21#newcode90 Line 90: * extra space http://gwt-code-reviews.appspot.com/97810/diff/1/21#newcode331 Line 331: logger.log(TreeLogger.SPAM, fileName extra space? http://gwt-code-reviews.appspot.com/97810/diff/1/25 File tools/api-checker/test/com/google/gwt/tools/apichecker/ApiContainerTest.java (right): http://gwt-code-reviews.appspot.com/97810/diff/1/25#newcode115 Line 115: sb.append(\tprotected native int protectedMethod();\n); This change does not look related. http://gwt-code-reviews.appspot.com/97810 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Comment on UiBinder in google-web-toolkit
Comment by jchimene: I may be missing something but shouldn't the argument to the initWidget call in _Apply different xml templates to the same widget_ be {{{ protected FooPickerDisplay(UiBinderWidget, FooPickerDisplay binder) { initWidget(binder.createAndBindUi(this)); } }}} For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6779 committed - Update Chrome plugin naming, cleanup leftover garbage, commit object...
Revision: 6779 Author: j...@google.com Date: Mon Nov 9 16:00:39 2009 Log: Update Chrome plugin naming, cleanup leftover garbage, commit object freeing code that was never committed. This was originally committed to the changes/jat/single-xpi branch by mistake. Patch by: jat Review by: rice (TBR) http://code.google.com/p/google-web-toolkit/source/detail?r=6779 Added: /trunk/plugins/npapi/npGwtDevPlugin.def /trunk/plugins/npapi/npGwtDevPlugin.rc /trunk/plugins/npapi/prebuilt/gwt-dev-plugin Deleted: /trunk/plugins/npapi/liboophm.r /trunk/plugins/npapi/npOOPHM.def /trunk/plugins/npapi/npOOPHM.rc /trunk/plugins/npapi/oophm.xpi /trunk/plugins/npapi/prebuilt/gwtdmp /trunk/plugins/npapi/prebuilt/gwtdmp.crx Modified: /trunk/plugins/npapi/LocalObjectTable.h /trunk/plugins/npapi/ScriptableInstance.cpp /trunk/plugins/npapi/VisualStudio/npapi-plugin.vcproj Replaced: /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/WINNT_x86-msvc /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/background.html /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/gwt128.png /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/gwt16.png /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/gwt32.png /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/gwt48.png /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/gwt64.png /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/record_tab_id.js === --- /dev/null +++ /trunk/plugins/npapi/npGwtDevPlugin.def Mon Nov 9 16:00:39 2009 @@ -0,0 +1,7 @@ +LIBRARY NPOOPHM + +EXPORTS + NP_GetEntryPoints@1 + NP_Initialize@2 + NP_Shutdown @3 + NP_GetMIMEDescription@4 === --- /dev/null +++ /trunk/plugins/npapi/npGwtDevPlugin.rc Mon Nov 9 16:00:39 2009 @@ -0,0 +1,111 @@ +#include resource.h + +#define APSTUDIO_READONLY_SYMBOLS +#include windows.h +#include winres.h +#undef APSTUDIO_READONLY_SYMBOLS + +#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) +#ifdef _WIN32 +LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US +#pragma code_page(1252) +#endif + +1 VERSIONINFO + FILEVERSION 0,9,0,0 + PRODUCTVERSION 0,9,0,0 + FILEFLAGSMASK 0x3fL +#ifdef _DEBUG + FILEFLAGS 0x1L +#else + FILEFLAGS 0x0L +#endif + FILEOS 0x40004L + FILETYPE 0x2L + FILESUBTYPE 0x0L +BEGIN + BLOCK StringFileInfo + BEGIN + BLOCK 040904e4 + BEGIN + VALUE CompanyName, Google Inc + VALUE FileDescription, GWT Development Mode Plugin +#if 0 + VALUE FileExtents, +#endif + VALUE FileOpenName, Plugin to allow debugging of GWT applications in hosted mode. + VALUE FileVersion, 0.9.0 + VALUE InternalName, GWT DMP + VALUE LegalCopyright, Copyright © 2009 Google Inc. All rights reserved. + VALUE MIMEType, application/x-gwt-hosted-mode + VALUE OriginalFilename, npOOPHM.dll + VALUE ProductName, GWT DMP Plugin + VALUE ProductVersion, 0.9.0 + END + END + BLOCK VarFileInfo + BEGIN +VALUE Translation, 0x409, 1252 + END +END + +#ifdef APSTUDIO_INVOKED +1 TEXTINCLUDE +BEGIN + resource.h\0 +END + +2 TEXTINCLUDE +BEGIN + #include mfc/afxres.h\r\n + \0 +END + +3 TEXTINCLUDE +BEGIN + \r\n + \0 +END + +#endif + +/ +// +// Dialog +// + +IDD_ALLOW_DIALOG DIALOGEX 0, 0, 188, 73 +STYLE DS_SYSMODAL | DS_SETFONT | DS_MODALFRAME | DS_3DLOOK | DS_CENTER | WS_POPUP | WS_CAPTION +EXSTYLE WS_EX_TOPMOST +CAPTION GWT Plugin Security Alert +FONT 10, Microsoft Sans Serif, 400, 0, 0x0 +BEGIN +CONTROL Remember this decision for this server,IDC_REMEMBER_CHECKBOX, +Button,BS_AUTOCHECKBOX | WS_TABSTOP,30,31,129,10 +LTEXT This web server is trying to initiate a GWT Development\r\nMode Connection -- should it be allowed?,IDC_STATIC,10,7,167,19 +PUSHBUTTON Allow,IDC_ALLOW_BUTTON,37,50,50,14 +DEFPUSHBUTTON Deny,IDCANCEL,100,50,50,14 +END + + +/ +// +// DESIGNINFO +// + +#ifdef APSTUDIO_INVOKED +GUIDELINES DESIGNINFO +BEGIN +IDD_ALLOW_DIALOG, DIALOG +BEGIN +LEFTMARGIN, 7 +RIGHTMARGIN, 181 +TOPMARGIN, 7 +BOTTOMMARGIN, 66 +END +END +#endif// APSTUDIO_INVOKED + +#else + +#endif === --- /trunk/plugins/npapi/liboophm.r Mon Aug 3 08:30:11 2009 +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2008 Google Inc. - * - * Licensed under the Apache License, Version 2.0 (the License); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - *
[gwt-contrib] [google-web-toolkit] r6780 committed - Build plugin DLL after name changes.
Revision: 6780 Author: j...@google.com Date: Mon Nov 9 16:04:54 2009 Log: Build plugin DLL after name changes. http://code.google.com/p/google-web-toolkit/source/detail?r=6780 Added: /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/WINNT_x86-msvc/npGwtDevPlugin.dll === --- /dev/null +++ /trunk/plugins/npapi/prebuilt/gwt-dev-plugin/WINNT_x86-msvc/npGwtDevPlugin.dll Mon Nov 9 16:04:54 2009 Binary file, no diff available. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit] r6781 committed - Fix typo in different templates section
Revision: 6781 Author: rj...@google.com Date: Mon Nov 9 16:28:35 2009 Log: Fix typo in different templates section http://code.google.com/p/google-web-toolkit/source/detail?r=6781 Modified: /wiki/UiBinder.wiki === --- /wiki/UiBinder.wiki Wed Oct 21 12:06:47 2009 +++ /wiki/UiBinder.wiki Mon Nov 9 16:28:35 2009 @@ -537,7 +537,7 @@ } protected FooPickerDisplay(UiBinderWidget, FooPickerDisplay binder) { -initWidget(uiBinder.createAndBindUi(this)); +initWidget(binder.createAndBindUi(this)); } public static FooPickerDisplay createRedPicker() { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Comment on UiBinder in google-web-toolkit
Comment by rj...@google.com: @jchimene Fixed, thanks. For more information: http://code.google.com/p/google-web-toolkit/wiki/UiBinder --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---