Re: GWT Special Features compared to other Frameworks
Hi, 1 point related to your point 1: java means compilation, i.e strong type checking at compile time (even at write time if you use Eclipse that compiles in real-time). The difference in productivity is huge 1 point related to your point 3: you can not only integrates runtime frameworks but also dev tools to improve quality of code (FindBugs, JUnit, Checkstyle, etc.) regards didier On Jan 18, 10:05 pm, Ryan Mehregan wrote: > I am afraid your first point is not a correct assessment. > "Programming the Web" is a very broad category > which encompasses a plethora of Java Web Frameworks that emerged over > the past decade many of them now obsolete. > Like many of the MVC frameworks > (Struts, WebWork, Tapestry, SpringMVC/WebFlow, Wicket, Play, JSF), > or specific components of MVC such as View technologies for MVC. > ( template engines such as Velocity, Freemarker, Tiles, SiteMesh) to > name a few. > > therefore you need to explain how GWT compares with those and why and > when to use GWT instead of all those Java Web Frameworks ? > > and in addition, your point does not address what is the benefit of > using Java to program the web ? > there are many many alternative frameworks, programming languages out > there. why choose Java ? > > > 1. GWT allows using java to program > > web. (only, it also allows merging > > javascript through JSNI of course) > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Choosing a file in local directory
Hi, GWT Java code gets converted to Javascript. Javascript then runs in the sandbox of your browser: you can't access the local file system because of this sandbox architecture. regards didier On Dec 30, 8:27 am, Rubini wrote: > jc writes: > > > I check the fileupload widget, but it show only the filename correctly > > not full path. > > it show c:/fakepath/filename. I need to read and wirte a file in a > > local directory. Send me a > > sample code if you have. > > > On Dec 28, 8:43 pm, Ben Imp wrote: > > > You would be looking for the FileUpload widget, which just wraps a > > > html file input element. > > > > -Ben > > > > On Dec 28, 2:15 am, jc wrote: > > > > > Hi, > > > > i am new to GWT, but i know java. I am using GWT in Eclipse. for > > > > selecting a file in local directory in java, we use JFileChooser. > > > > but i don't know to select a file in a local directory in GWT. can any > > > > one help please. > > Hi, > > can anyone help me to read and write a file in a local directory . The file > Upload widget is by default having a text box. how to disable the text box? . > In chrome the text box is not editable while in IE i am able to edit it. how > to > disable the editing feature of file Upload-TxtBox in various browsers > > -Ruby -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can I use Class.forName and newInstance in GWT ?
Hi, You can't: if you go to http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html#Package_java_lang for Class, you will see that forName() is not emulated by GWT. regards didier On Dec 30, 7:33 am, metalhammer29a wrote: > can I use Class.forName and newInstance in GWT ? > > static Employee create (String name) { > try { > return (Employee) Class.forName(name).newInstance(); > } catch (Exception e) { > throw new IllegalArgumentException ("Unable to instantiate" > + name); > } > } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT must Allow sending a variable of type object via RPC
Hi, Does the object you want to send implement Serializable ? It's required Then in your case when not just define class MyObject extends Object implements Serializable { ... } Then, you will be able to carry MyObject and its child classes over RPC. regards didier On Dec 17, 5:22 am, Noor wrote: > Using GWT RPC, we cannot send a variable of the type OBJECT. > > I am trying to do this > > Service Interface: > > Boolean SaveObjectIntoDatabase(Object Entity); > > ServiceAsync: > > void SaveObjectIntoDatabase(Object Entity,AsyncCallback > Callback); > > This is because if we are using hibernate on the back end , we can > just do > > e.g. public Boolean SaveObjectIntoDatabase(Object Entity) > { > Transaction tx = null; > > //here we can choose about the object nature > if (Entity.getClass().equals(A)) > { > Entity=(A)Entity; > } > > if (Entity.getClass().equals(B)) > { > Entity=(B)Entity; > } > //like this we can continue on saving an object > //this would be a generic fuction just for saving > hibernate object > //making life much easier than creating an function for > every type of Class > > try > { > tx=session.beginTransaction(); > tx.begin(); > session.update(Entity); > tx.commit(); > return true; > } > catch (Exception e) > { > tx.rollback(); > e.printStackTrace(); > return false; > } > } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Class is not serializable ?
Hi, you have to use non-generic definition for GWT:; i.e. Class and then probably implement a DTO (Data Transfer Object) if you want to keep the Class on server-side and have just Class on client side. That's how I do it personnally. regards didier On Dec 14, 1:57 pm, Paul Robinson wrote: > The hashCode() contract does not specify that the value should be the > same on all JVMs. In fact, the javadoc for hashCode() specifically > states that the value may be different for different invocations of an > application. It's only guaranteed not to change during a JVM (and only > when the content of the object doesn't change) > > That means you shouldn't rely on the value of hashCode() being the same > between real JVMs, let alone between the gwt client and a java server. > > On 14/12/10 11:20, yves wrote: > > > @Didier > > Of course MyType implements Serializable . It is just a typo in the > > example. Sorry. > > > @Paul > > I didn't realized that Class is not GWT-serializable. Thanks for your > > remark. I lost pretty much time to find out why I get an exception > > during an RPC call > > > It would have been nice if Class was serializable. I would have > > used it to select an appropriate handler at server-side. Anyway I use > > instead the canonical class name to map the handler, but the code is > > little bit more uggly :-) > > > I noticed also the a call to class.hashCode() does not give the same > > value in the (gwt-compiled)-client and in the (JVM running)-server. > > In my attempts to workaround the "unserializability" of Class, I tried > > to use the hashCode() value, unsuccessfully... > > > Regards > > Yves > > > On 14 d�c, 10:42, Paul Robinson wrote: > > >> Class is not gwt-serializable. > > >> MyType has a non-final, non-transient field of type Class > > >> Therefore MyType is not serializable > > >> On 14/12/10 09:33, Didier Durand wrote: > > >>> Hi, > > >>> Serializable is an interface not a class. That's why it's not the list > >>> you mention. An interface has nothing to be serialized per se. > > >>> You should let us know about your class MyType in order to better > >>> help. > > >>> regards > > >>> didier > > >>> On Dec 14, 9:21 am, Paul Robinson wrote: > > >>>> If you look at the Class.java that GWT uses to emulate the JVM's Class, > >>>> you'll see that it does not implement Serializable. > > >>>> On 13/12/10 22:19, yves wrote: > > >>>>> Hi, > > >>>>> I have a class defined in a way similar to this: > > >>>>> class MyType extends Serializable { > > >>>>> private Class aClass; > > >>>>> public MyType() {} > > >>>>> public void setClass(Class aClass) { > >>>>> this.aClass = aClass; > >>>>> } > >>>>> } > > >>>>> where MyGen is also Serializable > > >>>>> When I compile de project (I'am currently still using GWT 2.1.0 RC1), > >>>>> then I find the following : > > >>>>> 1) the compiler (using the compiler options -extra, -work and -gen) > >>>>> does not generate the code MyType_FieldSerializer.java as it does for > >>>>> all other serializable classes. > > >>>>> 2) In the "extra" / rpclog dir, the class MyType is flagged like this: > >>>>> Serialization status > >>>>> Not serializable > > >>>>> 3) And when I run my app, I get an "InvocationException" : the client > >>>>> is unable to make an RPC call with a parameter of type MyType. > > >>>>> Is it a bug in the compiler, or did I missed something about Class > >>>>> "serializability" ? > > >>>>> Thanks for your help > >>>>> Yves -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Class is not serializable ?
Hi, Serializable is an interface not a class. That's why it's not the list you mention. An interface has nothing to be serialized per se. You should let us know about your class MyType in order to better help. regards didier On Dec 14, 9:21 am, Paul Robinson wrote: > If you look at the Class.java that GWT uses to emulate the JVM's Class, > you'll see that it does not implement Serializable. > > On 13/12/10 22:19, yves wrote: > > > Hi, > > > I have a class defined in a way similar to this: > > > class MyType extends Serializable { > > > private Class aClass; > > > public MyType() {} > > > public void setClass(Class aClass) { > > this.aClass = aClass; > > } > > } > > > where MyGen is also Serializable > > > When I compile de project (I'am currently still using GWT 2.1.0 RC1), > > then I find the following : > > > 1) the compiler (using the compiler options -extra, -work and -gen) > > does not generate the code MyType_FieldSerializer.java as it does for > > all other serializable classes. > > > 2) In the "extra" / rpclog dir, the class MyType is flagged like this: > > Serialization status > > Not serializable > > > 3) And when I run my app, I get an "InvocationException" : the client > > is unable to make an RPC call with a parameter of type MyType. > > > Is it a bug in the compiler, or did I missed something about Class > > "serializability" ? > > > Thanks for your help > > Yves -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using external Jar in GWT project
Hi, The error message says it all: GWT transcodes Java to Javascript. So, instead of adding jar in classpath, you have to add the source of the library to your own source in order to have it transcoded by the GWT compiler. Warning though: GWT compiler has a limited support of Java Runtime. See the list at http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html. So, if your library using unemulated classes or methods, you'll have to find another equivalent library or change the one you want to use. regards didier On Dec 11, 11:08 pm, Çağdaş wrote: > Hi all; > > I'm new in GWT and i'm trying to use jena that is a semantic > framework. I added jena to libraries and also added to WEB-INF/lib. > But i can't use jena's features in project. It says > > "com.hp.hpl.jena.ontology.OntModel 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." > > I also added inheritance that required to .gwt.xml file as it says but > it is still unreachable. > > Any help will be valuable. > > Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: sending Polymorphic types from Server to GWT client
Hi, It's possible: did it several times. The key is to use GWT-RPC (instead of JSON, xml, etc..) in order to preserve all the Java structure between client and server. How ? a) You will define Foo, Bar, Baz in the "shared" folder of project structure so that they know on both sides b) you will define either 1 generic RPC query/request for the 3 object types (easy if you have a parent class on top of your 3 classes) or 1 RPC query/request per object type. c) GWTRPC will deliver those objects as Java objects (when you code) so you can use then "instance of". To make things simpler, you can even use the RequestFactory of GWT 2.1 Preserving Java semantics end-to-end is for me the best part of GWT: you can leverage the power of object hierarchies, interfaces, etc. in your front-end. The simplest way to achieve this is GWTRPC that allows transparent transport of objects between client and server. regards didier On Dec 10, 11:00 pm, zixzigma wrote: > I have three objects, that implement a base interface and reside on > the server. > > interface Base > class Foo implements Base > class Bar implements Base > class Baz implements Base > > I want to send them over the wire to GWT client. > > would GWT recognize the relationship they had ? > > I want to use them in CellTree: NodeInfo > and would like to do something like > > if (value instance of Foo) > /// > > if(value instance of Bar) > /// > > if(value instance of Baz) > /// > > is this possible ? > how ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: using Guava, CommonBeanUtils, Apache Commons in GWT
Hi, a) You need the source code so that GWT can translate it to JS -> should be no issue for open source libraries b) Those libraries have to restrict themselves to classes and methods of those classesemulated by GWT -> that's probably gonna be hard to respect for rich libraries. The emulated part of the JRE is defined here: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html If (b) can't be satisfied and you want anyway to stick to those libs, you have to use GWTRPC to make requests from your client to those libraries hosted on the server and then use RPC back for the results. The other way is to fork the libraries (if licence permits) to adapt them to the GWT emulation if possible. regards didier On Dec 10, 11:44 pm, zixzigma wrote: > is it possible to use third party Java utility libraries, such as > > -Guava > -Apache Commons/CommonBeanUtils > -Data Structure Algorithm libraries (for Graph/Tree algorithms:eg. > JUNG) > > in GWT ? > > I know that if they use Reflection it cannot be used, > > but for the ones I mentioned, > > and in general Utility Libraries/jars. > > is it possible ? > do they work ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Webtop development
Hi, GWT is probably the best choice if your competences in Java are already there and also if your backend system are written in Java because then you have the same core technology for front- and back-end and can leverage the great java tooling (junit, findbugs, etc.) for your front-end regards didier On Dec 10, 1:04 pm, csaffi wrote: > Hi everybody, > I would like to develop a webtop on which running desktop-like web > applications. What do you think is the best technology for this > purpose? GWT could help me? Is there any GWT Webtop demo? > > Thank you very much in advance for your help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: is GWT& GAE open Source?
Hi, Yes for GWT: http://code.google.com/webtoolkit/ For all details on GAE, see http://googleappengine.blogspot.com/2010/10/research-project-appscale-at-university.html. YOu can then get code at http://code.google.com/p/googleappengine/ didier On Dec 10, 11:07 am, Emanhossny wrote: > Hello All, > Is GWT & GAE is open source? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Db Connectivity
Hi, the exact list of classes that you can use is here: http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html Be careful though: some methods are supported and some not, the list above details it. regards didier On Dec 10, 6:39 am, aditya sanas <007aditya.b...@gmail.com> wrote: > Hi, > > The code you write in java gets converted into javascript this is what GWT > does so GWT works on client side > so there is some restriction on usage of classes and packages that u refer > in GWT code just like *java.sql. or java.io* > *these packages are not available on client side* > So to use these classes,GWT has provided server side where you can access > these classes so make ur connection on the server side do processing and > send result back to client. > Async calls would be helpful in this case. > > -- > Aditya > > On Fri, Dec 10, 2010 at 1:21 AM, Vindhya wrote: > > Hello Friends, > > > I am new to GWT and I am developing an application, - a form based > > one, to insert/delete/edit tuples in a set of tables. > > > I am facing problems with the connectivity to the database. > > > I kept getting an error: > > java.sql.Connection 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. > > > The code I wrote is as follows: > > > > > package com.company.rulesengine.client; > > > import java.sql.*; > > > import com.google.gwt.core.client.EntryPoint; > > import com.google.gwt.event.dom.client.ClickEvent; > > import com.google.gwt.event.dom.client.ClickHandler; > > import com.google.gwt.user.client.Window; > > import com.google.gwt.user.client.ui.Button; > > import com.google.gwt.user.client.ui.RootPanel; > > import com.google.gwt.user.client.ui.Label; > > import com.google.gwt.user.client.ui.TextBox; > > > /** > > * Entry point classes define onModuleLoad(). > > */ > > > public class RulesEngineUI implements EntryPoint { > > > public Connection conn= null; > > > RulesEngineUI() > > { > > //establishing a database connection > > > try > > { > > > Class.forName("oracle.jdbc.driver.OracleDriver").newInstance(); > > String url = "<>"; > > conn = DriverManager.getConnection(url, "SYSTEM", "vindhya"); > > // doTests(); > > System.out.println("DONE!"); > > conn.close(); > > } > > catch (Exception ex) {System.err.println(ex.getMessage());} > > > } > > private Button clickMeButton; > > public void onModuleLoad() > > { > > > RootPanel rootPanel = RootPanel.get(); > > > clickMeButton = new Button(); > > rootPanel.add(clickMeButton, 232, 236); > > clickMeButton.setText("Insert"); > > > Label lblEmployeeId = new Label("Employee ID"); > > rootPanel.add(lblEmployeeId, 30, 61); > > > Label lblName = new Label("Employee Name"); > > rootPanel.add(lblName, 26, 142); > > > TextBox textBox = new TextBox(); > > rootPanel.add(textBox, 233, 59); > > > TextBox textBox_1 = new TextBox(); > > rootPanel.add(textBox_1, 232, 142); > > clickMeButton.addClickHandler(new ClickHandler(){ > > public void onClick(ClickEvent event) { > > Window.alert("Hello, GWT World!"); > > } > > }); > > } > > } > > > > > Any help in this regard will be well appreciated. > > > Thank you, > > Vindhya > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Multiple Windows like a desktop
Hi, GWTM is under Apache 2.0, it means that you can take whatever you need in it and use it however you want without any obligation toward the original authors. So, why not download its source, take what you need (at least inspiration...) and proceed from there. regards didier On Dec 8, 8:16 am, Musicman75 wrote: > Thanks for your answers. > > As I said, I can't use any third party frameworks. > We use GWT 2.1 with UIBinder and Activities/Places. > That's why I have to implement this functionality by myself. > Additionally we don't want to have external dependencies because of > product support for our customers. > > I only need a small demo/diagram or a simple demo project to check out > how I can implement it in a simple way. > > Regards > Steff > > On 7 Dez., 18:05, Didier Durand wrote: > > > Hi, > > > Check outhttp://www.gwtwindowmanager.org/:it'sdoing what you want. > > > regards > > didier > > > On Dec 7, 2:37 pm, Musicman75 wrote: > > > > Hello, > > > > is there a small example how to create a desktop like screen with > > > multiple windows (resizing, minimize, maximize), add, show, hide > > > windows available? > > > > I can't use any framework which implements that feature. > > > > I tried to understand the sticky example from the GWT example page, > > > but I think it could be an easier way to show how to implement such a > > > feature. > > > > Thanks for help. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Multiple Windows like a desktop
Hi, Check out http://www.gwtwindowmanager.org/: it's doing what you want. regards didier On Dec 7, 2:37 pm, Musicman75 wrote: > Hello, > > is there a small example how to create a desktop like screen with > multiple windows (resizing, minimize, maximize), add, show, hide > windows available? > > I can't use any framework which implements that feature. > > I tried to understand the sticky example from the GWT example page, > but I think it could be an easier way to show how to implement such a > feature. > > Thanks for help. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: add gwt to existing Java project
Hi, GWT works very well with servlets: you can use the GWT-RPC to transfer objects back and forth between front- and back-end without going through JSON and the like. You can then transfer complex object structures / collections between both sides. Is your back-end server servlet-oriented? Anyway, GWT is a very good choice for front-end when back-end is also java: you enjoy then a great technological homogeneity between both sides and can also leverage the great java tooling (findbugs, junit, etc.) for your front-end regards didier On Dec 7, 2:48 pm, Andrew Balakhanov wrote: > Hello. > Could you please help me. I have a Java project (server part) and now > I am going to write client part on GWT. I build my project via ANT. > Can you please help me, how shlould I add GWT to my project, and then > to build it ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC in separate module
Hi, Everything you need is detailed here: http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html On Dec 7, 11:06 am, coelho wrote: > Hello > > I'm trying to bild a small application using RPC to acces SQL data > ( jdbc ) > > It works no problem so far > > I'd like this application to use modules , so that the code could be > reused in others > > so I'd like to put the SQL parts in a separate module > > and the question is : > > How do You declare a servlet that is not in the main module > ( application) > > or am I missing something ? ( probably) > > Thanks for reading > > Patrick -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: what Mock framework do you recommend ?
Hi, Have you read this comparison http://jeantessier.com/SoftwareEngineering/Mocking.html ? May help in you choice didier On Dec 7, 8:24 am, metalhammer29a wrote: > Hello, > I was wondering, which Mock framework do you use in your GWT > development ? > What has been your experience ? > > I am thinking of using JMock. > what do you think of it ? > > have you used other frameworks such as Unitils ? > frameworks that build on top of Mocking frameworks, > and provide annotation support, among other things. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: help with stack trace
Hi, You should use "Output style = detailed" when translating to JS: your files will get much bigger but the source in js will be very easy to match with its java equivalent. Then by using firebug, you should spot where your issue is. regards didier On Dec 2, 5:34 pm, rjcarr wrote: > I've been using GWT for years (since around release 1.4) but I'm > having a problem with a stack trace I can't figure out. I develop on > a mac and primarily test with Safari and Firefox. My application has > worked in IE(8) in the past but in my most recent test it is failing > and I can't figure out why. Typically in the past when IE has failed > I'll open in dev mode (previously hosted mode) and then get the stack > trace but in this case the stack trace isn't pointing to any of my > code. > > The problem happens immediately when I open up my application in IE8. > Here's the complete stack trace: > > 00:02:02.218 [ERROR] Uncaught exception escaped > com.google.gwt.core.client.JavaScriptException: (TypeError): Object > doesn't support this property or method > number: -2146827850 > description: Object doesn't support this property or method > > at > com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: > 237) > at > com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: > 126) > at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: > 561) > at > com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: > 269) > at > com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: > 91) > at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at > com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: > 25) > at java.lang.reflect.Method.invoke(Method.java:597) > at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java: > 103) > at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java: > 71) > at > com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: > 157) > at > com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java: > 281) > at > com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: > 531) > at > com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: > 352) > at java.lang.Thread.run(Thread.java:662) > > Is there anything I'm missing? Does this indicate it must be coming > from JSNI? How do I track down where this is coming from? > > Maybe I could try unobfuscating the code and use firebug in IE8 (does > that even exist)? > > Thanks for the help! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practises in automatic test and deployment
Hi, Did you think about using Google App Engine for your unit testing: it's 1-click deploy (also possible via Ant Task) and no issue in provisioning hardware and software: Google does it for you. That what I do to be as fast as possible in my devs and tests. NB: sql is not usable on GAE but if you use appropriate Data Access Objects, it's a non issue. regards didier On Dec 1, 3:10 pm, Mark van Veen wrote: > Hi, > > I am using GWT now for half a year now and the project is growing and > growing. Now I am looking for some good tools which help me with > deploying my application automaticly in a tomcat test server and later > on the production server. For now I am doing this with the build > artifacts function of IntelliJ which is good but not what i am looking > for. > > I already found tools like maven and Hudson CI which could help me > with that. > > What I am still missing is a automatic way of generating war files > which are deployed on the test server(with different properties like > db connection and user) and after the commitment from the test team it > will deployed on the production server automaticly. Is there something > or can this handled by maven as well? Furhter i am looking for an > automatic way of running our sql files when they changed on the db > server before deploying the gwt application. > > I am not very familiar with these kind of tools so I thought it would > be a good idea to ask you guys as this should be a challenge for some > of you. > > Thanks a lot, > Mark -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Client File IO
Hi, Are you sure that you need to change the picture also ? The Same Origin Policy in the browser doesn't apply to tags. regards didier On Nov 28, 9:50 pm, khalid wrote: > Hello every one > I am working on a web-based proxy using GWT (similar to php proxy) > anyway , the idea is quite simple > Get the URL from the user , make the server fetch it , change the > HTML and send it back to the client > Now I have encountered a problem which is how to send the images back > to the client? > I have thought of two possible ways: > 1-Store them in the server and change their src to MyURL/img.xxx > 2-Send them back to the client > The first option will over load the server (I think?!) > The second option is not possible because as far as I know it is not > possible to do File IO in the client side , or is it? > I need your help > Thank you very much > ps: I think I will get a similar problem with flash , (e.g. flash > videos in youtube) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie question about external classes
Hi, You have to have the source code of your classes and let GWT translate them from Java to Javacript so that they can run in the browser. Caution: the jre emulation in GWT is limited -> see the list to check what your business classes can and cannot use. See http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html -> you may have to modify your business classes to comply with the list of emulated classes. regards didier On Nov 25, 9:38 am, xalien wrote: > hi all, I'm new of GWT and I apologize for my newbie question but I > never found a response... > I built a simple GWT application that show some data, the data > actually is hardcoded on my class. Is it possibile, from my gwt > class(EntryPoint), to use external business classes(stored in jar) to > extract and elaborate my data before show it on web page? Compiling I > receive the error "did you forget to inherit a required module?" but I > can't inerit my classes because they are not gwt classes... > Summarizing: is it possible in a GWT project using non GWT classes? > how? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: different Google Update Sites???
Hi, Yes, you can use them jointly. One point though: you have to be in synch in the dependencies: GWT Designer version may have requirements on a given version of GWT. So, be careful. It will probably get simpler over time as Google harmonizes the various products but some patience is needed, I guess. regards didier On Nov 26, 3:00 pm, Magnus wrote: > So can I mix these two update sites? Aren't there any dependencies? > > Magnus -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT port of CodeMirror
Hi Gaurav, Will start using it for some project of mine: I'll come back to you with feedback. regards didier On Nov 25, 6:25 am, Gaurav Vaish wrote: > Hi Guys, > > I've put up quick starter documentation > athttp://code.google.com/p/gcodemirror/wiki/GettingStarted > and javadoc > athttp://gcodemirror.googlecode.com/svn/trunk/src/CodeMirror/docs/javad... > > Let me know if that helps! > > (Thanks to Alain for forcing me do so ;) ) > > -- > Happy Hacking, > Gaurav Vaishhttp://www.mastergaurav.com > > On Nov 25, 8:34 am, Gaurav Vaish wrote: > > > Yes Alain... the "documentation" is in the "roadmap"... basically, I > > need to find some time to write it :) > > > May be a couple of days off. > > > -- > > Happy Hacking, > > Gaurav Vaishhttp://www.mastergaurav.com > > > On Nov 25, 2:40 am, nino ekambi wrote: > > > > Maybe you could write some getting started stuff in the wiki ? > > > > Cheers, > > > > Alain > > > > 2010/11/24 Gaurav Vaish > > > > > Great! > > > > btw, here's the direct URL: > > > >http://gcodemirror.googlecode.com/svn/trunk/src/CodeMirrorTest/war/Co... > > > > > -- > > > > Happy Hacking, > > > > Gaurav Vaish > > > >http://www.mastergaurav.com > > > > > On Nov 25, 2:20 am, nino ekambi wrote: > > > > > Good work pal, > > > > > i ll definetly check it out. > > > > > Regards, > > > > > Alain > > > > > > 2010/11/24 Gaurav Vaish > > > > > > > Hi Gang, > > > > > > > I am working on a GWT port of CodeMirror (http://codemirror.net). > > > > > > > The project is available at Google Code at > > > > > >http://code.google.com/p/gcodemirror. > > > > > > > Let me know if you find it useful. > > > > > > Critics, feedback welcome! :) > > > > > > > -- > > > > > > Happy Hacking, > > > > > > Gaurav Vaish > > > > > >http://www.mastergaurav.com > > > > > > > -- > > > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > > > "Google Web Toolkit" group. > > > > > > To post to this group, send email to > > > > google-web-tool...@googlegroups.com. > > > > > > To unsubscribe from this group, send email to > > > > > > google-web-toolkit+unsubscr...@googlegroups.com > > > > > > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google Web Toolkit" group. > > > > To post to this group, send email to > > > > google-web-tool...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-web-toolkit+unsubscr...@googlegroups.com > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: different Google Update Sites???
Hi, I see 2 reasons for this situation: 1) GWT Designer is a recent product for Google: see http://googlewebtoolkit.blogspot.com/2010/09/google-relaunches-instantiations.html -> integration not yet perfect 2) GWT Designer is an optional add-on clearly separated from the core of GWT: no need for tight integration regards didier On Nov 25, 2:57 pm, Magnus wrote: > Hi, > > I am using Eclipse 3.6 with the Google Plugin, which was installed > using the Google Update Site: > > http://dl.google.com/eclipse/plugin/3.6 > > Today I accidently found the GWT Designer on the GWT site, which > should be installed using a different Google Update Site: > > http://dl.google.com/eclipse/inst/d2gwt/latest/3.6 > > No I wonder if one can arbitrarily mix these update sites without > running into problems? > > How should one configure the Eclipse installation to get full GWT > support? Shouldn't there be only one Google Update Site? > > Please help! > > Magnus -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: (Spring?) JMS and GWT, or any other genuine message queue solution
Hi Niels, Are you working with GWT on Google App Engine If yes, Tasks may be what you need: see http://code.google.com/appengine/docs/java/taskqueue/overview.html regards didier On Nov 24, 3:05 pm, Baloe wrote: > Hi, > > Has anyone experience using JMS with GWT? We need something like that, > but the only thing I can find is some tests integrating Spring with > GWT. > > With or without JMS, we need to let some asynchronous processing take > place, preferrably taken after we put some work somewhere on a queue > and not worrying about threading or queueing. Any ideas? > > Thanks! > Niels -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with communication with server in GWT application
Hi, To receive better answers, can you publish the details of the Throwable that you get in the onFailure()? regards didier On Nov 24, 6:52 am, Yugal wrote: > Hi, > i am developing a simple GWT application in which i want to implement > a login module in GWT. after successful login it should goes to its > home page. in which i am having problem with communication with my > server implementation class. control in not going to server > implementation class. it is throwing onFailure() error. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ACL in GWT
Hi Baloe, You should definitely implement security in the back-end rather than in the front-end: you have to keep in mind that your back-end may be called by something else than your js code generated by GWT. You're then in bad shape if your back-end services accept any request without checking. So, make sure that the framworks / mechanisms that you use respect this. regards didier On Nov 24, 1:33 pm, ep wrote: > hi, you might want to take a look athttp://code.google.com/p/gwt-security/ > orhttp://code.google.com/p/acris/ > > On 24 Nov., 11:56, Baloe wrote: > > > Hi all, > > > I wonder what is the best way to put ACL in our GWT project. Is there > > any mechanism in GWT build-in to grand users to specific RPC calls, or > > something similar? Our should we just insert Spring Security > > somewhere? > > > Thanks for any hints! > > Niels > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Default value for @RemoteServiceRelativePath ?
Hi David, This is just an interface of mine indicating that the URL can refined: if the object is an instance, it supplies the sub-url to provide a more detailled url for the server log. regards didier On Nov 23, 4:34 pm, David Balažic wrote: > What is RpcRefinable ? > Google finds only this thread when searching for it. > > On Nov 23, 5:35 am, Didier Durand wrote: > > > Hi David, > > > You can achieve what you want by using ServiceDefTarget of GWT. > > > Here below some code snippet of mine dynamically creating a detailed > > url (instead of the basic one done by the annotation) to allow better > > monitoring: I put some info (object id, etc.) in the url to monitor > > more efficiently > > > So, check the ServiceDefTarget object in GWT dev kit: it will provide > > you what you need. > > > ServiceDefTarget def = > > (ServiceDefTarget)GWT.create(ServerObjectGetService.class);; > > String url = RELATIVE_URL + "/" + > > Util.getSimpleName(object.getClass()); > > if (object instanceof RpcRefinable) { > > url += "/" + ((RpcRefinable)object).getSubUrl();} > > > def.setServiceEntryPoint(url); > > > didier > > > On Nov 22, 9:02 pm, David Balažic wrote: > > > > Hi! > > > > would it be possible to have a default value for the > > > RemoteServiceRelativePath annotation? > > > Like the interface name? > > > > For example: > > > > @RemoteServiceRelativePath("StockPriceService") > > > public interface StockPriceService extends RemoteService { ... } > > > > could be written just as > > > > public interface StockPriceService extends RemoteService { ... } > > > > And "StockPriceService" would be the default name is there is no > > > annotation? > > > > Would save some typing for the developer. > > > > Regards, > > > David > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Default value for @RemoteServiceRelativePath ?
Hi David, You can achieve what you want by using ServiceDefTarget of GWT. Here below some code snippet of mine dynamically creating a detailed url (instead of the basic one done by the annotation) to allow better monitoring: I put some info (object id, etc.) in the url to monitor more efficiently So, check the ServiceDefTarget object in GWT dev kit: it will provide you what you need. ServiceDefTarget def = (ServiceDefTarget)GWT.create(ServerObjectGetService.class);; String url = RELATIVE_URL + "/" + Util.getSimpleName(object.getClass()); if (object instanceof RpcRefinable) { url += "/" + ((RpcRefinable)object).getSubUrl(); } def.setServiceEntryPoint(url); didier On Nov 22, 9:02 pm, David Balažic wrote: > Hi! > > would it be possible to have a default value for the > RemoteServiceRelativePath annotation? > Like the interface name? > > For example: > > @RemoteServiceRelativePath("StockPriceService") > public interface StockPriceService extends RemoteService { ... } > > could be written just as > > public interface StockPriceService extends RemoteService { ... } > > And "StockPriceService" would be the default name is there is no > annotation? > > Would save some typing for the developer. > > Regards, > David -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Web Security General questions
Hi, I would recommend the book "Ajax Security" by Billy Hoffmann regards didier On Nov 21, 6:17 pm, Brett Thomas wrote: > Id love to hear answers too. I try to listen to a great podcast every week, > Security Now -www.grc.com/securitynow > On Nov 21, 2010 11:20 AM, "Jeff Larsen" wrote:> I > realize that this isn't necessarily a GWT specific question, but I > > am curious as to what are some good resources for managing and > > maintaining secure web-apps, and specifically in a GWT environment. > > > I've read > > http://groups.google.com/group/Google-Web-Toolkit/web/security-for-gw... > > > but I was wondering what people have found to be some useful blogs/ > > resources for managing maintaining secure web applications and was > > hoping you'd be willing to share them here. > > > Thanks! > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group.> To post to this group, send email to > google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > .> For more options, visit this group at > > http://groups.google.com/group/google-web-toolkit?hl=en. > > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What should I learn , Google Web Toolkit or Jquery ?
Hi, My 2 cents: a) learning curve for GWT higher than JQuery b) You can't work efficiently with GWT if you don't master html, http, javascript anyway... c) GWT is great because you come back to compile mode: your code is correct much faster and you don't have to write lots of unit test to confirm that nothing wrong happens at run time when you change your app in the more risk env of an interpreted language (js) d) GWT is also great because you can leverage the best equipped language in terms of tooling: Java for unit tests (Junit), quality measurement (findbugs, pmd), code coverage (cobertura), profiling, etc e) with GWT, you don't deal with the broswer type at all (at least in theory...) so you code faster f) if back-end is java also, you face a single technology for the client and the server side -> more manageable and simpler to handle by a single person. But, I agree with what was said before: the ticket to entry is bigger. So, probably not suited to a small app. regards didier On Nov 19, 3:34 pm, massimo malvestio wrote: > In my opionion it depends on the complexity of your project. > If you have to write a webapp / site with a complex interface that it has to > be feeded with a large amount of data, or you want to reserve the capability > to scale, and you have a couple of weeks to study gwt, choose gwt. > If you have not time enough to learn gwt, or, you don't need to manage > complex data exchange between client and server but you want an eye candy > web gui, learn jquery, it's quite easy to learn and use and you got tons of > plugins ready to be used. > I use both of them anyway, because, in my opinion, they are complementary, > use the weapon more suitable for the size of your target :-P -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I truncate an image before upload
Hi, GWT translate Java to Javascript to run on the client side. This javascript is then in the usual sandbox preventing access to pc files: I would say that what you want to achieve is not possible because of this js architecture unless you go to very special tricks requiring additional component. See http://www.baconbutty.com/blog-entry.php?id=29 didier On Nov 19, 3:07 pm, Ice13ill wrote: > Is it possible to resize an image (thus creating an image with a > smaller size) using GWT? > Let's say i have a 5Mb picture, but before i upload it to the server i > want to automatically resize it to be smaller that 1Mb > How can i do 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Hosting
Hi You really should give a second chance to GAE: - space can go very high if you are willing to pay as you go - document upload is possible via BlobStore (I do it in one of my apps) - I would emphasize extremely detailled monitoring for which i know no equivalent by other hosters. Then, you will get scalability for free. The feature that is the most unsual at beginning: the datastore. You have to get used to its specifc constraints (bigtable, entity groups) regards didier On Nov 18, 5:49 pm, Isuru Madusanka <2eis...@gmail.com> wrote: > Hi, > > I have trouble with finding a good hosting service. I can try Google App > Engine. But my app need more space and allow users upload documents. I tried > a trial account with a reputed hosting company. But they are not good at > customer service. I am looking for a low-cost hosting. > > Do you guys have any suggestions? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT client-side thread or asynchronous call ?
Hi, Traditional javascript (to which gwt java gets converted) architecture is basically mono-thread in terms of real concurrent execution: so, gwt has to stay mono-thread also. The only possibility that I see to get muti-thread (in a standard manner) with JS is HTML5 bu to my knowledge GWT doesn't (yet) take advantage of the new html5 workers as described in http://www.ajaxwith.com/JavaScript-Worker-Threads.html I wonder if there is a roadmap to html5 workers for GWT. regards didier On Nov 18, 3:41 pm, MickeyR wrote: > Sorry, I probably was not clear. My entire story above is all > happening on the client-side. > So the search + display of results happens on the client, I'm not > making a RPC > to perform this. > > Currently I don't want to make any part of this server-side, so any > idea on how to > achieve this ? > > M. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Plans for GWT incubator
Hi John, The new jar that you point to here above still produces the same warnings as the older ones when using scrolling tables as listed below. Is it possible to produce a new version of this jar where the use of deprecated classes has been fixed ? regards didier [WARN] Warnings in 'jar:file:/home/didier/dev/java/jars/gwt- incubator-20101117-r1766.jar!/com/google/gwt/widgetideas/client/impl/ GlassPanelImpl.java' [WARN] Line 30: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl' [WARN] Line 38: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl' [WARN] Warnings in 'jar:file:/home/didier/dev/java/jars/gwt- incubator-20101117-r1766.jar!/com/google/gwt/widgetideas/table/client/ FixedWidthGridBulkRenderer.java' [WARN] Line 122: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [WARN] Warnings in 'jar:file:/home/didier/dev/java/jars/gwt- incubator-20101117-r1766.jar!/com/google/gwt/widgetideas/table/client/ GridBulkRenderer.java' [WARN] Line 102: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [WARN] Line 103: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.Grid' [WARN] Line 104: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.Grid' [WARN] Line 104: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' [WARN] Warnings in 'jar:file:/home/didier/dev/java/jars/gwt- incubator-20101117-r1766.jar!/com/google/gwt/widgetideas/table/client/ TableBulkRenderer.java' [WARN] Line 404: Referencing deprecated class 'com.google.gwt.widgetideas.table.client.overrides.HTMLTable' On Nov 18, 5:06 am, Didier Durand wrote: > Hi John, > > Very good news about the PagingScrollTable that I use heavily: glad to > know that it now has a clear future (under the new implementation) > > Also good to know that other widgets of incubator will be preserved > for now. > > regards > didier > > On Nov 17, 9:07 pm, Gal Dolber wrote: > > > Great news! > > > On Wed, Nov 17, 2010 at 3:57 PM, John LaBanca wrote: > > > *If you do not use the GWT incubator, you can ignore this email.* > > > > GWT Community - > > > > The plan for the GWT incubator is to replace PagingScrollTable with > > > Enterprise CellTable in GWT 2.2 (hopefully Q1 2011), then deprecate and > > > stop > > > supporting incubator for future GWT releases. Our hope is that we can > > > focus > > > on new widgets and features that improve and replace the incubator > > > widgets. > > > > Many of the Widgets and features implemented in incubator have already > > > been > > > moved to GWT trunk. The main exception is PagingScrollTable, which has > > > wide > > > use even as it is becoming outdated. We are working on an Enterprise > > > version of CellTable that will support all of the important features > > > PagingScrollTable such as inline scrolling, fixed width columns, column > > > resizing, and multiline headers. Combined with the speed of Cells, > > > Enterprise CellTable will have a cleaner API and better performance. > > > > There are still some features and Widgets in incubator, such as SliderBar > > > and ProgressBar, that we do not plan to move to GWT trunk immediately. As > > > we expand our Widget library, we will eventually add these to GWT. In the > > > meantime, we generally avoid making breaking changes that would cause > > > these > > > Incubator widgets (or any widgets) to stop working. > > > > You can download a version of GWT incubator that is compatible with GWT > > > 2.1.0 here: > > >http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?... > > > > Thanks, > > > John LaBanca > > > jlaba...@google.com > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-tool...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > >http://code.google.com/p/guit/ > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Plans for GWT incubator
Hi John, Very good news about the PagingScrollTable that I use heavily: glad to know that it now has a clear future (under the new implementation) Also good to know that other widgets of incubator will be preserved for now. regards didier On Nov 17, 9:07 pm, Gal Dolber wrote: > Great news! > > > > On Wed, Nov 17, 2010 at 3:57 PM, John LaBanca wrote: > > *If you do not use the GWT incubator, you can ignore this email.* > > > GWT Community - > > > The plan for the GWT incubator is to replace PagingScrollTable with > > Enterprise CellTable in GWT 2.2 (hopefully Q1 2011), then deprecate and stop > > supporting incubator for future GWT releases. Our hope is that we can focus > > on new widgets and features that improve and replace the incubator widgets. > > > Many of the Widgets and features implemented in incubator have already been > > moved to GWT trunk. The main exception is PagingScrollTable, which has wide > > use even as it is becoming outdated. We are working on an Enterprise > > version of CellTable that will support all of the important features > > PagingScrollTable such as inline scrolling, fixed width columns, column > > resizing, and multiline headers. Combined with the speed of Cells, > > Enterprise CellTable will have a cleaner API and better performance. > > > There are still some features and Widgets in incubator, such as SliderBar > > and ProgressBar, that we do not plan to move to GWT trunk immediately. As > > we expand our Widget library, we will eventually add these to GWT. In the > > meantime, we generally avoid making breaking changes that would cause these > > Incubator widgets (or any widgets) to stop working. > > > You can download a version of GWT incubator that is compatible with GWT > > 2.1.0 here: > >http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?... > > > Thanks, > > John LaBanca > > jlaba...@google.com > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Guit: Elegant, beautiful, modular and *production ready* gwt applications. > > http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Developing Google Docs like Feature
Hi AgitoM, If your document isn't too sophisticated, you could maybe represent it as a cell (or a couple of cells) of Google Spreadsheet and then use the Spreadsheet API to leverage its sharing capabilities. See http://code.google.com/apis/spreadsheets/ regards didier On Nov 17, 10:20 am, AgitoM wrote: > For the project I am working on, I need to develop a Google Docs like > feature since we should support collaborative document editing. I > already have a mechanism based on Comet that can synchronize data, but > I need to be able to update a text onscreen based on what is being > keyed in on the client, and what is coming in through from the server. > > Currently I'm using a rich text area, problem with that is though when > a update comes in, the cursor moved back to the top left corner, or > when people are editing on the same line, all people share the same > cursor, which results in all user effectively overwriting each other. > > Any other widget I can use, or any way I can integrate Google Docs in > the platform I'm developing? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with Google App Engine
Hi, Think I understand now: you want to use the class on client side (i.e. within he browser) and you did put it in the client directory. Right ? Then, GWT wants to compile it to Javascript. At this point,2 solutions: a) either you provide the source of the class or b) you inherit the javascript from a module compiled by somebody else. I think none is possible in your case: you'll have to find another design without your Swing class: tell us what your purpose is and we may help. regards didier On Nov 16, 10:36 pm, Shawn Brown wrote: > > What is the error? > > Are you sure javax.swing.* is supported in GWT? > > Shawn -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: class [class name] is not presented in JRE Emulation library so it cannot be used in client code
Hi Yacov, The list of jre classes supported / emulated by GWT is here (be careful: some methods are missing in some cases): http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html For the rest, you either have to provide the source code limited to the use of emulated classes or inherits from other GWT-compiled modules using same rules. Hope it helps regards didier On Nov 15, 7:03 pm, Yacov Schondorf wrote: > I have a Swing application which I want to convert to GWT. I am using > IntelliJ IDE and have already done a few tutorials successfully. I > added a GWT module and created a service in the client package. I am > trying to define a method in the service that uses a class from the > Swing application. However, I am getting the following inspection > error: > > "'class [class name] is not presented in JRE Emulation library so it > cannot be used in client code" > > Is there any procedure I need to follow in order to use classes > external to the GWT module? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with Google App Engine
Hi Sebastian, Yes, when you use GWT in conjonction with Tomcat or any other app engine that you control, you can use whatever you want / need on the backend. Question: did you give the last devs between Spring and App Engine a chance ? See http://java.dzone.com/articles/creating-application-using?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+javalobby/frontpage+%28Javalobby+/+Java+Zone%29 regards didier On Nov 15, 9:09 am, Sebastian Hob wrote: > Dear fellow GWT programmers, > > I would like to make a call to a java class that utilizes > javax.swing.event.EventlistenerList as a private member. The call > should be made from within the greetServer method in the > GreetingServiceImpl class. > > Unfortunately, I get an error on the line of the > javax.swing.event.EventlistenerList with the added information that > this class is not supported by Google App Engine's Java Runtime > Environment. > > Is it possible to replace the Google App Engine JRE with a full JRE > when deploying to Tomcat? > > Thanks so much in advance! > > Sebastian -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Calling RPC
Depending on your requirements, you could also use some iframe mechamisms to have panels of the 2 applications on the same screen. It makes then inter-app communication a bit harder but possible. regards didier On Nov 15, 12:50 pm, Raju wrote: > Hi, > > I am new to GWT and had a requirement. > I have two applications running on two different servers. > And i need to make an asynchronous call from one application to the > other. > Is it possible to call the Remote Procedure of one application running > on a different server from a different application running on a > different server? > > If so please let me know. > > Thanks in advance. > > Raju -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: google plugin error
Hi, For more info on WebAppCreator, see http://code.google.com/webtoolkit/doc/1.6/tutorial/create.html If you want help about your issue, I guess that you have to post your java stack trace at time of error regards didier On Nov 15, 8:40 am, Frank Bølviken wrote: > Any ideas? > > On 13 Nov, 08:43, Frank Bølviken wrote: > > > Hello, > > > When I try to create a project with the plugin in eclipse, I get an > > "invocation of com.Google.gwt...WebAppCreator failed". Anyone know > > what this mean? On my win 7 64bit laptop its working, but not my win 7 > > 64bit desktop. > > > Frank > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dynamic module loading (not deferred binding)
Hi, Wouldn't code splitting at least be part of your answer: see http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html regards didier On Nov 12, 12:14 pm, "Johan P." wrote: > Hi. > > I'm working on a hack of the GWT compiler enabling to dynamically load > Module compiled separately. > I don't speak of deferred binding capacities which need to compile all > code in the same process. > > What I have in mind is to dynamically load modules written by other > developers compiled at different time. > This module will be include by simply load the generated javascript. > > Schematically it's will work like this : > - When compiling the main code, the compiler will export a file which > trace the binding between full item name and obfuscated item name. > (this part is already existing) > - When compiling the dynamic module code, the compiler will use the > previous table to assign the same names. > (this part is to do) > > The main start point in GWT compiler code it's this method : > com.google.gwt.dev.jjs.JavaToJavaScriptCompiler::compilePermutation > > If someone have some advices ... > Does some of you know this part of the code ? ... in case of technical > questions. > > Johan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Class not supported by Google App Engine's Java Runtime Environment
Hi Sebastian, Here below is the white list of classes supported by Google App Engine (not GWT - as per your title): if you have code on your server side that references other classes than those, then you will get the message that you have. http://code.google.com/appengine/docs/java/jrewhitelist.html That means that you mentionned that you wanted to run the backend on App Engine when you created your project. regards didier On Nov 12, 5:32 pm, David Chandler wrote: > Sebastian, > > Have you added anything to the GreetingServiceImpl? The app that gets > auto-created by the New Application Wizard in Google Plugin for > Eclipse runs just fine on App Engine, as do GWT apps in general. > > On Thu, Nov 11, 2010 at 3:48 AM, Sebastian Hoberg > > > > wrote: > > Hello, > > > trying to execute Java code in the greetServer Method of the > > GreetingServiceImpl class on the server side I got the above mentioned > > warning. This would mean that some of the classes used in the code are > > not supported by GWT? Wht can I do? Choose another Webframework like > > Struts? > > > Thanks for comments and hints! > > > Sebastian > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > David Chandler > Developer Programs Engineer, Google Web > Toolkithttp://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Junit blows up in HTMLunit
Hi, Does your test case extends GWTTestCase: see http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html#DevGuideJUnitCreation for all details regards didier On Nov 11, 5:59 pm, darkling wrote: > I'm trying to build some unit tests for a GWT application. > > I'm using GWT 2.2, SmartGWT 1.6, JUNIT 4.5 (I also tried JUNIT 3.8), > Tomcat 6, and Netbeans 6.9.1. > > What happens is that I'll try to run my tests and the test will crash > hard with the following exception: > > Exception in thread "htmlUnit client thread" > java.lang.NoSuchMethodError: > org.apache.commons.httpclient.HttpClient.(Lorg/apache/commons/ > httpclient/HttpConnectionManager;)V > at > com.gargoylesoftware.htmlunit.HttpWebConnection.createHttpClient(HttpWebConnection.java: > 394) > at > com.gargoylesoftware.htmlunit.HttpWebConnection.getHttpClient(HttpWebConnection.java: > 352) > at > com.gargoylesoftware.htmlunit.HttpWebConnection.getResponse(HttpWebConnection.java: > 94) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponseFromWebConnection(WebClient.java: > 1397) > at > com.gargoylesoftware.htmlunit.WebClient.loadWebResponse(WebClient.java: > 1331) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:293) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:354) > at > com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:339) > at com.google.gwt.junit.RunStyleHtmlUnit > $HtmlUnitThread.run(RunStyleHtmlUnit.java:100) > > I realize that NoSuchMethodError is almost invariably caused by > classpath or classloader issues and have been trying to dissect that > but without success. I can only find one copy of htmlunit on my > runtime classpath (it's in GWT-user.jar) and I'm not really sure where > else to look for causes of this problem. > Do I need to add GWT jars to Tomcat or something for my unit tests to > work? > Has anyone run into this problem before? I can't figure out how I can > solve it. Any suggestions or strategies would be most appreciated. > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to diagnose IE8 javascript error "stack overflow at line: 0"? ends up in Impl.entry0
Hi Brian, I don't have exact figures but what I know is that some structures (Java collections) needs tons of Javascript stack entries to get serialized / deserialized: knowing that , our strategy is to carry single objects or arrays (even of hetegeneous objects) on the wire and reconstruct the more complex structures either on client or server side. regards didier On Nov 8, 8:14 pm, BrianP wrote: > It looks like this is the case - a large/complex object over RPC > causing the problem. I commented out that call to the server, and the > component loaded fine. So the next question is: how do you know your > objects are too large for RPC? Where is the threshhold? > > On Nov 8, 10:40 am, BrianP wrote: > > > Thanks for your reply. That is interesting. For a long time, I thought > > it was due to my use of the Raphael-gwt library. But now I've removed > > that, and still get the error. And I _am_ bringing back some large > > and complex objects via RPC, so I'll look into that. > > > On Nov 6, 3:50 am, Didier DURAND wrote: > > > > Hi, > > > > I don't know enough about your appl but we had similar issues: that > > > was due to complex data structures that we were bringing back to the > > > client from the server over the GWT RPC -> we had to simplify the > > > structures (carrying simple arrays of objects rather than complex > > > graphs over RPC) in order to avoid the stack overflow caused by GWT- > > > RPC serialization/deserialization. > > > > You may have a look in that direction too. > > > Hope it helps. > > > didier > > > > On Nov 5, 8:22 pm, BrianP wrote: > > > > > I have a GWT 2.0.3 app that runs fine in Firefox and Chrome. But when > > > > run in IE8 I get a javascript error that pops up with 'Stack over flow > > > > at line: 0'. When stepping through it in debug mode, I end up in GWT > > > > class Impl in the method entry0(Object jsFunction, Object thisObj, > > > > Object arguments). I was hoping to find more information by looking > > > > at those variables in debug mode, but they didn't really tell me > > > > anything other than its a JavaScriptException, which I already knew. > > > > > Any recommendation on how I might get more information on this error? > > > > It seems similar to the error in this thread: > > > > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > > > One response there mentions adding an UncaughtExceptionHandler there > > > > to the main EntryPoint class. Would that help? > > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + JDO (GAE)
Hi, Also agree about Objectify: use it with great satisfaction. didier On Nov 7, 11:46 am, Shawn Brown wrote: > Hi, > > > I've been using JDO these weeks. I've followed the tutorial at GAE > > Docs, and I learned how to create and get entity objects. > > It just my opinion based on struggling with JDO that objectify is much > easier to use. Much much much easier. > > http://code.google.com/p/objectify-appengine/ > > Shawn -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + JDO (GAE)
Hi Caio, You should post this in Google App Engine group: better chance for responses. regards didier On Nov 7, 2:42 am, Caio wrote: > Hello, guys. > > I've been using JDO these weeks. I've followed the tutorial at GAE > Docs, and I learned how to create and get entity objects. > > I've created a class 'User' for my system. This class has the > attributes username(String), password(String), isOnline(boolean) and > score(int). > > I've succeeded at updating the isOnline attribute, but when I tried to > update the score attribute, I've failed. The return value of the > setter is always true, but the score value is not updated. Could you > give any help? > > @Override > > public boolean setScore(String userName, int increment) { > > PersistenceManager pm = PMF.get().getPersistenceManager(); > > Transaction tx = pm.currentTransaction(); > > User user; > > boolean returnValue; > > try { > > tx.begin(); > > user = pm.getObjectById(User.class, userName); > > //--detaching-attaching > > pm.makePersistent(user); > > User auxUser = (User) pm.detachCopy(user); > > auxUser.setScore(increment); > > pm.makePersistent(auxUser); > > returnValue = true; > > tx.commit(); > > //--detaching-attaching > > } catch (NullPointerException ex) { > > returnValue = false; > > } catch (JDOObjectNotFoundException ex) { > > user = null; > > returnValue = false; > > } finally { > > if (tx.isActive()) { > > tx.rollback(); > > } > > pm.close(); > > } > > return returnValue; -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to diagnose IE8 javascript error "stack overflow at line: 0"? ends up in Impl.entry0
Hi, I don't know enough about your appl but we had similar issues: that was due to complex data structures that we were bringing back to the client from the server over the GWT RPC -> we had to simplify the structures (carrying simple arrays of objects rather than complex graphs over RPC) in order to avoid the stack overflow caused by GWT- RPC serialization/deserialization. You may have a look in that direction too. Hope it helps. didier On Nov 5, 8:22 pm, BrianP wrote: > I have a GWT 2.0.3 app that runs fine in Firefox and Chrome. But when > run in IE8 I get a javascript error that pops up with 'Stack over flow > at line: 0'. When stepping through it in debug mode, I end up in GWT > class Impl in the method entry0(Object jsFunction, Object thisObj, > Object arguments). I was hoping to find more information by looking > at those variables in debug mode, but they didn't really tell me > anything other than its a JavaScriptException, which I already knew. > > Any recommendation on how I might get more information on this error? > It seems similar to the error in this thread: > > http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > One response there mentions adding an UncaughtExceptionHandler there > to the main EntryPoint class. Would that help? > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Error in generating report
Hi Bruno, Remove the flush(): your duty is to fill up the stream with the content to deliver . Later on, the servlet handler to which you give the response (incl the stream) back will flush it back to the browser. regards didier On Nov 5, 8:01 pm, Bruno Santos wrote: > I'm trying to generate a report using JaperReports, but when I click > generate the following error appears in eclipse: > > [WARN] /seringueira/resumosafra > java.lang.RuntimeException: Unable to report failure > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doUnexpectedFailure(AbstractRemoteServiceServlet.java:107) > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:67) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at > org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:324) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) > Caused by: java.io.IOException: Closed > at > org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:627) > at > org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:587) > at > com.google.gwt.user.server.rpc.RPCServletUtils.writeResponse(RPCServletUtils.java:330) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.writeResponse(RemoteServiceServlet.java:352) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:251) > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) > ... 19 more > > In class Impl I use the following: > > if(bytes != null && bytes.length > 0) { > getThreadLocalResponse().setContentType("application/pdf"); > getThreadLocalResponse().setContentLength(bytes.length); > try { > ServletOutputStream ouputStream = > getThreadLocalResponse().getOutputStream(); > ouputStream.write(bytes, 0, bytes.length); > ouputStream.flush(); > ouputStream.close(); > } catch(Exception ex) { > ex.getMessage(); > } > > } > > Does anyone have any idea what I might be 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Testing GWT?
Hi, I would recommed 2 steps: - using GWTTestCase included in GWT itself: http://code.google.com/webtoolkit/doc/latest/tutorial/JUnit.html. Very useful for the developper - If you need to run external tests totally independent from dev env, I would then go with Selenium. More to be used by some QA team. I use personally both according to my needs regards didier On Nov 4, 2:06 pm, g_korland wrote: > Can you recommend a testing tool for testing GWT web app? > > Thanks, > Guy -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Database data and GWT applications
Hi Owen, Did you also install the Google App Engine part of Google SDK on your Eclipse? Then running and debugging a database-oriented application gets easy and efficient: the SDK has a Jetty (i.e Tomcat-like) in it. So, you can fully test locally and test deploy as easily on App Engine infrastructure. So, give a try to the full package and come back if any question: I really find the combination GAE + GWT highly powerful for large scale and at the same time very efficient to develop + debug on a single machine regards didier On Nov 3, 6:20 pm, OS wrote: > Hello, > > This is my first posting here so I'm sorry if all this has been > covered before. > > I've come to GWT from a J2EE background. I though GWT would be a great > way of combining data mining at the backend with a nice UI at the > front. However, I've fallen over at the first hurdle. Apparently GWT > will not permit database connections with the Google App Engine. Ok, > that's pants, but I'll move over to TomCat. But this is not as easy as > it sounds either. There is no Deploy action available and I'm not a > server admin. The instructions I've found on the web appear complex > and to top it all it seems I'm going to loose debugging features. > > Have I missed the point about GWT? is it not really intended for > database driven applications?! What exactly is it for? After all, the > database and server root are on the same Intranet server and security > is pretty tight. Is it that the GAE is just not up to the job right > now but it will be coming. > > Is there an easy way of using TomCat and keeping the debugging > ability? I can deploy the application / WAR to TomCat but I can't even > figure out how to get the GWT Eclipse plugin to launch it from the new > server, let alone debug the application! > > If Eclipse won't do this then I might as well go back to doing this > long hand in NetBeans!! > > Help > > Thanks, > Owen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Image Update Memory Leak
Hi, IE8 is known for memory leaks with images (resizing, etc.) example: http://stackoverflow.com/questions/803150/can-someone-verify-that-this-is-an-ie8-memory-leak didier On Nov 1, 7:06 pm, hermis wrote: > Hello, > > I have written a simple application which fills a FlexTable with a set > of images. There is a timer which updates the URL of each image every > second. The URL points to a Servlet which in turn generates a random > PNG image on its doGet() method and writes it to the response output > stream. The servlet sets the "Cache-Control" header to "No-Cache". > > When I run the webapp in IE7 / 8 the memory gradually increases. > Leaving it overnight can get it close to 1Gb. > > Here is the client code: > > # > > public class LeakyApp implements EntryPoint > { > public static final String IMAGE_SERVLET_NAME = "imageServlet"; > > public void onModuleLoad() > { > leak(); > } > > private void leak() > { > UrlBuilder urlBuilder = createUrlBuilder(); > > final FlexTable table = new FlexTable(); > > final List lstImages = createAndAddImages(5,10 ,table > ); > > final String strURL = urlBuilder.buildString(); > > final Timer timer = new Timer(){ > > int nCounter = 0; > > @Override > public void run() > { > for (Image img : lstImages) > { > img.setUrl( strURL + "?" + > nCounter++) ; > } > } > }; > > final Button btnStartLeak = new Button("Leak"); > btnStartLeak.addClickHandler( new ClickHandler() > { > @Override > public void onClick(ClickEvent event) > { > RootPanel.get().remove( btnStartLeak ); > RootPanel.get().add( table ); > timer.scheduleRepeating( 1000 ); > } > }); > > RootPanel.get().add( btnStartLeak ); > } > > private List createAndAddImages(int rowCount, int colCount, > FlexTable table) > { > List lstImages = new ArrayList(); > > for(int row = 0; row { > for(int col = 0; col { > Image image = new Image(); > lstImages.add( image ); > table.setWidget(row, col, image); > } > } > > return lstImages; > } > > private UrlBuilder createUrlBuilder() > { > UrlBuilder urlBuilder = null; > > if( GWT.isScript() ) > { > urlBuilder = new UrlBuilder(); > urlBuilder.setHost( Window.Location.getHost() ); > urlBuilder.setPath( Window.Location.getPath() + > IMAGE_SERVLET_NAME ); > } > else > { > urlBuilder = Window.Location.createUrlBuilder(); > urlBuilder.setPath( IMAGE_SERVLET_NAME ); > } > > return urlBuilder; > } > > } > > > > Here is the servlet code: > > > > public class ImageServlet extends HttpServlet > { > private int nCounter = 0; > private Font font = new Font("Tahoma", Font.BOLD, 10); > > private static Color getRandomColor() > { > int r = (int)(Math.random()* 255); > int g = (int)(Math.random()* 255); > int b = (int)(Math.random()* 255); > > return new Color(r,g,b); > } > > @Override > protected void doGet ( HttpServletRequest request, > HttpServletResponse response ) throws IOException > { > > OutputStream out = response.getOutputStream(); > > response.setContentType("image/png"); > response.addHeader("Pragma", "no-cache"); > response.addHeader("Cache-Control", "no-cache"); > > ImageIO.write( generateRandomImage(), "png", out ); > > out.close(); > } > > private BufferedImage generateRandomImage() > { > return generateRandomImage(80, 80); > } > > private BufferedImage generateRandomImage(int width, int height) > { > BufferedImage image = new BufferedImage(width, height, > BufferedImage.TYPE_INT_ARGB); > > Graphics2D g2d = image.createGraphics(); > g2d.setFont( font ); > g2d.setColor( get
Re: Porting existing JS pages to GWT
Hi Adam, GWT's Javascript Native Interface (JSNI) is what you need see http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=DevGuideJavaScriptNativeInterface regards didier On Nov 2, 6:54 am, adam_j_bradley wrote: > I have some JS code which currently uses some pixel tracking images to > determine if a user is logged in (or not). The code is fairly simple > - Retrieve the image, if its 1x1 direct the user to a login page > otherwise refresh the page > > I was wondering how I might either go about: > - Integrating the existing JS libraries into a GWT application > - Make calls to my GWT-RPC AppEngine GWT server application from JS > directly > > Thanks in advance! > > Sincerely, > Adam -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is Serializable compulsary for RPC
Hi, Yes, IsSerializable or java.io.Serializable are compulsory see http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#Does_the_GWT_RPC_system_support_the_use_of_java.io.Serializable regards didier On Nov 2, 12:36 pm, jayalakshmi jahagirdar wrote: > hello all, > Iam trying to pass a object of the class from server to client using RPC > mechanism.And the class which am using is a nested class.In which i have > properties of dashboard. > The class is not implementing Serializable interface.Is it necessary to > implement the Serializable interface? > Iam getting the following error: > > SEVERE: Exception while dispatching incoming RPC call > com.google.gwt.user.client.rpc.SerializationException: > java.lang.reflect.InvocationTargetException > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:760) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:723) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:612) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter$ValueWriter$8.write(ServerSerializationStreamWriter.java:152) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:534) > at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:609) > at > com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess(RPC.java:467) > at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:564) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188) > at > com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224) > at > com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) > at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) > at > org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861) > at > org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579) > at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584) > at java.lang.Thread.run(Thread.java:619) > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java:742) > ... 25 more > Caused by: com.google.gwt.user.client.rpc.SerializationException: Type > 'com.mycompany.project.server.Dashboard' was not included in the set of > types which can be serialized by this SerializationPolicy or its Class > object could not be loaded. For security purposes, this type will not be > serialized.: instance = com.mycompany.project.server.dashbo...@10ffb38 > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:610) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:129) > at > com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java:43) > at > com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java:36) > ... 30 more > > Or is there any other way by which i can implement it.(eg requestbuilder ) > > Plz guide me. > Regards > Jayalakshmi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To pos
Re: newbie: looking for very simple chat like thing
Hi Ray, I can suggest the IM service (xmpp) of Google App Engine: see http://code.google.com/appengine/docs/java/xmpp/overview.html You gain scalability for free. regards didier On Nov 2, 12:55 am, Ray Tayek wrote: > hi, i have this web app that needs to keep an connection open for > server side push. the messages are short (< 128 characters) and > fairly infrequent. > > i have googled and found comet, > websockets,http://www.google.com/events/io/2010/sessions/building-real-time-apps..., > bosh, and a chat athttp://code.google.com/p/gwt-eclipsecon-chat/ > > i will at most have a few clients. they will send a few messages. > each message will be processed and a response sent to all clients. > > seems like hacking the eclipsecon thing might work. maybe someone > knows of something a bit more simple? > > thanks > > --- > co-chairhttp://ocjug.org/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: newbie - basic questions
Hi Ray, To answer your second question, I would suggest using Google App Engine in addition to GWT: you can deploy right away to GAE (with no infrastructure on your own) after your local test with 127.0..0.1 tests. If you use GAE, then the sdk of GAE will also allow you to run your app directly with no need for tomcat (they've jetty included in the sdk) regards didier On Nov 2, 1:01 am, Ray Tayek wrote: > hi, i have a simple gwt app workng. > > can i run the app after compiling it in/from eclispe or do i have to > deploy it to tomcat? > > is there a way to do that from the command line (i only see > webAppCreator.cmd and benchmarkViewer.cmd in my gwt download). > > if i am running in dev mode in eclipse > (http://127.0.0.1:/Chattr.html?gwt.codesvr=127.0.0.1:9997), is > there a way to use a similar url from another compute? > > thanks > > --- > co-chairhttp://ocjug.org/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Serializing Enum with Marker Interface
Hi Mike, Probably an issue in the location of the various classes: can you tell us the packages that they belong to ? didier On Oct 29, 11:23 pm, Mike wrote: > I tried changing the line to: > > public enum Color implements IsConfigurable, Serializable > > and I'm still getting the same compile error. > > Thanks! > Mike > > On Oct 29, 3:57 pm, Patrick Tucker wrote: > > > The enum itself can implement Serializable > > > On Oct 29, 2:41 pm, Mike wrote: > > > > How can I make an enum that implements a marker interface serializable > > > in GWT 2.0? > > > > The below example: > > > > public interface IsConfigurable > > > { > > > > } > > > > public enum Color implements IsConfigurable > > > { > > > BLUE, > > > RED; > > > > } > > > > Results in the following: > > > [java] Compiling module com.colors > > > [java] Validating newly compiled units > > > [java] [ERROR] Errors in 'file:...Color.java' > > > [java] [ERROR] Line 7: The import ...IsConfigurable > > > cannot be resolved > > > [java] [ERROR] Line 12: IsConfigurable cannot be > > > resolved to a type > > > [java] Compiling 6 permutations > > > ... > > > > Thanks! > > > Mike -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to load a module dynamic? Pluggable module
Hi, Code splitting should help you toward your target See http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html didier On Oct 27, 5:14 pm, kendeng9898 wrote: > I want to build up an application with a pluggable function. This > application is base on gwt 2.0.3 and jboss seam 2.1.2. > > This is what I want the application load the plug. > > - Serverside have a monitor checking a plugins-upload folder > - When It find a validate plugin in plugins-upload folder > - Generate a plug-in javascript > - When reload the client side app, it will check the plug_in.js > - Load the plug_in.js's plug-in list into a plug-in manager page > - in plug-in manager switch on the plug-in > - load the plug-in(a gwt module), get ready to listen the event > > a plug-in is another gwt module > > But it seems gwt cannot load any unknown module on the runtime. > Any body have this experience or any idea how to implement it? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt maps
Hi Blaze, The quota for geocoding limits with Google Maps is described here: http://code.google.com/apis/maps/faq.html#geocoder_limit regards didier On Oct 25, 12:10 am, Blaze wrote: > Hi all, > > I have two questions related to gwt maps api: > > 1. I use gwt maps api and the maps(the images) are looking not up to > date with the one on the maps.google site > I know that the gwt api is a v2 and the latest is v3 and it dosent > have all the futures...but to have a diff maps(images) that i dont get > it?! Because i think that by mine logic dosnt meter what is the api > version at the end the maps are the same(the images)... > > 2. I want to use a reverse geocoding and it works for a couple of > calls but my need is to be able to make reverse geocode for maybe > 50-100locations(latlng) so is there a way to do this?! or I have to > use a gis for this?! > > regards > B -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can i reduce this first time app loading time by using GWT deferred binding ?
Hi abhijeet, You should read http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html You'll find there what you need. didier On Oct 22, 9:52 am, abhijeet wrote: > We have product, who's front end is in GWT. As it contains many > classes (Around 150 menus, you can imagine now) > > When user access this first time, it takes time to load. (If > bandwidth is low then this increases) > > next time on wards it remains in catch, we dont have to worry about > bandwidth. > > Can i reduce this first time app loading time by using GWT deferred > binding ? > > (please dont mind my information of GWT if anything wrong, i am very > new to it ) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: about compilation of java.util even when not included
Hi JavaUtil may be included because 1 of the gwt components that you use (HTML, RootPanel, etc.) may need id. To figure it out, you should compile with GWT in detailled mode, then find out the name of js code for java.util and search it throughout the entire code of your application to see where it is used didier On Oct 21, 8:34 pm, Sachin Dole wrote: > Hello, > > I have a very simple app that i have written solely to learn and understand > the compilation results of a gwt compile. in this app, I have one module, > that simply inserts a new HTML("HelloWorld") in the RootPanel. It does not > call any service. However, there is an RPC servlet which has one method with > signature public String[] getArrayListOfStrings(); No collections or Lists > or anything from java.util is being used. However, in the soyc report i > clearly see java.util being one of the packages that is being compiled. > within that package, all collections such as Hashmap, abstracthashmap, > arraylists and such are being compiled. I dont have any reference to any of > those in my app. So, why does soyc report it as being compiled? > > Thanks! > Sachin -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Client Vs Server and Google app engine
Hi, I would also advise you to give a try to Objectify: I abandonned jdo for it. Very efficient and much simpler! Concerning your issue, Objectify works great: its annotations go through via GWT and you can use same class on client and server. See http://code.google.com/p/objectify-appengine/wiki/ObjectifyWithGWT didier On Oct 19, 9:25 am, Michel Uncini wrote: > Hello everybody > > I'm developing a GWT project. > I have two packets one .client and the other .server > in my .gwt.xml I specified only the .client packet because in > the .server I use google app engine. > Let consider the class "Company" which has to be stored in the > database I can't use it in the .client packet because it "use > com.google.appengine" and is impossible to inherit right? > So the only way if I want have a similar class in the .client packet > is to create a new class similar to "Company" but without appengine > fields?? > > Thank you! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: update a single widget lead to the whole page refresh?
Hi Jason, Did you check for any traffic with the server (via a Firefox plugin like Firebug or equiv) Do you see requests from client to server ? regards didier On Oct 19, 11:20 am, Jason wrote: > Any idea? Many Thanks! > > On Oct 14, 4:46 am, Jason wrote: > > > Hi All, > > I am debugging a GWT application which is very slow. I tried to > > isloate the problem and get below result: > > > A simple panel with a label and a flextable. > > The label is updated with current time every 300 ms. > > The flextable is filled with static data but never update. > > > When the flextable become bigger, the cpu usage increase > > significantly. > > For example, with 3600 grids, the cpu usage is 9.9% > > with 36000 grids, the cpu usage is 80%. > > > If I stop the label updating, the cpu usage is zero. > > > I dont understand why the size of the flextable will affect the cpu > > usage. It should only consume time when create. After creation is > > complete, it should take no cpu resource at all. > > > Does it means updating the label will lead to the flextable refresh > > too? > > > GWT version: 2.0.3 > > Browser: Firefox > > CPU: ARM, 400Mhz -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Panel getAbsoluteTop or Left
Hi Daniel; Did you get this issue on various browsers ? Chrome, FF, IE I have similar issues with sizes on Webkit-based browsers. didier On Oct 14, 2:02 pm, daniela iervolino wrote: > Hi! > Can someone help me? > I want to get the positions of the objects in my window. For widgets > like images there are no problems, because getAbsoluteLeft() and > getAbsoluteTop() make it well. But for panel or table the values of > this function are always 0... > And I don't know why > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: linux + development mode
It works here in Ubuntu 32bit 10.04 Do you use 64 bits ? I have read about some issues with 64 bits didier On Oct 9, 2:18 pm, Racka wrote: > Hi all, > > i'm using arch linux and my browser is firefox (and blackbox as window > manager, no desktop manager at all). When i try to start a hosted mode > session, my browser asks for the development plugin, which I allow to > install. But when i restart my browser everything remains the same. It > asks for the plugin. What can be a problem? I've heard that maybe I > should recompile and make the .xpi file myself. But no luck yet... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hook up HTML with GWT
Hi Il Lupo, I guess that you want to replicate what is usually done in js but you want to do it natively in Java: the way to go is to use com.google.gwt.dom.client.Node (or Element) If you know the html id of your element, then you can get it and start iterating over its children to reach them as needed all in Java: check the doc above. regards didier On Oct 11, 10:18 pm, Il Lupo wrote: > Thanks for the replies but I am not sure I can do much with those, > though I may not be looking at things the right way. > Let me try to explain a bit better (hopefully). > RootPanel.get(String id) returns you a RootPanel for the element with > t } he given id. That only works for certain "top level" elements. > So in the example below if I did this > > > > and I do > RootPanel ul = RootPanel.get("menu"); > I get back the block as a RootPanel. > However it does not appear there is anything I can do with it. > If I enumerate the children there are none. In other words the > elements are not created in the "java universe". > I can reach the nodes in the dom Element space but I am not sure > I can do much with them then (I need to hook up an event handlers at > the very least). > > So overall the question is about what is doable with static HTML in > GWT. It's clear you can do everything with dynamic code. But if I have > a bunch of static HTML that I want to leverage where is the line? What > is that shows up in some form in the "java" object model (for lack of > a better word) and how much can be done with static HTML. > > Thanks for the feedback > > On Oct 11, 12:37 pm, Jim Douglas wrote: > > > Or look at this: > > >http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g... > > > On Oct 11, 10:20 am, Jeff Chimene wrote: > > > > On 10/11/2010 09:30 AM, Il Lupo wrote: > > > > > I have been searching around for this with no luck so I decided to > > > > post the question hoping to get a quick and straight answer. > > > > Is there a way to hook up GWT java methods/classes to straight HTML? > > > > I can see a way to do it with DIVs (retrieval via id) but cannot find > > > > a way to do it on other HTML tags. > > > > Example: > > > > say I have a menu implemented with CSS and the following HTML snippet > > > > > ... > > > > > > > > One > > > > Two > > > > Three > > > > > > > > ... > > > > I want to run GWT code (some method in some java class) when the user > > > > clicks on one of the anchors. > > > > Is there a way to do it? > > > > > Or as an alternative, if I define some / gropus in an html > > > > file, is there a way to "surface" that in GWT? (by surface I mean a > > > > way to retrieve it with code and operate on it). > > > > The first place to > > > start:http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI... > > > > then > > > > > ... > > > > > > > > One > > > > Two > > > > > > > > ... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Datastor issues - persistent POJOs
Hi Will, I developped some mechanism based on reflection API to qutomatically do gets from Objectfiy pojo and sets to client pojo when going from server to client and gets from client pojo to sets of server pojo when going from client to server. This avoids me typing all this code and making errors (forgetting props; etc.) regards didier On Oct 8, 11:12 pm, Will wrote: > Hi Guys, > > [i had started with cloning client/server types so i think i'll try > and get this version working before refactoring to use objectify] > > I was just wondering (Didier), when retrieving from datastores, how do > you normally deal with casting/converting your returned datastore > objects to the client side type.. > > e.g. > 1. client makes call to get all employees > 2. server retrieves all persistent Employees from Datastore . > > 3. would you convert returned objects to the GWT friendly type on the > server before returning them to the client? > > Thanks, > > On Oct 8, 8:51 pm, William Shatner wrote: > > > Many thanks for the replies lads... > > > On Fri, Oct 8, 2010 at 18:17, David Chandler (Google) < > > > drfibona...@google.com> wrote: > > > Have a look at GILEAD for JPA / JDO on App Engine: > > >http://turbomanage.wordpress.com/2009/10/15/gwt-gae-and-the-balm-of-g... > > > > Also, Objectify-appengine provides emulation for Key and related > > > classes so that POJOs can be used with GWT. > > >http://code.google.com/p/objectify-appengine/ > > > > HTH, > > > -- > > > David Chandler > > > Developer Programs Engineer, Google Web Toolkit > > > Atlanta, GA USA > > > > On Oct 7, 3:19 pm, Will wrote: > > > > Hi, > > > > > I'm constructing a POJO (Employee) on teh client side and trying to > > > > make persistent in teh datastore. > > > > So that both client and sever can see this class i place it in the / > > > > shared folder and annotate the object as suggested by tutorials for > > > > persistence... > > > > > @PersistenceCapable > > > > public class Employee { > > > > @PrimaryKey > > > > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > > > > private Key key; > > > > > etc. > > > > > The problem as some of you are probably predicting is GWT (not Java) > > > > throws an exception and cannot import com.google.appengine when it > > > > tries to import the Key. > > > > > the import com.google.appengine cannot be resolved > > > > > I've seen various hacks and solutions around this issue in this > > > > group, on forums and on blogs...none of which are too pretty... > > > > > from super-src hack to maintaining client and server object clones.. > > > > (double classes) and so on... > > > > e.ghttp:// > > > fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jd... > > > > > Does this issue still require a 'hacky' solution or is there a more > > > > elegant solution available now? > > > > > Thanks... > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google Web Toolkit" group. > > > To post to this group, send email to google-web-tool...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-web-toolkit+unsubscr...@googlegroups.com > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Datastor issues - persistent POJOs
I personally use the clone technique: i.e a simple pojo with no annotation. You may later on face a second issue with your annotated objects if their methods use server side specific objects or methods: the emulated part of JRE in gwt is fairly small: see doc. so, separating client and server sides is probably better on the long run. didier On Oct 7, 9:19 pm, Will wrote: > Hi, > > I'm constructing a POJO (Employee) on teh client side and trying to > make persistent in teh datastore. > So that both client and sever can see this class i place it in the / > shared folder and annotate the object as suggested by tutorials for > persistence... > > @PersistenceCapable > public class Employee { > @PrimaryKey > @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) > private Key key; > > etc. > > The problem as some of you are probably predicting is GWT (not Java) > throws an exception and cannot import com.google.appengine when it > tries to import the Key. > > the import com.google.appengine cannot be resolved > > I've seen various hacks and solutions around this issue in this > group, on forums and on blogs...none of which are too pretty... > > from super-src hack to maintaining client and server object clones.. > (double classes) and so on... > e.ghttp://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jd... > > Does this issue still require a 'hacky' solution or is there a more > elegant solution available now? > > Thanks... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help for testing GWT.UncaughtExceptionHandler within a JUnit GWTTestCase
Hello, To improve the coverage of my automated tests, I'd like to test my own GWT.UncaughtExceptionHandler within a GWTTestCase to see if it functions correctly. I can't do it for now: the JUnit test always fails. Can you help me an let me know what's wrong in my code below ? (I tried to use an asynchronous test to make sure that I am going through the ExceptionHandler) thanks didier public class TestExceptionHandler extends GWTTestCase { public void testWithHandler() { ExceptionHandler handler = new ExceptionHandler(GWT.getUncaughtExceptionHandler()); GWT.setUncaughtExceptionHandler(handler); this.delayTestFinish(1000); throw new ClientException("test"); } private class ExceptionHandler implements GWT.UncaughtExceptionHandler { private GWT.UncaughtExceptionHandler handler; public ExceptionHandler(GWT.UncaughtExceptionHandler h) { this.handler = h; } @Override public void onUncaughtException(Throwable e) { System.out.println("Exception handler called!"); TestExceptionHandler.this.finishTest(); this.handler.onUncaughtException(e); } } @Override public String getModuleName() { return "MyModule"; } } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: AppEngine Users Service with GWT will always reload page/module upon login
Hi, can't you store this text in a cookie so that you get it back after reload ? (I would even say you that you can push this cookie back/down to the client browser via some rpc form of you choice in order to place it in the browser cache before reload happens) regards didier On Oct 5, 1:56 pm, Shedokan wrote: > Maybe instead try asking the person to login before enabling him the > option to write a message? > > On Oct 3, 12:31 pm, Haris wrote: > > > Using Users Service, after filling up login and password and press OK, > > onModuleLoad is executed. Basically the gwt module is reloaded. I am > > going to loose data entry stuff form the user. > > > For instant if someone is typing a forum post and click submit only to > > discover that login already timeout. The person relogin using User API > > login page > > only to discover that the text typed is lost because of this. > > > Any suggestion? > > > Regards, > > Haris -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Using GWT Maps for Proximity Search..
Hello, You have to use Places API - see http://code.google.com/apis/maps/documentation/places/ Not yet part of the Java version of Google Maps Api but you can access it via JSON On Oct 1, 7:22 pm, mic wrote: > Can I use GWT Maps API for proximity searches? > > Find all restaurants within 25 miles of a zipcode? > > Thanks, > mic -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Access Bean (POJO) classes at Client Side
Hi, A class is transcoded by default when either in "client" or shared. So, you're ok on this side. Would you provide some details (code snippets) about what you try to achieve to be able to better understand ? didier On Oct 1, 2:35 pm, Parth wrote: > Hi, > > I put that class in "client". But, I don't have any idea, what will > happen when any class be put in "shared". > > Thanks. > > On Oct 1, 11:30 am, Didier DURAND wrote: > > > Hi, > > > Did you place it in package name "shared" so that it gets transcoded > > to js ? > > didier > > > On Oct 1, 6:23 am, Parth wrote: > > > > Hi all, > > > > I am using GWT 2.0.4. I am not able to use user defined instance of > > > class defined even at client side. I am able to access data using JSON > > > object with JSNI at client side. But not found any way to pass object > > > of user defined class such as Bean class at client side in EntryPoint > > > class. I had also tried it by implementing serializable interface to > > > the class which I want at EntryPoint. But not got intended result. > > > > Do any one have idea about that? > > > > Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Accessing class annotations on client side ?
Hi Y2i, Thanks for this pointer: I'll check it. regards didier On Oct 1, 8:42 am, Y2i wrote: > There is a projecthttp://gwtreflection.sourceforge.net/that attempts > to provide reflection on the client side, but it only seems to support > Java 1.4 reflection API which does not have annotations. > > On Sep 30, 11:28 pm, Didier DURAND wrote: > > > Hi there, > > > the GWT compiler will not complain on annotations. But, I would like > > to check them on client side in Javascript. > > > On server side, I usually use getAnnotations() from Class. But > > current JRE emulation by GWT does not provide getAnnotations() > > although it provide the Annotation class. > > > So, my question: how can I check on client side if a given annotation > > is present or not ? > > > Thanks in advance ! > > > didier -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Developing RIAs with GWT
Hi Noor, If you really want to demonstrate the capabilities of GWT, you have to include images & graphics with various layers on top of each other. Else you will end up using the GWT in their plain (although sophisticated) form: we developped for our company such an application (e-tearsheeting for newspapers based on full-page images with overlays - positionned with 1px precision) on top of the newspaper page delineating the ads and coloring them if they were ok or not according to the initial order). That was quite a challenge and would have been very hard without gwt I can send you some screenshots so that you can better see what I means around this graphical complexity with overlays . Let me know where to send them didier On Oct 1, 10:46 am, Noor wrote: > Hi to all of you, I am a university student. For my dissertation I > need to create an application using GWT. I want to create a very > complex internet application to demonstrate the strength of GWT > compared to other rich internet application framework. Can u give some > what type of application can i develop?? > > My idea is a complex bidding > system. > > Can u share some ideas with me on this topic?? > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Access Bean (POJO) classes at Client Side
Hi, Did you place it in package name "shared" so that it gets transcoded to js ? didier On Oct 1, 6:23 am, Parth wrote: > Hi all, > > I am using GWT 2.0.4. I am not able to use user defined instance of > class defined even at client side. I am able to access data using JSON > object with JSNI at client side. But not found any way to pass object > of user defined class such as Bean class at client side in EntryPoint > class. I had also tried it by implementing serializable interface to > the class which I want at EntryPoint. But not got intended result. > > Do any one have idea about that? > > Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Accessing class annotations on client side ?
Hi there, the GWT compiler will not complain on annotations. But, I would like to check them on client side in Javascript. On server side, I usually use getAnnotations() from Class. But current JRE emulation by GWT does not provide getAnnotations() although it provide the Annotation class. So, my question: how can I check on client side if a given annotation is present or not ? Thanks in advance ! didier -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: not able to build project in eclipse
It's not only a question of having long names: I had this problem when I had many classes in the directory parsed by Datanucleus enhancer (even if I had only a few that were JDO-enabled) I ended up removing * wildcard in project properties and specifying the classes to jdo-enhance 1 by 1: the problem was solved. Good luck didier On Sep 30, 8:14 am, Vik wrote: > yes it is using... somewhere people said that long names on windows might > cause this. but i dont think mine > are really long. > > Thankx and Regards > > Vik > Founderwww.sakshum.comwww.sakshum.blogspot.com > > On Thu, Sep 30, 2010 at 9:13 AM, Didier DURAND wrote: > > > Hi, > > > Is your project also using JDO for Google App Engine ? If yes, this > > may come from the class enrichment process made the GAE plugin under > > Eclipse. > > > Seehttp://code.google.com/p/googleappengine/issues/detail?id=1970 > > > regards > > didier > > > On Sep 29, 6:47 pm, Vik wrote: > > > Hie > > > > seeing following exception > > > > Cannot run program "D:\eclipse\jre\bin\javaw.exe" (in directory > > > "D:\eclipse\vskumar\workspace\SakshumWebApps"): CreateProcess error=87, > > The > > > parameter is incorrect > > > > any help please... > > > > Thankx and Regards > > > > Vik > > > Founderwww.sakshum.comwww.sakshum.blogspot.com > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to this group, send email to google-web-tool...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-web-toolkit+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: not able to build project in eclipse
Hi, Is your project also using JDO for Google App Engine ? If yes, this may come from the class enrichment process made the GAE plugin under Eclipse. See http://code.google.com/p/googleappengine/issues/detail?id=1970 regards didier On Sep 29, 6:47 pm, Vik wrote: > Hie > > seeing following exception > > Cannot run program "D:\eclipse\jre\bin\javaw.exe" (in directory > "D:\eclipse\vskumar\workspace\SakshumWebApps"): CreateProcess error=87, The > parameter is incorrect > > any help please... > > Thankx and Regards > > Vik > Founderwww.sakshum.comwww.sakshum.blogspot.com -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Having problems with GWT and RMI for client-server communication
Hi, I think that you're having a Google App Engine Problem rather than a GWT problem: the class that you mention is not the white list of Google App Engine. Hence the exception. http://code.google.com/appengine/docs/java/jrewhitelist.html If your plan is not to run you app on Google App Engine but on a regular java server, than the issue comes from the setup of your project (uner Eclipse) where you probably ticked the GAE box when defining it, then Eclipse included the gae environment. Hope it helps regards didier On Sep 29, 3:54 pm, "christophe.jour...@stambia.com" wrote: > Hi, > > I'm having a problem with GWT and RMI. > > I'm trying to make this kind of application : (GWT Client)<->(GWT > RPC)<->(GWT Server)<->(RMI)<->(external server) > > I know that I can't use RMI in the client side code but I do not > understand why i'm having troubles on the server side code. > The application compile correctly but it makes an error message when > trying to do RMI request : > "java.rmi.Naming is a restricted class. Please see the Google App > Engine developer's guide for more details." > > I have read lots of messages that say it is possible to use RMI and > GWT like I want to, but I have also read lot of messages that say it > is not possible. > > So my question is, how to make RMI requests working on the client side > code ? > > Christophe. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Datastore
Hi Trevor, I would suggest giving also a try to Objectify which a layer on top of raw Datastore: it makes access to data much easier and has a lower learning curve than JDO. See http://code.google.com/p/objectify-appengine/ (have a special look at wiki pages) I moved away from JDO for Objectify and I am very satisfied with it. didier On Sep 24, 5:17 pm, David Chandler wrote: > You can use any of GWT's client / server protocols to connect to a > servlet running on App Engine that in turn calls the Datastore. See > the App Engine docs and forum for Datastore questions. The following > links may help on the GWT side: > > http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html > > http://code.google.com/p/gwt-dispatch/ > > http://turbomanage.wordpress.com/2009/10/07/calling-appengine-securel... > > HTH, > /dmc > > On Sep 24, 5:30 am, trevor wrote: > > > Having trouble in finding how to use Datastore or BigTable in GWT. > > > I have developed using Python and usd datastore. > > > Where should I look -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: can't find my GWT version
Hi, the static method getVersion() on class GWT (so GWT.getVersion()) gives it programmatically. So, if you put your jars alternatively in your classpath, you will find the version of each of them didier On Sep 23, 9:31 pm, Viktoriya Sokolova wrote: > Hi. > > I have a few GWT jars I am using, but I cannot find what version of > GWT it is. I looked at the manifest files, but they are all for > apache. I do not have or need GWT plugin for eclipse installed, I am > compiling via ant in regular Eclipse Galileo. The jars have been at > location when I got there. > > Please let me know how to find GWT version. > > Thank you -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Modify files in .jar libraries
HI Daniela, would you explain while you need to do this "special occasion" king of thing? regards didier On Sep 23, 10:30 am, Daniela Iervolino wrote: > Hi everyone! > Does anyone know how modifing files from .jar libraries? > I've tried to modify some files from a library (for example, gwt- > user.jar, from Eclipse and from gedit) but it doesn't save anything!! > Can someone help me? > > P.S. I'm on Ubuntu Linux! > > Thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT - javascript result is not encoding correctly!
Hi Rodrigo, Do you work with Eclipse, if yes verify File > Properties > Resources > Text file encoding This property has to be set to UTF-8. regards didier On Sep 23, 2:38 am, Rodrigo Teixo wrote: > Hi all. > > I have made a simple module and a html with UTF-8 enconding. > > The javascript result page did not encode the dinamic result in the > same way. > > Look this code fragment: > > public void onModuleLoad() { > > stocksFlexTable.setHTML(0, 0, "Cor"); > stocksFlexTable.setHTML(0, 1, "Matéria"); > stocksFlexTable.setHTML(0, 2, "Excluir"); > ... > ... > ... > > The result page of this dinamic result is: > > Cor Mat ria Excluir > > Someone help please.. How to solve this problem??? > > Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Why is getOffsetWidth/getOffsetHeight returning 0 even after onLoad is called for LayoutPanel children?
Did you check if you have the issue on all browsers: I have it on Webkit based browsers (Safari + Chrome) but not on IE and FF. didier On Sep 22, 12:43 am, Damon Lundin wrote: > On Sep 21, 5:21 pm, Gal Dolber wrote: > > > try with onAttach() > > The method onLoad is called by onAttach so overiding onAttach won't > change anything not to mention the fact that the doc for onAttach says > "It is strongly recommended that you override {...@link #onLoad()} or > {...@link #doAttachChildren()} instead of this method". > > On Sep 21, 5:35 pm, Thomas Broyer wrote: > > > How about implementing RequiresResize and doing the job in onResize()? > > That doesn't help because onResize isn't called automatically when the > widgets are initially constructed, only when a browser initiates a > resize event. However I have tried exactly what you suggest by > putting the code I am having trouble with in a RequiresResize.onResize > method and am calling that method in onLoad (so the sizing happens on > both resize and when the widget is initially created). The method > getOffsetWidth still returns 0. I also tried manually calling > onResize on the RootLayoutPanel at the end of my onModuleLoad with the > same result. Only a DeferredCommand seems to result in getOffsetWidth > not returning 0. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
"Duplicate case " on switch statement by GWT compiler
Hi everybody, I need to escape utf-8 to their html format. I use the function below and the gwt compiler to JS doesn't like it: it says "duplicate case" for all cases starting with and after the à a) Can somebody tell me what I am doing wrong ? b) Is there any better way (using official GWT code) to do it ? thanks didier public static final String escapeHTML(String s){ StringBuffer sb = new StringBuffer(); int n = s.length(); for (int i = 0; i < n; i++) { char c = s.charAt(i); switch (c) { case '<': sb.append("<"); break; case '>': sb.append(">"); break; case '&': sb.append("&"); break; case '"': sb.append("""); break; case 'à': sb.append("à"); break; case 'À': sb.append("À"); break; case 'â': sb.append("â"); break; case 'Â': sb.append("Â"); break; case 'ä': sb.append("ä"); break; case 'Ä': sb.append("Ä"); break; case 'å': sb.append("å"); break; case 'Å': sb.append("Å"); break; case 'æ': sb.append("æ"); break; case 'Æ': sb.append("Æ"); break; case 'ç': sb.append("ç"); break; case 'Ç': sb.append("Ç"); break; case 'é': sb.append("é"); break; case 'É': sb.append("É"); break; case 'è': sb.append("è"); break; case 'È': sb.append("È"); break; case 'ê': sb.append("ê"); break; case 'Ê': sb.append("Ê"); break; case 'ë': sb.append("ë"); break; case 'Ë': sb.append("Ë"); break; case 'ï': sb.append("ï"); break; case 'Ï': sb.append("Ï"); break; case 'ô': sb.append("ô"); break; case 'Ô': sb.append("Ô"); break; case 'ö': sb.append("ö"); break; case 'Ö': sb.append("Ö"); break; case 'ø': sb.append("ø"); break; case 'Ø': sb.append("Ø"); break; case 'ß': sb.append("ß"); break; case 'ù': sb.append("ù"); break; case 'Ù': sb.append("Ù"); break; case 'û':