Re: Development view Open / Open With don't work
which version of gwt are you running? 2010/10/11 Rud rudmerr...@gmail.com I am using the GWT plugin in Eclipse but seeing different behariors on two machines. On one machine after running my app the development view open / open with menu brings up the application in a browser. On the other machine it won't. Instead I have to do the copy URL and past it into the browser. Both machines are running the same version of Eclipse and OS (Win XP SP3) with Explorer and Chrome installed. Neither browser is invoked with the 'open with'. Any ideas why the difference? Rud http://www.mysticlakesoftware.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie - GWT.getHostPageBaseURL() + greetingService?input= + string);
Hello Ray, if you are wondering what url the gwt async uses, you can see this in firebug (network tab). I think you are missing your module in the url. Dont use GWT.getHostPageBaseURL() use GWT.getModuleBaseURL() and you should be fine. -Daniel Kurka 2010/10/11 Ray Tayek rta...@ca.rr.com At 03:47 PM 10/10/2010, you wrote: hi, i would like to add a timeout to some of my async callbacks. i am using a hacked up version of greet server. the normal code: greetingService.greetServer(id, new AsyncCallbackString() { ... } ... using the second (please see code below), the code: GWT.getHostPageBaseURL() + greetingService?input= + string); returns: http://127.0.0.1:/greetingService?input=Command1 the url that the browser uses is: http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997 can someone tell me the correct url to use or how to fix the code to get it programatically? i'm geting a 404, the console says: [WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes the complete console log is below. so i am trying to find out what the correct url is. the other normal async calls work fine, but i do not know what url that uses. thanks (Rtecg2.java:61) 2010-10-10 16:17:31,640 [INFO ] got wire: command0 fail! (Rtecg2.java:103) 2010-10-10 16:17:31,640 [INFO ] http://127.0.0.1:/greetingService?input=command0id [WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes Request headers Host: 127.0.0.1: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729) Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Content-Type: text/plain; charset=utf-8 Referer: http://127.0.0.1:/rtecg2/hosted.html?rtecg2 Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1401 (Rtecg2.java:109) 2010-10-10 16:17:31,671 [ERROR] fail! --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Set up of GWT site
mumble mumble ..i'm not sure, but i think that the example does not particularly suit since SimplePanel can have only one Widget; so you can only add one hyperlynk (About Me, about), let's say, and not the (feedback) one, so you cannot switch. Moreover, if you decide to change panel and use the Vertical one, you don't have the setWidget method. On 8 Ott, 16:25, Brian hibr...@gmail.com wrote: You just 'new' your class and add it where you want to place it. for instance, as a simple example you'd could have: SimplePanel mMyPanel; public void onModuleLoad() { mMyPanel = new SimplePanel(); mMyPanel.add(new Hyperlink(About Me, about)); RootPanel.get().add(mMyPanel); History.addValueChangeHandler(this); } public void onValueChange(ValueChangeEvent event) { if (event.getValue().equals(about)){ AboutPage ap = new AboutPage(); // this is your composite, in AboutPage.java mMyPanel.clear(); // get rid of whatever was in there mMyPanel.setWidget(ap); // and replace it with your about page } else if (event.getValue().equals(feedback)){ FeedbackPage fp = new FeedbackPage(); // this is another of your composites mMyPanel.clear(); mMyPanel.setWidget(fp); } else {... } } None of this will open a new page. You're just replacing widgets already in the DOM with new widgets, based on the history. -Brian On Oct 8, 4:54 am, alexoffspring alessales...@gmail.com wrote: Great. And supposing that i have already created my composite widget into a new .java class. How do i call this new page?? Window.open(..) ?? And if i don't want to open a new page, how can i hide the old page components? Thanks in advance On 6 Ott, 22:10, Brian hibr...@gmail.com wrote: Generally in a gwt app, all links stay within your application (all within the same html page). The links are just tokens that are handled by your single app (which is hosted in one page). In 100% pseudo code, you'd have something like: whenHistoryChanged(token){ if (token.equals(about)){ show(about screen); } else if (token.equals(feeback)){ show(feedback screen); } } Take a look at:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... In the onValueChange method, you compare the event.getValue() with your tokens (about, feedback etc) and replace the content with the content for that page. You would probably create a new 'widget' or composite widget, for each of your pages. And yeah, each page would probably be in its own .java file. On Oct 6, 3:46 pm, nick kov nickko...@gmail.com wrote: This question is for the developers that are more experienced with GWT. I am wondering exactly how you set a site up in terms of navigation? For example with HTML I would naturally use links to travel between pages, etc. But with GWT, if somebody clicks on a link on your site, do you guys just hide() the widgets and load new ones. Or do you take them to a different page entirely? Also I am wondering how the structure of a neat site looks using GWT. For example, do I create a new .java file for each page that exists on the site? I'm just relatively new to this and need some pointers. Thanks!- Nascondi testo citato - Mostra testo citato -- Nascondi testo citato - Mostra testo citato - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: class HorizontalPanel has no appropriate setUifield() method
On 11 Ott, 07:41, Prashant Hegde prashant.he...@gmail.com wrote: In your UiBinder XML file seems like you have a typo - Change *uifield *to * ui:field* I couldn't believe I am so thoughtless... Thanks a lot Prashant -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT portlets application
Thanks for the answers but finally I found a gwt library to make simple portlets, better than GWT Windows. This is GWT Drag-and-Drop : http://code.google.com/p/gwt-dnd/ Thanks again. Christophe On 7 oct, 21:55, Armishev, Sergey sarmis...@idirect.net wrote: If you want multi window interface with ability to drag/drop/minimize/maximize take a look at GWT window manager. I used it in my web application and my customers are very happyhttp://www.gwtwindowmanager.org/ Here is a demo URLhttp://www.gwtwindowmanager.org/demo/GwmDemo.html -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of christophe.jour...@stambia.com Sent: Thursday, October 07, 2010 7:30 AM To: Google Web Toolkit Subject: GWT portlets application Hi, I want to make an application with portlets. So I want the possibility to drag and drop any portlet in some predefined places. Is it possible with only GWT or is there a library wich make it simple to do? I've seen the GWT Google Portlets project but it seems we can't drag and drop the windows. I've also seen that SmartGWT can make portlets but for many reasons I don't want to use SmartGWT. Thanks. Christophe. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. /PREBRspan style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366' _BR This electronic message and any files transmitted with it containsBR information from iDirect, which may be privileged, proprietaryBR and/or confidential. It is intended solely for the use of the individualBR or entity to whom they are addressed. If you are not the originalBR recipient or the person responsible for delivering the email to theBR intended recipient, be advised that you have received this emailBR in error, and that any use, dissemination, forwarding, printing, orBR copying of this email is strictly prohibited. If you received this emailBR in error, please delete it and immediately notify the sender.BR _ /SPANPRE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT can't compile for simple example
It's seem the problem coming from GWT complier can't get or loss main class (Testgwt ) to bind with generated uibinder code (Testgwt_BinderImpl.java). But when I move the uibinder (Testgwt.ui.xml) to another class (HelloWorld.java + HelloWorld.ui.xml) and then call it in main class, GWT complier can build it sucessfully. ===NEW Testgwt.java== package testgwt.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootLayoutPanel; /** * Entry point classes define codeonModuleLoad()/code. */ public class Testgwt implements EntryPoint { /** * This is the entry point method. */ public void onModuleLoad() { HelloWorld hello = new HelloWorld(); RootLayoutPanel root = RootLayoutPanel.get(); root.add(hello); } } This is GWT's bug or I missed some configurations??? Thanks in advanced. Hung On Oct 11, 9:33 am, heros lvh...@gmail.com wrote: I have tried complied a simple example, but unsuccessful. Below is the enviroment the source files: === GWT 2.0.4 App Engine 1.3.7 ===Testgwt.java= package testgwt.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.user.client.ui.HTMLPanel; import com.google.gwt.user.client.ui.RootLayoutPanel; /** * Entry point classes define codeonModuleLoad()/code. */ public class Testgwt implements EntryPoint { interface Binder extends UiBinderHTMLPanel, Testgwt { } private static final Binder binder = GWT.create(Binder.class); /** * This is the entry point method. */ public void onModuleLoad() { // Create the UI defined in Testgwt.ui.xml. HTMLPanel outer = binder.createAndBindUi(this); // Add the outer panel to the RootLayoutPanel, so that it will be // displayed. RootLayoutPanel root = RootLayoutPanel.get(); root.add(outer); }} ==Testgwt.ui.xml ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' xmlns:g='urn:import:com.google.gwt.user.client.ui' g:HTMLPanel divHello/div /g:HTMLPanel /ui:UiBinder ===Testgwt.gwt.xml== ?xml version=1.0 encoding=UTF-8? module rename-to='testgwt' !-- Inherit the core Web Toolkit stuff. -- inherits name='com.google.gwt.user.User'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='testgwt.client.Testgwt'/ !-- Specify the paths for translatable code -- source path='client'/ /module ==ERROR== Compiling module testgwt.Testgwt Scanning for additional dependencies: file:/C:/Working/GoogleApps/ test/testgwt/src/testgwt/client/Testgwt.java Adding '2' new generated units Validating newly compiled units [ERROR] Errors in 'generated:// 3A2648B040DA67E0B1A95A005D54476A/testgwt/client/ Testgwt_BinderImpl.java' [ERROR] Line 8: No source code is available for type testgwt.client.Testgwt; did you forget to inherit a required module? See snapshot: C:\DOCUME~1\HUNGLE~1\LOCALS~1\Temp \Testgwt_BinderImpl1062054062811714171.java [ERROR] Unable to find recently-generated type 'testgwt.client.Testgwt_BinderImpl [ERROR] Errors in 'file:/C:/Working/GoogleApps/test/testgwt/src/ testgwt/client/Testgwt.java' [ERROR] Internal compiler error java.lang.RuntimeException: Unable to commit generated files at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java: 131) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.process(AbstractCompiler.java:200) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java: 444) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:123) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox $CompilerImpl.compile(AbstractCompiler.java:234) at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access $200(AbstractCompiler.java:109) at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java: 522) at
Re: Eclipse, JSNI and Alt+Shift+F
On 9 oct, 04:05, Sandler smike...@gmail.com wrote: Hi, im not quite sure what i did, but native methods with a jsni block get handled like normal comments. This looks really terrible when i try to format the classes. Is there any way to get rid of that? Don´t want to reinstall eclipse. Code Style - Formatter helped nothing. Please help!! ^^ Make sure your GWT-Java file opens in the GWT Java Editor so it understands JSNI. Right-click - Open with... - GWT Java Editor (it should be automatic if your project has GWT enabled in its preferences) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integration of hibernate with GWT
On 9 oct, 18:22, Y2i yur...@gmail.com wrote: Thomas, when you say it shouldn't be that hard to port to any server, what do you mean by the server? A javax.servlet container like Jetty or an application server, like Geronimo, Glassfish, etc.? I meant javax.servlet container (does that really make a difference? I don't use application servers so I really don't know; I only know I don't need one ;-) ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Development view Open / Open With don't work
On 11 oct, 02:07, Rud rudmerr...@gmail.com wrote: I am using the GWT plugin in Eclipse but seeing different behariors on two machines. On one machine after running my app the development view open / open with menu brings up the application in a browser. On the other machine it won't. Instead I have to do the copy URL and past it into the browser. Both machines are running the same version of Eclipse and OS (Win XP SP3) with Explorer and Chrome installed. Neither browser is invoked with the 'open with'. Any ideas why the difference? Do you have a browser configured in Eclipse's preferences? (under General - web browser) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: some newbie questions
On 9 oct, 04:15, Ray Tayek rta...@ca.rr.com wrote: hi, starting a project using eclipse galileo and a week old download of gwt eclipse plugin.. i sometime get a: A widget that has an existing parent widget may not be added to the detach list error when doing the following type of thing: //div id=barstatic bar/div Label bar = new Label(bar label); bar.getElement().setId(barid); RootPanel.get(bar).add(bar); RootPanel rp = RootPanel.get(barid); You cannot have root widgets whose elements are nested (i.e. there's no parent/child relationship between the widgets, but there's one between their elements in the DOM). There are several reasons (including FUD) and there has never been a compelling argument for allowing it. The only exception is RootPanel.get() (without an ID argument). this usually fails. doesn't seem to matter whether bar is a panel, an html, or a label (does seem to work with buttons though). seems like i am not using gwt properly and breaking some rule like:http://markmail.org/message/l3okzeqycanf5alg can someone point me to some doc on this? See issue 3552 (RootPanel.get() is very similar to SomeWidget.wrap() methods) also, i am using gwt-logger. when this crashes, i get this big grey thing that says: GWT Code Server Disconnected which hides the log stiff and my html stuff. i have poor vision, is there some way to move the thing that has the GWT Code Server Disconnected so i can see what's underneath? In Firebug or any developer tool, set display:none on the DIV. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie - GWT.getHostPageBaseURL() + greetingService?input= + string);
At 11:22 PM 10/10/2010, you wrote: Hello Ray, if you are wondering what url the gwt async uses, you can see this in firebug (network tab). cool I think you are missing your module in the url. Dont use GWT.getHostPageBaseURL() use GWT.getModuleBaseURL() and you should be fine. that and changing greetingService to greet gets me: http://127.0.0.1:/rtecg2/greet?input=Command2, and a 405 HTTP method GET is not supported by this URL . changing get to put does not help trying a post , gets a 505: javax.servlet.ServletException: Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt-rpc'. i am sending just a string. my code (please see below) tries to build a request with a timeout. the normal code that works uses: greetingService.greetServer(id, new AsyncCallbackString() { ... } thanks private void sendStringToServer(final String string, final Label label) { Log.info(sending: + string + , label= + label); final String request = GWT.getModuleBaseURL() + greet?input= + string; Log.info(request); RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.POST, request); requestBuilder.setTimeoutMillis(6); RequestCallback requestCallback = new RequestCallback() { @Override public void onError(Request request, Throwable exception) { Log.error(fail! + exception); label.setText(fail! + exception); } @Override public void onResponseReceived(Request request, Response response) { int statusCode = response.getStatusCode(); if (statusCode != Response.SC_OK) { this.onError(request, null); return; } final String answer = response.getText(); Log.info(answer= + answer); if (label != null) label.setText(answer); } }; try { requestBuilder.sendRequest(null, requestCallback); } catch (RequestException e) { requestCallback.onError(null, e); } } -Daniel Kurka 2010/10/11 Ray Tayek mailto:rta...@ca.rr.comrta...@ca.rr.com At 03:47 PM 10/10/2010, you wrote: hi, i would like to add a timeout to some of my async callbacks. i am using a hacked up version of greet server. the normal code: greetingService.greetServer(id, new AsyncCallbackString() { ... } ... using the second (please see code below), the code: GWT.getHostPageBaseURL() + greetingService?input= + string); returns: http://127.0.0.1:/greetingService?input=Command1http://127.0.0.1:/greetingService?input=Command1 the url that the browser uses is: http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997 can someone tell me the correct url to use or how to fix the code to get it programatically? i'm geting a 404, the console says: [WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes ... --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Good GWT development tools
Our project with time has become bigger. We are finding that the change-compile-run cycle is becoming bigger and bigger, especially if we change the server side code. We are using Spring, Hibernate and Gilead (for taking Entities to the front layer). Do any one knows about better tools or processes where we can reduce the change-compile-run cycle. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good GWT development tools
On 11 October 2010 11:36, lalit lalit.bh...@gmail.com wrote: Our project with time has become bigger. We are finding that the change-compile-run cycle is becoming bigger and bigger, especially if we change the server side code. We are using Spring, Hibernate and Gilead (for taking Entities to the front layer). Do any one knows about better tools or processes where we can reduce the change-compile-run cycle. thanks in advance, Can we know what tools are you using and what is your problem exactly? At first sight I think you can reduce compile time by more cpu and memory. :) -- - - -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu -- http://facebook.com/andras.csanyi -- Trust in God and keep your gunpowder dry! - Cromwell -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JavaScriptException every time i make a rpc call more than one
Hi, when i load my application the first time, everythink works. but when i interact with it and i make a rpc call a second time, my app crashes with a JavaScriptException: i have no idea how to solve this. best regards com.google.gwt.core.client.JavaScriptException: (null): null at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java: 179) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java: 35) at com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.isStatsAvailable(RemoteServiceProxy.java) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 221) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScriptException every time i make a rpc call more than one
i got a hostpage which uses some javascript on its own for styling purposes. when i use a blank page just for testing, the error doesnt't occur anymore. so maybe the gwt code and the javascript in the host page overlap and then cause problems. On Oct 11, 12:16 pm, jsmith 3p1...@googlemail.com wrote: Hi, when i load my application the first time, everythink works. but when i interact with it and i make a rpc call a second time, my app crashes with a JavaScriptException: i have no idea how to solve this. best regards com.google.gwt.core.client.JavaScriptException: (null): null at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java: 179) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java: 35) at com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.isStatsAvailable(RemoteServiceProxy.java) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 221) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JavaScriptException every time i make a rpc call more than one
i found the error: the guy who was designing the host page for me has included a form tag in the webpage. this tag screwed my application i removed it and now it works fine On Oct 11, 12:46 pm, jsmith 3p1...@googlemail.com wrote: i got a hostpage which uses some javascript on its own for styling purposes. when i use a blank page just for testing, the error doesnt't occur anymore. so maybe the gwt code and the javascript in the host page overlap and then cause problems. On Oct 11, 12:16 pm, jsmith 3p1...@googlemail.com wrote: Hi, when i load my application the first time, everythink works. but when i interact with it and i make a rpc call a second time, my app crashes with a JavaScriptException: i have no idea how to solve this. best regards com.google.gwt.core.client.JavaScriptException: (null): null at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 195) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeBoolean(ModuleSpace.java: 179) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeBoolean(JavaScriptHost.java: 35) at com.google.gwt.user.client.rpc.impl.RemoteServiceProxy.isStatsAvailable(RemoteServiceProxy.java) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java: 221) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java: 1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java: 1669) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 401) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 222) at java.lang.Thread.run(Unknown Source) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good GWT development tools
Do you really need to compile your project every time you do a change? Does hosted mode not work for you? You can reduce the compilation time by reducing the list of supported browsers: add set-property name=user.agent value=gecko/ to your *.gwt.xml file to only support Firefox during your development. For integration tests you can remove the line and test your application with all browsers. Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled Regards, Georg On 11 Okt., 11:36, lalit lalit.bh...@gmail.com wrote: Our project with time has become bigger. We are finding that the change-compile-run cycle is becoming bigger and bigger, especially if we change the server side code. We are using Spring, Hibernate and Gilead (for taking Entities to the front layer). Do any one knows about better tools or processes where we can reduce the change-compile-run cycle. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with Activity
Try setting the CSS height property to 100% on the TabLayoutPanel. -Richard On Oct 10, 11:13 pm, Rud rudmerr...@gmail.com wrote: On further exploration I find that the overflow is not the culprit. I compared the information in the developer tools for the working and non-working versions. In the working version the 'div' containing the tabLayoutPanel style as position: absolute and some other styles applied. In the non-working version it has position: relative and no other styles. That is applied as the element style so it is not changeable by style inheritance. Disabling the relative displays the data. I replaced the tabLayoutPanel with some others but they don't show the same change on the 'div'. Rudhttp://www.mysticlakesoftware.com On Oct 9, 9:25 pm, Rud rudmerr...@gmail.com wrote: I converted my application to work with the M3 activities. It has a DockLayoutPanel and 'center' has a TabLayoutPanel. All the other panels work fine through the Activity and Mapper process. The TabLayoutPanel show the tabs but not the panels below it. If I go into Chrome developer tools I see that all the panels have 'overflow: hidden' set. If I disable the hidden style a panel appears. I made the small changes necessary for the TabLayoutPanel to be directly in 'center' and it works fine. I further investigate by looking at the TabLayoutPanel code and it appears selectTab(0) is being called during initialization, the first tab is highlighted, the panel setWidgetVisible(0,true) is called, but the panel not displayed. Any thoughts or suggestions? Rudhttp://www.mysticlakesoftware.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT HTML class won't follow file:/ links
On Oct 8, 12:58 pm, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 15:57, jhulford jhulf...@gmail.com wrote: There's nothing that should be preventing it from working Well, except the browser itself! AFAIK, Firefox at least won't let you open file: links from an http: page. D'oh..you're totally right: http://kb.mozillazine.org/Links_to_local_pages_don%27t_work. I thought I had recalled doing this myself at some point, apparently not with Firefox. (assuming file:/// is a typo and you meant file://path/to/file.txt). FYI, the file: URL scheme contains an authority part, just like http, and an empty authority means localhost; so there generally *are* (or should be) 3 /, file:///foo being equivalent to file://localhost/foo This allows you to make links to shared/network folders on other machines; for instance, the UNC path \\samba-server\shared\foo can be expressed as an URL as file://samba-server/shared/foo (in theory at least ;-) ) Interesting...I was not aware of that. Good to know. You are an encyclopedia of web app knowlege, Thomas. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with Activity
TabLayoutPanel either has to be a direct descendant of one of the other LayoutPanels or needs an explicit height to be set (and % won't work because of the structure). I really dislike that the panel won't take up as much space as it needs by default, or at least have an option to work that way, but that's why your content area isn't showing up. On Oct 10, 10:13 pm, Rud rudmerr...@gmail.com wrote: On further exploration I find that the overflow is not the culprit. I compared the information in the developer tools for the working and non-working versions. In the working version the 'div' containing the tabLayoutPanel style as position: absolute and some other styles applied. In the non-working version it has position: relative and no other styles. That is applied as the element style so it is not changeable by style inheritance. Disabling the relative displays the data. I replaced the tabLayoutPanel with some others but they don't show the same change on the 'div'. Rudhttp://www.mysticlakesoftware.com On Oct 9, 9:25 pm, Rud rudmerr...@gmail.com wrote: I converted my application to work with the M3 activities. It has a DockLayoutPanel and 'center' has a TabLayoutPanel. All the other panels work fine through the Activity and Mapper process. The TabLayoutPanel show the tabs but not the panels below it. If I go into Chrome developer tools I see that all the panels have 'overflow: hidden' set. If I disable the hidden style a panel appears. I made the small changes necessary for the TabLayoutPanel to be directly in 'center' and it works fine. I further investigate by looking at the TabLayoutPanel code and it appears selectTab(0) is being called during initialization, the first tab is highlighted, the panel setWidgetVisible(0,true) is called, but the panel not displayed. Any thoughts or suggestions? Rudhttp://www.mysticlakesoftware.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie - GWT.getHostPageBaseURL() + greetingService?input= + string);
Are you still using the provided GreetingServiceImpl on server side that expects a GWT RPC call? Because the way you're setting this up is not sending a GWT RPC request, you're just get/put/post'ing that plaintext request. It's perfectly valid to do that, but if your GreetingService servlet is still extending RemoteServiceServlet it's going to be expecting a GWT RPC request..hence the check for 'text/x-gwt-rpc' content-type..and reject your non-RPC request. If you want to stick with GWT RPC, you don't use RequestBuilder like this. Based on just your simple use case for timing out an RPC call you can do something like this with an RpcRequestBuilder implementation that sets the request timeout to 6: ServiceDefTarget async = GWT.create(MyAsync.class); async.setRpcRequestBuilder(builder); ((MyAsync) async).method(data, callback); On Oct 11, 5:29 am, Ray Tayek rta...@ca.rr.com wrote: At 11:22 PM 10/10/2010, you wrote: Hello Ray, if you are wondering what url the gwt async uses, you can see this in firebug (network tab). cool I think you are missing your module in the url. Dont use GWT.getHostPageBaseURL() use GWT.getModuleBaseURL() and you should be fine. that and changing greetingService to greet gets me:http://127.0.0.1:/rtecg2/greet?input=Command2, and a 405 HTTP method GET is not supported by this URL . changing get to put does not help trying a post , gets a 505: javax.servlet.ServletException: Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt-rpc'. i am sending just a string. my code (please see below) tries to build a request with a timeout. the normal code that works uses: greetingService.greetServer(id, new AsyncCallbackString() { ... } thanks private void sendStringToServer(final String string, final Label label) { Log.info(sending: + string + , label= + label); final String request = GWT.getModuleBaseURL() + greet?input= + string; Log.info(request); RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.POST, request); requestBuilder.setTimeoutMillis(6); RequestCallback requestCallback = new RequestCallback() { @Override public void onError(Request request, Throwable exception) { Log.error(fail! + exception); label.setText(fail! + exception); } @Override public void onResponseReceived(Request request, Response response) { int statusCode = response.getStatusCode(); if (statusCode != Response.SC_OK) { this.onError(request, null); return;} final String answer = response.getText(); Log.info(answer= + answer); if (label != null) label.setText(answer); } }; try { requestBuilder.sendRequest(null, requestCallback);} catch (RequestException e) { requestCallback.onError(null, e); } } -Daniel Kurka 2010/10/11 Ray Tayek mailto:rta...@ca.rr.comrta...@ca.rr.com At 03:47 PM 10/10/2010, you wrote: hi, i would like to add a timeout to some of my async callbacks. i am using a hacked up version of greet server. the normal code: greetingService.greetServer(id, new AsyncCallbackString() { ... } ... using the second (please see code below), the code: GWT.getHostPageBaseURL() + greetingService?input= + string); returns: http://127.0.0.1:/greetingService?input=Command1http://127.0.0.1:/greetingService?input=Command1 the url that the browser uses is: http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997 can someone tell me the correct url to use or how to fix the code to get it programatically? i'm geting a 404, the console says: [WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes ... --- co-chairhttp://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Set up of GWT site
I was thinking that every page (including what's replaced when About is clicked) contains a Feedback link... The idea is, you're just setting the content of a panel at runtime, not navigating to a new .html page. For instance, if your app is setup using a DockLayoutPanel, when a link is checked, you're probably going to just replace the content of the center widget, which may very well just be a SimplePanel, or ScrollPanel. On Oct 11, 3:16 am, alexoffspring alessales...@gmail.com wrote: mumble mumble ..i'm not sure, but i think that the example does not particularly suit since SimplePanel can have only one Widget; so you can only add one hyperlynk (About Me, about), let's say, and not the (feedback) one, so you cannot switch. Moreover, if you decide to change panel and use the Vertical one, you don't have the setWidget method. On 8 Ott, 16:25, Brian hibr...@gmail.com wrote: You just 'new' your class and add it where you want to place it. for instance, as a simple example you'd could have: SimplePanel mMyPanel; public void onModuleLoad() { mMyPanel = new SimplePanel(); mMyPanel.add(new Hyperlink(About Me, about)); RootPanel.get().add(mMyPanel); History.addValueChangeHandler(this); } public void onValueChange(ValueChangeEvent event) { if (event.getValue().equals(about)){ AboutPage ap = new AboutPage(); // this is your composite, in AboutPage.java mMyPanel.clear(); // get rid of whatever was in there mMyPanel.setWidget(ap); // and replace it with your about page } else if (event.getValue().equals(feedback)){ FeedbackPage fp = new FeedbackPage(); // this is another of your composites mMyPanel.clear(); mMyPanel.setWidget(fp); } else {... } } None of this will open a new page. You're just replacing widgets already in the DOM with new widgets, based on the history. -Brian On Oct 8, 4:54 am, alexoffspring alessales...@gmail.com wrote: Great. And supposing that i have already created my composite widget into a new .java class. How do i call this new page?? Window.open(..) ?? And if i don't want to open a new page, how can i hide the old page components? Thanks in advance On 6 Ott, 22:10, Brian hibr...@gmail.com wrote: Generally in a gwt app, all links stay within your application (all within the same html page). The links are just tokens that are handled by your single app (which is hosted in one page). In 100% pseudo code, you'd have something like: whenHistoryChanged(token){ if (token.equals(about)){ show(about screen); } else if (token.equals(feeback)){ show(feedback screen); } } Take a look at:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... In the onValueChange method, you compare the event.getValue() with your tokens (about, feedback etc) and replace the content with the content for that page. You would probably create a new 'widget' or composite widget, for each of your pages. And yeah, each page would probably be in its own .java file. On Oct 6, 3:46 pm, nick kov nickko...@gmail.com wrote: This question is for the developers that are more experienced with GWT. I am wondering exactly how you set a site up in terms of navigation? For example with HTML I would naturally use links to travel between pages, etc. But with GWT, if somebody clicks on a link on your site, do you guys just hide() the widgets and load new ones. Or do you take them to a different page entirely? Also I am wondering how the structure of a neat site looks using GWT. For example, do I create a new .java file for each page that exists on the site? I'm just relatively new to this and need some pointers. Thanks!- Nascondi testo citato - Mostra testo citato -- Nascondi testo citato - Mostra testo citato - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Set up of GWT site
... and if you were using a VerticalPanel, you could either replace the whole thing, or replace widget(s) : VerticalPanel vp = new VerticalPanel(); SimplePanel sp = new SimplePanel(); // setWidget when history changes vp.add(new Label(Stay at the top)); vp.add(sp); vp.add(new Label(Stay at the bottom)); ... public void onValueChange(ValueChangeEvent event) { if (event.getValue().equals(about)){ sp.setWidget(about content); } ... } On Oct 11, 11:08 am, Brian hibr...@gmail.com wrote: I was thinking that every page (including what's replaced when About is clicked) contains a Feedback link... The idea is, you're just setting the content of a panel at runtime, not navigating to a new .html page. For instance, if your app is setup using a DockLayoutPanel, when a link is checked, you're probably going to just replace the content of the center widget, which may very well just be a SimplePanel, or ScrollPanel. On Oct 11, 3:16 am, alexoffspring alessales...@gmail.com wrote: mumble mumble ..i'm not sure, but i think that the example does not particularly suit since SimplePanel can have only one Widget; so you can only add one hyperlynk (About Me, about), let's say, and not the (feedback) one, so you cannot switch. Moreover, if you decide to change panel and use the Vertical one, you don't have the setWidget method. On 8 Ott, 16:25, Brian hibr...@gmail.com wrote: You just 'new' your class and add it where you want to place it. for instance, as a simple example you'd could have: SimplePanel mMyPanel; public void onModuleLoad() { mMyPanel = new SimplePanel(); mMyPanel.add(new Hyperlink(About Me, about)); RootPanel.get().add(mMyPanel); History.addValueChangeHandler(this); } public void onValueChange(ValueChangeEvent event) { if (event.getValue().equals(about)){ AboutPage ap = new AboutPage(); // this is your composite, in AboutPage.java mMyPanel.clear(); // get rid of whatever was in there mMyPanel.setWidget(ap); // and replace it with your about page } else if (event.getValue().equals(feedback)){ FeedbackPage fp = new FeedbackPage(); // this is another of your composites mMyPanel.clear(); mMyPanel.setWidget(fp); } else {... } } None of this will open a new page. You're just replacing widgets already in the DOM with new widgets, based on the history. -Brian On Oct 8, 4:54 am, alexoffspring alessales...@gmail.com wrote: Great. And supposing that i have already created my composite widget into a new .java class. How do i call this new page?? Window.open(..) ?? And if i don't want to open a new page, how can i hide the old page components? Thanks in advance On 6 Ott, 22:10, Brian hibr...@gmail.com wrote: Generally in a gwt app, all links stay within your application (all within the same html page). The links are just tokens that are handled by your single app (which is hosted in one page). In 100% pseudo code, you'd have something like: whenHistoryChanged(token){ if (token.equals(about)){ show(about screen); } else if (token.equals(feeback)){ show(feedback screen); } } Take a look at:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/g... In the onValueChange method, you compare the event.getValue() with your tokens (about, feedback etc) and replace the content with the content for that page. You would probably create a new 'widget' or composite widget, for each of your pages. And yeah, each page would probably be in its own .java file. On Oct 6, 3:46 pm, nick kov nickko...@gmail.com wrote: This question is for the developers that are more experienced with GWT. I am wondering exactly how you set a site up in terms of navigation? For example with HTML I would naturally use links to travel between pages, etc. But with GWT, if somebody clicks on a link on your site, do you guys just hide() the widgets and load new ones. Or do you take them to a different page entirely? Also I am wondering how the structure of a neat site looks using GWT. For example, do I create a new .java file for each page that exists on the site? I'm just relatively new to this and need some pointers. Thanks!- Nascondi testo citato - Mostra testo citato -- Nascondi testo citato - Mostra testo citato - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
using CompositeCell in CellTable?
Hi, I tried to use a CompositeCell in a Celltable, but with no success. Can anyone write me a short example to add a column as CompositeCell in the CellTable, please? I miss some short introduction to this powerful topic and unfortunately the use is very inconsistent. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
linux + development mode
Hi all, i'm using arch linux and my browser is firefox (and blackbox as window manager, no desktop manager at all). When i try to start a hosted mode session, my browser asks for the development plugin, which I allow to install. But when i restart my browser everything remains the same. It asks for the plugin. What can be a problem? I've heard that maybe I should recompile and make the .xpi file myself. But no luck yet... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Client side caching of the .nocache,js and other included .js and .css files
We have a project.nocache.js file that included other .js and .css files. The generated project has a long GUID like name which changes each compilation, so that file is correctly loaded, but the problem we see is that when we change the other include files on the server, the client does not get the new files. For the .nocache.js file we can force a reload by passing an additional parameter on the url that we change everytime the server side changes, but that does not cause the included .js and .css files to be picked up. Does anybody have the same issue and are there ways around 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DockLayoutPanel causes size problem for input in FF and IE
I have created a simple widget from a UiBinder using a DockLayoutPanel like below (GWT 2.0.4): g:DockLayoutPanel unit=PX g:north size=200 g:TextArea/g:TextArea /g:north /g:DockLayoutPanel And the loaded this into page with RootLayoutPanel rp = RootLayoutPanel.get(); rp.add(new SimpleTextArea()); In Chrome this looks as I expected it, the textarea fills the width and height is 200px. But in FF and IE8 the textarea is located the upper left corner of the div (DockLayoutPanel) with some kind of default size. (Using !doctype html) Seems to be the same problem with TextBox. Is there a better to achieve a TextArea/TextBox that fills the layout? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWTphp to communicate with PHP server
Hi i am using GWT for developing an user interface. I run a mongoose webserver where my PHP server script resides. I cant find any way to make call from my user interface developed to php script. Any help may be appreciated. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Tutorial/material for how to customize the ROO + GWT project?
I have been able to generate the sample project using for GWT and GAE ... using DATANUCLEUS and GOOGLE_APP_ENGINE similar to what is provided in the roo tutorial. persistence setup --provider DATANUCLEUS --database GOOGLE_APP_ENGINE But i have been struggling with the customization of the project.Going over the code that was generated .. I feel much lost and dont know where to start from .. Some at Spring Forum did the customization of an ROO spring MVC generated project, but i wonder if some kind soul from GWT / Roo add support team / community would volunteer some time to do a Screen Cast or blog post to show how to do some basic customization in GWT generated project. It would be really great if someone can create an screen cast equivalent of the following ** Reference equivalent of the same for ROO. GWT http://sujitpal.blogspot.com/2010/07...th-of-ktm.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Developer plugin for IE - install error 1612
Hi When I attempt to install the GWT Developer plugin for IE it fails with this error: The installer encountered error 1612: The installation source for this product is not available. Verify that the source exists and that you can access it. I'm using IE7 on windows vista. It appears that a similar error code occurs for some people attempting to use Chrome. Not sure if it is related, but one of the mentioned solutions (for XP though) related the problem to roaming profiles, which I am using. Any ideas? Thanks, Dave -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Route animation in google maps with GWT
Hi all, For an actual project, we need to evaluate movements of motor-ships. The position datas are sent from a gps router on the ships and are saved in a database on our server. One of our goals is to show the driven way of one or more ships between a specified time as an animation. Our Application is written in Java with GWT. What we have already is, that the driven way get's drafted like a normal route in google maps. What we want is, to show for example all ship movements for one day in fast motion. My actual problem is, how to animate the driven way. Is it possible to do the animation in GWT, or do we need to use javascript? I hope, someone can give me some ideas. Thanks a lot. Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help me out! ... i m facing this Issues in Label !
Dear All, When i m using Multiple Labels by gwt-Label tag, it is displayed one by one. e.g. my code is like, gwt-LabelLabel 1/gwt-Labelgwt-LabelLabel 2/gwt-Labelgwt- LabelLabel 3/gwt-Label gwt-LabelLabel 5/gwt-Labelgwt-LabelLabel 6/gwt-Labelgwt- LabelLabel 7/gwt-Labelgwt-LabelLabel 8/gwt-Label output is like, Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7 Label 8 But i want the result like, Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7 Label 8 Don't suggest me like, Write the code in between the Horizontal panel. Answer me it take line break automatically...? Thanks in Advance ! Regards, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Best practice GWT development with Glassfish
Hi, I worked through the GWT tutorial and GWT Designer tutorial and would like to port a simple existing JSP/Struts 1 application to GWT. The application persists its data to a HSQL database. Up to now I use Glassfish 2 and Eclipse on a Linux computer for my personal development needs. What is the best way to work and develop with the software mentioned above? I found a few hints here and there (like creating a standard dynamic web project and a GWT project, then merging both together...tricky if you ask me) but nothing really stable. So: Is there a stable, easy solution to work with Glassfish and GWT in development mode? Thanks in advance Maik -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Multiple Pages
Hi all, I'm new at GWT, trying to develop my first application with this tool. I already read a lot about multiple pages, and I followed the most common suggestion of have only one page, and then change pannels to change pages. I want to develop a set of pages that allow the users to go back and forward pages according as the button they select. I already can do this with success, but something strange it's happening. As long as I go back to a previous page I already was, the code executes twice the same. Every time I go to a page I already visited, the code is executed one more time than the previous visit. I always do a clear to RootPanel before add a different Panel. I can't understand why the code is incrementing execution times, because all variables from fields are being cleared. Can you please help me understangind why is this happening? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Compiling for release?
I'm getting the message: GWT module 'com.winebythebar.bottles.WbtBBottles' may need to be (re)compiled when running w/o the '?gwt.codesvr=127.0.0.1:9997' param. I'm unsure how to compile this project for release. Environment: eclipse helios, windows -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Conerting String to HashMap
Hi, I am actually sending an ajax request and and storing a HashMap in a JSONStringer . In response i get a JSONStringer in the format {codes: {CD1:TEXT1,CD2:TEXT2}}. So now i retrieve the value using a RecordList and when i retrieve the value of codes attribute i.e (recordList.get(0).getAttribute(codes)) i get it as a string Object object. I would like to convert this to HashMap again. Could you tell me a simple way to do this using any gwt classes. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Beginning JDO Question
Hi There, I am beginning an GWT + GAE Application, and I have a simple question, that I think you guys knows the answer JIT: I want to do this: Facts: 1. I have an entity in my server package (aplicationid.server.MyEntity) 2. I have a method that returns a MyEntity object I want to: USE THIS METHOD!!! It seems I can't use the Entity Class inside the client package, because its source code is not available there. How can I solve this simple problem? Thanks, Pedro. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Route animation in google maps with GWT
GWT is Javascript, at least what the user sees on the website. One idea, is to get all the data from your server for a ship's route as an array of lat/lng objects, then set up a Timer() object that calls your callback every 30ms or so, and you just set the map marker position to the next entry in the lat/lng pair. For faster animation, jump further in your array, or decrease the 30ms to 15ms, etc. On Oct 9, 8:53 am, Jan jan.widm...@gmx.ch wrote: Hi all, For an actual project, we need to evaluate movements of motor-ships. The position datas are sent from a gps router on the ships and are saved in a database on our server. One of our goals is to show the driven way of one or more ships between a specified time as an animation. Our Application is written in Java with GWT. What we have already is, that the driven way get's drafted like a normal route in google maps. What we want is, to show for example all ship movements for one day in fast motion. My actual problem is, how to animate the driven way. Is it possible to do the animation in GWT, or do we need to use javascript? I hope, someone can give me some ideas. Thanks a lot. Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help me out! ... i m facing this Issues in Label !
On 9 October 2010 03:17, Somu somanatha...@gmail.com wrote: When i m using Multiple Labels by gwt-Label tag, it is displayed one by one. e.g. my code is like, gwt-LabelLabel 1/gwt-Labelgwt-LabelLabel 2/gwt-Labelgwt- LabelLabel 3/gwt-Label gwt-LabelLabel 5/gwt-Labelgwt-LabelLabel 6/gwt-Labelgwt- LabelLabel 7/gwt-Labelgwt-LabelLabel 8/gwt-Label output is like, Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7 Label 8 That's because each GWT Label is simply a div//div pair. And divs are block-level elements. But i want the result like, Label 1 Label 2 Label 3 Label 4 Label 5 Label 6 Label 7 Label 8 Don't suggest me like, Write the code in between the Horizontal panel. Why not? That would seem an obvious solution? Answer me it take line break automatically...? You could also use CSS to change the div to an inline-level element. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT HTML class won't follow file:/ links
Thanks. That would explain it. On Oct 8, 11:58 am, Thomas Broyer t.bro...@gmail.com wrote: On 8 oct, 15:57, jhulford jhulf...@gmail.com wrote: There's nothing that should be preventing it from working Well, except the browser itself! AFAIK, Firefox at least won't let you open file: links from an http: page. (assuming file:/// is a typo and you meant file://path/to/file.txt). FYI, the file: URL scheme contains an authority part, just like http, and an empty authority means localhost; so there generally *are* (or should be) 3 /, file:///foo being equivalent to file://localhost/foo This allows you to make links to shared/network folders on other machines; for instance, the UNC path \\samba-server\shared\foo can be expressed as an URL as file://samba-server/shared/foo (in theory at least ;-) ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hook up HTML with GWT
I have been searching around for this with no luck so I decided to post the question hoping to get a quick and straight answer. Is there a way to hook up GWT java methods/classes to straight HTML? I can see a way to do it with DIVs (retrieval via id) but cannot find a way to do it on other HTML tags. Example: say I have a menu implemented with CSS and the following HTML snippet ... ul lia href=...One/a/li lia href=...Two/a/li lia href=...Three/a/li /ul ... I want to run GWT code (some method in some java class) when the user clicks on one of the anchors. Is there a way to do it? Or as an alternative, if I define some ul/li gropus in an html file, is there a way to surface that in GWT? (by surface I mean a way to retrieve it with code and operate on 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Multiple Pages
On 10 oct, 19:38, Elienan elie...@gmail.com wrote: Hi all, I'm new at GWT, trying to develop my first application with this tool. I already read a lot about multiple pages, and I followed the most common suggestion of have only one page, and then change pannels to change pages. I want to develop a set of pages that allow the users to go back and forward pages according as the button they select. I already can do this with success, but something strange it's happening. As long as I go back to a previous page I already was, the code executes twice the same. Every time I go to a page I already visited, the code is executed one more time than the previous visit. I always do a clear to RootPanel before add a different Panel. I can't understand why the code is incrementing execution times, because all variables from fields are being cleared. Can you please help me understangind why is this happening? Are you talking about using the History class? if so, make sure you're only registering a single ValueChangeHandler (unless you really know you need more); registering multiple times the same ValueChangeHandler will have it called as many times (it's a add not a 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practice GWT development with Glassfish
This is how I do it, but it requires that you use maven. If you don't use maven ignore this post. Create a maven pom project Create a ear module Create a ejb module Create a web module Create a client module also web add the client as an web overlay to the web module. Deploy the ear to glassfish launch the client with noserver option Send requests to your controllers and have them respond with json 2010/10/10 Brausepaul maik.himst...@googlemail.com: Hi, I worked through the GWT tutorial and GWT Designer tutorial and would like to port a simple existing JSP/Struts 1 application to GWT. The application persists its data to a HSQL database. Up to now I use Glassfish 2 and Eclipse on a Linux computer for my personal development needs. What is the best way to work and develop with the software mentioned above? I found a few hints here and there (like creating a standard dynamic web project and a GWT project, then merging both together...tricky if you ask me) but nothing really stable. So: Is there a stable, easy solution to work with Glassfish and GWT in development mode? Thanks in advance Maik -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Maven gwt:compile issue
I am using the new maven plugin (http://google-web- toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) that is being used in the new 2.1 development. I have setup a multi module maven project where one of the modules contains a GWT module that contains mainly just shared object between server / client. Another GWT module that is the actual client and server. The problem I am having is when building the client project from the command line with the gwt:compile it cannot find the gwt module for the other project ( get the did you forget to an inherit a module ouput ). When building through eclipse everything works fine ( guess its using more of the eclipse classpath ). Anyone have any suggestions on 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good GWT development tools
Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled [ERROR] The value en was not previously defined. [ERROR] Line 23: Unexpected exception while processing element 'set- property' So, what else do I need to add? Greg On Oct 11, 8:20 am, Georg Sendt georg.se...@googlemail.com wrote: Do you really need to compile your project every time you do a change? Does hosted mode not work for you? You can reduce the compilation time by reducing the list of supported browsers: add set-property name=user.agent value=gecko/ to your *.gwt.xml file to only support Firefox during your development. For integration tests you can remove the line and test your application with all browsers. Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled Regards, Georg On 11 Okt., 11:36, lalit lalit.bh...@gmail.com wrote: Our project with time has become bigger. We are finding that the change-compile-run cycle is becoming bigger and bigger, especially if we change the server side code. We are using Spring, Hibernate and Gilead (for taking Entities to the front layer). Do any one knows about better tools or processes where we can reduce the change-compile-run cycle. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hook up HTML with GWT
On 10/11/2010 09:30 AM, Il Lupo wrote: I have been searching around for this with no luck so I decided to post the question hoping to get a quick and straight answer. Is there a way to hook up GWT java methods/classes to straight HTML? I can see a way to do it with DIVs (retrieval via id) but cannot find a way to do it on other HTML tags. Example: say I have a menu implemented with CSS and the following HTML snippet ... ul lia href=...One/a/li lia href=...Two/a/li lia href=...Three/a/li /ul ... I want to run GWT code (some method in some java class) when the user clicks on one of the anchors. Is there a way to do it? Or as an alternative, if I define some ul/li gropus in an html file, is there a way to surface that in GWT? (by surface I mean a way to retrieve it with code and operate on it). The first place to start: http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html#writing then ... ul lia href=javascript:foo()One/a/li lia href=javascript:bar()Two/a/li /ul ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: using CompositeCell in CellTable?
I tried something and this works, but I don't know how and why. ListHasCellFoo, ? bar = new ArrayListHasCellFoo, ?(); bar.add(new ColumnFoo, String(new Cell()) { @Override public CellString getCell() { return cell; } @Override public FieldUpdaterFoo, String getFieldUpdater() { return null; } @Override public String getValue(Foo object) { return caption; } }); celltable.addColumn(new Column(new CompositeCellFoo(bar)) { @Override public Object getValue(Object object) { return null; } }, column caption); On Oct 11, 2:37 pm, Spitzname bartsch-ste...@web.de wrote: Hi, I tried to use a CompositeCell in a Celltable, but with no success. Can anyone write me a short example to add a column as CompositeCell in the CellTable, please? I miss some short introduction to this powerful topic and unfortunately the use is very inconsistent. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hook up HTML with GWT
Or look at this: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/HTMLPanel.html On Oct 11, 10:20 am, Jeff Chimene jchim...@gmail.com wrote: On 10/11/2010 09:30 AM, Il Lupo wrote: I have been searching around for this with no luck so I decided to post the question hoping to get a quick and straight answer. Is there a way to hook up GWT java methods/classes to straight HTML? I can see a way to do it with DIVs (retrieval via id) but cannot find a way to do it on other HTML tags. Example: say I have a menu implemented with CSS and the following HTML snippet ... ul lia href=...One/a/li lia href=...Two/a/li lia href=...Three/a/li /ul ... I want to run GWT code (some method in some java class) when the user clicks on one of the anchors. Is there a way to do it? Or as an alternative, if I define some ul/li gropus in an html file, is there a way to surface that in GWT? (by surface I mean a way to retrieve it with code and operate on it). The first place to start:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI... then ... ul lia href=javascript:foo()One/a/li lia href=javascript:bar()Two/a/li /ul ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Could it be that GWT internally modifies cookie?
His to everyone, We are experiencing a wicked behavior on the web page that uses one GWT component running regular updates. Maybe someone could provide an insight. The thing is that after a couple of PRC requests you can see in Firebug that the sessionid sent to client on previous response does not correspond to the sessionid that is sent on subsequent PRC request. As a side effect users get wrong session cookie and resulting in unintended log outs. Really strange and happens only irregularly. On of the suspicions is that GWT might internally manipulate sessions (we are using GWT 2.0) because no cookies are set by us explicitly? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with Activity
Arrgggh!!! That was it. I would have sworn I tried that. I know I did on everything else that makes up the panel. @Falcon - it did work with a %. Not disputing your assertion, just stating my experience. This panel is so useful but strange... Rud http://www.mysticlakesoftware.com On Oct 11, 8:35 am, Richard Allen richard.l.al...@gmail.com wrote: Try setting the CSS height property to 100% on the TabLayoutPanel. -Richard On Oct 10, 11:13 pm, Rud rudmerr...@gmail.com wrote: On further exploration I find that the overflow is not the culprit. I compared the information in the developer tools for the working and non-working versions. In the working version the 'div' containing the tabLayoutPanel style as position: absolute and some other styles applied. In the non-working version it has position: relative and no other styles. That is applied as the element style so it is not changeable by style inheritance. Disabling the relative displays the data. I replaced the tabLayoutPanel with some others but they don't show the same change on the 'div'. Rudhttp://www.mysticlakesoftware.com On Oct 9, 9:25 pm, Rud rudmerr...@gmail.com wrote: I converted my application to work with the M3 activities. It has a DockLayoutPanel and 'center' has a TabLayoutPanel. All the other panels work fine through the Activity and Mapper process. The TabLayoutPanel show the tabs but not the panels below it. If I go into Chrome developer tools I see that all the panels have 'overflow: hidden' set. If I disable the hidden style a panel appears. I made the small changes necessary for the TabLayoutPanel to be directly in 'center' and it works fine. I further investigate by looking at the TabLayoutPanel code and it appears selectTab(0) is being called during initialization, the first tab is highlighted, the panel setWidgetVisible(0,true) is called, but the panel not displayed. Any thoughts or suggestions? Rudhttp://www.mysticlakesoftware.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Recommendations for improving performance of a mobile application
Hello to everyone, We decided to give it a try programming a mobile application with GWT - frequent RPC updates, very component-oriented and frequently changing data. At the moment we try to meet bearable performance benchmarks since current performance is so dismal. To change to a different page (fully dynamic) takes more than a minute at times ; ( Clicking on clickable panels, which are present in large quantities on every page, is also excruciatingly slow. I have watched videos from Google I/O Conference 2010 (Architecting for performance with GWT, GWT's UI overhaul, Faster apps faster) and tried replacing some of the widgets with UiBinder. This had so far brought only minimal performance improvements. There are some critical observations I would like to share and maybe you would have valuable suggestions * One of the things Joel Webber tells is that widgets are slow. Unfortunately everything is a widget in our app: clickable panels for selection and HTMLPanels/FlowPanels to layout clickables. There is very little space to cut off on widget. What would be the most lightweight component to implement onMouseDown-Event (a Button or clickable FlowPanel)? Is it worth the effort to replace all HTMLPanel/ FlowPanel possible with new Cell Widgets (I am thinking about CellList in particular). Are they plain faster for layouting components? * Running Firebug Profiler and Speedtracer shows that PRC requests take the most time. On page change, for example, an PRC call would return a rather big list of DTOs - they have hierarchical logical structure - and each is then injected into corresponding view that attaches itself to parent view for display. So profiler says that add()-calls take the most time. But I can hardly imagine a way to get rid of these add calls because the views have to be attached to the owning views. Is there a better strategy to display lists of lists of data? * We use tables for layouting and in the process of converting that into divs, as well as converting syles to eliminate style chaining. Could that improve performance of mobile browsers significantly? One of the insights Speedracer gave is that parsing HTML and recalculating CSS styles takes a whole lot of time. Would really appreciate every suggestion. Thanks, Denis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good GWT development tools
You can also use the -draftCompile flag to skip optimizations. Don't do this on your final production build, but it will save lots of time in development. Of course, hosted mode is best. /dmc David Chandler Developer Programs Engineer, Google Web Toolkit Atlanta, GA USA On Oct 11, 1:15 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled [ERROR] The value en was not previously defined. [ERROR] Line 23: Unexpected exception while processing element 'set- property' So, what else do I need to add? Greg On Oct 11, 8:20 am, Georg Sendt georg.se...@googlemail.com wrote: Do you really need to compile your project every time you do a change? Does hosted mode not work for you? You can reduce the compilation time by reducing the list of supported browsers: add set-property name=user.agent value=gecko/ to your *.gwt.xml file to only support Firefox during your development. For integration tests you can remove the line and test your application with all browsers. Reduce the number of compiled locales by adding this line to your *.gwt.xml file set-property name=locale value=en/ So now only english locale is compiled Regards, Georg On 11 Okt., 11:36, lalit lalit.bh...@gmail.com wrote: Our project with time has become bigger. We are finding that the change-compile-run cycle is becoming bigger and bigger, especially if we change the server side code. We are using Spring, Hibernate and Gilead (for taking Entities to the front layer). Do any one knows about better tools or processes where we can reduce the change-compile-run cycle. 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel with Activity
Ah, no, you're right. % on height wouldn't work in my specific situation but I think that was due to some positioning tricks I was having to do (and not being able to use a LayoutPanel as a parent), which wouldn't be applicable in your particular situation. On Oct 11, 1:19 pm, Rud rudmerr...@gmail.com wrote: Arrgggh!!! That was it. I would have sworn I tried that. I know I did on everything else that makes up the panel. @Falcon - it did work with a %. Not disputing your assertion, just stating my experience. This panel is so useful but strange... Rudhttp://www.mysticlakesoftware.com On Oct 11, 8:35 am, Richard Allen richard.l.al...@gmail.com wrote: Try setting the CSS height property to 100% on the TabLayoutPanel. -Richard On Oct 10, 11:13 pm, Rud rudmerr...@gmail.com wrote: On further exploration I find that the overflow is not the culprit. I compared the information in the developer tools for the working and non-working versions. In the working version the 'div' containing the tabLayoutPanel style as position: absolute and some other styles applied. In the non-working version it has position: relative and no other styles. That is applied as the element style so it is not changeable by style inheritance. Disabling the relative displays the data. I replaced the tabLayoutPanel with some others but they don't show the same change on the 'div'. Rudhttp://www.mysticlakesoftware.com On Oct 9, 9:25 pm, Rud rudmerr...@gmail.com wrote: I converted my application to work with the M3 activities. It has a DockLayoutPanel and 'center' has a TabLayoutPanel. All the other panels work fine through the Activity and Mapper process. The TabLayoutPanel show the tabs but not the panels below it. If I go into Chrome developer tools I see that all the panels have 'overflow: hidden' set. If I disable the hidden style a panel appears. I made the small changes necessary for the TabLayoutPanel to be directly in 'center' and it works fine. I further investigate by looking at the TabLayoutPanel code and it appears selectTab(0) is being called during initialization, the first tab is highlighted, the panel setWidgetVisible(0,true) is called, but the panel not displayed. Any thoughts or suggestions? Rudhttp://www.mysticlakesoftware.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Good GWT development tools
Are you using the localWorkers in the GWT compiler command line, to use the n-CPU-cores that you have? Read more here: http://ui-programming.blogspot.com/2009/12/gwt-speed-up-compilation-in-eclipse.html Cheers! And if you like it, don't be shy to click on 1 ad or 2 -- you know, for fun :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practice GWT development with Glassfish
Hi Jocke, thanks for your answer. Unfortenately I don' use Maven and I hesitate to introduce it just to improve GWT development. I wonder how other people work with their GWT project targeted for Glassfish or even Tomcat, for example. Maik On 11 Okt., 18:48, jocke eriksson jock...@gmail.com wrote: This is how I do it, but it requires that you use maven. If you don't use maven ignore this post. Create a maven pom project Create a ear module Create a ejb module Create a web module Create a client module also web add the client as an web overlay to the web module. Deploy the ear to glassfish launch the client with noserver option Send requests to your controllers and have them respond with json 2010/10/10 Brausepaul maik.himst...@googlemail.com: Hi, I worked through the GWT tutorial and GWT Designer tutorial and would like to port a simple existing JSP/Struts 1 application to GWT. The application persists its data to a HSQL database. Up to now I use Glassfish 2 and Eclipse on a Linux computer for my personal development needs. What is the best way to work and develop with the software mentioned above? I found a few hints here and there (like creating a standard dynamic web project and a GWT project, then merging both together...tricky if you ask me) but nothing really stable. So: Is there a stable, easy solution to work with Glassfish and GWT in development mode? Thanks in advance Maik -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Maven gwt:compile issue
I figured it out. I had to modify the resources section to include the module xml file ( it was getting left out ) along with the source code for the module. All is happy now. On Mon, Oct 11, 2010 at 1:09 PM, tc camec...@gmail.com wrote: I am using the new maven plugin (http://google-web- toolkit.googlecode.com/svn/2.1.0.M3/gwt/maven) that is being used in the new 2.1 development. I have setup a multi module maven project where one of the modules contains a GWT module that contains mainly just shared object between server / client. Another GWT module that is the actual client and server. The problem I am having is when building the client project from the command line with the gwt:compile it cannot find the gwt module for the other project ( get the did you forget to an inherit a module ouput ). When building through eclipse everything works fine ( guess its using more of the eclipse classpath ). Anyone have any suggestions on 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practice GWT development with Glassfish
On Oct 10, 6:47 pm, Brausepaul maik.himst...@googlemail.com wrote: Hi, I worked through the GWT tutorial and GWT Designer tutorial and would like to port a simple existing JSP/Struts 1 application to GWT. The application persists its data to a HSQL database. Up to now I use Glassfish 2 and Eclipse on a Linux computer for my personal development needs. What is the best way to work and develop with the software mentioned above? I found a few hints here and there (like creating a standard dynamic web project and a GWT project, then merging both together...tricky if you ask me) but nothing really stable. So: Is there a stable, easy solution to work with Glassfish and GWT in development mode? Thanks in advance Maik I have been using gwt and glassfish for some time. First download eclipse jee edition and install the glassfish plugin from Marketplace. Don't forget to add a new Server (File | New | Other | Server). - Create a new Dynamic Web Project and enable GWT in the project properties (Google | Web Toolkit). - Select the WebContent directory as the WAR directory (Google | Web Application). - Add a new Google Web Tookit Module - Add a new Entry Point Class - Add a new HTML page - Add a new Run Configuration for GWT - Compile GWT - Start the server - Add your project to Servers Tab - Deploy If you want a war file then File | Export | WAR file I you want to use the WebContent directly as deploy directory you can do this: - Create a new External Tool Configuration - Call asadmin with arguments deploy --force --properties keepSessions=false WebContent - Bind a key to this (I'm using the F1 key for deployments) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to use GWT Dev Ext 1.0.7511 for FireFox 3.6.10 on 64bit SUSE 11.3
Try the links from point 2 of this article: http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html Cheers! PS: my latest tool: http://cool-movie-browser.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RE: Recommendations for improving performance of a mobile application
Regarding slow RPC calls. Just try to send incremental data changes, only the data that been changed/added/deleted and cache main data on client. You might have thousands of items but only few of them or nothing been changed between RPC calls. I usually send full update when number of changes exceeds certain critical level when cost of update is higher then full update. Another hint is to change only data that visible to user. Usually there are not much visible data particularly on mobile device. -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of denis56 Sent: Monday, October 11, 2010 2:27 PM To: Google Web Toolkit Subject: Recommendations for improving performance of a mobile application Hello to everyone, We decided to give it a try programming a mobile application with GWT - frequent RPC updates, very component-oriented and frequently changing data. At the moment we try to meet bearable performance benchmarks since current performance is so dismal. To change to a different page (fully dynamic) takes more than a minute at times ; ( Clicking on clickable panels, which are present in large quantities on every page, is also excruciatingly slow. I have watched videos from Google I/O Conference 2010 (Architecting for performance with GWT, GWT's UI overhaul, Faster apps faster) and tried replacing some of the widgets with UiBinder. This had so far brought only minimal performance improvements. There are some critical observations I would like to share and maybe you would have valuable suggestions * One of the things Joel Webber tells is that widgets are slow. Unfortunately everything is a widget in our app: clickable panels for selection and HTMLPanels/FlowPanels to layout clickables. There is very little space to cut off on widget. What would be the most lightweight component to implement onMouseDown-Event (a Button or clickable FlowPanel)? Is it worth the effort to replace all HTMLPanel/ FlowPanel possible with new Cell Widgets (I am thinking about CellList in particular). Are they plain faster for layouting components? * Running Firebug Profiler and Speedtracer shows that PRC requests take the most time. On page change, for example, an PRC call would return a rather big list of DTOs - they have hierarchical logical structure - and each is then injected into corresponding view that attaches itself to parent view for display. So profiler says that add()-calls take the most time. But I can hardly imagine a way to get rid of these add calls because the views have to be attached to the owning views. Is there a better strategy to display lists of lists of data? * We use tables for layouting and in the process of converting that into divs, as well as converting syles to eliminate style chaining. Could that improve performance of mobile browsers significantly? One of the insights Speedracer gave is that parsing HTML and recalculating CSS styles takes a whole lot of time. Would really appreciate every suggestion. Thanks, Denis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. /PREBRspan style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366' _BR This electronic message and any files transmitted with it containsBR information from iDirect, which may be privileged, proprietaryBR and/or confidential. It is intended solely for the use of the individualBR or entity to whom they are addressed. If you are not the originalBR recipient or the person responsible for delivering the email to theBR intended recipient, be advised that you have received this emailBR in error, and that any use, dissemination, forwarding, printing, orBR copying of this email is strictly prohibited. If you received this emailBR in error, please delete it and immediately notify the sender.BR _ /SPANPRE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hook up HTML with GWT
Thanks for the replies but I am not sure I can do much with those, though I may not be looking at things the right way. Let me try to explain a bit better (hopefully). RootPanel.get(String id) returns you a RootPanel for the element with the given id. That only works for certain top level elements. So in the ul example below if I did this ul id=menu /ul and I do RootPanel ul = RootPanel.get(menu); I get back the ul block as a RootPanel. However it does not appear there is anything I can do with it. If I enumerate the children there are none. In other words the li elements are not created in the java universe. I can reach the li nodes in the dom Element space but I am not sure I can do much with them then (I need to hook up an event handlers at the very least). So overall the question is about what is doable with static HTML in GWT. It's clear you can do everything with dynamic code. But if I have a bunch of static HTML that I want to leverage where is the line? What is that shows up in some form in the java object model (for lack of a better word) and how much can be done with static HTML. Thanks for the feedback On Oct 11, 12:37 pm, Jim Douglas jdou...@basis.com wrote: Or look at this: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... On Oct 11, 10:20 am, Jeff Chimene jchim...@gmail.com wrote: On 10/11/2010 09:30 AM, Il Lupo wrote: I have been searching around for this with no luck so I decided to post the question hoping to get a quick and straight answer. Is there a way to hook up GWT java methods/classes to straight HTML? I can see a way to do it with DIVs (retrieval via id) but cannot find a way to do it on other HTML tags. Example: say I have a menu implemented with CSS and the following HTML snippet ... ul lia href=...One/a/li lia href=...Two/a/li lia href=...Three/a/li /ul ... I want to run GWT code (some method in some java class) when the user clicks on one of the anchors. Is there a way to do it? Or as an alternative, if I define some ul/li gropus in an html file, is there a way to surface that in GWT? (by surface I mean a way to retrieve it with code and operate on it). The first place to start:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI... then ... ul lia href=javascript:foo()One/a/li lia href=javascript:bar()Two/a/li /ul ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
SelectionCell and CellTable
After reviewing the updated GWT CellTable showcase code samples, I found myself stuck with something I hope is relatively easy for more experienced folks out there. the following is a snippet from the showcase which is at the heart of the issue. final Category[] categories = ContactDatabase.get().queryCategories(); ListString categoryNames = new ArrayListString(); for (Category category : categories) { categoryNames.add(category.getDisplayName()); } SelectionCell categoryCell = new SelectionCell(categoryNames); ColumnContactInfo, String categoryColumn = new Column ContactInfo, String(categoryCell) { @Override public String getValue(ContactInfo object) { return object.getCategory().getDisplayName(); } }; cellTable.addColumn(categoryColumn, constants.cwCellTableColumnCategory()); The showcase example is based on the assumption that all rows must have the same selection menu options (ie: CategoryNames are identical for all objects in the table) Unfortunately what I am currently working on requires that each object in the cellTable may have it's own menu list. Can anyone provide any clues as to how I would go about modifying the previous code so that each object/row would have it's own SelectionCell? I currently looking at the posibility of creating a custom 'CustomSelectionCell(ProvidesKey keyProvider) {} that will allow me to directly access the target row/object. but I am unclear as to how to accomplish this. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Classloader, Jetty, and OSGI
Hi. I get the exception (below) when I try to start up my jetty server over OSGI while my GWT (2.0.3) client is up. If my GWT client is not up, the server starts up no problem, and I can bring up the client with no errors. However, if my client is up, when I shut down and restart the server, it throws the error below. After the error below, it also throws SerializationException on one of our own classes, which it doesn't have a problem with if the server is started up before the client. We have debugged, and it looks like our own classes do not make it into the server's white list. Client logic is to ping the server for requests based on a timer (currently every minute). Also, when I run my server in Eclipse, and client in hosted mode, this is not happening. What seems to be happening is that the classloaders used in the client and the server on start up do not match up. When I add the following piece of code to my PnlServiceImpl class, this problem goes away. ClassPnlService clazz = com.hb.apps.hermes.smartGWT.pnlSummary.shared.PnlService.class; Thread.currentThread().setContextClassLoader(clazz.getClassLoader()); Could you please help me clarify what exactly is happening, and whether I should be manually setting the classloader on an Impl class as a fix? Thank you. ERROR /smartGWT - PnlServlet: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Could not locate requested interface 'com.hb.apps.hermes.smartGWT.pnlSummary.shared.PnlService' in default classloader at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:264) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 186) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 224) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at com.hb.apps.hermes.smartGWT.pnlSummary.server.PnlServiceImpl.service(PnlServiceImpl.java: 110) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java: 114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 505) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:843) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.jetty.bio.SocketConnector $Connection.run(SocketConnector.java:228) at org.mortbay.jetty.security.SslSocketConnector $SslConnection.run(SslSocketConnector.java:635) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:488) Caused by: java.lang.ClassNotFoundException: com.hb.apps.hermes.smartGWT.pnlSummary.shared.PnlService at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName(RPC.java: 693) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:255) ... 23 common frames omitted -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Create Namespace Aware XML Elements on client
I'm trying to create XML document on the client, which is namespace aware, but on Firefox any namespace attributes are not included in the element. I believe firefox requires the new nodes to be created by calling createElementNS, but this is not present at XMLParserImpl.java. Has anyone else seen this, is it possible, or is this a bug/oversight? Can this be archived by changing the doctype for the page? Any help would be greatly appreciated. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Recommendations for improving performance of a mobile application
Hi, We already do that. Only changed objects are sent over the wire. There is of course question of granularity, but i think we have struck a good balance between complexity and efficiency. Are you also developing for mobile? On 11 Okt., 22:01, Armishev, Sergey sarmis...@idirect.net wrote: Regarding slow RPC calls. Just try to send incremental data changes, only the data that been changed/added/deleted and cache main data on client. You might have thousands of items but only few of them or nothing been changed between RPC calls. I usually send full update when number of changes exceeds certain critical level when cost of update is higher then full update. Another hint is to change only data that visible to user. Usually there are not much visible data particularly on mobile device. -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of denis56 Sent: Monday, October 11, 2010 2:27 PM To: Google Web Toolkit Subject: Recommendations for improving performance of a mobile application Hello to everyone, We decided to give it a try programming a mobile application with GWT - frequent RPC updates, very component-oriented and frequently changing data. At the moment we try to meet bearable performance benchmarks since current performance is so dismal. To change to a different page (fully dynamic) takes more than a minute at times ; ( Clicking on clickable panels, which are present in large quantities on every page, is also excruciatingly slow. I have watched videos from Google I/O Conference 2010 (Architecting for performance with GWT, GWT's UI overhaul, Faster apps faster) and tried replacing some of the widgets with UiBinder. This had so far brought only minimal performance improvements. There are some critical observations I would like to share and maybe you would have valuable suggestions * One of the things Joel Webber tells is that widgets are slow. Unfortunately everything is a widget in our app: clickable panels for selection and HTMLPanels/FlowPanels to layout clickables. There is very little space to cut off on widget. What would be the most lightweight component to implement onMouseDown-Event (a Button or clickable FlowPanel)? Is it worth the effort to replace all HTMLPanel/ FlowPanel possible with new Cell Widgets (I am thinking about CellList in particular). Are they plain faster for layouting components? * Running Firebug Profiler and Speedtracer shows that PRC requests take the most time. On page change, for example, an PRC call would return a rather big list of DTOs - they have hierarchical logical structure - and each is then injected into corresponding view that attaches itself to parent view for display. So profiler says that add()-calls take the most time. But I can hardly imagine a way to get rid of these add calls because the views have to be attached to the owning views. Is there a better strategy to display lists of lists of data? * We use tables for layouting and in the process of converting that into divs, as well as converting syles to eliminate style chaining. Could that improve performance of mobile browsers significantly? One of the insights Speedracer gave is that parsing HTML and recalculating CSS styles takes a whole lot of time. Would really appreciate every suggestion. Thanks, Denis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. /PREBRspan style='font-size:8.0pt;font-family:Arial,sans-serif;color:#003366' _BR This electronic message and any files transmitted with it containsBR information from iDirect, which may be privileged, proprietaryBR and/or confidential. It is intended solely for the use of the individualBR or entity to whom they are addressed. If you are not the originalBR recipient or the person responsible for delivering the email to theBR intended recipient, be advised that you have received this emailBR in error, and that any use, dissemination, forwarding, printing, orBR copying of this email is strictly prohibited. If you received this emailBR in error, please delete it and immediately notify the sender.BR _ /SPANPRE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at
Re: Client side caching of the .nocache,js and other included .js and .css files
The .nocache.js file is loaded everytime to determine if the GWT Application has changed and if we need to fetch the big cache.html file. If your external javascript files change regularly I would suggest to put them into the HTML site not include them with your app (at least not without recompiling the app to invalidate the old files) -Daniel Kurka 2010/10/9 PeterT peterteunis...@verizon.net We have a project.nocache.js file that included other .js and .css files. The generated project has a long GUID like name which changes each compilation, so that file is correctly loaded, but the problem we see is that when we change the other include files on the server, the client does not get the new files. For the .nocache.js file we can force a reload by passing an additional parameter on the url that we change everytime the server side changes, but that does not cause the included .js and .css files to be picked up. Does anybody have the same issue and are there ways around 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Route animation in google maps with GWT
Jan, You can do it all with GWT. You can see a partial example of it here: http://www.dtrac.us/hmr.html I say partial because that page is setup for a race that takes place in the future so there aren't any position reports to show yet. But, even without that, you can see how the time line and animation works. There is a time line (slider control) that can be manipulated manually. There is a spinner control to allow user control over the speed (forwards and backwards). There are also overlays that can be turned on and off (and zoomed into). And the main race course can be zoomed to (target images). We will also be tracking Marco Nannini in the Route du Rhum next month. You can see the tracking page for his race on his site: http://www.marconannini.com/tracking You'll notice the sites look very similar. The fact is, I did this data driven. This way, I can just add a few rows to a few tables to create a new event. It also supports multiple devices (boats, cars, people, whatever) in a single event. It's not hard to do. Brian pretty much hit it on the head when he said to use an array and a timer. Mine was a little more complex since I keep the slider, the polyline, and the position reports all in sync. Have fun, Chad www.milamade.com On Oct 9, 7:53 am, Jan jan.widm...@gmx.ch wrote: Hi all, For an actual project, we need to evaluate movements of motor-ships. The position datas are sent from a gps router on the ships and are saved in a database on our server. One of our goals is to show the driven way of one or more ships between a specified time as an animation. Our Application is written in Java with GWT. What we have already is, that the driven way get's drafted like a normal route in google maps. What we want is, to show for example all ship movements for one day in fast motion. My actual problem is, how to animate the driven way. Is it possible to do the animation in GWT, or do we need to use javascript? I hope, someone can give me some ideas. Thanks a lot. Jan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RE: Recommendations for improving performance of a mobile application
I am not specifically developing for mobile device (I am doing Network Management) and not consider myself guru in the mobile Web apps. But I did pretty good testing regarding performance of my GWT apps on mobile devices to allow our customers use their smart phones for network management. What I found that performance greatly depends on performance of Javascript engine running inside mobile browser. On my Android my alarm management app was running probably with the same performance as on my desktop. No visible performance degradation. On Windows Mobile 6.5 with default Pocket Explorer browser my app was just frozen! Only after installing Opera browser it started to run without visible performance problems. Just to let you know that I am using long polling to achieve real time visualization and operators can exchange instant messaging through the same GWT RPC calls. I can recommend to test your app on Android first to see the best performance and then go to other mobile devices -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of denis56 Sent: Monday, October 11, 2010 4:44 PM To: Google Web Toolkit Subject: Re: Recommendations for improving performance of a mobile application Hi, We already do that. Only changed objects are sent over the wire. There is of course question of granularity, but i think we have struck a good balance between complexity and efficiency. Are you also developing for mobile? On 11 Okt., 22:01, Armishev, Sergey sarmis...@idirect.net wrote: Regarding slow RPC calls. Just try to send incremental data changes, only the data that been changed/added/deleted and cache main data on client. You might have thousands of items but only few of them or nothing been changed between RPC calls. I usually send full update when number of changes exceeds certain critical level when cost of update is higher then full update. Another hint is to change only data that visible to user. Usually there are not much visible data particularly on mobile device. -Sergey -Original Message- From: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] On Behalf Of denis56 Sent: Monday, October 11, 2010 2:27 PM To: Google Web Toolkit Subject: Recommendations for improving performance of a mobile application Hello to everyone, We decided to give it a try programming a mobile application with GWT - frequent RPC updates, very component-oriented and frequently changing data. At the moment we try to meet bearable performance benchmarks since current performance is so dismal. To change to a different page (fully dynamic) takes more than a minute at times ; ( Clicking on clickable panels, which are present in large quantities on every page, is also excruciatingly slow. I have watched videos from Google I/O Conference 2010 (Architecting for performance with GWT, GWT's UI overhaul, Faster apps faster) and tried replacing some of the widgets with UiBinder. This had so far brought only minimal performance improvements. There are some critical observations I would like to share and maybe you would have valuable suggestions * One of the things Joel Webber tells is that widgets are slow. Unfortunately everything is a widget in our app: clickable panels for selection and HTMLPanels/FlowPanels to layout clickables. There is very little space to cut off on widget. What would be the most lightweight component to implement onMouseDown-Event (a Button or clickable FlowPanel)? Is it worth the effort to replace all HTMLPanel/ FlowPanel possible with new Cell Widgets (I am thinking about CellList in particular). Are they plain faster for layouting components? * Running Firebug Profiler and Speedtracer shows that PRC requests take the most time. On page change, for example, an PRC call would return a rather big list of DTOs - they have hierarchical logical structure - and each is then injected into corresponding view that attaches itself to parent view for display. So profiler says that add()-calls take the most time. But I can hardly imagine a way to get rid of these add calls because the views have to be attached to the owning views. Is there a better strategy to display lists of lists of data? * We use tables for layouting and in the process of converting that into divs, as well as converting syles to eliminate style chaining. Could that improve performance of mobile browsers significantly? One of the insights Speedracer gave is that parsing HTML and recalculating CSS styles takes a whole lot of time. Would really appreciate every suggestion. Thanks, Denis -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For
Re: GWT can't compile for simple example
Do you use the GWT plugin for Eclipse to create and manage your project (structure) ? 'cause if you do that, then you shouldn't have this problem... Here's the list of the lastest tools from GWT: http://ui-programming.blogspot.com/2010/10/cool-development-tools-from-google.html Cheers, PS: if you like it, don't be shy and click on 1 or 2 ads, please! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: some newbie questions
At 02:25 AM 10/11/2010, you wrote: On 9 oct, 04:15, Ray Tayek rta...@ca.rr.com wrote: ... i sometime get a: A widget that has an existing parent widget may not be added to the detach list error ... You cannot have root widgets whose elements are nested (i.e. there's no parent/child relationship between the widgets, but there's one between their elements in the DOM). ... ok. ... also, i am using gwt-logger. when this crashes, i get this big grey thing that says: GWT Code Server Disconnected which hides the log stiff and my html stuff. i have poor vision, is there some way to move the thing that ... In Firebug or any developer tool, set display:none on the DIV. great, i will try that. thanks --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
how to get rid of GWT Code Server Disconnected
hi, when things go south, i am getting this get this big grey thing that says: GWT Code Server Disconnected which hides the log stiff and my html stuff. i have poor vision, is there some way to get rid of or move the thing that has the GWT Code Server Disconnected so i can see what's underneath? thanks --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie - GWT.getHostPageBaseURL() + greetingService?input= + string);
At 07:07 AM 10/11/2010, you wrote: Are you still using the provided GreetingServiceImpl on server side that expects a GWT RPC call? yes. that code is the same except for choosing a response to send to the client. Because the way you're setting this up is not sending a GWT RPC request, you're just get/put/post'ing that plaintext request. It's perfectly valid to do that, but if your GreetingService servlet is still extending RemoteServiceServlet it's going to be expecting a GWT RPC request..hence the check for 'text/x-gwt-rpc' content-type..and reject your non-RPC request. If you want to stick with GWT RPC, you don't use RequestBuilder like this. ok. i am a newbie, so i don't really know. so far all of the stuff that i want to send and receive is just strings. Based on just your simple use case for timing out an RPC call you can do something like this with an RpcRequestBuilder implementation that sets the request timeout to 6: ServiceDefTarget async = GWT.create(MyAsync.class); async.setRpcRequestBuilder(builder); ((MyAsync) async).method(data, callback); i will try this. thanks On Oct 11, 5:29 am, Ray Tayek rta...@ca.rr.com wrote: At 11:22 PM 10/10/2010, you wrote: Hello Ray, if you are wondering what url the gwt async uses, you can see this in firebug (network tab). cool I think you are missing your module in the url. Dont use GWT.getHostPageBaseURL() use GWT.getModuleBaseURL() and you should be fine. that and changing greetingService to greet gets me:http://127.0.0.1:/rtecg2/greet?input=Command2, and a 405 HTTP method GET is not supported by this URL . changing get to put does not help trying a post , gets a 505: javax.servlet.ServletException: Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt-rpc'. i am sending just a string. my code (please see below) tries to build a request with a timeout. the normal code that works uses: greetingService.greetServer(id, new AsyncCallbackString() { ... } thanks private void sendStringToServer(final String string, final Label label) { Log.info(sending: + string + , label= + label); final String request = GWT.getModuleBaseURL() + greet?input= + string; Log.info(request); RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.POST, request); requestBuilder.setTimeoutMillis(6); RequestCallback requestCallback = new RequestCallback() { @Override public void onError(Request request, Throwable exception) { Log.error(fail! + exception); label.setText(fail! + exception); } @Override public void onResponseReceived(Request request, Response response) { int statusCode = response.getStatusCode(); if (statusCode != Response.SC_OK) { this.onError(request, null); return;} final String answer = response.getText(); Log.info(answer= + answer); if (label != null) label.setText(answer); } }; try { requestBuilder.sendRequest(null, requestCallback);} catch (RequestException e) { requestCallback.onError(null, e); } } -Daniel Kurka 2010/10/11 Ray Tayek mailto:rta...@ca.rr.comrta...@ca.rr.com At 03:47 PM 10/10/2010, you wrote: hi, i would like to add a timeout to some of my async callbacks. i am using a hacked up version of greet server. the normal code: greetingService.greetServer(id, new AsyncCallbackString() { ... } ... using the second (please see code below), the code: GWT.getHostPageBaseURL() + greetingService?input= + string); returns: http://127.0.0.1:/greetingService?input=Command1http://127. 0.0.1:/greetingService?input=Command1 the url that the browser uses is: http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997htt p://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997 can someone tell me the correct url to use or how to fix the code to get it programatically? i'm geting a 404, the console says: [WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes ... ... --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to get rid of GWT Code Server Disconnected (solved)
At 03:09 PM 10/11/2010, you wrote: hi, when things go south, i am getting this get this big grey thing that says: GWT Code Server Disconnected which hides the log stiff and my html stuff. i have poor vision, is there some way to get rid of ... seems like i shoud be able to: In Firebug or any developer tool, set display:none on the DIV. thanks --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Help with Combobox (extGWT)
Hi, Two tips: Post GXT questions on the Sencha forums and download the GXT source code and search it. The source is invaluable. The stock class is not part of the extGWT library, but it is in the source code for the examples. For 2.2.0 it is in samples\resources\src \com\extjs\gxt\samples\resources\client\model. You can add that to your project to get it working, but ultimatley you don't want to use the data in the stocks file, you want to use your own data in the combo box. You probably want a to create simple list of state strings and SimpleComboBoxString e.g. SimpleComboBoxString combo = new SimpleComboBoxString(); combo.add(Iowa); combo.add(Illinois); combo.setSimpleValue(Ohio); Regards, Carl Pritchett On Oct 11, 10:28 am, Diego Venuzka dvenu...@gmail.com wrote: Hello! On my project, i'll need a combox, to filter states. On the sencha.com site, i found this example:http://www.sencha.com/examples/#combobox But this code dont work and show: Class Stock not found. I guess that class have the data to show on combo...But how i create that class? I still searching on entire site and i don't found nothing... Somebody have an example to send? thanks! =) -- Diego Venuzka -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Classloader, Jetty, and OSGI
On 11 oct, 22:26, Viktoriya Sokolova viktoriya.sokol...@gmail.com wrote: Hi. I get the exception (below) when I try to start up my jetty server over OSGI while my GWT (2.0.3) client is up. If my GWT client is not up, the server starts up no problem, and I can bring up the client with no errors. However, if my client is up, when I shut down and restart the server, it throws the error below. After the error below, it also throws SerializationException on one of our own classes, which it doesn't have a problem with if the server is started up before the client. We have debugged, and it looks like our own classes do not make it into the server's white list. Searching the issue tracker for OSGi gives (among others) those 2 issues: http://code.google.com/p/google-web-toolkit/issues/detail?id=4392 http://code.google.com/p/google-web-toolkit/issues/detail?id=4394 HTH -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integration of hibernate with GWT
I just want to comment on Gilead run away from it fast as you can why you ask ? because it is super invasive . Use to connect to hibernate just use spring do not need any thing else . However GWTP is a good framework untill such time when GWT's own MVP framework is finalized . Which I hope is sooner rather :) On Oct 11, 8:12 pm, Thomas Broyer t.bro...@gmail.com wrote: On 9 oct, 18:22, Y2i yur...@gmail.com wrote: Thomas, when you say it shouldn't be that hard to port to any server, what do you mean by the server? A javax.servlet container like Jetty or an application server, like Geronimo, Glassfish, etc.? I meant javax.servlet container (does that really make a difference? I don't use application servers so I really don't know; I only know I don't need one ;-) ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integration of hibernate with GWT
I can use Eclipse Link in resource-local mode to connect to a data store using JPA in plain Jetty (no application server, just a plain web container). I could probably replace Eclipse Link with Hibernate and it would work, I just haven't tried that yet. But I am not able to configure Jetty to enable resource injection for JPA. Has anyone been able to configure plain Jetty to use resource injection/JPA without? Would really appreciate your thoughts and/or links to relevant documentation. On Oct 11, 4:44 pm, SZK khan.shah...@gmail.com wrote: I just want to comment on Gilead run away from it fast as you can why you ask ? because it is super invasive . Use to connect to hibernate just use spring do not need any thing else . However GWTP is a good framework untill such time when GWT's own MVP framework is finalized . Which I hope is sooner rather :) On Oct 11, 8:12 pm, Thomas Broyer t.bro...@gmail.com wrote: On 9 oct, 18:22, Y2i yur...@gmail.com wrote: Thomas, when you say it shouldn't be that hard to port to any server, what do you mean by the server? A javax.servlet container like Jetty or an application server, like Geronimo, Glassfish, etc.? I meant javax.servlet container (does that really make a difference? I don't use application servers so I really don't know; I only know I don't need one ;-) ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT2.1 - Progress Bar Cell DataProviders
bump On Oct 1, 10:34 pm, Nick nix...@gmail.com wrote: I am in the process of creating a Progress Bar Cell that will work in a GWT2.1 CellTable. So far I have the cell rendering a simple html progress bar in a manner that is consistent with other cell renders. I need to somehow update the progress bar cell value after receiving a new value. Should I be using the updateRowData method on the AsyncDataProvider? Also, is there a logical place to include the polling code within the CellTable/DataProvider/.. architecture? Maybe a PollingAsyncDataProvider or something. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT can't compile for simple example
Thanks for your link (I have clicked some ads for you -;) ) I'm using latest GWT plugin for Eclipse 3.6. You can build the same project? It's strange. I also install GWT Desinger too. Do it effect to the project build process? May I try to reinstall GWT plugin. Hung On Oct 12, 5:09 am, Sorinel C scristescu...@hotmail.com wrote: Do you use the GWT plugin for Eclipse to create and manage your project (structure) ? 'cause if you do that, then you shouldn't have this problem... Here's the list of the lastest tools from GWT:http://ui-programming.blogspot.com/2010/10/cool-development-tools-fro... Cheers, PS: if you like it, don't be shy and click on 1 or 2 ads, please! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT can't compile for simple example
Thanks for your link (I have clicked some ads for you -;) ) I'm using latest GWT plugin for Eclipse 3.6. You can build the same project? It's strange. I also install GWT Desinger too. Do it effect to the project build process? May I try to reinstall GWT plugin. Hung On Oct 12, 5:09 am, Sorinel C scristescu...@hotmail.com wrote: Do you use the GWT plugin for Eclipse to create and manage your project (structure) ? 'cause if you do that, then you shouldn't have this problem... Here's the list of the lastest tools from GWT:http://ui-programming.blogspot.com/2010/10/cool-development-tools-fro... Cheers, PS: if you like it, don't be shy and click on 1 or 2 ads, please! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT can't compile for simple example
GWT Mods, Will you please BAN this SPAMMER. Every post of this ignoramus has an unrelated link to his ads and trojan infested site. This guy is a real loser that just won't go away. On Mon, Oct 11, 2010 at 6:09 PM, Sorinel C scristescu...@hotmail.comwrote: Do you use the GWT plugin for Eclipse to create and manage your project (structure) ? 'cause if you do that, then you shouldn't have this problem... Here's the list of the lastest tools from GWT: http://ui-programming.blogspot.com/2010/10/cool-development-tools-from-google.html Cheers, PS: if you like it, don't be shy and click on 1 or 2 ads, please! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hook up HTML with GWT
Hi Il Lupo, I guess that you want to replicate what is usually done in js but you want to do it natively in Java: the way to go is to use com.google.gwt.dom.client.Node (or Element) If you know the html id of your element, then you can get it and start iterating over its children to reach them as needed all in Java: check the doc above. regards didier On Oct 11, 10:18 pm, Il Lupo totomot...@gmail.com wrote: Thanks for the replies but I am not sure I can do much with those, though I may not be looking at things the right way. Let me try to explain a bit better (hopefully). RootPanel.get(String id) returns you a RootPanel for the element with t } he given id. That only works for certain top level elements. So in the ul example below if I did this ul id=menu /ul and I do RootPanel ul = RootPanel.get(menu); I get back the ul block as a RootPanel. However it does not appear there is anything I can do with it. If I enumerate the children there are none. In other words the li elements are not created in the java universe. I can reach the li nodes in the dom Element space but I am not sure I can do much with them then (I need to hook up an event handlers at the very least). So overall the question is about what is doable with static HTML in GWT. It's clear you can do everything with dynamic code. But if I have a bunch of static HTML that I want to leverage where is the line? What is that shows up in some form in the java object model (for lack of a better word) and how much can be done with static HTML. Thanks for the feedback On Oct 11, 12:37 pm, Jim Douglas jdou...@basis.com wrote: Or look at this: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... On Oct 11, 10:20 am, Jeff Chimene jchim...@gmail.com wrote: On 10/11/2010 09:30 AM, Il Lupo wrote: I have been searching around for this with no luck so I decided to post the question hoping to get a quick and straight answer. Is there a way to hook up GWT java methods/classes to straight HTML? I can see a way to do it with DIVs (retrieval via id) but cannot find a way to do it on other HTML tags. Example: say I have a menu implemented with CSS and the following HTML snippet ... ul lia href=...One/a/li lia href=...Two/a/li lia href=...Three/a/li /ul ... I want to run GWT code (some method in some java class) when the user clicks on one of the anchors. Is there a way to do it? Or as an alternative, if I define some ul/li gropus in an html file, is there a way to surface that in GWT? (by surface I mean a way to retrieve it with code and operate on it). The first place to start:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI... then ... ul lia href=javascript:foo()One/a/li lia href=javascript:bar()Two/a/li /ul ... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: linux + development mode
It works here in Ubuntu 32bit 10.04 Do you use 64 bits ? I have read about some issues with 64 bits didier On Oct 9, 2:18 pm, Racka hello.ra...@gmail.com wrote: Hi all, i'm using arch linux and my browser is firefox (and blackbox as window manager, no desktop manager at all). When i try to start a hosted mode session, my browser asks for the development plugin, which I allow to install. But when i restart my browser everything remains the same. It asks for the plugin. What can be a problem? I've heard that maybe I should recompile and make the .xpi file myself. But no luck yet... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to get rid of GWT Code Server Disconnected (solved)
You can also find all the information in the Development view in Eclipse. Rud On Oct 11, 5:20 pm, Ray Tayek rta...@ca.rr.com wrote: At 03:09 PM 10/11/2010, you wrote: hi, when things go south, i am getting this get this big grey thing that says: GWT Code Server Disconnected which hides the log stiff and my html stuff. i have poor vision, is there some way to get rid of ... seems like i shoud be able to: In Firebug or any developer tool, set display:none on the DIV. thanks --- co-chairhttp://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to get rid of GWT Code Server Disconnected (solved)
At 10:11 PM 10/11/2010, you wrote: You can also find all the information in the Development view in Eclipse. i can see the logs there just fine. On Oct 11, 5:20 pm, Ray Tayek rta...@ca.rr.com wrote: At 03:09 PM 10/11/2010, you wrote: i have poor vision, is there some way to get rid of ... seems like i shoud be able to: In Firebug or any developer tool, set display:none on the DIV. ... i can find the div and get it into edit mode (not sure how to get out of edit mode and save changes) it's pretty small type :(. hopefully i will only have to edit the one div. thanks --- co-chair http://ocjug.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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] [google-web-toolkit] r9012 committed - Add temporary gwt-maven-plugin version 1.3.2.google which fixes AppEng...
Revision: 9012 Author: cromwell...@google.com Date: Sun Oct 10 23:01:02 2010 Log: Add temporary gwt-maven-plugin version 1.3.2.google which fixes AppEngine DevMode issues http://code.google.com/p/google-web-toolkit/source/detail?r=9012 Added: /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.jar /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.jar.sha1 /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.pom /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.pom.sha1 Modified: /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/maven-metadata.xml /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/maven-metadata.xml.md5 === --- /dev/null +++ /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.jar Sun Oct 10 23:01:02 2010 Binary file, no diff available. === --- /dev/null +++ /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.jar.sha1 Sun Oct 10 23:01:02 2010 @@ -0,0 +1,1 @@ +071e0952121e1893915a06e674bfb06765c0aebc === --- /dev/null +++ /2.1.0.M3/gwt/maven/org/codehaus/mojo/gwt-maven-plugin/1.3.2.google/gwt-maven-plugin-1.3.2.google.pom Sun Oct 10 23:01:02 2010 @@ -0,0 +1,397 @@ +?xml version=1.0 encoding=UTF-8? + !-- +~ Licensed to the Apache Software Foundation (ASF) under one ~ or more contributor license agreements. See the +NOTICE file ~ distributed with this work for additional information ~ regarding copyright ownership. The ASF +licenses this file ~ to you 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, +either express or implied. See the License for the ~ specific language governing permissions and limitations ~ under +the License. + -- +project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd; + modelVersion4.0.0/modelVersion + parent +groupIdorg.codehaus.mojo/groupId +artifactIdmojo-parent/artifactId +version24/version + /parent + artifactIdgwt-maven-plugin/artifactId + version1.3.2.google/version + packagingmaven-plugin/packaging + nameMaven GWT Plugin/name + description +Maven plugin for the Google Web Toolkit. + /description + urlhttp://mojo.codehaus.org/gwt-maven-plugin/url + inceptionYear2007/inceptionYear + prerequisites +maven2.0.9/maven + /prerequisites + licenses +license + urlhttp://www.apache.org/licenses/LICENSE-2.0.txt/url + nameApache 2.0/name + distributionrepo/distribution +/license + /licenses + developers +developer + idndeloof/id + nameNicolas De Loof/name + emailnico...@apache.org/email +/developer +developer + idcharlie.collins/id + nameCharlie Collins/name + emailcharlie.coll...@gmail.com/email +/developer +developer + idolamy/id + nameOlivier Lamy/name + emailol...@apache.org/email +/developer + /developers + contributors +contributor + nameRobert Scholte/name +/contributor +contributor + nameStefan Hübner/name +/contributor + /contributors + mailingLists +mailingList + namegwt-maven-plugin User List/name + subscribecodehaus-mojo-gwt-maven-plugin-users-subscr...@googlegroups.com/subscribe + unsubscribecodehaus-mojo-gwt-maven-plugin-users+unsubscr...@googlegroups.com/unsubscribe + postcodehaus-mojo-gwt-maven-plugin-us...@googlegroups.com/post + archivehttp://groups.google.com/group/codehaus-mojo-gwt-maven-plugin-users/archive +/mailingList +mailingList + nameGeneral Mojo User List/name + subscribeuser-subscr...@mojo.codehaus.org/subscribe + unsubscribeuser-unsubscr...@mojo.codehaus.org/unsubscribe + postu...@mojo.codehaus.org/post + archivehttp://archive.hausfoundation.org/lists/org.codehaus.mojo.user/archive + otherArchives + otherArchivehttp://www.nabble.com/mojo---user-f11980.html/otherArchive + otherArchivehttp://markmail.org/list/org.codehaus.mojo.user/otherArchive + /otherArchives +/mailingList +mailingList + nameGeneral Mojo Development List/name +
[gwt-contrib] [google-web-toolkit] r9013 committed - Created wiki page through web user interface.
Revision: 9013 Author: b...@google.com Date: Mon Oct 11 06:27:34 2010 Log: Created wiki page through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9013 Added: /wiki/Editors.wiki === --- /dev/null +++ /wiki/Editors.wiki Mon Oct 11 06:27:34 2010 @@ -0,0 +1,49 @@ +#summary Data binding for bean-like objects + += GWT Editor Framework (DRAFT) = + +The GWT Editor framework allows data stored in an object graph to be mapped onto a graph of Editors. The typical scenario is wiring objects returned from an RPC mechanism into a UI. + +== Quickstart == + +{{{ +public class PersonEditor extends Dialog implements EditorPerson { + // Sub-editors are retrieved from package-protected fields, usually initialized with UiBinder + Label nameEditor; + AddressEditor addressEditor; + ManagerSelector managerEditor; +} + +public class EditPersonWorkflow{ + // Empty interface declaration, similar to UiBinder + interface Driver extends SimpleBeanEditorDriverPerson, PersonEditor {} + + // Create the Driver + Driver driver = GWT.create(Driver.class); + + void edit(Person p) { +// PersonEditor is a DialogBox that extends EditorPerson +PersonEditor editor = new PersonEditor(); +// Initialize the driver with the top-level editor +driver.initialize(editor); +// Copy the data in the object into the UI +driver.edit(p); + // Put the UI on the screen. +editor.center(); + } + + // Called by some UI action + void save() { +Person edited = driver.flush(); +if (driver.hasErrors()) { + // A sub-editor reported errors +} +doSomethingWithEditedPerson(edited); + } +} +}}} + +== Definitions == + + * _Bean-like object_: An object that supports retrieval of properties through strongly-typed `Foo getFoo()` methods with optional `void setFoo(Foo foo);` methods. + * _Editor_: An object that supports editing zero or more properties of a -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing a bug where headers are not redrawn when the data changes. I was trying to be crafty and... (issue971801)
http://gwt-code-reviews.appspot.com/971801/diff/1/3 File user/test/com/google/gwt/user/cellview/client/CellTableTest.java (left): http://gwt-code-reviews.appspot.com/971801/diff/1/3#oldcode23 user/test/com/google/gwt/user/cellview/client/CellTableTest.java:23: public class CellTableTest extends AbstractHasDataTestBase { Good catch. Fixed and I added a test case that fails against the bug. http://gwt-code-reviews.appspot.com/971801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing a bug where headers are not redrawn when the data changes. I was trying to be crafty and... (issue971801)
http://gwt-code-reviews.appspot.com/971801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add README step to use the Google Web Toolkit SDK in the gwt-user project so that users can run ... (issue966802)
http://gwt-code-reviews.appspot.com/966802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Support for server side script selection in linker (issue941802)
On 2010/10/07 21:17:49, unnurg wrote: I thought I already saw this go through -- is this still awaiting review? http://gwt-code-reviews.appspot.com/941802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Working around a bug in the xerces SAX parser used by SafeHtml templates. When using Java 1.5, t... (issue978801)
Reviewers: rchandia, Description: Working around a bug in the xerces SAX parser used by SafeHtml templates. When using Java 1.5, the parser does not parse the Template used by CellList correctly. Adding a space anywhere fixes the problem. We don't see the problem in any of the other templates. Please review this at http://gwt-code-reviews.appspot.com/978801/show Affected files: M user/src/com/google/gwt/user/cellview/client/CellList.java Index: user/src/com/google/gwt/user/cellview/client/CellList.java === --- user/src/com/google/gwt/user/cellview/client/CellList.java (revision 8983) +++ user/src/com/google/gwt/user/cellview/client/CellList.java (working copy) @@ -115,7 +115,7 @@ } interface Template extends SafeHtmlTemplates { -@Template(div onclick=\\ __idx=\{0}\ class=\{1}\ style=\outline:none;\{2}/div) +@Template(div onclick=\\ __idx=\{0}\ class=\{1}\ style=\outline:none;\ {2}/div) SafeHtml div(int idx, String classes, SafeHtml cellContents); @Template(div onclick=\\ __idx=\{0}\ class=\{1}\ style=\outline:none;\ tabindex=\{2}\{3}/div) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Ensure that EntityProxy instances returned from Collections returned from an editable EntityProx... (issue976801)
Looks good, but needs test. On 2010/10/09 15:28:19, bobv wrote: http://gwt-code-reviews.appspot.com/976801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Ensure that EntityProxy instances returned from Collections returned from an editable EntityProx... (issue976801)
http://gwt-code-reviews.appspot.com/976801/diff/1/3 File user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java (right): http://gwt-code-reviews.appspot.com/976801/diff/1/3#newcode1766 user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java:1766: // Check lists of proxies returned from an mutable object are mutable a mutable http://gwt-code-reviews.appspot.com/976801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Ensure that EntityProxy instances returned from Collections returned from an editable EntityProx... (issue976801)
LGTM Clearly the brain pills have not kicked in, the test is fine. http://gwt-code-reviews.appspot.com/976801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9014 committed - Edited wiki page Editors through web user interface.
Revision: 9014 Author: b...@google.com Date: Mon Oct 11 09:52:54 2010 Log: Edited wiki page Editors through web user interface. http://code.google.com/p/google-web-toolkit/source/detail?r=9014 Modified: /wiki/Editors.wiki === --- /wiki/Editors.wiki Mon Oct 11 06:27:34 2010 +++ /wiki/Editors.wiki Mon Oct 11 09:52:54 2010 @@ -45,5 +45,73 @@ == Definitions == - * _Bean-like object_: An object that supports retrieval of properties through strongly-typed `Foo getFoo()` methods with optional `void setFoo(Foo foo);` methods. - * _Editor_: An object that supports editing zero or more properties of a + * _Bean-like object_: (henceforth bean) An object that supports retrieval of properties through strongly-typed `Foo getFoo()` methods with optional `void setFoo(Foo foo);` methods. + * _Editor_: An object that supports editing zero or more properties of a bean. +* An Editor may be composed of an arbitrary number of sub-Editors that edit the properties of a bean. +* Most Editors are Widgets, but the framework does not require this. It is possible to create headless Editors that perform solely programmatically-driven changes. + * _Driver_: The top-level controller used to attach a bean to an Editor. The driver is responsible for descending into the Editor hierarchy to propagate data. Examples include the `SimpleBeanEditorDriver` and the `RequestFactoryEditorDriver`. + * _Adapter_: One of a number of provided types that provide canned behaviors for the Editor framework. + +== General workflow == + + * Instantiate and initialize the Editors. +* If the Editors are UI based, this is usually the time to call `UiBinder.createAndBindUi()` + * Instantiate and initialize the driver. +* Drivers are created through a call to `GWT.create()` and the specific details of the initialization are driver-dependent, although passing in the editor instance is common. +* Because the driver is stateful, driver instances must be paired with editor hierarchy instances. + * Start the editing process by passing the bean into the driver. + * Allow the user to interact with the UI. + * Call the `flush()` method on the driver to copy Editor state into the bean hierarchy. + * Optionally check `hasErrors()` and `getErrors()` to determine if there are client-side input validation problems. + +== Editor contract == + +The basic `Editor` type is simply a parameterized marker interface that indicates that a type conforms to the editor contract or informal protocol. The only expected behavior of an `Editor` is that it will provide access to its sub-Editors via one or more of the following mechanisms: + * An instance field with at least package visibility whose name exactly the property that will be edited or `propertyNameEditor`. For example: +{{{ +class MyEditor implements EditorFoo { + // Edits the Foo.getBar() property + BarEditor bar; + // Edits the Foo.getBaz() property + BazEditor bazEditor; +} +}}} + * A no-arg method with at least package visibility whose name exactly is the property that will be edited or `propertyNameEditor`. This allows the use of interfaces for defining the Editor hierarchy. For example: +{{{ +interface FooEditor extends EditorFoo { + // Edits the Foo.getBar() property + BarEditor bar(); + // Edits the Foo.getBaz() property + BazEditor bazEditor(); +} +}}} + * The `...@path` annotation may be used on the field or accessor method to specify a dotted property path or to bypass the implicit naming convention. For example: +{{{ +class PersonEditor implements EditorPerson { + // Corresponds to person.getManager().getName() + @Path(manager.name); + Label managerName; +} +}}} + * The `...@ignored` annotation may be used on a field or accessor method to make the Editor framework ignore something that otherwise appears to be a sub-Editor. + * Sub-Editors may be null. In this case, the Editor framework will ignore these sub-editors. + +== Editor subtypes == + +In addition to the `Editor` interface, the Editor framework looks for these specific interfaces to provide basic building blocks for more complicated Editor behaviors. This section will document these interfaces and provide examples of how the Editor framework will interact with the API at runtime. All of these core Editor sub-interface can be mixed at will. + + * `LeafValueEditor` is used for non-object, immutable, or any type that the Editor framework should not descend into. +1 `setValue()` is called with the value that should be edited (e.g. `fooEditor.setValue(bean.getFoo());`). +1 `getValue()` is called when the Driver is flushing the state of the Editors into the bean. The value returned from this method will be assigned to the bean being edited (e.g. `bean.setFoo(fooEditor.getValue());`). + * `HasEditorDelegate` provides an Editor with its peer `EditorDelegate`. +1
[gwt-contrib] Re: Add Support for server side script selection in linker (issue941802)
It's still waiting for review - thanks! On Mon, Oct 11, 2010 at 8:26 AM, j...@google.com wrote: On 2010/10/07 21:17:49, unnurg wrote: I thought I already saw this go through -- is this still awaiting review? http://gwt-code-reviews.appspot.com/941802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Support for server side script selection in linker (issue941802)
http://gwt-code-reviews.appspot.com/941802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Add Support for server side script selection in linker (issue941802)
Hi Arthur - Are you asking if there's an existing linker for the inlining of your selection script? If so, no - the linker has no access to the contents of your initital html page. What you need to do is, rather than serve a static html page, your server will have to dynamically generate it, by reading the content of the nocache.js file and putting it directly in the html which is served on the initial request. In theory, if you rarely release your code, you could do this manually - basically, every time you do a gwt compile, manually copy the contents of nocahce.js into the initial html page. - Unnur On Fri, Oct 8, 2010 at 12:41 PM, Arthur Kalmenson arthur.k...@gmail.com wrote: That's a great idea Unnur. Is there an existing linker for this or would I have to build it (it seems like something the linker would do, if I understood them correctly)? -- Arthur Kalmenson On Fri, Oct 8, 2010 at 1:57 PM, Unnur Gretarsdottir unn...@google.com wrote: Hi Arthur - This is, and will probably remain for some time, experimental. In order to use this, you'll need to extend the linker and change the variable - also, you'll need to write your own server code to parse the compilation mappings text file and decide which permutation you want to use. Sorry not to have a better answer - we did want to make sure that this new linker is set up to support this sort of linking, but it is not currently a feature that we are officially releasing. FYI - if your primary concern is the double round trips, as opposed to the size of the permutation selection JS, then an easy solution for you is to simply inline the foo.nocache.js script into your page rather than requesting it using a script tag - Unnur On Mon, Oct 4, 2010 at 2:06 PM, Arthur Kalmenson arthur.k...@gmail.com wrote: Wow, this is great! I'm guessing this means we can cut the startup round trips to one? Is this going into GWT 2.1? Exciting stuff. -- Arthur Kalmenson On Fri, Oct 1, 2010 at 6:09 PM, unn...@google.com wrote: Reviewers: jgw, Description: Add Support for server side script selection in linker Please review this at http://gwt-code-reviews.appspot.com/941802/show Affected files: A dev/core/src/com/google/gwt/core/ext/linker/impl/PermutationsUtil.java A dev/core/src/com/google/gwt/core/ext/linker/impl/PropertiesMappingArtifact.java A dev/core/src/com/google/gwt/core/ext/linker/impl/ResourceInjectionUtil.java M dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java M dev/core/src/com/google/gwt/core/ext/linker/impl/computeScriptBase.js M dev/core/src/com/google/gwt/core/ext/linker/impl/installLocationIframe.js A dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptCommon.js A dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptDirect.js A dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js M dev/core/src/com/google/gwt/core/ext/linker/impl/permutations.js M dev/core/src/com/google/gwt/core/ext/linker/impl/processMetas.js M dev/core/src/com/google/gwt/core/ext/linker/impl/waitForBodyLoaded.js M dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java M dev/core/src/com/google/gwt/core/linker/CrossSiteIframeTemplate.js M dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Working around a bug in the xerces SAX parser used by SafeHtml templates. When using Java 1.5, t... (issue978801)
LGTM http://gwt-code-reviews.appspot.com/978801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Working around a bug in the xerces SAX parser used by SafeHtml templates. When using Java 1.5, t... (issue978801)
LGTM http://gwt-code-reviews.appspot.com/978801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors