Re: Images only show sometimes
Hello GKotta, That should happen only with an IE browser - I found that it doesn't load images when you add more than a couple DOM elements in one bunch. Basically there are three workarounds: 1. Use a DeferredCommand to add one image at a time 2. Preconstruct an array of images and re-assign the src attribute 3. Construct images as an HTML string and assign it to an attached element i.e. e.setInnerHTML(img src='someurl'/img src='someotherurl'/). On Aug 11, 10:33 pm, GKotta guruko...@gmail.com wrote: Hi, I am using the gwt plugin for eclipse for the gae environment and when I run my project on localhost, the images in my application appear sometimes, but not all the time. Refreshing the page normally solves this problem. Why is this? I'm fine with this while developing, but it will be really annoying for my users once I launch my application. 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.
Debugging Maven GWT project with GlassFish
Hello. Could you please tell me is it possible to configure maven-gwt-plugin so it will use existing GlassFish for hosted mode but not the bundled Jetty or Tomcat. I've read there is a server option but what should I put there? Or may be some other way? 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Maven Plugin + codeServerPort
Hi guys, I'm looking for a possibility to change the codeServerPort while using the GWT Maven Plugin (http://mojo.codehaus.org/gwt-maven-plugin/ index.html) to develop a GWT application. I've searched the web, but I couldn't find anything that would solve my problem. In the documentation of the plugin, there is no parameter defined that could change the port (http://mojo.codehaus.org/gwt-maven- plugin/debug-mojo.html). In my opinion, there is also no way to pass an argument via the Remote Java Application configuration that I use to connect to the Jetty that was started by the GWT Maven Plugin. If I would use the GWT Eclipse Plugin, then I could pass a program argument like this: -codeServerPort . Unfortunately I'm using the GWT Maven Plugin, so there is no possibility to specify program arguments or is there somehow? Any help is much appreciated! Best regards, Henry -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Scraping website with GWT
it is possible but you will be blocked or get a security warning if you access a URL outside your site. You might wonder 'why would I scrap my own site?', well ask my boss that want to index all pages from our intranet. If you use this code to get the content public native String getIFRAMEBodyContent(String iframeId); /*-{ return document.getElementById(iframeid).contentWindow.document.body.innerHTML); }-*/ once you have the HTML with the content you can wrap it with an HTML object: HTML html = new HTML(getIFRAMEBodyContent(myIframe)); Element rootElement = html.getElement(); // be happy In case you must scrap pages outside your domain and this must be done in the browser, you can use a Signed Java Applet (would be a great exercise of your java knowledge). Anyway, the easiest way would be with server side code as *lineman78* and *cokol* said. Cheers, Henrique Viecili -- Think outside the box, limitations are self imposed! On Aug 12, 3:12 pm, cokol eplisc...@googlemail.com wrote: nope, thats not possible - u cannot access JS namespace of an iframe, so serverside is the only way but you can bring up results into the client though On 12 Aug., 14:35, Henrique Viecili viec...@gmail.com wrote: hmmm... you could use IFRAME to load the page, some JSNI to get the HTML from the IFRAME (you might get a security warning or even be blocked), after you have the HTML you just use DOM support on GWT to do the thing. but should be much easier if you use any server side language to do that for you On Aug 10, 6:09 pm, lineman78 linema...@gmail.com wrote: First of all GWT is executed client side and therefore XSRF security should prevent you from scraping another site directly. However, you can do scraping quite easily with server-side java. PHP is also a server executed language, so anything you would usually do in php, you will do it via server side java with GWT. There are a few different ways you can scrape a page in java. 1) External Libraries (JScrape, XQuery) 2) Parse the HTML as XML (DOM or SAX) 3) Regex These all require you to get the HTML page as a string which is rather easy (see URL.openConnection) On Aug 10, 6:48 am, Fermin fermin.h...@gmail.com wrote: Hi, I don't found any reference to do scraping with GWT, is posible ? Like CURL in php ? Thx 4 all -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using TabLayoutPanel with UiBinder : custom header
Hi, I'm using TablLayoutPanel with UiBinder, like this : g:TabLayoutPanel barHeight='25' barUnit='PX' addStyleNames='{style.onglets}' g:tab g:header size='20'Header1/g:header g:HTML styleName='{style.tab}'Content/g:HTML /g:tab g:tab g:header size='20'Header2/g:header g:HTML styleName='{style.tab}'Content2/g:HTML /g:tab /g:TabLayoutPanel And it works great :) But, for some reason I need the content of the header to be a widget (so I can access it from java code, and adapt it to the current language or user preferences, ...), ie replace Header1 with g:HTML ui:field='myWidget'. The invokation fails with the following message : Found widget g:HTML ui:field='myWidget' in an HTML context , which I assume means that g:header gets converted to a HTML widget. How can I avoid using only html in g:header ? Thanks for your 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Script tag dynamic loading
Hello, I still have the problem. I tried to load other scripts and it works. There is a mechanism from JS maps API that i may not understand or know. I should not be the only guy trying this... Regards, Vincent -- You received 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.
Rebind result MyMessages_ could not be found
Hi All, I have in my client package a MyMessage interface that extends from com.google.gwt.i18n.client.Messages and eu.maydu.gwt.validation.client.i18n.StandardValidationMessages. Now whe i do a mvn gwt:compile on the project he sais [INFO] [ERROR] Line 10: Rebind result 'be.roularta.jobcv.client.MyMessage s_' could not be found Everywhere where i use a GWT.create(MyMessages.class)... Anyone an idea what the reason could be? kind regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Classloader problem
Hi everybody, I am using the Apache Tika libraries [1] in my GWT project. All JUnit test pass fine but in hosted mode, Tika does not find any parsers. I've checked the source and see that they use the ServiceRegistry [2] to find parsers, and in hosted mode, none are found. When I put the Tika JARs into project/war/WEB-INF/lib/, Tika finds all parsers in hosted mode, but I am not so happy with this as I am using Maven to manage dependencies (and mvn eclipse:eclipse together with the GWT Eclipse Plugin). Tika offers me to pass a class loader to the ServiceRegistry. Is there a way I can find a suitable class loader? I have tried Thread.currentThread().getContextClassLoader() (the standard one) and its parent without success. Any ideas? Thanks in advance, Kaspar [1] http://tika.apache.org/download.html, version 0.8-SNAPSHOT [2] http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/ServiceRegistry.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT security
Hi Greg, why is more acceptable for you, that user will see whole application (also the screen which is not allowed to use) rather than ONLY screens that he is able to use. Your argument becomes to me little bit funny: tech support and UI nightmare. If you have correctly setup user permissions, then no extra support is necessary and I have no idea which UI nightmare you mean. Maybe you mean that UI nightmare, that you will have complex application with 50 screen and normal user who is allowed to use only 10 of them will consider your application as UI nightmare - because on 80% of the screen he choose he will gets the message: You do not have permissions to use this screen, please contact tech support. Ou, and this tech support you mentioned? Yes, with your solution, you will need this kind of tech support and hopefully you will work at first line support and you will tell the users that they are not able to use the 80% of the screens because they are only normal users, not super users. And hopefully you will enjoy the question: So, why I can see that screens I cannot use? hmm? And - about the correct name - it's security! because acris-security project has much more features than consistent UI, there is complex session handling, synchronize sessionID between client-server in a completly transparent way, ACL data level security, server side security based on spring security for securing the serivces and complex integration of this stuff into one consistent solution. Peter On 12. Aug, 17:41 h., Greg Dougherty dougherty.greg...@mayo.edu wrote: I'm talking about displaying the screens and securing the components. The problem is that that is a meaningless statement, and to the extent that it's not meaningless, it's pointless. I suppose you could set up your code so that the JS to display a screen isn't downloaded unless the user will be able to use that screen, but why bother? What is the win by doing that? Speaking for myself, I'd MUCH rather have a screen show up, and tell me I can't use it, then not be able to find the screen. After all, if I find the Update Data screen, and it says you do not have permission to use this, then I know I dont' need to look for it anymore. And, if the server has my security credentials wrong, I can call tech support, tell them that, and have them fix it. Calling tech support to tell them I can't find a screen at all is a much different, much more aggravating, call. For both me AND the tech support person. It's not security, it's just a tech support and UI nightmare. Greg On Aug 12, 2:42 am, Peter Simun si...@seges.sk wrote: I'm not talking about the data. Secured data, that user is not allowed to minupulate with, are not sent to client! This logic is done on the server side security implementation. I'm talking about displaying the screens and securing the components: - like if the user is not able to maintain users, he will not see the menu item user maintenance on the application menu - if the user is able to view users, but not modify the fields, he will see the readonly form (just for view purposes) Everything just by annotate UI components with @Secured annotation Peter On 12. Aug, 09:17 h., cokol eplisc...@googlemail.com wrote: its a way it works, like Greg said - a dumb client should not worry, or better said not be too serious about security, everything what happens on the client is INSECURE, so the only security concern it should think about is to make the security look good to its user. the real security should always reside on the backend, client shall NEVER get a data from the server for unauthorized user so that client can make decisions on its own - either to display the data or not. On 11 Aug., 23:54, Peter Simun si...@seges.sk wrote: Hi Greg, thanks for the answer. Who casers? Users cares! Let's imagine that you will modify all the data you are able to modify (as an user of the application) and the the server will response you, that you are not allowed to modify them! Are you satisfied with that solution? Is that a common approach? Isn't that solution that you have client state consistent with your server implementation cool? Never wanted this kind of solution? Second thing: what about the session handling in your GWT applications? What if acris can handle this for you transparently? And finally: properly secured server ... what is that? I can say, this common approaches are coupled in the acris-security project and well tested in the real environment. Do you thing this is not enought? Peter On 11. Aug, 23:31 h., Greg Dougherty dougherty.greg...@mayo.edu wrote: Hi Peter. Not to be rude, but who cares? Who cares if the user can see a screen that says Client Data, when the user can't actually download any of that client data? IOW, what's the point? If your sever is
Re: Classloader problem
On 13 août, 12:00, hbf kaspar.fisc...@dreizak.com wrote: Hi everybody, I am using the Apache Tika libraries [1] in my GWT project. All JUnit test pass fine but in hosted mode, Tika does not find any parsers. I've checked the source and see that they use the ServiceRegistry [2] to find parsers, and in hosted mode, none are found. When I put the Tika JARs into project/war/WEB-INF/lib/, Tika finds all parsers in hosted mode, but I am not so happy with this as I am using Maven to manage dependencies (and mvn eclipse:eclipse together with the GWT Eclipse Plugin). See http://code.google.com/eclipse/docs/faq.html#gwt_with_maven -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Classloader problem
hi, when you put something into WEB-INF/lib folder, the library is loaded to the classpath of the servlet container regardless if its on eclipse classpath or not. if you dont want to roll out the library with the war file or it resides somewhere else than WEB-INF/lib - you can still add the jar to eclipse classpath manually, so just do it. you can also put this special jar on servlet container's classpath when starting it, do it from a context menu on the root project - Run... - Run As... then ensure Google Web Toolkit is selected on the right menu and choose the Classpath tab on the right window panel, then add the jar there manually and click Run On 13 Aug., 12:00, hbf kaspar.fisc...@dreizak.com wrote: Hi everybody, I am using the Apache Tika libraries [1] in my GWT project. All JUnit test pass fine but in hosted mode, Tika does not find any parsers. I've checked the source and see that they use the ServiceRegistry [2] to find parsers, and in hosted mode, none are found. When I put the Tika JARs into project/war/WEB-INF/lib/, Tika finds all parsers in hosted mode, but I am not so happy with this as I am using Maven to manage dependencies (and mvn eclipse:eclipse together with the GWT Eclipse Plugin). Tika offers me to pass a class loader to the ServiceRegistry. Is there a way I can find a suitable class loader? I have tried Thread.currentThread().getContextClassLoader() (the standard one) and its parent without success. Any ideas? Thanks in advance, Kaspar [1]http://tika.apache.org/download.html, version 0.8-SNAPSHOT [2]http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/Se... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Script tag dynamic loading
cross domain policy does not apply for some certain resources like javascript or images, so this is not the problem, you have to append the script element to the HEAD element, not to the BODY On 13 Aug., 11:56, Vincent COROLLEUR vcoroll...@gmail.com wrote: Hello, I still have the problem. I tried to load other scripts and it works. There is a mechanism from JS maps API that i may not understand or know. I should not be the only guy trying this... Regards, Vincent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debugging Maven GWT project with GlassFish
On 13 août, 10:20, Sergey Ponomarev serg...@gmail.com wrote: Hello. Could you please tell me is it possible to configure maven-gwt-plugin so it will use existing GlassFish for hosted mode but not the bundled Jetty or Tomcat. I've read there is a server option but what should I put there? Or may be some other way? You'd have to start your GlassFish server (don't know how to do it with Maven, but you probably know) and then run (gwt:run or gwt:debug) using the noServer configuration option: http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html#noServer -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Script tag dynamic loading
..but watch out, in case you have a code depending on A.js you cannot run it directly after loadJS(A.js) - it will not work, since loadJS() is always asynchronously loaded, meaning you code is executed whilst A.js has not been loaded yet, you have to work with callbacks to proceed executing AFTER A.js has been loaded this is a little bit tricky, since SCRIPT tag does not allow you cross- browser to hook in to know if code is loaded, but there some strategies for it we can discuss if your problem really relates to the async control flow.. On 13 Aug., 12:43, cokol eplisc...@googlemail.com wrote: cross domain policy does not apply for some certain resources like javascript or images, so this is not the problem, you have to append the script element to the HEAD element, not to the BODY On 13 Aug., 11:56, Vincent COROLLEUR vcoroll...@gmail.com wrote: Hello, I still have the problem. I tried to load other scripts and it works. There is a mechanism from JS maps API that i may not understand or know. I should not be the only guy trying this... Regards, Vincent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: synchronize asynchronous calls?
write a class which can be used like this: Executor.async(cmd1).async(cmd2).async(cmd3).sync(cmd4) it gonna start cmd1..cmd3 and when all are finished it gonna start cmd4 and go for observer pattern everytime an async call finishes it checks if it was the last one, if so it triggers cmd4, being in java you could have implemnted the lock with .wait() and .notify() but in javascript its not possible where yu have to write an own blocker, which imitates the wait() on java side, for this you can use a timeout with maximum waiting time looping forever, so the browser prevents execution, your executor should then implement clearTimeout() which is called upon every async call termination causing the timer to terminate and iterating with the next operation On 12 Aug., 16:30, Kevin Qiu kevin.jing@gmail.com wrote: I don't know if the title makes sense but working with gwt for about 2 years, I often find myself in the position to mix both asynchronous and synchronous (blocking) apis. It's easy to transform a synchronous call to asynchronous, but the other way around is not immediately obvious to me, especially in the context of the single-threaded browser environment. Imagine I the following: abstract class GetListT { abstract void execute(AsyncCallbackListT callback); } class GetContactList extends GetListContact { void execute(AsyncCallbackListContact callback) { /* implementation */ } } class GetAddressList extends GetListAddress { void execute(AsyncCallbackListAddress callback) { /* implementation */ } } class GetPhoneList extends GetListPhone { void execute(AsyncCallbackListPhone callback) { /* implementation */ } } now imagine I keep a list of GetList objects: ListGetList commands = Arrays.asList(new GetContactList(), new GetAddressList(), new GetPhoneList()); and I have an executor that executes these commands: class Executor { List? extends GetList? commands; Executor(List? extends GetList? commands) { this.commands = commands; } void execute() { // XXX: } } Now, for whatever reason, I need my execute() method to be a blocking call (synchronous). It should terminate after all GetList calls are returned. How can I achieve this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I set the border around elements in a DockLayoutPanel?
wrap you panel into DecoratorPanel then you can use 9box round corners On 12 Aug., 20:50, Greg Dougherty dougherty.greg...@mayo.edu wrote: With a DockPanel I just create a CSS style, and apply it to the Panel. I did that with a DockLayoutPanel, and nothing seemed to happen. I searched the archives of this group for CSS and DockLayoutPanel, and the concolusion I came to is that CSS doesn't work with DLPs. If that's not correct, I'd love to hear it, and see an example of how to do it correctly. Presumably the people writing GWT actually test the features they put in it. Given the paucity of example code, this belief has to remain merely an assumption. :-( Greg On Aug 12, 12:59 pm, dane.molotok dane.molo...@gmail.com wrote: How did you do it with a DockPanel? Wouldn't you want to style the elements you've placed in the panel? So it shouldn't matter if it's a DockPanel or a DockLayoutPanel. On Aug 12, 12:09 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: The topic pretty much says it all. I know how to do this for a DockPanel. How do I do it for a DockLayoutPanel? Yes, I know, use uibinder. That doesn't work when you're building things grammatically, which is what I'm doing. BTW, why don't the Showcase application use ANY *LayoutPanels? I thought they were supposed to be the preferred way to do things, no? Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: String.matches() does not work with \p{ASCII}
hard to say, its up to the engine implementing regex, if you want to check for ascii code of each character you gonnamake a loop like function isAscii(str){ for(i=0;istr.length;i++){ if(str[i]127)return false; } return true; } when making regex its like a touring machine which scans the character applied to the pattern, so it also depends on a pattern how many chars are scanned, and in your case you want to know if a character is in ascii range, so anyway it has to scan each. there is one chance regex is faster inthis case, if its implemented natively and not interpreted. the loop above has the advantage is has not to scan all of the chars, in case its not ascii but returns after first non-ascii On 12 Aug., 19:21, Thomas Broyer t.bro...@gmail.com wrote: On 12 août, 15:40, cokol eplisc...@googlemail.com wrote: and if you really want to check for ascii why dont u just check for the ascii code? Such as [\\u-\\u007F]* try java.lang.Character to check or write in JSNI small for-each testing if decimal value of char is greater than 127 is faster than a regex evaluation Are you sure? given that trimming blanks is faster with regexes (str.replace(/^\s+/, ).replace(/\s+$/, )), I tend to think that regexes are really fast. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Reading a local file
If you really must keep it on the client side you could use a signed Java applet but that is quite a lot of work and various hassles with different platforms. JS/Applet communication works pretty well. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Detecting Network connection loss - com.google.gwt.user.client.rpc.InvocationException
exactly, like if(caught instanceof RequestTimeoutException){ //timeout } but u have explicetely to set timeout to support it, since as per default the timeout is set to 0 (no timeouts) On 12 Aug., 17:12, Jeff Chimene jchim...@gmail.com wrote: On 08/11/2010 06:12 PM, nokostar wrote: What is the best way of detecting a loss of network connectivity to the server? I have a GWT app that saves state to the server through an RPC. I would like to be able to detect when the connection to the servers fails so I can take appropriate action. I disconnected my network by removing the network cable on a client machine to see if I can be able to catch the InvocationException in the AsyncCallback's onFailure method with no luck at all. public void onFailure(Throwable caught) { GWT.log(RPC Failure,caught); if (caught instanceof InvocationException){ //do something } } Timeout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Switching a class for precompile
yes, but I forgot to say, that this only applies to JRE emulation set of classes provided by GWT, so like java.lang.BigInteger and such for your custom classes it works like expected. On 12 Aug., 17:40, Evan Ruff evan.r...@gmail.com wrote: Cokol, Thanks for the response, that's exactly what I'm trying to accomplish! Just to make sure I understand correctly, this is only used when compiling for production. In Hosted Mode, the usual (read: REAL) java classes continue to be used. Only when I compile will the swap take place? Thanks! E On Aug 11, 5:06 pm, cokol eplisc...@googlemail.com wrote: hi, you can use the super-source/ element in the gwt module descriptor, please refer to section Overriding one package implementation with another in this faqhttp://code.google.com/intl/de-DE/webtoolkit/doc/1.6/DevGuideOrganizi... there are also other ways, like you could also provide another classpath settings to the compiler, but super-sourcing is actually most elegant, yet remember: in hosted mode GWT will still use the real java class from the classpath rather than your super-sourced implementation. On 11 Aug., 22:51, Evan Ruff evan.r...@gmail.com wrote: Hello all, I was wondering if anyone can point me in the right direction for what I'm trying to do. Currently, I've got a huge legacy model used in a number of systems currently in production. I'd like to include this model in my GWT project, but three (out of, maybe 200 classes) use refection. These classes are base classes and the reflection parts, while nice to have, are not really necessary for my GWT implementation. So, currently the classes look like : ClassA extends ClassB All of the reflection nastiness is in ClassB. I have written ClassC that has the same methods/variables as ClassB, but none of the reflection. I'd like to tell the compiler to replace ClassB with ClassC right before doing the GWTCompiler magic. Is there a way to do that as currently implemented or am I on my own from a GWT Standpoint? Thanks, E -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Script tag dynamic loading
I tried to load the script on a button event and it's the same... Really annoying -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and Map dynamic loading
Hello, I still have the problem. I tried to load other scripts and it works. There is a mechanism from JS maps API that i may not understand or know. I should not be the only guy trying this... Regards, Vincent -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Debugging Maven GWT project with GlassFish
You'd have to start your GlassFish server (don't know how to do it with Maven, but you probably know) and then run (gwt:run or gwt:debug) using the noServer configuration option:http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html#noServer mvn gwt:debug -DnoServer=true -DrunTarget=welcomeGWT.html It starts Jetty. Am I doing something wrong? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Classloader problem
I added the two libraries to the Classpath tab (under Bootstrap Entries) and this works like a charm! Thanks for your help, cokol and Thomas! Kaspar On Aug 13, 12:40 pm, cokol eplisc...@googlemail.com wrote: hi, when you put something into WEB-INF/lib folder, the library is loaded to the classpath of the servlet container regardless if its on eclipse classpath or not. if you dont want to roll out the library with the war file or it resides somewhere else than WEB-INF/lib - you can still add the jar to eclipse classpath manually, so just do it. you can also put this special jar on servlet container's classpath when starting it, do it from a context menu on the root project - Run... - Run As... then ensure Google Web Toolkit is selected on the right menu and choose the Classpath tab on the right window panel, then add the jar there manually and click Run On 13 Aug., 12:00, hbf kaspar.fisc...@dreizak.com wrote: Hi everybody, I am using the Apache Tika libraries [1] in my GWT project. All JUnit test pass fine but in hosted mode, Tika does not find any parsers. I've checked the source and see that they use the ServiceRegistry [2] to find parsers, and in hosted mode, none are found. When I put the Tika JARs into project/war/WEB-INF/lib/, Tika finds all parsers in hosted mode, but I am not so happy with this as I am using Maven to manage dependencies (and mvn eclipse:eclipse together with the GWT Eclipse Plugin). Tika offers me to pass a class loader to the ServiceRegistry. Is there a way I can find a suitable class loader? I have tried Thread.currentThread().getContextClassLoader() (the standard one) and its parent without success. Any ideas? Thanks in advance, Kaspar [1]http://tika.apache.org/download.html, version 0.8-SNAPSHOT [2]http://download.oracle.com/javase/1.4.2/docs/api/javax/imageio/spi/Se... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: why we probably won't use GWT for a large UI project
On Aug 12, 6:47 pm, Kevin Qiu kevin.jing@gmail.com wrote: Totally agree with lineman78 on the use of SmartGWT. We used SmartGWT to build a prototype, only to find out that mixing Js library wrapper with native GWT is bad. It's super easy in SmartGWT if you're building a simple CRUD application, but anything beyond that which requires customized widgets in GWT, then good luck, not to mention you can't use all the benefits of the GWT compiler. We're currently using ExtGWT. It's nicer in that it's (mostly) natively GWT, so you can always trace down the Java code, but still it's layout is expensive, and widgets are not 100% compatible with the GWT widget system. The event system is a mess to work with. We really need a good UI library, preferrably supported by Google that's built on top of vanilla GWT widgets. Yes, yes and YES ! ;) The lack of pure GWT widgets really does hurt, I was hoping that some of the Wave stuff would be made available but nothing appeared. The GWT incubator project provides a few useful things, but progress does seem to be painfully slow - we need a few more Googlers to commit some 20% time to a widget library. -- You received 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.
MyWebApp is not a GWT project - message
Hi, How do I launch a project in debug mode in Eclipse that was created with the command line tool? - - - Background - - - - Following the tutorial, I created an application using the command line: webAppCreator -out MyWebApp com.mycompany.mywebapp.MyWebApp Next, I installed the Eclipse plug in. I imported the MyWebApp project into eclipse. When I click Projects - Run As, I do not see an option for Web Application as the tutorial says I should. When I try to compile the GWT project, I get the message, MyWebApp is not a GWT project. When I try to create a debug configuration, the message appears Project does not use GWT or GAE. The gwt-user.jar and gwt-dev.jar of GWT 2.0.4 are both referenced libraries. What am I missing? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy static content in Webserver and Dynamic in App server
Did you ever figure out how to do this? I'm needing to do the same thing. On Jul 13, 11:28 pm, my explo...@gmail.com wrote: Thanks for your response. Here is more details. Yes I am in the same domain same network too. Here is the history in the past.. I used to bundle the .js, images, html css and deploy them on the webserver and bundle rest of the Java code bundled as part of the WAR. Where as now I use GWT for end to end in wich I have a server layer that makes RPC calls to obtain data. So my main idea is to split the code into static content and dynamic(Server Layer) to the appserver and .js, images, html css to webserver. Hope this is the information you are looking for. On Jul 13, 5:54 pm, lineman78 linema...@gmail.com wrote: Please be more specific on the form of communication you would like to do and how you are handling the DNS for having 2 servers handling requests(i.e. different subdomains, ports, etc.). Remember, because of the SOP you can only make data requests to the same server and port the page originated from, unless you are willing to play around with JSONP. On Jul 13, 6:24 pm, my explo...@gmail.com wrote: I am trying to deploy an application built with GWT. Would like to know how to create a build so that I can deploy static content on the Webserver and dynamic content on app server. I use Websphere(App Server), IBM Httpd server(Webserver). Please do not suggest me that I can put all into one war file and deploy into App Server. My real question is separation of duties between Web App Server. Thanks in Advance for the support. -MY- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Clicking HyperLink Twice or more...
Looks like there is some problem with latests GWT upgrade!! or am I doing it wrong? This happens for me also. I use buttons in my page. First click on the buttons works, 2nd click donesn't and again 3rd click works. Its used to work perfectly until i updated my GWT to latest version. I haven't changed anything with my code. No errors seen in firebug. On Thu, Aug 12, 2010 at 10:43 PM, Thomas Broyer t.bro...@gmail.com wrote: On 12 août, 14:49, Santosh kumar kopp@gmail.com wrote: Hi, I am using GWT HyperLinks in my Project, i want some clarification about these links. when i click on the link for the first time it works fine. Immediately when i click the same link its not working. Like control is not coming to that link.. is their any logic to get the control to the link when its get clicked continuously. please can any one answer to my doubt ??? Hyperlink calls History.newItem on clicks, and History.newItem won't fire a ValueChangeEvent if the target token is the same as the current one (as, obviously, there would be no change in value). You might want to use a Label (or maybe Anchor if you want it to really work like a link, with the ability to open in a new window/tab, copy link URL, etc.) with a ClickHandler in which you'd call History.newItem *and* do what you want to do (or: call newItem(token, false) and then fireCurrentHistoryState if you really want to keep your logic ValueChangeHandlers) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Using UI Binder
HI All, I am a beginner in GWT, I was trying to develop an application through UI Binder way. but it found really difficult to integrate designers (html) code to gwt widgets. is it possible to use g:widgets inside html tag and vice versa?. I can't use complete html as ui binder xml since its owner class will be an UIObjects instance instead of a widget instance. Any suggessions?? or any site for reference ?? -- Thanks and Regards Sarjith -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.IllegalAccessException: Private fields can not be set on JRE classes
Hie I am passing Throwable as parameter in the method. Any clue on what is wrong please... Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Fri, Aug 6, 2010 at 9:09 PM, Vik vik@gmail.com wrote: Hie On a rpc call i am getting following exception. please advise what is going wrong here? com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: java.lang.IllegalAccessException: Private fields can not be set on JRE classes. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:105) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(IncompatibleRemoteServiceException_FieldSerializer.java) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap$.instantiate$(SerializerBase.java) at com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:140) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:114) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:61) at com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:199) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287) at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:393) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157) at com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:1714) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:165) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:120) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:507) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:264) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188) at sun.reflect.GeneratedMethodAccessor81.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at
ApplicationCreator
Hi, I had my old application namly FirstGWT. I deleted it. Then created another application. when i run the new one I found the error : Launch configuration ApplicationCreator references non-existing project FirstGWT. How can i fix it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: why we probably won't use GWT for a large UI project
its good... if your company can buy GXT(EX GWT) it would be good... On Tue, Aug 10, 2010 at 1:57 PM, marius.andreiana marius.andrei...@gmail.com wrote: Hi, We're working on a large project, which has the back-end is written in a non-Java technology, with REST APIs. We're looking for a framework to replace the current UI. I did a brief analysis of using GWT: https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWBCOKTPm1wDCzSQgvUhl=en I'm looking to get this group's feedback before I present my findings to the team. What do you think? Thanks, Marius -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Keep Smiling Thanks Regards Bhaskar. Mobile:9866724142 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: showing all the elements from SuggestOracle in suggestionBox
You can send me a private message attaching the source of your class, so I can take a look. I'm using it in my code without problems. On Aug 13, 6:33 am, aditya sanas 007aditya.b...@gmail.com wrote: Hello, yes you are right we dont have direct access to SuggestBox Popups. I have already extended SuggestOracle and have overridden method requestSuggestion(request,callback); code for the following as follows : public class StartsWithSuggestOracle extends SuggestOracle { //... some other code... * �...@override* * public void requestSuggestions(Request request, Callback callback) * * { * * final List suggestions = computeItemsFor(request.getQuery().toLowerCase(),request.getLimit()); * * Response response = new Response(suggestions); * * callback.onSuggestionsReady(request, response); * * } * } and the underlined method computeItemsFor(); returns me the suggestions based upon request so as per my logic if request contains no character that is an empty string i have returned all suggestions from oracle object. so here i m able to get this response correctly but i m nt getting wht should be done next with this response. from where i should give a call to this method and how that list get populated. I have followed that link suggested by you but that was the same mechanism that used there. so i m lil confuse why its not showing the response. -- Aditya On Thu, Aug 12, 2010 at 5:50 PM, ctasada ctas...@gmail.com wrote: Hi Aditya, The problem is that you don't have direct access to the SuggestBox popup. If you want to see all the possible solutions you should extend the SuggestOracle and implement your own requestSuggestions method (see this link for some nice examples:http://development.lombardi.com/?p=39) In this way yo can simply return all your list, even ignoring the limit. Regards, Carlos. On Aug 12, 10:50 am, Aditya 007aditya.b...@gmail.com wrote: hi, I want to show all elements from the suggestoracle whenever suggestionbox recieves a focus. I did some search for it and i found something as follows : http://groups.google.com/group/google-web-toolkit/browse_thread/threa... Now i m able to recieve Response this.getSuggestOracle().requestSuggestions(request, new Callback() { @Override public void onSuggestionsReady(Request request, Response response) { // here I m getting complete list from suggestoracle } }); I am able to get list of suggestions in this response but i dnt knw what should i do next...? what should be done with this response how this will help me to populate suggestions...? Thank you. -- Aditya -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MyWebApp is not a GWT project - message
You need to go to the Project Properties (right-click on your project), under Google, Web Toolkit Settings, and click the button that says Use Google Web Toolkit (same for AppEngine, if you're using it). Also, make sure that under Web Application, the button that says This project has a WAR directory is clicked. kathrin On Thu, Aug 12, 2010 at 4:35 PM, Jon_E odd.metho...@gmail.com wrote: Hi, How do I launch a project in debug mode in Eclipse that was created with the command line tool? - - - Background - - - - Following the tutorial, I created an application using the command line: webAppCreator -out MyWebApp com.mycompany.mywebapp.MyWebApp Next, I installed the Eclipse plug in. I imported the MyWebApp project into eclipse. When I click Projects - Run As, I do not see an option for Web Application as the tutorial says I should. When I try to compile the GWT project, I get the message, MyWebApp is not a GWT project. When I try to create a debug configuration, the message appears Project does not use GWT or GAE. The gwt-user.jar and gwt-dev.jar of GWT 2.0.4 are both referenced libraries. What am I missing? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CalendarService application showing total meeting from Google Calendar
Fernando, I've already downloaded the right version, but I've already checked each class in which the compiler said the method is undefined, such as: getEventEntries (in Calendar Service http://code.google.com/intl/fr/apis/gdata/javadoc/com/google/gdata/client/calendar/CalendarService.html I also didnt find getEventEntries()), show data( in CalendarEventEntry), etc But the code that i copied is exatcly from the Book of Programming GWT, so i think it should work. And this method of getEventEntries I found in JavaScrip doc, I'm confused, may be you can suggest? On Aug 5, 9:55 pm, Fernando spiderkens...@gmail.com wrote: the problem is the CalendarService import check if it is the right one and also your gdata library version On 5 ago, 06:06,ichiichi8...@gmail.com wrote: Hai, I'm a newbie trying this piece of code to show the total schedule we have from Google Calendar, I've already import several package and put the necessary jar files in Reference Library, But I still have several things error. Could you tell me what I miss? I put the error message in the line directly. Thank you -- package calendarTest.client; import java.lang.Class; import com.google.gwt.accounts.client.User; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent; import com.google.gwt.event.dom.client.KeyUpHandler; import com.google.gwt.gdata.client.GData; import com.google.gwt.gdata.client.GDataSystemPackage; import com.google.gwt.gdata.client.calendar.CalendarEventFeedCallback; import com.google.gwt.gdata.client.impl.CallErrorException; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.rpc.AsyncCallback; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.HTML; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gdata.client.*; import com.google.gdata.client.calendar.CalendarService; import com.google.gdata.data.acl.*; import com.google.gdata.data.calendar.*; import com.google.gdata.data.extensions.*; import com.google.gdata.util.*; import java.net.URL; import java.net.*; import java.io.*; /** * Entry point classes define codeonModuleLoad()/code. */ public class CalendarTest { private CalendarService service; String scope = http://www.google.com/calendar/feeds/;; String eventFeed = http://www.google.com/calendar/feeds/default/ private/full; public void onModuleLoad(){ //make sure GWT app has the necessary packet if(!GData.isLoaded(GDataSystemPackage.CALENDAR)){ GData.loadGDataApi(null, new Runnable(){ public void run(){ Button b = new Button(Affiche mes rendez-vous); b.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { User.login(scope); getEvents(); } }); RootPanel.get().add(b); } }, GDataSystemPackage.CALENDAR); } else { getEvents(); } } private void getEvents() { service = CalendarService.newInstance(My Demo); //--The method newInstance(String) is undefined for the type CalendarService service.getEventsFeed(eventFeed, new CalendarEventFeedCallback() { //-- getEventsFeed(String, new CalendarEventFeedCallback(){}) is undefined for the type CalendarService public void onFailure(CallErrorException caught) { Window.alert(Erreur survenue lors de la lecture du flux: +caught.getMessage()); } public void onSuccess(com.google.gwt.gdata.client.calendar.CalendarEventFeed result) { CalendarEventEntry[] entries = result.getEntries(); //--Type mismatch: cannot convert from EventEntry[] to CalendarEventEntry[] if (entries.length == 0) { Window.alert(Il n'y a aucun événement dans votre calendrier.);
Re: Debugging Maven GWT project with GlassFish
On 13 août, 14:21, Sergey Ponomarev serg...@gmail.com wrote: You'd have to start your GlassFish server (don't know how to do it with Maven, but you probably know) and then run (gwt:run or gwt:debug) using the noServer configuration option:http://mojo.codehaus.org/gwt-maven-plugin/run-mojo.html#noServer mvn gwt:debug -DnoServer=true -DrunTarget=welcomeGWT.html It starts Jetty. Am I doing something wrong? -Dgwt.noserver, not -DnoServer You also should use a full URI for the runTarget: -DrunTarget=http:// myserver/myhostpage.html (note that this one is *not* -Dgwt.runtarget) But, honestly, gwt-maven-plugin's gwt:run and associates are really, really hackish (noServer only supports running a single module, and otherwise --no noServer-- it doesn't really work when multiple modules are used either, looking for a module name in the runTarget). Some should really clean it up (Google has tweaked it but not yet open- sourced their changes), even if it means breaking compatibility and no longer supporting pre-GWT2.x (actually more likely pre-GWT1.6) projects. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: synchronize asynchronous calls?
Jeff, is it safe to say the skeleton of your method looks like this? void execute() { // 1 DeferredCommand.addCommand(new IncrementalCommand() { /* state machine logic as posted above */ } // 2 } The problem is, DeferredCommand isn't blocking, so after DeferredCommand.addCommand(...), whatever logic you put inside the incremental command won't be executed before the outer execute method finishes. e.g., if I put System.out.println(execute() started) at //1 position and println(execute() finished) at //2 and loads of print() inside the incremental command, the output will be: execute() started execute() finished // whatever I put in the incremental command Therefore, execute() method isn't blocking. I think I need to clarify/reiterate what I need: I have a list of async commands, and I want execute() method to execute these commands, either in serial or parallel, and execute() method waits until all these commands finish and then returns. On Thu, Aug 12, 2010 at 6:24 PM, Jeff Chimene jchim...@gmail.com wrote: On 08/12/2010 02:23 PM, Kevin Qiu wrote: Thanks for taking the time. Although it's not clear what action you put in the timer and what the timer is supposed to do It's a processing occurring timer. I think I mentioned it earlier, so I didn't remove it from the example. (IncrementalCommand is executed by DeferredCommand.CommandExecutor and it already has a timer with timeslice set to 100ms). Right. Also, I suppose you need to reset the busy flag in the callback of the asynchronous calls. Yes. You already had that bit sussed. The case statement asynchronously drains the command queue, while providing a structure that synchronously resolves to a final command step. I'm still a bit incredulous but I'll give it a try. Thanks again :) Feel free to ask. Cheers, On Thu, Aug 12, 2010 at 4:43 PM, Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com wrote: On 08/12/2010 12:50 PM, Kevin Qiu wrote: After some thought, I don't think putting it in IncrementalCommand and execute with DeferredCommand help much here. Jeff, If I understand you correctly, my execute method will look like this: class Executor { // declaration of list of commands void execute() { DeferredCommand.addCommand(new IncrementalCommand() { boolean executing; int currentIdx; public boolean execute() { if (executing) return true; // executor will keep looping // it's my turn now executing = true; AsyncCommand cmd = commands.get(currentIdx); cmd.execute(new AsyncCallback() { public void onFailure(Throwable e) { onSuccess(null); } public void onSuccess(Object o) { executing = false; ++currentIdx; } } // return point } } The above method is actually still non-blocking. There's no guarantee that my incremental command will finish executing before I reach //return point. Did I miss anything? Looking at your code a bit more closely (and while composing an example), I see that you want something that requires a bit more structure. You have the IncrementalCommand() correctly implemented. Forget my previous answer. Now that I really understand what you're asking (I think)... I solve the problem using a state machine. Notice how the SM loops on DICTIONARYREAD until the command queue is empty. DeferredCommand.addCommand(new IncrementalCommand() { @Override public boolean execute() { switch (startupState) { case INITIAL: timer.scheduleRepeating(600); startupState = StartupState.DICTIONARYREAD; break; case DICTIONARYREAD: if (dictionaryRequest.getDictionaryPages()) { break; } startupState = StartupState.FINAL; break; case FINAL: // Kevin's RETURN POINT? timer.cancel(); return false; // command is complete } return true; }); public boolean getDictionaryPages() { while (dictionaryRequestList.size() 0) { if (busy) { return true; } dictionaryRequestList.pop().execute(); // RPC and BUSY mutex } return false; } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com mailto:google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to
Re: synchronize asynchronous calls?
cokol, could you elaborate on the timer idea? namely, how do you block the current executing method using a timer? I'm sure I missed your point, but just for argument's sake, I cooked up this method: public void execute() { Timer blocker = new Timer() { public void run() { while (currentIdx commands.size()); // 1 this.cancel() // 2 } } DeferredCommand.addCommand(new IncrementalCommand() { /* checking if it's busy, if not, get the next cmd and execute. increment currentIdx, etc etc */ }); blocker.scheduleRepeat(100); // 3 } Now // 3 is supposed to help me block execute() method from returning, except that // 1, the spinning lock locks the current thread, and // 2 is never going to be called, because the incremental command never gets a chance to execute, so currentIdx is going to stay the same. I'm sure I'm doing it the wrong way, but I haven't figured out how a timer can help me here. Maybe you can enlighten me. On Fri, Aug 13, 2010 at 7:07 AM, cokol eplisc...@googlemail.com wrote: write a class which can be used like this: Executor.async(cmd1).async(cmd2).async(cmd3).sync(cmd4) it gonna start cmd1..cmd3 and when all are finished it gonna start cmd4 and go for observer pattern everytime an async call finishes it checks if it was the last one, if so it triggers cmd4, being in java you could have implemnted the lock with .wait() and .notify() but in javascript its not possible where yu have to write an own blocker, which imitates the wait() on java side, for this you can use a timeout with maximum waiting time looping forever, so the browser prevents execution, your executor should then implement clearTimeout() which is called upon every async call termination causing the timer to terminate and iterating with the next operation On 12 Aug., 16:30, Kevin Qiu kevin.jing@gmail.com wrote: I don't know if the title makes sense but working with gwt for about 2 years, I often find myself in the position to mix both asynchronous and synchronous (blocking) apis. It's easy to transform a synchronous call to asynchronous, but the other way around is not immediately obvious to me, especially in the context of the single-threaded browser environment. Imagine I the following: abstract class GetListT { abstract void execute(AsyncCallbackListT callback); } class GetContactList extends GetListContact { void execute(AsyncCallbackListContact callback) { /* implementation */ } } class GetAddressList extends GetListAddress { void execute(AsyncCallbackListAddress callback) { /* implementation */ } } class GetPhoneList extends GetListPhone { void execute(AsyncCallbackListPhone callback) { /* implementation */ } } now imagine I keep a list of GetList objects: ListGetList commands = Arrays.asList(new GetContactList(), new GetAddressList(), new GetPhoneList()); and I have an executor that executes these commands: class Executor { List? extends GetList? commands; Executor(List? extends GetList? commands) { this.commands = commands; } void execute() { // XXX: } } Now, for whatever reason, I need my execute() method to be a blocking call (synchronous). It should terminate after all GetList calls are returned. How can I achieve this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: synchronize asynchronous calls?
On Fri, Aug 13, 2010 at 7:23 AM, Kevin Qiu kevin.jing@gmail.com wrote: Jeff, is it safe to say the skeleton of your method looks like this? void execute() { // 1 DeferredCommand.addCommand(new IncrementalCommand() { /* state machine logic as posted above */ } // 2 } The problem is, DeferredCommand isn't blocking, so after DeferredCommand.addCommand(...), whatever logic you put inside the incremental command won't be executed before the outer execute method finishes. e.g., if I put System.out.println(execute() started) at //1 position and println(execute() finished) at //2 and loads of print() inside the incremental command, the output will be: execute() started execute() finished // whatever I put in the incremental command Therefore, execute() method isn't blocking. Of course the DeferredCommand isn't blocking. I know that. The SM just loops at DICTIONARYREAD until the queue empties. Post your entire implementation of the execute() method. Do not put code at //1 or //2 Did my example show that? I don't think it did. //1 and //2 should be inside the SM. Did you code an implementation or just do a desk check? The dictionary entries are downloaded one at a time. The UI isn't live until all downloads complete. Either way, it looks like I've failed to communicate how this works. If you want to see a live demo, feel free to send an OpenID, I'll add it to to the authorization and you can watch it using FF and Firebug. I think I need to clarify/reiterate what I need: I have a list of async commands, and I want execute() method to execute these commands, either in serial or parallel, and execute() method waits until all these commands finish and then returns. On Thu, Aug 12, 2010 at 6:24 PM, Jeff Chimene jchim...@gmail.com wrote: On 08/12/2010 02:23 PM, Kevin Qiu wrote: Thanks for taking the time. Although it's not clear what action you put in the timer and what the timer is supposed to do It's a processing occurring timer. I think I mentioned it earlier, so I didn't remove it from the example. (IncrementalCommand is executed by DeferredCommand.CommandExecutor and it already has a timer with timeslice set to 100ms). Right. Also, I suppose you need to reset the busy flag in the callback of the asynchronous calls. Yes. You already had that bit sussed. The case statement asynchronously drains the command queue, while providing a structure that synchronously resolves to a final command step. I'm still a bit incredulous but I'll give it a try. Thanks again :) Feel free to ask. Cheers, On Thu, Aug 12, 2010 at 4:43 PM, Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com wrote: On 08/12/2010 12:50 PM, Kevin Qiu wrote: After some thought, I don't think putting it in IncrementalCommand and execute with DeferredCommand help much here. Jeff, If I understand you correctly, my execute method will look like this: class Executor { // declaration of list of commands void execute() { DeferredCommand.addCommand(new IncrementalCommand() { boolean executing; int currentIdx; public boolean execute() { if (executing) return true; // executor will keep looping // it's my turn now executing = true; AsyncCommand cmd = commands.get(currentIdx); cmd.execute(new AsyncCallback() { public void onFailure(Throwable e) { onSuccess(null); } public void onSuccess(Object o) { executing = false; ++currentIdx; } } // return point } } The above method is actually still non-blocking. There's no guarantee that my incremental command will finish executing before I reach //return point. Did I miss anything? Looking at your code a bit more closely (and while composing an example), I see that you want something that requires a bit more structure. You have the IncrementalCommand() correctly implemented. Forget my previous answer. Now that I really understand what you're asking (I think)... I solve the problem using a state machine. Notice how the SM loops on DICTIONARYREAD until the command queue is empty. DeferredCommand.addCommand(new IncrementalCommand() { @Override public boolean execute() { switch (startupState) { case INITIAL: timer.scheduleRepeating(600); startupState = StartupState.DICTIONARYREAD; break; case DICTIONARYREAD: if (dictionaryRequest.getDictionaryPages()) { break; } startupState = StartupState.FINAL; break; case FINAL: // Kevin's RETURN POINT?
Re: Data presentation widgets
No you don't. I am using them with 2.1 M2 without RequestFactory On Aug 13, 9:36 am, Arthur Kalmenson arthur.k...@gmail.com wrote: I think that's going to be the case until GWT 2.1 comes out. -- Arthur Kalmenson On Tue, Aug 10, 2010 at 10:00 AM, tc camec...@gmail.com wrote: Do you have to use the RequestFactory / MVP pieces of GWT 2.1 in order to use the Data Presentation Widgets? My guess is no. I would like to use all of it but it looks like the MVP parts are still very much in flux. 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 athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Request Factory with Service objects
How does the new RequestFactory work with with actual Service Objects on the server. Not everything is a simple CRUD operation and you definitely do not want to through everything into the entity object. Does RequestFactory work with service objects? If so can someone show a quick example on how that works with DTO concept and such? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: synchronize asynchronous calls?
Do not put code at //1 or //2 Did my example show that? I don't think it did. //1 and //2 should be inside the SM. Did you code an implementation or just do a desk check? The whole point of syncing a series of async calls is to make the flow of execution deterministic. I put print statements there just to show the execution order. The execution order desired is: // 1 async calls // 2 return That's the objective I want to achieve and no offence, I don't think that's what your implementation does. I sent you my gmail address. The dictionary entries are downloaded one at a time. The UI isn't live until all downloads complete. Either way, it looks like I've failed to communicate how this works. If you want to see a live demo, feel free to send an OpenID, I'll add it to to the authorization and you can watch it using FF and Firebug. I think I need to clarify/reiterate what I need: I have a list of async commands, and I want execute() method to execute these commands, either in serial or parallel, and execute() method waits until all these commands finish and then returns. On Thu, Aug 12, 2010 at 6:24 PM, Jeff Chimene jchim...@gmail.com wrote: On 08/12/2010 02:23 PM, Kevin Qiu wrote: Thanks for taking the time. Although it's not clear what action you put in the timer and what the timer is supposed to do It's a processing occurring timer. I think I mentioned it earlier, so I didn't remove it from the example. (IncrementalCommand is executed by DeferredCommand.CommandExecutor and it already has a timer with timeslice set to 100ms). Right. Also, I suppose you need to reset the busy flag in the callback of the asynchronous calls. Yes. You already had that bit sussed. The case statement asynchronously drains the command queue, while providing a structure that synchronously resolves to a final command step. I'm still a bit incredulous but I'll give it a try. Thanks again :) Feel free to ask. Cheers, On Thu, Aug 12, 2010 at 4:43 PM, Jeff Chimene jchim...@gmail.com mailto:jchim...@gmail.com wrote: On 08/12/2010 12:50 PM, Kevin Qiu wrote: After some thought, I don't think putting it in IncrementalCommand and execute with DeferredCommand help much here. Jeff, If I understand you correctly, my execute method will look like this: class Executor { // declaration of list of commands void execute() { DeferredCommand.addCommand(new IncrementalCommand() { boolean executing; int currentIdx; public boolean execute() { if (executing) return true; // executor will keep looping // it's my turn now executing = true; AsyncCommand cmd = commands.get(currentIdx); cmd.execute(new AsyncCallback() { public void onFailure(Throwable e) { onSuccess(null); } public void onSuccess(Object o) { executing = false; ++currentIdx; } } // return point } } The above method is actually still non-blocking. There's no guarantee that my incremental command will finish executing before I reach //return point. Did I miss anything? Looking at your code a bit more closely (and while composing an example), I see that you want something that requires a bit more structure. You have the IncrementalCommand() correctly implemented. Forget my previous answer. Now that I really understand what you're asking (I think)... I solve the problem using a state machine. Notice how the SM loops on DICTIONARYREAD until the command queue is empty. DeferredCommand.addCommand(new IncrementalCommand() { @Override public boolean execute() { switch (startupState) { case INITIAL: timer.scheduleRepeating(600); startupState = StartupState.DICTIONARYREAD; break; case DICTIONARYREAD: if (dictionaryRequest.getDictionaryPages()) { break; } startupState = StartupState.FINAL; break; case FINAL: // Kevin's RETURN POINT? timer.cancel(); return false; // command is complete } return true; }); public boolean getDictionaryPages() { while (dictionaryRequestList.size() 0) { if (busy) { return true; } dictionaryRequestList.pop().execute(); // RPC and BUSY mutex } return false; } -- You received 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
Re: MyWebApp is not a GWT project - message
Thanks, Kathrin. That worked perfectly. On Aug 13, 6:53 am, Katharina Probst kpro...@google.com wrote: You need to go to the Project Properties (right-click on your project), under Google, Web Toolkit Settings, and click the button that says Use Google Web Toolkit (same for AppEngine, if you're using it). Also, make sure that under Web Application, the button that says This project has a WAR directory is clicked. kathrin On Thu, Aug 12, 2010 at 4:35 PM, Jon_E odd.metho...@gmail.com wrote: Hi, How do I launch a project in debug mode in Eclipse that was created with the command line tool? - - - Background - - - - Following the tutorial, I created an application using the command line: webAppCreator -out MyWebApp com.mycompany.mywebapp.MyWebApp Next, I installed the Eclipse plug in. I imported the MyWebApp project into eclipse. When I click Projects - Run As, I do not see an option for Web Application as the tutorial says I should. When I try to compile the GWT project, I get the message, MyWebApp is not a GWT project. When I try to create a debug configuration, the message appears Project does not use GWT or GAE. The gwt-user.jar and gwt-dev.jar of GWT 2.0.4 are both referenced libraries. What am I missing? Thanks in advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: synchronize asynchronous calls?
On 08/13/2010 09:16 AM, Kevin Qiu wrote: Do not put code at //1 or //2 Did my example show that? I don't think it did. //1 and //2 should be inside the SM. Did you code an implementation or just do a desk check? The whole point of syncing a series of async calls is to make the flow of execution deterministic. I put print statements there just to show the execution order. The execution order desired is: // 1 async calls // 2 return That's the objective I want to achieve and no offence, I don't think that's what your implementation does. It does. As I noted earlier, the position of those code fragments won't provide the behavior you seek. The fragments must be part of the SM logic. Placing them where you did simply {ignores | doesn't follow} my advice. To correct your example: code fragment //1 goes in the body of INITIAL state. This message will print once. code fragment //2 goes in the body of the DICTIONARYREAD state. This message will print for each element in the execute queue. code fragment //3 (not shown) goes in the body of the FINAL state. This message will print once. I sent you my gmail address. Received. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT/Tomcat serialization issues during deployment
Had to get my hands dirty to figure this one out. Here's how I got around these exceptions. 1. First, on the client side. Instead of calling testService.sendTestData(new TestData(), sendTestDataCallback); I did the following: String content = ServiceUtils.marshallTestServiceObject(new TestData()); testService.sendTestData(content, sendTestDataCallback); where marshallTestService looks like this: public static String marshallTestServiceObject(Object obj) { String content = null; SerializationStreamFactory factory = GWT.create(TestService.class); SerializationStreamWriter writer = factory.createStreamWriter(); try { writer.writeObject(obj); content = writer.toString(); } catch (SerializationException se) { content = null; } return content; } That successfully sent the object to the server side. 2. On the server side I had to create my own AbstractSerializationStreamReader and call it as follows: CustomSerializationStreamReader reader = new CustomSerializationStreamReader( Thread.currentThread().getContextClassLoader(), null); try { reader.prepareToRead(content); TestData testData = (TestData)reader.readObject(); // viola, I have the testData instance } catch (SerializationException se) { se.printStackTrace(); } Before I created a custom string reader I tried to use the ServerSerializableStreamReader. This did not work because of the following line of code: Constructor? constructor = instanceClass.getDeclaredConstructor(); That line of code essentially makes the following call: System.getSecurityManager() .checkMemberAccess(TestData.class.getDeclaredConstructor().getClass(), Member.DECLARED); Unfortunately, when Tomcat is running with a security manager, this call causes an AccessControlException because we can only see Member.PUBLIC. So...Long story short. My CustomSerializableStreamReader simply calls Constructor.newInstance(), which does the trick. I know that my default ctor exists and is public so this worked for me. I hope somebody is able to find this useful. Especially if you run your app on GoDaddy and need reflection. -Eric On Aug 11, 9:52 pm, duey duey...@gmail.com wrote: I have a simple application setup. It is comprised of a single module that has one responsibility. Its job is to test RPC in my application. Here's what I have. First, on the client side, I have a TestData object. This object implements java.io.Serializable. It has one member variable, which has a public access modifier. On the server side, it's very simple. I have an implementation of a RemoteServiceServlet that has 2 methods. One that creates an instance of TestData, the other that accepts an instance of TestData and simply returns true. I have 2 goals: 1. I am testing if the TestData can successfully travel from server- side to client side. 2. I want to create a TestData object and send it to the server side. I am deploying my application as a WAR file with Tomcat. Tomcat is running with security enabled. I can successfully accomplish my first goal. I get the object back from the server and display its contents in a Label. When I attempt the second goal I get the following exception: 2010-08-11 21:24:37 StandardContext[/trunorth]Exception while dispatching incoming RPC call java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks) at java.security.AccessControlContext.checkPermission(AccessControlContext.jav a: 323) at java.security.AccessController.checkPermission(AccessController.java: 546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at java.lang.reflect.AccessibleObject.setAccessible(AccessibleObject.java: 107) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.instant iate(ServerSerializationStreamReader.java: 887) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lize(ServerSerializationStreamReader.java: 544) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readO bject(AbstractSerializationStreamReader.java: 61) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader $ValueReader$8.readValue(ServerSerializationStreamReader.java:137) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deseria lizeValue(ServerSerializationStreamReader.java: 384) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:296) at
Acris Security and App Engine
I've been trying to find out more information about sessions in GWT, as I couldn't figure out how to get them to work, and something that I stumbled across is Acris, which has a Security implementation. I've been reading about it and I can't find detailed information on how to use maven to setup a gwt project, and I'm so confused as to how maven works, or what it's actual purpose is even. However, Acris is something I'm very interested in using. I was searching around trying to figure out how I could do this, and I happened across a post of someone telling someone that acris couldn't be implemented onto projects hosted with AppEngine. Is this true? Also, does anyone have some detailed steps as to how I setup Maven with GWT and Eclipse? I've installed maven on eclipse, but now (from what I gather, I'm taking a leap and concluding this) I have to do some setup in my pom.xml file. I don't know if this is before or after the creation of the project, but I can't figure out how to create a project either, so overall I'm very confused. I'd be thankful for any help at all in this area. ~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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request Factory with Service objects
On 13 août, 18:07, tc camec...@gmail.com wrote: How does the new RequestFactory work with with actual Service Objects on the server. Not everything is a simple CRUD operation and you definitely do not want to through everything into the entity object. Does RequestFactory work with service objects? If so can someone show a quick example on how that works with DTO concept and such? The design doc is here https://wave.google.com/wave/waveref/googlewave.com/w+WU4iAICkI -- You received 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.
The host html alignment always overriding the the alignment of the horizontal panel
Hi, The following is part of my host file. table align=center tr td id=main/td /tr /table HorizontalPanel hpanel = new HorizontalPanel(); hpanel.add(button); hpanel.setHorizontalAlignment(ALIGN_CENTER); Root.get(main).add(hpanel); The alignment is always dominating by the setting of the html host file; So from above, the button in hpanel is aligning on the left instead of the center. How can I make the setHorizontalAlignment effective again? Thanks Ming -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I set the border around elements in a DockLayoutPanel?
Thanks, but it's not the panel I want to decorate, it's the elements within the panel (i.e. I want to put a box around Center). On Aug 13, 6:08 am, cokol eplisc...@googlemail.com wrote: wrap you panel into DecoratorPanel then you can use 9box round corners On 12 Aug., 20:50, Greg Dougherty dougherty.greg...@mayo.edu wrote: With a DockPanel I just create a CSS style, and apply it to the Panel. I did that with a DockLayoutPanel, and nothing seemed to happen. I searched the archives of this group for CSS and DockLayoutPanel, and the concolusion I came to is that CSS doesn't work with DLPs. If that's not correct, I'd love to hear it, and see an example of how to do it correctly. Presumably the people writing GWT actually test the features they put in it. Given the paucity of example code, this belief has to remain merely an assumption. :-( Greg On Aug 12, 12:59 pm, dane.molotok dane.molo...@gmail.com wrote: How did you do it with a DockPanel? Wouldn't you want to style the elements you've placed in the panel? So it shouldn't matter if it's a DockPanel or a DockLayoutPanel. On Aug 12, 12:09 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: The topic pretty much says it all. I know how to do this for a DockPanel. How do I do it for a DockLayoutPanel? Yes, I know, use uibinder. That doesn't work when you're building things grammatically, which is what I'm doing. BTW, why don't the Showcase application use ANY *LayoutPanels? I thought they were supposed to be the preferred way to do things, no? Greg -- You received 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.
Expose URL as REST service how?
Hi All, I am evaluating GWT for my new project which is going to be started shortly. I have a requirement with REST support. For example, I have a list of users. If I click on any one the user, the details of the user will be shown in a different view. I need to expose this URL, http://sample.com/user/123 as a REST service. If anyone try to access this URL directly, the particular user details should be shown. I don't know how to achieve this using GWT. I am using RPC service to fetch the details of the user from the server. Can any one help me on this? - Thamizharasu S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to send data back to client side code?
Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- You received 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.
Question about GwtEvent and setting source
I wanted to set the source of my custom event fired on our eventBus and ended up digging inside handlerManager just to find out that we just can't set the source. Source is package private AND setted uppon creation of HandlerManger. Common pratice for an EventBus is to extends HandlerManager... and set the source to null. Is there a good reason why we can't have a setSource function iside GwtEvent ? Thanks -- Christian Goudreau www.arcbees.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Expose URL as REST service how?
REST is provided by most app servers in the form of a reference implementation of JSR-311. Glassfish uses Jersey, JBoss RESTEasy. Most app servers bundle support in one way or another now. Some GWT people have found RESTlet easy to use also. The Jersey users manual is very in-depth and ought to get you going, but the deployment descriptor will change depending on implementation. https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html On Aug 13, 11:38 am, Thamizharasu S zaru...@gmail.com wrote: Hi All, I am evaluating GWT for my new project which is going to be started shortly. I have a requirement with REST support. For example, I have a list of users. If I click on any one the user, the details of the user will be shown in a different view. I need to expose this URL,http://sample.com/user/123as a REST service. If anyone try to access this URL directly, the particular user details should be shown. I don't know how to achieve this using GWT. I am using RPC service to fetch the details of the user from the server. Can any one help me on this? - Thamizharasu S -- You received 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.
UiBinder xml definition reference: HELP...
Hi All, Where can I find the full list of property reference for UiBinder controls in xml file? For example, any GWT elements can be bind with UiBinder. Sometimes it is confusing to identify the correct property name and some available values. Can any one point to identify it for my reference? - Thamizharasu S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Expose URL as REST service how?
Hi, Thanks for the quick answer. I want to deply my GWT app in GAE. is there any document for reference or could you help me on this to achieve? - Thamizharasu S On Aug 13, 10:51 pm, lineman78 linema...@gmail.com wrote: REST is provided by most app servers in the form of a reference implementation of JSR-311. Glassfish uses Jersey, JBoss RESTEasy. Most app servers bundle support in one way or another now. Some GWT people have found RESTlet easy to use also. The Jersey users manual is very in-depth and ought to get you going, but the deployment descriptor will change depending on implementation. https://jersey.dev.java.net/nonav/documentation/latest/user-guide.html On Aug 13, 11:38 am, Thamizharasu S zaru...@gmail.com wrote: Hi All, I am evaluating GWT for my new project which is going to be started shortly. I have a requirement with REST support. For example, I have a list of users. If I click on any one the user, the details of the user will be shown in a different view. I need to expose this URL,http://sample.com/user/123asa REST service. If anyone try to access this URL directly, the particular user details should be shown. I don't know how to achieve this using GWT. I am using RPC service to fetch the details of the user from the server. Can any one help me on this? - Thamizharasu S -- You received 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.
[no subject]
-- Olindo Pindaro http://www.linkedin.com/in/olindopindaro +39 3939455830 -- You received 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.
SuggestBox + UiBinder question...
Hi All, I have a problem with SuggestBox with UiBinder. I have created a SuggestBox control using ui.xml binder file. How could I define the 'MultiWordSuggestOracle' object with my suggestBox object which is defined in the xml. Any idea? - Thamizharasu S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How do I set the border around elements in a DockLayoutPanel?
then do the same - use the decoratorpanel as container for elements where you want to have corners, u might also want to create a composite having decoratorpanel wrapping elements... On 13 Aug., 19:07, Greg Dougherty dougherty.greg...@mayo.edu wrote: Thanks, but it's not the panel I want to decorate, it's the elements within the panel (i.e. I want to put a box around Center). On Aug 13, 6:08 am, cokol eplisc...@googlemail.com wrote: wrap you panel into DecoratorPanel then you can use 9box round corners On 12 Aug., 20:50, Greg Dougherty dougherty.greg...@mayo.edu wrote: With a DockPanel I just create a CSS style, and apply it to the Panel. I did that with a DockLayoutPanel, and nothing seemed to happen. I searched the archives of this group for CSS and DockLayoutPanel, and the concolusion I came to is that CSS doesn't work with DLPs. If that's not correct, I'd love to hear it, and see an example of how to do it correctly. Presumably the people writing GWT actually test the features they put in it. Given the paucity of example code, this belief has to remain merely an assumption. :-( Greg On Aug 12, 12:59 pm, dane.molotok dane.molo...@gmail.com wrote: How did you do it with a DockPanel? Wouldn't you want to style the elements you've placed in the panel? So it shouldn't matter if it's a DockPanel or a DockLayoutPanel. On Aug 12, 12:09 pm, Greg Dougherty dougherty.greg...@mayo.edu wrote: The topic pretty much says it all. I know how to do this for a DockPanel. How do I do it for a DockLayoutPanel? Yes, I know, use uibinder. That doesn't work when you're building things grammatically, which is what I'm doing. BTW, why don't the Showcase application use ANY *LayoutPanels? I thought they were supposed to be the preferred way to do things, no? Greg -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Script tag dynamic loading
maybe u can expose me your eclipse project and I can try to resolve it locally...? if u dont mind On 13 Aug., 13:57, Vincent COROLLEUR vcoroll...@gmail.com wrote: I tried to load the script on a button event and it's the same... Really annoying -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Detecting Network connection loss - com.google.gwt.user.client.rpc.InvocationException
The timeout mechanism can be found here http://www.google.com/codesearch/p?hl=en#jxxBHps6Oxg/trunk/kiyaa/src/main/java/com/habitsoft/kiyaa/util/AsyncCallbackWithTimeout.java It's a bit complicated (otherwise you would have to overwrite the default generators of GWT-RPC). I would personally go for an annotation/generator scheme, smth like this: @TimeoutCapable(15000) interface MyService extends RemoteService { // . } That should work for most cases (unless you want different timeouts for different calls). On Aug 13, 2:35 pm, cokol eplisc...@googlemail.com wrote: exactly, like if(caught instanceof RequestTimeoutException){ //timeout } but u have explicetely to set timeout to support it, since as per default the timeout is set to 0 (no timeouts) On 12 Aug., 17:12, Jeff Chimene jchim...@gmail.com wrote: On 08/11/2010 06:12 PM, nokostar wrote: What is the best way of detecting a loss of network connectivity to the server? I have a GWT app that saves state to the server through an RPC. I would like to be able to detect when the connection to the servers fails so I can take appropriate action. I disconnected my network by removing the network cable on a client machine to see if I can be able to catch the InvocationException in the AsyncCallback's onFailure method with no luck at all. public void onFailure(Throwable caught) { GWT.log(RPC Failure,caught); if (caught instanceof InvocationException){ //do something } } Timeout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Script tag dynamic loading
I have run into this problem with a few scripts that rely on the document load event, maybe look into manually firing it. I think I tried dynamic loading of the maps library before and gave up, but I didn't try very hard to get it working. On Aug 13, 5:57 am, Vincent COROLLEUR vcoroll...@gmail.com wrote: I tried to load the script on a button event and it's the same... Really annoying -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to send data back to client side code?
Any object referenced in client-side code must be in a client package. The new version of the GWT plugin for eclipse added a shared package suffix, but it is added to the gwt.xml as a client side package. On Aug 13, 11:39 am, Sree ... gattasrika...@gmail.com wrote: Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- You received 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.
question about code splitting
Hi, I'm wondering if I still get the benefits from code splitting from the example below: String className = MyClass.getName(); ... GWT.runAsync(new RunAsyncCallback() { onSuccess() { new MyClass(); } onFailuare() { ... } }); Basically, I am wondering that since I referenced MyClass.getName() prior to the GWT.runAsync, does that kill the benefits I would get from code splitting if I am trying to load all of the code related to MyClass asynchronously. Thanks. Joe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Does these books still compatible with the new GWT ?
My own ESSENTIAL GWT is now out, and is geared towards GWT 2, so I think it will suit you. You can find it at Amazon.com and other online bookshops. Best regards, F.Kereki -- You received 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.
UiBinder Performance
I have been looking over the ColumnDefinition code from http://code.google.com/webtoolkit/articles/mvp-architecture-2.html MVP Architecture 2. In particular the render method. We have considered using UiBinder in the render portions. The concern some of us have are the performance implications. Consider an example where we generate a table with 10 columns and 100 rows. Just like in the architecture each row is a model object. The though is instead of using inner html to render (probably the fastest way) we're considering using a UiBinder.ui.xml view instantiated multiple times (once per row). So based on my example above we'd have 100 model objects, and UiBinder fragmets. The reason we've considered this method is to remove html code generation in Java. I was wondering what everyone thought about this or if they have another idea? -Adam -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to send data back to client side code?
hi the problem is that gwt does not have source of your Employee class, since you have put it into the server package, you always have 3 packages to handle (as per default): client server shared everything under client becomes javascript after compilation and is not aware of anything contained in server package, everything contained in server package is intended to run in java VM and remains java, here you may have references to classes used in client package if you like, this would not break up gwt. the shared package contains everything what is required for client and server package, like the service interfaces AND transfer objects payload classes like your Employee. furthermore everything whats inside client and shared package has to be translatable to javascript, i.e. you shall not use 3rd party libraries in there. so just move the Employee and all related (payload) classes to the shared (or client) package and you are done On 13 Aug., 19:39, Sree ... gattasrika...@gmail.com wrote: Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: question about code splitting
to load code asynchronously does not make sence unless not loaded by demand, as a sample: if you have login-screen as a first screen, and after login you want to initialize the application,here you would benefit from splitting the code, one part to handle login and the other for entire application, because you never need entire application code as long as you have not logged in successfully On 13 Aug., 21:52, Joe Hudson joe...@gmail.com wrote: Hi, I'm wondering if I still get the benefits from code splitting from the example below: String className = MyClass.getName(); ... GWT.runAsync(new RunAsyncCallback() { onSuccess() { new MyClass(); } onFailuare() { ... } }); Basically, I am wondering that since I referenced MyClass.getName() prior to the GWT.runAsync, does that kill the benefits I would get from code splitting if I am trying to load all of the code related to MyClass asynchronously. Thanks. Joe -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: String.matches() does not work with \p{ASCII}
Thanks, with the hexidecimal range 00, 7F it works. On 13 авг, 01:17, cokol eplisc...@googlemail.com wrote: as you probably know, regex is belongs to that cases not fully compatible between java and javascript, and in dev mode your GWT engine uses real JDK therefore it works, whereas after compilation your matches() is performed on the browser with its regex engne and it fails. well u have to rewrite the pattern \\p{ASCII}* to JS compatible fashion On 12 Aug., 00:39, Vlad vsinit...@gmail.com wrote: Hi, I have a simple code that works correctly in development mode but fails to run on production. Basically, I need to check if the text entered by user contains only ASCII characters. So, I do the following: String s = getTextArea().getText(); if(s.matches(\\p{ASCII}*)) { ...} else { // Some non ASCII characters found } On the production it always comes to the else section. I've tried it with IE, FireFox and Chrome. The results are the same. Any suggestions of how to fix this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
MVP suggestion
Hi, consider a panel that starts by showing a couple of buttons. When you press a certain button, the panel expands with a form and an anchor link. When you click the link, the panel expands once again with some html content. The actual business purpose of the panel is the form. Everything is coded within the component and works fine. Now I'd like to experiment with the View/Presenter pattern and move behavior from the panel (view) to the presenter. My questions are: 1. Should the presenter handle all interactions (e.g. the expanding) or just the business form submit? In other words, should the presenter also handle behaviors that only affect the internal state of the view? 2. In the case of moving all behavior to the presenter, should it fire application events in all circumstances? e.g. panel-expanded event and so on.. 3. In the case of firing app-events in all circumstances, would you delegate the call to the actual handler method (within the same presenter class) to the event-bus handler or would you call it directly from the presenter? 4. Swing component architecture has View and Presenter integrated in the same class. Would you consider using separate classes for all components or maybe for heavy cases? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP suggestion
On 14 août, 01:07, dmen dmenou...@gmail.com wrote: Hi, consider a panel that starts by showing a couple of buttons. When you press a certain button, the panel expands with a form and an anchor link. When you click the link, the panel expands once again with some html content. The actual business purpose of the panel is the form. Everything is coded within the component and works fine. Now I'd like to experiment with the View/Presenter pattern and move behavior from the panel (view) to the presenter. My questions are: 1. Should the presenter handle all interactions (e.g. the expanding) or just the business form submit? In other words, should the presenter also handle behaviors that only affect the internal state of the view? This is a presenter, not a controller. The goal is that the presenter updates the view in response to events (listened to in the view and forwarded back to the presenter). Whether you'll have a onHyperlinkClicked with the presenter toggling the view's expanded state, or an onExpanded with the presenter loading data and pass it to the view (the view then toggling the display) depends on which widget you use in your view (DisclosurePanel, possibly with a LazyPanel as its child) and how the expandable panel's content comes from. If you use a DisclosurePanel with static content, for instance, then you won't have the toggling logic in the presenter, everything will be in the view only. 2. In the case of moving all behavior to the presenter, should it fire application events in all circumstances? e.g. panel-expanded event and so on.. On the event bus? No! only events that are deamed external (is your panel currently firing such events?) And remember: stay pragmatic, don't code things if YAGNI. 3. In the case of firing app-events in all circumstances, would you delegate the call to the actual handler method (within the same presenter class) to the event-bus handler or would you call it directly from the presenter? n/a 4. Swing component architecture has View and Presenter integrated in the same class. Would you consider using separate classes for all components or maybe for heavy cases? Swing uses MVC, not MVP. MVP is (should be?) at a higher level. You could even keep the same presenter but give it a Swing view (instead of GWT view) if you liked. There are precendents (a chess game in GWT for the Web, and Android for handsets) FYI, the new Cell widgets in GWT 2.1 have an internal presenter helper object. This is so that you use them just like any widget, and not as an MVP component in your MVP application (this is the business of Activities in GWT 2.1, which are where you do MVP in an MVP application). It all depends what you consider your panel like (and how you'll use it in your app): a widget or a higher-level component (business component?) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP suggestion
Thank you, much appreciated :) On Aug 14, 2:25 am, Thomas Broyer t.bro...@gmail.com wrote: On 14 août, 01:07, dmen dmenou...@gmail.com wrote: Hi, consider a panel that starts by showing a couple of buttons. When you press a certain button, the panel expands with a form and an anchor link. When you click the link, the panel expands once again with some html content. The actual business purpose of the panel is the form. Everything is coded within the component and works fine. Now I'd like to experiment with the View/Presenter pattern and move behavior from the panel (view) to the presenter. My questions are: 1. Should the presenter handle all interactions (e.g. the expanding) or just the business form submit? In other words, should the presenter also handle behaviors that only affect the internal state of the view? This is a presenter, not a controller. The goal is that the presenter updates the view in response to events (listened to in the view and forwarded back to the presenter). Whether you'll have a onHyperlinkClicked with the presenter toggling the view's expanded state, or an onExpanded with the presenter loading data and pass it to the view (the view then toggling the display) depends on which widget you use in your view (DisclosurePanel, possibly with a LazyPanel as its child) and how the expandable panel's content comes from. If you use a DisclosurePanel with static content, for instance, then you won't have the toggling logic in the presenter, everything will be in the view only. 2. In the case of moving all behavior to the presenter, should it fire application events in all circumstances? e.g. panel-expanded event and so on.. On the event bus? No! only events that are deamed external (is your panel currently firing such events?) And remember: stay pragmatic, don't code things if YAGNI. 3. In the case of firing app-events in all circumstances, would you delegate the call to the actual handler method (within the same presenter class) to the event-bus handler or would you call it directly from the presenter? n/a 4. Swing component architecture has View and Presenter integrated in the same class. Would you consider using separate classes for all components or maybe for heavy cases? Swing uses MVC, not MVP. MVP is (should be?) at a higher level. You could even keep the same presenter but give it a Swing view (instead of GWT view) if you liked. There are precendents (a chess game in GWT for the Web, and Android for handsets) FYI, the new Cell widgets in GWT 2.1 have an internal presenter helper object. This is so that you use them just like any widget, and not as an MVP component in your MVP application (this is the business of Activities in GWT 2.1, which are where you do MVP in an MVP application). It all depends what you consider your panel like (and how you'll use it in your app): a widget or a higher-level component (business component?) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to send data back to client side code?
okey... thanks alot guys i ll try to make those changes and will update here also thx for so quick responses.. am loving it On Sat, Aug 14, 2010 at 2:31 AM, cokol eplisc...@googlemail.com wrote: hi the problem is that gwt does not have source of your Employee class, since you have put it into the server package, you always have 3 packages to handle (as per default): client server shared everything under client becomes javascript after compilation and is not aware of anything contained in server package, everything contained in server package is intended to run in java VM and remains java, here you may have references to classes used in client package if you like, this would not break up gwt. the shared package contains everything what is required for client and server package, like the service interfaces AND transfer objects payload classes like your Employee. furthermore everything whats inside client and shared package has to be translatable to javascript, i.e. you shall not use 3rd party libraries in there. so just move the Employee and all related (payload) classes to the shared (or client) package and you are done On 13 Aug., 19:39, Sree ... gattasrika...@gmail.com wrote: Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SuggestBox + UiBinder question...
The way I normally do this: In the Corresponding view class, @UiField(provided = true)SuggestBox suggestbox; In the constructor, before the initWidget() call, instantiate the suggestbox the way you want it. Prashant On 14-08-2010 00:13, Thamizharasu S wrote: Hi All, I have a problem with SuggestBox with UiBinder. I have created a SuggestBox control using ui.xml binder file. How could I define the 'MultiWordSuggestOracle' object with my suggestBox object which is defined in the xml. Any idea? - Thamizharasu S -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UiBinder xml definition reference: HELP...
Not sure if there is such a documentation, however, one rule is that whenever a widget has a method say setName ( set methods), you can use name= in the UIBinder XML file for that widget. May be someone else can give a better answer. Prashant On 13-08-2010 23:34, Thamizharasu S wrote: Hi All, Where can I find the full list of property reference for UiBinder controls in xml file? For example, any GWT elements can be bind with UiBinder. Sometimes it is confusing to identify the correct property name and some available values. Can any one point to identify it for my reference? - Thamizharasu S -- You received 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.
a and i instead of span style=...
Hi Sorry if already asked, I didn't find it. Is there any way to make RichTextAreaImplStandard to add a and i instead of span style=[font-weight: bold;] [font-style: italic;]. I looked at RichTextAreaImplStandard but it sends commands deep down into JS. Do you have any idea?! Best wishes, Ali -- You received 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.
a and i instead of span style=... in RichTextAreaImplStandard
Hi Sorry if already asked, I didn't find it. Is there any way to make RichTextAreaImplStandard to add a and i instead of span style=[font-weight: bold;] [font-style: italic;]. I looked at RichTextAreaImplStandard but it sends commands deep down into JS. Do you have any idea?! Best wishes, Ali -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to send data back to client side code?
Modified the Employee.java as below *public class Employee implements IsSerializable{* then moved the Employee.java to shared package. [eclipse updated all references well] Now when I GWT to compile its saying Compiling module project.xxx Validating newly compiled units [ERROR] Errors in 'file:/C:/xxx/src/xxx/shared/Employee.java' [ERROR] Line 10: The import com.google.appengine cannot be resolved [ERROR] Line 11: The import com.google.appengine cannot be resolved [ERROR] Line 19: Key cannot be resolved to a type [ERROR] Line 101: BlobKey cannot be resolved to a type [ERROR] Line 141: Key cannot be resolved to a type [ERROR] Line 189: Key cannot be resolved to a type [ERROR] Line 190: Key cannot be resolved to a type [ERROR] Line 305: Key cannot be resolved to a type [ERROR] Line 306: Key cannot be resolved to a type [ERROR] Line 424: BlobKey cannot be resolved to a type [ERROR] Line 425: BlobKey cannot be resolved to a type [ERROR] Line 431: BlobKey cannot be resolved to a type [ERROR] Line 432: BlobKey cannot be resolved to a type Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook Why appengine import statements are not working! Again they should be only in server folder? On Sat, Aug 14, 2010 at 6:17 AM, Sree ... gattasrika...@gmail.com wrote: okey... thanks alot guys i ll try to make those changes and will update here also thx for so quick responses.. am loving it On Sat, Aug 14, 2010 at 2:31 AM, cokol eplisc...@googlemail.com wrote: hi the problem is that gwt does not have source of your Employee class, since you have put it into the server package, you always have 3 packages to handle (as per default): client server shared everything under client becomes javascript after compilation and is not aware of anything contained in server package, everything contained in server package is intended to run in java VM and remains java, here you may have references to classes used in client package if you like, this would not break up gwt. the shared package contains everything what is required for client and server package, like the service interfaces AND transfer objects payload classes like your Employee. furthermore everything whats inside client and shared package has to be translatable to javascript, i.e. you shall not use 3rd party libraries in there. so just move the Employee and all related (payload) classes to the shared (or client) package and you are done On 13 Aug., 19:39, Sree ... gattasrika...@gmail.com wrote: Am not sure this belongs to GWT or GAE or both ... So here's my problem... I have one client/Example.java [contains all GWT code] calls a methods on server/SomeServiceImpl.java [Contains code to talk to dataStore] Wat server/SomeServiceImpl.java does is Featch data from Employee.Java [this is class used to store data in datastore JPA] So now my problem is.. as long as I send data in the form of String or StringArray to client/Example.java am fine, but now I tried to send ListEmployee to client/Example.java Doing so throws me an error as below.. Validating newly compiled units [ERROR] Errors in 'file:/C:/XXX/XXX/src/xxx/client/GreetingServiceAsync.java' [ERROR] Line 18: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/Example.java' [ERROR] Line 325: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? [ERROR] Errors in 'file:/C:/XXX/XXX/src/client/GreetingService.java' [ERROR] Line 19: No source code is available for type xxx.server.Employee; did you forget to inherit a required module? Finding entry point classes [ERROR] Unable to find type 'xxx.client.Example' [ERROR] Hint: Previous compiler errors may have made this type unavailable [ERROR] Hint: Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly -- -Thanks -Srikanth.G -Hyderabad -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this
[gwt-contrib] ImageResource to html
Hi, Is there an officially supported way to create a IMG tag as HTML text from an ImageResource ? Right now the only solution that I see is to create an Image( ImageResource ) and do a toString() on it. Many widgets from GWT support the user of setHTML, and in many cases I need this to put an image in those locations, but there is no official way of doing this as far as I know. Alternatively I could use the ClippedImageImpl class, but since this is in a impl package I can not really count on it not to change. Any solution I found always depend on some undocumented features of GWT ... there must be an official way in doing this that works on all browsers. David -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: ImageResource to html
On 13 août, 10:14, stuckagain david.no...@gmail.com wrote: Hi, Is there an officially supported way to create a IMG tag as HTML text from an ImageResource ? AbstractImagePrototype.create(myImageResource).getHTML() I don't know if it is officially supported, but it's using public, documented API in the way it is supposed to be used (contrary to your use of toString, which is for debugging purpose only) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] ImageResource to html
Hi David What do you mean by IMG tag, do you mean IMG with a src=/somefile on the server ? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] ImageResource to html
Miroslav, Thomas already gave me a workable solution. I want to use ImageResources in widgets that expose a setHTML(...) method to put something more complex in there (for example in the ComplexButton/ToggleButton). They do not support widgets in thos locations so I can not put an Image widget. I do not want to loose the advantage of an ImageResource. David On Fri, Aug 13, 2010 at 2:23 PM, Miroslav Pokorny miroslav.poko...@gmail.com wrote: Hi David What do you mean by IMG tag, do you mean IMG with a src=/somefile on the server ? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: ImageResource to html
On Fri, Aug 13, 2010 at 6:31 AM, Thomas Broyer t.bro...@gmail.com wrote: AbstractImagePrototype.create(myImageResource).getHTML() Yes. There is no getHTML() method on the ImageResource interface because the choice of how to render the data is ultimately part of the UI toolkit. -- Bob Vawter Google Web Toolkit Team -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: HasEnabled (issue757801)
@johan - Can you sign a Contributor License Agreement so we can include your code: http://code.google.com/legal/individual-cla-v1.0.html If you scroll to the bottom, you can sign it electronically. - John http://gwt-code-reviews.appspot.com/757801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add mouse position information to ClickEvent and DoubleClickEvent. Manually verified that this (issue763801)
On 2010/08/12 22:32:53, fredsa wrote: LGTM. http://gwt-code-reviews.appspot.com/763801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: HasEnabled (issue757801)
Done! On Fri, Aug 13, 2010 at 4:00 PM, jlaba...@google.com wrote: @johan - Can you sign a Contributor License Agreement so we can include your code: http://code.google.com/legal/individual-cla-v1.0.html If you scroll to the bottom, you can sign it electronically. - John http://gwt-code-reviews.appspot.com/757801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Removed use of a global table (typeIdArray) for testing castability between types. This informa... (issue750801)
http://gwt-code-reviews.appspot.com/750801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Removed use of a global table (typeIdArray) for testing castability between types. This informa... (issue750801)
Ok, I've addressed Bob's minor nits there (thanks Bob for catching)... I shall proceed to submit this puppy. Thanks for the great review guys Jason http://gwt-code-reviews.appspot.com/750801/diff/10002/45012 File user/src/com/google/gwt/rpc/linker/CastableTypeDataImpl.java (right): http://gwt-code-reviews.appspot.com/750801/diff/10002/45012#newcode24 user/src/com/google/gwt/rpc/linker/CastableTypeDataImpl.java:24: * On 2010/08/13 13:35:00, bobv wrote: Add a period and delete the blank line. Done. http://gwt-code-reviews.appspot.com/750801/diff/10002/45012#newcode28 user/src/com/google/gwt/rpc/linker/CastableTypeDataImpl.java:28: final CastableTypeMap castableTypeMap; On 2010/08/13 13:35:00, bobv wrote: Just make this private final String js = castatableTypeMay.toJs(). That way, the CTM doesn't become part of the CTDI's serialization stream. Done. http://gwt-code-reviews.appspot.com/750801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix the equals method for RecordKey. Forgot to make this change in the just (issue766801)
http://gwt-code-reviews.appspot.com/766801/diff/1/4 File user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java (right): http://gwt-code-reviews.appspot.com/766801/diff/1/4#newcode26 user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java:26: * Suite of UiBinder tests that require the JRE. UiBinder? I think you propagated my copy/paste error http://gwt-code-reviews.appspot.com/766801/diff/1/6 File user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java (right): http://gwt-code-reviews.appspot.com/766801/diff/1/6#newcode25 user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java:25: public void testEquals() { You're not testing inequality of differing schema http://gwt-code-reviews.appspot.com/766801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Removed use of a global table (typeIdArray) for testing castability between types. This informa... (issue750801)
Appears I spoke too soon, getting a submit-queue test failure On Fri, Aug 13, 2010 at 12:06 PM, jbrosenb...@google.com wrote: Ok, I've addressed Bob's minor nits there (thanks Bob for catching)... I shall proceed to submit this puppy. Thanks for the great review guys Jason http://gwt-code-reviews.appspot.com/750801/diff/10002/45012 File user/src/com/google/gwt/rpc/linker/CastableTypeDataImpl.java (right): http://gwt-code-reviews.appspot.com/750801/diff/10002/45012#newcode24 user/src/com/google/gwt/rpc/linker/CastableTypeDataImpl.java:24: * On 2010/08/13 13:35:00, bobv wrote: Add a period and delete the blank line. Done. http://gwt-code-reviews.appspot.com/750801/diff/10002/45012#newcode28 user/src/com/google/gwt/rpc/linker/CastableTypeDataImpl.java:28: final CastableTypeMap castableTypeMap; On 2010/08/13 13:35:00, bobv wrote: Just make this private final String js = castatableTypeMay.toJs(). That way, the CTM doesn't become part of the CTDI's serialization stream. Done. http://gwt-code-reviews.appspot.com/750801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8536 committed - Public: Fix gwt compile errors in javax.validation....
Revision: 8536 Author: ncha...@google.com Date: Fri Aug 13 06:36:43 2010 Log: Public: Fix gwt compile errors in javax.validation. I changed InputStreams to Strings and Local to GwtLocale. For the Validation class, I completely gutted it, bootstraping validation in GWT will not use this class. Review at http://gwt-code-reviews.appspot.com/764801 Review by: rj...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=8536 Added: /trunk/user/src/javax/validation/super/javax/validation/Configuration.java /trunk/user/src/javax/validation/super/javax/validation/MessageInterpolator.java /trunk/user/src/javax/validation/super/javax/validation/Validation.java /trunk/user/src/javax/validation/super/javax/validation/spi /trunk/user/src/javax/validation/super/javax/validation/spi/ConfigurationState.java Modified: /trunk/user/build.xml === --- /dev/null +++ /trunk/user/src/javax/validation/super/javax/validation/Configuration.java Fri Aug 13 06:36:43 2010 @@ -0,0 +1,203 @@ +// $Id: Configuration.java 17620 2009-10-04 19:19:28Z hardy.ferentschik $ +/* +* JBoss, Home of Professional Open Source +* Copyright 2009, Red Hat, Inc. and/or its affiliates, and individual contributors +* by the @authors tag. See the copyright.txt in the distribution for a +* full listing of individual contributors. +* +* Licensed under the Apache License, Version 2.0 (the License); +* you may not use this file except in compliance with the License. +* You may obtain a copy of the License at +* http://www.apache.org/licenses/LICENSE-2.0 +* Unless required by applicable law or agreed to in writing, software +* distributed under the License is distributed on an AS IS BASIS, +* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +* See the License for the specific language governing permissions and +* limitations under the License. +*/ +// Changed by Google +package javax.validation; + + +/** + * Receives configuration information, selects the appropriate + * Bean Validation provider and builds the appropriate codeValidatorFactory/code. + * p/ + * Usage: + * pre + * {...@code + * Configuration? configuration = //provided by one of the Validation bootstrap methods + * ValidatorFactory = configuration + * .messageInterpolator( new CustomMessageInterpolator() ) + * .buildValidatorFactory();} + * /pre + * p/ + * By default, the configuration information is retrieved from + * iMETA-INF/validation.xml/i. + * It is possible to override the configuration retrieved from the XML file + * by using one or more of the codeConfiguration/code methods. + * p/ + * The {...@link ValidationProviderResolver} is specified at configuration time + * (see {...@link javax.validation.spi.ValidationProvider}). + * If none is explicitly requested, the default codeValidationProviderResolver/code is used. + * p/ + * The provider is selected in the following way: + * ul + * liif a specific provider is requested programmatically using + * codeValidation.byProvider(Class)/code, find the first provider implementing + * the provider class requested and use it/li + * liif a specific provider is requested in iMETA-INF/validation.xml/i, + * find the first provider implementing the provider class requested and use it/li + * liotherwise, use the first provider returned by the codeValidationProviderResolvercode/li + * /ul + * p/ + * Implementations are not meant to be thread-safe. + * + * @author Emmanuel Bernard + */ +public interface ConfigurationT extends ConfigurationT { + + /** + * Ignore data from the iMETA-INF/validation.xml/i file if this + * method is called. + * This method is typically useful for containers that parse + * iMETA-INF/validation.xml/i themselves and pass the information + * via the codeConfiguration/code methods. + * + * @return codethis/code following the chaining method pattern. + */ + T ignoreXmlConfiguration(); + + /** + * Defines the message interpolator used. Has priority over the configuration + * based message interpolator. + * If codenull/code is passed, the default message interpolator is used + * (defined in XML or the specification default). + * + * @param interpolator message interpolator implementation. + * + * @return codethis/code following the chaining method pattern. + */ + T messageInterpolator(MessageInterpolator interpolator); + + /** + * Defines the traversable resolver used. Has priority over the configuration + * based traversable resolver. + * If codenull/code is passed, the default traversable resolver is used + * (defined in XML or the specification default). + * + * @param resolver traversable resolver implementation. + * + * @return codethis/code following the chaining method pattern. + */ + T traversableResolver(TraversableResolver resolver); + + /** + * Defines the constraint validator factory. Has priority over the
[gwt-contrib] Incorporated Ray's feedback on http://code.google.com/p/google-web-toolkit/source/detail?r=8533 (issue768801)
Reviewers: Ray Ryan, Description: Incorporated Ray's feedback on http://code.google.com/p/google-web-toolkit/source/detail?r=8533 Fixed the comment in RequestFactoryJreSuite and added a test to RecordKeyTest. Patch by: amitmanjhi Review by: rjrjr Please review this at http://gwt-code-reviews.appspot.com/768801/show Affected files: M user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java M user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java Index: user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java === --- user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java (revision 8536) +++ user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java (working copy) @@ -23,7 +23,7 @@ import junit.framework.TestSuite; /** - * Suite of UiBinder tests that require the JRE. + * Suite of RequestFactory tests that require the JRE. */ public class RequestFactoryJreSuite { public static Test suite() { Index: user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java === --- user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java (revision 8536) +++ user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java (working copy) @@ -25,20 +25,25 @@ public void testEquals() { RecordKey newKey1 = new RecordKey(1L, SimpleFooRecordImpl.SCHEMA, RequestFactoryJsonImpl.IS_FUTURE); + +RecordKey anotherNewKey1 = new RecordKey(newKey1.id, newKey1.schema, +newKey1.isFuture); +assertTrue(newKey1.equals(anotherNewKey1)); +assertTrue(newKey1.hashCode() == anotherNewKey1.hashCode()); + RecordKey newKey2 = new RecordKey(newKey1.id + 1, newKey1.schema, newKey1.isFuture); +assertFalse(newKey1.equals(newKey2)); +assertFalse(newKey1.hashCode() == newKey2.hashCode()); + +RecordKey newKey1NoSchema = new RecordKey(newKey1.id, null, +newKey1.isFuture); +assertFalse(newKey1.equals(newKey1NoSchema)); +assertFalse(newKey1.hashCode() == newKey1NoSchema.hashCode()); + RecordKey oldKey1 = new RecordKey(newKey1.id, newKey1.schema, !newKey1.isFuture); -RecordKey anotherNewKey1 = new RecordKey(newKey1.id, newKey1.schema, -newKey1.isFuture); - -assertTrue(newKey1.equals(anotherNewKey1)); -assertTrue(newKey1.hashCode() == anotherNewKey1.hashCode()); - -assertFalse(newKey1.equals(newKey2)); -assertFalse(newKey1.hashCode() == newKey2.hashCode()); - assertFalse(newKey1.equals(oldKey1)); -assertFalse(newKey1.hashCode() == newKey2.hashCode()); +assertFalse(newKey1.hashCode() == oldKey1.hashCode()); } } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Hard coded History integration for the Scaffold app. This is step zero (issue717801)
http://gwt-code-reviews.appspot.com/717801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)
Okay, Rayc, this is ready for review. On 2010/08/13 17:43:18, Ray Ryan wrote: http://gwt-code-reviews.appspot.com/717801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8537 committed - Override annotation and formatting...
Revision: 8537 Author: amitman...@google.com Date: Fri Aug 13 07:48:52 2010 Log: Override annotation and formatting Patch by: amitmanjhi Review by: rjrjr (tbr) http://code.google.com/p/google-web-toolkit/source/detail?r=8537 Modified: /trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleFooRecordImpl.java /trunk/user/test/com/google/gwt/requestfactory/server/JsonRequestProcessorTest.java /trunk/user/test/com/google/gwt/requestfactory/server/ReflectionBasedOperationRegistryTest.java /trunk/user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java /trunk/user/test/com/google/gwt/valuestore/shared/SimpleFooRecord.java === --- /trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleFooRecordImpl.java Thu Aug 12 09:59:46 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleFooRecordImpl.java Fri Aug 13 07:48:52 2010 @@ -51,6 +51,7 @@ allProperties = Collections.unmodifiableSet(set); } +@Override public SetProperty? allProperties() { return allProperties; } @@ -67,6 +68,7 @@ return null; } +@Override public Class? extends Record getToken() { return SimpleFooRecord.class; // special field } === --- /trunk/user/test/com/google/gwt/requestfactory/server/JsonRequestProcessorTest.java Thu Aug 5 15:15:34 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/server/JsonRequestProcessorTest.java Fri Aug 13 07:48:52 2010 @@ -42,6 +42,7 @@ private JsonRequestProcessor requestProcessor;; + @Override public void setUp() { requestProcessor = new JsonRequestProcessor(); requestProcessor.setOperationRegistry(new ReflectionBasedOperationRegistry( @@ -138,7 +139,7 @@ assertEquals(9L, (long) fooResult.getLongField()); assertEquals(com.google.gwt.valuestore.shared.SimpleEnum.BAR, fooResult.getEnumField()); - assertEquals(false, (boolean)fooResult.getBoolField()); + assertEquals(false, (boolean) fooResult.getBoolField()); } catch (Exception e) { fail(e.toString()); } === --- /trunk/user/test/com/google/gwt/requestfactory/server/ReflectionBasedOperationRegistryTest.java Fri Jul 30 17:29:09 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/server/ReflectionBasedOperationRegistryTest.java Fri Aug 13 07:48:52 2010 @@ -28,6 +28,7 @@ private ReflectionBasedOperationRegistry registry; + @Override public void setUp() { registry = new ReflectionBasedOperationRegistry( new DefaultSecurityProvider()); === --- /trunk/user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java Mon Aug 2 10:03:54 2010 +++ /trunk/user/test/com/google/gwt/valuestore/client/RequestFactoryTest.java Fri Aug 13 07:48:52 2010 @@ -29,6 +29,7 @@ */ public class RequestFactoryTest extends GWTTestCase { + @Override public String getModuleName() { return com.google.gwt.valuestore.ValueStoreSuite; } === --- /trunk/user/test/com/google/gwt/valuestore/shared/SimpleFooRecord.java Wed Aug 4 22:08:44 2010 +++ /trunk/user/test/com/google/gwt/valuestore/shared/SimpleFooRecord.java Fri Aug 13 07:48:52 2010 @@ -39,7 +39,6 @@ new EnumPropertycom.google.gwt.valuestore.shared.SimpleEnum(enumField, com.google.gwt.valuestore.shared.SimpleEnum.class, SimpleEnum.values()); - Boolean getBoolField(); Date getCreated(); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Public: Fix gwt compile errors in javax.validation. (issue764801)
LGTM On Thu, Aug 12, 2010 at 4:17 PM, ncha...@google.com wrote: Reviewers: Ray Ryan, Description: Public: Fix gwt compile errors in javax.validation. I changed InputStreams to Strings and Local to GwtLocale. For the Validation class, I completely gutted it, bootstraping validation in GWT will not use this class. Please review this at http://gwt-code-reviews.appspot.com/764801/show Affected files: M user/build.xml A user/src/javax/validation/super/javax/validation/Configuration.java A user/src/javax/validation/super/javax/validation/MessageInterpolator.java A user/src/javax/validation/super/javax/validation/Validation.java A user/src/javax/validation/super/javax/validation/spi/ConfigurationState.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Incorporated Ray's feedback on http://code.google.com/p/google-web-toolkit/source/detail?r=8533 (issue768801)
http://gwt-code-reviews.appspot.com/768801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Incorporated Ray's feedback on http://code.google.com/p/google-web-toolkit/source/detail?r=8533 (issue768801)
LGTM http://gwt-code-reviews.appspot.com/768801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r8538 committed - Removes vestiges of TypeOracle support for local types....
Revision: 8538 Author: gwt.mirror...@gmail.com Date: Fri Aug 13 13:25:52 2010 Log: Removes vestiges of TypeOracle support for local types. TypeOracle hasn't supported local types for a while, this change removes traces of it. http://gwt-code-reviews.appspot.com/761801/show Review by: jat http://code.google.com/p/google-web-toolkit/source/detail?r=8538 Modified: /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JAnnotationType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JArrayType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JClassType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JDelegatingClassType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JEnumType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JGenericType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JRealClassType.java /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/TypeOracleBuilder.java /trunk/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java /trunk/dev/core/test/com/google/gwt/core/ext/typeinfo/JDelegatingClassTypeTestBase.java /trunk/dev/core/test/com/google/gwt/core/ext/typeinfo/JTypeParameterTest.java /trunk/dev/core/test/com/google/gwt/dev/javac/asm/ResolveGenericsTest.java /trunk/user/src/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilder.java /trunk/user/test/com/google/gwt/user/rebind/rpc/SerializableTypeOracleBuilderTest.java === --- /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JAnnotationType.java Thu Aug 12 11:58:29 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JAnnotationType.java Fri Aug 13 13:25:52 2010 @@ -24,8 +24,7 @@ JAnnotationType(TypeOracle oracle, JPackage declaringPackage, String enclosingTypeName, String name) { -super(oracle, declaringPackage, enclosingTypeName, false, name, -true); +super(oracle, declaringPackage, enclosingTypeName, name, true); } @Override === --- /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JArrayType.java Thu Aug 12 11:58:29 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JArrayType.java Fri Aug 13 10:15:10 2010 @@ -273,11 +273,6 @@ // intentional null return null; } - - @Override - public boolean isLocalType() { -return false; - } @Override public boolean isMemberType() { === --- /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JClassType.java Thu Aug 12 11:58:29 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JClassType.java Fri Aug 13 10:15:10 2010 @@ -591,12 +591,12 @@ public abstract JClassType isInterface(); /** - * Tests if this type is a local type (within a method). - * - * @return true if this type is a local type, whether it is named or - * anonymous. + * @deprecated local types are not modeled */ - public abstract boolean isLocalType(); + @Deprecated + public final boolean isLocalType() { +return false; + } /** * Tests if this type is contained within another type. === --- /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JDelegatingClassType.java Wed Apr 1 13:03:34 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JDelegatingClassType.java Fri Aug 13 10:15:10 2010 @@ -240,11 +240,6 @@ return null; } } - - @Override - public boolean isLocalType() { -return baseType.isLocalType(); - } @Override public boolean isMemberType() { === --- /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JEnumType.java Thu Aug 12 11:58:29 2010 +++ /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JEnumType.java Fri Aug 13 10:15:10 2010 @@ -25,9 +25,8 @@ private JEnumConstant[] lazyEnumConstants; JEnumType(TypeOracle oracle, JPackage declaringPackage, - String enclosingTypeName, boolean isLocalType, String name) { -super(oracle, declaringPackage, enclosingTypeName, isLocalType, name, -false); + String enclosingTypeName, String name) { +super(oracle, declaringPackage, enclosingTypeName, name, false); } /** === --- /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JGenericType.java Mon Nov 9 20:50:50 2009 +++ /trunk/dev/core/src/com/google/gwt/core/ext/typeinfo/JGenericType.java Fri Aug 13 10:15:10 2010 @@ -30,10 +30,9 @@ private ListJTypeParameter typeParams = Lists.create(); public JGenericType(TypeOracle oracle, JPackage declaringPackage, - String enclosingTypeName, boolean isLocalType, String name, - boolean isInterface, JTypeParameter[] jtypeParameters) { -super(oracle, declaringPackage, enclosingTypeName, isLocalType, name, -isInterface); + String enclosingTypeName, String name, boolean isInterface, + JTypeParameter[]
[gwt-contrib] [google-web-toolkit] r8539 committed - Incorporated Ray's feedback on http://code.google.com/p/google-web-too...
Revision: 8539 Author: amitman...@google.com Date: Fri Aug 13 10:45:41 2010 Log: Incorporated Ray's feedback on http://code.google.com/p/google-web-toolkit/source/detail?r=8533 Fixed the comment in RequestFactoryJreSuite and added a test to RecordKeyTest. Patch by: amitmanjhi Review by: rjrjr Review at http://gwt-code-reviews.appspot.com/768801 http://code.google.com/p/google-web-toolkit/source/detail?r=8539 Added: /trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleBazRecordImpl.java Modified: /trunk/user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java /trunk/user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java === --- /dev/null +++ /trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleBazRecordImpl.java Fri Aug 13 10:45:41 2010 @@ -0,0 +1,72 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.requestfactory.client.impl; + +import com.google.gwt.valuestore.shared.Property; +import com.google.gwt.valuestore.shared.Record; +import com.google.gwt.valuestore.shared.RecordChangedEvent; +import com.google.gwt.valuestore.shared.WriteOperation; + +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + +/** + * Just a dummy class for testing purposes. + */ +public class SimpleBazRecordImpl extends RecordImpl { + + /** + * The Schema class. + */ + public static class MySchema extends RecordSchemaSimpleBazRecordImpl { +private final SetProperty? allProperties; +{ + SetProperty? set = new HashSetProperty?(); + set.addAll(super.allProperties()); + allProperties = Collections.unmodifiableSet(set); +} + +@Override +public SetProperty? allProperties() { + return allProperties; +} + +@Override +public SimpleBazRecordImpl create(RecordJsoImpl jso, boolean isFuture) { + return new SimpleBazRecordImpl(jso, isFuture); +} + +@Override +public RecordChangedEvent?, ? createChangeEvent(Record record, +WriteOperation writeOperation) { + // ignore + return null; +} + +@Override +public Class? extends Record getToken() { + // ignore + return null; +} + } + + public static final RecordSchemaSimpleBazRecordImpl SCHEMA = new MySchema(); + + private SimpleBazRecordImpl(RecordJsoImpl jso, boolean isFuture) { +super(jso, isFuture); + } +} === --- /trunk/user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java Thu Aug 12 17:13:04 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/RequestFactoryJreSuite.java Fri Aug 13 10:45:41 2010 @@ -23,7 +23,7 @@ import junit.framework.TestSuite; /** - * Suite of UiBinder tests that require the JRE. + * Suite of RequestFactory tests that require the JRE. */ public class RequestFactoryJreSuite { public static Test suite() { === --- /trunk/user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java Thu Aug 12 17:13:04 2010 +++ /trunk/user/test/com/google/gwt/requestfactory/client/impl/RecordKeyTest.java Fri Aug 13 10:45:41 2010 @@ -25,20 +25,25 @@ public void testEquals() { RecordKey newKey1 = new RecordKey(1L, SimpleFooRecordImpl.SCHEMA, RequestFactoryJsonImpl.IS_FUTURE); -RecordKey newKey2 = new RecordKey(newKey1.id + 1, newKey1.schema, -newKey1.isFuture); -RecordKey oldKey1 = new RecordKey(newKey1.id, newKey1.schema, -!newKey1.isFuture); + RecordKey anotherNewKey1 = new RecordKey(newKey1.id, newKey1.schema, newKey1.isFuture); - assertTrue(newKey1.equals(anotherNewKey1)); assertTrue(newKey1.hashCode() == anotherNewKey1.hashCode()); - + +RecordKey newKey2 = new RecordKey(newKey1.id + 1, newKey1.schema, +newKey1.isFuture); assertFalse(newKey1.equals(newKey2)); assertFalse(newKey1.hashCode() == newKey2.hashCode()); - + +RecordKey newKey1NoSchema = new RecordKey(newKey1.id, +SimpleBazRecordImpl.SCHEMA, newKey1.isFuture); +assertFalse(newKey1.equals(newKey1NoSchema)); +assertFalse(newKey1.hashCode() == newKey1NoSchema.hashCode()); + +RecordKey oldKey1 = new RecordKey(newKey1.id, newKey1.schema, +!newKey1.isFuture); assertFalse(newKey1.equals(oldKey1)); -assertFalse(newKey1.hashCode() == newKey2.hashCode()); +
[gwt-contrib] Re: History integration for the RequestFactory apps. (issue717801)
Nothing has changed in the ui area since John last looked, so we're good there. On Fri, Aug 13, 2010 at 2:25 PM, cromwell...@google.com wrote: On 2010/08/13 17:50:40, Ray Ryan wrote: Okay, Rayc, this is ready for review. On 2010/08/13 17:43:18, Ray Ryan wrote: LGTM, but John might want to look at the UI specific changes in terms of design/pattern or style, since I'm not as familiar with that part, so I only looked for egregious stuff. http://gwt-code-reviews.appspot.com/717801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors