Re: GWT with Linux Ubuntu 8.10
Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: onModuleLoad never called in Tomcat
Solved it! Lothar, you were on the right track. Turns out giving GWT modules a name that starts in an uppercase letter is a very bad idea... What happens is that when it get's packaged in the war file, all package parts (a.b.c.moduleName) will be converted to start with a lowercase. This leads to 404's where files like '...nocache.js' are not found. Hope someone else finds this and spares themselves a frustrating day of fiddling with war files ;) Jaco On Jan 19, 8:31 pm, Lothar Kimmeringer j...@kimmeringer.de wrote: superkruger schrieb: In hosted mode the app works fine, but as soon as I package it into a war and deploy to tomcat or jboss, the onModuleLoad never get's called and the container reports no problems. What gets displayed is the entrypoint html file contents, but obviously none of the div contents. Check the logfiles of Tomcat, especially the request-log. Maybe some files - like the Javascript-file - are not found (leading to a 404-entry in the requets-log). Regards, Lothar --~--~-~--~~~---~--~~ You received 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 with Linux Ubuntu 8.10
Hi Muhannad, You can keep the context parameters in your web.xml itself. - Litty Preeth On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote: Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT with Linux Ubuntu 8.10
Hi Litty, But as I told you before the folder named tomcat is not exist (I don't know why). When I built the same application on Windows, that folder tomcat is automatically created! Thanks! On Jan 20, 10:42 am, Litty Preeth preeth.h...@gmail.com wrote: Hi Muhannad, You can keep the context parameters in your web.xml itself. - Litty Preeth On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote: Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT with Linux Ubuntu 8.10
How are you creating the project? Through cypal studio or GWT projectCreator On Tue, Jan 20, 2009 at 2:22 PM, Muhannad muhannad@gmail.com wrote: Hi Litty, But as I told you before the folder named tomcat is not exist (I don't know why). When I built the same application on Windows, that folder tomcat is automatically created! Thanks! On Jan 20, 10:42 am, Litty Preeth preeth.h...@gmail.com wrote: Hi Muhannad, You can keep the context parameters in your web.xml itself. - Litty Preeth On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote: Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem with file upload
Image saving on folder and String[] photo are ok! I write array on a file when click on widget album after uploading and image name it's present. In development shell, appears this message when I open a album widget after uploading of image: Resource not found wpimg/album/Sport/image1.jpg. Could a file missing from the public path or a servlet tag misconfigured??? Obviously when I reload application, this message disappear. Daniele 2009/1/19, Daniele dany.hat...@gmail.com: I try! 2009/1/18, gregor greg.power...@googlemail.com: so if you place a debug point here: private static final long serialVersionUID = 403L; public String[] getImageName(String category) { File photo = new File(src/com/webphotogallery/public/ wpgimg/album/ + category); //File photo = new File(wpgimg/album/ + category); String[] photoList = photo.list(); return photoList; DEBUG } Does the new image appear in the photoList array? On Jan 18, 3:32 pm, Daniele dany.hat...@gmail.com wrote: File are saved into a folder that I choose. I look into a folder when application make a upload call. But image doesn't appear when open a album widget... 2009/1/14, Daniele dany.hat...@gmail.com: I try some. Thanks. Daniele. 2009/1/14, gregor greg.power...@googlemail.com: There's nothing obviously wrong with this, and the fact that the uploaded photo appears when you restart server supports that. Next obvious thing to eliminate may be to check exactly where on your disk the uploaded photo is actually written to. Perhaps it is not where you expect, and what is happening is that it is being copied over to the right location as part of your deployment/hosted mode running procedure when you restart server. If you upload a photo and then check where it goes while the app is still running, you should be able to confirm that one way or another. On Jan 14, 1:52 pm, Daniele dany.hat...@gmail.com wrote: Code of upload [CODE] package com.webphotogallery.server; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.FileCleanerCleanup; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.io.FileCleaningTracker; public class UploadPhoto extends HttpServlet{ /* * */ private static final long serialVersionUID = 144332L; public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); String UPLOAD_DIRECTORY = ./src/com/webphotogallery/public/wpgimg/album/; //String UPLOAD_DIRECTORY = wpgimg/album/; ListFileItem items = null; try { items = upload.parseRequest(request); } catch (FileUploadException e) { e.printStackTrace(); } Iterator iter = items.iterator(); while(iter.hasNext()) { FileItem it = (FileItem)iter.next(); if(it.isFormField()) UPLOAD_DIRECTORY+=it.getString() + /; else { File uploadedFile = new File(UPLOAD_DIRECTORY + it.getName()); try{ it.write(uploadedFile); }catch (Exception e) { e.printStackTrace(); } } } }} [/CODE] Code of servlet wich return String[] of images [CODE] package com.webphotogallery.server; import java.io.File; import com.google.gwt.user.server.rpc.RemoteServiceServlet; import com.webphotogallery.client.LoadPhotoFromAlbum; public class LoadPhotoFromAlbumImpl extends RemoteServiceServlet implements LoadPhotoFromAlbum{ /** * */ private static
Re: GWT with Linux Ubuntu 8.10
Through GWT projectCreator On Jan 20, 10:56 am, Litty Preeth preeth.h...@gmail.com wrote: How are you creating the project? Through cypal studio or GWT projectCreator On Tue, Jan 20, 2009 at 2:22 PM, Muhannad muhannad@gmail.com wrote: Hi Litty, But as I told you before the folder named tomcat is not exist (I don't know why). When I built the same application on Windows, that folder tomcat is automatically created! Thanks! On Jan 20, 10:42 am, Litty Preeth preeth.h...@gmail.com wrote: Hi Muhannad, You can keep the context parameters in your web.xml itself. - Litty Preeth On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote: Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Image Class object does not show image on browser
I'm not sure whether i get this right, but if you want a user to select an image on his computer and then show it - it can't be done without sending it to a server. Or you can use google gears - but that you have to install on every client computer: http://gears.google.com/ There were a lot of discussions in this group about uploading files (esp. images) - use search for more information. On 20 Jan., 07:05, ship shilpi10ve...@gmail.com wrote: Image class object does not show image on IE 7.0, it show only a small colored rectangle on panel. This image client select on his machine. I can not fix this image in gwt public folder Pleeease give proper solution. On Jan 19, 8:13 am, ship shilpi10ve...@gmail.com wrote: Thanks for reply, But I am selecting images by using FileUpload class object on client machine i.e. client select the image on his machine and after clicking on button he can see the image and other options which i am providing to client. For that i can not interact with server, this image is selected by client. I can not use GWT public folder or dynamic servlet images for that. I use GWT public folder images to show statically on my web page. These images are showing on IE 6.0 and 7.0 both but user selected images are not displaying on IE 7.0. When i use getHeight() and getWidth() methods of Image class on the user selected image, It gives zero values for both. Please give the solution. On Jan 19, 7:01 pm, David Hoffer dhoff...@gmail.com wrote: The Image class expects the image to be specified in terms of a server (http) URL, same as the setURL() method. Typically this is either a static image in your GWT public folder or a dynamic image via a servlet. -Dave On Mon, Jan 19, 2009 at 2:52 AM, ship shilpi10ve...@gmail.com wrote: hi to all, In my web application, I am creating a object of FileUpload class, and adding a button on the web page, when i click on the button, it takes the file name of the browsed file by using getFilename() method of FileUpload class. If this file is an image then I create a image object and pass this file name in the image object like that FileUpload ff = new FileUpload(); . . String s = ff.getFilename(); Image img = new Image(s); panel.add(img); . Then i add this image object on the panel. Now if i run this program on the IE6.0 it runs successfully i.e. image is displayed on the panel. But if i run this program on the IE 7.0, the image is not displayed on the panel. When i alerts this Image object in the alert dialog box o IE 7.0 this displays: Window.alert(img); IMG class=gwt-Image style=WIDTH: 200px; HEIGHT: 200px src=c:\users \3709001.jpg _eventBits=229501 _pendingSrc=c:\users\3709001.jpg But when i run this on the IE 6.0 this alert displays: IMG class=gwt-Image style=WIDTH: 200px; HEIGHT: 200px src=c:\users \3709001.jpg _eventBits=229501 _pendingSrc=null means _pendingSrc is null on the IE 6.0 but pendingSrc is the same as src value in IE 7.0. Please tell me the solution that how could i displayed image on IE7.0 by using gwt??- Hide quoted text - - Show quoted text -- 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 -~--~~~~--~~--~--~---
GWT-maps-api: Maps API has not been loaded
We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny --~--~-~--~~~---~--~~ You received 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 debug my entire web app in hosted mode
Hi, The steps are following: 1. Build war file with your GWT web application (You may use maven, or cypal studio Eclipse plugin). 2. Deploy this war file on Tomcat. 3. Start Tomcat in debug mode and attach to it using Remote debug. -- After this Eclipse should show you one debugging process (your serverside). 4. Create new Eclipse debug configuration (Select Java Application type). 5. On Main tab of this configuration put Main class: com.google.gwt.dev.GWTShell. 6. On Arguments tab supply following values: 6.1. Program arguments: -noserver URL_TO_ACCESS_DEPLOYED_APPLICATION -style PRETTY (EX: -noserver http://localhost:8080/myapplication/com.mycompany.myapplication/ myapplication.htmlhttp://localhost:8080/myapplication/com.mycompany.myapplication/SamsungBto.html-style PRETTY) 6.2 [optional] VM arguments: -Xmx 512m 7. On ClassPath tab add: gwt-servlet-xxx.jar, gwt-user-xxx.jar, gwt-windows-xxx.jar, gwt-dev-windows-xxx.jar (or analogs depending on your platform). Start this configuration (Application in hosted mode should be opened) 2009/1/19 chandraj...@gmail.com chandraj...@gmail.com Hi All, I tried doing these steps for gwt 1.5. But I can't get the debugger up at my breakpoints. How do I refer the eclipse debugger to debug the hosted mode app. I ran the shell.cmd with -noserver -out %~dp0\www %* http://localhost:8082/myproject/MyApp/MyApp.html I created a Remote Java Application in the Debug Configurations which refer to the Tomcat RemoteDebugger jpda port 8000 Thanks, On Jan 18, 4:11 am, Lex alexey.tsiunc...@gmail.com wrote: Hello You may find answer here: http://code.google.com/support/bin/answer.py?answer=55200 On Jan 17, 3:20 am, chandraj...@gmail.com chandraj...@gmail.com wrote: I want my entire legacy app to be run from the hosted mode so that I can debug the front end code(java). Currently if I deploy to tomcat and attach a Remote debugger I can't debug the GWT code because they are now html JS. I want a way to debug GWT working within the full application. How can I please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: RESTful URL with GWT
hi, Harald, why you don't just use RPC with Spring? Any goodies to add Restlet and RESTful with GWT? On 1月15日, 下午4时01分, Harald Pehl harald.p...@googlemail.com wrote: On 14 Jan., 02:44, zhouxing fang fangzhoux...@gmail.com wrote: hi,Harald,can you give more detail of your project? Is it possible to use RESTful service with Ext-GWT? We're using the following architecture / frameworks: 1. Server: Restlet Spring 2. Client: Restlet-GWT module GXT (http://extjs.com/products/gxt/) A typical request / response could be something like that (assuming that we're using XML): Client / UserService.java: public class UserService { public void getUsers() { new Client(Protocol.HTTP).get(http://server/users; new Callback() { public void onEvent(Request request, Response response) { XmlRepresentation xmlRepresentation = response.getEntityAsXml(); Document doc = xmlRepresentation.getDocument(); [parse XML] } }); } } Server / UsersResource.java (registered to handle http://server/ users): public class UsersResource extends Resource { public void UsersResource(Context context, Request request, Response response) { super(context, request, response); getVariants().add(new Variant(MediaType.TEXT_XML)); } public Representation represent(Variant variant) throws ResourceException { Representation result = new DomRepresentation (diaType.TEXT_XML); Document doc = rep.getDocument(); [Populate doc with users...] return result; } At the client side we parse the XML and turn it into ModelData instances so we can use them in the GXT widgets. In case of POST or PUT requests, we use forms at the client side and the Spring validation framework on the server side to validate and convert the form into POJOs. I'm not that familiar with GWT-EXT, but as they are very similiar in turn of classes / concepts, you should be able to use a similar approach. There's a preety good example of the Restlet-GWT module available at:http://wiki.restlet.org/docs_1.1/13-restlet/144-restlet/188-restlet.html Hope that helps! Greetings Harald --~--~-~--~~~---~--~~ You received 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: Need help with client server auth
Mike, thanks a lot. Your idea is clear. 2009/1/16 mikedshaf...@gmail.com mikedshaf...@gmail.com The simplest thing I can comment is: that's about your only option. You've got various levels of security issues here, so I'm going to assume the simplest. You need the web client to be trusted by the GWT server (the server end of the GWT-RPC). Then you need the GWT server to be trusted by the application server. In most of our applications, we do server to server trust using Kerberos, service tickets and a whole bunch of authentication that is way beyond anything I want to write here. For GWT-RPC, we do a session id that contains the users Kerberos credentials ticket, which can be verified by a Spring inserted filter on our GWT RPC. We have done cookies in a SQL database, but today we've got code that takes the credentials and sends them to a cookie on the browser. That cookie is then visible to the server as it is included in the web request. We don't use SSL to harden our pipes, but we could and might. All of our users at this time are inside the firewall and we are therefore dealing with them via an LDAP (Microsoft Active Directory in our case). All of this sounds like mumbo jumbo no doubt. To do real security like we're doing, we've had a couple of us working on this for a couple of years. We've also done less secure security (oxymoronic perhaps) where we create a special session key and store it in SQL. We then send it down to the client where it is cookied. Every request has the cookie and our server side then extracts the session and validates against the session table in SQL. Then using the same session id, we can determine the users' credentials that we've also stuck in another table. This has allowed us to do things like certain users can't insert records or whatever rule you employ. But our security auditors haven't historically loved this and that's what prompted us to develop the Kerberos/service ticket solution. Now we are working with WS-Security to truly secure our SOA services...it never ends... Later, Shaffer On Jan 16, 3:58 am, Mikhail M itmo@gmail.com wrote: Need help! I have an architecture described below 1) Client application 2) Server application Client and server applications hasn't dependencies and could be set on different servers. I have the same Object model using in both application. Client and server are using rpc to communicate. In server application I'm using Spring (org.springframework.web.servlet.DispatcherServlet) In client application - GWT It works perfect but it isn't secure. So now I need to add auth to my client application. Users could have different roles, that's why they could call only allowed remote procedures. Of course it should be checked on server side. I need some mechanism for detection users on server side. I could't find any suitable solution for my application architecture. I think should be any transparent mechanism for my architecture. Do you have any ideas? My idea is to add to every rpc call any parameter - session identifier. This identifier set to any user if auth was correct. This session id stored in data base for example and cleared after some times if user was inactive. --~--~-~--~~~---~--~~ You received 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: Date Calculation on Client side
I dont know what exactly u wanna do, but i ll show u a code related to Date manipulation i m using. Label l_time = new Label(); DateTimeFormat dtf = DateTimeFormat.getFormat(.MM.dd HH:mm:ss); l_time.setText(dtf.format(new Date())); --~--~-~--~~~---~--~~ You received 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: ListBox
To be more specific try something like this, list.addChangeListener(new ChangeListener(){ public void onChange(Widget widget){ // Get the index of the selected item int itemSelected = list.getSelectedIndex(); enableFlowPanel(itemSelected); } } --~--~-~--~~~---~--~~ You received 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 set parameters in com.google.gwt.http.client.RequestBuilder
I dont know , if i understood u well but here is the implementation for RequestBuilder POST url - url to send postData - data to send. RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,url); try { builder.setHeader(Content-Type, application/x-www-form- urlencoded); Request response = builder.sendRequest(postData, new RequestCallback () { --~--~-~--~~~---~--~~ You received 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: general question: should I create one or two pages
Or if u dont want to mess with Servlet Sessions just create 2 application projects And make them interact by cookies for example. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem with file upload
Have you tried hitting the refresh button rather than recompiling/ deploying the application after loading new image. Does this make a difference? On Jan 20, 8:59 am, Daniele dany.hat...@gmail.com wrote: Image saving on folder and String[] photo are ok! I write array on a file when click on widget album after uploading and image name it's present. In development shell, appears this message when I open a album widget after uploading of image: Resource not found wpimg/album/Sport/image1.jpg. Could a file missing from the public path or a servlet tag misconfigured??? Obviously when I reload application, this message disappear. Daniele 2009/1/19, Daniele dany.hat...@gmail.com: I try! 2009/1/18, gregor greg.power...@googlemail.com: so if you place a debug point here: private static final long serialVersionUID = 403L; public String[] getImageName(String category) { File photo = new File(src/com/webphotogallery/public/ wpgimg/album/ + category); //File photo = new File(wpgimg/album/ + category); String[] photoList = photo.list(); return photoList; DEBUG } Does the new image appear in the photoList array? On Jan 18, 3:32 pm, Daniele dany.hat...@gmail.com wrote: File are saved into a folder that I choose. I look into a folder when application make a upload call. But image doesn't appear when open a album widget... 2009/1/14, Daniele dany.hat...@gmail.com: I try some. Thanks. Daniele. 2009/1/14, gregor greg.power...@googlemail.com: There's nothing obviously wrong with this, and the fact that the uploaded photo appears when you restart server supports that. Next obvious thing to eliminate may be to check exactly where on your disk the uploaded photo is actually written to. Perhaps it is not where you expect, and what is happening is that it is being copied over to the right location as part of your deployment/hosted mode running procedure when you restart server. If you upload a photo and then check where it goes while the app is still running, you should be able to confirm that one way or another. On Jan 14, 1:52 pm, Daniele dany.hat...@gmail.com wrote: Code of upload [CODE] package com.webphotogallery.server; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.FileCleanerCleanup; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.io.FileCleaningTracker; public class UploadPhoto extends HttpServlet{ /* * */ private static final long serialVersionUID = 144332L; public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); String UPLOAD_DIRECTORY = ./src/com/webphotogallery/public/wpgimg/album/; //String UPLOAD_DIRECTORY = wpgimg/album/; ListFileItem items = null; try { items = upload.parseRequest(request); } catch (FileUploadException e) { e.printStackTrace(); } Iterator iter = items.iterator(); while(iter.hasNext()) { FileItem it = (FileItem)iter.next(); if(it.isFormField()) UPLOAD_DIRECTORY+=it.getString() + /; else { File uploadedFile = new File(UPLOAD_DIRECTORY + it.getName()); try{ it.write(uploadedFile); }catch (Exception e) { e.printStackTrace(); } } } }} [/CODE] Code of servlet wich return String[] of images [CODE] package com.webphotogallery.server;
Re: Date Calculation on Client side
Thanks Jake for your reply. I got the answer on GWT-Ext group that there is a Class called DateUtil in GWT-Ext that does that. On Jan 20, 1:10 pm, jake H pnosti...@gmail.com wrote: I dont know what exactly u wanna do, but i ll show u a code related to Date manipulation i m using. Label l_time = new Label(); DateTimeFormat dtf = DateTimeFormat.getFormat(.MM.dd HH:mm:ss); l_time.setText(dtf.format(new Date())); --~--~-~--~~~---~--~~ You received 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: Google Reader Splitter
anyone help? On Mon, Jan 19, 2009 at 5:25 PM, Kango_V djb.b...@gmail.com wrote: I'm trying to implement a splitter the same as that used in Google Reader. This is more of a collapsible panel rather than a splitter though. Anyone give me some pointers or explain how it's done. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Problem with file upload
Yes. Error is not introduced when I make the refresh through the push-button or reboot application. I am becoming crazy for this bug!!! :) Daniele. 2009/1/20, gregor greg.power...@googlemail.com: Have you tried hitting the refresh button rather than recompiling/ deploying the application after loading new image. Does this make a difference? On Jan 20, 8:59 am, Daniele dany.hat...@gmail.com wrote: Image saving on folder and String[] photo are ok! I write array on a file when click on widget album after uploading and image name it's present. In development shell, appears this message when I open a album widget after uploading of image: Resource not found wpimg/album/Sport/image1.jpg. Could a file missing from the public path or a servlet tag misconfigured??? Obviously when I reload application, this message disappear. Daniele 2009/1/19, Daniele dany.hat...@gmail.com: I try! 2009/1/18, gregor greg.power...@googlemail.com: so if you place a debug point here: private static final long serialVersionUID = 403L; public String[] getImageName(String category) { File photo = new File(src/com/webphotogallery/public/ wpgimg/album/ + category); //File photo = new File(wpgimg/album/ + category); String[] photoList = photo.list(); return photoList; DEBUG } Does the new image appear in the photoList array? On Jan 18, 3:32 pm, Daniele dany.hat...@gmail.com wrote: File are saved into a folder that I choose. I look into a folder when application make a upload call. But image doesn't appear when open a album widget... 2009/1/14, Daniele dany.hat...@gmail.com: I try some. Thanks. Daniele. 2009/1/14, gregor greg.power...@googlemail.com: There's nothing obviously wrong with this, and the fact that the uploaded photo appears when you restart server supports that. Next obvious thing to eliminate may be to check exactly where on your disk the uploaded photo is actually written to. Perhaps it is not where you expect, and what is happening is that it is being copied over to the right location as part of your deployment/hosted mode running procedure when you restart server. If you upload a photo and then check where it goes while the app is still running, you should be able to confirm that one way or another. On Jan 14, 1:52 pm, Daniele dany.hat...@gmail.com wrote: Code of upload [CODE] package com.webphotogallery.server; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.FileCleanerCleanup; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.io.FileCleaningTracker; public class UploadPhoto extends HttpServlet{ /* * */ private static final long serialVersionUID = 144332L; public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); String UPLOAD_DIRECTORY = ./src/com/webphotogallery/public/wpgimg/album/; //String UPLOAD_DIRECTORY = wpgimg/album/; ListFileItem items = null; try { items = upload.parseRequest(request); } catch (FileUploadException e) { e.printStackTrace(); } Iterator iter = items.iterator(); while(iter.hasNext()) { FileItem it = (FileItem)iter.next(); if(it.isFormField()) UPLOAD_DIRECTORY+=it.getString() + /; else { File uploadedFile = new File(UPLOAD_DIRECTORY + it.getName()); try{ it.write(uploadedFile); }catch (Exception e) { e.printStackTrace(); }
Width of the check box
Hi All. Please help me in assigning width to the following check box panel.add(new CheckBox()). Please guide how to add width for the check box. Thanks Regards, venkat --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
EventPreview in RichTextArea
Hi everyone! Been banging my head over this one for a while... I subclassed RichTextArea and implemented EventPreview and added it to the DOM. All is as expected, as long as we operate outside of the RichTextArea. When the mousepointer or the cursor is inside of the RTA the onEventPreview method is never called. Is there a way to do this? In particular, I am interested in catching keystrokes before they get to the RTA. Greetings from Brazil, 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 -~--~~~~--~~--~--~---
Re: What are you using for a backend??
I've been using PHP to write RESTful server. This way you are no writing it specifically for your GWT app and can use other clients as well since its pure HTTP. Also GET, PUT,POST and DELETE request work ok in GWT. This also allows to install the server on virtually every hoster there is. On 20 jan, 11:24, sloughran slough...@gmail.com wrote: So, in my messing around with GWT for the past year or so, I have been using RPC's to communicate to the server. The thing is, my projects have never gotten past my Eclipse project, so my server has just been a folder on my computer. I am looking at web hosting companies and I just see things like PHP, RUBY, PERL and such being allowed. I am not seeing JAVA being allowed, which I would need for my RPC's. So, my question is, what do people use for server side code? Do you use a web host with JAVA allowed? Do you use PHP and talk to it through HTML gets? --~--~-~--~~~---~--~~ You received 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: ListBox
Thank you Litty Preeth and Jake H I got it worked.. Thank you so much would you please tell me how to add width to a checkbox if it's in this form flowPanel.add(new CheckBox(strgrp)); It would be a great help ful. Thanks Regards, Venkat On Jan 20, 4:13 pm, jake H pnosti...@gmail.com wrote: To be more specific try something like this, list.addChangeListener(new ChangeListener(){ public void onChange(Widget widget){ // Get the index of the selected item int itemSelected = list.getSelectedIndex(); enableFlowPanel(itemSelected); } } --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
No GwtCompiler option to turn off hosted mode support
Hi, my GWT app only runs in web mode when deployed on a production server. So I'd like to get rid of all JavaScript code that is hosted mode specific. I had hoped for a GWTCompiler option to deactivate hosted mode support but did not find any. Does anybody know, if there's still a way to build a web-mode-only GWT app? Thanks a lot, Jörn --~--~-~--~~~---~--~~ You received 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: RESTful URL with GWT
Hi Fangzx, As the GWT client is not the only one for our server-side application, we have to offer a common interface based on XML/HTTP. Therefore Rest is IMHO the best solution. Greetings Harald On 20 Jan., 11:29, Fangzx fangzhoux...@gmail.com wrote: hi, Harald, why you don't just use RPC with Spring? Any goodies to add Restlet and RESTful with GWT? On 1月15日, 下午4时01分, Harald Pehl harald.p...@googlemail.com wrote: On 14 Jan., 02:44, zhouxing fang fangzhoux...@gmail.com wrote: hi,Harald,can you give more detail of your project? Is it possible to use RESTful service with Ext-GWT? We're using the following architecture / frameworks: 1. Server: Restlet Spring 2. Client: Restlet-GWT module GXT (http://extjs.com/products/gxt/) A typical request / response could be something like that (assuming that we're using XML): Client / UserService.java: public class UserService { public void getUsers() { new Client(Protocol.HTTP).get(http://server/users; new Callback() { public void onEvent(Request request, Response response) { XmlRepresentation xmlRepresentation = response.getEntityAsXml(); Document doc = xmlRepresentation.getDocument(); [parse XML] } }); } } Server / UsersResource.java (registered to handle http://server/ users): public class UsersResource extends Resource { public void UsersResource(Context context, Request request, Response response) { super(context, request, response); getVariants().add(new Variant(MediaType.TEXT_XML)); } public Representation represent(Variant variant) throws ResourceException { Representation result = new DomRepresentation (diaType.TEXT_XML); Document doc = rep.getDocument(); [Populate doc with users...] return result; } At the client side we parse the XML and turn it into ModelData instances so we can use them in the GXT widgets. In case of POST or PUT requests, we use forms at the client side and the Spring validation framework on the server side to validate and convert the form into POJOs. I'm not that familiar with GWT-EXT, but as they are very similiar in turn of classes / concepts, you should be able to use a similar approach. There's a preety good example of the Restlet-GWT module available at:http://wiki.restlet.org/docs_1.1/13-restlet/144-restlet/188-restlet.html Hope that helps! Greetings Harald --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: What are you using for a backend??
For RPC I use JSON but if GWT RPC is needed for my deployment I would go for Amazon EC2. There are plenty of virtual machine types available that provide java servlets. Peter 2009/1/20, sloughran slough...@gmail.com: So, in my messing around with GWT for the past year or so, I have been using RPC's to communicate to the server. The thing is, my projects have never gotten past my Eclipse project, so my server has just been a folder on my computer. I am looking at web hosting companies and I just see things like PHP, RUBY, PERL and such being allowed. I am not seeing JAVA being allowed, which I would need for my RPC's. So, my question is, what do people use for server side code? Do you use a web host with JAVA allowed? Do you use PHP and talk to it through HTML gets? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: What are you using for a backend??
Our primary dev targets are internal and therefore we control the servers...and use Java so GWT-RPC is beautiful. If doing it external and you just want a webhost, there are plenty that offer Java as an option. There are even more that offer PHP, like most everyone does. And then you would use JSON to communicate with your GWT app, not quite as slick as RPC, but still very usable. I hadn't thought of EC2, that's a great idea too, if your needs aren't met by a web host environment. Good luck! Later, Shaffer On Jan 20, 7:29 am, Peter Ondruška peter.ondru...@gmail.com wrote: For RPC I use JSON but if GWT RPC is needed for my deployment I would go for Amazon EC2. There are plenty of virtual machine types available that provide java servlets. Peter 2009/1/20, sloughran slough...@gmail.com: So, in my messing around with GWT for the past year or so, I have been using RPC's to communicate to the server. The thing is, my projects have never gotten past my Eclipse project, so my server has just been a folder on my computer. I am looking at web hosting companies and I just see things like PHP, RUBY, PERL and such being allowed. I am not seeing JAVA being allowed, which I would need for my RPC's. So, my question is, what do people use for server side code? Do you use a web host with JAVA allowed? Do you use PHP and talk to it through HTML gets?- 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-maps-api: Maps API has not been loaded
I don't see this complaint listed in the Maps Group http://groups.google.com/group/Google-Maps-API Are you saying that you are using a key value that was shipped with the API? If so, go ahead and sign up for your own key if you haven't already. On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke schimk...@googlemail.comwrote: We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received 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: Wait for a Response
I accomplish the same effect by passing Command objects to execute if the Yes/No button is clicked. On Jan 19, 11:40 am, sloughran slough...@gmail.com wrote: So the way I got around it was in my main class, I made a small private subclass that extends MessageBox and then overrides the onClickMethod(). Works well! On Jan 19, 9:13 am, sloughran slough...@gmail.com wrote: So I made a small MessageBox class. You pass in a question, and it creates a dialog box with the question and a yes or no. Is there a way I can do something like MessageBox mb = new MessageBox(question); mb.show(); //Wait till they Yes or No mb.getAnswer(); //Act on Yes or No. I could do it if I made the entire Messagebox class in my current function and add the action to the Yes or No buttons instead of acting on the boolean returned from mb.getAnswer(), but I want to use a default MessageBox class. It's kind of like I am looking for an Asynccallback. Can I do that, without RPC's. Just between a dialgobox and it's parent? --~--~-~--~~~---~--~~ You received 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 with Linux Ubuntu 8.10
So? What's next? On Jan 20, 11:10 am, Muhannad muhannad@gmail.com wrote: ThroughGWTprojectCreator On Jan 20, 10:56 am, Litty Preeth preeth.h...@gmail.com wrote: How are you creating the project? Through cypal studio orGWTprojectCreator On Tue, Jan 20, 2009 at 2:22 PM, Muhannad muhannad@gmail.com wrote: Hi Litty, But as I told you before the folder named tomcat is not exist (I don't know why). When I built the same application on Windows, that folder tomcat is automatically created! Thanks! On Jan 20, 10:42 am, Litty Preeth preeth.h...@gmail.com wrote: Hi Muhannad, You can keep the context parameters in your web.xml itself. - Litty Preeth On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote: Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google Reader Splitter
I haven't done exactly this, but similar. Used a three column grid (doing this from memory on the bus, so I can't include source). The middle column was sized very narrow and had a click event bound to it. This event changed the width of the first column to zero if the width was greater than zero, or to a set width if the current width was zero. I did a little moving of images to make the little arrow change from in to out. Sorry I can't be more specific, that was more than a few months ago! Good luck. Later, Shaffer On Jan 20, 5:24 am, Darren Bell djb.b...@gmail.com wrote: anyone help? On Mon, Jan 19, 2009 at 5:25 PM, Kango_V djb.b...@gmail.com wrote: I'm trying to implement a splitter the same as that used in Google Reader. This is more of a collapsible panel rather than a splitter though. Anyone give me some pointers or explain how it's done. Thanks.- 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: Problem with file upload
Hi Daniele, Are you trying to use these images as components of an image bundle or some sort of compile-time structure? If so, don't do it that way. Cheers, jec On Jan 20, 1:59 am, Daniele dany.hat...@gmail.com wrote: Image saving on folder and String[] photo are ok! I write array on a file when click on widget album after uploading and image name it's present. In development shell, appears this message when I open a album widget after uploading of image: Resource not found wpimg/album/Sport/image1.jpg. Could a file missing from the public path or a servlet tag misconfigured??? Obviously when I reload application, this message disappear. Daniele 2009/1/19, Daniele dany.hat...@gmail.com: I try! 2009/1/18, gregor greg.power...@googlemail.com: so if you place a debug point here: private static final long serialVersionUID = 403L; public String[] getImageName(String category) { File photo = new File(src/com/webphotogallery/public/ wpgimg/album/ + category); //File photo = new File(wpgimg/album/ + category); String[] photoList = photo.list(); return photoList; DEBUG } Does the new image appear in the photoList array? On Jan 18, 3:32 pm, Daniele dany.hat...@gmail.com wrote: File are saved into a folder that I choose. I look into a folder when application make a upload call. But image doesn't appear when open a album widget... 2009/1/14, Daniele dany.hat...@gmail.com: I try some. Thanks. Daniele. 2009/1/14, gregor greg.power...@googlemail.com: There's nothing obviously wrong with this, and the fact that the uploaded photo appears when you restart server supports that. Next obvious thing to eliminate may be to check exactly where on your disk the uploaded photo is actually written to. Perhaps it is not where you expect, and what is happening is that it is being copied over to the right location as part of your deployment/hosted mode running procedure when you restart server. If you upload a photo and then check where it goes while the app is still running, you should be able to confirm that one way or another. On Jan 14, 1:52 pm, Daniele dany.hat...@gmail.com wrote: Code of upload [CODE] package com.webphotogallery.server; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.FileCleanerCleanup; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.io.FileCleaningTracker; public class UploadPhoto extends HttpServlet{ /* * */ private static final long serialVersionUID = 144332L; public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); String UPLOAD_DIRECTORY = ./src/com/webphotogallery/public/wpgimg/album/; //String UPLOAD_DIRECTORY = wpgimg/album/; ListFileItem items = null; try { items = upload.parseRequest(request); } catch (FileUploadException e) { e.printStackTrace(); } Iterator iter = items.iterator(); while(iter.hasNext()) { FileItem it = (FileItem)iter.next(); if(it.isFormField()) UPLOAD_DIRECTORY+=it.getString() + /; else { File uploadedFile = new File(UPLOAD_DIRECTORY + it.getName()); try{ it.write(uploadedFile); }catch (Exception e) { e.printStackTrace(); } } } }} [/CODE] Code of servlet wich return String[] of images [CODE] package
Re: Image can not be seen when using ImageBundle
Hi Cheng, I think it has to do with the mechanism used to create image bundles based on an MD5 hash of the content. So the collision isn't surprising. Why do you want to have a duplicate image? GWT has a mechanism that transforms an image in an image bundle to a GWT Image widget. Have you investigated that path? Cheers, jec On Jan 19, 12:30 am, cheng weicheng...@gmail.com wrote: I now got the answer. I am not allowed to specify the same pic more than once in a ImageBundle. As long as the content of the two pics are the same, you can't put them together inside a ImageBundle. My case is as follows: public interface MethodDescriptor extends ImageBundle { @Resource(newOperation.gif)//newOperation.gif is put under the same package. AbstractImagePrototype getNewOperation(); @Resource(copyOfNewOperation.gif) AbstractImagePrototype getCopyOfNewOperation(); } I am not sure if this is a bug? On Jan 19, 11:50 am, cheng weicheng...@gmail.com wrote: public interface MethodDescriptor extends ImageBundle { @Resource(newOperation.gif)//newOperation.gif is put under the same package. AbstractImagePrototype getNewOperation();} methodDescriptor = GWT.create(MethodDescriptor.class); PushButton newOperation = new PushButton(getMethodDescriptor ().getNewOperation().createImage()); i am using gwt-windows-1.5.3. There is no image shown on the newOperation button in hosted mode. It's been very strange, as the source code is quite simple here. Is there anything i have missed out? Any idea and suggestion will be appreciated. Many thanks, Cheng Wei --~--~-~--~~~---~--~~ You received 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 with Linux Ubuntu 8.10
On Tue, Jan 20, 2009 at 8:54 AM, Muhannad muhannad@gmail.com wrote: So? What's next? One option is to use a properties file. --~--~-~--~~~---~--~~ You received 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: Width of the check box
On Tue, Jan 20, 2009 at 7:40 AM, Venkat venkivo...@gmail.com wrote: Hi All. Please help me in assigning width to the following check box panel.add(new CheckBox()). Please guide how to add width for the check box. I think checkboxes have a fixed width. Maybe you're looking to add a padding or margin to the box? Otherwise, you could create a custom checkbox-like widget. -Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: tree item and focus
On Mon, Jan 19, 2009 at 11:04 PM, Litty Preeth preeth.h...@gmail.com wrote: May be you should first select the treeitem and then change the String item into a TextBox item. Yeah, maybe it would. If anyone knows for sure, please say so. Otherwise, I've moved on to writing my own. -Dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 debug my entire web app in hosted mode
Hi Алексей, I followed http://wiki.apache.org/tomcat/FAQ/Developing#rd to enable Remote debugging with tomcat. If I create a Remote Java Application I can debug my server side code only. No GWT code. Thus as per your suggestion I created a debug Java Application with GWTShell as main class. with -noserver http://localhost:8082/easyupdate/secure/login.jsp -style PRETTY. When I run the debugger, it starts as below. com.google.gwt.dev.GWTShell at localhost:4503 Thread [main] (Running) What is this port 4503. Each time I create a new debug the port varies. Thus I still can't debug my GWT code from the hosted mode. My web.xml has a bunch of Servlets. servlet servlet-nameServletRedirector/servlet-name servlet-classorg.apache.cactus.server.ServletTestRedirector/ servlet-class /servlet servlet servlet-nameServletTestRunner/servlet-name servlet- classorg.apache.cactus.server.runner.ServletTestRunner/servlet- class /servlet servlet servlet-nameEU Controller/servlet-name servlet- classcom.west.wng.united.eu.controller.ControllerServlet/servlet- class /servlet servlet servlet-nameInit Servlet/servlet-name servlet-classcom.west.wng.united.eu.InitServlet/servlet- class load-on-startup1/load-on-startup /servlet servlet servlet-nameUnitedCPService/servlet-name servlet- classcom.west.wng.united.eu.cp.server.UnitedContactPointsServiceImpl/ servlet-class /servlet The last one is a GWT RemoteServlet. Only after 2 or 3 screens from login, I have a jsp which invokes the GWT's EntryPoint. And I want to debug that GUI code Thanks, On Jan 20, 3:42 am, Алексей Циунчик alexey.tsiunc...@gmail.com wrote: Hi, The steps are following: 1. Build war file with your GWT web application (You may use maven, or cypal studio Eclipse plugin). 2. Deploy this war file on Tomcat. 3. Start Tomcat in debug mode and attach to it using Remote debug. -- After this Eclipse should show you one debugging process (your serverside). 4. Create new Eclipse debug configuration (Select Java Application type). 5. On Main tab of this configuration put Main class: com.google.gwt.dev.GWTShell. 6. On Arguments tab supply following values: 6.1. Program arguments: -noserver URL_TO_ACCESS_DEPLOYED_APPLICATION -style PRETTY (EX: -noserverhttp://localhost:8080/myapplication/com.mycompany.myapplication/ myapplication.htmlhttp://localhost:8080/myapplication/com.mycompany.myapplication/Samsu...-style PRETTY) 6.2 [optional] VM arguments: -Xmx 512m 7. On ClassPath tab add: gwt-servlet-xxx.jar, gwt-user-xxx.jar, gwt-windows-xxx.jar, gwt-dev-windows-xxx.jar (or analogs depending on your platform). Start this configuration (Application in hosted mode should be opened) 2009/1/19 chandraj...@gmail.com chandraj...@gmail.com Hi All, I tried doing these steps for gwt 1.5. But I can't get the debugger up at my breakpoints. How do I refer the eclipse debugger to debug the hosted mode app. I ran the shell.cmd with -noserver -out %~dp0\www %* http://localhost:8082/myproject/MyApp/MyApp.html I created a Remote Java Application in the Debug Configurations which refer to the Tomcat RemoteDebugger jpda port 8000 Thanks, On Jan 18, 4:11 am, Lex alexey.tsiunc...@gmail.com wrote: Hello You may find answer here: http://code.google.com/support/bin/answer.py?answer=55200 On Jan 17, 3:20 am, chandraj...@gmail.com chandraj...@gmail.com wrote: I want my entire legacy app to be run from the hosted mode so that I can debug the front end code(java). Currently if I deploy to tomcat and attach a Remote debugger I can't debug the GWT code because they are now html JS. I want a way to debug GWT working within the full application. How can I please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Problem with file upload
Hi. Sorry but I'm not understand what you mean :) You ask to me if I use an ImageBundle object for retrieve images?? Answer is no. Some answer for compile time structure. I use a Image object and use setUrl(String url) method for showing images. URL are obtained through a servlet. Daniele. 2009/1/20, jchimene jchim...@gmail.com: Hi Daniele, Are you trying to use these images as components of an image bundle or some sort of compile-time structure? If so, don't do it that way. Cheers, jec On Jan 20, 1:59 am, Daniele dany.hat...@gmail.com wrote: Image saving on folder and String[] photo are ok! I write array on a file when click on widget album after uploading and image name it's present. In development shell, appears this message when I open a album widget after uploading of image: Resource not found wpimg/album/Sport/image1.jpg. Could a file missing from the public path or a servlet tag misconfigured??? Obviously when I reload application, this message disappear. Daniele 2009/1/19, Daniele dany.hat...@gmail.com: I try! 2009/1/18, gregor greg.power...@googlemail.com: so if you place a debug point here: private static final long serialVersionUID = 403L; public String[] getImageName(String category) { File photo = new File(src/com/webphotogallery/public/ wpgimg/album/ + category); //File photo = new File(wpgimg/album/ + category); String[] photoList = photo.list(); return photoList; DEBUG } Does the new image appear in the photoList array? On Jan 18, 3:32 pm, Daniele dany.hat...@gmail.com wrote: File are saved into a folder that I choose. I look into a folder when application make a upload call. But image doesn't appear when open a album widget... 2009/1/14, Daniele dany.hat...@gmail.com: I try some. Thanks. Daniele. 2009/1/14, gregor greg.power...@googlemail.com: There's nothing obviously wrong with this, and the fact that the uploaded photo appears when you restart server supports that. Next obvious thing to eliminate may be to check exactly where on your disk the uploaded photo is actually written to. Perhaps it is not where you expect, and what is happening is that it is being copied over to the right location as part of your deployment/hosted mode running procedure when you restart server. If you upload a photo and then check where it goes while the app is still running, you should be able to confirm that one way or another. On Jan 14, 1:52 pm, Daniele dany.hat...@gmail.com wrote: Code of upload [CODE] package com.webphotogallery.server; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.FileCleanerCleanup; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.io.FileCleaningTracker; public class UploadPhoto extends HttpServlet{ /* * */ private static final long serialVersionUID = 144332L; public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); String UPLOAD_DIRECTORY = ./src/com/webphotogallery/public/wpgimg/album/; //String UPLOAD_DIRECTORY = wpgimg/album/; ListFileItem items = null; try { items = upload.parseRequest(request); } catch (FileUploadException e) { e.printStackTrace(); } Iterator iter = items.iterator(); while(iter.hasNext()) { FileItem it = (FileItem)iter.next(); if(it.isFormField()) UPLOAD_DIRECTORY+=it.getString() + /; else { File uploadedFile = new File(UPLOAD_DIRECTORY + it.getName()); try{ it.write(uploadedFile);
Re: Problem with file upload
OK. seturl may not be the best way to do this. In my case, I wound up removing the DOM node and recreating it with a new Image widget. I could not get seturl to work reliably cross-browser. Something like div -- container widget img -- the victim (deleted and recreated on image change /div Control layout w/ CSS Cheers, jec On Jan 20, 9:57 am, Daniele dany.hat...@gmail.com wrote: Hi. Sorry but I'm not understand what you mean :) You ask to me if I use an ImageBundle object for retrieve images?? Answer is no. Some answer for compile time structure. I use a Image object and use setUrl(String url) method for showing images. URL are obtained through a servlet. Daniele. 2009/1/20, jchimene jchim...@gmail.com: Hi Daniele, Are you trying to use these images as components of an image bundle or some sort of compile-time structure? If so, don't do it that way. Cheers, jec On Jan 20, 1:59 am, Daniele dany.hat...@gmail.com wrote: Image saving on folder and String[] photo are ok! I write array on a file when click on widget album after uploading and image name it's present. In development shell, appears this message when I open a album widget after uploading of image: Resource not found wpimg/album/Sport/image1.jpg. Could a file missing from the public path or a servlet tag misconfigured??? Obviously when I reload application, this message disappear. Daniele 2009/1/19, Daniele dany.hat...@gmail.com: I try! 2009/1/18, gregor greg.power...@googlemail.com: so if you place a debug point here: private static final long serialVersionUID = 403L; public String[] getImageName(String category) { File photo = new File(src/com/webphotogallery/public/ wpgimg/album/ + category); //File photo = new File(wpgimg/album/ + category); String[] photoList = photo.list(); return photoList; DEBUG } Does the new image appear in the photoList array? On Jan 18, 3:32 pm, Daniele dany.hat...@gmail.com wrote: File are saved into a folder that I choose. I look into a folder when application make a upload call. But image doesn't appear when open a album widget... 2009/1/14, Daniele dany.hat...@gmail.com: I try some. Thanks. Daniele. 2009/1/14, gregor greg.power...@googlemail.com: There's nothing obviously wrong with this, and the fact that the uploaded photo appears when you restart server supports that. Next obvious thing to eliminate may be to check exactly where on your disk the uploaded photo is actually written to. Perhaps it is not where you expect, and what is happening is that it is being copied over to the right location as part of your deployment/hosted mode running procedure when you restart server. If you upload a photo and then check where it goes while the app is still running, you should be able to confirm that one way or another. On Jan 14, 1:52 pm, Daniele dany.hat...@gmail.com wrote: Code of upload [CODE] package com.webphotogallery.server; import java.io.File; import java.io.IOException; import java.io.PrintWriter; import java.util.Iterator; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.fileupload.FileItem; import org.apache.commons.fileupload.FileItemFactory; import org.apache.commons.fileupload.FileUploadException; import org.apache.commons.fileupload.disk.DiskFileItemFactory; import org.apache.commons.fileupload.servlet.FileCleanerCleanup; import org.apache.commons.fileupload.servlet.ServletFileUpload; import org.apache.commons.io.FileCleaningTracker; public class UploadPhoto extends HttpServlet{ /* * */ private static final long serialVersionUID = 144332L; public void service(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { FileItemFactory factory = new DiskFileItemFactory(); ServletFileUpload upload = new ServletFileUpload(factory); String UPLOAD_DIRECTORY = ./src/com/webphotogallery/public/wpgimg/album/; //String UPLOAD_DIRECTORY = wpgimg/album/; ListFileItem items = null; try { items = upload.parseRequest(request); } catch (FileUploadException e) { e.printStackTrace(); } Iterator iter = items.iterator();
best practice for server with GWT
Hello everyone, I started a project, which is a client/server application and started looking at GWT for the front end. GWT looks perfect for the front end, but I need your advice on the best practice to implement these components. The application has these components: 1. an existing data acquisition system (DAS) that sends data every x minutes, on a tcp/ip port. 2. server, this is what I'm writing, that will do: a. Back end 1 (BE1): get the data from the DAS, done this already with the protocol that the DAS implements. b. Front end to retrieve the data, with GWT. c. Back end 2 (BE2) to communicate with the GWT front end: should I use RPC or JSON? (which is easier and quicker to implement?) d. From the GWT front end, I want to issue commands to the DAS and display the response. So the command goes from GWT to BE2 to the DAS. The DAS replies to BE1. BE1 sends the reply to BE2, then BE2 to GWT to display it. The issue here is how to handle this async communication, when the reply comes from BE1 to BE2? Thank you in advance. Tony --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Image Bundles + PushButton: Problems
Hello all, I have been bundling all of the images in our application (900+ images) into Image Bundles. So far so good, loading is faster and the images look just the same. Now, the only issue I am facing are my push buttons. I am not doing anything differently (although I've tried), but when the pages load, where the push button should be is the entire composite image from the bundle my push button images are in. Does anyone know what is going on?? From the bundle interface : @Resource (com/**/**/public/images//*/button.gif) public AbstractImagePrototype button(); @Resource (com/**/**/public/images//*/ button_selected.gif) public AbstractImagePrototype buttonSelected(); And its implementation into the PushButton: PushButton pbButton = new PushButton(myImageBundle.button().createImage (),myImageBundle.buttonSelected().createImage()); Please help as a large percentage of our images are buttons in a up/ down state!! Peter --~--~-~--~~~---~--~~ You received 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 Hosted Mode Application not working in eclipse 3.4 on Mac OS X 10.5.5
Please help! When I attempt to run / debug a GWT Hosted Mode Application in eclipse on Mac OS X, the browser pops up for a second and then closes. Nothing shows up in console. This is very similar to an old issue 1792 from 2007. I have the JVM option - XstartOnFirstThread set in Cypal Studio JVM startup options. I am using gwt-mac-1.5.3, eclipse 3.4, mac osx 10.5.5. Thanks, Don Ruby --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
CSS + Tree + ClickListener
Hi I have this weird problem. I have tree. All items in tree are a bit lower than standard tree items. At the bottom of tree I have added clickable label. Now, when I expand tree (which is about 1,5 page long) and click this label page moves down, but no browser event is fired (checked with debugger, program never enters Label.onBrowserEvent()). When I click it again, browser event is fired like it supposed to. If I move page a bit up and click label again, page slides down, and again no event is fired. I tried this with different elements, and it works like it supposed to only with button. For other elements its the same. Anyone had this problem before, or know what can I do with it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 with Linux Ubuntu 8.10
Hi, I am running GWT 1.5.3 with Java 5 on Ubuntu 8.04 LTS and I am not experiencing your problem. When I initially create the project using applicationCreator I get a folder and two scripts. ~/tmp/srs-2$ ls src srs-compile srs-shell I then execute srs-shell: ~/tmp/srs-2$ ./srs-shell ~/tmp/srs-2$ ls src srs-compile srs-shell tomcat The tomcat directory is created. Then I compile using ~/tmp/srs-2$ ./srs-compile ~/tmp/srs-2$ ls src srs-compile srs-shell tomcat www Regards, Arend On Jan 20, 4:10 am, Muhannad muhannad@gmail.com wrote: Through GWT projectCreator On Jan 20, 10:56 am, Litty Preeth preeth.h...@gmail.com wrote: How are you creating the project? Through cypal studio or GWT projectCreator On Tue, Jan 20, 2009 at 2:22 PM, Muhannad muhannad@gmail.com wrote: Hi Litty, But as I told you before the folder named tomcat is not exist (I don't know why). When I built the same application on Windows, that folder tomcat is automatically created! Thanks! On Jan 20, 10:42 am, Litty Preeth preeth.h...@gmail.com wrote: Hi Muhannad, You can keep the context parameters in your web.xml itself. - Litty Preeth On Tue, Jan 20, 2009 at 1:53 PM, Muhannad muhannad@gmail.com wrote: Hello! Any body's here??! On Jan 19, 10:58 am, Muhannad muhannad@gmail.com wrote: Hi, I'm trying to develop aGWTapplication on LinuxUbuntu8.10but I'm facing some problems: 1. My application try to connect to MySQL database using mysql- connector-java-5.1.6. I don't want to hard-code the connection string so where should I put the context parameters (url, driver, username...). Note: the folder named tomcat is not created automatically as did on Windows XP??! 2. In hosted mode I get a blank white page when I click the run button? Please help. Thanks very much. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to debug my entire web app in hosted mode
Awesome. I got it working. I love the Hosted mode now. On Jan 20, 10:50 am, chandraj...@gmail.com chandraj...@gmail.com wrote: Hi Алексей, I followedhttp://wiki.apache.org/tomcat/FAQ/Developing#rdto enable Remote debugging with tomcat. If I create a Remote Java Application I can debug my server side code only. No GWT code. Thus as per your suggestion I created a debug Java Application with GWTShell as main class. with -noserverhttp://localhost:8082/easyupdate/secure/login.jsp-style PRETTY. When I run the debugger, it starts as below. com.google.gwt.dev.GWTShell at localhost:4503 Thread [main] (Running) What is this port 4503. Each time I create a new debug the port varies. Thus I still can't debug my GWT code from the hosted mode. My web.xml has a bunch of Servlets. servlet servlet-nameServletRedirector/servlet-name servlet-classorg.apache.cactus.server.ServletTestRedirector/ servlet-class /servlet servlet servlet-nameServletTestRunner/servlet-name servlet- classorg.apache.cactus.server.runner.ServletTestRunner/servlet- class /servlet servlet servlet-nameEU Controller/servlet-name servlet- classcom.west.wng.united.eu.controller.ControllerServlet/servlet- class /servlet servlet servlet-nameInit Servlet/servlet-name servlet-classcom.west.wng.united.eu.InitServlet/servlet- class load-on-startup1/load-on-startup /servlet servlet servlet-nameUnitedCPService/servlet-name servlet- classcom.west.wng.united.eu.cp.server.UnitedContactPointsServiceImpl/ servlet-class /servlet The last one is a GWT RemoteServlet. Only after 2 or 3 screens from login, I have a jsp which invokes the GWT's EntryPoint. And I want to debug that GUI code Thanks, On Jan 20, 3:42 am, Алексей Циунчик alexey.tsiunc...@gmail.com wrote: Hi, The steps are following: 1. Build war file with your GWT web application (You may use maven, or cypal studio Eclipse plugin). 2. Deploy this war file on Tomcat. 3. Start Tomcat in debug mode and attach to it using Remote debug. -- After this Eclipse should show you one debugging process (your serverside). 4. Create new Eclipse debug configuration (Select Java Application type). 5. On Main tab of this configuration put Main class: com.google.gwt.dev.GWTShell. 6. On Arguments tab supply following values: 6.1. Program arguments: -noserver URL_TO_ACCESS_DEPLOYED_APPLICATION -style PRETTY (EX: -noserverhttp://localhost:8080/myapplication/com.mycompany.myapplication/ myapplication.htmlhttp://localhost:8080/myapplication/com.mycompany.myapplication/Samsu...-style PRETTY) 6.2 [optional] VM arguments: -Xmx 512m 7. On ClassPath tab add: gwt-servlet-xxx.jar, gwt-user-xxx.jar, gwt-windows-xxx.jar, gwt-dev-windows-xxx.jar (or analogs depending on your platform). Start this configuration (Application in hosted mode should be opened) 2009/1/19 chandraj...@gmail.com chandraj...@gmail.com Hi All, I tried doing these steps for gwt 1.5. But I can't get the debugger up at my breakpoints. How do I refer the eclipse debugger to debug the hosted mode app. I ran the shell.cmd with -noserver -out %~dp0\www %* http://localhost:8082/myproject/MyApp/MyApp.html I created a Remote Java Application in the Debug Configurations which refer to the Tomcat RemoteDebugger jpda port 8000 Thanks, On Jan 18, 4:11 am, Lex alexey.tsiunc...@gmail.com wrote: Hello You may find answer here: http://code.google.com/support/bin/answer.py?answer=55200 On Jan 17, 3:20 am, chandraj...@gmail.com chandraj...@gmail.com wrote: I want my entire legacy app to be run from the hosted mode so that I can debug the front end code(java). Currently if I deploy to tomcat and attach a Remote debugger I can't debug the GWT code because they are now html JS. I want a way to debug GWT working within the full application. How can I please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: No GwtCompiler option to turn off hosted mode support
Hej Jörn, What JavaScript code that is hosted mode specific are you refering to? You should only get the minimal code necessary for each web browser to run your application as the standard. //Adam On 20 Jan, 14:57, 1jkoch 1jk...@gmx.de wrote: Hi, my GWT app only runs in web mode when deployed on a production server. So I'd like to get rid of all JavaScript code that is hosted mode specific. I had hoped for a GWTCompiler option to deactivate hosted mode support but did not find any. Does anybody know, if there's still a way to build a web-mode-only GWT app? Thanks a lot, Jörn --~--~-~--~~~---~--~~ You received 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: No GwtCompiler option to turn off hosted mode support
Hi Adam, generated .js files contain the following code (GWT 1.5): function isHostedMode(){ try { return $wnd.external ($wnd.external.gwtOnLoad $wnd.location.search.indexOf($intern_5) == -1); } catch (e) { return false; } } This operation is called from two if statements (also within the .js) that have hosted-mode specific code inside. This is not much code we're talking about but still superfluous if you run you app only in web mode. Thanks for your quick reply, Jörn --~--~-~--~~~---~--~~ You received 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: No GwtCompiler option to turn off hosted mode support
Ah you mean in the bootstrap file (the single nocache.js file)? I believe you could go through that nocache.js file and delete the onHostedMode() function and the couple of calls to it without causing an issue if you're only going to use web mode. However, if you compile using the flag -style OBFUSCATED then this extra code is only a handful of characters in size - which will be insignificant compared to your application code (in the various cache.html files)unless I'm misunderstanding you. //Adam On 20 Jan, 19:21, 1jkoch 1jk...@gmx.de wrote: Hi Adam, generated .js files contain the following code (GWT 1.5): function isHostedMode(){ try { return $wnd.external ($wnd.external.gwtOnLoad $wnd.location.search.indexOf($intern_5) == -1); } catch (e) { return false; } } This operation is called from two if statements (also within the .js) that have hosted-mode specific code inside. This is not much code we're talking about but still superfluous if you run you app only in web mode. Thanks for your quick reply, Jörn --~--~-~--~~~---~--~~ You received 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-maps-api: Maps API has not been loaded
For developing we are using no key, because for localhost its not needed. I changed a configuration by our colleague where the issue occurs. I try to describe the way (translated from german to english). IE's internetoptions - data privacy - Sites... (Dialog opens) - In this dialog I allowed **. google.com* and it seems that this solved the problem. Can anyone agree?! I would be interested what is the issues reason ^^ Additional: Now there is another problem in IE6. Map controls (Zoom, Move, Map-Type, etc.) are not visible. - Danny 2009/1/20 Eric Ayers zun...@google.com I don't see this complaint listed in the Maps Group http://groups.google.com/group/Google-Maps-API Are you saying that you are using a key value that was shipped with the API? If so, go ahead and sign up for your own key if you haven't already. On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke schimk...@googlemail.comwrote: We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received 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: No GwtCompiler option to turn off hosted mode support
Ah ok thanks. I think now I'm getting the picture. I'm a bit reluctant to modify a generated file but I guess that's what it takes. I'm not concerned about the actual code size - the fact that the hosted mode stuff is unavoidable is what bothers me. Anyway, thanks for the hint re OBFUSCATED flag though. Jörn --~--~-~--~~~---~--~~ You received 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: ServletException Client did not send 139 bytes as expected when testing a gwt-gadget via iGoogle (during RPC call)
That error might be complicated. Have you checked this thread about the issue: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/9b4a98d0d50d2752/f05c27aa5131a153?hl=enlnk=gstq=expected+bytes#f05c27aa5131a153 On Dec 7 2008, 7:14 am, rintcius rintc...@gmail.com wrote: Hi, I am trying to get a gwt-gadget running, but I am getting the exception below on the RPC call. Anybody has an idea what could be going on? The stacktrace below is when deployed on jetty, but I get a similar exception on glassfish v2. GWT version: 1.5.3. gwt-gadget version: 1.0.1 Thanks for any help, Rintcius [Fatal Error] :-1:-1: Premature end of file. [Fatal Error] :-1:-1: Premature end of file. 2008-12-06 21:40:49.329:/:WARN: Exception while dispatching incoming RPC call javax.servlet.ServletException: Client did not send 139bytesasexpected at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:148) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java:86) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:226) at groovy.lang.MetaClassImpl.invokeStaticMethod(MetaClassImpl.java: 1094) at groovy.lang.ExpandoMetaClass.invokeStaticMethod (ExpandoMetaClass.java:957) at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod (InvokerHelper.java:748) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN (ScriptBytecodeAdapter.java:167) at org.codehaus.groovy.grails.plugins.gwt.GrailsRemoteServiceServlet.readContent (GrailsRemoteServiceServlet.groovy:28) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:77) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1097) at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.processFilterChain (UrlMappingsFilter.java:157) at org.codehaus.groovy.grails.web.mapping.filter.UrlMappingsFilter.doFilterInternal (UrlMappingsFilter.java:148) at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1088) at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.parsePage (GrailsPageFilter.java:119) at org.codehaus.groovy.grails.web.sitemesh.GrailsPageFilter.doFilter (GrailsPageFilter.java:82) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1088) at org.codehaus.groovy.grails.web.servlet.filter.GrailsReloadServletFilter.doFilterInternal (GrailsReloadServletFilter.java:142) at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1088) at org.codehaus.groovy.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal (GrailsWebRequestFilter.java:68) at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:75) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1088) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (CharacterEncodingFilter.java:96) at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:75) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate (DelegatingFilterProxy.java:183) at org.springframework.web.filter.DelegatingFilterProxy.doFilter (DelegatingFilterProxy.java:138) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1088) 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:729) at org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java:405) at org.mortbay.jetty.handler.ContextHandlerCollection.handle (ContextHandlerCollection.java:206) at org.mortbay.jetty.handler.HandlerCollection.handle (HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:152) at
Re: GWT-maps-api: Maps API has not been loaded
Search on the Google-Maps-API group. There have been several postings on the controls disappearing. Not having your code to look at, I'm not sure which might apply. On Tue, Jan 20, 2009 at 2:34 PM, Danny Schimke schimk...@googlemail.com wrote: For developing we are using no key, because for localhost its not needed. I changed a configuration by our colleague where the issue occurs. I try to describe the way (translated from german to english). IE's internetoptions - data privacy - Sites... (Dialog opens) - In this dialog I allowed *.google.com and it seems that this solved the problem. Can anyone agree?! I would be interested what is the issues reason ^^ Additional: Now there is another problem in IE6. Map controls (Zoom, Move, Map-Type, etc.) are not visible. - Danny 2009/1/20 Eric Ayers zun...@google.com I don't see this complaint listed in the Maps Group http://groups.google.com/group/Google-Maps-API Are you saying that you are using a key value that was shipped with the API? If so, go ahead and sign up for your own key if you haven't already. On Tue, Jan 20, 2009 at 4:31 AM, Danny Schimke schimk...@googlemail.com wrote: We've got an error when our google map initializes. It occurs only on IE6 since 12.01.2009 (monday). I think it could be an security- configuration in IE which came with updates?! In IE7 and FF everything works fine. At the moment we're using the Google-Maps-developer key which is included in the html- file. Some other users said: maybe I can solve the problem when I change the order of inherits (move up the inherits name=com.google.gwt.maps.GoogleMaps / before all others). But this did not solved the problem. If a IE- Setting is the reason: what could that be? The shown error is: The Maps API has not been loaded. Is a script tag missing from your host HTML or module file? Is the Maps key missing or invalid? Does anyone has the same issue? Hope you can help! - Danny -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ -- Eric Z. Ayers - GWT Team - Atlanta, GA USA http://code.google.com/webtoolkit/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: What are you using for a backend??
php and perl are light weight compared to j2ee stack. Tomcat php perl linux hosting is usually cheap because all the software required are free; also the hardware requirement is relatively low. Because of these advantages, over the past years a vast community of small and medium size applications has been developed around these software. It is relatively easy to setup and support a hosting service with php- tomcat-mysql combo. Moreover there is a huge open source domain that has various libraries and applications written in php. I am sure, you will find java-tomcat/jboss based hosting service but the fee will be much more when compared to those php deals. Try the Amazon cloud computing platform. I have not tried that myself, but it sounds promising. Rakesh Wagh On Jan 20, 7:24 am, sloughran slough...@gmail.com wrote: So, in my messing around with GWT for the past year or so, I have been using RPC's to communicate to the server. The thing is, my projects have never gotten past my Eclipse project, so my server has just been a folder on my computer. I am looking at web hosting companies and I just see things like PHP, RUBY, PERL and such being allowed. I am not seeing JAVA being allowed, which I would need for my RPC's. So, my question is, what do people use for server side code? Do you use a web host with JAVA allowed? Do you use PHP and talk to it through HTML gets? --~--~-~--~~~---~--~~ You received 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: Testing GWT 1.5 with various mobile platforms
Hi akutz, The list of browsers that GWT currently supports are: - Firefox 1.0, 1.5, 2.0 and 3.0 - Internet Explorer 6 and 7 - Safari 2 and 3 - Opera 9.0 (current as of May 2008) We can also add on Google Chrome, Android and iPhone to that list. The reason why you've discovered that your GWT application works for the iPhone and Android browsers is because both consist of WebKit builds, which GWT supports. If you're planning on supporting other mobile browsers, I would recommend either creating a redirect (client-side or server-side) that detects that the browser agent is not supported and sends the client to a plain HTML page, or creating Deferred Binding rules to create equivalents of the widgets your project uses for the target mobile browser you have in mind. In case of the latter, you should double check that the target browser does indeed support JavaScript. To learn more about Deferred Binding, check out the link below: Deferred Binding: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=DevGuideDeferredBinding Hope that helps, -Sumit Chandel On Fri, Jan 16, 2009 at 8:48 PM, akutz sak...@gmail.com wrote: I have created a new app focused on mobile management of various virtualization platforms using GWT. I have tested the app with several mobile platforms, and am keeping a list of those that work and those that do not. You can find the list at http://help.lostcreations.com/faqs/vmm/supported-device-list. FYI - So far Safari on the iPhone and Android are the only two platforms that appear to work :( --~--~-~--~~~---~--~~ You received 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 use/debug a widget and use 2 different Java packages in the same project?
I found the way to have classes in a different classpath in the same project by adding a otherclassname.gwt.xml file. That way I can debug a widget in a different classpath than the one from the main/test application. Eclipse would recognize the 2 classes in the editor and build without the additional gwt.xml file and inherit, but the run would fail. Here is the directory structure and the content of the two gwt.xml files: C:\GWTSelector\ClassSelectorDemo\.classpath C:\GWTSelector\ClassSelectorDemo\.project C:\GWTSelector\ClassSelectorDemo\bin ... (left out some directories) C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo-compile.cmd C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo-shell.cmd C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo.ant.xml C:\GWTSelector\ClassSelectorDemo\ClassSelectorDemo.launch C:\GWTSelector\ClassSelectorDemo\src C:\GWTSelector\ClassSelectorDemo\src\com C:\GWTSelector\ClassSelectorDemo\src\com\codefactory C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector\ClassSelector.gwt.xml *!!! The interesting one* C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector\client C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselector\client\ClassSelector.java C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\ClassSelectorDemo.gwt.xml *!!! and that one* C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\client C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\client\ClassSelectorDemo.java C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\public C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\public\ClassSelectorDemo.css C:\GWTSelector\ClassSelectorDemo\src\com\codefactory\gwt\classselectordemo\public\ClassSelectorDemo.html ... (left out some directories) *ClassSelector.gwt.xml* module !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Other module inherits -- /module *ClassSelectorDemo.gwt.xml* module !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- !-- Other module inherits -- *inherits name='com.codefactory.gwt.classselector.ClassSelector'/* !-- Specify the app entry point class. -- entry-point class='com.codefactory.gwt.classselectordemo.client.ClassSelectorDemo'/ !-- Specify the application specific style sheet. -- stylesheet src='ClassSelectorDemo.css' / /module Cheers, Fred On Fri, Jan 16, 2009 at 21:36, Fred Janon fja...@gmail.com wrote: Hi, I am developing a widget that I would like to package in a jar for use in GWT projects. I created a new project for my widget, wrote the code and debugged it in its own project. Now I want to create a test project (in a different Java package) and be able to still modify/debug my widget without having to build a jar every time. Basically the question is: can we work in an Eclipse project with 2 different Java packages, one for the application, one for a widget under development. I would be the same as modying the GWT code in a client project. I am using GWT 15.3 and Eclipse. Thanks Fred --~--~-~--~~~---~--~~ You received 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 Hosted Mode Application not working in eclipse 3.4 on Mac OS X 10.5.5
Things I have tried after reading discussion threads. Still no luck : 1. Added -XstartOnFirstThread to JVM options on debug config in eclipse 2. Removed -XstartOnFirstThread to eclipse.ini 3. Added -Djava.awt.headless=true to eclipse.ini 3. Added gwt-dev-mac.jar to the build path Thanks, Don Ruby On Jan 19, 11:21 pm, Don Ruby, RD donald.r...@mindspring.com wrote: Please help! When I attempt to run / debug a GWT Hosted Mode Application in eclipse on Mac OS X, the browser pops up for a second and then closes. Nothing shows up in console. This is very similar to an old issue 1792 from 2007. I have the JVM option - XstartOnFirstThread set in Cypal Studio JVM startup options. I am using gwt-mac-1.5.3, eclipse 3.4, mac osx 10.5.5. Thanks, Don Ruby --~--~-~--~~~---~--~~ You received 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: RPC call returning ListString fails
OK, I've finally had a chance to look into this some more and updated the gwt-sl.jar version I was using (fairly old as previously stated) I downloaded the 0.1.5b (latest version still using Hibernate4GWT) and put everything back to ListString and it worked inside and outside of eclipse. Given this was the only thing I changed, possibly a problem in the old library. Thanks for replies... jos On Jan 19, 12:05 am, alex.d alex.dukhov...@googlemail.com wrote: I remember a thread not that long time ago where someone experienced same trouble with waiting on NNN bytes. I'm not sure what the problem exactly was. Using ListString is ok(but in case of some black magic used - try it anyway ;-) On 17 Jan., 19:22, jos jot...@gmail.com wrote: yes, new ArrayListString followed by several add(some string) What's got me stuck is the backend saying it's waiting on 153 bytes from the client, like it's not event fired off the RPC call yet So List is OK, I don't need to use ArrayList ? On Jan 15, 11:30 pm, alex.d alex.dukhov...@googlemail.com wrote: It is actually. I'm using a lot of structures like this(and more complex) for data transfer. The problem ist somewhere else - do you initialize your List properly? On 15 Jan., 18:36, jos jot...@gmail.com wrote: I have an RPC call with a signature like public ListString SomeCall (SomeObj) { return anArrayList; } which failed. Policy file was deployed and the file had ArrayList, true in the file. The only real information available was the stack trace it left in catalina.out (see below). I'm running gwt1.52, a Spring/Hibernate stack on the back end with (a probably early version of) gwt-sl. The problem manifested itself in eclipse. When I changed the return value to String[] eveything worked fine. Does anyone know, is it not OK to use ListString as a return specifier? 2009-01-14 16:41:08,569 ERROR [org.apache.catalina.core.ContainerBase. [Catalina].[localhost].[/geo]] - Exception while dispatching incoming RPC call javax.servlet.ServletException: Client did not send 158 bytes as expected at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:148) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.java:335) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:77) at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest (GWTRPCServiceExporter.java:169) at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle (HttpRequestHandlerAdapter.java:49) at org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:874) at org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:808) at org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:476) at org.springframework.web.servlet.FrameworkServlet.doPost (FrameworkServlet.java:441) --~--~-~--~~~---~--~~ You received 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-math server jar and passing BigDecimals between server clients
Regarding gwt-math to allow user of BigDecimal in GWT client code.. There is a server jar available and the comment for its use is download the server.jar from the download section and add it into classpath of server project to enable RPC call. I'd like to pass BigDecimal values back and forth from an application server with ejb's etc to the client. I'd like to know where to put this gwt-server jar? In my EAR (file) with other shared jars? Also, what happens when an object serialized using gwt-math's BigDecimal (at the client) gets to a server side component using Sun's BigDecimal? (and visa-versa). ..Any errors here? Any ways around it? I noticed some comments about using gwt-math with hibernate. I'm using ibatis. Thanx 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: What are you using for a backend??
I run a back-end using Apache/mod_perl using AxKit and XSL to convert XML into JSON. have you investigated a web host like slicehost.com? they provide you with a virtual machine which you can install any OS and back-end you choose. /dave On Jan 20, 5:24 am, sloughran slough...@gmail.com wrote: So, in my messing around with GWT for the past year or so, I have been using RPC's to communicate to the server. The thing is, my projects have never gotten past my Eclipse project, so my server has just been a folder on my computer. I am looking at web hosting companies and I just see things like PHP, RUBY, PERL and such being allowed. I am not seeing JAVA being allowed, which I would need for my RPC's. So, my question is, what do people use for server side code? Do you use a web host with JAVA allowed? Do you use PHP and talk to it through HTML gets? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
IE8 support
I am curious about current and future support for IE8. The list of browsers that GWT currently supports are: - Firefox 1.0, 1.5, 2.0 and 3.0 - Internet Explorer 6 and 7 - Safari 2 and 3 - Opera 9.0 (current as of May 2008) We can also add on Google Chrome, Android and iPhone to that list. what currently happens when IE8 requests to load GWT content? does it use the IE6/IE7 implementation? how does that pan out? with IE8 currently in beta, it is no surprise that there is little to read about how GWT will support it. nevertheless, are there any published documents that say how IE figures as part of the GWT roadmap? thanks, /dave --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: set fixed size for popup and enable scrolling within it
ya so i wrapped a scrollpanel inside my popup and now it works fine. On Mon, Jan 19, 2009 at 5:54 PM, alex.d alex.dukhov...@googlemail.comwrote: On 19 Jan., 12:27, doopa niallhas...@googlemail.com wrote: Hi, You should probably change the CSS to scroll rather than auto. Auto is not stable across browsers. or use flowpanel wraped in scrollpanel with fixed size(scrollpanel). On Jan 15, 10:19 am, aragorn sagar5...@gmail.com wrote: I have a popuppanel which wraps a flowpanel within itself. Now i want this popup to occupy only some portion of the screen. In case the flowpanel exceeds the mentioned limits, the popup should display a scrollbar. I tried setting this using CSS by usinf overflow:auto but it doesnt work. If u know any way t do it plz let me know --~--~-~--~~~---~--~~ You received 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] help needed on gwt-maven-plugin
Hi, the gwt-maven-plugin development has a Classloader issue with tomcat embedded http://jira.codehaus.org/browse/MGWT-14 We have no idea of what's wrong, so any of you with ClassLoader / Tomcat embedded skills would be welcome to help if possible. Please apologies for spaming this group for a maven-dev related issue. The plugin generates a command script to lanch the GWT Shell from command line. To bypass windows command line length limitation, it uses a booter to setup an URLClassLoader with all project/gwt libraries and run the GWTShell.main(). But the shell fails with : [WARN] StandardContext[]Error loading WebappClassLoader delegate: false repositories: -- Parent Classloader: sun.misc.launcher$appclassloa...@1ba34f2 com.google.gwt.dev.shell.GWTShellServlet java.lang.ClassNotFoundException: com.google.gwt.dev.shell.GWTShellServlet org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1340) To reproduce this issue, checkout https://svn.codehaus.org/mojo/trunk/mojo/gwt-maven-plugin run mvn clean install goto target\it\gwt-compile run mvn gwt:gwt Cheers, Nicolas --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: help needed on gwt-maven-plugin
Hi Nicolas, Can you supply the actual script produced and any Java classes that are used to setup the booter? Thanks, Scott On Tue, Jan 20, 2009 at 5:04 AM, nicolas.deloof nicolas.del...@gmail.comwrote: Hi, the gwt-maven-plugin development has a Classloader issue with tomcat embedded http://jira.codehaus.org/browse/MGWT-14 We have no idea of what's wrong, so any of you with ClassLoader / Tomcat embedded skills would be welcome to help if possible. Please apologies for spaming this group for a maven-dev related issue. The plugin generates a command script to lanch the GWT Shell from command line. To bypass windows command line length limitation, it uses a booter to setup an URLClassLoader with all project/gwt libraries and run the GWTShell.main(). But the shell fails with : [WARN] StandardContext[]Error loading WebappClassLoader delegate: false repositories: -- Parent Classloader: sun.misc.launcher$appclassloa...@1ba34f2 com.google.gwt.dev.shell.GWTShellServlet java.lang.ClassNotFoundException: com.google.gwt.dev.shell.GWTShellServlet org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1340) To reproduce this issue, checkout https://svn.codehaus.org/mojo/trunk/mojo/gwt-maven-plugin run mvn clean install goto target\it\gwt-compile run mvn gwt:gwt Cheers, Nicolas --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Why MenuBar widget do not have a setHorizontalAlignment or setVerticalAlignment method?
The fact that MenuBar uses a table to render itself is just an implementation detail, and sometimes we abstract away the DOM implementation of a widget. Personally, I think adding a setHorizontal/VerticalAlignment() would be a little confusing because people might assume it would set the alignment of the widget itself (as in position to widget) as opposed to setting the alignment of the MenuItems in the cells. There are other table based widgets that do not have these methods for the same reason, such as StackPanel. Also, you can always set styles in code using the Element methods: myMenu.getElement().getStyle().setProperty(name, value); Still, I'll be interested to see what other contributors think. Maybe there is a use case for this method in other widgets as well. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 19, 2009 at 12:50 PM, jack.yang jackyang0...@gmail.com wrote: Since this widget is a Div which contains a Table, why it do not have a method to set its cell alignment? This is not the only widget which consists of a table but do not have a method to set alignment. I think this is not a good design. For some widget developers set alignment by code while for others they can only set alignment using CSS. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: Why MenuBar widget do not have a setHorizontalAlignment or setVerticalAlignment method?
It would be very nice if we could add widgets to MenuItems instead of using setting html. This would make formatting of custom menu items a lot easier. I just tried to add menu items that display text + an aligned image and it took some time to find out how to do that (nesting a table). On Jan 20, 4:26 pm, John LaBanca jlaba...@google.com wrote: The fact that MenuBar uses a table to render itself is just an implementation detail, and sometimes we abstract away the DOM implementation of a widget. Personally, I think adding a setHorizontal/VerticalAlignment() would be a little confusing because people might assume it would set the alignment of the widget itself (as in position to widget) as opposed to setting the alignment of the MenuItems in the cells. There are other table based widgets that do not have these methods for the same reason, such as StackPanel. Also, you can always set styles in code using the Element methods: myMenu.getElement().getStyle().setProperty(name, value); Still, I'll be interested to see what other contributors think. Maybe there is a use case for this method in other widgets as well. Thanks, John LaBanca jlaba...@google.com On Mon, Jan 19, 2009 at 12:50 PM, jack.yang jackyang0...@gmail.com wrote: Since this widget is a Div which contains a Table, why it do not have a method to set its cell alignment? This is not the only widget which consists of a table but do not have a method to set alignment. I think this is not a good design. For some widget developers set alignment by code while for others they can only set alignment using CSS. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] tmpdir patch in Utility.java
We've bumped into some problems where the pattern /tmp/gwt-tmp/* something-unique* fails, because the intermediate gwt-tmp layer has bad permissions from one user that later block a second user. I think that was my original error, fwiw, but here's a patch that just cuts the middle layer... less pretty grouping of our cruft, but no permission issues (given that /tmp is open, at least). Patch on trunk r4495; should we (instead/also) patch 1.6? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- Index: dev/core/src/com/google/gwt/util/tools/Utility.java === --- dev/core/src/com/google/gwt/util/tools/Utility.java (revision 4495) +++ dev/core/src/com/google/gwt/util/tools/Utility.java (working copy) @@ -253,7 +253,7 @@ public static File makeTemporaryDirectory(File baseDir, String prefix) throws IOException { if (baseDir == null) { - baseDir = new File(System.getProperty(java.io.tmpdir), GWT_TMP_DIR); + baseDir = new File(System.getProperty(java.io.tmpdir)); } baseDir.mkdirs();
[gwt-contrib] Re: Fix for JUnit to deal with synchronous exceptions in event handlers (issue 3258)
On 2009/01/16 15:34:48, jgw wrote: From scottb on issue 3258: LGTM. http://gwt-code-reviews.appspot.com/2008 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: code review: issues_3166_3167_gwt16_r4353.patch
Ok, I *finally* got the freakin' JUnit infrastructure changes committed, which means it's time to get this stuff landed as well. The 1.6 release branch has drifted a bit since I last put this patch up for review, so I'll send out a new one momentarily. There should be no substantive changes over the last patch, other than conflict resolution. On Thu, Dec 11, 2008 at 5:37 PM, Joel Webber j...@google.com wrote: I'm going through all the JUnit test sequences that Scott and I came up with right now. We really have to land these two patches together -- if we don't, then all the Event.trigger() methods are only going to cause everyone to run headlong into the same problem I did. I'll be sending an updated patch Real Soon Now. On Wed, Dec 10, 2008 at 9:10 PM, Scott Blum sco...@google.com wrote: Update: this is still in progress, but more complicated than it seems. I might look at ways to get the main patch in without the JUnit stuff. On Wed, Dec 10, 2008 at 1:24 PM, Joel Webber j...@google.com wrote: Thanks. Still waiting on scottb to review my JUnit patch, then I will commit. On Mon, Dec 8, 2008 at 4:58 PM, Ray Ryan rj...@google.com wrote: LGTM Rietveld can't show inter-diff diffs, so I can't see, say, your version 1 and comments on the left and the new patch on the right. That's a shame. rjrjr On Tue, Dec 9, 2008 at 7:50 AM, Joel Webber j...@google.com wrote: Don't know why I can't attach another patch set to that codereview instance, so here it is. Maybe you can attach it (or maybe I'm just dumb and can't figure it out). On Mon, Dec 8, 2008 at 3:48 PM, j...@google.com wrote: For reasons not clear to me, I can't seem to add an updated patch set. I'll send it to the gwt-contrib thread and hope you can do it :) http://codereview.appspot.com/8894/diff/1/9 File user/src/com/google/gwt/user/client/Event.java (right): http://codereview.appspot.com/8894/diff/1/9#newcode287 Line 287: * @param detail the event's detail property On 2008/12/05 00:13:15, rjrjr wrote: Any example of valid values of detail? Detail is one of those weird fields that means different things for different events. It's defined as part of the DOM spec (in other words, if you don't know what it is, you probably won't care). http://codereview.appspot.com/8894/diff/1/7 File user/src/com/google/gwt/user/client/impl/DOMImplIE6.java (right): http://codereview.appspot.com/8894/diff/1/7#newcode230 Line 230: evt.relatedTarget = relatedTarget; On 2008/12/05 00:13:15, rjrjr wrote: (Pretending I know what I'm talking about.) relatedTarget is a real field in correct browsers, right? Is it a bit confusing to use it here in IE, where it normally doesn't exist? Could we call this gwtTarget instead? Well, we're actually synthesizing a value that *is* identical to relatedTarget on other browsers (and that IE doesn't implement), so it doesn't seem unreasonable to simply synthesize it here. In the long run, it would make more sense to shift the public APIs to use 'relatedTarget', but that's probably a task for another day. http://codereview.appspot.com/8894/diff/1/10 File user/src/com/google/gwt/user/client/ui/CustomButton.java (right): http://codereview.appspot.com/8894/diff/1/10#newcode746 Line 746: // TODO(jgw): fill in these parameters somehow. On 2008/12/05 00:13:15, rjrjr wrote: If this is actually possible, could you file an issue on it and point to the issue here? Also, do we usually put our initials in our TODOs? (I hope so, but thought I got scolded for doing so.) Whoops, I didn't mean to leave this TODO in there. I've changed this comment to explain why those values are unavailable (this shouldn't matter in practice, as click events often don't have useful mouse coordinates). http://codereview.appspot.com/8894/diff/1/4 File user/test/com/google/gwt/user/client/ui/CustomButtonTest.java (right): http://codereview.appspot.com/8894/diff/1/4#newcode178 Line 178: assertEquals(Expecting one click event, click, events.get(0)); On 2008/12/05 00:13:15, rjrjr wrote: I guess you're doing all three (over, down, up) b/c triggerClickEvent can't be relied upon to do so? You might document that. Actually, this is intended to test that this series of events should *cause* CustomButton to fire a synthetic click event. I've added documentation to that effect. http://codereview.appspot.com/8894/diff/1/3 File user/test/com/google/gwt/user/client/ui/TriggerEventTest.java (right): http://codereview.appspot.com/8894/diff/1/3#newcode30 Line 30: public class TriggerEventTest extends GWTTestCase { On 2008/12/05 00:13:15, rjrjr wrote: A thing of beauty. I have to take your word on which events bubble and which don't. But then again I suppose I have the word of the tests themselves. :-) Should you be testing capture as well? Or does GWT stay clear of that? We don't do event capture, because there's really no reliable way to synthesize
[gwt-contrib] Re: Event triggering patch (issue 3166)
http://gwt-code-reviews.appspot.com/2009/diff/1/7 File user/src/com/google/gwt/user/client/impl/DOMImplStandard.java (right): http://gwt-code-reviews.appspot.com/2009/diff/1/7#newcode46 Line 46: var button = evt.button; Note that this switch from evt.which to evt.button is quite intentional. It turns out that evt.which is just not entirely reliable across browsers, but evt.button is. But evt.button returns values [0,1,2] rather than [1,2,3], necessitating this change. http://gwt-code-reviews.appspot.com/2009 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: strange compiler error in trunk
On Fri, Jan 16, 2009 at 8:46 PM, Cameron Braid came...@braid.com.au wrote: I am using version 1.2.1 I created a new module that triggers the compiler error : module inherits name=com.extjs.gxt.ui.GXT / entry-point class='error.client.GwtCompilerErrorEntryPoint' / set-property name=locale value=default/ /module package error.client; import com.extjs.gxt.ui.client.widget.ContentPanel; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.ui.RootPanel; public class GwtCompilerErrorEntryPoint implements EntryPoint { public void onModuleLoad() { ContentPanel contentPanel = new ContentPanel(); contentPanel.setSize(600, 800); RootPanel.get().add(contentPanel); } } An interesting observation - to trigger the exception all that is required is to import ContentPanel. The class doesn't even have to be used. eg. this entry point also causes the error : package error.client; import com.extjs.gxt.ui.client.widget.ContentPanel; import com.google.gwt.core.client.EntryPoint; public class GwtCompilerErrorEntryPoint implements EntryPoint { public void onModuleLoad() { } } Cool, I can reproduce it now. I've created an issue to track its progress: http://code.google.com/p/google-web-toolkit/issues/detail?id=3304 -Lex Regards Cameron. On Sat, Jan 17, 2009 at 9:00 AM, Lex Spoon sp...@google.com wrote: On Fri, Jan 16, 2009 at 11:28 AM, Lex Spoon sp...@google.com wrote: I'll go download ExtGwt now and try to figure out what's going on. It really should find an implementing method, but the precise way it checks must be messed up. My initial attempt to repro didn't work. Cameron, what precise version of ExtGWT are you using? I downloaded 1.2.1 from the web site, added GXT as an inherited module of the Hello sample module, and then compiled Hello. This is with revision 4488 of trunk. I'm guessing I have the wrong version of ExtGWT. Another possibility is that you have a class in your module that is needed to trigger the bug. Lex --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: tmpdir patch in Utility.java
LGTM. Feel free to commit to both 1.6 and trunk as there is a 99.9% chance this will merge cleanly. On Tue, Jan 20, 2009 at 1:14 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: We've bumped into some problems where the pattern /tmp/gwt-tmp/* something-unique* fails, because the intermediate gwt-tmp layer has bad permissions from one user that later block a second user. I think that was my original error, fwiw, but here's a patch that just cuts the middle layer... less pretty grouping of our cruft, but no permission issues (given that /tmp is open, at least). Patch on trunk r4495; should we (instead/also) patch 1.6? --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: documentation review requested for releases-1.6 - eclipse README updated to reflect gwt_devjar variable
LGTM. On Tue, Jan 20, 2009 at 2:47 PM, John Tamplin j...@google.com wrote: The attached patch, relative to 1.6 @ r4495, updates the Eclipse README.txt file to properly set the recently introduced gwt_devjar variable. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWTCanvas and ImageBundle,
I don't think you can, at least not easily. To do this requires the drawImage() call which allows specifying the source rectangle. GWTCanvas doesn't support clipping either, so you can't set a rectangle path, and clip the source image. This might be due to a limitation of IE/VML, I dunno, I try to stay away from VML. -Ray On Tue, Jan 20, 2009 at 1:00 PM, Axel Kittenberger axe...@gmail.com wrote: Can I (and if yes how) use ImageBundle images in GWTCanvas.drawImage ()? Kind regards, Axel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4494 - in releases/1.6/user: src/com/google/gwt/event src/com/google/gwt/event/dom src/com/googl...
Author: j...@google.com Date: Tue Jan 20 09:18:24 2009 New Revision: 4494 Added: releases/1.6/user/src/com/google/gwt/event/EventBase.gwt.xml releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml releases/1.6/user/src/com/google/gwt/event/logical/LogicalEvent.gwt.xml Modified: releases/1.6/user/src/com/google/gwt/event/Event.gwt.xml releases/1.6/user/src/com/google/gwt/event/dom/client/DomEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/BeforeSelectionEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/CloseEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/HighlightEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/OpenEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/ResizeEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/SelectionEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/ShowRangeEvent.java releases/1.6/user/src/com/google/gwt/event/logical/shared/ValueChangeEvent.java releases/1.6/user/src/com/google/gwt/event/shared/HandlerManager.java releases/1.6/user/src/com/google/gwt/event/shared/HasHandlers.java releases/1.6/user/src/com/google/gwt/user/User.gwt.xml releases/1.6/user/src/com/google/gwt/user/client/impl/HistoryImpl.java releases/1.6/user/src/com/google/gwt/user/client/ui/ListenerWrapper.java releases/1.6/user/src/com/google/gwt/user/client/ui/Widget.java releases/1.6/user/src/com/google/gwt/user/datepicker/client/DateChangeEvent.java releases/1.6/user/test/com/google/gwt/user/client/ui/DisclosurePanelTest.java releases/1.6/user/test/com/google/gwt/user/datepicker/client/DateChangeEventTest.java Log: Refactors event infrastructure, to simplify the firing mechanism and allow users to cherry-pick the non-Dom events. Patch by: jgw Review by: ecc, rjrjr Modified: releases/1.6/user/src/com/google/gwt/event/Event.gwt.xml == --- releases/1.6/user/src/com/google/gwt/event/Event.gwt.xml(original) +++ releases/1.6/user/src/com/google/gwt/event/Event.gwt.xmlTue Jan 20 09:18:24 2009 @@ -1,6 +1,5 @@ module -!-- This module could be broken down into much finer detail -- -source path=shared/ -source path=logical/shared/ -source path=dom/client/ -/module \ No newline at end of file + inherits name=com.google.gwt.event.EventBase / + inherits name=com.google.gwt.event.dom.DomEvent / + inherits name=com.google.gwt.event.logical.LogicalEvent / +/module Added: releases/1.6/user/src/com/google/gwt/event/EventBase.gwt.xml == --- (empty file) +++ releases/1.6/user/src/com/google/gwt/event/EventBase.gwt.xmlTue Jan 20 09:18:24 2009 @@ -0,0 +1,5 @@ +module + inherits name=com.google.gwt.core.Core / + + source path=shared / +/module Added: releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml == --- (empty file) +++ releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml Tue Jan 20 09:18:24 2009 @@ -0,0 +1,6 @@ +module + inherits name=com.google.gwt.event.EventBase / + inherits name=com.google.gwt.user.Dom / + + source path=client/ +/module Modified: releases/1.6/user/src/com/google/gwt/event/dom/client/DomEvent.java == --- releases/1.6/user/src/com/google/gwt/event/dom/client/DomEvent.java (original) +++ releases/1.6/user/src/com/google/gwt/event/dom/client/DomEvent.java Tue Jan 20 09:18:24 2009 @@ -17,7 +17,7 @@ import com.google.gwt.event.shared.EventHandler; import com.google.gwt.event.shared.GwtEvent; -import com.google.gwt.event.shared.HandlerManager; +import com.google.gwt.event.shared.HasHandlers; import com.google.gwt.user.client.Event; /** @@ -31,6 +31,7 @@ */ public abstract class DomEventH extends EventHandler extends GwtEventH implements HasNativeEvent { + /** * Type class used by dom event subclasses. Type is specialized for dom in * order to carry information about the native event. @@ -53,7 +54,7 @@ /** * This constructor allows dom event types to be triggered by the - * {...@link DomEvent#fireNativeEvent(Event, HandlerManager)} method. It should + * {...@link DomEvent#fireNativeEvent(Event, HasHandlers)} method. It should * only be used by implementors supporting new dom events. * p * Any such dom event type must act as a flyweight around a native event @@ -109,7 +110,7 @@ * @param handlers the event manager containing the handlers to fire (may be * null) */ - public static void fireNativeEvent(Event nativeEvent, HandlerManager
[gwt-contrib] [google-web-toolkit commit] r4500 - releases/1.6
Author: fabb...@google.com Date: Tue Jan 20 13:27:40 2009 New Revision: 4500 Modified: releases/1.6/branch-info.txt Log: Recording merge of c4498 to trunk Modified: releases/1.6/branch-info.txt == --- releases/1.6/branch-info.txt(original) +++ releases/1.6/branch-info.txtTue Jan 20 13:27:40 2009 @@ -25,6 +25,7 @@ /releases/1.6/@r4366:4385 was merged (r4386) into trunk /releases/1.6/@r4385:4459 was merged (r4488) into trunk /releases/1.6/@r4359:4490 was merged (r4491) into trunk +/releases/1.6/@c4498 was merged (r4499) into trunk The next merge into trunk will be: -svn merge --accept=postpone -r4490: https://google-web-toolkit.googlecode.com/svn/releases/1.6 . +svn merge --accept=postpone -r4490:4498,4499: https://google-web-toolkit.googlecode.com/svn/releases/1.6 . --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: GWTCanvas and ImageBundle,
Thanks Ray! I'll just do traditional ImagePrefetching then... ( I'm just experimenting with using the new Canvas object to do GWT based games. Say No to Flash! :-) Kind regards, Axel BTW: just realising I might have hit the wrong group, sorry about that. On Jan 20, 10:15 pm, Ray Cromwell cromwell...@gmail.com wrote: I don't think you can, at least not easily. To do this requires the drawImage() call which allows specifying the source rectangle. GWTCanvas doesn't support clipping either, so you can't set a rectangle path, and clip the source image. This might be due to a limitation of IE/VML, I dunno, I try to stay away from VML. -Ray On Tue, Jan 20, 2009 at 1:00 PM, Axel Kittenberger axe...@gmail.com wrote: Can I (and if yes how) use ImageBundle images in GWTCanvas.drawImage ()? Kind regards, Axel --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4498 - releases/1.6/dev/core/src/com/google/gwt/util/tools
Author: fabb...@google.com Date: Tue Jan 20 12:56:29 2009 New Revision: 4498 Modified: releases/1.6/dev/core/src/com/google/gwt/util/tools/Utility.java Log: Fix Utility.java to use better unique temporaries, not under gwt-tmp (which can have permission issues). Review by: scottb Modified: releases/1.6/dev/core/src/com/google/gwt/util/tools/Utility.java == --- releases/1.6/dev/core/src/com/google/gwt/util/tools/Utility.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/util/tools/Utility.javaTue Jan 20 12:56:29 2009 @@ -239,7 +239,7 @@ public static File makeTemporaryDirectory(File baseDir, String prefix) throws IOException { if (baseDir == null) { - baseDir = new File(System.getProperty(java.io.tmpdir), GWT_TMP_DIR); + baseDir = new File(System.getProperty(java.io.tmpdir)); } baseDir.mkdirs(); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] buildbreak fix to XSLinker and StandaloneScriptLinker
For the XSLinker breakage... longer in the digging than the fixing. This is against *trunk* r4499, although I imagine it's identical in 1.6... in 1.6, I also wanted to downport the LinkerSuite tests, but I'm getting what I think is an unrelated break in user/test/com/google/gwt/junit/client/TestManualAsync.java:357: cannot find symbol. I've just re-updated the 1.6 side, which may (or may not) have fixed it, but this patch on trunk seems sound. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- Index: dev/core/src/com/google/gwt/core/linker/XSLinker.java === --- dev/core/src/com/google/gwt/core/linker/XSLinker.java (revision 4495) +++ dev/core/src/com/google/gwt/core/linker/XSLinker.java (working copy) @@ -97,7 +97,7 @@ // Generate the call to tell the bootstrap code that we're ready to go. out.newlineOpt(); out.print(if ( + context.getModuleFunctionName() + ) -+ context.getModuleFunctionName() + .onScriptLoad();); ++ context.getModuleFunctionName() + .onScriptLoad(gwtOnLoad);); out.newlineOpt(); out.print(})();); out.newlineOpt(); Index: dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java === --- dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java (revision 4495) +++ dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java (working copy) @@ -115,7 +115,7 @@ // Generate the call to tell the bootstrap code that we're ready to go. out.newlineOpt(); out.print(if ( + context.getModuleFunctionName() + ) -+ context.getModuleFunctionName() + .onScriptLoad();); ++ context.getModuleFunctionName() + .onScriptLoad(gwtOnLoad);); out.newlineOpt(); out.print(})();); out.newlineOpt();
[gwt-contrib] Re: buildbreak fix to XSLinker and StandaloneScriptLinker
On Tue, Jan 20, 2009 at 5:57 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: For the XSLinker breakage... longer in the digging than the fixing. This is against *trunk* r4499, although I imagine it's identical in 1.6... in 1.6, I also wanted to downport the LinkerSuite tests, but I'm getting what I think is an unrelated break in user/test/com/google/gwt/junit/client/TestManualAsync.java:357: cannot find symbol. I've just re-updated the 1.6 side, which may (or may not) have fixed it, but this patch on trunk seems sound. I think this needs to be applied to 1.6 and merged up, as it is broken there as well. Otherwise, LGTM. -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4497 - releases/1.6/user/src/com/google/gwt/event/dom
Author: j...@google.com Date: Tue Jan 20 12:56:27 2009 New Revision: 4497 Modified: releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml Log: Fixed capitalization typo (don't ask me how this compiled on my desk). Modified: releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml == --- releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml (original) +++ releases/1.6/user/src/com/google/gwt/event/dom/DomEvent.gwt.xml Tue Jan 20 12:56:27 2009 @@ -1,6 +1,6 @@ module inherits name=com.google.gwt.event.EventBase / - inherits name=com.google.gwt.user.Dom / + inherits name=com.google.gwt.user.DOM / source path=client/ /module --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4503 - releases/1.6/user/src/com/google/gwt/event/shared
Author: sco...@google.com Date: Tue Jan 20 14:52:14 2009 New Revision: 4503 Modified: releases/1.6/user/src/com/google/gwt/event/shared/HandlerManager.java Log: Organize imports. Modified: releases/1.6/user/src/com/google/gwt/event/shared/HandlerManager.java == --- releases/1.6/user/src/com/google/gwt/event/shared/HandlerManager.java (original) +++ releases/1.6/user/src/com/google/gwt/event/shared/HandlerManager.java Tue Jan 20 14:52:14 2009 @@ -15,13 +15,13 @@ */ package com.google.gwt.event.shared; +import com.google.gwt.event.shared.GwtEvent.Type; +import com.google.gwt.user.client.Command; + import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; - -import com.google.gwt.event.shared.GwtEvent.Type; -import com.google.gwt.user.client.Command; /** * Manager responsible for adding handlers to event sources and firing those --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4502 - releases/1.6/dev/core/src/com/google/gwt/dev
Author: sco...@google.com Date: Tue Jan 20 14:51:34 2009 New Revision: 4502 Modified: releases/1.6/dev/core/src/com/google/gwt/dev/Compiler.java releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java Log: Fixed a bug where compiling from hosted mode would fail to refresh module state from what had already occurred in hosted mode. Modified: releases/1.6/dev/core/src/com/google/gwt/dev/Compiler.java == --- releases/1.6/dev/core/src/com/google/gwt/dev/Compiler.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/dev/Compiler.java Tue Jan 20 14:51:34 2009 @@ -140,7 +140,8 @@ } for (String moduleName : options.getModuleNames()) { -ModuleDef module = ModuleDefLoader.loadFromClassPath(logger, moduleName); +ModuleDef module = ModuleDefLoader.loadFromClassPath(logger, +moduleName, true); File compilerWorkDir = options.getCompilerWorkDir(moduleName); if (options.isValidateOnly()) { Modified: releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java == --- releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/dev/GWTCompiler.java Tue Jan 20 14:51:34 2009 @@ -132,7 +132,7 @@ ModuleDef[] modules = new ModuleDef[options.getModuleNames().size()]; int i = 0; for (String moduleName : options.getModuleNames()) { - modules[i++] = ModuleDefLoader.loadFromClassPath(logger, moduleName); + modules[i++] = ModuleDefLoader.loadFromClassPath(logger, moduleName, true); } return run(logger, modules); } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: r4419 - in trunk: . dev
Your problem is because the jetty classes have been re-packaged under com.goolgle.gwt.thirdparty etc but somewhere there's some reflection code try to instantiate a jetty class using it's org.mortbay name. The class name must be coming from a string or text file which unfortunately did not also get changed during the repackaging process. The easy fix is to search the java + other text files under com.google.gwt.thirdparty...jetty and correct the classname reference. Your solution of manually including a jetty jar won't work because the repackaged jetty code will immediately try and cast the reflected new instance to a com.google.gwt...jetty named class which of course fails. The reason foe the repackaging is of course to allow users to use whatever jetty they want and have gwt work with it's own known version of jetty. Because in both cases the classes have different names there are no class path clashes. I believe the tool gwt uses to pakckage is called jarjar... Mp On 21/01/2009, at 11:16 AM, Sam sami.ja...@gmail.com wrote: Got the same problem, the project skeleton created by WebAppCreator failed to execute Seems to be a CL issue Any idea ? conf - Windows XP r4505 Sami 2009-01-21 01:13:39.299::INFO: Logging to STDERR via com.google.gwt.thirdparty.org.mortbay.log.StdErrLog 2009-01-21 01:13:39.339::INFO: jetty-6.1.x 2009-01-21 01:13:39.459::INFO: NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet 2009-01-21 01:13:39.639::WARN: EXCEPTION java.lang.ClassNotFoundException: org.mortbay.jetty.servlet.DefaultServlet at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at com. google. gwt.thirdparty.org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:375) at com. google. gwt.thirdparty.org.mortbay.jetty.webapp.WebAppClassLoader.loadClass (WebAppClassLoader.java:337) at com.google.gwt.thirdparty.org.mortbay.util.Loader.loadClass (Loader.java:91) at com.google.gwt.thirdparty.org.mortbay.util.Loader.loadClass (Loader.java:71) at com.google.gwt.thirdparty.org.mortbay.jetty.servlet.Holder.doStart (Holder.java:73) at com. google.gwt.thirdparty.org.mortbay.jetty.servlet.ServletHolder.doStart (ServletHolder.java:233) at com. google.gwt.thirdparty.org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39) at com. google. gwt.thirdparty.org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:616) at com. google.gwt.thirdparty.org.mortbay.jetty.servlet.Context.startContext (Context.java:140) at com. google. gwt.thirdparty.org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220) at com. google.gwt.thirdparty.org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:513) at com. google.gwt.thirdparty.org.mortbay.jetty.webapp.WebAppContext.doStart (WebAppContext.java:448) at com. google.gwt.thirdparty.org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39) at com. google.gwt.thirdparty.org.mortbay.jetty.handler.HandlerWrapper.doStart (HandlerWrapper.java:130) at com.google.gwt.thirdparty.org.mortbay.jetty.Server.doStart (Server.java:222) at com. google.gwt.thirdparty.org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39) at com.google.gwt.dev.shell.jetty.JettyLauncher.start (JettyLauncher.java:231) at com.google.gwt.dev.HostedMode.doStartUpServer(HostedMode.java: 359) at com.google.gwt.dev.HostedModeBase.startUp(HostedModeBase.java: 580) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:403) at com.google.gwt.dev.HostedMode.main(HostedMode.java:231) 2009-01-21 01:13:39.759::WARN: failed default javax.servlet.UnavailableException: org.mortbay.jetty.servlet.DefaultServlet at com.google.gwt.thirdparty.org.mortbay.jetty.servlet.Holder.doStart (Holder.java:79) at com. google.gwt.thirdparty.org.mortbay.jetty.servlet.ServletHolder.doStart (ServletHolder.java:233) at com. google.gwt.thirdparty.org.mortbay.component.AbstractLifeCycle.start (AbstractLifeCycle.java:39) at com. google. gwt.thirdparty.org.mortbay.jetty.servlet.ServletHandler.initialize (ServletHandler.java:616) at com. google.gwt.thirdparty.org.mortbay.jetty.servlet.Context.startContext (Context.java:140) at com. google. gwt.thirdparty.org.mortbay.jetty.webapp.WebAppContext.startContext (WebAppContext.java:1220) at com. google.gwt.thirdparty.org.mortbay.jetty.handler.ContextHandler.doStart (ContextHandler.java:513) at
[gwt-contrib] [google-web-toolkit commit] r4504 - releases/1.6/dev/core/src/com/google/gwt/core/linker
Author: fabb...@google.com Date: Tue Jan 20 15:06:01 2009 New Revision: 4504 Modified: releases/1.6/dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java releases/1.6/dev/core/src/com/google/gwt/core/linker/XSLinker.java Log: buildbreak fix, that onScriptLoad needs to be given gwtOnLoad as its argument. Review by: jat Modified: releases/1.6/dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java == --- releases/1.6/dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/core/linker/SingleScriptLinker.java Tue Jan 20 15:06:01 2009 @@ -93,7 +93,7 @@ // Generate the call to tell the bootstrap code that we're ready to go. out.newlineOpt(); out.print(if ( + context.getModuleFunctionName() + ) -+ context.getModuleFunctionName() + .onScriptLoad();); ++ context.getModuleFunctionName() + .onScriptLoad(gwtOnLoad);); out.newlineOpt(); out.print(})();); out.newlineOpt(); Modified: releases/1.6/dev/core/src/com/google/gwt/core/linker/XSLinker.java == --- releases/1.6/dev/core/src/com/google/gwt/core/linker/XSLinker.java (original) +++ releases/1.6/dev/core/src/com/google/gwt/core/linker/XSLinker.java Tue Jan 20 15:06:01 2009 @@ -80,7 +80,7 @@ // Generate the call to tell the bootstrap code that we're ready to go. out.newlineOpt(); out.print(if ( + context.getModuleFunctionName() + ) -+ context.getModuleFunctionName() + .onScriptLoad();); ++ context.getModuleFunctionName() + .onScriptLoad(gwtOnLoad);); out.newlineOpt(); out.print(})();); out.newlineOpt(); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: RR: ResourceOracleImpl patch: part 2
ClassPathEntry: update @return on line 33 PathPrefixSet: - slightly dangerous to overload modCount this way - Needs format - Use javadoc on field comments, not single-line non-javadoc comments ResourceOracleImpl - Single-line multi-line comment on 305 - Comment for globalResourceToPrefixMap? - Let's walk through the logic face to face, I'd like to confirm why we don't need to preserve Resource-Prefix across refreshes. PathPrefixSetTest: - Add a test to make sure the correct PathPrefix is returned? ClassPathEntryTest has compile errors ResourceOracleImplTest does not pass for me; are you missing updates to the test data or are there some stale changes from a previous patch in there? On Fri, Jan 16, 2009 at 8:04 PM, Amit Manjhi amitman...@google.com wrote: Hi Scott, Please find attached the patch which enables ResourceOracleImpl to prefer PathPrefix over ClassPath in choosing resources. Regards, Amit --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r4506 - trunk/dev/oophm/src/com/google/gwt/dev/shell
Author: j...@google.com Date: Tue Jan 20 16:55:55 2009 New Revision: 4506 Modified: trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserListener.java Log: Catch the case of a failure to start the browser listener and avoid NPE, so the log message stays visible. Patch by: jat Review by: bobv (TBR) Modified: trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserListener.java == --- trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserListener.java (original) +++ trunk/dev/oophm/src/com/google/gwt/dev/shell/BrowserListener.java Tue Jan 20 16:55:55 2009 @@ -98,6 +98,8 @@ } public void start() { -listenThread.start(); +if (listenThread != null) { + listenThread.start(); +} } } --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] down-merge of LinkerSuite tests
@Scott, Perhaps an exercise in barn door closing, but this patch pulls LinkerSuite from trunk to 1.6. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~--- linkertest-r4506.patch Description: Binary data
[gwt-contrib] Re: help needed on gwt-maven-plugin
On Tue, Jan 20, 2009 at 9:41 PM, Scott Blum sco...@google.com wrote: Thanks, nicolas. Your test reproduced an issue, but I was unable to get Tomcat to work properly. We will probably not fix this for 1.6 since Jetty works fine. http://code.google.com/p/google-web-toolkit/issues/detail?id=1032 Actually, I think jetty has a similar issue (see the internal error report Lex is looking at) -- I think the root cause is jarjar missed some reflective references to classes, so code is looking for classes under the un-mangled name yet the classes have been renamed inside our jar. Can you try it with surpressing the jarjar mangling? -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: help needed on gwt-maven-plugin
Jarjar is a trunk issue that I believe is unrelated. On Tue, Jan 20, 2009 at 10:08 PM, John Tamplin j...@google.com wrote: On Tue, Jan 20, 2009 at 9:41 PM, Scott Blum sco...@google.com wrote: Thanks, nicolas. Your test reproduced an issue, but I was unable to get Tomcat to work properly. We will probably not fix this for 1.6 since Jetty works fine. http://code.google.com/p/google-web-toolkit/issues/detail?id=1032 Actually, I think jetty has a similar issue (see the internal error report Lex is looking at) -- I think the root cause is jarjar missed some reflective references to classes, so code is looking for classes under the un-mangled name yet the classes have been renamed inside our jar. Can you try it with surpressing the jarjar mangling? -- John A. Tamplin Software Engineer (GWT), Google --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: down-merge of LinkerSuite tests
Since 1.6 is currently red, I can't prove that it passes. Yet. I'll hold it 'til I can... On Tue, Jan 20, 2009 at 10:09 PM, Scott Blum sco...@google.com wrote: No need to review if it passes and is a clean merge. On Tue, Jan 20, 2009 at 9:59 PM, Freeland Abbott gwt.team.fabb...@gmail.com wrote: @Scott, Perhaps an exercise in barn door closing, but this patch pulls LinkerSuite from trunk to 1.6. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---