Re: JSNI - Call Javascript native method from another
Technically, Here you are trying to call java method from javascript. I did not come across this situation, try full compile if throws any errors. Global School District http://schoolk12.appspot.com/ On Sep 14, 9:57 am, Jésica cuello.jes...@gmail.com wrote: Hi, I'm facing problems for calling a native method from another. i'm trying to do It like this: //JSNI code public native void dragStart()/*-{ alert(OnDragStart); }-*/; public native void addPushpin()/*-{ (...) blah.Events.addHandler(pin, 'dragstart', dragStart); (...) }-*/ I'm getting an error saying dragStart is not defined. Is there an special way for making this interaction work? Thanks, Jésica. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: onModuleLoad() - what is it in javascript
To answer my own question, looks like, onLoadModuleLoad() - won't be converted into javascript as is. It is a directive to java-javascript cross compiler telling what is main script and how rest of the scriptlets are to be arranged. Global School District http://schoolk12.appspot.com/ On Sep 8, 9:16 pm, dreamer venugopal.vasire...@gmail.com wrote: Just for proof of concept, save the below two code segments as html and js files and launch html, it builds the body. test.html== html head titleThis is test page sas/title script type=text/javascript language=javascript src=test.js/ script /head /html === ===test.js=== function test(){ alert(Hello); document.write(Hello);} test(); == On Sep 8, 8:14 pm, dreamer venugopal.vasire...@gmail.com wrote: seems 1.6 documentation is old, it is assuming main script is in body. now it is in head tag. In detailed compile file, there is call for compile like schooldistrict();. Which is bootstrap javascript function for all script lets. My guess is main script (function/object) is getting executed soon after loading, which in tern is injecting all script tags in body, which in tern rendering body. Global School Districthttp://schoolk12.appspot.com/ On Sep 8, 11:56 am, Ernesto Oltra ernestoka...@gmail.com wrote: Oops, and try using the Detailed compilation mode, to be able to search onModuleLoad in the javascript file and then track it better when compiled in advance mode. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
onModuleLoad() - what is it in javascript
Hi, I am trying to figureout, what onModuleLoad() becomes after gwt compilation. Basically to figure out the magic behind onLoadModule. All is well, java script gets loaded in head. But how on the earth any function inside that script got executed, are there any events, that Browser fires once script is loaded? I checked compiled code, here there suspects. I am not javascript guru, can somebody throw some light on this. schooldistrict.nocache.js is the main java script name for my GWT app. = here are three suspects === schooldistrict.onInjectionDone = function(){ scriptsDone = true; $stats $stats({moduleName:$intern_1, sessionId:$sessionId, subSystem:$intern_2, evtGroup:$intern_51, millis:(new Date).getTime(), type:$intern_9}); maybeStartModule(); } - schooldistrict.onScriptLoad = function(){ if (frameInjected) { loadDone = true; maybeStartModule(); } } - var onBodyDoneTimerId = setInterval(function(){ if (/loaded|complete/.test($doc.readyState)) { maybeInjectFrame(); onBodyDone(); } } , 50); -- Global school district http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: onModuleLoad() - what is it in javascript
seems 1.6 documentation is old, it is assuming main script is in body. now it is in head tag. In detailed compile file, there is call for compile like schooldistrict();. Which is bootstrap javascript function for all script lets. My guess is main script (function/object) is getting executed soon after loading, which in tern is injecting all script tags in body, which in tern rendering body. Global School District http://schoolk12.appspot.com/ On Sep 8, 11:56 am, Ernesto Oltra ernestoka...@gmail.com wrote: Oops, and try using the Detailed compilation mode, to be able to search onModuleLoad in the javascript file and then track it better when compiled in advance mode. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: onModuleLoad() - what is it in javascript
Just for proof of concept, save the below two code segments as html and js files and launch html, it builds the body. test.html== html head titleThis is test page sas/title script type=text/javascript language=javascript src=test.js/ script /head /html === ===test.js=== function test(){ alert(Hello); document.write(Hello); } test(); == On Sep 8, 8:14 pm, dreamer venugopal.vasire...@gmail.com wrote: seems 1.6 documentation is old, it is assuming main script is in body. now it is in head tag. In detailed compile file, there is call for compile like schooldistrict();. Which is bootstrap javascript function for all script lets. My guess is main script (function/object) is getting executed soon after loading, which in tern is injecting all script tags in body, which in tern rendering body. Global School Districthttp://schoolk12.appspot.com/ On Sep 8, 11:56 am, Ernesto Oltra ernestoka...@gmail.com wrote: Oops, and try using the Detailed compilation mode, to be able to search onModuleLoad in the javascript file and then track it better when compiled in advance mode. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: For JavascriptObject,what is counterpart for HashMap?
JSON is equivalent to XML without tags not directly to java. Though java objects can be marshelled into xml and then to json. So I guess all collection types are converted into json arrays. If you see at high level java/javascript object can contain another object or collection of object or attribute with value. JSON has these three representations. -venu Global School District http://schoolk12.appspot.com/ On Sep 7, 2:16 am, Alex Luya alexander.l...@gmail.com wrote: I am change RPC to JSON ,Two questions: 1,Can I always change ArrayList to JsArray?In other worlds,JsArray is the counterpart of ArrayList,rigth? 2,What is the counterpart of HashMap?Should I construct a new one?or any existings?Or any example? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re : Developing GWT App using Tomcat
My short answer is develop in dev mode as is and deploy in any servlet container you prefer. If you go to debug configuration, in server tab, you only see embedded server which is nothing but jetty dev mode. In short there may not be any easy way to debug in other servers. But you should be able to develop in DEV mode and deploy in any servlet container. Once you make war file, there is nothing specific to jetty. I just have three jars in my web/lib - gwt_servlet.jar,appengine- api-1.0-sdk-1.5.2.jar,appengine-api-labs-1.5.2.jar - If you want to run on tomcat you may or may not need any of these. Global School District http://schoolk12.appspot.com/ On Sep 6, 7:19 pm, Ashwani ashw.ku...@gmail.com wrote: Hi, For Option 1: I tried to remove the app engine by doing following steps: 1) In project - properties go to Google-App Engine 2) Unselect the option Use Google App Engine I get following error when running the Application as Web Application Exception in thread main java.lang.NoSuchMethodError: org.mortbay.thread.Timeout.init(Ljava/lang/Object;)V at org.mortbay.io.nio.SelectorManager $SelectSet.init(SelectorManager.java:306) at org.mortbay.io.nio.SelectorManager.doStart(SelectorManager.java: 223) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.nio.SelectChannelConnector.doStart(SelectChannelConnector .java: 303) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at org.mortbay.jetty.Server.doStart(Server.java:233) at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java: 39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java: 667) at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:500) at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1055) at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:804) at com.google.gwt.dev.DevMode.main(DevMode.java:309) If i use Google App Engine, i get following error when i tried to access the DB: java.sql.SQLException: URL is not in the correct format: jdbc:mysql:// localhost:3306/upskillingdb at com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(E xceptions.java: 103) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.sap.upskillingmanager.server.DataBaseConnector.getConnection(DataBaseCo nnector.java: 54) at com.sap.upskillingmanager.server.DataBaseServicesImpl.addTraining(DataBaseS ervicesImpl.java: 17) Any hints on how i can remove GAE from my project and use jetty server for development ? Thanks and Regards, Ashwani Kr Sharma On Sep 6, 8:22 pm, Jeanpylone jeanpyl...@gmail.com wrote: just remove App engine from your project (seehttps://groups.google.com/forum/#!msg/google-web-toolkit/j76nAJT7zgU/... ) 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Backend Socket Connection
May be you can build json wrapper over your socket server and make REST request from client,some tricks are there to overcome same origin policy. From back end, I guess app engine allows URL fetch across domains. Global School District http://schoolk12.appspot.com/ On Sep 6, 5:48 pm, Nicolas spnic...@gmail.com wrote: Hi, I'm trying to develop an application with GWT that shows data related to position of planes in flying. The architecture of the system consist on the follow components: A data server responsible for sending data to the moment they arrive, via a specific protocol, to the application server. The web application server. The problem is that I can't implement the client side, the web server, of the protocol to recieve the data. Any help?Please. What library can I use? Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT customization (CSS) by web designer
Without any addition automation I follow this cycle. 1) Setup full development environment, start at app development mode (debug-run) 2) open the CSS file with gwt css editor. 3) make changes, save 3) in development tab - reload web server (two crossing arrows) 4) new css will be loaded, just test changes from GUI , launching the site. On Aug 26, 7:18 pm, Michael Allan m...@zelea.com wrote: A simple approach is to pull the designer's style sheet into the GWT page, just as you would into a static page. Here's an example:http://zelea.com/project/votorola/a/web/base/xf/default.html See the link element. See also the caveat in this style sheet, which is imported into the main sheet:http://zelea.com/project/votorola/a/web/base/web/gwt.css -- Michael Allan Toronto, +1 416-699-9528http://zelea.com/ Otto Chrons wrote: We are trying out GWT 2.3 for the first time to develop a web application for professional users (not consumers). What is the best way to enable a web designer to work on customizing the UI, especially CSS, without having him work through the full GWT compile/package scheme? Ideally we would just compile the production version of the app, deploy it and the designer could then work with the static deployment and directly edit CSS files so that changes could be seen just by reloading the web page. - Otto -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Insane RPC Serialization Error.
I had similar issues, all pointed back to some defensive coding. As all calls are aync , behavior will be some what unexpected in few situations. Here are some tricks I played to such errors. 1) try in different browsers. 2) Load the app instance, then try, meaning use once, and second, third, is problem persistent. 2) In your loginConfig file, if is client side code, check for nullability of the object you are casting, sure, what ever object , you are are casting to is null, depending, how implemented the call, async call might be delaying. One trick, test for null and throw Window.alert(blah blah object is null at line and class - till you resolve these issues. 3) I had the habit of coding this.variable=param - this thew null pointer exception in IE9, I removed all this.variable and named params with non-conflicting name. Obviously javascript is not as robust as java, so we have code very defensively. 4) I found, rather I coded more procedural way than forcing all OO concepts in to code, this gave small footprint and performance. GWT likes procedure code. 5) Client side, I did not spend much time but Window.alert is working great for me. These are the things I should not see, if shows, code broke some where, even I kept these in app engine uploaded, of- course I don't have 1000's of users right now. These are my experiences, You can experiment and find what works in your situation. -venu http:schoolk12.appspot.com On Aug 22, 6:48 am, Jambi michael.lukaszc...@googlemail.com wrote: Could you post the class contents? Maybe we can see something in your code. On 22 Aug., 15:08, Stefan Ollinger stefan.ollin...@gmx.de wrote: Some days ago I had a similar problem. Development version worked fine, but the compiled version gave those errors. What I did to resolve them, was to build my project from scratch. At the end I had a compiled and working version, having the same codebase like before. In the progress of resolving the error I also changed some eclipse settings: - Google Plugin for Eclipse - Default GWT Version from 2.2 to 2.3 - Updated Maven Dependencies: GWT 2.2. to 2.3.0, GWT Maven Plugin 2.2 to 2.3.0-1 Finally I cannot say where this behaviour results from, but this is how I solved the problem. Regards, Stefan Am 22.08.2011 14:16, schrieb J.Ganesan: Any anonymous inner class you have ? That could be a problem. J.Ganesan www.DataStoreGwt.com On Aug 22, 4:38 pm, Gianluigidava...@yahoo.it wrote: The problem is that the serialization behaviour is different from web and hosted mode... I don't know how I should resolve this... Da: Gianluigidava...@yahoo.it A: Google Web Toolkitgoogle-web-toolkit@googlegroups.com Inviato: Luned 22 Agosto 2011 10:30 Oggetto: Insane RPC Serialization Error. Hi to all, It's several days I'm struggling with this error. I make a rpc call from GWT client to a server passing an object. This pojo contain several data ... and a String with some JSON stuff. The call in DEBUG mode works absolutely fine. Not only in debug mode, but when I use the application connected with the GWT browser plugin. In production mode... the seralization fails!!! Nothing on server side. I investigate the call in firebug... and the output is: Fri Aug 19 18:13:11 GMT+100 2011 com.google.gwt.logging.client.LogConfiguration SEVERE: null java.lang.ClassCastException: null at Unknown.collect_0(Unknown Source) at Unknown.createStackTrace_0(Unknown Source) at Unknown.fillInStackTrace_0(Unknown Source) at Unknown.fillInStackTrace(Unknown Source) at Unknown.$fillInStackTrace(Unknown Source) at Unknown.$$init_14(Unknown Source) at Unknown.Throwable_0(Unknown Source) at Unknown.Exception_0(Unknown Source) at Unknown.RuntimeException_0(Unknown Source) at Unknown.ClassCastException_0(Unknown Source) at Unknown.dynamicCast(Unknown Source) at Unknown.makeValue(Unknown Source) at Unknown.makeValue_0(Unknown Source) at Unknown.$extractField(Unknown Source) at Unknown.extractField(Unknown Source) at Unknown.$extractData_0(Unknown Source) at Unknown.$makeObject(Unknown Source) at Unknown.makeValue(Unknown Source) at Unknown.writeObject(Unknown Source) at Unknown.serialize_33(Unknown Source) at Unknown.serialize_28(Unknown Source) at Unknown.$serialize(Unknown Source) ... That error output comes thanks to the -Dgwt.style=PRETTY ... otherwise would be obfuscated. I'm struggling with this error. How is it possible that in debug mode works properly? Any hints to resolve the issue?! THANKS! Muzero -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to
Re: multiple gwt modules
GWT module is a simply a javascript bundle. I guess you are looking to open a component in another window. you can use Window.Open(..). This gives better info regarding modules http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules On Aug 11, 7:38 pm, Daemon Zak saje...@gmail.com wrote: hi juan! I'm aware of that ! I want to be able to load a module in a new browser window from another module by some action ...say by clicking a button On Aug 11, 10:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: You sure use the module: inherits name='com.google.gwt.user.User' / This module is define in gwt-user.jar. Check how is it do. Is this do you need? 2011/8/11 Daemon Zak saje...@gmail.com I want to able to load a gwt module from another gwt module for eg: if i click a button ,the new module should be loaded in a new browser ,with the same session attributes. how do we communicate between modules i.e . if i want to pass some information from one module to another and vice versa . any help is greatly appreicated -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Cannot display Facebook Like or Send button in GWT
Integrating GWT and Closure makes lot of sense. GWT is lacking on the server side template-ing. Closure needs cross compiler like GWT. On Aug 8, 11:27 am, simplyi sergey.kargopo...@gmail.com wrote: Hello! I am having hard time getting Facebook Like or Send button to display on GWT popup panel. Both buttons display and work well outside of GWT. But do not get displayed on GWT panels. To display Facebook button I use HTML panel: HTML sendButton = new HTML(); sendButton.setHTML(div id=\fb-root\/divfb:send href= \+linkToPhoto+\ font=\arial\/fb:send); right_side_flowPanel.add(sendButton); Facebook JavaScript and Meta tags are included above on page withing header tag. Please advise me how to get it fixed. Thank you very much. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RIP (Rich Internet Pages) instead RIA
Thanks Karthik for the reply. Client side rendering (DOM manipulation) and Server side rendering (HTML manipulation), certainly these achieve rendering efficiency, but still programming approach is still same, that client side event programming. Server can get away from rendering totally, keeping the business logic with it, and serve view+model+presenter to server, so that client can what it is best at, and server can what is best at. Creating event is the only way to get any resource from server in current GWT during run time. Please correct me , if wrong. Server could send entire page + presenter as as java script and Model to client, We can leverage Browser DOM, to apply Model to view as in today. That way you only serve the java script, really you need. Programmer can only visualize the page is in AJAX world, I have seen extreme apps, there is only single page, other extreme our jsp page with little java script. Code splitting, server rendering - makes different. But approach remains same, where client will have entire app and makes server calls on user events. We can get the best of both worlds, like every thing on server (jsp model) and every thing on client (GWT) model. Server should remain as brain for using Enterprise resources etc, that server will be able every thing that is need for client, for ajax page in one shot, Client can do DOM manipulation, little bit of event-ing if required, like refreshing with new values etc. Hand written AJAX page should be same as GWT generated page, that GWT will remain like tool, still programmer will have flexibility to choose what approach suits for his application. For few web apps, RIA approach may be more lively. Is there any easy way in GWT, to post entire page and get new page ? On Aug 6, 6:33 pm, Karthik Reddy karthik.ele...@gmail.com wrote: Or you could wait for server-side rendering to be supported by GWT. The GWT team has dropped few hints in a couple of threads indicating that the day could not be very far off when GWT does support server-side rendering. See the following threads: https://groups.google.com/forum/#!topic/google-web-toolkit-contributo... * ...It allows us to optimize for different browsers, and it even opens the door for server side rendering. * * * *https://groups.google.com/forum/#!topic/google-web-toolkit-contributo... * *The latter can be user in a regular JVM to create an HTML string, which will hopefully help with server side rendering in the future. * * * Another relevant thread I have started regarding GWT, Closure, server-side rendering* : *https://groups.google.com/forum/#!topic/google-web-toolkit-contributo... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RIP (Rich Internet Pages) instead RIA
Thanks Magno Machado Paulo. You are suggesting to reverse the calls. Meaning first call RPC to load model then gwt async to load viewpresenter. second gwt async can be called only on success of first rpc for model. to make sure model is available in all conditions. So there are two async server calls no matter how we do it. more over code splitting is not transparent like individual pages, where you send which ever page you want filled with data to client. We should have flexibility to serve the page either from client or server, so that we can get advantage of both worlds. Every thing on client including decision making may not fit well for enterprise class solutions as all Enterprise resources are at server, which are well protected etc. It would be awesome if we get best of both worlds. -Venu http://schoolk12.appspot.com/ On Aug 6, 3:07 am, Magno Machado magn...@gmail.com wrote: You could use your server to fetch the data and embed it on the host page. Then when the GWT code is loaded, it can read the data and render the screen without making a new request on the server... For exemple: User requesthttp://your-app.com/?page=contactlist The server receives the request, fetch a list of contacts on the DB and write it on the hostpage The host page is sent back to the browser The browser loads the host page, which in turn load your GWT code In your entrypoint, you read what is the current page, make an async call to load the javascript for that page Instead of making a RPC call to load the data, you can read the data already embeded on the host page Now the user clicks on an Edit contact link on the page The browser will send a get request forhttp://your-app.com/?page=editcontactcontactid=1 I don't know how mobile browsers cache pages (maybe for the sake of disk space, they don't?), but hopefully all the JS will get cached on the browser once they're loaded for the first time On Sat, Aug 6, 2011 at 12:49 AM, dreamer venugopal.vasire...@gmail.comwrote: Thanks for the reply Magno Machado Paulo. Code splitting is a console, documentation is telling on main page, for every event click where ever we need to load composite, suggested to use GWT.runAsync. But the problem is I ended up getting Async call within Another Async call, one for loading composite, on success another async RPC call to get Model, for some reason even main page is not that fast, in fact I observed some slow. This is pure implementation issue. Conceptually, why async call to load another page, why don't we submit entire page and get fresh page along with model applied to view on server itself like jsp? Why don't I use jsp? - I want to develop like a swing app with ajax capability and drag and drop designer. On Aug 5, 7:27 pm, Magno Machado magn...@gmail.com wrote: What it your app read a particular parameter on the URL that tell the app what page should be rendered, then everytime you need to display a new page, you generate a get request with the parameter for the page you wish to display. If you use runAsync on each page, the browser will always load only the JS for the current page, not the whole app code On Fri, Aug 5, 2011 at 10:50 PM, dreamer venugopal.vasire...@gmail.com wrote: Hi, How about if it is possible to build Rich Internet Page (RIP), in a more productive tool like GWT designer and eclipse plug etc and server serving these pages using some web framework ? My friend asked why don't you hand code html+ajax, sure that is perfect, if that magic is possible with GWT, how productive it would be? What is wrong with GWT RIA apps, Problem is I don't see pages, I see entire app,comes onto browser and my server becomes dummy. What is wrong server being dummy? because Browser is supposed to be thin and you can use it on 10 devices in single day. You open browser on cell phone, laptop,desktop where not, still use the same app. so application can not be one big bundle. It needs to be page at a time. Ok, then it is not RIA app, then it is RIP. So why I don't I settle for a RIP (Rich Internet Page) ? - looks cool to me. Is it possible to build using my favorite GWT+AppEngine. ? Stay tuned, I will Let you know ---Dreamer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulohttp://blog.magnomachado.com.brhttp:// code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email
Re: GWT on server side ?
Thanks Michael. I ended up having two async rpc calls one within other , one to get view another to get model. killing the advantage of code splitting. On Aug 6, 2:29 am, Michael Vogt vmei...@googlemail.com wrote: Thanks Michael . You're welcome. Who needs entire app, specially in enterprise environment. Typical user uses only 5% of the pages. When this is the case for your application, then look into code splitting (http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html). That way you can serve only the code that is needed on the client. Used it in a recent project. Works very well. Greetings, Michael --http://about.me/michaelvogt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RIP (Rich Internet Pages) instead RIA
Thanks for reply Stevko. Meaning big javascript verses bunch of html pages. would it be great if some we combine these ? In module html file we load entire java script, why not small chunk of javascript just to render that page? - for outside it is just a html page. Will multiple modules serves the purpose? May be I can open different module's html page with window.open. One GWT module for page ? - do-able - not sure. Let me try. Only compromise is client is driving the page flow not server, at least one step forward. On Aug 6, 1:08 pm, Andy Stevko andy.ste...@gmail.com wrote: You may want to investigate other toolkit frameworks that fit your wants better. One that comes to mind is Closure which, I have read, allows for the creation of pages in both the browser and server via the use of templates. For clients that have a fast client, the browser loads javascript and renders the page locally. For clients that have a slow client (think phone browser), the server renders the html page and dumps the html only. http://code.google.com/closure/ On Sat, Aug 6, 2011 at 7:57 AM, dreamer venugopal.vasire...@gmail.comwrote: Thanks Magno Machado Paulo. You are suggesting to reverse the calls. Meaning first call RPC to load model then gwt async to load viewpresenter. second gwt async can be called only on success of first rpc for model. to make sure model is available in all conditions. So there are two async server calls no matter how we do it. more over code splitting is not transparent like individual pages, where you send which ever page you want filled with data to client. We should have flexibility to serve the page either from client or server, so that we can get advantage of both worlds. Every thing on client including decision making may not fit well for enterprise class solutions as all Enterprise resources are at server, which are well protected etc. It would be awesome if we get best of both worlds. -Venu http://schoolk12.appspot.com/ On Aug 6, 3:07 am, Magno Machado magn...@gmail.com wrote: You could use your server to fetch the data and embed it on the host page. Then when the GWT code is loaded, it can read the data and render the screen without making a new request on the server... For exemple: User requesthttp://your-app.com/?page=contactlist The server receives the request, fetch a list of contacts on the DB and write it on the hostpage The host page is sent back to the browser The browser loads the host page, which in turn load your GWT code In your entrypoint, you read what is the current page, make an async call to load the javascript for that page Instead of making a RPC call to load the data, you can read the data already embeded on the host page Now the user clicks on an Edit contact link on the page The browser will send a get request forhttp:// your-app.com/?page=editcontactcontactid=1 I don't know how mobile browsers cache pages (maybe for the sake of disk space, they don't?), but hopefully all the JS will get cached on the browser once they're loaded for the first time On Sat, Aug 6, 2011 at 12:49 AM, dreamer venugopal.vasire...@gmail.com wrote: Thanks for the reply Magno Machado Paulo. Code splitting is a console, documentation is telling on main page, for every event click where ever we need to load composite, suggested to use GWT.runAsync. But the problem is I ended up getting Async call within Another Async call, one for loading composite, on success another async RPC call to get Model, for some reason even main page is not that fast, in fact I observed some slow. This is pure implementation issue. Conceptually, why async call to load another page, why don't we submit entire page and get fresh page along with model applied to view on server itself like jsp? Why don't I use jsp? - I want to develop like a swing app with ajax capability and drag and drop designer. On Aug 5, 7:27 pm, Magno Machado magn...@gmail.com wrote: What it your app read a particular parameter on the URL that tell the app what page should be rendered, then everytime you need to display a new page, you generate a get request with the parameter for the page you wish to display. If you use runAsync on each page, the browser will always load only the JS for the current page, not the whole app code On Fri, Aug 5, 2011 at 10:50 PM, dreamer venugopal.vasire...@gmail.com wrote: Hi, How about if it is possible to build Rich Internet Page (RIP), in a more productive tool like GWT designer and eclipse plug etc and server serving these pages using some web framework ? My friend asked why don't you hand code html+ajax, sure that is perfect, if that magic is possible with GWT, how productive it would be? What
Re: RIP (Rich Internet Pages) instead RIA
ya, even with another module we just get view, not model. On Aug 6, 3:40 pm, dreamer venugopal.vasire...@gmail.com wrote: Thanks for reply Stevko. Meaning big javascript verses bunch of html pages. would it be great if some we combine these ? In module html file we load entire java script, why not small chunk of javascript just to render that page? - for outside it is just a html page. Will multiple modules serves the purpose? May be I can open different module's html page with window.open. One GWT module for page ? - do-able - not sure. Let me try. Only compromise is client is driving the page flow not server, at least one step forward. On Aug 6, 1:08 pm, Andy Stevko andy.ste...@gmail.com wrote: You may want to investigate other toolkit frameworks that fit your wants better. One that comes to mind is Closure which, I have read, allows for the creation of pages in both the browser and server via the use of templates. For clients that have a fast client, the browser loads javascript and renders the page locally. For clients that have a slow client (think phone browser), the server renders the html page and dumps the html only. http://code.google.com/closure/ On Sat, Aug 6, 2011 at 7:57 AM, dreamer venugopal.vasire...@gmail.comwrote: Thanks Magno Machado Paulo. You are suggesting to reverse the calls. Meaning first call RPC to load model then gwt async to load viewpresenter. second gwt async can be called only on success of first rpc for model. to make sure model is available in all conditions. So there are two async server calls no matter how we do it. more over code splitting is not transparent like individual pages, where you send which ever page you want filled with data to client. We should have flexibility to serve the page either from client or server, so that we can get advantage of both worlds. Every thing on client including decision making may not fit well for enterprise class solutions as all Enterprise resources are at server, which are well protected etc. It would be awesome if we get best of both worlds. -Venu http://schoolk12.appspot.com/ On Aug 6, 3:07 am, Magno Machado magn...@gmail.com wrote: You could use your server to fetch the data and embed it on the host page. Then when the GWT code is loaded, it can read the data and render the screen without making a new request on the server... For exemple: User requesthttp://your-app.com/?page=contactlist The server receives the request, fetch a list of contacts on the DB and write it on the hostpage The host page is sent back to the browser The browser loads the host page, which in turn load your GWT code In your entrypoint, you read what is the current page, make an async call to load the javascript for that page Instead of making a RPC call to load the data, you can read the data already embeded on the host page Now the user clicks on an Edit contact link on the page The browser will send a get request forhttp:// your-app.com/?page=editcontactcontactid=1 I don't know how mobile browsers cache pages (maybe for the sake of disk space, they don't?), but hopefully all the JS will get cached on the browser once they're loaded for the first time On Sat, Aug 6, 2011 at 12:49 AM, dreamer venugopal.vasire...@gmail.com wrote: Thanks for the reply Magno Machado Paulo. Code splitting is a console, documentation is telling on main page, for every event click where ever we need to load composite, suggested to use GWT.runAsync. But the problem is I ended up getting Async call within Another Async call, one for loading composite, on success another async RPC call to get Model, for some reason even main page is not that fast, in fact I observed some slow. This is pure implementation issue. Conceptually, why async call to load another page, why don't we submit entire page and get fresh page along with model applied to view on server itself like jsp? Why don't I use jsp? - I want to develop like a swing app with ajax capability and drag and drop designer. On Aug 5, 7:27 pm, Magno Machado magn...@gmail.com wrote: What it your app read a particular parameter on the URL that tell the app what page should be rendered, then everytime you need to display a new page, you generate a get request with the parameter for the page you wish to display. If you use runAsync on each page, the browser will always load only the JS for the current page, not the whole app code On Fri, Aug 5, 2011 at 10:50 PM, dreamer venugopal.vasire...@gmail.com wrote: Hi, How about if it is possible to build Rich Internet Page (RIP), in a more productive tool like GWT designer and eclipse plug
GWT on server side ?
Hi, Is it possible use GWT to build server side components, like html +javascript pages using composites some kind of stuff? I mean in server/web centric way than , client centric way ? anybody tried using existing infrastructure to build some this on this line ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RIP (Rich Internet Pages) instead RIA
Hi, How about if it is possible to build Rich Internet Page (RIP), in a more productive tool like GWT designer and eclipse plug etc and server serving these pages using some web framework ? My friend asked why don't you hand code html+ajax, sure that is perfect, if that magic is possible with GWT, how productive it would be? What is wrong with GWT RIA apps, Problem is I don't see pages, I see entire app,comes onto browser and my server becomes dummy. What is wrong server being dummy? because Browser is supposed to be thin and you can use it on 10 devices in single day. You open browser on cell phone, laptop,desktop where not, still use the same app. so application can not be one big bundle. It needs to be page at a time. Ok, then it is not RIA app, then it is RIP. So why I don't I settle for a RIP (Rich Internet Page) ? - looks cool to me. Is it possible to build using my favorite GWT+AppEngine. ? Stay tuned, I will Let you know ---Dreamer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RIP (Rich Internet Pages) instead RIA
Thanks for the reply Magno Machado Paulo. Code splitting is a console, documentation is telling on main page, for every event click where ever we need to load composite, suggested to use GWT.runAsync. But the problem is I ended up getting Async call within Another Async call, one for loading composite, on success another async RPC call to get Model, for some reason even main page is not that fast, in fact I observed some slow. This is pure implementation issue. Conceptually, why async call to load another page, why don't we submit entire page and get fresh page along with model applied to view on server itself like jsp? Why don't I use jsp? - I want to develop like a swing app with ajax capability and drag and drop designer. On Aug 5, 7:27 pm, Magno Machado magn...@gmail.com wrote: What it your app read a particular parameter on the URL that tell the app what page should be rendered, then everytime you need to display a new page, you generate a get request with the parameter for the page you wish to display. If you use runAsync on each page, the browser will always load only the JS for the current page, not the whole app code On Fri, Aug 5, 2011 at 10:50 PM, dreamer venugopal.vasire...@gmail.comwrote: Hi, How about if it is possible to build Rich Internet Page (RIP), in a more productive tool like GWT designer and eclipse plug etc and server serving these pages using some web framework ? My friend asked why don't you hand code html+ajax, sure that is perfect, if that magic is possible with GWT, how productive it would be? What is wrong with GWT RIA apps, Problem is I don't see pages, I see entire app,comes onto browser and my server becomes dummy. What is wrong server being dummy? because Browser is supposed to be thin and you can use it on 10 devices in single day. You open browser on cell phone, laptop,desktop where not, still use the same app. so application can not be one big bundle. It needs to be page at a time. Ok, then it is not RIA app, then it is RIP. So why I don't I settle for a RIP (Rich Internet Page) ? - looks cool to me. Is it possible to build using my favorite GWT+AppEngine. ? Stay tuned, I will Let you know ---Dreamer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Magno Machado Paulohttp://blog.magnomachado.com.brhttp://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT is for apps — right? But what's about static pages? (GWT's Future Plans...)
= static pages I tried to develop a page uisng UIBinder (mix of html and widgets) and RPC calls where it makes sense and ultimately I wanted to post entire page to server and let server serve next page. Here are My roadblocks for now * Not sure how to post entire page to servlet, develop just using designer and plugin * If some how, able to post UIBinder page to servlet, how servlet creates a RequestDispatcher for another UIBinder page? * Can UIBinder page be identifiable like jsp/html page on server ??? -Venu http://schoolk12.appspot.com/ On Aug 4, 6:45 am, Alexander Orlov alexander.or...@loxal.net wrote: On Thu, Aug 4, 2011 at 3:11 PM, Alex Dobjanschi alex.dobjans...@gmail.comwrote: As far as it goes, you're basically running Javascript code, in a (simple-to-complex) app, inside client code (browser sandbox). I don't how crawling such an app would be straightforward. The apps parts of an app shouldn't be crawled... There are static parts in almost every app, e.g. product descriptions and exactly those parts of an app should be crawled. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Page flows - want to start a open source project - thoughts
Very good point. I have gone through same thought process. After using designer to build composites (html pages), I came to conclusion that this is what I want to build my web sites with. Just drag and drop widgets and build pages, Yes we got new world for page design and development, but web is highly distributed network, it can never become thick client application which just makes jdbc calls to server, or some thing like that. I was fascinated by JSF and its Idea, but it my fascination faded down slowly after struggling few weeks. But not with GWT and App engine. I found what I am looking for, thing is how to make these better, so that we can build more complex enterprise apps without much re- engineering. - venu - http://schoolk12.appspot.com/ On Jul 30, 12:38 am, Alain Ekambi jazzmatad...@googlemail.com wrote: Then what just you dont use JSP or JSF then ? GWT follows a different paradigm then those technologies. I just cant see the benefit of similutationg JSP with GWT 2011/7/30 dreamer venugopal.vasire...@gmail.com What if we need to port very complex web app with 100's of jsp/html pages into GWT ? Yes. swing and gwt got lot of similarities. But loosing web advantages being on web may be not cool. yep Swing is Forms flow with thick client nature. There is a huge paradigm shift between these two worlds. as per my understanding GWT is trying to simulate thick client (yep swing) where all the forms/pages are at client and makes rpc to create Models thus MVP to refresh GUI. My thought is to preserve the thin client nature, when you are getting completely new page, just make URL / URI call to load javascript component. Server serves Model and View, on client presenter can update view, before rendering GUI. this way application stays very light weight , just like HTML pages, I beleive complex application with hundereds of jsp/html pages can be easily ported into GWT. sure AJAX reduces # of pages. but not down to one or two pages. Partial refreshes will will be done as usual. - venu - http://schoolk12.appspot.com/ On Jul 29, 7:34 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is swing applications pageflow? I think not. Perhaps you can look at architecture proposed in ProGWT book http://books.google.com/books?id=OG816JSZYVcCprintsec=frontcoverdq=... . In this architecture you don't need use a whole page. 2011/7/29 dreamer venugopal.vasire...@gmail.com Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Page flows - want to start a open source project - thoughts
I forgot to mention about JNLP based swing applications, I see lot similarities with GWT. Once difference is jar files will be downloaded instead of JavaScript module. Ultimate jnlp app runs in local jvm and makes some socket calls to server. for sure, JNLP addressed issue of client deployment. Though JavaScript runs on browser and makes ajax calls, I am not seeing web concentric approach. All these efforts are leading to P2P approach. If I have to compare web with network models , I would say it works like a start network model that way we can avoid any initial downloads, cache issues, script engine version issues (we got lot many jvm version issues with JNLP). Just like web page build with pure HTML pages, user experience should be same, no version issues, dll conflicts nothing. I would even go one step forward and ask why java to javascript compilation , why not java to 'html+javascript' compilation ? ( javascript for ajax). DOM api should be able to generate HTML directly, where there is no dynamic refresh, we don't need JavaScript. - venu - http://schoolk12.appspot.com/ On Jul 30, 6:24 am, dreamer venugopal.vasire...@gmail.com wrote: Very good point. I have gone through same thought process. After using designer to build composites (html pages), I came to conclusion that this is what I want to build my web sites with. Just drag and drop widgets and build pages, Yes we got new world for page design and development, but web is highly distributed network, it can never become thick client application which just makes jdbc calls to server, or some thing like that. I was fascinated by JSF and its Idea, but it my fascination faded down slowly after struggling few weeks. But not with GWT and App engine. I found what I am looking for, thing is how to make these better, so that we can build more complex enterprise apps without much re- engineering. - venu - http://schoolk12.appspot.com/ On Jul 30, 12:38 am, Alain Ekambi jazzmatad...@googlemail.com wrote: Then what just you dont use JSP or JSF then ? GWT follows a different paradigm then those technologies. I just cant see the benefit of similutationg JSP with GWT 2011/7/30 dreamer venugopal.vasire...@gmail.com What if we need to port very complex web app with 100's of jsp/html pages into GWT ? Yes. swing and gwt got lot of similarities. But loosing web advantages being on web may be not cool. yep Swing is Forms flow with thick client nature. There is a huge paradigm shift between these two worlds. as per my understanding GWT is trying to simulate thick client (yep swing) where all the forms/pages are at client and makes rpc to create Models thus MVP to refresh GUI. My thought is to preserve the thin client nature, when you are getting completely new page, just make URL / URI call to load javascript component. Server serves Model and View, on client presenter can update view, before rendering GUI. this way application stays very light weight , just like HTML pages, I beleive complex application with hundereds of jsp/html pages can be easily ported into GWT. sure AJAX reduces # of pages. but not down to one or two pages. Partial refreshes will will be done as usual. - venu - http://schoolk12.appspot.com/ On Jul 29, 7:34 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is swing applications pageflow? I think not. Perhaps you can look at architecture proposed in ProGWT book http://books.google.com/books?id=OG816JSZYVcCprintsec=frontcoverdq=... . In this architecture you don't need use a whole page. 2011/7/29 dreamer venugopal.vasire...@gmail.com Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google
java to HTML+JavaScript cross compiler/generator - is this possible?
Hi, on the GWT lines, is it possible to cross compile/generate to HTML +JavaScript. Static ports to - HTML Dynamic portions to - JavaScript Please share your thoughts -Venu http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Page flows - want to start a open source project - thoughts
Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Page flows - want to start a open source project - thoughts
What if we need to port very complex web app with 100's of jsp/html pages into GWT ? Yes. swing and gwt got lot of similarities. But loosing web advantages being on web may be not cool. yep Swing is Forms flow with thick client nature. There is a huge paradigm shift between these two worlds. as per my understanding GWT is trying to simulate thick client (yep swing) where all the forms/pages are at client and makes rpc to create Models thus MVP to refresh GUI. My thought is to preserve the thin client nature, when you are getting completely new page, just make URL / URI call to load javascript component. Server serves Model and View, on client presenter can update view, before rendering GUI. this way application stays very light weight , just like HTML pages, I beleive complex application with hundereds of jsp/html pages can be easily ported into GWT. sure AJAX reduces # of pages. but not down to one or two pages. Partial refreshes will will be done as usual. - venu - http://schoolk12.appspot.com/ On Jul 29, 7:34 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Is swing applications pageflow? I think not. Perhaps you can look at architecture proposed in ProGWT bookhttp://books.google.com/books?id=OG816JSZYVcCprintsec=frontcoverdq=... . In this architecture you don't need use a whole page. 2011/7/29 dreamer venugopal.vasire...@gmail.com Hi, I want to start a new opensource project - GWT page flows - similar to struts. With my moderate GWT knowledge, I did not find any way to weave application with pages, though components are there. Not all ajax applications are single page apps. Here are my thoughts from very high level - === Use composites (widgets) as pages - build using designer. Weave all these pages with the help of something like struts- config.xml. == It would have been great if GWT compilation is component by component more transparently. Some thing under the hood is happening on these lines. Even loading javascript into browser would have happened page by page, only when it is needed. Few questions: Is it possible to build page flow on the above lines using GWT as is? Are these features available in any other form, that I did not realize? (UiBinder seems slightly different than I want) Just I would like to brainstorm. Please share your thoughts. - venu - http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TextArea - issues
Sure. soon. I am suspecting one of these. 1) Storing in text in app engine com.google.appengine.api.datastore.Text field 2) Using getText() and getValue() - setText, setValue() - using freely assuming they produce consistent results. One of these is not working as I expected. On Jul 20, 12:36 pm, Michael Vogt vmei...@googlemail.com wrote: 1) Keep entering - lines will automatically break and goes to next line - enter till you see few line 2) getValue() 3) store in datastore 4) get from data store and display in another TestArea. Somewhere loosing line breaks ? Can you post a sample on a public server to look at? Greetings, Michael Vogt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Basic packaged app questions. Need to get that first one under my belt.
Check out GWT samples. C:\eclipse\plugins \com.google.gwt.eclipse.sdkbundle_2.3.0.r36v201105191508\gwt-2.3.0\samples \Hello\src\com\google\gwt\sample\hello\client Without RPC or its variants, GWT is a pure client technology, as you mentioned runs any where javascript runs. On Jul 20, 9:02 pm, Dale12 dale.prat...@gmail.com wrote: I'm trying to build a basic packaged app. My understanding is that a packaged app doesn't require a server side. So, using GWT in Eclipse how do I set up a project without it automatically creating a server side package? Is it possible to use java's APIs when developing a packaged app (with no server side)? Take some of the games available for play offline, are they all written using only GWTs APIs and then compiled into JavaScript? I'm a bit confused on how this works which makes it a little difficult to ask well crafted questions. Any nuggets of info you can throw my way would be much appreciated. Also, if someone could point me to the source code for a fairly simple packaged app project that would be very helpful. Thanks for the help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ui widgets - getValue() and getText() difference
Some of UI widgets has both getValue() , 'getText() and corresponding setter. Should we use value methods or text methods at least for text based widgets. value methods seems to be more generic and most of the UI widgets seems to has these. getValue has this aditional parse on top of getText() - T parseResult = parser.parse(text); What does parse do ? = public T getValue() { try { return getValueOrThrow(); } catch (ParseException e) { return null; } } /** * Return the parsed value, or null if the field is empty. * * @throws ParseException if the value cannot be parsed */ public T getValueOrThrow() throws ParseException { String text = getText(); T parseResult = parser.parse(text); if (.equals(text)) { return null; } return parseResult; } = -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Connecting to a oracle database with GWT
Eclipse plugin is a real good friend to figure out RPC. Just create new project choosing both app engine and gwt, creates a nice working sample RPC , hello world. Add few more methods for practice, then add few more servlets and call from client. On Jul 21, 3:03 am, Ryan McFall mcfall.r...@gmail.com wrote: It looks like you're trying to access the JDBC code from within the client. This doesn't work with GWT. To do this, you need to use an RPC method between the client and the server, and communicate with Oracle on the server side. You can use GWT-RPC or RequestFactory to handle the RPC calls. Ryan On Jul 20, 2:02 pm, Bruno Henrique f203...@gmail.com wrote: Can someone give an simple example how to use oracle with GWT, using RPC? I tried to do something here, but I got the error: java.lang.NoClassDefFoundError: java.net.Socket is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject( *Runtime.java:51*) at oracle.net.nt.TcpNTAdapter.connect(Unknown Source) at oracle.net.nt.ConnOption.connect(Unknown Source) at oracle.net.nt.ConnStrategy.execute(Unknown Source) at oracle.net.resolver.AddrResolution.resolveAndExecute(Unknown Source) at oracle.net.ns.NSProtocol.establishConnection(Unknown Source) at oracle.net.ns.NSProtocol.connect(Unknown Source) at oracle.jdbc.ttc7.TTC7Protocol.connect( *TTC7Protocol.java:1774*) at oracle.jdbc.ttc7.TTC7Protocol.logon( *TTC7Protocol.java:215*) at oracle.jdbc.driver.OracleConnection.init( *OracleConnection.java:362*) at oracle.jdbc.driver.OracleDriver.getConnectionInstance( *OracleDriver.java:536*) at oracle.jdbc.driver.OracleDriver.connect( *OracleDriver.java:328*) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at com.carriers.chartapplication.server.indicador.banco.IndicadorBanco.buscarI ndicadorBanco( *IndicadorBanco.java:75*) at com.carriers.chartapplication.server.indicador.negocio.IndicadorNegocio.in it( *IndicadorNegocio.java:44*) at com.carriers.chartapplication.server.GreetingServiceImpl.init( *GreetingServiceImpl.java:16*) at sun.reflect.NativeConstructorAccessorImpl.newInstance0( *Native Method*) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance( *Holder.java:153*) at org.mortbay.jetty.servlet.ServletHolder.initServlet( *ServletHolder.java:428*) at org.mortbay.jetty.servlet.ServletHolder.getServlet( *ServletHolder.java:339*) at org.mortbay.jetty.servlet.ServletHolder.handle( *ServletHolder.java:487*) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( *ServletHandler.java:1166*) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter( *HeaderVerificationFilter.java:35*) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( *ServletHandler.java:1157*) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter( *ServeBlobFilter.java:58*) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( *ServletHandler.java:1157*) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter( *TransactionCleanupFilter.java:43*) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( *ServletHandler.java:1157*) at com.google.appengine.tools.development.StaticFileFilter.doFilter( *StaticFileFilter.java:122*) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( *ServletHandler.java:1157*) at com.google.appengine.tools.development.BackendServersFilter.doFilter( *BackendServersFilter.java:97*) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter( *ServletHandler.java:1157*) at org.mortbay.jetty.servlet.ServletHandler.handle( *ServletHandler.java:388*) at org.mortbay.jetty.security.SecurityHandler.handle( *SecurityHandler.java:216*) at org.mortbay.jetty.servlet.SessionHandler.handle( *SessionHandler.java:182*) at org.mortbay.jetty.handler.ContextHandler.handle( *ContextHandler.java:765*) at org.mortbay.jetty.webapp.WebAppContext.handle( *WebAppContext.java:418*) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle( *DevAppEngineWebAppContext.java:70*) at org.mortbay.jetty.handler.HandlerWrapper.handle( *HandlerWrapper.java:152*) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandle r.handle( *JettyContainerService.java:351*) at org.mortbay.jetty.handler.HandlerWrapper.handle(
TextArea - issues
Hi, I am capturing user input (multi line) in com.google.gwt.user.client.ui.TextArea - storing datastore. and show the same in another TextArea of another component. Issue, when I play it back it is completely loosing line breaks, and showing as single line and beyond TextArea boundaries. Any inputs 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TextArea - issues
Here is the test case. 1) Keep entering - lines will automatically break and goes to next line - enter till you see few line 2) getValue() 3) store in datastore 4) get from data store and display in another TestArea. Somewhere loosing line breaks ? On Jul 20, 5:17 am, Nandha nandha1...@gmail.com wrote: Hi.. If you are Realy using the class/Widget com.google.gwt.user.client. ui.TextArea, wen u are giving text into that textarea object automatically it ll come in two more lines based on the width and height of the TextArea.. Example try this code package package.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextArea; public class MyTextArea implements EntryPoint { public void onModuleLoad() { RootPanel rootPanel = RootPanel.get(); TextArea txtrIfYouAre = new TextArea(); txtrIfYouAre.setText(If you are Realy using the class/Widget com.google.gwt.user.client.ui.TextArea,\r\nwen u are giving text into that textarea object automatically it ll come in two more lines based on the width and height of the TextArea..); rootPanel.add(txtrIfYouAre, 38, 85); txtrIfYouAre.setSize(209px, 97px);} } On Wed, Jul 20, 2011 at 3:05 AM, Michael Vogt vmei...@googlemail.comwrote: Hello. I am capturing user input (multi line) in com.google.gwt.user.client.ui.TextArea - storing datastore. and show the same in another TextArea of another component. Issue, when I play it back it is completely loosing line breaks, and showing as single line and beyond TextArea boundaries. I'm not quite sure I fully understand the problem. But one thing to watch out for is, that linebreaks from textareas are stored as \n and or \r. To keep the linebreaks when displaying the text in a div, for example, remember that you have to replace them with br/. Hope this helps, Michael -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 3 :) 3 yours.. Nandha... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: javax.servlet.ServletContext log: Exception while dispatching incoming RPC call
Is it reaching the server side code - I mean RPC Implementation class ? You can see in Debug. put a break point in RPC server impl. If not reaching there , then it is definition issue - check web.xml, sync and async method. Debug mode gives very good Idea. Looking like some mismatch while dispatching to servlet impl. Does arraylist have any elements ? On Jul 19, 3:30 am, Nandha nandha1...@gmail.com wrote: Hi, I am getting the following error in the prompt. anybody can give solution for this... Logging to JettyLogger(null) via com.google.apphosting.utils.jetty.JettyLogger Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB- INF/appengine-web.xml Successfully processed C:\java\eclipse3.6.1\workspace\spectrum\war\WEB- INF/web.xml The server is running athttp://localhost:/ [WARN] No file found for: /favicon.ico [ERROR] javax.servlet.ServletContext log: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract java.util.ArrayList spectrum.client.SpectrumService.getCMSData() throws java.lang.IllegalArgumentException' threw an unexpected exception: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java: 378) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 581) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServi ceServlet.java: 207) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServi ceServlet.java: 243) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(Abstract RemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi lter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile Filter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn gineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.set(Unknown Source) at spectrum.server.SpectrumServiceImpl.getCMSData(SpectrumServiceImpl.java: 49) 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.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime .java: 100) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java: 562)
Re: 2.4 beta and mobilewebapp sample
1) Please make sure Java is compiling fine - meaning jar is there some where in classpath 2) Then GWT cross compilation - needs sources - these paths are found by GWTC from gwt.xml Typically all of the paths were included in inherits name='com.google.gwt.user.User' / On Jul 18, 4:18 am, Michel Jonker michel.jon...@e-office.com wrote: By the way, the maven build complains about: 18-7-11 13:12:17 CEST: Missing artifact com.google.gwt:gwt-servlet:jar: 2.4.0:runtime 18-7-11 13:12:17 CEST: Missing artifact com.google.gwt:gwt-user:jar: 2.4.0:provided 18-7-11 13:12:17 CEST: Missing artifact com.google.gwt:gwt-dev:jar: 2.4.0:compile On 18 jul, 13:11, Michel Jonker michel.jon...@e-office.com wrote: I am trying to get the mobile webapp sample to work and I found (in this forum) that others are also having troubles to get it to work. Im am running Eclipse 3.6 with the GPE 2.4 beta. When I try to run the application I get errors regarding the RequestFactoryServlet java.lang.ClassNotFoundException: com.google.web.bindery.requestfactory.server.RequestFactoryServlet I tried putting the gwt-servlet.jar on the classpath, but that did not help. When I do a GWT compile, I get the error (amongst others): The import com.google.gwt.user.cellview.client.DataGrid cannot be resolved This class is available in the online (SVN) repository, but not in the 2.4 beta distribution it seems. Since I could not find the magic steps to get it to work, I am asking this community for help. TIA Michel -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT compiler error with ListType
Can you please review code speperation. in client package only keep GWT code in server package only keep server code in shared only keep DTO objects (value objects) (transported from client to server - should be serializable) To me - proxy - sounds like client proxy should be in - client package. On Jul 15, 3:31 am, Jens jens.nehlme...@gmail.com wrote: You probably imported something wrong in your NamedListProxy file. You have imported com.google.gwt.i18n.*server*.Type.ListType but every code thats in a *server* package is not seen by the GWT compiler and thats why you get that error. You have to remove that import in your NamedListProxy. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: my biggest problem with gwt
=activating the hosted mode takes about 1-2 minutes (didn't measure, feels like it). debugging like this takes forever. Yep. Documentation says use this mode always during development, never to compile. Bringing up dev mode URL is taking time (with debug option). Not sure selecting particular browser helps dev mode, seems like, after dev mode url lauch only, It bring up the javabyte code to javascript to browser. So I don't see a reason to choose various permutations and combinations. Looks that single path of bytecode-javascript-browser - is taking time. On like Sessions are telling some tricks to speed up compilation, but also suggesting never to compile during develop, just develop in java. Did not find any clues, how to speed up Dev life cycle (hosted mode) , This should come out of the box. (eclipse plug in + browser plug in - who does what I am not sure) Hopefully GWT team will address this. For sure hosted mode is the way to go during development. On Jul 15, 4:37 am, Aidan O'Kelly aida...@gmail.com wrote: There is a google IO session which covers speeding up the compile process during development, it is in the second half of a talk on the compiler in general.http://www.youtube.com/watch?v=qT6ZsQBM7kY Also, if you are working on client side code, a lot of the time you don't need to go through the whole re-compile process. You can simple edit your client side .java files, save, then refresh your browser. GWT will recompile just the changed code. On Fri, Jul 15, 2011 at 12:23 PM, Dennis Haupt d.haup...@googlemail.com wrote: it's the speed. not the execution speed, that one is good enough. what i mean is the compilation speed. compiling my complete java project takes 30 seconds. compiling the tiny gwt part of it takes 91 seconds. activating the hosted mode takes about 1-2 minutes (didn't measure, feels like it). debugging like this takes forever. the write - test - debug - fix - cycle slows me down a lot. is there any way to fix that problem? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Internal Compiler Error / Xerces
Hi, Did you see more in stack trace beyond line 81 ? There must be some thing Caused by. = Abstract method error - as per javadoc Thrown when an application tries to call an abstract method Yes this incompatibility between jars and some time jvm or simply non implemented abstract method I had many such when I moved from jdk5 to 6 for jaxws, I had to discard old versions of jaxws. I would pull all code and clean and recompile Venu http://schoolk12.appspot.com/ On Jul 14, 8:56 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: I think is a classpath issue. You have more than a SAX Parser in your classpath and this is the problem. I have a similar problem and resolve (in maven, not in eclipse). See this threadhttp://groups.google.com/group/google-web-toolkit/browse_thread/threa... 2011/7/14 Jörn Gersdorf joern.gersd...@gmail.com Hi all, we have a GWT project which is suddenly not compiling anymore but failing with an INternal Compiler error at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentB uilder.java: 128). This happens since a collegue of mine has made some changes (unfortunately he's two weeks on vacation so I can't ask him what could have caused the problem). I experienced the problem with GWT 2.2 and also the same error after upgrading to 2.3. I'm compiling using the GWT plugin in Eclipse. I'm on Eclipse Helios, running Google Web Toolkit SDK 2.3.0 2.3.0.r36v201105191508 com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group and Google Plugin for Eclipse 3.6 2.3.2.r36v201106211634 com.google.gdt.eclipse.suite.e36.feature.feature.group. I appreciate any help on this. Thank you very much. Kind regards, Jörn The error is as follows: [WARN] Configuration property UiBinder.useSafeHtmlTemplates is false! UiBinder SafeHtml integration is off, leaving your users more vulnerable to cross-site scripting attacks. This property will default to true in future releases of GWT. [ERROR] Errors in 'file:/C:/workspaces/LIQ/DEVELOPMENT/ LoanIQ_EventManagerWAR/src/main/java/eventmanager/support/admin/client/ view/mqcrud/MQCrudView.java' [ERROR] Internal compiler error java.lang.AbstractMethodError: org.apache.xerces.dom.ElementNSImpl.setUserData(Ljava/lang/ String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/ Object; at com.google.gwt.uibinder.rebind.W3cDocumentBuilder.startElement(W3cDocumentB uilder.java: 128) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl $NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.google.gwt.uibinder.rebind.W3cDomHelper.documentFor(W3cDomHelper.java: 64) at com.google.gwt.uibinder.rebind.UiBinderGenerator.getW3cDoc(UiBinderGenerato r.java: 178) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generateOnce(UiBinderGener ator.java: 148) at com.google.gwt.uibinder.rebind.UiBinderGenerator.generate(UiBinderGenerator .java: 126) at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja va: 48) at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator ExtWrapper.java: 60) at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally (StandardGeneratorContext.java: 681) at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java: 41) at com.google.gwt.dev.shell.StandardRebindOracle $Rebinder.rebind(StandardRebindOracle.java:74) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 285) at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j ava: 274) at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAns wers(DistillerRebindPermutationOracle.java: 91) at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe binds(WebModeCompilerFrontEnd.java: 106) at
Re: my biggest problem with gwt
just off topic. what is life cycle in dev mode? Is it java byte code all the way to browser (plug in )? (I mean no java script any where) On Jul 15, 8:24 am, Paul Robinson ukcue...@gmail.com wrote: Chrome is slow in dev mode. Try firefox instead. On 15/07/11 16:12, Dennis Haupt wrote: switching to dev mode took 41 seconds, chrome became responsive again about ~30 seconds after that. gut feeling wins. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to access all checkboxes that have a name that begins with abc?
One way is build your own collection (ArrayList) and make accessible, with setter and getter ,just like in any java class. On Jul 15, 8:07 am, Dennis Haupt d.haup...@googlemail.com wrote: hi community, i'm in a gwt module that is part of a bigger page, and i need to know which checkboxes that are on this page are selected. i know what the names of these boxes are, but i don't know how many there are. how can i a) get them all and b) find out which ones are checked from inside my gwt entry point? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Duplicate GWT-RPC requests?
Check in hosted mode with debug. sure multiple events are plugged in some where. On Jul 15, 6:01 am, Néstor Boscán nesto...@gmail.com wrote: Hi I have an application that looks like is duplicating the GWT-RPC request code. Of course it could be a number of other reasons but I wanted to ask if anyone has seen a case where duplicate GWT-RPC requests occurs?. Regards, Néstor Boscán -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Playing MP3 and AVI in GWT application
Hi, We don't have to build the page entirely using GWT widgets, if playing these in any html is possible, it should be possible even with GWT. with HTML5 it is snap to implement this, but GWT does not prevent to launch player and play anything you want. Even you can mix Flash with GWT. You can build your site almost with 99% with pure HTML and just WITH one or two GWT widgets. Still it is GWT app. GWT is just a javascript, how much you want in your page, that is up to you. My wish is to go 100% and develop like in Visual Basic using GWT designer. May be couple of more years to realize this. Even add RPC/actions to buttons, should be under the hood, developer should add method, and just should declare, if it is client or server. GWT should take care. I have to come up with whole new proxy pattern to achieve this, to mask my client code. -Venu http://schoolk12.appspot.com/ On Jul 14, 1:44 am, Rob Coops rco...@gmail.com wrote: Then there is only one real solution, Adobe Flash... Pretty much everyone and their mother has a Flash Player installed (for those that do not use HTML5 (Apple iStuff is the main group there without Flash)). If you set the system to prefer HTML5 and then switch back to Flash if this is not available you are future proof and able to deal with what ever way that coin will flip. For the widget simply use two and load which ever one the users browser will support. If the users browser is capable to deal with HTML5 like Chrome or Firefox you simply load the HTML5 widget, if you are being visited by an older IE version simply push the Flash version over. Using MVP you would simply have to views and a few lines of code to decide which one to show the user not unlike deciding to show the user the mobile version of the view instead of the full fledged desktop version. Regards, Rob On Thu, Jul 14, 2011 at 10:12 AM, shahid shahidza...@gmail.com wrote: The trouble is HTML 5 is not supported on majority of the user's browser. Also what do you do for backward compatibility? On Jul 13, 5:45 pm, David Chandler drfibona...@google.com wrote: HTML5 to the rescue... http://www.slideshare.net/turbomanage/gwt-plus-html-5 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g... http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g... The APIs are changing slightly in GWT 2.4 to enable you to more easily specify multiple formats. /dmc On Wed, Jul 13, 2011 at 12:10 PM, shahid shahidza...@gmail.com wrote: What is the best way to support playing MP3(audio) and AVI (video) files in a GWT application. We have gone a long way into developing our application on top of GWT and now we have a requirement to support playing mp3 and avi files. However I can't find a widget or player that I can use with GWT to support both of these formats. Has anyone used this functionality in your application and how? What is the best practice ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- David Chandler Developer Programs Engineer, GWT+GAE w:http://code.google.com/ b:http://turbomanage.wordpress.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Please help - GWT Designer / UiBinder bug or clueless new user?
Can you please try going to source and adding, if supported, brings up at .. -Venu http://schoolk12.appspot.com/ On Jul 13, 8:10 am, cri chuck.irvine...@gmail.com wrote: I posted this issue before but didn't get any help so trying again... Using GWT Designer, when looking at a UiBinder *.ui.xml file in the Design tab, the setStyle property doesn't appear in the Properties window. Shouldn't the property be there? The docs seem to indicate that it should be. Thanks Chuck -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Please help - GWT Designer / UiBinder bug or clueless new user?
edit xml file directly in source mode, instead in design mode , see if it accepts. On Jul 14, 5:58 am, cri chuck.irvine...@gmail.com wrote: Sorry, Venu, I don't understand what you are asking me to do. What do you mean by going to source and what do you mean by adding, if supported, bring up at '.' Thanks. -Chuck On Jul 14, 6:10 am, dreamer venugopal.vasire...@gmail.com wrote: Can you please try going to source and adding, if supported, brings up at .. -Venuhttp://schoolk12.appspot.com/ On Jul 13, 8:10 am, cri chuck.irvine...@gmail.com wrote: I posted this issue before but didn't get any help so trying again... Using GWT Designer, when looking at a UiBinder *.ui.xml file in the Design tab, the setStyle property doesn't appear in the Properties window. Shouldn't the property be there? The docs seem to indicate that it should be. Thanks Chuck -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: comparing GWT and jsp apps - why javscript apps different from html apps
I think I should give little more explaining where I see, GWT may improve and become Visual Basic of web. For the moment if we forget ajax. When I converted VB application into web, I draw parallels from VB forms to HTMLs and developed as such, so flow remains same and user transition smooth. Now , when I am migrating web application with html pages to GWT, why can't we draw parallels ? like index.jsp -index.js page1.jsp-page1.js page2.jsp -page2.js Why can't we use same URI navigation from window to window as in web (REST) ? Sure, GWT is capable of generating java script pages. With GWT Designer we should be able to develop java script pages, without going under the hood. Why java script is coping as single module, why not as pages ? Why did we go from page (URI) concept to module, one java script bundle ? Sure there are techniques like code splitting, but programming concept has changed. May be some reason is there, or I did not understand completely. It is worth discussing so that we can transition our years of app development smoothly. -Venu http://schoolk12.appspot.com/ On Jul 11, 10:01 pm, dreamer venugopal.vasire...@gmail.com wrote: I had fairly large application developed in early web days , now I want to convert into GWT. Obvious we have added value of AJAX, what else do I loose? 1) large java script , initial down load time = why is this , both and HTML and Javascript are different ways of telling how the window is to browser. meaning Are browsers more efficient in parsing and rendering than javascript ? = With we only load URI , why do we load entire java script ? Just like only index.jsp to loaded javascript also should index.javascript, why every thing? With GWT.runAsync - seems like a good Idea. But not sure, why java script can not be divided like pages (URI) ? At the end both java script and HTML build DOM for window rendering, why browsers are more friendly with html than java-script ? GWT+GAE is really cool - if we can reduce these difference -Venuhttp://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Ways to reduce GWT compiled code size
Hi, Couple of tricks in personal experience. 1) Use concrete classes instead of interfaces, especially in case of collections, with interfaces compiler has to add all possible classes, as it does not which class at run time. 2) avoid iterators, use for loop 3) when we are using widgets - nothing much to do, but inside info may give little info, which is light weight, but reuse same widget in as many places as possible and avoid using all kinds of widgets, if no real reason. On Jul 11, 4:18 am, Alain Ekambi jazzmatad...@googlemail.com wrote: Have you tried appcelerator ? http://www.appcelerator.com/ No need to compile for different platforms. 2011/7/11 Andrei vol...@spiraluniverseinc.com I have one app in which users may go entire sessions without accessing some places (I use Places Activities pattern), and in such cases code-splitting helps a lot. I have another app, in which users are expected to visit all places. In this case code-splitting helps to reduce the initial load, but ultimately the entire compiled code has to be loaded. It is not a big deal for desktop apps (assuming good connection speeds), but I was planning to use GWT for mobile versions of these apps, and the compiled size scares me. So far it looks to me that GWT is not the right choice for a mobile app. I hope to be convinced otherwise. A native app with the same functionality will be many times smaller, but it's a lot of extra work to write a native app for each mobile platform. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- GWT API for non Java based platformshttp://code.google.com/p/gwt4air/http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to detect if a Popup is showing
Not sure, if there is a automatic way of detecting all child windows to a parent window on demand, but certainly you can main maintain, global array list and every popup window that you open, and call close on each of those. You can lot of examples in javascript - closing child windows to idea. On Jul 11, 7:19 pm, Craig Mitchell craig...@gmail.com wrote: Thanks Ashwin. Yes, sorry, should have been a little more clear, I wanted to detect if a popup is showing, which I didn't already have the reference to. Apologies for not being more clear. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modal Window
public PopupPanel(boolean autoHide, boolean modal) { this(autoHide); this.modal = modal; } = I did not remember using this constructor, but this constructor should do. -venu http://schoolk12.appspot.com/ On Jul 11, 3:50 pm, Jeffrey Burnham jeffrey.burn...@gemail.com wrote: Look at PopupPanel and its' glass property. -Jeff On Jul 11, 2011, at 3:40 PM, Scott Purcell spurcell...@gmail.com wrote: Hello, I have the need to convert a flex application into a GWT applcation. Only problem I am facing right now (analysis) is finding a modal window widget. Does GWT have one? The application opens a lot of Modal windows and shades the background of the window.opener. Does anyone know if GWT can handle this? Thanks, Scott -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
comparing GWT and jsp apps - why javscript apps different from html apps
I had fairly large application developed in early web days , now I want to convert into GWT. Obvious we have added value of AJAX, what else do I loose? 1) large java script , initial down load time = why is this , both and HTML and Javascript are different ways of telling how the window is to browser. meaning Are browsers more efficient in parsing and rendering than javascript ? = With we only load URI , why do we load entire java script ? Just like only index.jsp to loaded javascript also should index.javascript, why every thing? With GWT.runAsync - seems like a good Idea. But not sure, why java script can not be divided like pages (URI) ? At the end both java script and HTML build DOM for window rendering, why browsers are more friendly with html than java-script ? GWT+GAE is really cool - if we can reduce these difference -Venu http://schoolk12.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Finding GWT debug mode URL (dev mode) programatically
Hi, In development with or without debug - Both GWT.isProdMode() and GWT.isScriptMode() - are returning false. I want to find if the program is running is running debug mode or in non-debug mode within dev mode - gwt in eclipse plug in. Is there a convenient method just above two methods, like GWT.isDebugMode() or ? I am assigning the home url, login destination URL in prod mode it is just / - working fine, but in debug it is http://127.0.0.1:/SchoolDistrict.html? gwt.codesvr=127.0.0.1:9997. Without hard coding how can My program switch between these two ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Finding GWT development mode url programatically
Hi, Is there a way to find the GWT development mode URL programatically ? I want to pass this this to app engine user service for destination url. On similar lines of GWT.getModuleBaseURL() - but I want URL like http://127.0.0.1:/SchoolDistrict.html? gwt.codesvr=127.0.0.1:9997, to put me back into dev mode after Google account login / log out dialog. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Calling server-side rpc method from server-side code
Is it not possible to create object for implementation class and fire methods as you do for any other java object? On Apr 15, 1:30 pm, Bob robert_li...@verizon.net wrote: I have a bit of an unusual need. I have a server-side method which is normally called from the client via GWT-RPC but I now want to call it from server-side code. How do I do this? I could make a static version of the method and have the rpc- accessible-method just wrap the static method...but alas, all the methods that the static method would need must also be static. kudzu being kudzu...this is a difficult (and messy) refactoring. I'm bouncing this question off the grand-masters in this group to see if there is yet a cleaner and simpler solution to my query. Any help would be very much appreciated. Thank you!! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
App Engine UserService login dialog - how gwt app gets completion event
Hi, I am checking user login using RPC, if not user not logged in I am launch login URL from GWT. Once login in over GWT app is getting control. but how to capture the return event from login dialog? = user login url in rpc service == String url = userService.createLoginURL(/); GWT portion to Launch dialog Window.Location.assign(url); In GWT app where to capture the return event after above line ? I tried on onattach of main widget, but seems not kicking in. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How AsyncCallback works? - RPC services
Thanks Sri. Sounds like very basic implementation. Each browser implementation could vary, not sure. At least, latest versions should have true async implementations. Thread waiting, I wrote few programs like that. It won't scale. I am sure it won't be that simple. On Feb 26, 11:08 am, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Here's how it works : 1. Javascript code uses XmlHttpRequest API to start an AJAX call. 2. Browser intercepts XmlHttpRequest method invocation 3. Browser makes a http connection to the server in a *separate thread*. This way, the main user interface thread is not blocked. 4. When the http response is available, the browser invokes the AJAX callback as part of the main user interface thread. Key takeaways - - There is no polling or IP based tracking. - The underlying HTTP call is always synchronous. - The browser invokes the callback only when the response is available, which is why we say AJAX is asynchronous --Sri On 26 February 2011 22:59, dreamer venugopal.vasire...@gmail.com wrote: Thanks Jeff.these are programming details. But how AJAX is implemented, like is it polling or true call back, using peer to peer techniques, such details not available. On Feb 26, 9:14 am, Jeff Schwartz jefftschwa...@gmail.com wrote: I googled found the following: Ajax intro:http://www.javalobby.org/articles/ajax/ Google RPC doc: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html On Sat, Feb 26, 2011 at 12:01 PM, dreamer venugopal.vasire...@gmail.com wrote: True. Not found this kind of details. May be some gwt contributor should be having good Idea about these. On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote: RPC uses Ajax so understanding how Ajax works will answer all your questions. On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.com wrote: Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back, will server calls a method on skeleton (server side stubs) for remote call ? or It just makes a tcp call and client handles calling the Async method ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw. .. follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw... follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How AsyncCallback works? - RPC services
True. Not found this kind of details. May be some gwt contributor should be having good Idea about these. On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote: RPC uses Ajax so understanding how Ajax works will answer all your questions. On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.comwrote: Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back, will server calls a method on skeleton (server side stubs) for remote call ? or It just makes a tcp call and client handles calling the Async method ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz*http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How AsyncCallback works? - RPC services
Thanks Jeff.these are programming details. But how AJAX is implemented, like is it polling or true call back, using peer to peer techniques, such details not available. On Feb 26, 9:14 am, Jeff Schwartz jefftschwa...@gmail.com wrote: I googled found the following: Ajax intro:http://www.javalobby.org/articles/ajax/ Google RPC doc:http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html On Sat, Feb 26, 2011 at 12:01 PM, dreamer venugopal.vasire...@gmail.comwrote: True. Not found this kind of details. May be some gwt contributor should be having good Idea about these. On Feb 25, 6:53 am, Jeff Schwartz jefftschwa...@gmail.com wrote: RPC uses Ajax so understanding how Ajax works will answer all your questions. On Fri, Feb 25, 2011 at 9:49 AM, dreamer venugopal.vasire...@gmail.com wrote: Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back, will server calls a method on skeleton (server side stubs) for remote call ? or It just makes a tcp call and client handles calling the Async method ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz* http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschw... follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Jeff Schwartz*http://jefftschwartz.appspot.com/http://www.linkedin.com/in/jefftschwartz follow me on twitter: @jefftschwartz -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How AsyncCallback works? - RPC services
Hi, Not sure how the AsyncCallback works in GWT. Could somebody share please? 1) Will it create a thread and polls the server ? or 2) Will servers register's client IP and when result is available makes a fresh TCP/IP connection to client and calls client. Within this call back, will server calls a method on skeleton (server side stubs) for remote call ? or It just makes a tcp call and client handles calling the Async method ? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
UiBinder, designer, spring roo which one
Hi, I am reading documentation and struck at reading as I could not decide which approach is best to develop GWT app. Sure as time goes these things will be streamlined and will be less brain teasing to developers, but for now it is not that clear. Can somebody share their experience when to use what, pros and cons etc. 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.