Re: hosted mode stucks, debugger does not work...
Check which version of the JDK you have. There's a bug in 1.6.0_14 that prevents debugger breakpoints from working. If you are using that version, then you should downgrade to 1.6.0_13 Jaimon wrote: hi all, i am new to the GWT world, i have started to do the tutorial (StockWatcher) and everything was working well and pretty easy till i got to the point of where: 1) my hosted mode sometimes starts but show an empty page, it is stuck on connecting to 127.0.0.1 2) the debugger does not work any more, meaning i am putting a break point in the code but the hosted mode ignores it. any help, and good tutorial on how to work with php whould be really appreciated me :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
Are your responses also in the form of events, where the traditional response value is the payload of a new event object? For either server error or validation error, are you sending back a different event, or setting a flag inside the expected return event? Yes currently all inter-component communications is via events on the client side - the payload doesn't look like events on the server. I did try it but dropped the idea of a server side event bus. Events are not reused so different events come back from the server. It's experimental - it works but I don't have enough experience yet to claim it's a good or better idea. I use 'modelettes' for want of a better word which are litle bits of the core application model that travel twixt server and client. With response time latency and keeping bandwidth at reasonable levels in mind I want to keep what goes to the server in chunks (not like Google Wave that can do character by character). What I think will be the next big thing is a focus on services - encapsulation revisited but for different reasons. This has led me to having 'service providers' on the server as a layer above, and providing core business logic for, the core model objects: Person, Account, ... The service providers have a response = process(request) interface. When the SPs are loaded they announce which requests they would like to process to the server end of the pipe which will call them when the requests come in. Unless you grew your event bus's intelligence, you would also lose batching. Even undo could be tricky. I'm guessing inside your event bus you have something like if eventX.isRPCEvent() { service.takethisEvent(eventx,new callbackEvent{...onsuccess(Event resultEvent){ fireEvent(resultEvent)} }; } Your're right. I'll try and think of a way of addressing this. It may be that I have to step back and find a place for commands a bit. Do you have a separate, server side event bus to do things... See above ...Also do you ever have one event that goes to the server, but two events coming back?... Not yet. I've built in a mechanism for SPs to passively listen to completed processing of requests which could be used to piggy back events but I haven't used it yet (YAGNI?). * I dropped the idea of using HasClickHanders, HasValues, ... in favor I also didn't like those two particular return types since my 3rd party widgets (Smartgwt) don't support those interfaces. And wrapping each 3rd I'm reviewing this at the moment in the light of Thomas B's merciless but very correct post above. I still need to figure out a position on places / history (see posts What pattern would you say you are using now? I am using History and think it's great. I don't have a clear, describable pattern yet Along with someone else in a previous email, I also did not understand the reason behind void startProcessing(); and void stopProcessing(); Not sure --- I'm going to try and post the code to the group next week so you can look for yourself --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
On Jul 23, 3:11 pm, Eduardo Nunes esnu...@gmail.com wrote: Shouldn't the server errors be treated as unchecked exceptions (extends RuntimeException)? Maybe a solution could be three methods, I've found my self coding RE's for just about everything now. I think they are the most undervalued part of the Java language during the development phase. Example try { final File f = new File(Whatever); ...do something with file } catch(final IOException e) { throw new RuntimeException(Something went wrong with the file operation, e); } The big advantages are you don't have to think about dealing with problems whilst you're writing your 'happy day' code, you avoid declaring exceptions which just put's off the inevitable and normally shifts the problem into a place where you're not equipped to deal with it and lastly: often times, especially in a stateless environment, a RE is the right course of action. It also travels from server to client in GAE/GWT which is good. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Fileupload does not work
On 24 juil, 05:46, kongxiaoyang kongxiaoy...@gmail.com wrote: Hello guys, My fileupload function works pretty fine in the GWT default testing environment jetty, but when I compile the project to js files, and deploy it to TOMCAT, it does not work. When I click the Submit button, only the Window.alert() runs, but no file been uploaded. [...] final FormPanel fileForm = new FormPanel(); fileForm.setAction(/csspweb/fileUpload); In HostedMode, your app is loaded as the ROOT webapp; with the above code, this has to be the same when you deploy to your server (ROOT.war). If it isn't the case, use GWT.getHostPageBaseURL() as prefix: fileForm.setAction(GWT.getHostPageBaseURL() + csspweb/ fileUpload); Don't you have a 404 error in your server logs? Have you tried putting a Window.alert(arg0.getResults()) in your onSubmitComplete? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 Architecture
See Ray Ryan's presentation: http://www.youtube.com/watch?v=PDuhR18-EdM and http://dl.google.com/io/2009/pres/Th_0200_GoogleWebToolkitArchitecture-BestPracticesForArchitectingYourGWTApp.pdf for a good starting point --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hint: Previous compiler errors may have made this type unavailable
Read the manual, read the errors, learn English, get a life. On Jul 23, 2:46 pm, BMax massimo.bo...@gmail.com wrote: Hi, I post here my module xml code: module inherits name='com.google.gwt.user.User'/ inherits name='com.gwtext.GwtExt' / entry-point class='org.xlab.semantic.gwtext.client.Sisma'/ stylesheet src=js/ext/resources/css/ext-all.css / script src=js/ext/adapter/ext/ext-base.js / script src=js/ext/ext-all.js / inherits name='com.google.gwt.user.theme.standard.Standard'/ servlet path=/sismaService class=org.xlab.semantic.gwtext.server.SismaServiceImpl/ stylesheet src=Sisma.css/ /module I think that it's good...! Bye, Max On 23 Lug, 13:27, Norman Maurer nor...@apache.org wrote: Hi, like stated in the error message... Do you have am inherits statment for org.xlab.semantic.gwtext.client.Sisma ? Bye, Norman 2009/7/23 BMax massimo.bo...@gmail.com: Hi guys, please help me! I have to finish an important work but now my project is blocked by this error: Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR] Unable to find type 'org.xlab.semantic.gwtext.client.Sisma' [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 I readed other post about this problem but I didn't find a solution! Thanks, Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
File upload trouble form Flex application to GWT server(hosted mode)
Hello guys, I'm developing an application that GWT call Flex using ExternalInterface. To Upload image file to GWT server side(hosted mode) from Flex application, I call Flex function FileReference.upload(). But it doesn't work. Despite the fact that GWT server send Http status 200 in GWT hosted mode log, but ioerror or no event occur in Flex side. (The image file is uploaded fine.) I created a Simple Example that same trouble occur. Below is related files: Flex mxml code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:local=* local:FileUploadController id=controller/ mx:ControlBar horizontalAlign=right mx:Button id=startUpload label=Upload... click=controller.startUpload(); / /mx:ControlBar /mx:Application Flex AS code: package { import flash.events.Event; import flash.events.IOErrorEvent; import flash.net.FileReference; import flash.net.URLRequest; import flash.net.URLRequestMethod; import mx.controls.Alert; import mx.core.IMXMLObject; public class FileUploadController { private static var _fileReference:FileReference = new FileReference (); public function startUpload():void { _fileReference.addEventListener(Event.SELECT, selectHandler); _fileReference.addEventListener(Event.COMPLETE, completeHandler); _fileReference.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler); _fileReference.browse(); } public function selectHandler(event:Event):void { var urlRequest:URLRequest = new URLRequest(); urlRequest.url = http://localhost:8080/SimpleGwt/myservlet;; urlRequest.method = URLRequestMethod.POST; _fileReference.upload(urlRequest); } public function completeHandler(event:Event):void { Alert.show(progressHandler: + event); } public function ioErrorHandler(event:Event):void { Alert.show(ioErrorHandler: + event); } } } GWT servlet code: package simplegwt.server; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class MyServlet extends HttpServlet { @Override protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { // image save code here PrintWriter writer = resp.getWriter(); writer.write(success); writer.close(); } } web.xml code: ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Servlets -- servlet servlet-nameMyServlet/servlet-name servlet-classsimplegwt.server.MyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/SimpleGwt/myservlet/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileSimpleGwt.html/welcome-file /welcome-file-list /web-app Any help will be appreciated Thank you Katigaki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Vertical panel not showing tree component
Ok, I was wrong. It's not about absolute position in a div, but a height with 100% style. If you put a fix height ( 500px example) splitpanel will appear. 2009/7/23 selrak sel...@gmail.com Ok, i have not the final answer, but i had same problem, and was a css style problem. It seems if you put the split planel into a div wiht absolute position, browser do not display it. Same if you put in a div with a parent with absolute position. Any ideas about what could be the problem and his solution? Thanks !! On 22 jun, 20:00, Paul Robinson ukcue...@gmail.com wrote: Have you tried setting the split position on theverticalsplitpanel? mabogie wrote: Your code is fine, it must be something else: http://imgur.com/Ngqnu.png On 22 jun, 18:43, Parvez Shah parvezs...@gmail.com wrote: Hi, My Tree component isnotshowingup inside theVerticalsplit pane any suggestions on what I may be doing wrong. My component are laid out in this manner I have a top level component DockPanel inside dockpaneli have a Horizontal split pane in my horizontal split pane the left component isVerticalsplit pane and in top ofverticalsplit pane I have a tree component Now the issue is that Tree component isnotshowingup, if i keep it anywhere else it works fine.. The code is also attached for review public void onModuleLoad() { DockPanel mainPanel = new DockPanel(); mainPanel.setBorderWidth(1); mainPanel.setSize(100%, 100%); mainPanel.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE); mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER); Widget header = new Label(Header); mainPanel.add(header, DockPanel.NORTH); mainPanel.setCellHeight(header, 30px); Widget footer = new Label(Footer); mainPanel.add(footer, DockPanel.SOUTH); mainPanel.setCellHeight(footer, 25px); // Create a tree with a few items in it. TreeItem root = new TreeItem(root); root.addItem(item0); root.addItem(item1); root.addItem(item2); Tree t = new Tree(); t.addItem(root); VerticalSplitPanel vSplit = new VerticalSplitPanel(); // If i don't set this value thepanelwillnotshow up properly vSplit.setSize(100%, 100%); //This IS THE PROBLEM COMPONENT vSplit.setTopWidget(t); vSplit.setBottomWidget(new HTML(Bottom)); HorizontalSplitPanel hSplit = new HorizontalSplitPanel(); hSplit.setSplitPosition(50%); hSplit.setLeftWidget(vSplit); hSplit.setRightWidget(new HTML(right)); mainPanel.add(hSplit, DockPanel.CENTER); RootPanel.get().add(mainPanel); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
help on a servlet issue
hi, sorry, I am a newbie on this. I used eclipse to create the project, and I added a new module called setup (so I have two modules) then I tried to add a new servlet for the setup module, but I got the following error message, if I add a servlet for the original module, it will be fine. GWT document does not seem to have much document to discuss multiple modules. Here is the web.xml that I used for new servlet for the new module servlet servlet-nametestServlet/servlet-name servlet-classcom.simon.chutian.store1.server.TestServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameadduserServlet/servlet-name url-pattern/setup/adduser/url-pattern /servlet-mapping my new module is renamed to setup, I directly added the new module in the existing project. I think there must be something wrong with the path settings or maybe the servlet mapping, Can anyone help? Thanks Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /setup/adduser java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance (Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:306) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Standalone GWT Scrollbar Widget
Does anyone know where a standalone GWT Scrollbar widget might be found? I'm talking about a scrollbar control that is not attached to a window, that has a settable range of possible integer values through which it scrolls, and to which listeners can be attached to observe changes that the user creates in the presently selected integer within the given range, and for which that same selected integer is also settable from code. It seems surprising to me that such a widget does not already exist somewhere, and I'd hate to have to reinvent it, but I can't find one anywhere. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Problem with GWT Hosted Mode
when i am trying to run the application in the Hosted Mode, I get the below exception: [ERROR] Uncaught exception escaped com.google.gwt.core.client.JavaScriptException: (TypeError): Object doesn't support this property or method number: -2146827850 description: Object doesn't support this property or method at com.google.gwt.user.client.impl.DOMImplStandard.initEventSystem (Native Method) at com.google.gwt.user.client.impl.DOMImplMozilla.initEventSystem (DOMImplMozilla.java:39) at com.google.gwt.user.client.impl.DOMImpl.maybeInitializeEventSystem (DOMImpl.java:111) at com.google.gwt.user.client.impl.DOMImplStandard.sinkEvents (DOMImplStandard.java:132) at com.google.gwt.user.client.impl.DOMImplMozilla.sinkEvents (DOMImplMozilla.java:27) at com.google.gwt.user.client.DOM.sinkEvents(DOM.java:1221) at com.google.gwt.user.client.ui.UIObject.unsinkEvents(UIObject.java: 741) Can you tell me whats the problem with the MenuItem unsinkEvents(Event.MOUSEEVENTS | Event.ONCLICK | Event.FOCUSEVENTS | Event.KEYEVENTS); method --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Not able to use 2 different sessions of different users
Hi, I have a problem with GWT and Firefox 3 and IE 8 browsers. I have an application developed in GWT. 1. I open Firefox / IE browser and login with valid credentials and it works fine. 2. I keep this session open and open other new Firefox / IE Browser window and i login with different valid credentials. Now in the browser opened in #1 takes the credentials of the #2 browser. Note 1: I donot see this issue if I run my application with 2 different ports in hosted mode from Eclipse. Note 2: This issues is not Observer in IE 6. can you please let me know how to solve this issue or do we have any workaround for this issue. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT page reload according to login
maybe this: com.google.gwt.user.client.Window.Location.reload() On Jul 24, 12:24 am, Bhayat baki.hayat.c...@gmail.com wrote: Hi How can i reload my page after one button is clicked like enter with new username --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hint: Previous compiler errors may have made this type unavailable
Thanks mirceade! Now, after your post, I'm really so happy! Fortunately you exist!!! However, there is someone (smarter than mirceade) who can help me? Bye, Max On 24 Lug, 10:20, mirceade mirce...@gmail.com wrote: Read the manual, read the errors, learn English, get a life. On Jul 23, 2:46 pm, BMax massimo.bo...@gmail.com wrote: Hi, I post here my module xml code: module inherits name='com.google.gwt.user.User'/ inherits name='com.gwtext.GwtExt' / entry-point class='org.xlab.semantic.gwtext.client.Sisma'/ stylesheet src=js/ext/resources/css/ext-all.css / script src=js/ext/adapter/ext/ext-base.js / script src=js/ext/ext-all.js / inherits name='com.google.gwt.user.theme.standard.Standard'/ servlet path=/sismaService class=org.xlab.semantic.gwtext.server.SismaServiceImpl/ stylesheet src=Sisma.css/ /module I think that it's good...! Bye, Max On 23 Lug, 13:27, Norman Maurer nor...@apache.org wrote: Hi, like stated in the error message... Do you have am inherits statment for org.xlab.semantic.gwtext.client.Sisma ? Bye, Norman 2009/7/23 BMax massimo.bo...@gmail.com: Hi guys, please help me! I have to finish an important work but now my project is blocked by this error: Checking rule generate-with class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/ [ERROR] Unable to find type 'org.xlab.semantic.gwtext.client.Sisma' [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 I readed other post about this problem but I didn't find a solution! Thanks, Max --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT code not running using Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1
Hi all I am building my application using GWT 1.6. Today I moved on Firefox/ 3.5.1. and to my wonder, my aplication is not working with this version. I am getting following error. Any suggestion in this regards will be highly appreciated as I am totally blocked. (NS_ERROR_DOM_NOT_SUPPORTED_ERR): Operation is not supported code: 9 INDEX_SIZE_ERR: 1 DOMSTRING_SIZE_ERR: 2 HIERARCHY_REQUEST_ERR: 3 WRONG_DOCUMENT_ERR: 4 INVALID_CHARACTER_ERR: 5 NO_DATA_ALLOWED_ERR: 6 NO_MODIFICATION_ALLOWED_ERR: 7 NOT_FOUND_ERR: 8 NOT_SUPPORTED_ERR: 9 INUSE_ATTRIBUTE_ERR: 10 INVALID_STATE_ERR: 11 SYNTAX_ERR: 12 INVALID_MODIFICATION_ERR: 13 NAMESPACE_ERR: 14 INVALID_ACCESS_ERR: 15 VALIDATION_ERR: 16 TYPE_MISMATCH_ERR: 17 result: 2152923145 filename: http://localhost:/DAKHOME/5D297221CBFAB4CC5BFA3FF6ECBA57AC.cache.html lineNumber: 64180 columnNumber: 0 inner: null data: null Thanks and regards Rick --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT + Apache Commons + Jetty
my web app was deployd on jetty 6.1.19 but when i try to upload a file i get this message Can't read input file! from my web app. The logs say that the servlet works fine. another thing is that the web app works fine in the google web toolkit hosted mode, as i press run from eclipse. any ideas? why it cant find the file. the file is readable --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problems with hosted mode
Hey Pavel, Can you post the contents of your web.xml file, and also the contents of your JSP page? Also, where is your JSP page located? Thanks, Rajeev On Thu, Jul 23, 2009 at 1:08 PM, Pavel Byles pavelby...@gmail.com wrote: I am using a JSP page as my startup page for my GWt/GAE project and hosted mode used to work just fine. Yesterday I started Eclipse and suddenly hosted mode doesn't work anymore. I only displays the html in the JSP page but doesn't run the linked myproject.nocache.js file and I get no errors. When I do Run/Compile everything works just fine in Firefox at url http://localhost:8080/ Any ideas? I'm using GWT SDK 1.7.0 and GAE SDK 1.2.2 on Ubuntu/Eclipse 3.4.2 w/ Sun JDK 1.6.0_13 -- -Pavel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: java.lang.UnsupportedClassVersionError: Bad version number in .class file in eclipse-3.4 + mac osx
Also, check your compiler compliance level. Eclipse does not use javac from the JDK you are using; it uses its own compiler, and it will compile for a particular version of the JDK depending on your compiler compliance settings. They can be found under Preferences -- Java -- Compiler. On Thu, Jul 23, 2009 at 10:53 PM, Kamal Chandana Mettananda lka...@gmail.com wrote: Hi Norman, As John said this is due to a incompatible versions. You can have a look at the following for some more explanation. http://lkamal.blogspot.com/2008/04/javalangunsupportedclassversionerror.html HTH, Kamal --- Kamal Mettananda On Thu, Jul 23, 2009 at 10:22 PM, John Ivens john.wagner.iv...@gmail.comwrote: I got this when I mixed classes compiled in one version with another. Beware of server side implementations compiled under one version and hosted in your application server mixed with classes compiled in the other version, possible other libraries someone else made? On Thu, Jul 23, 2009 at 9:47 AM, Norman Maurer nor...@apache.org wrote: Hi all, after starting eclipse today on my mac and trying to start my application in hosted mode I get the following stacktrace. I already checked that the java version is set to 1.5. I'm using gwt-1.7.0. The same project work without any problem on my windows xp box. Any idea ? Here is the stacktrace: [WARN] failed com.google.gwt.dev.shell.jetty.jettylauncher$webappcontextwithrel...@b60063 {/,/Users/norman/Documents/workspace/Hupa/war} java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:356) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload$WebAppClassLoaderExtension.findClass(JettyLauncher.java:334) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:366) at org.mortbay.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:337) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374) at org.apache.hupa.server.guice.ServerModul.configureHandlers(ServerModul.java:62) at net.customware.gwt.dispatch.server.guice.ActionHandlerModule.configure(ActionHandlerModule.java:38) at com.google.inject.AbstractModule.configure(AbstractModule.java:59) at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223) at com.google.inject.spi.Elements.getElements(Elements.java:101) at com.google.inject.InjectorShell$Builder.build(InjectorShell.java:135) at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:102) at com.google.inject.Guice.createInjector(Guice.java:92) at com.google.inject.Guice.createInjector(Guice.java:69) at com.google.inject.Guice.createInjector(Guice.java:59) at org.apache.hupa.server.guice.MyGuiceServletConfig.getInjector(MyGuiceServletConfig.java:37) at com.google.inject.servlet.GuiceServletContextListener.contextInitialized(GuiceServletContextListener.java:43) at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543) at org.mortbay.jetty.servlet.Context.startContext(Context.java:136) at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513) at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
Re: Accent Agnostic SuggestOracle / SuggestBox
Hi Simon, I also need exactly what you are looking for. Have you found a way to do this? Did you re-implement the Oracle? Thanks, Aldo PS. I had several problems with package-protected methods when using SuggestBox too. Google should create more extensible widgets. On Jun 22, 9:35 am, Simon B simon.bott...@gmail.com wrote: Hi Gscholt, Thanks for the your response: I find it strange that it's not an easily extendable class myself, but yes, you'll need to implement an oracle yourself. You can just copy the MultiWordSuggestOracle code and adapt it I guess (guessing, not read the copyright notice actually) The copyright is the standard gwt copyright, the problem is that the MultiWordSuggestOracle uses a PrefixTree object whose class is scoped as friendly for the com.google.gwt.user.client.ui package - which would mean that I have to copy that implementation and the MultiWordSuggestOracle implementation which makes me cringe a little. Thanks anyway for your suggestion. Anybody else got any ideas? Cheers Simon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: help on a servlet issue
Can you post the code for the servlet you're trying to add? Also, when you say that you added a new servlet for the setup module, what exactly do you mean? How are you associating the servlet with your module? On Fri, Jul 24, 2009 at 3:07 AM, Simon xingzhi@gmail.com wrote: hi, sorry, I am a newbie on this. I used eclipse to create the project, and I added a new module called setup (so I have two modules) then I tried to add a new servlet for the setup module, but I got the following error message, if I add a servlet for the original module, it will be fine. GWT document does not seem to have much document to discuss multiple modules. Here is the web.xml that I used for new servlet for the new module servlet servlet-nametestServlet/servlet-name servlet-classcom.simon.chutian.store1.server.TestServiceImpl/ servlet-class /servlet servlet-mapping servlet-nameadduserServlet/servlet-name url-pattern/setup/adduser/url-pattern /servlet-mapping my new module is renamed to setup, I directly added the new module in the existing project. I think there must be something wrong with the path settings or maybe the servlet mapping, Can anyone help? Thanks Jul 24, 2009 6:44:25 AM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: /setup/adduser java.lang.InstantiationException at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance (Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle (ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle (SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle (ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle (DevAppEngineWebAppContext.java:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:306) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 506) at org.mortbay.jetty.HttpConnection$RequestHandler.content (HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: In Hosted mode, GWT Stopped displaying Widgets
I also tried creating running dummy 'HelloWorld' application out side of eclipse, it does not work. Looks like I am unable to run any GWT application on this machine. On Jul 23, 5:05 pm, Raju raju.technol...@gmail.com wrote: Here's what I did: From a fresh eclipse 3.4 installation with ECLIPSE plug-in, I have been working on building an application (using ext-GWT). Everything was working fine for a couple of days, yesterday the applicationstoppedrenderingWidgetsfor some inexplicable reason. Additional observations are as follows. 1) On the same machine, forGWT1.7, even if I create a fresh dummy application, the shell opened and the hosted browser came up, but only the contents of HTML file displayed, no text boxes, no buttons. 2) On same machine, I still have older version ofGWT(1.5), on the same machine. Same behavior as above for my existing applications and for a newly created applications, only rendering HTML, nowidgets. 3) On same machine I tried several times re-installing eclipse/GWT, no avail. Looks like on this machine I can not runGWTapplication. 4) On a different machine, I installed Eclipse + plugin, everything works fine, old applications, new applications etc. 5) I tried clearing cookies as suggested by an earlier post (http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg16364.html), but it did not help. Error message on my console is pasted below (Help sincerely appreciated, Thanks is Advance) The server is running athttp://localhost:1074/ Jul 23, 2009 8:20:22 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Jul 23, 2009 8:20:22 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Help Appreciated, Thanks is Advance Raju --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How would I add a mouseover handler to Grid cells?
Hi I have a Grid object that has lots (~ 100 x 100) of empty cells; I'm using it to represent a matrix of values for scientific visualisation, giving a style to each cell to set its color. I currently have a ClickHandler that lets me know which Grid cell the user clicks on. However, I would also like to handle mouseover events, but I can't figure out how to do this on a cell-by-cell basis. I'd want the handler to report the (row, col) indices of the cell that was clicked. Your help would be appreciated. Chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Reading XML
Hello! This might be the wrong forum for this question but maybe someone knows. I have an xml file that looks something like this: block nameFK_BB_BA/name pages page namedsd/name firstPagetrue/firstPage nextPage class=static pageNamesdsd/pageName /nextPage fields field fieldNr1/fieldNr fieldInstallationIdsdsd/fieldInstallationId typeradio/type possibleValues string1/string string2/string /possibleValues validator class=notEmpty/ /field /fields /page /pages /block Is there any possibility in java to just take out the first level of nodes? In this case I want to take out name and pages only, so that I don´t get all the stuff “under” page like name etc. Is there a way to do this? // Joakim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Standalone GWT Scrollbar Widget
Hi Carl, Sounds like you might want to look at the SliderBar in the GWT Incubator project: http://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar I imagine you could style it to look like a browser's scroll bar if that's what you want. - Isaac On Fri, Jul 24, 2009 at 2:24 AM, Carlconsult...@goalstate.com wrote: Does anyone know where a standalone GWT Scrollbar widget might be found? I'm talking about a scrollbar control that is not attached to a window, that has a settable range of possible integer values through which it scrolls, and to which listeners can be attached to observe changes that the user creates in the presently selected integer within the given range, and for which that same selected integer is also settable from code. It seems surprising to me that such a widget does not already exist somewhere, and I'd hate to have to reinvent it, but I can't find one anywhere. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: In Hosted mode, GWT Stopped displaying Widgets
Hey Raju, It definitely sounds cookie related. What OS and Browser are you running with? Rajeev On Fri, Jul 24, 2009 at 9:04 AM, Raju raju.technol...@gmail.com wrote: I also tried creating running dummy 'HelloWorld' application out side of eclipse, it does not work. Looks like I am unable to run any GWT application on this machine. On Jul 23, 5:05 pm, Raju raju.technol...@gmail.com wrote: Here's what I did: From a fresh eclipse 3.4 installation with ECLIPSE plug-in, I have been working on building an application (using ext-GWT). Everything was working fine for a couple of days, yesterday the applicationstoppedrenderingWidgetsfor some inexplicable reason. Additional observations are as follows. 1) On the same machine, forGWT1.7, even if I create a fresh dummy application, the shell opened and the hosted browser came up, but only the contents of HTML file displayed, no text boxes, no buttons. 2) On same machine, I still have older version ofGWT(1.5), on the same machine. Same behavior as above for my existing applications and for a newly created applications, only rendering HTML, nowidgets. 3) On same machine I tried several times re-installing eclipse/GWT, no avail. Looks like on this machine I can not runGWTapplication. 4) On a different machine, I installed Eclipse + plugin, everything works fine, old applications, new applications etc. 5) I tried clearing cookies as suggested by an earlier post ( http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg16364.html ), but it did not help. Error message on my console is pasted below (Help sincerely appreciated, Thanks is Advance) The server is running athttp://localhost:1074/ Jul 23, 2009 8:20:22 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Jul 23, 2009 8:20:22 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Help Appreciated, Thanks is Advance Raju --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
I use exceptions in this way: - RuntimeException for all those things that shouldn't happen in a normal environment. For example, databases/files problems, requests of objects using wrong ids (something like the user changed the id in the url to a wrong one). And I just shown a default error message. - Exception for all things that can go wrong in a normal environment. For example, the authentication method, a registration user that checks for a unique username, etc. Using this approach I can find bugs fast because I don't hide errors (they will come directly to the log and the user screen) when something goes wrong. my 5c, On Fri, Jul 24, 2009 at 5:04 AM, Kwhitkwhitting...@gmail.com wrote: On Jul 23, 3:11 pm, Eduardo Nunes esnu...@gmail.com wrote: Shouldn't the server errors be treated as unchecked exceptions (extends RuntimeException)? Maybe a solution could be three methods, I've found my self coding RE's for just about everything now. I think they are the most undervalued part of the Java language during the development phase. Example try { final File f = new File(Whatever); ...do something with file } catch(final IOException e) { throw new RuntimeException(Something went wrong with the file operation, e); } The big advantages are you don't have to think about dealing with problems whilst you're writing your 'happy day' code, you avoid declaring exceptions which just put's off the inevitable and normally shifts the problem into a place where you're not equipped to deal with it and lastly: often times, especially in a stateless environment, a RE is the right course of action. It also travels from server to client in GAE/GWT which is good. -- Eduardo S. Nunes http://e-nunes.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Creating composite widgets
Hi I am trying to create an composite widget that would have label and textbox wrapped in a verticalpanel here is my code for this: package com.example.test11.client; import com.google.gwt.dev.asm.Label; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; public class Field extends Composite{ public Field (String header) { VerticalPanel widget = new VerticalPanel(); Label headerText = new Label(header); widget.add(headerText); TextBox t1 = new TextBox(); widget.add(t1); initWidget(widget); } } I am getting the following errors while defining labels. 1) the constructor label(string) is undefined 2)The method add(Widget) in the type VerticalPanel is not applicable for the arguments (Label) can anyone tell me where am i going wrong thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Command Pattern, MVP, EventBus
I call them BusinessException and BusinessUncheckedException BusinessException has the message key and an array of parameters, so I can build pretty error messages in the client side. On Fri, Jul 24, 2009 at 11:11 AM, Eduardo Nunesesnu...@gmail.com wrote: I use exceptions in this way: - RuntimeException for all those things that shouldn't happen in a normal environment. For example, databases/files problems, requests of objects using wrong ids (something like the user changed the id in the url to a wrong one). And I just shown a default error message. - Exception for all things that can go wrong in a normal environment. For example, the authentication method, a registration user that checks for a unique username, etc. Using this approach I can find bugs fast because I don't hide errors (they will come directly to the log and the user screen) when something goes wrong. my 5c, On Fri, Jul 24, 2009 at 5:04 AM, Kwhitkwhitting...@gmail.com wrote: On Jul 23, 3:11 pm, Eduardo Nunes esnu...@gmail.com wrote: Shouldn't the server errors be treated as unchecked exceptions (extends RuntimeException)? Maybe a solution could be three methods, I've found my self coding RE's for just about everything now. I think they are the most undervalued part of the Java language during the development phase. Example try { final File f = new File(Whatever); ...do something with file } catch(final IOException e) { throw new RuntimeException(Something went wrong with the file operation, e); } The big advantages are you don't have to think about dealing with problems whilst you're writing your 'happy day' code, you avoid declaring exceptions which just put's off the inevitable and normally shifts the problem into a place where you're not equipped to deal with it and lastly: often times, especially in a stateless environment, a RE is the right course of action. It also travels from server to client in GAE/GWT which is good. -- Eduardo S. Nunes http://e-nunes.com.br -- Eduardo S. Nunes http://e-nunes.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating composite widgets
You imported com.google.gwt.dev.asm.Label instead of com.google.gwt.user.client.ui.Label Rahul wrote: Hi I am trying to create an composite widget that would have label and textbox wrapped in a verticalpanel here is my code for this: package com.example.test11.client; import com.google.gwt.dev.asm.Label; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.TextBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; public class Field extends Composite{ public Field (String header) { VerticalPanel widget = new VerticalPanel(); Label headerText = new Label(header); widget.add(headerText); TextBox t1 = new TextBox(); widget.add(t1); initWidget(widget); } } I am getting the following errors while defining labels. 1) the constructor label(string) is undefined 2)The method add(Widget) in the type VerticalPanel is not applicable for the arguments (Label) can anyone tell me where am i going wrong thanks a lot --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Composite - disabling click events
Thanks for the advice. This could be a way, but I am a bit afraid that it could be a bit risky to take this approach without knowing exactly what one is doing. Maybe I could create some circular reference causing memory leaks or something like that - some experienced folks could maybe drop a word here about that, or present some safe solution. On 21 čnc, 03:21, Zheren benzhe...@gmail.com wrote: Check out GWT implementation of CustomButton. It seems that the goal can be achieved by overwrite onBrowserEvent (Event event) method without using the method proposed above. FYI -Ben On Jun 23, 4:07 am,romantroman.te...@gmail.com wrote: Ok, I used just basic approach, if anyone is interested in enabling/ disabling click events on your own composite here it is: public class MyButton extends Composite implements HasClickHandlers, ClickHandler { private final HashSetClickHandler clickHandlers; private boolean enabled; public MyButton() { clickHandlers = new HashSet(); addDomHandler(this, ClickEvent.getType()); ... initWidget(your_complex_widget); } public HandlerRegistration addClickHandler(ClickHandlerhandler) { clickHandlers.add(handler); // don't care about the return value, nobody should need it // if necessary return some convenient class extending HandlerRegistration // or create some special method for removing the clickhandlerfrom the clickHandlers list return null; } public void onClick(ClickEventevent) { if (enabled) { for (ClickHandlerhandler: clickHandlers) { handler.onClick(event); } } } public void setEnabled(boolean enabled) { this.enabled = enabled; } } Any suggestions for improvements are welcome. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How can you detect a mouse double click on a text box?
Hi i would like the functionality that when a user double clicks on the textbox, the existing text on the textbox deletes itself how should i proceed to do that so ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT 1.6.4 and servlet error problems
I have just upgraded to GWT 1.6.4 and I have run into problems deploying GXT to Tomcat. I am getting this error in the logs: java.lang.ClassCastException: com.rbsgbm.ival.gui.server.CommandServiceImpl cannot be cast to javax.servlet.Servlet at org.apache.catalina.core.StandardWrapper.loadServlet (StandardWrapper.java:1115) at org.apache.catalina.core.StandardWrapper.allocate (StandardWrapper.java:808) at org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:129) at org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service (CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 447) at java.lang.Thread.run(Thread.java:619) 24-Jul-2009 16:28:24 org.apache.catalina.core.ApplicationContext log I guess it must be a servlet api conflict. I can see that gwt-user contains javax.servlet code. What version of the servlet-api is GWT 1.6.4 compatible with? James --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to Run GWT App in Hosted Mode by Using Netbeans 6.5?
Hi Leonardo, If you have everything set up correctly then your web app should just run. One thing to consider though with netbeans is the use of Glassfish v2.2 as your server. It seems that Glassfish v3 prelude does not want to work fully with a GWT app. I am not sure why this is, but I was having trouble getting it to run. Also to run the GWT debugger just click the debug icon at the top of the screen and the GWT debugger will come up. Provide a little more information and I will see what I can do to help. Also here is a link on setting up GWT with netbeans: http://gwttutorials.com/2009/07/23/getting-started/ James On Jul 9, 8:59 am, Leonardo Carreira leonardo.carre...@yahoo.com.sg wrote: @XiaoR Hii Xiao.. Thanks for your reply.. :) Yap iam quite new toGWT,, :( Thanks for your suggestion... Okay.. maybe i'll use Eclipse for developGWTapp.. Thanks in advance.. :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
FlexTable and RowSpan
Using the FlexTable and CSS, is there a way to achieve the effect of rowspan? I have a 4 column table, where (for 99% of the time), the first two columns have the same data, only the data in the last two columns will differ Col1 Col2 Col3 Col4 aa bbvalue1 checkBox aa bbvalue3 checkBox aa bbvalue5 checkBox Rows can be added or deleted to the table by other processes. Possible to use a cell formattter or rowFormatter to accomplish? If so, looking to see what paramters I would need to use. I know that this question may seem really basic to group members but I am new to web programming . Thanks, Jennifer --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
PHP in hosted mode
Hi, I want to use GWT in a PHP project but can't find files like project- name-shell or com.google.com.gwt.dev.GWTShell. I'm using GWT 1.6.4 with Eclipse on Mac OS X. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Standalone GWT Scrollbar Widget
Isaac, Thanks so much - that control is exactly what I need. I had started to hack a Composite widget together by wrapping ScrollPanel, and it was kind of working, but for some reason Opera wouldn't display the horizontal scrollbar. And in any case, SliderBar looks 1000 percent better than the standard ScrollPanel scrollbars. To possibly save time for others happening upon this message, I would point out that the SliderBar is unusable without the accompanying CSS. In other words, if you just use it out of the box, it will look like a big mess on your page. The class Gen2CssInjector, however, is provided as part of GWT-Incubator, and it contains a static method called Gen2CssInjector.addSliderBarDefault() that injects all of the default CSS for the SlideBar. That method is not yet documented in the Javadoc for GWT-Incubator that is posted online, but source code can nonetheless be found in the GWT-Incubator JAR file. This assumes, of course, that you do not want to write your own CSS for the SliderBar, and most people will not want to do that up front just to get the slider to work. Here is some sample code that sets up a basic SliderBar: //Inject the default SliderBar CSS files. Gen2CssInjector.addSliderBarDefault(); //Create the SliderBar with a range between 0 and 100 sliderBar = new SliderBar(0.0, 100.0); //Set the width and height sliderBar.setWidth(800px); sliderBar.setHeight(200px); //Set the smallest increment by which the bar will advance. sliderBar.setStepSize(1.0); //Set the initial value sliderBar.setCurrentValue(0.0); //Set the number of tick marks from the beginning to the end of the bar sliderBar.setNumTicks(100); //Set the number of tick mark labels (in this case, there will be 20 at intervals of 5) sliderBar.setNumLabels(5); //Handle events regexResultsSliderBar.addValueChangeHandler(new ValueChangeHandlerDouble() { @Override public void onValueChange(ValueChangeEventDouble event) { double currentSliderBarValue = sliderBar.getCurrentValue(); valueDisplayTextBox.setText(String.valueOf (currentSliderBarValue)); } }); Carl On Jul 24, 7:02 am, Isaac Truett itru...@gmail.com wrote: Hi Carl, Sounds like you might want to look at theSliderBarin the GWT Incubator project: http://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar I imagine you could style it to look like a browser's scroll bar if that's what you want. - Isaac On Fri, Jul 24, 2009 at 2:24 AM, Carlconsult...@goalstate.com wrote: Does anyone know where a standalone GWT Scrollbar widget might be found? I'm talking about a scrollbar control that is not attached to a window, that has a settable range of possible integer values through which it scrolls, and to which listeners can be attached to observe changes that the user creates in the presently selected integer within the given range, and for which that same selected integer is also settable from code. It seems surprising to me that such a widget does not already exist somewhere, and I'd hate to have to reinvent it, but I can't find one anywhere. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Standalone GWT Scrollbar Widget
Correction - for the labels, I meant to say there would be 5 at intervals of 20. On Jul 24, 9:41 am, Carl consult...@goalstate.com wrote: Isaac, Thanks so much - that control is exactly what I need. I had started to hack a Composite widget together by wrapping ScrollPanel, and it was kind of working, but for some reason Opera wouldn't display the horizontal scrollbar. And in any case,SliderBarlooks 1000 percent better than the standard ScrollPanel scrollbars. To possibly save time for others happening upon this message, I would point out that theSliderBaris unusable without the accompanying CSS. In other words, if you just use it out of the box, it will look like a big mess on your page. The class Gen2CssInjector, however, is provided as part of GWT-Incubator, and it contains a static method called Gen2CssInjector.addSliderBarDefault() that injects all of the default CSS for the SlideBar. That method is not yet documented in the Javadoc for GWT-Incubator that is posted online, but source code can nonetheless be found in the GWT-Incubator JAR file. This assumes, of course, that you do not want to write your own CSS for theSliderBar, and most people will not want to do that up front just to get the slider to work. Here is some sample code that sets up a basicSliderBar: //Inject the defaultSliderBarCSS files. Gen2CssInjector.addSliderBarDefault(); //Create theSliderBarwith a range between 0 and 100 sliderBar= newSliderBar(0.0, 100.0); //Set the width and height sliderBar.setWidth(800px); sliderBar.setHeight(200px); //Set the smallest increment by which the bar will advance. sliderBar.setStepSize(1.0); //Set the initial value sliderBar.setCurrentValue(0.0); //Set the number of tick marks from the beginning to the end of the bar sliderBar.setNumTicks(100); //Set the number of tick mark labels (in this case, there will be 20 at intervals of 5) sliderBar.setNumLabels(5); //Handle events regexResultsSliderBar.addValueChangeHandler(new ValueChangeHandlerDouble() { @Override public void onValueChange(ValueChangeEventDouble event) { double currentSliderBarValue =sliderBar.getCurrentValue(); valueDisplayTextBox.setText(String.valueOf (currentSliderBarValue)); } }); Carl On Jul 24, 7:02 am, Isaac Truett itru...@gmail.com wrote: Hi Carl, Sounds like you might want to look at theSliderBarin the GWT Incubator project: http://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar I imagine you could style it to look like a browser's scroll bar if that's what you want. - Isaac On Fri, Jul 24, 2009 at 2:24 AM, Carlconsult...@goalstate.com wrote: Does anyone know where a standalone GWT Scrollbar widget might be found? I'm talking about a scrollbar control that is not attached to a window, that has a settable range of possible integer values through which it scrolls, and to which listeners can be attached to observe changes that the user creates in the presently selected integer within the given range, and for which that same selected integer is also settable from code. It seems surprising to me that such a widget does not already exist somewhere, and I'd hate to have to reinvent it, but I can't find one anywhere. Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to convert an EntryPoint object into a Composite object.
I am new to GWT RPC application. I have downloaded the GWT plugin for eclipse and did a sample GWT java product and defined a module which contains the following three screens: 1, Login Screen 2, Main Screen, which contains menu bar and tool bar options and 3, A master screen, ie., Item Master, which is a Composite screen I have looked the demos on the following webpage: http://www.gwt-ext.com/demo/#buttons I took the SimpleButtons source and trying to add in my project as a Composite. It's presently as an EntryPoint object, but I have already an entry point in my application. I need to add as a Composite and also need to invoke from the Main Screen based on the appropriate menu selection. Any can help providing a snippet of code or relevant documentation link? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
server name missing in WASReqURL cookie in WAS 6.1.0.17
Hi All, I am using Form based login in my GWT+Portal based application. To go back to the user requested page after successfull login i am using WASReqURL cookie set by Websphere. Now currently i am using WAS 6.1.0.17 WAS server. I tried in local m/c also in unix server and at both place the server name is missing e.g. If i tried to access a userdetail screen after page exipry then i am forwarded to login page. Now after login i should be able to go to the user detail screen but when i check the cookies it contains the requested URL as: http://:12721/test-portal-web/sec/userDetail.jsp?userid=122333 (check the server name is missing) where as i am expecting: http://wolverine:12721/test-portal-web/sec/userDetail.jsp?userid=122333 Am i missing any configuration or is it a bug from IBm or its intentional from IBM due to some security reason?? Thanks Tapan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Debugging GWT App in Eclipse
Hi... I'm in the Getting Started Tutorial example, everything works so far, but I'm unable to debug (Step 6). It always runs thru the code ignoring my breakpoints. BTW, if I create a breakpoint there isn't a breakpoint window where that one appears (like shown in the Tutorial) I tried both values for the 'Run built-in Server' setting - no difference. BTW, the app always appears in Hosted Mode. Where's the option to run it in the system browser, if any? I'm running App Engine 1.2.1, GWT 1.6.4, Eclipse 3.4.2, Firefox 3.0.12 If this is the wrong place to ask something like that, where should I go? Thx ia, Ekki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How can i put HTML containing li elements in its content ?
The problem is when i try to display com.google.gwt.user.client.ui.HTML (String html) with html like this code brullidotted el1br/lilidotted el1br/li/ulfont color=#339966bbr/b/fontollione/lilitwo/ lilifont color=#00three/fontbr/li/olfont color=#339966b/b/fontColours and other things work fine.br /code When i put that code directly to a plain html file and open it in any browser it works fine. But when i use it to create HTML object, there is no numbers in list printed, or dots in dotted list. Tried with hosted mode, FF, IE Tried with HTML (from gwt and gwtext) and HTMLPanel(gwt-ext) Any ideas ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is there a way to force serialization of a Class ?
Hi Sumit, Yes, I did it that way, but I don't lock objects, the error message tells user that data has been changed by someone else and that he should reload, I use optimistic locking. Many thanks, On 23 juil, 19:38, Sumit Chandel sumitchan...@google.com wrote: Hi Aymen, Yes, that exactly what I meant. I'm guessing that by concurrent update problems, your AsyncCallback will probably just issue an error message saying that the form or data being modified is already in use (pessimistic concurrency control)? If so, that sounds like a workable solution to me. Hope that helps, -Sumit Chandel On Thu, Jul 23, 2009 at 4:43 AM, AymenS sayhi.ay...@gmail.com wrote: Hi Sumit, Thank you for your reply, You're right it's a bad practice, I implemented the second solution, I've had to do some plumbing in GileadRPCServiceExporter to bubble another exception, that I defined, whenever a StaleObjectStateException is detected. And use a custom implementation of AsynCallback to handle this type of problems (concurrent updates). You meant something like this, is what I've done appropriate ? On 21 juil, 20:27, Sumit Chandel sumitchan...@google.com wrote: Hi AymenS, You could manually enter the class name that you want to serialize to the generated serialization policy file (for example, as part of your build process). You can take a look at the generated serialization file to see an example of the format required to add the exception type to the serialization policy (essentially pairs of fully qualified classnames and booleans indicating whether the type can be instantiated). However, it's important to note that allowing a Hibernate exception to bubble up to the client-side is generally bad practice. Instead, you should catch the exception on the server-side and either delegate the exception to something specific and friendlier to the GWT client-side that can be used to handle the error elegantly on the client or provide some kind of error signaling in the RPC callback between the client and the server. Hope that helps, -Sumit Chandel On Fri, Jul 17, 2009 at 8:29 AM, AymenS sayhi.ay...@gmail.com wrote: What I know in GWT serialization is that only classes that are mentionned (params, return type) in RPC methods are included in GWT serialization policy white-list. I need to serialize org.hibernate.StaleObjectStateException, which is thrown, in server-side, when a concurrency access problem happens. I added a fake implementation to the source code of my module to emulate the real one (org.hibernate.StaleObjectStateException). To make it serializable I'm obliged to add the clause throws StaleObjectStateException to methods (in service layer) which are susceptible to throw it at runtime. example: Customer update(Customer client) throws StaleObjectStateException; My question is the following, is there another way to make StaleObjectStateException without polluting service layer with those throws StaleObjectStateException ? p.s. : I'm using GWT-SL (GileadRPCServiceExporter) in server side. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
OSGI - adding new client/server code to an existing app through a bundle
I'm looking at using GWT in an OSGi application. We want to be able to add extra features as bundles. These bundles would add new database tables, workflows and screens to an existing application. I think it would be easy to add something to the menu - have a service where the clients polls the server for new menu items, the server uses an OSGi service to check for new features, and the client simply rebuilds the menu. I'm less certain as to how to SHOW a new feature at the UI after it is added to a menu. I would think by the time the client code has been compiled and sent to the browser, it's too late to do RootPanel.get (xx).add( yy); Is there some kind of reference I can pass to the client that it can use to show a new screen in a 'div' or 'object' section? Would I have to pass the HTML application page for the new feature? If so, how would I have the browser show it? Any suggestions would be appreciated. Mike --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
FormPanel submit() displays popup
While trying to create a FormPanel that uploads a file, my application launches a pop-up window on FormPanel.submit(). Furthermore, the listener designed to retrieve the results from the submit never gets fired. I'm using the latest GWT 1.7. Below is a simplified example that reproduces the issue: public void onModuleLoad() { // Setup form final FormPanel form = new FormPanel(); form.setEncoding(FormPanel.Encoding.MULTIPART); form.setMethod(FormPanel.Method.POST); form.setAction(uploadServlet); // Add submit response handler: Never gets called! form.addListener(Events.Submit, new ListenerFormEvent() { public void handleEvent(FormEvent event) { Info.display(Form was submitted,event.getResultHtml()); } }); // Add button for submit form.add(new Button(Submit, new SelectionListenerButtonEvent() { @Override public void componentSelected(ButtonEvent ce) { form.submit(); } })); RootPanel.get().add(form); } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT 1.7 Crash while Compiling HistoryImplTimer.java
Well well, I was just getting excited about the new release, and then I've got busted. I've updated from the 1.6.4 to the new 1.7 gwt release, and now I'm getting an error when trying to compile the application. Here is my GWT Development Shell Output: [code] [INFO] Starting HTTP on port 8080 [DEBUG] Loading an instance of module 'edm.FrameWork.View.EDM_FrameWork_View' [DEBUG] Refreshing module from source [DEBUG] Validating newly compiled units [TRACE] Removing units with errors [ERROR] Errors in 'jar:file:/C:/Java/LucasSpace/gwt-windows-1.7.0/gwt- user.jar!/com/google/gwt/user/client/impl/HistoryImplTimer.java' [ERROR] Line 22: The type HistoryImplTimer must implement the inherited abstract method HistoryImpl.nativeUpdate(String) [ERROR] Line 22: The type HistoryImplTimer must implement the inherited abstract method HistoryImpl.nativeUpdateOnEvent(String) [ERROR] Errors in 'jar:file:/C:/somewhere/gwt-windows-1.7.0/gwt- user.jar!/com/google/gwt/dom/client/DOMImplIE8.java' [ERROR] Line 33: The method getScrollLeft(Element) of type DOMImplIE8 must override or implement a supertype method [ERROR] Line 36: The method getScrollLeft(Document) in the type DOMImpl is not applicable for the arguments (Element) [ERROR] Line 38: The method getScrollLeft(Document) in the type DOMImpl is not applicable for the arguments (Element) [ERROR] Line 42: The method setScrollLeft(Element, int) of type DOMImplIE8 must override or implement a supertype method [ERROR] Line 47: The method setScrollLeft(Document, int) in the type DOMImpl is not applicable for the arguments (Element, int) [/code] I couldn't figure out what is going on, so what you think guys? ( Thanks in advance ! ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Debugging GWT App in Eclipse
Just Right+Click the *.gwt.xml in your app package, and click Debug As . There will be two ok possibilities, debugging as GWT Hosted mode Application, or as Web Application ( with the blue google icon). Just choose the one that suits you, if you are in doubt, just try both. It might sound weird, but check if you are debbuging the same App/ Project that you are editing, it happens ... : ) Good Luck! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Debugging GWT App in Eclipse
Thx. I did setup an identical configuration on my home machine, which works as expected. Even the breakpoint window appears. So, hopefully, I can manage to get it running on the office machine too. Thread over for now. Thx again Ekki On Jul 24, 8:59 pm, Sean slough...@gmail.com wrote: Make sure you're not just hitting run in Eclipse, hit Debug. It'll look like the little bug next to the play button in Eclipse. Breakpoint window usually only shows up when in the Debug View. You can add it to the normal java view (I personally do) by: Window - Show View - Other. Find the +Debug, expand it, select breakpoints. And now you can move that tab where you see fit. On Jul 24, 10:30 am, CI-CUBE e...@ci-cube.info wrote: Hi... I'm in the Getting Started Tutorial example, everything works so far, but I'm unable to debug (Step 6). It always runs thru the code ignoring my breakpoints. BTW, if I create a breakpoint there isn't a breakpoint window where that one appears (like shown in the Tutorial) I tried both values for the 'Run built-in Server' setting - no difference. BTW, the app always appears in Hosted Mode. Where's the option to run it in the system browser, if any? I'm running App Engine 1.2.1, GWT 1.6.4, Eclipse 3.4.2, Firefox 3.0.12 If this is the wrong place to ask something like that, where should I go? Thx ia, Ekki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Working with xml nodes gives exceptions in google chrome only
Hello, For anyone else experiencing similar issues, please see Issue #3871 (link below) for follow-up. Issue #3871: http://code.google.com/p/google-web-toolkit/issues/detail?id=3871 Thanks, -Sumit Chandel On Jul 22, 10:08 am, mihai007 mihai@gmail.com wrote: The error is: Uncaught exception inhttp://localhost:/bla/0B85277F02991E2394B9BF24DE3642D0.cache.html... throw com_google_gwt_xml_client_impl_DOMNodeException_ $DOMNodeException__Lcom_google_gwt_xml_client_impl_DOMNodeException_2SLjava _lang_Throwable_2Lcom_google_gwt_xml_client_impl_DOMItem_2 (new com_google_gwt_xml_client_impl_DOMNodeException(), e, this $static); Uncaught [object Object] root.getOwnerDocument() does not contain adoptNode. the Node class I am using is com.google.gwt.xml.client.Node; There is a method on OwnerDocument called importNode but it does not change anything, the error is the same. By the way I am using latest gwt 1.7 (older versions would not work either) It seems that safari is not working also (could it be due to webkit? it's the only thing I can think that's relevant and is used by Chrome and Safari) On Jul 21, 11:10 pm, Thomas Broyer t.bro...@gmail.com wrote: On 21 juil, 20:28, mihai007 mihai@gmail.com wrote: The following code works as expected in IE7/8, Firefox, Opera, but fails on chrome: Node root = XMLParser.parse(?xml version='1.0' ?root /).getLastChild(); Node node = XMLParser.parse(?xml version='1.0' ?node /).getLastChild(); root.appendChild(node); Does anyone have a clue why is it happening and any workarounds? thank you. Any error showing in the JS console? Shouldn't you first adoptNode (root.getOwnerDocument().adoptNode (node)) before appending it into another document? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
ListBox Problem - Show only after mouse over
Hi, When the panel is shown some list boxes simply don't appear, I have to pass the mouse over the list box to force the browser to show it. I have this problem with one line listbox (combobox) and multiline listbox. I test this problem with Google Chrome, FireFox and Internet Explorer, ONLY IE6 don't show the listbox. I tried to set the focus but did not solve my problem. My site have to work with all this browsers. Thanks, Gustavo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT module needs to be (re)compiled
I'm trying to upgrade from 1.5.2 to 1.6.4 and have the same issue as the posts above, but I'm not using Maven at all. When I run in hosted mode (launching from Eclipse Ganymede), as soon as I click the Compile/Browse button, I get the error message GWT module needs to be (re)compiled. I also get this exception in the hosted mode console: [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java: 2206) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1035) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1347) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 302) at java.util.ArrayList.writeObject(ArrayList.java:569) etc. (stack trace is very long, but I can provide the whole thing if necessary). I read the issue summary, but it's not clear to me how to fix this issue - is there more detailed documentation available? Thank you, Jennifer On Jul 20, 1:02 am, Sam Brodkin sambrod...@gmail.com wrote: Fixed. Summary here:http://code.google.com/p/gwt-maven2-starter-app/issues/detail?id=5can=1 On Jul 7, 4:58 pm, Sam Brodkin sambrod...@gmail.com wrote: I had the same problem. I took the error message's advice and ran it in hosted mode, clicked compile/Browse, then i took the /war directory (or with maven maybe it's in src/main/webapp for you) and copied it to the deploy dir of jboss (tomcat). I renamed it war.war and started the server (put an exploded war on the server. That seemed to do it. Now to figure out why the codehaus maven plugin isn't producing an artifact with GWTcompiledcode... On Jul 1, 8:48 am, Markus88 markus_ran...@web.de wrote: On 26 Jun., 10:38, strindberg jesper.holmb...@gmail.com wrote: I'm having some problems gettingGwt1.6.4 to run on my Tomcat 5.5, using the codehouse maven-gwt-plugin 1.1. I can run my project fine in hosted mode (from Eclipse), but when I build a war and deploy it (using the maven plugin), and then go to the web page containing the call to myGwtmodule, I get a dialog saying GWTmodulese.Interactiveneedsto be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. So obviously something goes wrong in the Maven build, but I can't see anything obvious. I have loooked in the war file and can see all the expected files there, including theGwtfiles. I realize this might very well be caused my some strange interaction in the maven-gwt-plugin, but I thought I should ask here as well. And does anyone have any tips on how I could go about troubleshooting this? The above message doesn't really give me any chance to see what's going on. I'm fairly new toGwt, so any debugging tips you might have would be welcome. I've got exactly the same Problem! Help Please... I'm using Smart-Gwton a Bea Weblogic Server and Maven build It works fine with the hosted Mode, but when I start it with the explorer it says GWTmoduleUserProjektneedsto be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problems with hosted mode
?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Default page to serve -- welcome-file-list welcome-fileCaribbeanvisit.jsp/welcome-file welcome-fileindex.jsp/welcome-file /welcome-file-list !-- Servlets -- servlet servlet-namecountryServlet/servlet-name servlet-classcom.pavco.caribbeanvisit.server.CountryServiceImpl /servlet-class /servlet servlet-mapping servlet-namecountryServlet/servlet-name url-pattern/caribbeanvisit/country/url-pattern /servlet-mapping servlet servlet-nameattractionServlet/servlet-name servlet-classcom.pavco.caribbeanvisit.server.AttractionServiceImpl /servlet-class /servlet servlet-mapping servlet-nameattractionServlet/servlet-name url-pattern/caribbeanvisit/attraction/url-pattern /servlet-mapping servlet servlet-nametagServlet/servlet-name servlet-classcom.pavco.caribbeanvisit.server.TagServiceImpl /servlet-class /servlet servlet-mapping servlet-nametagServlet/servlet-name url-pattern/caribbeanvisit/tag/url-pattern /servlet-mapping /web-app On Fri, Jul 24, 2009 at 7:32 AM, Rajeev Dayal rda...@google.com wrote: Hey Pavel, Can you post the contents of your web.xml file, and also the contents of your JSP page? Also, where is your JSP page located? Thanks, Rajeev On Thu, Jul 23, 2009 at 1:08 PM, Pavel Byles pavelby...@gmail.com wrote: I am using a JSP page as my startup page for my GWt/GAE project and hosted mode used to work just fine. Yesterday I started Eclipse and suddenly hosted mode doesn't work anymore. I only displays the html in the JSP page but doesn't run the linked myproject.nocache.js file and I get no errors. When I do Run/Compile everything works just fine in Firefox at url http://localhost:8080/ Any ideas? I'm using GWT SDK 1.7.0 and GAE SDK 1.2.2 on Ubuntu/Eclipse 3.4.2 w/ Sun JDK 1.6.0_13 -- -Pavel -- -Pav --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problems with hosted mode
JSP file is located in my war directory (war/Caribbeanvisit.jsp): %@ page contentType=text/html;charset=UTF-8 language=java % %@ page import=com.google.appengine.api.users.User % %@ page import=com.google.appengine.api.users.UserService % %@ page import=com.google.appengine.api.users.UserServiceFactory % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:v=urn:schemas-microsoft-com:vml head meta content=text/html; charset=UTF-8 http-equiv=content-type / titlePavco/title link rel=stylesheet type=text/css href=css/caribbeanvisit.css/ link rel=stylesheet type=text/css href=css/jquery.jgrowl.css/ !-- Load the Google AJAX API Loader -- script type=text/javascript src=http://www.google.com/jsapi;/script !-- Load the Google Friend Connect javascript library. -- script type=text/javascript google.load('friendconnect', '0.8'); /script script type=text/javascript var SITE_ID = '04312132550820759615'; google.friendconnect.container.setParentUrl('/'); google.friendconnect.container.initOpenSocialApi({ id: 'gfc-signin', site: SITE_ID, onload: function(securityToken) { renderGfcSignin(); } }); /script script type=text/javascript src=http://www.google.com/jsapi?key=ABQIporGMUZQY1wIQWgCBwmHahTnznCKwKvlBA0qLP7pqoQydu37nRR7FgBywU3xgJjWvob5YzYuF3QRVg;/script script type=text/javascript google.load(maps, 2.x); /script script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.jgrowl.js/script script type=text/javascript language=javascript src=caribbeanvisit/caribbeanvisit.nocache.js/script /head body onunload=GUnload() script type=text/javascript function renderGfcSignin() { var req = opensocial.newDataRequest(); var params = {}; params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.ID, opensocial.Person.Field.NAME, opensocial.Person.Field.THUMBNAIL_URL, opensocial.Person.Field.PROFILE_URL]; var viewer_idspec = new opensocial.IdSpec({ 'userId' : 'VIEWER', // change this to VIEWER 'groupId' : 'FRIENDS' }); var owner_idspec = new opensocial.IdSpec({ 'userId' : 'OWNER', 'groupId' : 'FRIENDS' }); req.add(req.newFetchPersonRequest(VIEWER, params), viewer_data); req.add(req.newFetchPeopleRequest(viewer_idspec, params), 'viewer_friends'); req.add(req.newFetchPeopleRequest(owner_idspec, params), 'site_friends'); req.send(onData); }; function onData(data) { if (data.get(viewer_data).hadError()) { google.friendconnect.renderSignInButton({'id':'gfc-signin','style':'text'}); } else { var viewer = data.get(viewer_data).getData(); var viewer_info = document.getElementById(gfc-signin); viewer_info.innerHTML = Hello, + viewer.getDisplayName() + + a href='#' onclick='google.friendconnect.requestSettings()'Settings/a | + a href='#' onclick='google.friendconnect.requestInvite()'Invite/a | + a href='#' onclick='google.friendconnect.requestSignOut()'Sign out/a; } if (!data.get(viewer_friends).hadError()) { var viewers_friends = data.get(viewer_friends).getData(); var friends = new Array(); var index = 0; viewers_friends.each( function(friend) { friends[index++] = {friendId: friend.getId(), thumbnailUrl: friend.getField(thumbnailUrl), profileUrl: friend.getField(profileUrl), status: friend.getField(status), displayName: friend.getDisplayName() }; } );
Re: Problems with hosted mode
JSP is located directly in the war directory. %@ page contentType=text/html;charset=UTF-8 language=java % %@ page import=com.google.appengine.api.users.User % %@ page import=com.google.appengine.api.users.UserService % %@ page import=com.google.appengine.api.users.UserServiceFactory % !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:v=urn:schemas-microsoft-com:vml head meta content=text/html; charset=UTF-8 http-equiv=content-type / titlePavco/title link rel=stylesheet type=text/css href=css/caribbeanvisit.css/ link rel=stylesheet type=text/css href=css/jquery.jgrowl.css/ !-- Load the Google AJAX API Loader -- script type=text/javascript src=http://www.google.com/jsapi;/script !-- Load the Google Friend Connect javascript library. -- script type=text/javascript google.load('friendconnect', '0.8'); /script script type=text/javascript var SITE_ID = '04312132550820759615'; google.friendconnect.container.setParentUrl('/'); google.friendconnect.container.initOpenSocialApi({ id: 'gfc-signin', site: SITE_ID, onload: function(securityToken) { renderGfcSignin(); } }); /script script type=text/javascript src=http://www.google.com/jsapi?key=ABQIporGMUZQY1wIQWgCBwmHahTnznCKwKvlBA0qLP7pqoQydu37nRR7FgBywU3xgJjWvob5YzYuF3QRVg;/script script type=text/javascript google.load(maps, 2.x); /script script type=text/javascript src=js/jquery.js/script script type=text/javascript src=js/jquery.jgrowl.js/script script type=text/javascript language=javascript src=caribbeanvisit/caribbeanvisit.nocache.js/script /head body onunload=GUnload() script type=text/javascript function renderGfcSignin() { var req = opensocial.newDataRequest(); var params = {}; params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] = [opensocial.Person.Field.ID, opensocial.Person.Field.NAME, opensocial.Person.Field.THUMBNAIL_URL, opensocial.Person.Field.PROFILE_URL]; var viewer_idspec = new opensocial.IdSpec({ 'userId' : 'VIEWER', // change this to VIEWER 'groupId' : 'FRIENDS' }); var owner_idspec = new opensocial.IdSpec({ 'userId' : 'OWNER', 'groupId' : 'FRIENDS' }); req.add(req.newFetchPersonRequest(VIEWER, params), viewer_data); req.add(req.newFetchPeopleRequest(viewer_idspec, params), 'viewer_friends'); req.add(req.newFetchPeopleRequest(owner_idspec, params), 'site_friends'); req.send(onData); }; function onData(data) { if (data.get(viewer_data).hadError()) { google.friendconnect.renderSignInButton({'id':'gfc-signin','style':'text'}); } else { var viewer = data.get(viewer_data).getData(); var viewer_info = document.getElementById(gfc-signin); viewer_info.innerHTML = Hello, + viewer.getDisplayName() + + a href='#' onclick='google.friendconnect.requestSettings()'Settings/a | + a href='#' onclick='google.friendconnect.requestInvite()'Invite/a | + a href='#' onclick='google.friendconnect.requestSignOut()'Sign out/a; } if (!data.get(viewer_friends).hadError()) { var viewers_friends = data.get(viewer_friends).getData(); var friends = new Array(); var index = 0; viewers_friends.each( function(friend) { friends[index++] = {friendId: friend.getId(), thumbnailUrl: friend.getField(thumbnailUrl), profileUrl: friend.getField(profileUrl), status: friend.getField(status), displayName: friend.getDisplayName() }; } );
Re: How to convert an EntryPoint object into a Composite object.
You have to extend Composite instead of EntryPoint and initialize your widgets in the constructor. Simple example: public class SimpleButtons extends Composite{ public SimpleButtons(){ final VerticalPanel panel = new VerticalPanel(); initWidget(panel); final Button button = new Button(Click me!); panel.add(button); } } Go to the GWT project page: http://code.google.com/webtoolkit/ and read the Getting Started guide. Isac. On 24 jul, 07:07, Baskar baskarani...@gmail.com wrote: I am new to GWT RPC application. I have downloaded the GWT plugin for eclipse and did a sample GWT java product and defined a module which contains the following three screens: 1, Login Screen 2, Main Screen, which contains menu bar and tool bar options and 3, A master screen, ie., Item Master, which is a Composite screen I have looked the demos on the following webpage:http://www.gwt-ext.com/demo/#buttons I took the SimpleButtons source and trying to add in my project as a Composite. It's presently as an EntryPoint object, but I have already an entry point in my application. I need to add as a Composite and also need to invoke from the Main Screen based on the appropriate menu selection. Any can help providing a snippet of code or relevant documentation link? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Reading styles directly from the stylesheet?
Is there a convenient way to access a stylesheet in programmatic form? My intention is to have an animation, and to let another developer specify a 'before' style and an 'after' style in the CSS rather than the code (just width and height at this point), and then to have the animation tween between them. However, I can't seem to think of an effective/not-ugly way for getting both those styles. Is there any way to directly access a stylesheet? Or can anyone suggest an alternative effective way of handling this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT module needs to be (re)compiled
Jennifer, Sounds like you're up against this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3510 There's a patch attached to comment #21 that has worked for many (including myself). You can also upgrade to 1.7.0, which includes the fix for issue #3510. Hope that helps. - Isaac On Fri, Jul 24, 2009 at 3:58 PM, Jennifer Vendettijennifer.vende...@gmail.com wrote: I'm trying to upgrade from 1.5.2 to 1.6.4 and have the same issue as the posts above, but I'm not using Maven at all. When I run in hosted mode (launching from Eclipse Ganymede), as soon as I click the Compile/Browse button, I get the error message GWT module needs to be (re)compiled. I also get this exception in the hosted mode console: [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java: 2206) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1035) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1347) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 302) at java.util.ArrayList.writeObject(ArrayList.java:569) etc. (stack trace is very long, but I can provide the whole thing if necessary). I read the issue summary, but it's not clear to me how to fix this issue - is there more detailed documentation available? Thank you, Jennifer On Jul 20, 1:02 am, Sam Brodkin sambrod...@gmail.com wrote: Fixed. Summary here:http://code.google.com/p/gwt-maven2-starter-app/issues/detail?id=5can=1 On Jul 7, 4:58 pm, Sam Brodkin sambrod...@gmail.com wrote: I had the same problem. I took the error message's advice and ran it in hosted mode, clicked compile/Browse, then i took the /war directory (or with maven maybe it's in src/main/webapp for you) and copied it to the deploy dir of jboss (tomcat). I renamed it war.war and started the server (put an exploded war on the server. That seemed to do it. Now to figure out why the codehaus maven plugin isn't producing an artifact with GWTcompiledcode... On Jul 1, 8:48 am, Markus88 markus_ran...@web.de wrote: On 26 Jun., 10:38, strindberg jesper.holmb...@gmail.com wrote: I'm having some problems gettingGwt1.6.4 to run on my Tomcat 5.5, using the codehouse maven-gwt-plugin 1.1. I can run my project fine in hosted mode (from Eclipse), but when I build a war and deploy it (using the maven plugin), and then go to the web page containing the call to myGwtmodule, I get a dialog saying GWTmodulese.Interactiveneedsto be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. So obviously something goes wrong in the Maven build, but I can't see anything obvious. I have loooked in the war file and can see all the expected files there, including theGwtfiles. I realize this might very well be caused my some strange interaction in the maven-gwt-plugin, but I thought I should ask here as well. And does anyone have any tips on how I could go about troubleshooting this? The above message doesn't really give me any chance to see what's going on. I'm fairly new toGwt, so any debugging tips you might have would be welcome. I've got exactly the same Problem! Help Please... I'm using Smart-Gwton a Bea Weblogic Server and Maven build It works fine with the hosted Mode, but when I start it with the explorer it says GWTmoduleUserProjektneedsto be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Changing TabPanel's table label?
Hi, I want to change my TabPanel's tab labels dynamically (e.g. add info about what the user has done within the tab such as how many items he has selected). Can the title be changed? TIA --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: In Hosted mode, GWT Stopped displaying Widgets
Windows XP, I have IE Firefox Chrome installed on the machine. Thanks On Jul 24, 7:02 am, Rajeev Dayal rda...@google.com wrote: Hey Raju, It definitely sounds cookie related. What OS and Browser are you running with? Rajeev On Fri, Jul 24, 2009 at 9:04 AM, Raju raju.technol...@gmail.com wrote: I also tried creating running dummy 'HelloWorld' application out side of eclipse, it does not work. Looks like I am unable to run any GWT application on this machine. On Jul 23, 5:05 pm, Raju raju.technol...@gmail.com wrote: Here's what I did: From a fresh eclipse 3.4 installation with ECLIPSE plug-in, I have been working on building an application (using ext-GWT). Everything was working fine for a couple of days, yesterday the applicationstoppedrenderingWidgetsfor some inexplicable reason. Additional observations are as follows. 1) On the same machine, forGWT1.7, even if I create a fresh dummy application, the shell opened and the hosted browser came up, but only the contents of HTML file displayed, no text boxes, no buttons. 2) On same machine, I still have older version ofGWT(1.5), on the same machine. Same behavior as above for my existing applications and for a newly created applications, only rendering HTML, nowidgets. 3) On same machine I tried several times re-installing eclipse/GWT, no avail. Looks like on this machine I can not runGWTapplication. 4) On a different machine, I installed Eclipse + plugin, everything works fine, old applications, new applications etc. 5) I tried clearing cookies as suggested by an earlier post ( http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg16... ), but it did not help. Error message on my console is pasted below (Help sincerely appreciated, Thanks is Advance) The server is running athttp://localhost:1074/ Jul 23, 2009 8:20:22 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Jul 23, 2009 8:20:22 PM com.google.apphosting.utils.jetty.JettyLogger warn WARNING: handle failed java.io.IOException: FULL head at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java: 205) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java: 381) at org.mortbay.io.nio.SelectChannelEndPoint.run (SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run (BoundedThreadPool.java:442) Help Appreciated, Thanks is Advance Raju- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT page reload according to login
one more question :) i know gwt mention about easy ajax,but i couldtnt find usage of sessions in gwt.can you give or send me any link or document to learn how to manage and use sessions in gwt --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.
Hi, I've been combing through the Getting Started guide, and I got everything to work except this page. http://code.google.com/webtoolkit/tutorials/1.6/debug.html I've followed the directions and it doesn't work. The tutorial runs normally and it doesn't break at the breakpoints. Anybody got any ideas? I must be doing something wrong, and it's probably something simple. Please help, Thanks, Howard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Debugging GWT App in Eclipse
Hi Ekki, Did you get this to work on your office computer? I'm experiencing the same problem, and just like to get this to work. Thanks, Howard On Jul 24, 12:25 pm, CI-CUBE e...@ci-cube.info wrote: Thx. I did setup an identical configuration on my home machine, which works as expected. Even the breakpoint window appears. So, hopefully, I can manage to get it running on the office machine too. Thread over for now. Thx again Ekki On Jul 24, 8:59 pm, Sean slough...@gmail.com wrote: Make sure you're not just hitting run in Eclipse, hit Debug. It'll look like the little bug next to the play button in Eclipse. Breakpoint window usually only shows up when in the Debug View. You can add it to the normal java view (I personally do) by: Window - Show View - Other. Find the +Debug, expand it, select breakpoints. And now you can move that tab where you see fit. On Jul 24, 10:30 am, CI-CUBE e...@ci-cube.info wrote: Hi... I'm in theGettingStartedTutorial example, everything works so far, but I'm unable to debug (Step 6). It always runs thru the code ignoring my breakpoints. BTW, if I create a breakpoint there isn't a breakpoint window where that one appears (like shown in the Tutorial) I tried both values for the 'Run built-in Server' setting - no difference. BTW, the app always appears in Hosted Mode. Where's the option to run it in the system browser, if any? I'm running App Engine 1.2.1, GWT 1.6.4, Eclipse 3.4.2, Firefox 3.0.12 If this is the wrong place to ask something like that, where should I go? Thx ia, Ekki --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
JPA with GWT
I am trying to use JPA with GWT . I am not sure how to make this communication work . I did googling around on this quite a bit . People suggest dozer and gilead . Dozer plug in is not working currently . Gilead there is aproblem with lazy fetching . This must be a time and tested approach . So Can anyone suggest how do i take those JPA entities to my GWT Client . I dont want to create Manually DTO for every single entity . (This is where I was looking @ Dozer) It does it automatically . I am running out of time of figuring out whats the best approach . Folks help would be appreciated . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to convert an EntryPoint object into a Composite object.
you may give a look at this pagehttp://tcninja.blogspot.com/2009/07/composites-when-you-need-to-group.html to learn a little more about composites. On Fri, Jul 24, 2009 at 7:07 AM, Baskar baskarani...@gmail.com wrote: I am new to GWT RPC application. I have downloaded the GWT plugin for eclipse and did a sample GWT java product and defined a module which contains the following three screens: 1, Login Screen 2, Main Screen, which contains menu bar and tool bar options and 3, A master screen, ie., Item Master, which is a Composite screen I have looked the demos on the following webpage: http://www.gwt-ext.com/demo/#buttons I took the SimpleButtons source and trying to add in my project as a Composite. It's presently as an EntryPoint object, but I have already an entry point in my application. I need to add as a Composite and also need to invoke from the Main Screen based on the appropriate menu selection. Any can help providing a snippet of code or relevant documentation link? -- Quer aprender a programar? acompanhe: Wants to learn GWT? Follow this blog - http://tcninja.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT module needs to be (re)compiled
Hello Isaac, Many thanks for the pointer to that thread. The patch fixed the issue in 1.6.4 and I will also upgrade to 1.7.0 as you suggest. Best, Jennifer On Jul 24, 2:13 pm, Isaac Truett itru...@gmail.com wrote: Jennifer, Sounds like you'reup against this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3510 There's a patch attached to comment #21 that has worked for many (including myself). You can also upgrade to 1.7.0, which includes the fix for issue #3510. Hope that helps. - Isaac On Fri, Jul 24, 2009 at 3:58 PM, Jennifer Vendettijennifer.vende...@gmail.com wrote: I'm trying to upgrade from 1.5.2 to 1.6.4 and have the same issue as the posts above, but I'm not using Maven at all. When I run in hosted mode (launching from Eclipse Ganymede), as soon as I click the Compile/Browse button, I get the error message GWTmoduleneedsto be (re)compiled. I also get this exception in the hosted mode console: [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java: 2206) at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1035) at java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java:1375) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java: 1347) at java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java:1290) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java: 1079) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 302) at java.util.ArrayList.writeObject(ArrayList.java:569) etc. (stack trace is very long, but I can provide the whole thing if necessary). I read the issue summary, but it's not clear to me how to fix this issue - is there more detailed documentation available? Thank you, Jennifer On Jul 20, 1:02 am, Sam Brodkin sambrod...@gmail.com wrote: Fixed. Summary here:http://code.google.com/p/gwt-maven2-starter-app/issues/detail?id=5can=1 On Jul 7, 4:58 pm, Sam Brodkin sambrod...@gmail.com wrote: I had the same problem. I took the error message's advice and ran it in hosted mode, clicked compile/Browse, then i took the /war directory (or with maven maybe it's in src/main/webapp for you) and copied it to the deploy dir of jboss (tomcat). I renamed it war.war and started the server (put an exploded war on the server. That seemed to do it. Now to figure out why the codehaus maven plugin isn't producing an artifact with GWTcompiledcode... On Jul 1, 8:48 am, Markus88 markus_ran...@web.de wrote: On 26 Jun., 10:38, strindberg jesper.holmb...@gmail.com wrote: I'm having some problems gettingGwt1.6.4 to run on my Tomcat 5.5, using the codehouse maven-gwt-plugin 1.1. I can run my project fine in hosted mode (from Eclipse), but when I build a war and deploy it (using the maven plugin), and then go to the web page containing the call to myGwtmodule, I get a dialog saying GWTmodulese.Interactiveneedsto be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. So obviously something goes wrong in the Maven build, but I can't see anything obvious. I have loooked in the war file and can see all the expected files there, including theGwtfiles. I realize this might very well be caused my some strange interaction in the maven-gwt-plugin, but I thought I should ask here as well. And does anyone have any tips on how I could go about troubleshooting this? The above message doesn't really give me any chance to see what's going on. I'm fairly new toGwt, so any debugging tips you might have would be welcome. I've got exactly the same Problem! Help Please... I'm using Smart-Gwton a Bea Weblogic Server and Maven build It works fine with the hosted Mode, but when I start it with the explorer it says GWTmoduleUserProjektneedsto be (re)compiled, please run a compile or use the Compile/Browse button in hosted mode. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: HTML 5 video
Thanks, that was helpful. On Thu, Jul 23, 2009 at 1:43 PM, Sumit Chandel sumitchan...@google.comwrote: Hi Joseph, GWT support for HTML 5 is definitely something the team is looking at for an upcoming release. Until then, you can always use an HTMLPanel to contain the video tag and manage its use in your GWT code. That said, you'll have to look up online documentation about the HTML 5 spec and the video tag to learn how to use it effectively (for example, see link below). Also, support for the video tag in most browsers is still experimental, so you're likely to run into some issues get it up and running in a full-blown application until stable releases including HTML 5 support are available. video tag usage: http://www.w3schools.com/tags/html5_video.asp Hope that helps, -Sumit Chandel On Thu, Jul 23, 2009 at 10:12 AM, Joseph Arceneaux joe.arcene...@gmail.com wrote: Well, that really wasn't my question, but these issues would seem to throw some cold water on the use of video... On Sat, Jul 18, 2009 at 6:36 AM, twdarkflame darkfl...@gmail.com wrote: meh, we should all just use Ogg and let the rest catch up. Dailymotion and Wikipedia are big enough supporters for me. On Jul 16, 6:55 am, Ivan Ooi olibr...@gmail.com wrote: http://www.infoq.com/news/2009/07/HTML-5-Video-Codec Parties Fail to Agree on the HTML 5 Video Codechttp://www.infoq.com/news/2009/07/HTML-5-Video-Codec CommunityArchitecture http://www.infoq.com/architectureTopics Specifications http://www.infoq.com/Specifications Ian Hickson, the editor of the HTML 5 Specification, has recently removed the required codecs from the video and audio tags of the respective draft standard citing difficulties in reaching consensus among major companies involved in distributing video and audio content on the web. - By * Abel Avram http://www.infoq.com/author/Abel-Avram * on Jul 15 - Discuss http://www.infoq.com/news/2009/07/HTML-5-Video-Codec On Thu, Jul 16, 2009 at 2:10 AM, Joseph Arceneaux joe.arcene...@gmail.comwrote: Greetings, anyone know of any tutorials, code, or other information for using the video tag with GWT? Even a simple explanation of the video API would be helpful. 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Problem with CssResource upgrading to 1.7 from 1.5.3
Hi, I'm trying to upgrade my code to 1.7, but I'm having a few problems, and after trying to sort them myself searching the group and the documentation, I gave up. 1) In 1.7 com.google.gwt.libideas.resources.client.ImmutableResourceBundle is deprecated, and the javadoc point to com.google.gwt.resources.client.ClientBundle. However, I cannot find that interface in the 1.7 jar. Where should I look for it? 2) In 1.5 I used CssResource successfully for styling a layout that needs images with negative margins depending on the size of the sprite. The code, working for 1.5, is: left: value('-myImage.getWidth', 'px'); The problem is that in 1.7, that same code fails complaining about no method with zero-args called -myImage. The minus is no longer a minus but a dash for the parser. AFAIK, negative margins are a valid CSS value. I tried several combinations, but none worked: left: -value('myImage.getWidth', 'px'); left: value(-'myImage.getWidth', 'px'); left: literal('-')value('myImage.getWidth', 'px'); Anyone knows how to use value() for getting a negative margin? Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Reading styles directly from the stylesheet?
Hi Graham, there's not a directly way in GWT as yet. As part of a project I'm doing, I've been building up an animation library that is based on tweening between 2 styles that I've been able to kept as open source. You can find the library here: http://code.google.com/p/gwt-fx/ and an example here: http://gwtfx.adamtacy.com/EffectsExample.html (for example, the logo is animated from styles in a style sheet); maybe it meets your needs* If you wanted to do it your own way, then two bits that caused me the most headaches were: a) understanding when the style sheet was available to you wrt the GWT code - simplest solution I've found is to use a script tag in the applications .gwt.xml file or in-line the style in the HTML file. b) trying to pick up an underlying style - i.e. it was simplest to define properties for the style I wanted to tween in both the start and end style, rather than just in the end - i.e. start{width: 100px; height: 200px;} and end{width: 400px; height: 400px;} rather than start{width: 100px} and end{width: 400px; height: 400px;} and assume I could work out the start height. Good Luck //Adam * the current downloadable zip file essentially requires you to put the component you want to tween into a NEffectPanel, apply an effect to that panel (either a built in one such as Fade, or build your own using NMorphStyle(new Selector(Style1), new Selector(Style2));, and fire the play() method, i.e. NEffectPanel ePanel = new NEffectPanel(); ePanel.add(myWidget); NMorphStyle effect = new NMorphStlye(new Selector(Style1), new Selector(Style2)); ePanel.addEffect(effect); effect.play(); the version in the trunk removes the need for a separate panel, so you can just create an effect as follows: NMorphStyle effect = NMorphStlye(myWidget.getElement(), new Selector (Style1), new Selector(Style2)); effect.play(); On 24 Juli, 22:41, Graham J graham.j...@gmail.com wrote: Is there a convenient way to access a stylesheet in programmatic form? My intention is to have an animation, and to let another developer specify a 'before' style and an 'after' style in the CSS rather than the code (just width and height at this point), and then to have the animation tween between them. However, I can't seem to think of an effective/not-ugly way for getting both those styles. Is there any way to directly access a stylesheet? Or can anyone suggest an alternative effective way of handling this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Problem with serializing Date in map
Hi all, I am new to this rpc,i facing a problem with Date type,I have one methods that takes MapString,Object argument,when i am trying to send to Date as value for that map i am getting exception like java.lang.reflect.InvocationTargetException java.lang.AssertionError: Not enough methods, expecting 3 saw 2 If a change to MapString,Date it is working fine please give suggessions, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT1.6.4 + gwt2swf + IE7 problem
Hi all, I am using gwt2swf jar for Flash Tag cloud widget. I am passing history token in my url of each tag. So, on click of each tag it goes to the onHistoryChanged() method when I am working in Firefox and Chrome. But in IE 7.0 and Safari when I click on any tag it first goes to onModuleLoad() method of entry point class. i.e. the application is loaded again. Following is the code for my Flash Tag Cloud widget: public void flashTagCloud() { tagWidgetPanel = new VerticalPanel(); SWFWidget swfWidget = new SWFWidget(gikitagcloud.swf, 180px, 200px); swfWidget.addParam(bgcolor, #33); swfWidget.addParam(wmode, transparent); swfWidget.addParam(AllowScriptAccess, always); String urlString = GWT.getModuleBaseURL() +#+HistoryTokens.TAG_CLOUD_TOKEN; strUrl += a href='+urlString+' style='font-size: 12pt;' class='tagLinkDiv'TagName/a; String tagCloudEncodedStr = URL.encode(TAGS_START + strUrl + TAGS_END); swfWidget.addParam(flashvars, flashParameters + tagcloud= + tagCloudEncodedStr); tagWidgetPanel.add(swfWidget); initWidget(tagWidgetPanel); } I am not getting why this problem occurs? Is this problem of IE7.0 and Safari? Please help me for getting out of this problem. Thanks in advance. Priya. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
[gwt-contrib] Re: Generators and hosted mode refresh
1) A generator uses the SystemCL. Not recommended because it won't see changes in client code unless hot-replace is working. 2) A generator uses TypeOracle. Recommended; changes are picked up on refresh. 3) A generator uses the TypeOracleClassLoader. Useful for interacting with reflection-based code, changes are picked up on refresh. I see no reason to support #1 in any way, or worry about mixed-use for #1 and #3. Just to be sure. We are talking at #3 about generator loaded in System that is using TOCL? I think we have a different opinion in only one thing. I'd like to guarantee generators identity i.e. if this is generator code Foo foo = (Foo) ctx.getTypeOracleClassLoader(com.foo.Foo); even if there is a new Foo available it will return the one from System since Foo is directly referenced by the generator. On the other hand Class? clazz = ctx.getTypeOracleClassLoader(com.Bar) will return class from TOCL since it is not directly referenced by the generator. Maybe I've again wanted to have it like this in order not to make any changes to gin. How about TOCL doesn't worry about mixed-use but it provides a way for the generator to get a fine grained functionality over this? Something like ctx.getTypeOracleClassLoader().useSystemFor().startingWith (com.foo.client.).equalTo(com.foo.client2.Baz).create(); in GIN's case we could then do ctx.getTypeOracleClassLoader().useSystemFor().startingWith (com.google.gwt.inject.).create(); and not worry about any surprises. We're talking here about how to solve B with no regard for A. Yes. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Generators and hosted mode refresh
On Fri, Jul 24, 2009 at 6:01 AM, Alen Vrecko alen_vre...@yahoo.com wrote: 1) A generator uses the SystemCL. Not recommended because it won't see changes in client code unless hot-replace is working. 2) A generator uses TypeOracle. Recommended; changes are picked up on refresh. 3) A generator uses the TypeOracleClassLoader. Useful for interacting with reflection-based code, changes are picked up on refresh. I see no reason to support #1 in any way, or worry about mixed-use for #1 and #3. Just to be sure. We are talking at #3 about generator loaded in System that is using TOCL? Yes. I think we have a different opinion in only one thing. I'd like to guarantee generators identity i.e. if this is generator code Foo foo = (Foo) ctx.getTypeOracleClassLoader(com.foo.Foo); even if there is a new Foo available it will return the one from System since Foo is directly referenced by the generator. On the other hand Class? clazz = ctx.getTypeOracleClassLoader(com.Bar) will return class from TOCL since it is not directly referenced by the generator. I just don't see how that's tractable. What are you proposing, analyze the Generator class's bytecode to see what classed it directly references? But it might depend on other libraries, so how deep does that rabbit hole go? Something like ctx.getTypeOracleClassLoader().useSystemFor().startingWith (com.foo.client.).equalTo(com.foo.client2.Baz).create(); in GIN's case we could then do ctx.getTypeOracleClassLoader().useSystemFor().startingWith (com.google.gwt.inject.).create(); and not worry about any surprises. That seems, complicated and unnecessary. If you really, really need the SystemCL version of a class, you'd just access it directly. If you want to reflect over the client code as a holistic unit, you'd use the TypeOracleClassLoader. I prefer clarity to warm and fuzzy. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: [SOLVED] Re: Trouble building GWT 2.0 from svn
I think it'd be reasonable. Patches welcome, particularly as you have the reproduction case. ;-) On Fri, Jul 24, 2009 at 10:33 AM, mescali...@gmail.com mescali...@gmail.com wrote: ok sorry for all this bugspam I finally solved this issue. it turns out that Gentoo has many ant tasks installed by default. (it is perfectly normal, as it is a big compile farm :D) I tried setting ANT_TASKS=none and this lead to a successfull compile. so it was something about some newer stuf that there is in Gentoo and not supported by actual build system. would be reasonable to add the build.sysclasspath=ignore property or something that could fix this issue GWT side? I compile tons of java apps with ant and gentoo, and none ever give a problem, so I don't think it's something that has to be fixed in ant itself cheers --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Generators and hosted mode refresh
in GIN's case we could then do ctx.getTypeOracleClassLoader().useSystemFor().startingWith (com.google.gwt.inject.).create(); and not worry about any surprises. That seems, complicated and unnecessary. If you really, really need the SystemCL version of a class, you'd just access it directly. If you want to reflect over the client code as a holistic unit, you'd use the TypeOracleClassLoader. I prefer clarity to warm and fuzzy. The point is that the returned Class from TOCL is linked with another Class which we'd like to get from the SystemCL in order for it to inter-operate with generator machinery. Sure it is possible to get the GinModules from TOCL but as such cannot be put in the ModuleAdapter since the ModuleAdaper is linked with GinModules loaded in the System. You're right, this is complicated. But I don't think it is unnecessary. In that case maybe the TOCL can have a method byte[] getBytes(String name). In that case TOCL is a holistic unit yet the generators have the flexibility to mix and match the classes as they please on their own. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] RPC forward/backward compat
Hey all, We've been struggling with the issue of RPC forward/backward incompatibility for a little while and I thought I'd bring it to the list for discussion. As some of you know, one of our use-cases for GWT is embedding the compiled JS in a Firefox extension. Unfortunately, the lifetime of the code in the extension cannot be easily tied to the lifetime of the code on the server. The consequence of this is that when our server- side code is updated, the client-side code starts throwing IncompatibleRemoteService exceptions until the user updates. We also see this issue briefly during our website code updates - our load- balanced servers are incrementally updated with background code which means that for a brief period, some active users get RPC exceptions. There's a number of ways we can work around it for the extension (forcing the user to update is the easiest), but this is somewhat inconvenient for our users. The ideal solution would be offering a forward/backward compatible RPC protocol that would allow some flexibility in versioning between client and server. I'd like to be able to push out a server that is backward-compatible aware and have it able to serve downlevel requests for some period of time. For our website, the period of time would be a few minutes while all the backends update and the static code is pushed out. For our extension, this period could be on the order of days or even a week. One of the skunkworks projects I've been working for a while is a GWT port of Thrift (a versioned protocol similar to Protobuf), basically a direct eval RPC library that would let us use the versioned protocol to replace our RPC code. One of the big downsides is that we'd lose a lot of the niceties of GWT RPC, mostly smart objects and polymorphism. It's getting close to completion, but it's been a while since I've last had a chance to work on it and the new deRPC branch has shown up. Is the concept of versioning something that belongs in the core GWT RPC code, or is this something better suited for an external library? Thanks, Matt. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Include Window init scripts using TextResource instead of function.toString()
Reviewers: jgw, Description: Description: = WindowImplIE needs to embed a script tag on the outer window in order to sink events on the outer window from within an iframe, which means we need the init event methods as strings. Previously, we did this by writing a JSNI black that uses function.toString(), but a recent patch breaks this. Fix: = We now include the functions from individual .js files using a TextResource, which is much cleaner. Testing: I verified all Window event handlers still fire and that the remote tests now run. Please review this at http://gwt-code-reviews.appspot.com/51814 Affected files: user/src/com/google/gwt/user/User.gwt.xml user/src/com/google/gwt/user/client/impl/WindowImplIE.java user/src/com/google/gwt/user/client/impl/initWindowCloseHandler.js user/src/com/google/gwt/user/client/impl/initWindowResizeHandler.js user/src/com/google/gwt/user/client/impl/initWindowScrollHandler.js --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Include Window init scripts using TextResource instead of function.toString()
This patch is an improvement either way, but it doesn't fix the tests. It looks like various tests are causing an infinite loop. Looking into it now. http://gwt-code-reviews.appspot.com/51814 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Include Window init scripts using TextResource instead of function.toString()
On 2009/07/24 17:27:00, jlabanca wrote: This patch is an improvement either way, but it doesn't fix the tests. It looks like various tests are causing an infinite loop. Looking into it now. LGTM. http://gwt-code-reviews.appspot.com/51814 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Include Window init scripts using TextResource instead of function.toString()
One thing this setup won't do is to minify the JS. http://gwt-code-reviews.appspot.com/51814 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Record line numbers for JsExpressions derived from JSNI methods
Reviewers: scottb, Message: Review requested. Description: Rhino's Node.getLineno() only returns useful data for JS statements. This patch changes GWT's JsParser to provide statement-level line number resolution for JsExpressions. Please review this at http://gwt-code-reviews.appspot.com/51816 Affected files: M dev/core/src/com/google/gwt/dev/js/JsParser.java --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Record line numbers for JsExpressions derived from JSNI methods
Mostly LGTM. http://gwt-code-reviews.appspot.com/51816/diff/1/2 File dev/core/src/com/google/gwt/dev/js/JsParser.java (right): http://gwt-code-reviews.appspot.com/51816/diff/1/2#newcode159 Line 159: SourceInfo toReturn = program.createSourceInfo(lineno, parent.getFileName()); Why can't we use the same SourceInfo instance if we borrow the parent's info? http://gwt-code-reviews.appspot.com/51816/diff/1/2#newcode355 Line 355: @SuppressWarnings(unchecked) All this stuff is really separate, right? http://gwt-code-reviews.appspot.com/51816 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Record line numbers for JsExpressions derived from JSNI methods
http://gwt-code-reviews.appspot.com/51816/diff/1/2 File dev/core/src/com/google/gwt/dev/js/JsParser.java (right): http://gwt-code-reviews.appspot.com/51816/diff/1/2#newcode159 Line 159: SourceInfo toReturn = program.createSourceInfo(lineno, parent.getFileName()); Will change. http://gwt-code-reviews.appspot.com/51816/diff/1/2#newcode355 Line 355: @SuppressWarnings(unchecked) On 2009/07/24 18:07:37, scottb wrote: All this stuff is really separate, right? It's separate, but I thought I would get rid of the warnings while I was in this file. If you want, I'll commit it as a separate change. http://gwt-code-reviews.appspot.com/51816 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Record line numbers for JsExpressions derived from JSNI methods
http://gwt-code-reviews.appspot.com/51816/diff/1/2 File dev/core/src/com/google/gwt/dev/js/JsParser.java (right): http://gwt-code-reviews.appspot.com/51816/diff/1/2#newcode159 Line 159: SourceInfo toReturn = program.createSourceInfo(lineno, parent.getFileName()); BTW: I didn't necessarily mean you should change it, but I wanted to ask the question. Is it ok to share SourceInfo objects in light of SOYC? http://gwt-code-reviews.appspot.com/51816/diff/1/2#newcode355 Line 355: @SuppressWarnings(unchecked) Separate's always better when there's feelings invooOOOoooOOooOlved. http://gwt-code-reviews.appspot.com/51816 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] JsStackEmulator incorrectly parses out the base name
Reviewers: robertvawter_google.com, Description: Description: === JsStackEmulator#baseName() does not handle urls from the file system (eg. file:whatever). This can result in an infinite loop in StackTraceCreator. Fix: Fixed the parser based on bob's suggestion. Please review this at http://gwt-code-reviews.appspot.com/51817 Affected files: dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java Index: dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java === --- dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java (revision 5787) +++ dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java (working copy) @@ -684,7 +684,12 @@ * Strips off the final name segment. */ private String baseName(String fileName) { + // Try the system path separator int lastIndex = fileName.lastIndexOf(File.separator); + if (lastIndex == -1) { +// Otherwise, try URL path separator +lastIndex = fileName.lastIndexOf('/'); + } if (lastIndex != -1) { return fileName.substring(lastIndex + 1); } else { --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: JsStackEmulator incorrectly parses out the base name
LGTM http://gwt-code-reviews.appspot.com/51817 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Trouble building GWT 2.0 from svn
Something wrong with my windows env. I rebuilt successfully on a different windows env. On Jul 24, 9:24 am, Freeland Abbott fabb...@google.com wrote: Huh. Well, if you look in dev/core/build.xml, you should see the rules for building alldeps.jar; I'd edit that block heavily to add some more diagnostics. I also like using both the -d and also -v (verbose) flag to ant; it should, for example, mention classpath entries it skips because they aren't there, or things skipped because they're already up-to-date, etc. I don't see any good reason---or, off the top of my head, any bad reason---it shouldn't work if your environment is correctly configured. I'll trust you that is, but in the Reagan-esque trust but verify construct... do files from the PatternSet, e.g. /home/federico/gwt-trunk/tools/lib/eclipse/jdt-3.4.2.jar, actually exist in that path? You could also try changing that alldeps.jar target back to a vanilla jar from jar.bydate; see my change at r5537. The downside of that is that we have several different versions of, say, the servlet api classes, and without jar.bydate you'll get an old one in the jar first, and so a no-changes rebuild will think it's out-of-date, causing a lot of spurious rebuild activity to waste your time. Since this is used working in other settings, I hope it's not a factor here, but it's not hard to unmerge change 5537 and find out. Also, did I see Mark M. reporting the same misbehavior with alldeps.jar on Windows? Is that still bad? On Fri, Jul 24, 2009 at 10:06 AM, mescali...@gmail.com mescali...@gmail.com wrote: brett.wooldridge wrote: That one is going to be tough to track down. I would start by comparing the shell environments. You might also try running ant with the -d (debug option) and redirecting output to a file. If possible, make sure the directory names you are building in are identical between the Ubuntu machine and the Gentoo machine -- then diff the two outputs (successful and unsuccessful). If both are running after an 'ant clean', and the paths are the same, there should be very few diffs. The crucial difference between those two machines is probably somewhere in that diff. -Brett nice idea I tried diffing the outputs and the first relevant difference I notice is in performing the task build.alldeps.jar. here the Gentoo box output: build.alldeps.jar: [mkdir] Created dir: /home/federico/gwt-trunk/trunk/build/out/dev/core fileset: Setup scanner in dir /home/federico/gwt-trunk/tools/lib with patternSet{ includes: [apache/tapestry-util-text-4.0.2.jar, apache/ant-1.6.5.jar, eclipse/jdt-3.4.2.jar, jetty/jetty-6.1.11.jar, tomcat/ant-launcher-1.6.5.jar, tomcat/catalina-1.0.jar, tomcat/catalina-optional-1.0.jar, tomcat/commons-beanutils-1.6.jar, tomcat/commons-collections-3.1.jar, tomcat/commons-digester-1.5.jar, tomcat/commons-el-1.0.jar, tomcat/commons-logging-1.0.jar, tomcat/commons-modeler-1.1.jar, tomcat/jakarta-regexp-1.3.jar, tomcat/jasper-compiler-1.0.jar, tomcat/jasper-runtime-1.0.jar, tomcat/jsp-api-2.0.jar, tomcat/mx4j-jmx-1.1.jar, tomcat/naming-common-1.0.jar, tomcat/naming-factory-1.0.jar, tomcat/naming-java-1.0.jar, tomcat/naming-resources-1.0.jar, tomcat/servlet-api-2.5.jar, tomcat/servlet-api-2.4.jar, tomcat/servlets-common-1.0.jar, tomcat/servlets-default-1.0.jar, tomcat/servlets-invoker-1.0.jar, tomcat/tomcat-coyote-1.0.jar, tomcat/tomcat-http11-1.0.jar, tomcat/tomcat-jk2-2.1.jar, tomcat/tomcat-util-5.1.jar] excludes: [] } fileset: Setup scanner in dir /home/federico/gwt-trunk/trunk/dev/core with patternSet{ includes: [build.xml] excludes: [] } fileset: Setup scanner in dir /home/federico/gwt-trunk/trunk/build/out/dev/core with patternSet{ includes: [alldeps.jar] excludes: [] } the Ubuntu box output is very long, as it is actually making something: build.alldeps.jar: [mkdir] Created dir: /home/federico/gwt-trunk/trunk/build/out/dev/core Class java.util.Vector loaded from parent loader (parentFirst) Finding class net.sf.antcontrib.logic.OutOfDate$CollectionEnum Loaded from /home/federico/gwt-trunk/tools/antlib/ant-contrib-1.0b3.jar net/sf/antcontrib/logic/OutOfDate$CollectionEnum.class Class org.apache.tools.ant.types.EnumeratedAttribute loaded from parent loader (parentFirst) Class net.sf.antcontrib.logic.OutOfDate$CollectionEnum loaded from ant loader (parentFirst) Finding class net.sf.antcontrib.logic.OutOfDate$DeleteTargets Loaded from /home/federico/gwt-trunk/tools/antlib/ant-contrib-1.0b3.jar net/sf/antcontrib/logic/OutOfDate$DeleteTargets.class Class net.sf.antcontrib.logic.OutOfDate$DeleteTargets loaded from ant loader (parentFirst) Class java.util.Iterator loaded from parent loader (parentFirst) fileset: Setup scanner in dir /home/federico/gwt-trunk/tools/lib with patternSet{ includes: [apache/tapestry-util-text-4.0.2.jar, apache/ant-1.6.5.jar,
[gwt-contrib] Re: RPC forward/backward compat
On 24-Jul-09, at 6:39 PM, BobV wrote: I have a design wave going on about how to add this to the new RPC implementation. Here's a cruddy copy-and-paste of the current state of the document. Bob, this is awesome! Is the plan to land this as part of deRPC, or is this a future feature that will land beyond deRPC? Also, will this be supported on methods themselves? For instance, can I mark a new method parameter as @Optional so that older clients don't need to provide it? Conversely, could we remove a parameter from a method and still support clients sending data with the old signature? One more question... Is it possible to incorporate the idea of numbered fields into this design? This would make it much easier to interop with Thrift (and possibly protobuf), both of which use numeric keys for versioning. We'd probably write some code to output GWTRPC- compatible Thrift objects from our IDL, which means that we'd have numeric keys already set up and we wouldn't have to worry about versioning issues when renaming fields. Thanks, Matt. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RPC forward/backward compat
Also, will this be supported on methods themselves? For instance, can I mark a new method parameter as @Optional so that older clients don't need to provide it? Conversely, could we remove a parameter from a method and still support clients sending data with the old signature? I could go either way on that. My thinking here was to just use the existing Java method override semantics. As long as the servlet has a method that will accept the parameters actually sent by the client, the request would proceed. The older methods wouldn't need to be in the RPC interfaces themselves, just (deprecated) methods on the servlet. One more question... Is it possible to incorporate the idea of numbered fields into this design? This would make it much easier to interop with Thrift (and possibly protobuf), both of which use numeric keys for versioning. We'd probably write some code to output GWTRPC- compatible Thrift objects from our IDL, which means that we'd have numeric keys already set up and we wouldn't have to worry about versioning issues when renaming fields. I'm not really sure why you'd want to do this. The numbering / tags in protocol buffers are more of an implementation detail to minimize the number of bytes in the payload and to provide a meaningful way to support the use of the protocol message across different languages. If you have a concrete use case, please give me an example. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Testing new GWT RPC implementation (aka deRPC)
The deRPC code went into trunk a week or so ago, and no initial fires have been reported. I'd like to get folks on GWTC to give it a shakedown. Quickstart (for vanilla configurations): - Inherit com.google.gwt.rpc.Rpc in your gwt.xml file - Change your remote service interfaces to extend com.google.gwt.rpc.client.RpcService - Change your servlet to extend com.google.gwt.rpc.server.RpcServlet Right now, the new code base should be functionally equivalent to the legacy RPC system. The plan is to get the new code base stabilized with the existing feature set, before adding new features. Slowstart (for people doing their own thing) - The gwt.rpc file is now mandatory for operation of the RPC system. It's no longer just a policy file, but contains metadata about any given permutation. You can override RpcServlet.findClientOracleData() to alter how this data is retrieved. - If you have been using the static gwt.user.rpc.server.RPC utility class, there is a new formulation of the same in gwt.rpc.server.RPC. Instances of the ClientOracle type can be obtained from WebModeClientOracle.load() or simply instantiating a HostedModeClientOracle. - If you want your servlet to be able to talk to both legacy and new RPC clients, extend HybridServiceServlet. I'm mainly looking for the following kinds of feedback: - Knowing that it did work is helpful. - If it doesn't work, please tell me how it breaks: - Run your JVM with -Dgwt.rpc.dumpPayload=true to have RpcServlet emit the incoming and outgoing payloads to System.out. - There are a lot of low-hanging optimizations that remain to be done. If you have any particular metrics or features that you particularly care about, let me know so I can prioritize accordingly. Why switch? - Faster IE6 performance - Hosted Mode clients don't need a serialization policy file pushed to the server, so you can more easily test changes to client code in a -noserver configuration. - A much more hackable code base to add oft-requested features to the GWT RPC system. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RPC forward/backward compat
On 24-Jul-09, at 9:11 PM, BobV wrote: Also, will this be supported on methods themselves? For instance, can I mark a new method parameter as @Optional so that older clients don't need to provide it? Conversely, could we remove a parameter from a method and still support clients sending data with the old signature? I could go either way on that. My thinking here was to just use the existing Java method override semantics. As long as the servlet has a method that will accept the parameters actually sent by the client, the request would proceed. The older methods wouldn't need to be in the RPC interfaces themselves, just (deprecated) methods on the servlet. From a dev perspective, it might be easiest if we could make methods optional directly on the method. It more closely matches our current modus operandi w.r.t. thrift - the new parameters are added directly to the method, while the old ones are simply removed. Regardless of the method compatibility story, it would be very helpful to have an RPC validation utility: given this set of client RPC manifests, can we successfully parse the requests? One more question... Is it possible to incorporate the idea of numbered fields into this design? This would make it much easier to interop with Thrift (and possibly protobuf), both of which use numeric keys for versioning. We'd probably write some code to output GWTRPC- compatible Thrift objects from our IDL, which means that we'd have numeric keys already set up and we wouldn't have to worry about versioning issues when renaming fields. I'm not really sure why you'd want to do this. The numbering / tags in protocol buffers are more of an implementation detail to minimize the number of bytes in the payload and to provide a meaningful way to support the use of the protocol message across different languages. If you have a concrete use case, please give me an example. Good point- I'm not sure I can really offer a good example that would justify this effort. The only reason I can see to do it would be to prevent field renames from breaking serialization compatibility (something we take for granted today). That can be mitigated through developer education and as it stands, there's nothing in this model that would prevent us from generating GWT-compatible stubs from our thrift IDL. Thanks for answering my questions, Matt. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---