Re: How to change css value's through CssResource mechanism?
Yes, I was afraid of that. I hoped to do it more elegant and be able to use preferences per Widget instance. It's however only possible to use preferences per Widget type (globally). Is it even possible per instance, such that would it be worth adding an issue about this? On Nov 10, 11:47 pm, Thomas Broyer t.bro...@gmail.com wrote: You'll have to either define specific CSS classes with different widths, or use button.getElement().getStyle().setWidth(newWidth, Unit.PX); -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is there a widget which instead fileinput?
hi :) if you are looking for very elegant solution I can recommend you : http://code.google.com/p/gwtupload/ hth, agata On Nov 11, 7:41 am, wahaha il...@yahoo.com.cn wrote: to instead the input type=file element. how to solute? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 is current state/fix of/for deprecated PlaceController constructor
since the beginning of using activities i asked myself why some dependency injection examples injected an eventbus and don't use the one that start() delivers. i thought that the pattern - inject all stuff you need. But thx to you-both this question is answered - don't inject the bus! use the one from start(). So not only that little Problem is solved but i also learned a lot more - again. So the best documentaion for gwt is still this group - (i am not sure if this is good or bad) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/RcuSJ23-KRAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
VerticalPanel differently rendered on FireFox and Chrome
if i add some stuff to a verticalPanel nested in a SimplLayoutPanel(100%h,100%w) the result is very different on different browsers: chrome don't use the 100% and sticks all stuff in VP together. Firefox(6) and IE(6) use all the space to layout the stuff inside VP. Why does this happen? The main reason to chose gwt was to get rid of such problems. So if a table with 100%(i think that is the html translation of my VP) is rendered differntly, gwt should use a different translation to get same results, shouldn't it? the other question is how to get the same result on all browsers - i want the result of chrome: all stuff should stick together vertically arranged. thx in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/0HrG1UjOj8oJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Extend RequestFactory to Make Use of None Primitive Types
Thanks for your detailed explanation. It helped me understand RF and GWT a little better. I ended up with a EmplyeeGWT class, which extends the MongoDB model but returns the ObjectId as String and parse the returned String to ObjectId. This seems to work. One restriction to our problem is also, that the model gets generated. The thing that bugs me is that I have an extra model and also an extra service just for GWT. We are thinking about making GWT use the JERSEY Service over RPC, but than we cant use the Objects on the client side. So far many thanks for the help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SqKPdlJ3s7MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Developer Plugin for Firefox 8
When running inside Iceweasel 8.0, the plugin in installed correctly, but dev mode does not work. Kristof On nov. 9, 11:07, Alan Leung acle...@google.com wrote: Hi all: I just finished building / testing the FF8 dev mode plugin for Linux 32 bit (http://www.sendspace.com/file/h8wgmn) More to come tomorrow. Again, if you are using FF8 already. I'd greatly appreciate if you give that a try and let me know when you see anything weird. -Alan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
why getPermutationStrongName is final and writeResponse is private?
Hi, I am extending the RemoteServiceServlet and having trouble with those methods because one is final and the other is private. Is there any special reason for this? It is funny that the method readContent is protected and its counterpart writeResponse is private. This means in my subclass I can change how the payload will be extracted from the request but I can not change how the response is going to be sent. For the getPermutationStrongName case I don't want to send it as a header anymore so I had to overwrite the method checkPermutationStrongName that calls that method. Thanks, Constantino -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Developer Plugin for Firefox 8
Sorry, false alarm. I installed the wrong version (which contained only the 32 bit version) on a 64bit system. The later version works all right. Thank you, this way much faster than the previous rounds. On nov. 11, 11:55, csillag csillag.kris...@gmail.com wrote: When running inside Iceweasel 8.0, the plugin in installed correctly, but dev mode does not work. Kristof On nov. 9, 11:07, Alan Leung acle...@google.com wrote: Hi all: I just finished building / testing the FF8 dev mode plugin for Linux 32 bit (http://www.sendspace.com/file/h8wgmn) More to come tomorrow. Again, if you are using FF8 already. I'd greatly appreciate if you give that a try and let me know when you see anything weird. -Alan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FileOutputStream Not supporting
Hello , i am trying to upload a file to other server through gxt, i got a error which telling that java.io.FileOutputStream is not supported by Google App Engine's Java runtime environment how can i resolve this problem?? or is there any altrnate way ? please help me :( Regards Arun Paul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Saving Template In Google Web Tool Kit
Hii I have a task to create a application where a user can design his own template and save it which he will load later and use it.. Any Suggestion or road map on how i can approach this... Note: Template includes some thing like a drag and drop which we have in VB where we drag some elements and drop them on form and start to work.. Any valuable suggestion would be appreciated... Thanks And regards, Magesh Kumar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Is the session needed?
Hi all, I'm working on a GWT 2.3 app. I notice app uses the session to store login info and other stuff. There is a callback intercept the expired session and handle it. My question is: is in a GWT based app the session still needed? can I have a stateless server? thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8XeJIvbPts4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: FileOutputStream Not supporting
You need to use the blobstore on GAE. --Markus 2011/11/11 arun paul arunpaul...@gmail.com: Hello , i am trying to upload a file to other server through gxt, i got a error which telling that java.io.FileOutputStream is not supported by Google App Engine's Java runtime environment how can i resolve this problem?? or is there any altrnate way ? please help me :( Regards Arun Paul -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Setup Database Access in Development Mode
Hello, I started an other thread dealing with file write access on the server side. After reading the responses I am assured that the better solution would be to store the available data in a database. I am able to find some information on how to access a sql database in general. But I have no idea how to test database access in development mode. I am using eclipse to develop my gwt application. Does anyone has some input on this topic? Thanks and best regards Uli -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is the session needed?
Yes you can. Use the session if you need. 2011/11/11 Filippo De Luca filosgang...@gmail.com Hi all, I'm working on a GWT 2.3 app. I notice app uses the session to store login info and other stuff. There is a callback intercept the expired session and handle it. My question is: is in a GWT based app the session still needed? can I have a stateless server? thank you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8XeJIvbPts4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it possible to stop the browser from interpreting control-key presses?
Vid, Thanks very much for the reply. I made the following example. It can either capture keyboard events no matter what has the focus, or only if a focusPanel has the focus, depending on the last line in onLoad().. It captures everything on Firefox 8 It captures everything except ^W, ^T and ^N on chrome v15 It captures everything except ^P, ^O, and ^H on IE 8 I am coming to the conclusion that we really cannot capture all the control keys on Chrome and IE. Anyway, here is the source to my keyboard capture example: package bi.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.NativeEvent; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.Event; import com.google.gwt.user.client.Event.NativePreviewEvent; import com.google.gwt.user.client.Event.NativePreviewHandler; import com.google.gwt.user.client.ui.FocusPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; /** * Entry point classes define codeonModuleLoad()/code. */ public class GwtKeyCapture extends FocusPanel implements EntryPoint { private static HandlerRegistration g_nativePreviewHandlerRegistration=null; private static void captureKeyboard( GwtKeyCapture mainPanel) { g_nativePreviewHandlerRegistration = Event.addNativePreviewHandler( mainPanel.new MyNativePreviewHandler()); } private class MyNativePreviewHandler implements NativePreviewHandler { @Override public void onPreviewNativeEvent(NativePreviewEvent previewEvt) { NativeEvent ne = previewEvt.getNativeEvent(); GWT.log(OnPrevEvt: + ne.getType()); if( ne.getType().equalsIgnoreCase(keydown) || ne.getType().equalsIgnoreCase(keyup) || ne.getType().equalsIgnoreCase(keypress) ) { m_strNEH = OnPrev evt: + ne.getType() + keycode: 0x + I nteger.toString(ne.getKeyCode(), 16); m_lbl.setText( m_strBE + | + m_strNEH); ne.preventDefault(); previewEvt.consume(); } } } private String m_strBE=; private String m_strNEH=; Label m_lbl; @Override public void onBrowserEvent(Event event) { boolean isKeyEvent = (event.getTypeInt() == Event.ONKEYDOWN) || (event.getTypeInt() == Event.ONKEYUP) || (event.getTypeInt() == Event.ONKEYPRESS); if(isKeyEvent) { m_strBE = onBE: + event.getType() + keycode: 0x + Integer.toString(event.getKeyCode(), 16); m_lbl.setText( m_strBE + | + m_strNEH); GWT.log(m_strBE); event.preventDefault(); } else { GWT.log(onBE: + event.getType()); } } public void onModuleLoad() { m_lbl = new Label(Hello, GWT!); add(m_lbl); setSize(500px, 300px); addStyleName(panelColor); RootPanel.get().add(this); sinkEvents(Event.KEYEVENTS); /* NOTE: uncommenting next line * allows capture even * if focus panel doesn't have focus. */ captureKeyboard(this); } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 change css value's through CssResource mechanism?
If the FlexButton uses ClientBundle and CssResources you should be able to override it on instance level. Similar to how you can do it with the CellWidget where you can pass a different CssResource implementation in the constructor. However this requires that you somehow have access to the ClientBundle/CssResource file of your FlexButton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BnOF8UAQm44J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Why does GWT's API differ so much from the Javascript one?
Wouldn't it be easier to use the interfaces in org.w3c.dom.* or to generate new ones from idl files. The WebIDL spec shows how to translate things to Java, though I am having a tough time finding more information about it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/rlMdznIWVbAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTree, adding data to a child node and refresh
I had the same problem. See working example on: http://stackoverflow.com/questions/7239960/programatically-refresh-a-gwt-celltree -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: log4j and the MobileWebApp sample
I was able to resolve the logging problems by adding the following to the log4j.properties file: log4j.rootLogger=debug,A1 Any advice on the other no realm problem in the MobileWebApp sample from GWT 2.4 would be greatly appreciated. Has anyone here tried running the MobileWebApp sample in Eclipse? I know at least one other person has run into the no realm issue. I'm assuming the sample should be able to run as-is and therefore it isn't a problem with the sample app configuration but rather I have not configured Eclipse or something properly. On Nov 10, 5:31 pm, Jenson justinhrobb...@gmail.com wrote: Hi folks, I'm trying to run the MobileWebApp sample in Eclipse (Indigo 3.7, GPE 2.4). It's not clear to me why the console is getting warnings about log4j not getting initialized properly. log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). log4j:WARN Please initialize the log4j system properly. log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Looking at the sample app available in the 2.4 SDK, I see the following: log4j.properties is in MobileWebApp\target\www\WEB-INF\classes logging.properties is in MobileWebApp\target\www\WEB-INF The appengine-web.xml shows the following: !-- Configure java.util.logging -- system-properties property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ /system-properties Any pointers are greatly appreciated. :) BTW: I'm unable to get the MobileWebApp sample running. I'm getting HTTP ERROR: 500 No realm error in the browser. I'm hoping getting logging working properly will provide insight into that problem. Another person posted about the No realm problem with the MobileWebApp sample. Unfortunately, the post hasn't gotten much traction. Any ideas on either the log4j or the no realm problem would be much appreciated. http://groups.google.com/group/google-web-toolkit/browse_thread/threa... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 change css value's through CssResource mechanism?
@Uemit, Thanks for input but that's not the question. I use this mechanism in many places, combined with @Import, and that is the reason of my question as you don't want to override the style/resources for every time you need a button with just different preferences. It would be nice to specify preferences on an instance base. On Fri, Nov 11, 2011 at 2:19 PM, Uemit uemit.se...@gmail.com wrote: If the FlexButton uses ClientBundle and CssResources you should be able to override it on instance level. Similar to how you can do it with the CellWidget where you can pass a different CssResource implementation in the constructor. However this requires that you somehow have access to the ClientBundle/CssResource file of your FlexButton -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BnOF8UAQm44J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Drag drop
2) Can i easily do drag and drop some file from the file explorer to a widget in a web page ? I haven't seen any example that does that. Is is possible ? The presentation of John La Banca about GWT + HTML5 has a part about the drag and drop feature but it's from one widget to another widget. I would like to know if it's possible to drag a file from the windows file explorer and add it to a widget, for instance a celltable. Thanks ! On Mon, Oct 31, 2011 at 3:31 PM, Konstantin Zolotarev konstantin.zolota...@gmail.com wrote: Also GWT has native HTML5 DnD support. You could find more info about it here :GWT + HTML5: A web developers dream! http://goo.gl/S8pYF -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4UL0ESE9btAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Generate Sample Code with Request Factory
In Eclipse, when you create a GWT Web Application Project, it generates sample code. That sample code is still based on GWT-RPC. Is it possible to generate the sample code with Request Factory? Thanks, Bala -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Does the GWT magic ever fail you?
My company has taken the decision to move from Flex to HTML5/ Javascript for a corporate web-app. So far we are very impressed with GWT and are thinking of utilizing it, especially since we are mostly a Java house. My biggest concern, however, is the wonderful magic that is the GWT Javascript compiler. If this thing produces production code that is different from the development code, or if the Javascript isn't aligned with the Java, I fear we will be unable to effectively diagnose/debug the problem. Has this been a problem for folks? Is there some other concern we should be aware of? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Does the GWT magic ever fail you?
Well there are some cases where the development code is not the same as the executed Javascript code. You'd typically notice this around async RPC calls where the order of events during Java based debugging session is different from the Javascript. But then again this is something you'd have to design around and always be mindful of async operations. Just because it seems to work in development mode does not necessarily ensure it'll behave the same with javascript, but if you know how to properly deal with non-sequential operations, yoiu should be okay. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/e9uN6tV0GmYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 HTTP RequestBuilder
Hi I am using GWT HTTP RequestBuilder in my application to exchange information between 2 servers, out of which 1 server hosts my GWT application and another is general server which hosts j2ee application both servers domains are as follows server 1. http://factory-dev03.example.com:8111/ server 2. http://factory-dev109.example.com:8111/ in IE browser i am getting response with status code as '200' from server 2 but in FireFox and Safari i am getting response with status code as '0'. i have gone through same origin policy (http://code.google.com/ webtoolkit/doc/2.0/ FAQ_Server.html#What_is_the_Same_Origin_Policy,_and_how_does_it_affect_GWT) and i also added add-linker name=xs/ in application.gwt.xml file but no luck. below is my code for reference String url=http://factory-dev03.example.com:8111/CustomerUI-dev03/ ims_ui/ui/WizardJavaScriptUpdated.jsp; RequestBuilder builder = new RequestBuilder(RequestBuilder.GET, URL.encode(url)); Request request = builder.sendRequest(, new RequestCallback() { public void onError(Request request, Throwable exception) { Window.alert(Request Builder Failed); } public void onResponseReceived(Request request, Response response) { Window.alert(Request Builder passed+response.getStatusCode()); } }); Thanks kumar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Question for experts: Pluggable gwt module CompileModule class XXXX.gwtar file.
OK this one is for GWT experts!! I have a GWT app that has widgets. We are shipping 5 widgets out of the box. The widgets also depend on our API which act as simple DAO pojos Now when this gets outs to customers. They have a requirement where they want to create their own widgets (as GWT modules) and use them inside our GWT app. Of course, to make things complicated, we cannot give them the source of our app or the API. Now I know a more prevalent solution here is to have a JSNI API of some sort to have the widget and our app talk to each other, document it and have it rest in peace. But we are also looking around to see if there are alternatives. For example, looking at this CompileModule class http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/dev/CompileModule.java?r=10304 Can this be used to mickey mouse our sources. It looks like this compiler will / could compile a module into a .gwtar file and in theory that might all customers would need to compile there custom module. Any thoughts? Are we on to something here or is it dead end. thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yWCwYvl-0uQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 the GWT magic ever fail you?
In my experience, debugging has been OK as long as you are savvy with dev mode. We also have our own exceptions and use GWT logger extensively. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/4sLDJWmzpP8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Dashboard Development
Do you still need help with this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VtyKgLySv3sJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 the GWT magic ever fail you?
On 11/11/2011 12:39 PM, David Vree wrote: My company has taken the decision to move from Flex to HTML5/ Javascript for a corporate web-app. So far we are very impressed with GWT and are thinking of utilizing it, especially since we are mostly a Java house. My biggest concern, however, is the wonderful magic that is the GWT Javascript compiler. If this thing produces production code that is different from the development code, or if the Javascript isn't aligned with the Java, I fear we will be unable to effectively diagnose/debug the problem. Not to belittle your observation, but replace Javascript with object code and Java with C. It's a good question - how much do you trust your compiler? As a profession, we've apparently dealt with this issue in the past: One thing we do is to disable optimizations. GWT has a compiler mode for that. However, it produces more code, and one aspect of GWT is to reduce code bloat. Most real-world compilers have similar a trade-off. Another thing we do is instrument our code. For example, GWT supports the java.util.logger framework. We also employ test-driven development. There is the GWTTest environment as well as other, superb test frameworks. Has this been a problem for folks? Is there some other concern we should be aware of? I'd suggest, if your group hasn't done so, that you create a proof-of-concept, deploy it to a select group of blind men, and ask them to describe the resulting Elephant. Bueno Suerte, jec -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Question for experts: Pluggable gwt module CompileModule class XXXX.gwtar file.
On 11/11/2011 01:07 PM, KD wrote: OK this one is for GWT experts!! Maybe GQuery plugins? No doubt there will be rework required. I have a GWT app that has widgets. We are shipping 5 widgets out of the box. The widgets also depend on our API which act as simple DAO pojos Now when this gets outs to customers. They have a requirement where they want to create their own widgets (as GWT modules) and use them inside our GWT app. Of course, to make things complicated, we cannot give them the source of our app or the API. Now I know a more prevalent solution here is to have a JSNI API of some sort to have the widget and our app talk to each other, document it and have it rest in peace. But we are also looking around to see if there are alternatives. For example, looking at this CompileModule class http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/dev/CompileModule.java?r=10304 Can this be used to mickey mouse our sources. It looks like this compiler will / could compile a module into a .gwtar file and in theory that might all customers would need to compile there custom module. Any thoughts? Are we on to something here or is it dead end. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DialogBoxes and MenuBars . . . zIndexing a bad thing?
All, I'm working on my ever-evolving bit of code, and have run across something of an issue. My apologies for the lengthy prelude before I get to the actual question. Firstly, I have a full-browser-screen display - a DockLayoutPanel. Within it are a: MenuBar - NORTH FlowPanel - SOUTH Now, there's a big empty section in the middle, which is fine because that's what I want. The MenuBar looks like a typical application - File, with sub-items Open, Close, etc. Edit, with sub-items Copy, Paste, etc. I have also created a, for lack of a better term, WindowPrototype class that extends DialogBox. It has a close button, minimize, and maximize. I have not yet done draggable resizing with the corners and edges. So, my test code basically, when an item in the menu is chosen, it launches one of my WindowPrototype objects (which is mostly empty, just some text to show which item in the menu launched it). Now, of course, by default, DialogBox does not allow popping up of non- modal instances of itself over each other. The LAST one shown is ALWAYS on top - clicking on a partially hidden one does NOT bring it to the top. To get around this, I used a trick I came across on a web-search which puts a static int in the class that extends DialogBox (in my case, the WindowPrototype class), and increments it every time a new WindowPrototype is opened, or one is clicked to be brought to the top. This actually works fine as far as my WindowPrototype objects are concerned. However, when I do this, then there's a problem with the MenuBar items. If I click on a menu item, say File, then the subitems (Open, Close, etc) are shown UNDER any WindowPrototype object that happens to be in the area - the WindowPrototypes will obscure the menu items. Now that I've written half a novel, here's my question: How do I add the ability for my WindowPrototype objects to be clicked on to bring to the top, but ALSO make sure that the MenuBar items are ALWAYS on top of any/all WindowPrototypes that may be on the screen? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT HTTP RequestBuilder
Sure you got a 200 in IE? IE should also give some error if you try to make a request to a different domain/port. Also shouldn't your code snippet use factory-dev109.example.com if server 2 is the server you want to request? Well but in general you have three options to make cross domain requests: 1.) You have to use a reverse proxy so you can make requests to external servers without leaving the domain which serves the GWT application. 2.) Make a GWT request to server 1 (works because there is no SOP) and then let your server side code on server 1 do a request to server 2 using plain java. 3.) Use JsonpRequestBuilder. But this would require some rewrite of your server 2 code as you now need to provide your data as JSON and also wrap this JSON data in a javascript callback function whose name is send by GWT to your server 2 via a GET parameter. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/XjWs7LvJVy8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: DialogBoxes and MenuBars . . . zIndexing a bad thing?
Well, this is embarrassing, but maybe the answer will help someone else who's run into the same problem. Override the onBrowserEvent() method in my own subclass of DialogBox as follows: @Override public void onBrowserEvent(Event event) { switch(event.getTypeInt()) { case Event.ONMOUSEDOWN: hide(); show(); } super.onBrowserEvent(event); } And that does it, with no ill effects in terms of obscuring the MenuBar objects. Sheesh, I must now hold the record for shortest time between someone posting and answering their own question! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[ANN] Scala+GWT 0.1-M3 released
Hello, I'm excited to announce second milestone of Scala+GWT project. Download (and then follow README instructions) from here: http://goo.gl/RZdVT Release notes (included below) can be found here: http://goo.gl/H8san Scala+GWT 0.1-M3 The third official milestone release from the Scala+GWT project. You can check release notes for previous release [here]( http://scalagwt.github.com/releasenotes). This release consists of just samples packaged along with snapshot of jars needed to build them. Those jars include our own version of both GWT and Scala. This release doesn't come with any official artifacts apart from the tarball you can download from [ http://github.com/scalagwt/scalagwt-sample](http://github.com/scalagwt/scalagwt-sample) . ### Changes since last release * Eclipse support for development mode ### Eclipse support We've integrated [Scala IDE](http://www.scala-ide.org/) so you can develop GWT applications in Scala using Eclipse. Development mode is supported. ### Known issues * many patterns in pattern matching logic are not supported (should be fixed in next release) examples include * pattern alternatives (`|`) * guard patterns (`if` guard) * in some cases (like gwtdlx sample) optimizations enabled in gwt lead to broken JS code ### Reporting issues We appreciate feedback. If you find something that doesn't work (e.g. crashes either Scala or GWT compiler) or JavaScript gives you weird results we'd love to hear about it. The most effective way of reporting issues is to modify `Hello World` sample to show your problem. Exact steps are: 1. Fork `scalagwt-sample` repo from here: http://github.com/scalagwt/scalagwt-sample 2. Clone it: `git clone git:// github.com/YOUR_USER_NAME/scalagwt-sample.git` 3. Modify hello world sample located in `src/com/google/gwt/sample/jribble/client` 4. Commit and publish your example. 5. File a ticket here: http://github.com/scalagwt/scalagwt-sample and mention your fork while explaining your issue. If you want to discuss your problem before reporting it, join [scala...@googlegroups.com](http://groups.google.com/group/scalagwt). ### What if I don't know GWT? That shouldn't be a big problem. You've got Scala source code for samples that show basic functionality and provides basic setup. You may want to start with changing hello world sample, recompiling it and testing in a browser. ### What if I don't know Scala? You might still want to check out samples to see how they might look in a language other than Java. We'll be cutting a lot more of the boilerplate code once GWT libraries and APIs receive enough of Scala's [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766). ### Need help? Want to discuss something? Join us here: [scala...@googlegroups.com]( http://groups.google.com/group/scalagwt). Happy playing! *Scala+GWT team* -- Grzegorz Kossakowski -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is there a widget which instead fileinput?
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/FileUpload.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/VL6dmVNOJs0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 is current state/fix of/for deprecated PlaceController constructor
On Wednesday, November 9, 2011 5:35:24 PM UTC+1, Thomas Broyer wrote: (I unfortunately don't have any real experience on this though, as we're stuck with an old version of GWT before things were moved to web.bindery; too many customizations –yes, you could say abuses– of RF that make it hard to update) FWIW, I shouldn't work on that Armistice Day (holiday in France), but this has been haunting me for weeks, so I took some time to (again) try to update our app to the latest and greatest (a.k.a. latest trunk). I blindly replaced all EventBus, AutoBean and RequestFactory imports from com.google.gwt to com.google.web.bindery, then fixed the compile errors by using the FQCN on activity's start() method, and in a few places I had to revert to com.google.gwt.event.shared.HandlerRegistration (when using widget events, or defining our own widget events; where we used com.google.gwt.event.shared.GwtEvent). That was enough to fix both javac and GWT Compiler. Now I have many server-side RequestFactory tweaks to port to the new RequestFactory; and that won't be that easy unfortunately... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/fnYVC6l6d8UJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using DockPLayoutPanel - can I get an autoexpanding south widget?
Don't use DockLayoutPanel. Use LayoutPanel instead. It gives you complete control: you can make any area expandable. Personally, I never use DockLayoutPanel: it adds no useful functionality compared to LayoutPanel, while the size of the compile code jumps if you use both of these widgets. If you want the menu to wrap, however, the best solution is to use a FlowPanel (or HTMLpanel, if you use UIBinder), and CSS rules for your menu items. Then the browser will do the work for you. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Dart and GWT
Hi Eric, I saw the Dart Editor (Linux, Mac, Win). It's a standalone editor based on Eclipse UI. Is there a real Dart plugin for Eclipse ? If not, do you plan to provide one ? 2011/11/11 Eric Clayberg (Google) clayb...@google.com See... http://googlewebtoolkit.blogspot.com/2011/11/gwt-and-dart.html The Google Web Toolkit team has been asked recently about our plans following the announcement of the Dart programming languagehttp://dartlang.org/ a few weeks ago. Dart and GWT both share the goal of enabling structured web programming. In fact, many of the same engineers who brought you GWT are working on Dart. We view Dart as an ambitious evolution of GWT’s mission to make web apps better for end usershttp://code.google.com/webtoolkit/makinggwtbetter.html#introduction, and we’re optimistic about its potential. As Dart evolves and becomes ready for prime time, we anticipate working closely with the GWT developer community to explore Dart. Meanwhile, rest assured that GWT will continue to be a productive and reliable way to build the most ambitious web apps — and even games like Angry Birds. Key projects within Google rely on GWT every day, and we plan to continue improving (and open-sourcing) GWT based on their real-world needs. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/WzBPyXZ1GdgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] FF8 Devmode Plugin (issue1589803)
Reviewers: conroy, Description: FF8 Devmode Plugin Please review this at http://gwt-code-reviews.appspot.com/1589803/ Affected files: M plugins/xpcom/ExternalWrapper.cpp M plugins/xpcom/Makefile A plugins/xpcom/VisualStudio/ff80-xpcom.vcproj M plugins/xpcom/install-template.rdf M plugins/xpcom/prebuilt/extension/chrome.manifest A plugins/xpcom/prebuilt/ff80/include/IOOPHM.h M plugins/xpcom/prebuilt/update.rdf -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: FF8 Devmode Plugin (issue1589803)
I'll reiterate my question: is there any plan to move to js-ctypes? or is there some better alternative? or are binary components and recompiling every 6 weeks a necessary evil? I mean, have you looked at the problem yet? and if so what's the outcome? and is there a plan on your side? If you believe js-ctypes could work, but do not have time/resources to invest in moving to them, then maybe I could try it on my side. But if you already looked at it and know that js-ctypes won't work, then I won't invest time. And if you have a plan to do the move on your side, then I'll wait too. http://gwt-code-reviews.appspot.com/1589803/diff/1/plugins/xpcom/Makefile File plugins/xpcom/Makefile (right): http://gwt-code-reviews.appspot.com/1589803/diff/1/plugins/xpcom/Makefile#newcode138 plugins/xpcom/Makefile:138: MOZALLOC_DLLFLAGS = -lmozalloc In http://gwt-code-reviews.appspot.com/1560803/ we talked about refactoring the MOZALLOC_DLLFLAGS, MOZJS_DLLFLAGS and ALLARCHCFLAGS before the 'ifeq ($(BROWSER),FF40)' (just after line 94) instead of copy/pasting them in each version. http://gwt-code-reviews.appspot.com/1589803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: FF8 Devmode Plugin (issue1589803)
Brian and Ray has been experimenting with different approaches to debug dev mode that steer away from browser plugins / APIs. They have had some success but from what I understand it is still in a very early stage. My plan is to keep FF going as long as possible in the mean time. -Alan On Fri, Nov 11, 2011 at 2:16 AM, t.bro...@gmail.com wrote: I'll reiterate my question: is there any plan to move to js-ctypes? or is there some better alternative? or are binary components and recompiling every 6 weeks a necessary evil? I mean, have you looked at the problem yet? and if so what's the outcome? and is there a plan on your side? If you believe js-ctypes could work, but do not have time/resources to invest in moving to them, then maybe I could try it on my side. But if you already looked at it and know that js-ctypes won't work, then I won't invest time. And if you have a plan to do the move on your side, then I'll wait too. http://gwt-code-reviews.**appspot.com/1589803/diff/1/** plugins/xpcom/Makefilehttp://gwt-code-reviews.appspot.com/1589803/diff/1/plugins/xpcom/Makefile File plugins/xpcom/Makefile (right): http://gwt-code-reviews.**appspot.com/1589803/diff/1/** plugins/xpcom/Makefile#**newcode138http://gwt-code-reviews.appspot.com/1589803/diff/1/plugins/xpcom/Makefile#newcode138 plugins/xpcom/Makefile:138: MOZALLOC_DLLFLAGS = -lmozalloc In http://gwt-code-reviews.**appspot.com/1560803/http://gwt-code-reviews.appspot.com/1560803/we talked about refactoring the MOZALLOC_DLLFLAGS, MOZJS_DLLFLAGS and ALLARCHCFLAGS before the 'ifeq ($(BROWSER),FF40)' (just after line 94) instead of copy/pasting them in each version. http://gwt-code-reviews.**appspot.com/1589803/http://gwt-code-reviews.appspot.com/1589803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: FF8 Devmode Plugin (issue1589803)
On Fri, Nov 11, 2011 at 5:16 AM, t.bro...@gmail.com wrote: I'll reiterate my question: is there any plan to move to js-ctypes? or is there some better alternative? or are binary components and recompiling every 6 weeks a necessary evil? I mean, have you looked at the problem yet? and if so what's the outcome? and is there a plan on your side? If you believe js-ctypes could work, but do not have time/resources to invest in moving to them, then maybe I could try it on my side. But if you already looked at it and know that js-ctypes won't work, then I won't invest time. And if you have a plan to do the move on your side, then I'll wait too. From a brief look, it seems there is no way to get a callback when an object is no longer referenced -- this is required to free the Java object that has been wrapped on the JS side once it is no longer referenced. It also wasn't clear how to create a JS object that wraps a Java object and intercept all the methods, but I assume that part can be done in JS. Aside from that, it looks like it is just moving parts of the problem around. Instead of having FF load the correct binary based on the platform, it looks like it is up to your JS code to figure out what to load (though the examples seem inconsistent, so maybe it isn't that bad). All the calls from the plugin to the JS engine will have to be proxied through the JS code (for example, I didn't see how to allocate a JS string), which will mean a lot of boilerplate and a likely performance impact. So, assuming the finalizer problem can be overcome, I think it would be possible but would be a lot of work to get worse performance. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fix: WorkingWithMaven wiki no longer valid for Eclipse Indigo
Wiki page in question: http://code.google.com/p/google-web-toolkit/wiki/WorkingWithMaven Today I updated my Eclipse plugins and when I tried to update the m2e connector for build-helper-maven-plugin I got an error that the an older version of org.eclipse.jdt couldn't be found. After some digging around it seems that the m2e plugin is now hosted by Eclipse at: http://download.eclipse.org/technology/m2e/releases and the m2e connector for build-helper-maven-plugin is now installed by going to Preferences Maven Discovery Open Catalog and selecting the build helper from that menu. Trying to setup a Maven environment in Eclipse Indigo the way the wiki page (http://code.google.com/p/google-web-toolkit/wiki/ WorkingWithMaven) suggest seems to no longer be valid. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [ANN] Scala+GWT 0.1-M3 released
Hello, I'm excited to announce second milestone of Scala+GWT project. Download (and then follow README instructions) from here: http://goo.gl/RZdVT Release notes (included below) can be found here: http://goo.gl/H8san Scala+GWT 0.1-M3 The third official milestone release from the Scala+GWT project. You can check release notes for previous release [here]( http://scalagwt.github.com/releasenotes). This release consists of just samples packaged along with snapshot of jars needed to build them. Those jars include our own version of both GWT and Scala. This release doesn't come with any official artifacts apart from the tarball you can download from [ http://github.com/scalagwt/scalagwt-sample](http://github.com/scalagwt/scalagwt-sample) . ### Changes since last release * Eclipse support for development mode ### Eclipse support We've integrated [Scala IDE](http://www.scala-ide.org/) so you can develop GWT applications in Scala using Eclipse. Development mode is supported. ### Known issues * many patterns in pattern matching logic are not supported (should be fixed in next release) examples include * pattern alternatives (`|`) * guard patterns (`if` guard) * in some cases (like gwtdlx sample) optimizations enabled in gwt lead to broken JS code ### Reporting issues We appreciate feedback. If you find something that doesn't work (e.g. crashes either Scala or GWT compiler) or JavaScript gives you weird results we'd love to hear about it. The most effective way of reporting issues is to modify `Hello World` sample to show your problem. Exact steps are: 1. Fork `scalagwt-sample` repo from here: http://github.com/scalagwt/scalagwt-sample 2. Clone it: `git clone git:// github.com/YOUR_USER_NAME/scalagwt-sample.git` 3. Modify hello world sample located in `src/com/google/gwt/sample/jribble/client` 4. Commit and publish your example. 5. File a ticket here: http://github.com/scalagwt/scalagwt-sample and mention your fork while explaining your issue. If you want to discuss your problem before reporting it, join [scala...@googlegroups.com](http://groups.google.com/group/scalagwt). ### What if I don't know GWT? That shouldn't be a big problem. You've got Scala source code for samples that show basic functionality and provides basic setup. You may want to start with changing hello world sample, recompiling it and testing in a browser. ### What if I don't know Scala? You might still want to check out samples to see how they might look in a language other than Java. We'll be cutting a lot more of the boilerplate code once GWT libraries and APIs receive enough of Scala's [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766). ### Need help? Want to discuss something? Join us here: [scala...@googlegroups.com]( http://groups.google.com/group/scalagwt). Happy playing! *Scala+GWT team* -- Grzegorz Kossakowski -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: FF8 Devmode Plugin (issue1589803)
On Friday, November 11, 2011 4:38:23 PM UTC+1, John A. Tamplin wrote: On Fri, Nov 11, 2011 at 5:16 AM, t.br...@gmail.com wrote: I'll reiterate my question: is there any plan to move to js-ctypes? or is there some better alternative? or are binary components and recompiling every 6 weeks a necessary evil? I mean, have you looked at the problem yet? and if so what's the outcome? and is there a plan on your side? If you believe js-ctypes could work, but do not have time/resources to invest in moving to them, then maybe I could try it on my side. But if you already looked at it and know that js-ctypes won't work, then I won't invest time. And if you have a plan to do the move on your side, then I'll wait too. From a brief look, it seems there is no way to get a callback when an object is no longer referenced -- this is required to free the Java object that has been wrapped on the JS side once it is no longer referenced. It also wasn't clear how to create a JS object that wraps a Java object and intercept all the methods, but I assume that part can be done in JS. Re. intercepting methods, it's possible using proxies (will be in EcmaScript 6; usable since Firefox 4, but discouraged): https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Proxy and the non-standard __noSuchMethod__: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object/NoSuchMethod Aside from that, it looks like it is just moving parts of the problem around. Instead of having FF load the correct binary based on the platform, it looks like it is up to your JS code to figure out what to load (though the examples seem inconsistent, so maybe it isn't that bad). As I understand it, in the case of the DevMode, only the common, browser-independent, part would be binary (there might not even be a need for glue code, or only for calling back to the JS engine) and everything else would be done in JS; so it'd save us from compiling one version of the binary component per Gecko SDK version, only one per OS. So releasing for a new version of Firefox would mean, in the best case, only bumping the maxVersion in the update.rdf; something that can be done by anyone locally, and you no longer have to wait for the SDK to be released. That'd also make it possible (and really easy) to test/use the plugin on beta or aurora versions. All the calls from the plugin to the JS engine will have to be proxied through the JS code (for example, I didn't see how to allocate a JS string), which will mean a lot of boilerplate and a likely performance impact. So, assuming the finalizer problem can be overcome, I think it would be possible but would be a lot of work to get worse performance. Searching a bit on the MDN, I don't see how the finalizer issue could be worked around, so I guess it's a show-stopper. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Introduce a temp AST node intended to hold the fragment number (issue1590803)
Reviewers: cromwellian, Description: Introduce a temp AST node intended to hold the fragment number Please review this at http://gwt-code-reviews.appspot.com/1590803/ Affected files: M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java M dev/core/src/com/google/gwt/dev/jjs/ast/JMethod.java A dev/core/src/com/google/gwt/dev/jjs/ast/JNumericEntry.java M dev/core/src/com/google/gwt/dev/jjs/ast/JVisitor.java M dev/core/src/com/google/gwt/dev/jjs/impl/CloneExpressionVisitor.java M dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java M dev/core/src/com/google/gwt/dev/jjs/impl/ReplaceRunAsyncs.java M dev/core/src/com/google/gwt/dev/js/JsHoister.java M dev/core/src/com/google/gwt/dev/js/JsToStringGenerationVisitor.java A dev/core/src/com/google/gwt/dev/js/ast/JsNumericEntry.java M dev/core/src/com/google/gwt/dev/js/ast/JsVisitor.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors