Re: Manual Serialization / Deserialization of objects
Hi Mark - I've actually gotten this partially working since we last talked. I can't use a RemoteServiceServlet because the GWT-RPC mechanism is based on XHR which is restricted by SOP. I'm writing my own custom transport layer using JSONP, but I still want to be able to use java objects to transfer data, so I want to be able to serialize / deserialize these objects so I can send them over jsonp. Is there a way to use RemoteServiceServlet and still get around the SOP that I'm unaware of? -Andrew On Mon, Jun 1, 2009 at 4:29 PM, Mark Renouf mark.ren...@gmail.com wrote: Can you eloborate on your goals (re: cross-site)? I'd like to understand the motivation so I can comment on the approach. Obviously there is a reason why cannot make use of RemoteServiceServlet, but I'm not sure I know why. On Jun 1, 3:41 pm, mayop100 mayop...@gmail.com wrote: Hi Guys - I'm trying to write my own custom transport solution for client / server communication so that I can make my project work cross-site. I would like to serialize objects on the client side, send them to my Jetty server using my own custom transport, and then deserialize those objects on the server side for handling. I've written the client code, and it seems to be working. It looks like this: (not that NetworkPacket implements IsSerializable, and EventService is a dummy RemoteService) public String serializePacket(NetworkPacket np) { String retVal = null; SerializationStreamFactory fact = (SerializationStreamFactory) GWT.create(EventService.class); SerializationStreamWriter theSW = fact.createStreamWriter(); try { theSW.writeObject(np); retVal = theSW.toString(); } catch(Exception e) { e.printStackTrace(); } return retVal; } This code seems to be working (it produces a reasonable-looking string). I can't test if it deserializes though because the serialization is asymmetric. The part I can't figure out though, is how to deserialize on the server side. The closest I've found is the ServerSerializationStreamReader class, which I found while poking through the GWT source. It seems to be undocumented though, and its in the com.google.gwt.user.server.rpc.impl package, which tells me it's probably not intended for use by my code. How am I supposed to do this? Any help will be greatly appreciated! -Andrew --~--~-~--~~~---~--~~ You received 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: RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:192) problem on Gilead
On Mon, Jun 1, 2009 at 10:46 PM, SunilBansal sunil.ban...@daffodildb.com wrote: lan thanks for your response which log you are talking about. because when i checked in hibernate.log then i found no exception. The servlet container's log. In the default case for GWT it used to be Tomcat but might now be Jetty. In the project I used to work one, it would have been the Tomcat portion of JBoss. For you, it's whatever servlet container you're using. Specifically, it's the thing that runs the server-side half of your RPCs. Ian --~--~-~--~~~---~--~~ You received 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 and backend technology
I have used netbeans to create the rails project(jruby) and deploy it in debug mode on glassfish v3. I then used eclipse to create the gwt project inside the public folder in rails. From eclipse I unchecked the launch internal server and I changed the url to the url of of the page on the server. I then press debug and the eclipse open gwt in hosted mode. that is all I guess. On Jun 1, 6:30 pm, Rajeev Dayal rda...@google.com wrote: Can you provide a bit more information on how you're launching the debug session? Is it a remote-debugging session, can you provide some more information about the listening process (the one being debugged) and the one connecting to the listener (which would be in your IDE)? I'm specifically interested in how you're launching both processes. If this is an in-IDE debug session, and you're using Eclipse, are you making sure that your launching the application using a Debug launch configuration, as opposed to a Run launch configuration? On Fri, May 29, 2009 at 5:13 AM, ahhat...@gmail.com ahhat...@gmail.comwrote: Thanks Thomas, I was banned of this group and I really have no idea why... Anyway, I followed your advice and it worked nicely. Now, I can run both of them with no problems but I can't debug gwt... I doesn't stop in the breakpoints in eclipse. Do you have any ideas why may that happen? Thank again, I really appreciate the help. On May 29, 1:44 am, Thomas Broyer t.bro...@gmail.com wrote: On 28 mai, 17:52, Ahmed ahha...@gmail.com wrote: Hello everybody, I am about to begin a new project using gwt 1.6. I was planning to use ruby on rails as the backend... but I had a problem during the development with the same origin policy... and as I don't know any way to make both the gwt project and the ruby on rails project to work on the same server, I decided to move to jruby. It's as easy as: 1. deploying your GWT app *once* to your server running rails 2. launch the HostedMode (or GWTShell) in -noserver mode http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT 1.6 Compilation
HI All, I am trying to shift on GWT 1.6. But when i compiled my code on GWT 1.6 then i face some compilation issue. The Exception stack trace is showing as :- [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass$FieldReflector.getPrimFieldValues (Unknown Source) at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am using GWT 1.6, GWT-EXT 2.0.4 and Gilead. Is this problem coming because of Old version of GWT-Ext old version. Thanks and regards, Sunil Bansal. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 Compilation
same code is working fine on GWT 1.5 and it's also showing the following message Gwt module 'module name' needs to be (re)compiled,please run a compile or use the Compile/Browse button in hosted mode On Jun 2, 11:18 am, Sanj sunil.ban...@daffodildb.com wrote: HI All, I am trying to shift on GWT 1.6. But when i compiled my code on GWT 1.6 then i face some compilation issue. The Exception stack trace is showing as :- [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass$FieldReflector.getPrimFieldValues (Unknown Source) at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am using GWT 1.6, GWT-EXT 2.0.4 and Gilead. Is this problem coming because of Old version of GWT-Ext old version. Thanks and regards, Sunil Bansal. --~--~-~--~~~---~--~~ You received 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 RPC Encryption
Thanks, Mark. On Jun 2, 7:40 am, Mark Renouf mark.ren...@gmail.com wrote: Not without modifications to the RPC subsystem. code generators and API. There is a Wiki doc on the proposed design: http://code.google.com/p/google-web-toolkit/wiki/RpcAuth On Jun 1, 5:46 am, Deep Blue deep.blue...@gmail.com wrote: Thanks for the comments. So, we are not able to implement this in current version of GWT? On May 30, 10:13 pm, Mark Renouf mark.ren...@gmail.com wrote: Re: request signing At the GWT fireside chat at Google I/O, I asked about the possibility of a per-request handler for the new RPCRequestBuilder coming in GWT2. They mentioned it had been considered. With a user method invoked just before the request is sent, you could easily implement GWT-RPC signature/authentication transparently and protect the integrity of the entire request. MD5, SHA1 and event HmacSHA1 work reasonably when ported to translatable Java source. I've successfully performed authenticated Amazon S3 requests in this way, straight from the browser. On May 30, 2:21 am, hazy1 matt.egyh...@gmail.com wrote: If you are worried about replay attacks use a random token as part of each response/request pair. On May 29, 11:09 pm, Deep Blue deep.blue...@gmail.com wrote: Hi, Thanks all for the comments / opinions. I agreed with Daniel and Jason that we shouldn't send any extra info. to client and protect from server side. However, some of my clients are paranoid about the data is being exposed to users as clear text and they are able to forge the request to retrieve data from server. This is just one step more protection, but should be effective in prevent normal users from forging the request just by using plugin in firefox. GWT has already obfuscated the javascript source code when compiling, this is great. I was thinking maybe we can take one step further to encrypt the data (only for sensitive information rpc.) We will protect the data / request from server side, but to let clients able to rest assure, I am just trying to look out any way we can implement the encryption in GWT. I know it sounds ridiculous, but sometimes clients are ridiculuous.- 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 -~--~~~~--~~--~--~---
Composite - can click on one widget inside look like click on the Composite itself?
Hi men, I am trying to implement my own Composite named MenuItem composing of a Grid with 3 cells next to each other and a Label placed in the middle cell. I call initWidget(the Grid). The issue now is that I register a click handler for the Label which should determine if the MenuItem was clicked or not. The Grid should not react on clicks, thus I do not register click handler for it. Now, naturally, the source of the click event will be always the Label. But in my application I need to get as the source of the event the MenuItem object, not the Label which composes just a part of the MenuItem Composite. Is there any smooth way to do that? My only idea is not to extend Composite class, but the Label itself and add it in a Grid. Is this a correct solution? 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: GWT: HostedModeException: Expected primitive type int; actual value was undefined
Hi Igor. I think your problem is related to mine: http://code.google.com/p/google-web-toolkit/issues/detail?id=3652 But I can reproduce it in both hosted mode and in the browser. I think there is a serialization issue with the GWT RPC when sending inherited (super-class) fields. On May 31, 11:33 am, igor.khd igor@gmail.com wrote: Hello guys! I am using GWT-1.6 + gwt-ext-2.0.5 + gilead (previous name is hibernate4gwt). I encountered next problem: I am getting next exception when sending to the client an instance of class bellow which extends form LightEntity: com.google.gwt.dev.shell.HostedModeException: Expected primitive type int; actual value was undefined at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt (ModuleSpace.java:209) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.readInt (Native Method) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject (AbstractSerializationStreamReader.java:46) at net.sf.gilead.pojo.java5.LightEntity_FieldSerializer.deserialize (LightEntity_FieldSerializer.java:5) at by.orwest.oms.core.entity.Insurance_FieldSerializer.deserialize (Insurance_FieldSerializer.java:91) at by.orwest.oms.gwt.client.rpc.IInsuranceRemote_TypeSerializer.deserialize (Native Method) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize (ClientSerializationStreamReader.java:116) Here is my class: @Entity @Table(name=INSURANCE) public class Insurance extends LightEntity implements Serializable { private long id; private String sn; private Date createdDate; private Date startDate; private Date endDate; private String insuranceCompany; private String insurer; private long price; private String comment; public Insurance() { } @Id @GeneratedValue @Column(name=ID) public long getId() { return id; } public void setId(long id) { this.id = id; } @Column(name=SN,unique = true, nullable = true, length = 20) public String getSN() { return sn; } public void setSN(String sn) { this.sn = sn; } @Column(name=CREATED_DATE, nullable = true) @Temporal(TemporalType.DATE) public Date getCreatedDate() { return createdDate; } public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; } @Column(name=START_DATE, nullable = false) @Temporal(TemporalType.DATE) public Date getStartDate() { return startDate; } public void setStartDate(Date startDate) { this.startDate = startDate; } @Column(name=END_DATE, nullable = false) @Temporal(TemporalType.DATE) public Date getEndDate() { return endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } @Column(name=INSURANCE_COMPANY, nullable = true, length = 30) public String getInsuranceCompany() { return insuranceCompany; } public void setInsuranceCompany(String insuranceCompany) { this.insuranceCompany = insuranceCompany; } @Column(name=INSURER, nullable = true, length = 30) public String getInsurer() { return insurer; } public void setInsurer(String insurer) { this.insurer = insurer; } @Column(name=PRICE, nullable = true) public long getPrice() { return price; } public void setPrice(long price) { this.price = price; } @Column(name=COMMENT, nullable = true, length = 400) public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } } LightEntity is abstract class from gilead library (adapter-core.jar). It is serializable class which contains only one protected field MapString,String public abstract class LightEntity implements ILightEntity, Serializable { private static final long serialVersionUID = 1061336746068017740L; protected MapString, String _proxyInformations; public MapString, String getProxyInformations() { return _proxyInformations; } @SuppressWarnings(unchecked) public void setProxyInformations(Map informations) { _proxyInformations = informations; } public LightEntity() { super(); } public void addProxyInformation(String property, String proxyInfo) {...} public void removeProxyInformation(String property) {... } public String
Ordering of rendering
Hi all, Using the GWT EntryPoint is there anyway to make sure that the entry point isn't invoked until the rest of the document is loaded? I have made a widget that can be shown on various pages and sometimes due to one thing or another the widget fails to render but when this happens it stalls the browser and doesn't continue to render the rest of the document? Is there anyway to not invoke onModuleLoad until the document has loaded? Many thanks, Eggsy PS. I'm aware that our architecture should have some form of timeout really but at the moment this is the most expedient way. --~--~-~--~~~---~--~~ You received 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 Serialization of abstract classes
Ok, that was what I wanted to know. I'll proceed with doing what you suggested. Thanks. On Jun 2, 2:04 am, Paul Robinson ukcue...@gmail.com wrote: I (and presumably many others) am serializing things from an inheritance hierarchy without any problems. I can suggest two things for you: (1) reduce your code to the simplest working code that will show the problem, and then append that code to the issue you created. The source you posted to this thread didn't include all your code (eg State wasn't there) (2) Have you tried stepping through the GWT RPC code in a debugger to see if the data gets written out and it if then gets read in? This should tell you where the problem lies. Paul mirceade wrote: Come on guys, hasn't anybody else used more than plain strings and ints with GWT RPC? Is this really a bug (not serializing correctly up on the inheritance chain) or am I doing it all wrong? Help! On 14 Mai, 18:35, Paul Robinson ukcue...@gmail.com wrote: I don't see anything wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Ordering of rendering
Have you ensured that the gwt script tag occurs after everything else? Or tried a deferred command in the onModuleLoad which calls a routine to do everything currently in the onModuleLoad ? That should be queued until everything else is done.If your other js is deferring stuff too, then a deferred command in a deferred command would jump it to the end of the queue again, or failing that, a timer. Ian http://examples.roughian.com 2009/6/2 eggsy84 jimbob...@hotmail.com Hi all, Using the GWT EntryPoint is there anyway to make sure that the entry point isn't invoked until the rest of the document is loaded? I have made a widget that can be shown on various pages and sometimes due to one thing or another the widget fails to render but when this happens it stalls the browser and doesn't continue to render the rest of the document? Is there anyway to not invoke onModuleLoad until the document has loaded? Many thanks, Eggsy PS. I'm aware that our architecture should have some form of timeout really but at the moment this is the most expedient way. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Multiple windows code snippets
Hi Everybody, Could somebody be nice enough to post snippets of code around handling multiple windows in a GWT app. I've read the bug #404 entry and the pieces of suggested workarounds with window.open() but somehow I'm not connecting the dots. What I'm trying to achieve is: - Main window shows list of items in a table - User selects an item - User clicks on a 'Show Details' button - A new window pops up with the details of the item selected in the parent window Because of the nature of the information to be displayed and the fact that several detailed views may be opened at once I am not interested in using internal dialogs, panels etc. Thanks in advance. Regards, Sylvain --~--~-~--~~~---~--~~ You received 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: Ordering of rendering
Hi Ian, Many thanks for the reply. I'm assuming you mean the GWT DeferredCommand object. I'll have to take a look into how that is utilised. Eggsy On Jun 2, 10:55 am, Ian Bambury ianbamb...@gmail.com wrote: Have you ensured that the gwt script tag occurs after everything else? Or tried a deferred command in the onModuleLoad which calls a routine to do everything currently in the onModuleLoad ? That should be queued until everything else is done.If your other js is deferring stuff too, then a deferred command in a deferred command would jump it to the end of the queue again, or failing that, a timer. Ian http://examples.roughian.com 2009/6/2 eggsy84 jimbob...@hotmail.com Hi all, Using the GWT EntryPoint is there anyway to make sure that the entry point isn't invoked until the rest of the document is loaded? I have made a widget that can be shown on various pages and sometimes due to one thing or another the widget fails to render but when this happens it stalls the browser and doesn't continue to render the rest of the document? Is there anyway to not invoke onModuleLoad until the document has loaded? Many thanks, Eggsy PS. I'm aware that our architecture should have some form of timeout really but at the moment this is the most expedient way. --~--~-~--~~~---~--~~ You received 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 VS GWT-EXT
I started a GWT project and quickly had the need for more widgets than what is provided in the standard SDK. GWT-EXT comes up consistently as a popular library that provides widgets on top of GWT but when digging into the implementation it is clear that it actually is a binding of a Javascript UI library on top of the GWT framework. The situation is tough for developers, it's a bit like the good old days of Java 1.1 / 1.2 when the Netscape IFCs looked so much better than the standard widgets and Swing was in it's infancy. At this point and mostly influenced by the specific project I'm working on I've decided to stick to GWT alone and not use a not-fully-native library on top of it. It was a tough call to make, like every time one has to choose between integrating a 3rd party library that may have long term caveats or building from scratch and taking the hit upfront. - Sylvain On May 31, 8:11 pm, Fitrah Elly Firdaus firdaus.li...@gmail.com wrote: Dear All, I'm New Member, I want Ask about this, what's differences GWT and GWT-EXT? Which one the best between GWT and GWT-EXT? Regards, Firdaus firdaus_linux.vcf 1KViewDownload --~--~-~--~~~---~--~~ You received 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: HostedModeException: Expected primitive type int; actual value was undefined
Ignore my previous comment. It has nothing to do with it. On May 31, 11:33 am, igor.khd igor@gmail.com wrote: Hello guys! I am using GWT-1.6 + gwt-ext-2.0.5 + gilead (previous name is hibernate4gwt). I encountered next problem: I am getting next exception when sending to the client an instance of class bellow which extends form LightEntity: com.google.gwt.dev.shell.HostedModeException: Expected primitive type int; actual value was undefined at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:51) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt (ModuleSpace.java:209) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.readInt (Native Method) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject (AbstractSerializationStreamReader.java:46) at net.sf.gilead.pojo.java5.LightEntity_FieldSerializer.deserialize (LightEntity_FieldSerializer.java:5) at by.orwest.oms.core.entity.Insurance_FieldSerializer.deserialize (Insurance_FieldSerializer.java:91) at by.orwest.oms.gwt.client.rpc.IInsuranceRemote_TypeSerializer.deserialize (Native Method) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize (ClientSerializationStreamReader.java:116) Here is my class: @Entity @Table(name=INSURANCE) public class Insurance extends LightEntity implements Serializable { private long id; private String sn; private Date createdDate; private Date startDate; private Date endDate; private String insuranceCompany; private String insurer; private long price; private String comment; public Insurance() { } @Id @GeneratedValue @Column(name=ID) public long getId() { return id; } public void setId(long id) { this.id = id; } @Column(name=SN,unique = true, nullable = true, length = 20) public String getSN() { return sn; } public void setSN(String sn) { this.sn = sn; } @Column(name=CREATED_DATE, nullable = true) @Temporal(TemporalType.DATE) public Date getCreatedDate() { return createdDate; } public void setCreatedDate(Date createdDate) { this.createdDate = createdDate; } @Column(name=START_DATE, nullable = false) @Temporal(TemporalType.DATE) public Date getStartDate() { return startDate; } public void setStartDate(Date startDate) { this.startDate = startDate; } @Column(name=END_DATE, nullable = false) @Temporal(TemporalType.DATE) public Date getEndDate() { return endDate; } public void setEndDate(Date endDate) { this.endDate = endDate; } @Column(name=INSURANCE_COMPANY, nullable = true, length = 30) public String getInsuranceCompany() { return insuranceCompany; } public void setInsuranceCompany(String insuranceCompany) { this.insuranceCompany = insuranceCompany; } @Column(name=INSURER, nullable = true, length = 30) public String getInsurer() { return insurer; } public void setInsurer(String insurer) { this.insurer = insurer; } @Column(name=PRICE, nullable = true) public long getPrice() { return price; } public void setPrice(long price) { this.price = price; } @Column(name=COMMENT, nullable = true, length = 400) public String getComment() { return comment; } public void setComment(String comment) { this.comment = comment; } } LightEntity is abstract class from gilead library (adapter-core.jar). It is serializable class which contains only one protected field MapString,String public abstract class LightEntity implements ILightEntity, Serializable { private static final long serialVersionUID = 1061336746068017740L; protected MapString, String _proxyInformations; public MapString, String getProxyInformations() { return _proxyInformations; } @SuppressWarnings(unchecked) public void setProxyInformations(Map informations) { _proxyInformations = informations; } public LightEntity() { super(); } public void addProxyInformation(String property, String proxyInfo) {...} public void removeProxyInformation(String property) {... } public String getProxyInformation(String property) {... } public String getDebugString() {... } } I now that the problem in deserialization process of MapString,String field. But I don't understand the reason? I found out
Re: RPC Serialization of abstract classes
Well, I have finally found the problem: Drums roll: The GWT Timer class is not serializable (my super class had a Timer field buried down in there)! The compiler doesn't complain at all and when the time to serialize comes it just doesn't serialize the whole class without throwing any exception. Thanks Paul for your support and I'm sorry for wasting your time with this. On Jun 2, 2:04 am, Paul Robinson ukcue...@gmail.com wrote: I (and presumably many others) am serializing things from an inheritance hierarchy without any problems. I can suggest two things for you: (1) reduce your code to the simplest working code that will show the problem, and then append that code to the issue you created. The source you posted to this thread didn't include all your code (eg State wasn't there) (2) Have you tried stepping through the GWT RPC code in a debugger to see if the data gets written out and it if then gets read in? This should tell you where the problem lies. Paul mirceade wrote: Come on guys, hasn't anybody else used more than plain strings and ints with GWT RPC? Is this really a bug (not serializing correctly up on the inheritance chain) or am I doing it all wrong? Help! On 14 Mai, 18:35, Paul Robinson ukcue...@gmail.com wrote: I don't see anything wrong. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Ordering of rendering
Yeah, it's just a timer of 1ms as far as I remember, but the browser will put the request at the back of the queue so unless your other js leapfrogs it by doing the same trick, it should run after everything else. The screen will be rendered before it runs, which may or may not be a problem or an advantage (you can display a progress message, for example) Ian http://examples.roughian.com 2009/6/2 eggsy jimbob...@hotmail.com Hi Ian, Many thanks for the reply. I'm assuming you mean the GWT DeferredCommand object. I'll have to take a look into how that is utilised. Eggsy On Jun 2, 10:55 am, Ian Bambury ianbamb...@gmail.com wrote: Have you ensured that the gwt script tag occurs after everything else? Or tried a deferred command in the onModuleLoad which calls a routine to do everything currently in the onModuleLoad ? That should be queued until everything else is done.If your other js is deferring stuff too, then a deferred command in a deferred command would jump it to the end of the queue again, or failing that, a timer. Ian http://examples.roughian.com 2009/6/2 eggsy84 jimbob...@hotmail.com Hi all, Using the GWT EntryPoint is there anyway to make sure that the entry point isn't invoked until the rest of the document is loaded? I have made a widget that can be shown on various pages and sometimes due to one thing or another the widget fails to render but when this happens it stalls the browser and doesn't continue to render the rest of the document? Is there anyway to not invoke onModuleLoad until the document has loaded? Many thanks, Eggsy PS. I'm aware that our architecture should have some form of timeout really but at the moment this is the most expedient way. --~--~-~--~~~---~--~~ You received 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: This html file is for hosted mode support.
did you do a compile before you deployed it. When you are in hosted mode just tell it to compile the application. You will see a button in hosted mode called 'Compile/Browse'. This will compile your application and launch a browser to view it. At this point you have all the code compiled and ready to deploy in your war dir. Assuming you are using GWT 1.6 On May 31, 3:10 pm, Natman em...@mystudiosessions.com wrote: Hey there. I'm a complete newbie with GWT. I completed the StockWatcher tutorial and it works locally but when I upload the files to my webserver and load the hosted.html file, all I get is This html file is for hosted mode support.. I reread the tutorial but can't seem to connect the dots where I went wrong. I did some searching around and couldn't find any help. Anyone have an idea where to go from here or where I may have went wrong? I did some sleuthing to help: In Firefox's error console, I get an error external.gwtOnLoad in not a function I also tried calling the stockwatcher.nocache.js java script from a brand new html file but all I got was the CSS background color. I didn't get the external.gwtOnLoad in not a function,error but i did get a is null. I'm sure there's a simple solution to this, maybe I took a wrong turn somewhere or skipping a step but I would surely appreciate any help so I can move on to more cool stuff. Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Ask about GWT Incubator graphic library
[+jaime, gwt] The normal Google-Web-Toolkit group (cc'd) is fine for this discussion. I'm not all that familiar with it myself, but I've cc'd Jaime Yap, who should know more. Cheers, joel. On Mon, Jun 1, 2009 at 11:08 PM, phan le sang phanles...@gmail.com wrote: Hi, Sorry for asking your help directly, but I can't find any mailing list for GWT Incubator project. I have a question and really need your help. I've tried to draw a rectangle using stand alone Graphics library with ROUND JOIN at 4 vertexes. But I don't know how to do this. Can you help me! Best Regard! Sang. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Cannot drag and drop out of a ScrollPanel
Hello: I am dragging and dropping small HorizontalPanels between two ScrollPanels. When there are no scroll bars on the ScrollPanels, it works just fine. However, if there are bars present, moving the panels jsut causes the ScrollPanel to scroll and the dragged panel disappears as if it is being dragged under the adjacent panel. This is hard to picture, I know. If I drag a panel towards a scroll bar, instead of being dragged over it, it goes under it and out of sight. I am using a drag and drop scheme which positions the dragged object by calling: AbsolutePanel ap = (AbsolutePanel) sender.getParent(); ap.setWidgetPosition(sender, x + ap.getWidgetLeft(sender) - dragStartX, y + ap.getWidgetTop(sender) - dragStartY); Has anybody seen this problem? Thanks Eric --~--~-~--~~~---~--~~ You received 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 plugin can not auto create build.xml?
We opted to remove it to avoid confusion when using eclipse. The plugin does not currently have an export ant file option. However, you can submit an issue for this at http://code.google.com/p/googleappengine/issues/list . On Mon, Jun 1, 2009 at 8:32 PM, jvincent xzgf2...@gmail.com wrote: use google plugin can not auto create ant build file? but user command can create this file. -- Miguel --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 + Spring Security issue
As a follow up, I switched to -noserver mode and it works just fine now. Must've been a conflict with running it in the bundled jetty. Thanks for the tips! On May 14, 2:36 pm, tim.clymer tim.cly...@gmail.com wrote: Sure. I'm using Maven2 for my dependency management and project structure, though I do have myspringconfig files and web.xml in the GWT /war directory to simplify hosted mode. I use Eclipse 3.4.2 as my development IDE. I'm using the latest GWT 1.6 release and these are myspringdependencies: dependency groupIdorg.springframework.security/groupId artifactIdspring-security-core/artifactId version2.0.4/version /dependency dependency groupIdorg.springframework.security/groupId artifactIdspring-security-core-tiger/artifactId version2.0.4/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-core/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-context/artifactId version2.5.6/version /dependency dependency groupIdorg.springframework/groupId artifactIdspring-webmvc/artifactId version2.5.6/version /dependency dependency groupIdnet.entropysoft.transmorph/groupId artifactIdtransmorph/artifactId version2.1.2/version /dependency dependency groupIdaspectj/groupId artifactIdaspectjrt/artifactId version1.5.3/version /dependency Basically, I'm trying to use the latest of everything. Hope this helps, and thanks for your help. Tim On May 14, 9:08 am, Salvador Diaz diaz.salva...@gmail.com wrote: Could you share more information with us ? It'll be difficult to help without knowing your project structure, the tools you're using (eclipse ? maven ? GEP ? ant ? netbeans), and how you're launching/ debugging your project. Cheers, Salvador On 14 mai, 14:49, tim.clymer tim.cly...@gmail.com wrote: Thanks for the tip. I think I may try that just to avoid having to redeploy every time I want to test. Can anyone who's familiar with the inner workings of GWT speak as to why this may be happening? Tim On May 13, 8:38 am, Arthur Kalmenson arthur.k...@gmail.com wrote: It could very well be. When running a more complex server side (i.e. withSpringSecurity, etc), it's usually recommended that you use -noserver. InGWT1.5 with the Google Codegwt-maven plugin, you could set it up to automatically copy configurations over to the embedded Tomcat. I'm not sure how it works in 1.6. -- Arthur Kalmenson On Tue, May 12, 2009 at 8:43 AM, tim.clymer tim.cly...@gmail.com wrote: I've been seeing a strange issue when attempting to useGWTwith SpringSecurity as described here: http://code.google.com/p/gwt-incubator-lib/ I can deploy the application as a war and run it just fine in Tomcat, however when I try to run it in hosted mode with jetty I get the following error: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Unable to locateSpringNamespaceHandler for XML schema namespace [http://www.springframework.org/schema/security] Offending resource: ServletContext resource [/WEB-INF/aop- applicationContext.xml] I've posted this to theSpringforums and they mention it's a classpath issue, that there may be more than one instance of the SpringSecurity jars on my classpath. I've double-checked my jars and this doesn't seem to be an issue (especially since I package them with my app and it works fine). I'm wondering if somehow jetty orGWTis using a class that might be interfering with the resolution of the namespace. Prior to incorporatingsecurityin my app it was running fine in hosted mode, even with otherSpringbeans, so this makes me think it's related toSpringSecurity (and not justSpringitself) somehow. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Composite - can click on one widget inside look like click on the Composite itself?
I do something similar with other events, so I would imagine it should work the same way. I have a class extending Composite that contains, among other things, a button. When that button is clicked, a CloseEvent is raised by the class. This is accomplished by having my class (extending Composite) implement ClickHandler (to receive the button clicks) and HasCloseHandlersBoolean (so other classes can receive the CloseEvent being raised). In my onClick method, I issue a statement like this (this statement exactly to be precise): CloseEvent.fire(this, true); I also do something similar with ValueChangeHandler and HasValueChangeHandlers to allow this class to raise ValueChangeEvent caused by internal controls. In your case, you will need to create a ClickEvent with the class as the source and fire it. HTH, Chad On Jun 2, 3:47 am, romant roman.te...@gmail.com wrote: Hi men, I am trying to implement my own Composite named MenuItem composing of a Grid with 3 cells next to each other and a Label placed in the middle cell. I call initWidget(the Grid). The issue now is that I register a click handler for the Label which should determine if the MenuItem was clicked or not. The Grid should not react on clicks, thus I do not register click handler for it. Now, naturally, the source of the click event will be always the Label. But in my application I need to get as the source of the event the MenuItem object, not the Label which composes just a part of the MenuItem Composite. Is there any smooth way to do that? My only idea is not to extend Composite class, but the Label itself and add it in a Grid. Is this a correct solution? 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 -~--~~~~--~~--~--~---
GWT + JAAS
Hello there, Anyone know how i can integrate GWT and JAAS? I'm using JBoss and i create my realm and I configure my jboss-web.xml in my web project. It's work correctly. But i don't know how i can autenticate using a form with GWT. Anyone have an ideia? Thanks for helping Otavio --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Expire an idle session
Hi I want the session to be expired if the it is idle for 5 minutes. I have the following client code after a successful login: String sessionID = /* (Get sessionID from server's response to login request.) */ ; long DURATION = 1000 * 60 * 5; Date expires = new Date(System.currentTimeMillis() + DURATION); // the sid cookie will be expired after 5 min Cookies.setCookie(sid, sessionID, expires, null, /, false); The problem with the above code is that the session cookie will be expired 5 minutes from the time the session is created and not from the time the last request to the server. For example, if a session is created at 00:00, followed by a request at 00:04, the cookie will still expire at 00:05 instead of 00:09. To do this, I have to reset the expiry time of the cookie in every RPC call like the following: public void onFailure(Throwable caught) { ... // re-calculate the expiry time Date expires = new Date(System.currentTimeMillis() + DURATION) Cookies.setCookie(sid, sessionID, expires, null, /, false); } public void onSuccess(...) { ... // re-calculate the expiry time Date expires = new Date(System.currentTimeMillis() + DURATION) Cookies.setCookie(sid, sessionID, expires, null, /, false); } May I know if there a more elegant way of doing this? -- Hez --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6.4: Exception in DriverManager.getConnection
Nice! This com.mysql.jdbc.ConnectionImpl exception error was driving me crazy also. Thanks! On Apr 13, 6:46 am, martin hotston...@googlemail.com wrote: Ok, I solved the problem ;-) Go to the project's properties and uncheck Use Google App Engine. Additionally, as vitali mentioned, the mysql-connector jar has to be in the war/WEB-INF/lib directory. Cheers, Martin. On Apr 12, 3:16 pm, IvanRdz ivan.rd...@gmail.com wrote: I have the same problem and I am sure it´s due to Jetty and security settings as you have mentioned. Are you using google plugin? On Apr 11, 7:59 pm, martin hotston...@googlemail.com wrote: Ok, I am still stuck :-( Anybody got Mysql working with GWT 1.6.4? It worked fine for GWT 1.5 for me, but something seems to have changed with GWT 1.6.4. Maybe it is due to Jetty and security settings, since I get a java.security.AccessControlException... All I did was to add the / usr/share/java/mysql-connector-java-5.1.6.jar to the referenced libraries. Please help me out! Thanks, Martin. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
I18N script does not produce maps
When using the i18n script for generating the constant interface, the maps are not generated as desribed in the documentation http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/i18n/client/Constants.html The following properties file key1 = foo key2 = bar map = key1, key2 produces the following interface: @DefaultStringValue(foo) @Key(key1) String key1(); @DefaultStringValue(bar) @Key(key2) String key2(); @DefaultStringValue(key1, key2) @Key(map) String map(); But accoring to the documentation I would expect to get the following signature for map(): @DefaultStringMapValue({key1, foo, key2, bar}) @Key(map) MapString, String map(); What do I need to do that the map is created? Or is there a bug in the i18n script? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
suggestions in richtextarea
hello, is it somehow possible to provide suggestion in RichTextArea instead of in SuggestBox? I noticed in Google Wave presentation video, that their spellchecker opens a popup with suggestions (corrections) in richtextarea right under the misspelled word. How is the placement of this popup computed? I would like to use something similar in order to allow suggestions and auto completion of special terms when user is writing text in richtextarea. But richtexarea doesnt seem to provide any methot with information about position of cursor. 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 -~--~~~~--~~--~--~---
Compile/Browse issue
Hi, I am facing a issue when I am clicking on compile/browse button,Error message generate when click on compile/Brows gwt module 'module name' needs to be (re)compiled,please run a compile or use the Compile/Browse button in hosted mode I am using LibraryVersion GWT 1.6.4 GWT-EXT 2.0.4 JRE 1.6 and I am also use GILEAD in my project It is working fine in GWT 1.5 Thanks Praveen ojha --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Alternative Languages?
are there any other languages planned for the GWT? such as C# or C its self? as not everyone knows java, and not everyone is willing to learn a new language to use the toolkit. since if C# and C/C++ are covered along side java, you cover almost all the programmers who would want to/be able to, use this toolkit? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Raw RPC Serialization classloader problems
Hi, I have a legacy web application, and I'm creating a GWT interface for it. I put the GWT module folder in the project and in Eclipse I used its src folder as a source folder, so both client and server files are compiled. I cannot add new servlets as GWT RPC requires, but I'm trying to use raw serialization methods and send the payload with RequestBuilder. On the server side RPC.decodeRequest(payload) throws: com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: Could not locate requested interface 'com.barra.cp.hal.gwitty.main.client.HashServiceData/904951783' in default classloader I run Tomcat from Eclipse, not remote debugging, but as a standalone instance. I run a hosted mode run configuration with -noserver, so that tomcat provides the server-side. The startupUrl is also a tomcat-provided url. Both run configuration have the project compilation folder at the top of the classpath. Both server and client side classes can be debugged in Eclipse. The hosted mode config also has the gwt-dev jar and the source files folder in the classpath User Entries. I would like to ask why the IsSerializable class is not visible for the deserializer and what that /904951783 means. thanks in advance, Laszlo --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
get child node by name
All apologies if this is a really obvious question but after 3+ hours searching this group and the tubes in general I couldn't find the answer. I have xml data that looks like this: root item item-descriptiona/item-description item-weight5/item-weight item-colorblue/item-color /item /root The data is in a document object and I've retrieved the node item. I want to retrieve the value of item-weight. The element isn't always the second child and doesn't always exist. From what I can tell by reading the docs I would have to retrieve the node list containing all of the children of item, test each one to see if it was named item- weight, the retrieve the value of the node that tests positive. Please tell me there is a more efficient way to do his because I'm pretty sure there would be performance issues when this operation has to be performed a few dozen (few hundred) times. AC --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
KEY_TAB causes audible beep on FF/Mac....
I seem to have found some unusual behaviour - I have captured the KEY_TAB event in the following code: public void onKeyPress(Widget sender, char keyCode, int modifier) { firedKeyDown = true; switch (keyCode) { case KEY_TAB: parent.doTab(TableCell.this, modifier == MODIFIER_SHIFT); break; } } This causes the warning beep. The exact same code using the enter key does not. case KEY_ENTER: parent.doTab(TableCell.this, modifier == MODIFIER_SHIFT); break; Has anyone else experienced this? Regards, Pete --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Why can't I access my groups?
Jun 2 2009,11:10AMaud2008 --~--~-~--~~~---~--~~ You received 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: Browser compatibility issue??
I ran into issues like this also, its how IE7 does the CSS compared to the other browsers. You need to setup the CSS for IE7 and the other browsers. I use firefox firebug to see how the CSS are setup, that is how they are shown. I recommend running your program without the setStyleName and use firebug to see how the CSS is done and then add the setStyleName back and see the differnce. CSS is always hard when dealing with differant browsers. Hope this helps, not very specific, sorry Donald W. Long On Jun 1, 10:42 pm, Rob Tanner caspersg...@gmail.com wrote: Preliminary screwing around with my code suggests a solution to the IE7 problem. The following code works as expected in Firefox and Safari: VerticalPanel entries = new VerticalPanel(); entries.setStyleName(bottom20-padding); The expected behavior is that there is 20 points of padding at the bottom of the panel (padding-bottom: 20px;). But IE7 puts the padding between each row of the vertical panel. If I remove the style setting then the rows stack properly (the latter row immediately beneath the former). Since I can achieve the same results in the display by adding an additional empty row or adding another empty panel as filler, I can get around the problem but that seems to me to be a very awkward way to work around the issue. Is there a simpler solution? Thanks, Rob On Jun 1, 1:58 pm, Rob Tanner caspersg...@gmail.com wrote: It's my first app and this might be a newbie rite of passage. I've built an app for managing members of groups defined on an LDAP server. In both Firefox and Safari, the differences bewteen how the app looks is insignificant. However, in IE7 (don't have IE8 to test with) there are huge gaps between rows in vertical panels. The empty space between the rows looks to be about the same height as the rows themselves. Is this a compatibility issue or a code issue. I'm using GWT 1.6.4 for the Mac and doing my development in Eclipse. What do I need to do to fix it or where do I need to look to see what the problem might be? Thanks, Rob- 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: Alternative Languages?
Hey Darren, We don't have specific plans for other languages right now, and there's a bit about why GWT uses Java over here: http://code.google.com/webtoolkit/makinggwtbetter.html#introduction However, the beauty of open source is that everybody's totally free to implement their own web toolkits with whatever language they like. There's an independent project called Pyjamas (http://pyjs.org/), for example, that does something very much like what GWT does, and it uses Python. Personally, I'm waiting for the port to OCaml ;) On Tue, Jun 2, 2009 at 5:26 AM, Darren des...@boltonblinds.co.uk wrote: are there any other languages planned for the GWT? such as C# or C its self? as not everyone knows java, and not everyone is willing to learn a new language to use the toolkit. since if C# and C/C++ are covered along side java, you cover almost all the programmers who would want to/be able to, use this toolkit? -- Alex Rudnick swe, gwt, atl --~--~-~--~~~---~--~~ You received 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: get child node by name
On 06/02/2009 02:15 AM, acpir wrote: All apologies if this is a really obvious question but after 3+ hours searching this group and the tubes in general I couldn't find the answer. I have xml data that looks like this: root item item-descriptiona/item-description item-weight5/item-weight item-colorblue/item-color /item /root The data is in a document object and I've retrieved the node item. I want to retrieve the value of item-weight. The element isn't always the second child and doesn't always exist. Not a problem... From what I can tell by reading the docs I would have to retrieve the node list containing all of the children of item, test each one to see if it was named item- weight, the retrieve the value of the node that tests positive. No. Use getElementsByTagName liberally. Here's one possible scenario 1. Find the nodes named root: getElementsByTagName(root). Yes, I know this will be a list of one entry. 2. for the next node in 1, find the nodes named item: getElementsByTagName(item). Remember this nodeList. 3. for the next node in 2:, find the elements named item-weight: getElementsByTagName(item-weight). Lather, rinse, repeat. At end of list 2, return to step 2 If this doesn't float your boat, consider more pre-processing on your server: use JSON and JSON overlay types on the client side. Please tell me there is a more efficient way to do his because I'm pretty sure there would be performance issues when this operation has to be performed a few dozen (few hundred) times. GWT doesn't (yet) have a reliable cross-browser XML query language implementation. There may be one in the incubator or other GWT-related sites. --~--~-~--~~~---~--~~ You received 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 + JAAS
Well, I am also having almost the same trouble, so if anyone can help us it would be apreciated. Thanks Fernando --~--~-~--~~~---~--~~ You received 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 Mind Mapping
Hi all, I'm developing a new web application base on GWT technology, the name is gwt-mind-mapping. It's not done yet (is a beta version), but please have a look for this application in http://gwt-mind-mapping.appspot.com/ and give your opinion. Thank you .. Bosangjay --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
GWT 1.6.4 war deployment
Is there a way to deploy a Eclipse GWT Project to a war file ? Im using Eclipse 3.4, GWT 1.6.4, GWT plugin for Eclipse. I want to deploy to Websphere Application Server Community Edition server. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6.4 war deployment
We don't currently support exporting to a war from the IDE. You could do a clean build in eclipse, then perform a GWT compile, then you can simply war the contents of the war folder. We are tracking the export war request as part of the following issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=3584 . On Tue, Jun 2, 2009 at 12:57 PM, Efren efren.villama...@gmail.com wrote: Is there a way to deploy a Eclipse GWT Project to a war file ? Im using Eclipse 3.4, GWT 1.6.4, GWT plugin for Eclipse. I want to deploy to Websphere Application Server Community Edition server. -- Miguel --~--~-~--~~~---~--~~ You received 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 VS GWT-EXT
My understanding is that GWT-Ext development is halted. Your mileage may be different, but if you are setting up your technology stack, why pick something with no apparent future? It's popular now but when something is not moving at all, other things are bound to catch up and surpass it. We're using Ext-GWT (also known as GXT) and are quite happy with it.We've managed to build a HIGHLY stylized RIA with it such that you'd barely know it was GWT or even GXT for that matter. --~--~-~--~~~---~--~~ You received 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 Mind Mapping
This is not a beta version. This is an alpha prototype at best. I've got a few suggestions: * Use a canvas to draw the lines (in the browser) * make each node selectable without editing (you could traverse the mindmap like a tree and press F2 to rename a node)+ * Drag and drop --~--~-~--~~~---~--~~ You received 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: jsni getting rewritten
Hi rjcarr, Because you can do arbitrary things in an eval, I'm not sure the GWT compiler will be able to infer that there are types referenced from the JSNI method parameter list in the eval argument. I could be wrong on that, so I've cc'ed Scott to double check that assertion. On the other hand, you could use regular GWT code to perform calculations. The GWT Java code you write will translate into optimized JavaScript anyway, so it seems like you could just as well stick with Java code arithmetic and rely on it to be cross-compiled into similar JavaScript as the one you're using in the eval. Hope that helps, -Sumit Chandel On Sun, May 31, 2009 at 9:40 AM, rjcarr rjc...@gmail.com wrote: For what it is worth, I solved the problem by doing this: private static native int eval(int x, int y, int z) /*-{ eval(var x = + x); eval(var y = + y); eval(var z = + z); return parseInt(eval(x + y * z)); }-*/; And it seems to work, but seems there could be a smarter way. This method is called *very* often so it's in my best interest for it to be as efficient as possible. A bit more explanation, I'm allowing users to define expressions that I want to evaluate (think of a calculator). Rather than writing my own lexical analyzer I thought I'd use the one built into javascript. --~--~-~--~~~---~--~~ You received 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: jsni getting rewritten
Hi Sumit- Thanks for the response. I'm looking forward to hearing from Scott if he has anything to say. My example of doing simple arithmetic was only to explain the problem. However, if I think about it more, maybe it is still applicable. Say I have an application that allows users to input arbitrary (javascript) equations, e.g.: Math.round(Math.pow(2,z)/2.0))-y-1 (Where x, y, and z are invariable) Without writing my own lexer, how would I go about trying to find a result to that? That's why I figured using eval(), which is a lexer, is the perfect solution. Thanks again for the response. On Tue, Jun 2, 2009 at 11:36 AM, Sumit Chandel sumitchan...@google.com wrote: Hi rjcarr, Because you can do arbitrary things in an eval, I'm not sure the GWT compiler will be able to infer that there are types referenced from the JSNI method parameter list in the eval argument. I could be wrong on that, so I've cc'ed Scott to double check that assertion. On the other hand, you could use regular GWT code to perform calculations. The GWT Java code you write will translate into optimized JavaScript anyway, so it seems like you could just as well stick with Java code arithmetic and rely on it to be cross-compiled into similar JavaScript as the one you're using in the eval. Hope that helps, -Sumit Chandel On Sun, May 31, 2009 at 9:40 AM, rjcarr rjc...@gmail.com wrote: For what it is worth, I solved the problem by doing this: private static native int eval(int x, int y, int z) /*-{ eval(var x = + x); eval(var y = + y); eval(var z = + z); return parseInt(eval(x + y * z)); }-*/; And it seems to work, but seems there could be a smarter way. This method is called *very* often so it's in my best interest for it to be as efficient as possible. A bit more explanation, I'm allowing users to define expressions that I want to evaluate (think of a calculator). Rather than writing my own lexical analyzer I thought I'd use the one built into javascript. --~--~-~--~~~---~--~~ You received 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: @Resource path is OS-gnostic ( \ or / depending on the Win/Linux). What is a workaround?
Guilty as charged. I was on the road for some time and had no chance to file the RFE. Should I still do it? On May 29, 6:11 pm, Rajeev Dayal rda...@google.com wrote: Hi Abby, No, I don't think that an RFE has been filed for this. Would you mind filing one? Yes, the best workaround right now would be to place the images in the same package as the Bundle interface (or the Bundle interface in the same package as the images). Rajeev On Wed, May 27, 2009 at 2:32 PM, abby misra.a...@gmail.com wrote: Did anyone open a RFE for this? Also, is the best workaround now having the images in same package as the Bundle interface? --~--~-~--~~~---~--~~ You received 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: jsni getting rewritten
Is performing an eval on arbitrary code from an untrusted source (client in this case) a good idea? It seems like it would be a rather large security breach in your application (depending upon what else you app does I suppose) It just sounds naughty to me. -jason On Jun 2, 2009, at 12:50 PM, Robert J. Carr wrote: Hi Sumit- Thanks for the response. I'm looking forward to hearing from Scott if he has anything to say. My example of doing simple arithmetic was only to explain the problem. However, if I think about it more, maybe it is still applicable. Say I have an application that allows users to input arbitrary (javascript) equations, e.g.: Math.round(Math.pow(2,z)/2.0))-y-1 (Where x, y, and z are invariable) Without writing my own lexer, how would I go about trying to find a result to that? That's why I figured using eval(), which is a lexer, is the perfect solution. Thanks again for the response. On Tue, Jun 2, 2009 at 11:36 AM, Sumit Chandel sumitchan...@google.com wrote: Hi rjcarr, Because you can do arbitrary things in an eval, I'm not sure the GWT compiler will be able to infer that there are types referenced from the JSNI method parameter list in the eval argument. I could be wrong on that, so I've cc'ed Scott to double check that assertion. On the other hand, you could use regular GWT code to perform calculations. The GWT Java code you write will translate into optimized JavaScript anyway, so it seems like you could just as well stick with Java code arithmetic and rely on it to be cross-compiled into similar JavaScript as the one you're using in the eval. Hope that helps, -Sumit Chandel On Sun, May 31, 2009 at 9:40 AM, rjcarr rjc...@gmail.com wrote: For what it is worth, I solved the problem by doing this: private static native int eval(int x, int y, int z) /*-{ eval(var x = + x); eval(var y = + y); eval(var z = + z); return parseInt(eval(x + y * z)); }-*/; And it seems to work, but seems there could be a smarter way. This method is called *very* often so it's in my best interest for it to be as efficient as possible. A bit more explanation, I'm allowing users to define expressions that I want to evaluate (think of a calculator). Rather than writing my own lexical analyzer I thought I'd use the one built into javascript. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
delayTestFinish is not delaying the test
I'm using the GWT Eclipse plugin with the latest GWT 1.6. My test looks like this: public class MyTests extends GWTTestCase { public String getModuleName() { ... } public void testAddAction() { MyServiceProxy proxy = new MyServiceProxy( new MyServiceCallback() { public void OnData(Data data) { finishTest(); } }); proxy.GetData(); // Execute Web Service (REST) call delayTestFinish(6000); // Delay for 1 minute } } I'm running this test with Rght-Click/Run As/GWT Junit test on the function. The test running successfully, and the call to the remote service is executed, but there is not enough time to get the callback since the delayTestFinish is not waiting for the specified delay. In fact it's not waiting at all - it just jumps through. When I check the source code for the delayTestFinish function I see something like this: public abstract class GWTTestCase extends TestCase { ... protected final void delayTestFinish(int timeoutMillis) { // implemented in the translatable version of this class } ... } What is the translatable version of the class. How can I see what is the generated result? What am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: jsni getting rewritten
Hi Jason- Thanks for the response, but again, it is just an example of what I'm doing. But you're right, and thanks for the suggestion, I'll take a closer look at my specific application for any potential security issues. --~--~-~--~~~---~--~~ You received 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: jsni getting rewritten
Would it, though? You're executing, on the client, arbitrary code that originated from the client/user. It's nothing a user couldn't do with Firebug or other browser extensions. It certainly looks like the sort of thing that should send up red flags, but I don't think it's a problem in this case. On Tue, Jun 2, 2009 at 3:11 PM, Jason Essington jason.essing...@gmail.com wrote: Is performing an eval on arbitrary code from an untrusted source (client in this case) a good idea? It seems like it would be a rather large security breach in your application (depending upon what else you app does I suppose) It just sounds naughty to me. -jason On Jun 2, 2009, at 12:50 PM, Robert J. Carr wrote: Hi Sumit- Thanks for the response. I'm looking forward to hearing from Scott if he has anything to say. My example of doing simple arithmetic was only to explain the problem. However, if I think about it more, maybe it is still applicable. Say I have an application that allows users to input arbitrary (javascript) equations, e.g.: Math.round(Math.pow(2,z)/2.0))-y-1 (Where x, y, and z are invariable) Without writing my own lexer, how would I go about trying to find a result to that? That's why I figured using eval(), which is a lexer, is the perfect solution. Thanks again for the response. On Tue, Jun 2, 2009 at 11:36 AM, Sumit Chandel sumitchan...@google.com wrote: Hi rjcarr, Because you can do arbitrary things in an eval, I'm not sure the GWT compiler will be able to infer that there are types referenced from the JSNI method parameter list in the eval argument. I could be wrong on that, so I've cc'ed Scott to double check that assertion. On the other hand, you could use regular GWT code to perform calculations. The GWT Java code you write will translate into optimized JavaScript anyway, so it seems like you could just as well stick with Java code arithmetic and rely on it to be cross-compiled into similar JavaScript as the one you're using in the eval. Hope that helps, -Sumit Chandel On Sun, May 31, 2009 at 9:40 AM, rjcarr rjc...@gmail.com wrote: For what it is worth, I solved the problem by doing this: private static native int eval(int x, int y, int z) /*-{ eval(var x = + x); eval(var y = + y); eval(var z = + z); return parseInt(eval(x + y * z)); }-*/; And it seems to work, but seems there could be a smarter way. This method is called *very* often so it's in my best interest for it to be as efficient as possible. A bit more explanation, I'm allowing users to define expressions that I want to evaluate (think of a calculator). Rather than writing my own lexical analyzer I thought I'd use the one built into javascript. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Trying to get mysql work with gwt 1.6 - access denied (java.lang.RuntimePermission modifyThreadGroup)
Hello. GWT 1.6 + Eclipse. When trying to connect to MySQL, I get access denied (java.lang.RuntimePermission modifyThreadGroup) as an accesscontrolexception. I tried to find Jetty's policy file, but with no success. Is there an example GWT+MySQL for 1.6? Thank you --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
PushButton w/ image: How to avoid grey background
Hi, I would live to create a button that works just like a pushbutton, but without the grey background. Is there an easy way to just remove th egrey button outline, or will I have to roll my own component? Regards, Anders S. Johansen, ange.dk --~--~-~--~~~---~--~~ You received 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: delayTestFinish is not delaying the test
Hi, check: http://code.google.com/intl/es-AR/webtoolkit/doc/1.6/DevGuideTesting.html (section Asynchronous Testing) delayTestFinish(6000) doesn't delay the execution, you can use a Timer instead. Regards, On Tue, Jun 2, 2009 at 4:18 PM, Igor Moochnick igor.moochn...@gmail.comwrote: I'm using the GWT Eclipse plugin with the latest GWT 1.6. My test looks like this: public class MyTests extends GWTTestCase { public String getModuleName() { ... } public void testAddAction() { MyServiceProxy proxy = new MyServiceProxy( new MyServiceCallback() { public void OnData(Data data) { finishTest(); } }); proxy.GetData(); // Execute Web Service (REST) call delayTestFinish(6000); // Delay for 1 minute } } I'm running this test with Rght-Click/Run As/GWT Junit test on the function. The test running successfully, and the call to the remote service is executed, but there is not enough time to get the callback since the delayTestFinish is not waiting for the specified delay. In fact it's not waiting at all - it just jumps through. When I check the source code for the delayTestFinish function I see something like this: public abstract class GWTTestCase extends TestCase { ... protected final void delayTestFinish(int timeoutMillis) { // implemented in the translatable version of this class } ... } What is the translatable version of the class. How can I see what is the generated result? What am I doing wrong? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Expire an idle session
What about timing out the session on the server? Assuming that you're using a Java application container on the server, you can add the following to web.xml: session-config session-timeout5/session-timeout /session-config This will cause the server to time out connections after five minutes of inactivity. With this technique, it's actually possible to intercept requests made after a time out in the onFailure() handler and to take some kind of action (i.e., redirect to a login screen). Tony -- Tony Strauss Designing Patterns, LLC http://www.designingpatterns.com http://blogs.designingpatterns.com On Jun 2, 11:05 am, hezjing hezj...@gmail.com wrote: Hi I want the session to be expired if the it is idle for 5 minutes. I have the following client code after a successful login: String sessionID = /* (Get sessionID from server's response to login request.) */ ; long DURATION = 1000 * 60 * 5; Date expires = new Date(System.currentTimeMillis() + DURATION); // the sid cookie will be expired after 5 min Cookies.setCookie(sid, sessionID, expires, null, /, false); The problem with the above code is that the session cookie will be expired 5 minutes from the time the session is created and not from the time the last request to the server. For example, if a session is created at 00:00, followed by a request at 00:04, the cookie will still expire at 00:05 instead of 00:09. To do this, I have to reset the expiry time of the cookie in every RPC call like the following: public void onFailure(Throwable caught) { ... // re-calculate the expiry time Date expires = new Date(System.currentTimeMillis() + DURATION) Cookies.setCookie(sid, sessionID, expires, null, /, false); } public void onSuccess(...) { ... // re-calculate the expiry time Date expires = new Date(System.currentTimeMillis() + DURATION) Cookies.setCookie(sid, sessionID, expires, null, /, false); } May I know if there a more elegant way of doing this? -- Hez --~--~-~--~~~---~--~~ You received 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: Hosted mode
Hi Greg, Push the button GWT Compile Project Compile your project setting log level to Spam Go to Debug Configurations , on the 2nd tab GWT of your project set log level to Spam. Run Debug as... ( your project ) Make your breakpoints on your project Then press Compile/Browse on Hosted Mode Once it fininshed press Refresh on Hosted Mode On Jun 1, 4:19 pm, Rajeev Dayal rda...@google.com wrote: Hi Greg, A few questions for you: 1) Are you using Debug As to launch your application's debugging session? 2) If you switch to the Debug perspective and look at the breakpoints view, are all of the breakpoints enabled? 3) If you go to Preferences (Window - Preferences on Linux and Windows, Eclipse - Preferences on Mac) - Run/Debug and make sure that Activate the workbench when breakpoint is hit and Activate the debug view when breakpoint is hit options are enabled? 4) Can you tell me what is on your project's classpath? Rajeev On Sat, May 30, 2009 at 5:05 PM, Greg greg.ba...@gmail.com wrote: I'm having the same problem as the OP. I'm working through the StockWatcher tutorial, and I set breakpoints on the specified lines in updateTable. Eclipse shows checkmarks on the breakpoint indicators after the hosted-mode browser starts. Extra calls to GWT.log demonstrate that control is passing through the marked lines, but execution does not stop. Eclipse's perspective never changes to Debug. OS: Vista Eclipse v3.4.2 (Ganymede + EE) GWT Plugin 1.0.1.v200905131143 GWT SDK for Win32 1.6.4.v200904062334 JDK 1.6.0_14 Thanks, Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 disable click events in Grid cell
Hi Suren, Unfortunately, disable text selection on double click is one of those things that is hard to prevent across all browsers. I tried a couple of implementations to disable text selection on double-click, but neither of them worked. However, you can use an onselectstart='return false;' attribute which does seem to work on IE6/7 and Chrome (see code snippet below). Although this works on Chrome (which is WebKit-based), you'll have to try it out on Safari to see if it works there as well. This definitely doesn't work on FF3, so that may hinder your decision to depend on the onselectstart attribute for text selection prevention. HTMLPanel panel = new HTMLPanel(div id='grid' onselectstart='return false;'/div); Grid grid = new Grid(10, 10); for (int i = 0; i 10; i++) { for (int j = 0; j 10; j++) { grid.setText(i, j, Bonjour); } } panel.add(grid, grid); As a sidenote, you may not necessarily want to disable text selection in the grid, however. It's generally not a good idea to go against standard browser functionality that users may have grown accustomed to in their web browsing experience. Hope that helps, -Sumit Chandel On Wed, May 27, 2009 at 8:00 PM, Suren nsurendi...@gmail.com wrote: Hi All, I am having a grid with 100 columns. Among these certain columns are meant for readonly purpose. For these columns I want to disable the text selected when user tries to double click on that cell. Currently when a user double click any cell in the Grid, the text get selected with blue background. I want to disable this functionality for certain cells / entire columns. Can anyone help me in this regards Thanks Suren --~--~-~--~~~---~--~~ You received 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: PushButton w/ image: How to avoid grey background
live ...should be 'like', obviously. I'm not THAT into making a prettier PushButton :) --~--~-~--~~~---~--~~ You received 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 GWT enable Spring MVC Web Application
Hi Neeraj, The answer to how to integrate GWT with your existing Spring MVC Web Application depends on how deeply you want to integrate GWT into your application. For example, if you would simply like to add a few GWT components to your application pages, all you would need to do is define an binding element (such as a div id=gwtComponent/div) in the page you would like to include your GWT component as well as a script tag referencing the GWT bootstrap JavaScript file. In your GWT code, you would bind your component to the div by calling RootPanel.get(gwtComponent).add(mainPanel), for example. On the other hand, if you would like your user interface to be fully built with GWT as well as have easy client-server interactions going through your Spring controllers, a Google search for the terms gwt spring should turn up some useful results. If you the level of integration you're aiming for is somewhere in between the two extremes described above, perhaps you should consider using GWT RPC for client-server communication and using the RPC servlets as gateways to your Spring controllers. GWT RPC: http://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html#DevGuideRemoteProcedureCalls Hope that helps, -Sumit Chandel On Sat, May 30, 2009 at 3:14 PM, Neeraj neerajvora@gmail.com wrote: Hello, I have a largish Spring MVC Web Application deployed as a .war file. Can some one give me pointers as to how to GWT enable this? Is it as simple as dropping a jar file into the lib folder and tweaking the ant build file? It is not possible to start from the GWT template application and move all existing stuff. How easily can GWT fit into the existing structure and how easy would it be to develop, debug and deploy? 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 -~--~~~~--~~--~--~---
Reference to interface in another project
Hi -- I have seen a lot of posts referring to variants of this problem, but haven't seen a resolution to this specific situation ... and I'm afraid I'm not making headway. This seems very simple, but if I can't do it, please let me know. I'm running Eclipse 3.4.2 with GWT 1.5.2. I have a perfectly fine GWT project that I'd like to have reference constants defined in an Interface in another project (which itself contains only Interfaces). Eclipse seems fine with this, as long as I use Build Path to identify the external project in the Projects tab. GWT, though, gives the error org.paceproject.palms.schema.XSDDefinitions can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. From other posts, it seems like GWT is trying to tell me it's going to have trouble loading the external project at runtime. All I'm using this external project for is to provide definitions common to all of my applications (including my GWT application). Is there a particular way I should be defining my external project (i.e., the one that contains org.paceproject.palms.schema.XSDDefinitions)? Or is there something particular I should be doing to my GWT project's gwt.xml file?? Or should I be trying to import symbols common to multiple projects in a completely different way?? Thanks for any help/advice you can give me. (FYI, the offending import in my GWT project is import static org.paceproject.palms.schema.XSDDefinitions.*; and the Interface in the external project is package org.paceproject.palms.schema; public interface XSDDefinitions { public static final String XSD_String = xsd:string; } --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Cannot get Application to Compile and run in Firefox 3
Hi Adrian, There's nothing immediately obvious to me with the code snippet you posted. The dialog box should come up normally. Could you try compiling your application in PRETTY mode and seeing if the error still occurs when loading your application in Firefox? Also, did this occur when hitting Compile/Browse from hosted mode, or did you compile your application yourself and deploy it on a web server and experience this issue while in web mode? Hopefully the answers to these questions will help us get a step further in solving the issue you're experiencing. Cheers, -Sumit Chandel On Sat, May 30, 2009 at 8:08 PM, Adrian anad...@evolvingsolutions.cawrote: Hello, I am new to GWT and currently have it running in Eclipse 3.4 with the GWT plugin:http://code.google.com/appengine/docs/java/tools/ eclipse.html I seem to have everything running fine in the Hosted Browser (and even IE for that matter) but I cannot figure out what is wrong when I try to run the same app in Firefox. Here are a few snippets of my code: The program has a login page that authenticates a user and returns the user ID if successful. Here is the EventHandler class that is in use for the textfield and also button on the login form. // Create a handler for the sendButton and nameField class MyHandler implements ClickHandler, KeyUpHandler { public void onClick(ClickEvent event) { sendNameToServer(); } public void onKeyUp(KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { sendNameToServer(); } } private void sendNameToServer() { sendButton.setEnabled(false); String textToServer = nameField.getText(); textToServerLabel.setText(textToServer); serverResponseLabel.setText(); authService.adminLogin(textToServer,new AsyncCallbackInteger() { public void onFailure(Throwable caught) { // Show the RPC error message to the user dialogBox.setText(Admin Login - Failure); serverResponseLabel.addStyleName(serverResponseLabelError); serverResponseLabel.setHTML(SERVER_ERROR); dialogBox.center(); closeButton.setFocus(true); } public void onSuccess(Integer result) { loginUpdate(result); } }); } } Login Update does the following: private void loginUpdate(Integer result) { //need to authenticate dialogBox.setText(Admin Login); serverResponseLabel.removeStyleName(serverResponseLabelError); serverResponseLabel.setHTML(results - +result); dialogBox.center(); closeButton.setFocus(true); try{ if(result!=nullresult==1){ //successful login RootPanel.get(loginForm).setVisible(false); // Create table for stock data. twebFlexTable.setText(0, 0, Title); twebFlexTable.setText(0, 1, Date); twebFlexTable.setText(0, 2, Host(s)); twebFlexTable.setText(0, 3, Options); // Add styles to elements in the stock list table. twebFlexTable.setCellPadding(6); twebFlexTable.getRowFormatter().addStyleName(0, twebListHeader); twebFlexTable.addStyleName(twebList); twebFlexTable.getCellFormatter().setWidth(0, 0, 35%); twebFlexTable.getCellFormatter().setWidth(0, 1, 15%); twebFlexTable.getCellFormatter().setWidth(0, 2, 35%); twebFlexTable.getCellFormatter().setWidth(0, 3, 15%); twebFlexTable.getCellFormatter().setHorizontalAlignment(0, 3, VerticalPanel.ALIGN_CENTER); mainPanel = new VerticalPanel(); mainPanel.add(twebFlexTable); // Associate the Main panel with the HTML host page. RootPanel.get(twebList).add(mainPanel); RootPanel.get(twebList).setVisible(true); refreshTwebList(upcoming); } else if(result!=nullresult==2){
button with image AND text
I want an HTML button with and image AND text. I could use a control form a widget library, but I want my button to be a native HTML button. Anyone know how to do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Hosted mode
I appears that the JDK v 14 is causing the problem. I installed the v13 JDK and then told Eclipse (via the launch configuration) to use v13 and breakpoints started to work again. I think this needs to be reported back to GWT group. Sincerely, Steve On May 30, 5:05 pm, Greg greg.ba...@gmail.com wrote: I'm having the same problem as the OP. I'm working through the StockWatcher tutorial, and I set breakpoints on the specified lines in updateTable. Eclipse shows checkmarks on the breakpoint indicators after the hosted-mode browser starts. Extra calls to GWT.log demonstrate that control is passing through the marked lines, but execution does not stop. Eclipse's perspective never changes to Debug. OS: Vista Eclipse v3.4.2 (Ganymede + EE) GWT Plugin 1.0.1.v200905131143 GWT SDK for Win32 1.6.4.v200904062334 JDK 1.6.0_14 Thanks, Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
TextBox with label inside
I want a GWT control that's a TextBox with the label as light grey text inside the field (as opposed to beside it). You know, so you see what the field's for, but it saves space. And when you click inside the text box, the light grey label disappears. Anyone know if there's a widget library with something like that? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Cannot get Application to Compile and run in Firefox 3
Also, you can compile in PRETTY mode using the Google Eclipse Plugin by following the steps below: 1) While your project is open, click on the Run... drop-down arrow to open the list of run configurations. 2) Select Run Configurations... 2) In the Run Configuration dialog, select your project's Web Application launch configuration. 3) Navigate to the GWT tab 4) Select the Pretty option from the Output style drop-down box. 5) When you hit Compile/Browse on your next hosted mode launch, the generated output will be human-readable JavaScript. This will either give us more hints in the generated error message, or will work in Firefox 3, in which case there may be something to investigate on the GWT side of things. Hope that helps, -Sumit Chandel On Tue, Jun 2, 2009 at 2:08 PM, Sumit Chandel sumitchan...@google.comwrote: Hi Adrian, There's nothing immediately obvious to me with the code snippet you posted. The dialog box should come up normally. Could you try compiling your application in PRETTY mode and seeing if the error still occurs when loading your application in Firefox? Also, did this occur when hitting Compile/Browse from hosted mode, or did you compile your application yourself and deploy it on a web server and experience this issue while in web mode? Hopefully the answers to these questions will help us get a step further in solving the issue you're experiencing. Cheers, -Sumit Chandel On Sat, May 30, 2009 at 8:08 PM, Adrian anad...@evolvingsolutions.cawrote: Hello, I am new to GWT and currently have it running in Eclipse 3.4 with the GWT plugin:http://code.google.com/appengine/docs/java/tools/ eclipse.htmlhttp://code.google.com/appengine/docs/java/tools/%0Aeclipse.html I seem to have everything running fine in the Hosted Browser (and even IE for that matter) but I cannot figure out what is wrong when I try to run the same app in Firefox. Here are a few snippets of my code: The program has a login page that authenticates a user and returns the user ID if successful. Here is the EventHandler class that is in use for the textfield and also button on the login form. // Create a handler for the sendButton and nameField class MyHandler implements ClickHandler, KeyUpHandler { public void onClick(ClickEvent event) { sendNameToServer(); } public void onKeyUp(KeyUpEvent event) { if (event.getNativeKeyCode() == KeyCodes.KEY_ENTER) { sendNameToServer(); } } private void sendNameToServer() { sendButton.setEnabled(false); String textToServer = nameField.getText(); textToServerLabel.setText(textToServer); serverResponseLabel.setText(); authService.adminLogin(textToServer,new AsyncCallbackInteger() { public void onFailure(Throwable caught) { // Show the RPC error message to the user dialogBox.setText(Admin Login - Failure); serverResponseLabel.addStyleName(serverResponseLabelError); serverResponseLabel.setHTML(SERVER_ERROR); dialogBox.center(); closeButton.setFocus(true); } public void onSuccess(Integer result) { loginUpdate(result); } }); } } Login Update does the following: private void loginUpdate(Integer result) { //need to authenticate dialogBox.setText(Admin Login); serverResponseLabel.removeStyleName(serverResponseLabelError); serverResponseLabel.setHTML(results - +result); dialogBox.center(); closeButton.setFocus(true); try{ if(result!=nullresult==1){ //successful login RootPanel.get(loginForm).setVisible(false); // Create table for stock data. twebFlexTable.setText(0, 0, Title); twebFlexTable.setText(0, 1, Date); twebFlexTable.setText(0, 2, Host(s)); twebFlexTable.setText(0, 3, Options); // Add styles to elements in the stock list table. twebFlexTable.setCellPadding(6); twebFlexTable.getRowFormatter().addStyleName(0, twebListHeader); twebFlexTable.addStyleName(twebList);
GWT and ExtGWT Licensing
I just wanted to ask you guys about this topic as our IP lawyers have found a potential problem. * ExtGWT extends classes in GWT therefore creating a derivative work. * ExtGWT is licensed under the GPLv3 and GWT under ASFv2. Now, we know that these are compatible. But, only ONE WAY! You can include GPLv3 code in your ASFv2 licensed project, but NOT the other way around. So, if I wanted to distribute my ExtGWT app under the GPLv3 (open sourcing all my code which does not require an Ext license) I cannot, as I cannot relicense the ASF licensed code (GWT). As far as we can see there is NO way of legally distributing an ExtGWT applicattion under the GPLv3. IANAL, so I can only go on what our lawyers tell me. This is indeed a blow to us, as I cannot see a way round this. If any of you have distributed an ExtGWT app under the GPLv3, then you have broken the terms of the ASFv2 and therefore have no rights to distribute GWT! I'm off to bed now :( --~--~-~--~~~---~--~~ You received 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 and ExtGWT Licensing
This is the section from Apache about compatibility: This licensing incompatibility applies *only* when some Apache project software becomes a derivative work of some GPLv3 software, because then the Apache software would have to be distributed under GPLv3. This would be incompatible with ASF's requirement that all Apache software must be distributed under the Apache License 2.0. As far as the license is converned, when ExtGWT extends a GWT class it is a derivitive work in the eyes of the GPL, so the above clause is true. On Jun 2, 11:46 pm, Kango_V djb.b...@gmail.com wrote: I just wanted to ask you guys about this topic as our IP lawyers have found a potential problem. * ExtGWT extends classes in GWT therefore creating a derivative work. * ExtGWT is licensed under the GPLv3 and GWT under ASFv2. Now, we know that these are compatible. But, only ONE WAY! You can include GPLv3 code in your ASFv2 licensed project, but NOT the other way around. So, if I wanted to distribute my ExtGWT app under the GPLv3 (open sourcing all my code which does not require an Ext license) I cannot, as I cannot relicense the ASF licensed code (GWT). As far as we can see there is NO way of legally distributing an ExtGWT applicattion under the GPLv3. IANAL, so I can only go on what our lawyers tell me. This is indeed a blow to us, as I cannot see a way round this. If any of you have distributed an ExtGWT app under the GPLv3, then you have broken the terms of the ASFv2 and therefore have no rights to distribute GWT! I'm off to bed now :( --~--~-~--~~~---~--~~ You received 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: TextBox with label inside
You can find source code from http://www.gwtorm.com/mail/Mail.html. Jim http://code.google.com/p/dreamsource-orm/ for GWT ORM. On Jun 2, 5:29 pm, mrpantsuit kevin.peter.w...@gmail.com wrote: I want a GWT control that's a TextBox with the label as light grey text inside the field (as opposed to beside it). You know, so you see what the field's for, but it saves space. And when you click inside the text box, the light grey label disappears. Anyone know if there's a widget library with something like that? --~--~-~--~~~---~--~~ You received 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 Project servlet-mapping clarification - how mapping happens
Hi, Perhaps this might not be the correct place to ask this. But please kindly tell some answer to this. I am new to web development and I started reading about GWT, and when I look at web.xml I see the servlet servlet-namegreetServlet/servlet-name servlet-classcom.gwt.test.server.GreetingServiceImpl/servlet- class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/calc/greet/url-pattern /servlet-mapping I used ant script created to run the application in hosted mode. When I run the application in hosted browser it shows the url as http://localhost:8080/calc.html Perfectly I could access this Url from other browser as well. But my question is what is the purpost of url-pattern/calc/greet/url- pattern . I tried to access the url by typing http://localhost:8080/calc/greet, but it displays following error - HTTP Error 405 HTTP method GET is not supported by this URL RequestURI=/calc/greet It it directly access from url by typing http://.../calc.html, then what is the purpost of url-mapping tag. I saw on blogs we can add several this kind of mapping. But still how it knows this request maps to this url-pattern. In our case, I only request calc.html and then how web.xml file knows I requested calc/greet. Please calrify a little on this. I am so confused about how this happen. Kind regards, -Tharindu --~--~-~--~~~---~--~~ You received 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: Array vs. ArrayList
Hi Jacob, The difference between the two depends on what you do with them. The emulated ArrayList provides a number of convenient features. If you use ArrayList, you will definitely pay the cost of increasing the size of your JavaScript, but that might not be a problem if you need these features anyway. The implementations for the ArrayList convenience methods are implemented as efficiently as possible, so you would end up having the same speed of execution if you were using Array and implementing similar functionality as the ArrayList class around the Array type. You can take a look at the features available in the ArrayList by checking out the emulated class source code at the link below. If you need these features, by all means use the ArrayList class. Emulated ArrayList class: http://google-web-toolkit.googlecode.com/svn/trunk/user/super/com/google/gwt/emul/java/util/ArrayList.java However, if you don't need these features, you will probably be better off using a regular array. Hope that helps, -Sumit Chandel On Mon, Jun 1, 2009 at 9:23 PM, Jacob jacobtop...@gmail.com wrote: What is the difference in how arrays and arraylists end up in javascript? I am working on performing animations in parallel, and an arraylist would be very nice and easy to use, but if an array is faster, I can initialize for the common case and the resize the array as needed. Is there anything I could do that would be faster than an array or an arraylist for storing an arbitrary amount of animations? --~--~-~--~~~---~--~~ You received 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 Project servlet-mapping clarification - how mapping happens
In GWT 1.6, 1.calc.html should contain a generated Javascript code like script type=text/javascript language='javascript' src='mail/ mail.nocache.js'/script in http://www.gwtorm.com/mail/Mail.html. 2.A service interface like MailService has the following code: @RemoteServiceRelativePath(mailService) public interface MailService extends RemoteService { void save(Contact contact) throws LinqException; Mails getMails(int startIndex, int count) throws LinqException; int getTotalMailCount() throws LinqException; ListContact getContacts(int personId) throws LinqException; Contact getContact(ContactPK contactPK) throws LinqException; } 3.mailService is mapped to MailServiceImpl servlet as indicated in the following web.xml. servlet servlet-namemailServlet/servlet-name servlet- classcom.google.gwt.sample.mail.client.server.MailServiceImpl/ servlet-class /servlet servlet-mapping servlet-namemailServlet/servlet-name url-pattern/mail/mailService/url-pattern /servlet-mapping If you took look at com.google.gwt.user.server.rpc.RemoteServiceServlet, you will find RemoteServiceServlet just overrides doPost method. That is a reason you get HTTP Error 405 when you try to get access to that url through get method. Jim http://www.gwtorm.com - GWT ORM http://code.google.com/p/dreamsource-orm/ On Jun 2, 6:41 pm, Tharindu Madushanka tharindu...@gmail.com wrote: Hi, Perhaps this might not be the correct place to ask this. But please kindly tell some answer to this. I am new to web development and I started reading about GWT, and when I look at web.xml I see the servlet servlet-namegreetServlet/servlet-name servlet-classcom.gwt.test.server.GreetingServiceImpl/servlet- class /servlet servlet-mapping servlet-namegreetServlet/servlet-name url-pattern/calc/greet/url-pattern /servlet-mapping I used ant script created to run the application in hosted mode. When I run the application in hosted browser it shows the url ashttp://localhost:8080/calc.html Perfectly I could access this Url from other browser as well. But my question is what is the purpost of url-pattern/calc/greet/url- pattern . I tried to access the url by typinghttp://localhost:8080/calc/greet, but it displays following error - HTTP Error 405 HTTP method GET is not supported by this URL RequestURI=/calc/greet It it directly access from url by typinghttp://.../calc.html, then what is the purpost of url-mapping tag. I saw on blogs we can add several this kind of mapping. But still how it knows this request maps to this url-pattern. In our case, I only request calc.html and then how web.xml file knows I requested calc/greet. Please calrify a little on this. I am so confused about how this happen. Kind regards, -Tharindu --~--~-~--~~~---~--~~ You received 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 + JAAS
Hi All, Its fairly simple take a look at Spring Security for some examples, the Subject just ends up in the HttpSession. You can use a HttpFilter to check it to block request to your RpcServlets, and you can login to your jboss JAAS session from the Servlet/Filter web code, just like you can from a stand alone app (for EJB JAAS). Having said that there are also a number of other issues, what happens when your Session times out, (some sort of error handling/ prevention in GWT is needed to detect this, or keep it from happening). Also I the user opened more than one Window are you going to open a new session are you going to have them log in again for each window? I am working on (have identified) solutions to all of these problems and If you need help let me know (code/time for sale). Cheers, Scott sc...@adligo.com On Jun 2, 11:03 am, Fernando Crestani fccrest...@gmail.com wrote: Well, I am also having almost the same trouble, so if anyone can help us it would be apreciated. Thanks Fernando --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
How to set iframe frameborder attribute
Hi, I'm using com.google.gwt.user.client.ui.Frame to embed an external url. There seem to be a small inset border even though I have everything set to 0 in the css. I think this is because of iframe has a separate frameborder attribute. How can I set this attribute? I don't see the function in Frame, there is one in IFrameElement, but I can't figure out how to go from Frame to IFrameElement. Frame frame = new Frame(url); frame.setStyleName(widget-Frame); .widget-Frame { margin: 0px; border: 5px solid blue; padding: 10px; } Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Project servlet-mapping clarification - how mapping happens
3.mailService is mapped to MailServiceImpl servlet as indicated in the following web.xml. servlet servlet-namemailServlet/servlet-name servlet- classcom.google.gwt.sample.mail.client.server.MailServiceImpl/ servlet-class /servlet servlet-mapping servlet-namemailServlet/servlet-name url-pattern/mail/mailService/url-pattern /servlet-mapping If you took look at com.google.gwt.user.server.rpc.RemoteServiceServlet, you will find RemoteServiceServlet just overrides doPost method. That is a reason you get HTTP Error 405 when you try to get access to that url through get method. Sorry for asking again, but still I am not clear. I am clear about the module , host page creation and use of nocache.js file. But my question is :: I want to know whether we can get the functionality working by calling http://localhost/mail/mailService URL If not the case, what is the purpose of adding it as a url-pattern In my case I have to type the url http://localhost/calc.html to open it from FF. Then there is no pattern there. Could you kindly explain just about what is the purpose or functionality with related to example browser request urls appear in the browser. Thanks. -Tharindu --~--~-~--~~~---~--~~ You received 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: Change individual menuitem css
I found a solution and wanted to share it in case anyone else needs it. I needed to change: .georgeMenuItem .gwt-MenuItem-selected { background: #c1272d; color: #FFF200; } to .georgeMenuItem-selected { background: #c1272d; color: #FFF200; } On May 22, 8:21 am, Tracy tracyeringre...@gmail.com wrote: Hi, I'm new to GWT and have been scouring the discussion groups and internet for an answer to my question but I have had no luck. Here is my question: I need to change the style on an individual menuitem on my menubar. I tried to remove the style for the menuitem and then add my new style it but only changed the the georgeMenuItem part of my css. Here is a snippet of my code MenuItem georgetownMenuItem = new MenuItem(Georgetown - Union Station, new Command() { public void execute() { RootPanel.get().remove(0); RootPanel.get().add(createPage(createGoButtonPanel (),assembleContent(createGeorgetownContent(), GEORGETOWN_TOP_IMG, georgetownMainPanel))); // sideBar.setStyleName(adRatesSidePanel); //rightPanel.setStyleName(adRatesRightPanel); } }); georgetownMenuItem.removeStyleName(gwt-MenuItem); georgetownMenuItem.setStyleName(georgeMenuItem); toGo.addItem(georgetownMenuItem); ** CSS .georgeMenuItem { cursor: default; border: 1px solid #FFF200; background-color: #FF; color: #FFF200; } .georgeMenuItem .gwt-MenuItem { cursor: default; height: 33px; width: 95px; font-size: 12px; background-color: #FF; color: #FFF200; font-family: helvetica, impact, sans-serif; text-align: left; vertical-align: center; padding-left: 10px;} .georgeMenuItem table { margin: 0px; border-collapse: collapse; border-spacing: 0px; } .georgeMenuItem .gwt-MenuItem-selected { background: #c1272d; color: #FFF200; } Any help would be appreciated. Thank you, Tracy --~--~-~--~~~---~--~~ You received 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 Theme Like Google
GWT-Ext is free for commercial? Yes it is free - though you may want to look at SmartGWT as well which also has a free version (the enterprise version is not free, but just for a good look and feel the free version is fine). A lead dev from GWT-Ext moved to SmartGWT. ExtGWT is another commercial framework version (GPL - only free if your app is also open source). Also there is gwt-mosaic http://code.google.com/p/gwt-mosaic/ (see the demo here: http://69.20.122.77/gwt-mosaic/Showcase.html - click the buttons on the top right to change themes). Of course the other option is to build your own theme (or get your css / design enabled friend to build it for you). I'm interested in building compatible themes for Smart / ExtGWT so that widgets from either could be used together... anyone else like that idea? Regards, Carl --~--~-~--~~~---~--~~ You received 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 Project servlet-mapping clarification - how mapping happens
In your example, once you type http://localhost:8080/calc/greet in FF, it is a synchronous regular request in Get method. Your servlet doesn't override doGet method and com.google.gwt.user.server.rpc.RemoteServiceServlet returns HTTP Error 405 to your request. In GWT application, it is a asynchronous RPC to your servlet and you must implement the following methods in your widgets: public void onFailure (Throwable caught) { } public void onSuccess(Mails mails) { } Jim On Jun 2, 8:52 pm, Tharindu Madushanka tharindu...@gmail.com wrote: 3.mailService is mapped to MailServiceImpl servlet as indicated in the following web.xml. servlet servlet-namemailServlet/servlet-name servlet- classcom.google.gwt.sample.mail.client.server.MailServiceImpl/ servlet-class /servlet servlet-mapping servlet-namemailServlet/servlet-name url-pattern/mail/mailService/url-pattern /servlet-mapping If you took look at com.google.gwt.user.server.rpc.RemoteServiceServlet, you will find RemoteServiceServlet just overrides doPost method. That is a reason you get HTTP Error 405 when you try to get access to that url through get method. Sorry for asking again, but still I am not clear. I am clear about the module , host page creation and use of nocache.js file. But my question is :: I want to know whether we can get the functionality working by callinghttp://localhost/mail/mailServiceURL If not the case, what is the purpose of adding it as a url-pattern In my case I have to type the urlhttp://localhost/calc.htmlto open it from FF. Then there is no pattern there. Could you kindly explain just about what is the purpose or functionality with related to example browser request urls appear in the browser. Thanks. -Tharindu- 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 VS GWT-EXT
My understanding is that GWT-Ext development is halted. A active replacement is SmartGWT (has a free LGPL version). Note that Ext-GWT is not free for commercial use - it uses GPL licencing. I'm currently using it. - Carl. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT 1.6 Compilation
Have you tried compiling with -Xss64m as a VM arg? -Carl On Jun 2, 4:35 pm, SunilBansal sunil.ban...@daffodildb.com wrote: same code is working fine on GWT 1.5 and it's also showing the following message Gwt module 'module name' needs to be (re)compiled,please run a compile or use the Compile/Browse button in hosted mode On Jun 2, 11:18 am, Sanj sunil.ban...@daffodildb.com wrote: HI All, I am trying to shift on GWT 1.6. But when i compiled my code on GWT 1.6 then i face some compilation issue. The Exception stack trace is showing as :- [ERROR] Unexpected internal compiler error java.lang.StackOverflowError: null at java.io.ObjectStreamClass$FieldReflector.getPrimFieldValues (Unknown Source) at java.io.ObjectStreamClass.getPrimFieldValues(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.defaultWriteObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor70.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) I am using GWT 1.6, GWT-EXT 2.0.4 and Gilead. Is this problem coming because of Old version of GWT-Ext old version. Thanks and regards, Sunil Bansal. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Don't obfuscate Java methods when passing instance to JavaScript
I want to write a small library API which will expose certain classes of Objects and well-known methods on them for plain-old JavaScript to invoke. Creating the API isn't too hard, and using JSNI, I'm able to create methods in JavaScript that call back to the GWT (obfuscated) code. What I haven't figured out how to do is prevent the instance methods of a Java object passed to JavaScript from being obfuscated. Say I have a Java class: class Foo { public void doBar() { // ... something } } Now in my EntryPoint class, I'll add some JSNI to expose the Foo constructor: public native void onModuleLoad() /*-{ $wnd.Foo = function() {return @Foo::new()();} }-*/; Okay, that all works great. And now from JavaScript, I can do this: var f = new Foo(); Great. Now I have an instance of Foo. But how can I be certain that 'f' will have a 'doBar()' function? f.doBar(); --~--~-~--~~~---~--~~ You received 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: Don't obfuscate Java methods when passing instance to JavaScript
One thing I tried was adding an 'export' method to the Foo class: class Foo { public Foo() { this.export(); } private native void export() /*-{ this.doBar = function() {th...@foo::doBar()();} }-*/; public void doBar() { // ... something } } This causes, on creating an instance of Foo, the appropriate API methods to be exposed in JavaScript. However, when running in hosted mode, I get all kinds of Malformed JSNI Exceptions, whining about how the 'doBar' field is not found. [WARN] Malformed JSNI reference 'doBar'; expect subsequent failures java.lang.NoSuchFieldError: doBar at com.google.gwt.dev.shell.CompilingClassLoader $DispatchClassInfoOracle.getDispId(CompilingClassLoader.java:122) at com.google.gwt.dev.shell.CompilingClassLoader.getDispId (CompilingClassLoader.java:574) at com.google.gwt.dev.shell.mac.WebKitDispatchAdapter.setField (WebKitDispatchAdapter.java:106) at com.google.gwt.dev.shell.mac.LowLevelSaf.invokeImpl(Native Method) at com.google.gwt.dev.shell.mac.LowLevelSaf.invoke(LowLevelSaf.java: 158) at com.google.gwt.dev.shell.mac.ModuleSpaceSaf.doInvoke (ModuleSpaceSaf.java:100) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 453) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid (ModuleSpace.java:251) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid (JavaScriptHost.java:107) at Foo.export(OAuthLogonService.java) at Foo.init(OAuthLogonService.java:29) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: 105) at com.google.gwt.dev.shell.mac.MethodDispatch.invoke (MethodDispatch.java:71) at org.eclipse.swt.internal.carbon.OS.SendEventToEventTarget(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2914) at com.google.gwt.dev.SwtHostedModeBase.processEvents (SwtHostedModeBase.java:235) at com.google.gwt.dev.HostedModeBase.pumpEventLoop (HostedModeBase.java:558) at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405) at com.google.gwt.dev.HostedMode.main(HostedMode.java:232) This works no problem compiled in the browser, but it would be nice if hosted mode would continue to work... As it is, it just bombs and stops and doesn't go any further than the exception. On Jun 2, 10:07 pm, jarrod jarrod.carl...@gmail.com wrote: I want to write a small library API which will expose certain classes of Objects and well-known methods on them for plain-old JavaScript to invoke. Creating the API isn't too hard, and using JSNI, I'm able to create methods in JavaScript that call back to the GWT (obfuscated) code. What I haven't figured out how to do is prevent the instance methods of a Java object passed to JavaScript from being obfuscated. Say I have a Java class: class Foo { public void doBar() { // ... something } } Now in my EntryPoint class, I'll add some JSNI to expose the Foo constructor: public native void onModuleLoad() /*-{ $wnd.Foo = function() {return @Foo::new()();} }-*/; Okay, that all works great. And now from JavaScript, I can do this: var f = new Foo(); Great. Now I have an instance of Foo. But how can I be certain that 'f' will have a 'doBar()' function? f.doBar(); --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
PagingScrollTable not removing row
I have a picklist using the PagingScrollTable (Feb 27 build and only have 1 page). I select rows, then copy them to another PagingScrollTable and remove the selected rows from the first table. This works, except not all selected rows disappear from the first table. When I select rows 0,1,2, they all are copied to the other table but the first table always shows row 1. private final Button add = new Button(, new ClickHandler() { @Override public void onClick(ClickEvent event) { FixedWidthGrid leftDataTable = pagingScrollTable.getDataTable(); Integer[] leftRowIds = new Integer[0];// ConcurrentModificationException using Set leftRowIds = leftDataTable.getSelectedRows().toArray (leftRowIds); FixedWidthGrid rightDataTable = pagingScrollTablePicked.getDataTable(); int rightRowCount = rightDataTable.getRowCount(); rightDataTable.resizeRows(rightRowCount + leftRowIds.length); for(int i = 0; i leftRowIds.length; i++) { T value = pagingScrollTable.getRowValue(leftRowIds [i]); pagingScrollTablePicked.setRowValue(rightRowCount + i, value); } for(int i = 0; i leftRowIds.length; i++) { leftDataTable.removeRow(leftRowIds[i]); } pagingScrollTable.redraw(); pagingScrollTablePicked.redraw(); } }); --~--~-~--~~~---~--~~ You received 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: Hosted mode
Rajeev Dayal wrote 1) Are you using Debug As to launch your application's debugging session? 2) If you switch to the Debug perspective and look at the breakpoints view, are all of the breakpoints enabled? 3) If you go to Preferences (Window - Preferences on Linux and Windows, Eclipse - Preferences on Mac) - Run/Debug and make sure that Activate the workbench when breakpoint is hit and Activate the debug view when breakpoint is hit options are enabled? 4) Can you tell me what is on your project's classpath? Thanks for your reply. 1) Yes, I'm launching the session with Debug As. 2) Yes, breakpoints are enabled after switching to Debug perspective. 3) Yes, both checkboxes are checked. 4) GWT SDK 1.6.4 and jre6 Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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: Hosted mode
Kelo wrote Push the button GWT Compile Project Compile your project setting log level to Spam Go to Debug Configurations , on the 2nd tab GWT of your project set log level to Spam. Run Debug as... ( your project ) Make your breakpoints on your project Then press Compile/Browse onHostedMode Once it fininshed press Refresh onHostedMode Thanks, this helped me make some progress! Eclipse caught the breakpoint and switched to Debug perspective. I was able to step around, inspect variables, and so on. When I changed the code and saved, the hosted-mode browser stopped responding to events. When I stopped and restarted the debugger, breakpoints were again ignored. A couple of cycles of Compile/Browse and Refresh got breakpoints triggering in Eclipse again. I tried dialing the logging level back down but that left Eclipse aloof. It's not elegant, but it's a workaround! Greg --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-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 -~--~~~~--~~--~--~---
GWTetris - enjoy it :)
Hi everyone! I'd like to invite all of you to play my own Tetris which I implemented with GWT. It's called GWTetris :p and I hope you'll enjoy it :) I added high scores feature so I think it'll be fun. You can find it here: http://mars.iti.pk.edu.pl/~swoosh/GWTTetris.html Greetings, Janusz Prokulewicz BTW I'm looking for a job in Poland as a GWT developer (more or less)... --~--~-~--~~~---~--~~ You received 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: Tab Panel does not resize for FlexTable
This method is available in com.gwtext.client.widgets.Panel class. Cheers! Amzad Basha. On Jun 2, 3:45 am, KodeMaestro troypeter...@rogers.com wrote: What class would that be a member of? I cannot find a method called setAutoHeight on any of the widget classes. Thanks, Troy. On Jun 1, 6:58 am, Amzad Basha amzad.ba...@gmail.com wrote: You can try with setAutoHeight(true) and / or setAutoWidth(true). This may give a way to resize automatically. cheers, Amzad Basha. On May 31, 10:25 pm, KodeMaestro troypeter...@rogers.com wrote: Hi Everyone, I'm hoping someone can help me out with a really frustrating issue I've been having. I've searched the web for days on this and have found nothing. My issue is that I have a TabPanel with a number of tabs on it. Each tab has a similar sort of layout with a text box, a button, and a flextable. The flextable initially starts out invisible (.setVisible(false)). When the user clicks on the button a simple database lookup is performed and the flextable is populated and made visible. The problem is, the TabPanel does not expand to accomodate it. I only see the first couple of rows of the tab panel. There is no scrollbar, but I can scroll the window by selecting the table and dragging the mouse inside of it. Changing tabs and changing back causes the window to resize. I have not been able to find a redraw method or any other way to force the widget to update to accommodate the larger child. I've tried setting it to invisible and back to visible again to cause it to resize, but nothing I can do from code seems to have any effect. I can't have the users clicking another tab every time to get their window to resize. Is there any solution to this problem? What can I do? Thanks, Troy. --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Calling java scrip function
How can we call a java script function on GWT click event,I mean clicking on a button how can we execute a java script code.Is there any example. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to disable click events in Grid cell
hi Unfortunately there is no universal way to disable text selection via mouse dragging that works in all browsers. If I recall correctly to disable text selection one must add the event listener that Sumit suggests, but this only applies for Ie and maybe opera. For the others one must add a css property. I can't recall the exact property names but do a quick search on mozillas mdc to get the css property name for ff and repeat for webkit. The FF property was called sonethi g all g the lines of moz- selection... Hth Mp On Jun 3, 6:21 am, Sumit Chandel sumitchan...@google.com wrote: Hi Suren, Unfortunately, disable text selection on double click is one of those things that is hard to prevent across all browsers. I tried a couple of implementations to disable text selection on double-click, but neither of them worked. However, you can use an onselectstart='return false;' attribute which does seem to work on IE6/7 and Chrome (see code snippet below). Although this works on Chrome (which is WebKit-based), you'll have to try it out on Safari to see if it works there as well. This definitely doesn't work on FF3, so that may hinder your decision to depend on the onselectstart attribute for text selection prevention. HTMLPanel panel = new HTMLPanel(div id='grid' onselectstart='return false;'/div); Grid grid = new Grid(10, 10); for (int i = 0; i 10; i++) { for (int j = 0; j 10; j++) { grid.setText(i, j, Bonjour); } } panel.add(grid, grid); As a sidenote, you may not necessarily want to disable text selection in the grid, however. It's generally not a good idea to go against standard browser functionality that users may have grown accustomed to in their web browsing experience. Hope that helps, -Sumit Chandel On Wed, May 27, 2009 at 8:00 PM, Suren nsurendi...@gmail.com wrote: Hi All, I am having a grid with 100 columns. Among these certain columns are meant for readonly purpose. For these columns I want to disable the text selected when user tries to double click on that cell. Currently when a user double click any cell in the Grid, the text get selected with blue background. I want to disable this functionality for certain cells / entire columns. Can anyone help me in this regards Thanks Suren --~--~-~--~~~---~--~~ You received 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] [google-web-toolkit commit] r5490 - two changes to java.util.Date in an effort to track down a very intermittent
Author: j...@google.com Date: Mon Jun 1 22:59:06 2009 New Revision: 5490 Modified: trunk/user/super/com/google/gwt/emul/java/util/Date.java trunk/user/test/com/google/gwt/emultest/java/util/DateTest.java Log: two changes to java.util.Date in an effort to track down a very intermittent failure on IE. IE doesn't provide useful stack traces for JS-initiated exceptions, so all we know is that jsdate is uninitialized or not an object at some point when it is dereferenced. The changes are: - use a JSO field storing the JS Date object rather than making an expando on the underlying object (which couldn't ever work in hosted mode, but since this is a JRE emulation class it didn't have to) - add checks before each dereference of jsdate to see if it has been mangled; if so throws a Java exception so we can get a good stack trace. This does add some overhead, but it shouldn't be too bad. This is a temporary change that will be removed once the cause is found. Patch by: jat Review by: amitmanjhi, scottb Modified: trunk/user/super/com/google/gwt/emul/java/util/Date.java == --- trunk/user/super/com/google/gwt/emul/java/util/Date.java(original) +++ trunk/user/super/com/google/gwt/emul/java/util/Date.javaMon Jun 1 22:59:06 2009 @@ -15,12 +15,21 @@ */ package java.util; +import com.google.gwt.core.client.JavaScriptObject; + import java.io.Serializable; /** * Represents a date and time. */ public class Date implements Cloneable, ComparableDate, Serializable { + + /** + * JavaScript Date instance. + */ + @SuppressWarnings(unused) // used from JSNI + private JavaScriptObject jsdate; + /** * Used only by toString(). */ @@ -88,6 +97,16 @@ return isNaN(d) ? -1 : d; }-*/; + /** + * Throw an exception if jsdate is not an object. + * + * @param val + */ + @SuppressWarnings(unused) // called by JSNI + private static void throwJsDateException(String val) { +throw new IllegalStateException(jsdate is + val); + } + private static native double utc0(int year, int month, int date, int hrs, int min, int sec) /*-{ return Date.UTC(year + 1900, month, date, hrs, min, sec); @@ -147,27 +166,33 @@ } public native int getDate() /*-{ -return this.jsdate.getDate(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getDate(); }-*/; public native int getDay() /*-{ -return this.jsdate.getDay(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getDay(); }-*/; public native int getHours() /*-{ -return this.jsdate.getHours(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getHours(); }-*/; public native int getMinutes() /*-{ -return this.jsdate.getMinutes(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getMinutes(); }-*/; public native int getMonth() /*-{ -return this.jsdate.getMonth(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getMonth(); }-*/; public native int getSeconds() /*-{ -return this.jsdate.getSeconds(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getSeconds(); }-*/; public long getTime() { @@ -175,11 +200,13 @@ } public native int getTimezoneOffset() /*-{ -return this.jsdate.getTimezoneOffset(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getTimezoneOffset(); }-*/; public native int getYear() /*-{ -return this.jsdate.getFullYear()-1900; +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getFullYear()-1900; }-*/; @Override @@ -188,23 +215,28 @@ } public native void setDate(int date) /*-{ -this.jsdate.setDate(date); +th...@java.util.date::checkJsDate()(); +th...@java.util.date::jsdate.setDate(date); }-*/; public native void setHours(int hours) /*-{ -this.jsdate.setHours(hours); +th...@java.util.date::checkJsDate()(); +th...@java.util.date::jsdate.setHours(hours); }-*/; public native void setMinutes(int minutes) /*-{ -this.jsdate.setMinutes(minutes); +th...@java.util.date::checkJsDate()(); +th...@java.util.date::jsdate.setMinutes(minutes); }-*/; public native void setMonth(int month) /*-{ -this.jsdate.setMonth(month); +th...@java.util.date::checkJsDate()(); +th...@java.util.date::jsdate.setMonth(month); }-*/; public native void setSeconds(int seconds) /*-{ -this.jsdate.setSeconds(seconds); +th...@java.util.date::checkJsDate()(); +th...@java.util.date::jsdate.setSeconds(seconds); }-*/; public void setTime(long time) { @@ -212,14 +244,16 @@ } public native void setYear(int year) /*-{ -
[gwt-contrib] [google-web-toolkit commit] r5491 - Merge r5487 and r5490 into the snapshot branch.
Author: j...@google.com Date: Mon Jun 1 23:11:52 2009 New Revision: 5491 Modified: branches/snapshot-2009.05.12-r5406/branch-info.txt branches/snapshot-2009.05.12-r5406/user/src/com/google/gwt/i18n/client/Dictionary.java branches/snapshot-2009.05.12-r5406/user/super/com/google/gwt/emul/java/util/Date.java branches/snapshot-2009.05.12-r5406/user/test/com/google/gwt/emultest/java/util/DateTest.java branches/snapshot-2009.05.12-r5406/user/test/com/google/gwt/i18n/client/I18NTest.java Log: Merge r5487 and r5490 into the snapshot branch. /trunk c5487 was merged into this branch (MissingResourceException diag info) svn merge -c5487 https://google-web-toolkit.googlecode.com/svn/trunk . /trunk c5490 was merged into this branch (Date diag info) svn merge -c5490 https://google-web-toolkit.googlecode.com/svn/trunk . Patch by: jat Review by: fabbott (TBR) Modified: branches/snapshot-2009.05.12-r5406/branch-info.txt == --- branches/snapshot-2009.05.12-r5406/branch-info.txt (original) +++ branches/snapshot-2009.05.12-r5406/branch-info.txt Mon Jun 1 23:11:52 2009 @@ -20,3 +20,7 @@ svn merge -r 5296:5295 https://google-web-toolkit.googlecode.com/svn/trunk . svn merge -r 5293:5292 https://google-web-toolkit.googlecode.com/svn/trunk . (had minor conflicts in CodeSplitter.java, JavaToJavaScriptCompiler.java) +/trunk c5487 was merged into this branch (MissingResourceException diag info) + svn merge -c5487 https://google-web-toolkit.googlecode.com/svn/trunk . +/trunk c5490 was merged into this branch (Date diag info) + svn merge -c5490 https://google-web-toolkit.googlecode.com/svn/trunk . Modified: branches/snapshot-2009.05.12-r5406/user/src/com/google/gwt/i18n/client/Dictionary.java == --- branches/snapshot-2009.05.12-r5406/user/src/com/google/gwt/i18n/client/Dictionary.java (original) +++ branches/snapshot-2009.05.12-r5406/user/src/com/google/gwt/i18n/client/Dictionary.java Mon Jun 1 23:11:52 2009 @@ -102,6 +102,7 @@ null, name); } + private JavaScriptObject accessedKeys; private JavaScriptObject dict; private String label; @@ -123,8 +124,13 @@ Cannot find JavaScript object with the name ' + name + ', name, null); } +createAccessedKeysArray(); } + private native void createAccessedKeysArray() /*-{ +th...@com.google.gwt.i18n.client.dictionary::accessedKeys = new Array(); + }-*/; + /** * Get the value associated with the given Dictionary key. * @@ -138,6 +144,12 @@ */ public native String get(String key) /*-{ var value = th...@com.google.gwt.i18n.client.dictionary::dict[key]; + var keys = th...@com.google.gwt.i18n.client.dictionary::accessedKeys; + keys.unshift(key); + // only keep the last 30 elements. Shrink it when array exceeds 60 + if (keys.length 60) { + keys.splice(30); + } if (value == null || !Object.prototype.hasOwnProperty.call( th...@com.google.gwt.i18n.client.dictionary::dict, key)) { @@ -179,6 +191,7 @@ if (s.size() MAX_KEYS_TO_SHOW) { error += \n keys found: + s; } +error += \n accessed keys: + accessedKeys; throw new MissingResourceException(error, this.toString(), key); } Modified: branches/snapshot-2009.05.12-r5406/user/super/com/google/gwt/emul/java/util/Date.java == --- branches/snapshot-2009.05.12-r5406/user/super/com/google/gwt/emul/java/util/Date.java (original) +++ branches/snapshot-2009.05.12-r5406/user/super/com/google/gwt/emul/java/util/Date.java Mon Jun 1 23:11:52 2009 @@ -15,12 +15,21 @@ */ package java.util; +import com.google.gwt.core.client.JavaScriptObject; + import java.io.Serializable; /** * Represents a date and time. */ public class Date implements Cloneable, ComparableDate, Serializable { + + /** + * JavaScript Date instance. + */ + @SuppressWarnings(unused) // used from JSNI + private JavaScriptObject jsdate; + /** * Used only by toString(). */ @@ -88,6 +97,16 @@ return isNaN(d) ? -1 : d; }-*/; + /** + * Throw an exception if jsdate is not an object. + * + * @param val + */ + @SuppressWarnings(unused) // called by JSNI + private static void throwJsDateException(String val) { +throw new IllegalStateException(jsdate is + val); + } + private static native double utc0(int year, int month, int date, int hrs, int min, int sec) /*-{ return Date.UTC(year + 1900, month, date, hrs, min, sec); @@ -147,27 +166,33 @@ } public native int getDate() /*-{ -return this.jsdate.getDate(); +th...@java.util.date::checkJsDate()(); +return th...@java.util.date::jsdate.getDate(); }-*/; public native int
[gwt-contrib] [google-web-toolkit commit] r5492 - Fixes test failure on FF2 with a bit of a hack in the test (FF2 has an
Author: j...@google.com Date: Tue Jun 2 07:19:52 2009 New Revision: 5492 Modified: trunk/user/test/com/google/gwt/dom/client/ElementTest.java Log: Fixes test failure on FF2 with a bit of a hack in the test (FF2 has an off-by-one error in getBoxObjectFor() that cannot easily be fixed). TBR: jlabanca Modified: trunk/user/test/com/google/gwt/dom/client/ElementTest.java == --- trunk/user/test/com/google/gwt/dom/client/ElementTest.java (original) +++ trunk/user/test/com/google/gwt/dom/client/ElementTest.java Tue Jun 2 07:19:52 2009 @@ -228,14 +228,23 @@ div.getStyle().setLeft(1000, Unit.PX); div.getStyle().setTop(1000, Unit.PX); +// Get the absolute position of the element when the body is unscrolled. int absLeft = div.getAbsoluteLeft(); int absTop = div.getAbsoluteTop(); +// Scroll the body as far down and to the right as possible. body.setScrollLeft(1); body.setScrollTop(1); -assertEquals(absLeft, div.getAbsoluteLeft()); -assertEquals(absTop, div.getAbsoluteTop()); +// Make sure the absolute position hasn't changed (this has turned out to +// be a common error in getAbsoluteLeft/Top() implementations). +// +// HACK: Firefox 2 has a bug that causes its getBoxObjectFor() to become +// off-by-one at times when scrolling. It's not clear how to make this go +// away, and doesn't seem to be worth the trouble to implement +// getAbsoluteLeft/Top() yet again for FF2. +assertTrue(Math.abs(absLeft - div.getAbsoluteLeft()) = 1); +assertTrue(Math.abs(absTop - div.getAbsoluteTop()) = 1); } /** --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Fix checkstyle violation
Reviewers: bobv, Please review this at http://gwt-code-reviews.appspot.com/33839 Affected files: dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java Index: dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java === --- dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java (revision 5485) +++ dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java (working copy) @@ -105,7 +105,9 @@ return ClassMember + getSourceName(); } - /** Compute overrides on demand. */ + /** + * Compute overrides on demand. + */ private void computeOverrides() { SetJDeclaredType seen = new HashSetJDeclaredType(); SetJDeclaredType toTraverse = new HashSetJDeclaredType(); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] [google-web-toolkit commit] r5493 - Fix checkstyle violation.
Author: r...@google.com Date: Tue Jun 2 07:35:31 2009 New Revision: 5493 Modified: trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java Log: Fix checkstyle violation. Review by: b...@google.com Modified: trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java == --- trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java (original) +++ trunk/dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java Tue Jun 2 07:35:31 2009 @@ -105,7 +105,9 @@ return ClassMember + getSourceName(); } - /** Compute overrides on demand. */ + /** + * Compute overrides on demand. + */ private void computeOverrides() { SetJDeclaredType seen = new HashSetJDeclaredType(); SetJDeclaredType toTraverse = new HashSetJDeclaredType(); --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit
Comment by PaRaDoXXX.ZeRo: Same as mark here, rev 5393 breaks oophm with document.body is null as an error. Reverted to 5392 and it works... For more information: http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---
[gwt-contrib] Re: I've submitted a new issue with a patch for a bug in IFrameLinker which causes HTML Parsing Error (KB927917) in IE8/IE7/IE6
Thanks, Cameron! I assigned the issue to Joel, who's working on this. --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---