AutoBeanUtils.getAutoBean/ShimHandler.maybeWrap is causing JVM crash
We are suspecting that a notorious payload might be causing this crash. Yes, the JVM crashes after this exception. Following exception is picked up from the crash log: Environment: GWT 2.8.0 JDK 180_102 Jboss EAP 7 Re dhat Enterprise Linux OS Stack: [0x7f867d742000,0x7f867d843000], sp=0x7f867d840ab0, free space=1018k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) J 31252 C2 com.google.web.bindery.autobean.shared.AutoBeanUtils.getAutoBean(Ljava/lang/Object;)Lcom/google/web/bindery/autobean/shared/AutoBean; (21 bytes) @ 0x7f8b00782b0c [0x7f8b00782880+0x28c] J 37685 C2 com.google.web.bindery.autobean.vm.impl.ShimHandler.maybeWrap(Ljava/lang/Class;Ljava/lang/Object;)Ljava/lang/Object; (103 bytes) @ 0x7f8affd3f9ac [0x7f8affd3f960+0x4c] J 35743 C2 com.google.web.bindery.autobean.vm.impl.ShimHandler.invoke(Ljava/lang/Object;Ljava/lang/reflect/Method;[Ljava/lang/Object;)Ljava/lang/Object; (221 bytes) @ 0x7f8b01706ed8 [0x7f8b01706940+0x598] J 37720 C2 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$MapCoder.encode(Lcom/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl$EncodeState;Ljava/lang/Object;)V (360 bytes) @ 0x7f8affd49ee0 [0x7f8affd49920+0x5c0] J 37750 C2 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyGetter.encodeProperty(Ljava/lang/String;Ljava/lang/Object;Lcom/google/web/bindery/autobean/shared/AutoBeanVisitor$PropertyContext;)V (93 bytes) @ 0x7f8b01e45b58 [0x7f8b01e455c0+0x598] J 39466 C2 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyGetter.visitReferenceProperty(Ljava/lang/String;Lcom/google/web/bindery/autobean/shared/AutoBean;Lcom/google/web/bindery/autobean/shared/AutoBeanVisitor$PropertyContext;)Z (18 bytes) @ 0x7f8affaa6da8 [0x7f8affaa6d40+0x68] J 35602 C2 com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(Lcom/google/web/bindery/autobean/shared/AutoBeanVisitor;Lcom/google/web/bindery/autobean/shared/impl/AbstractAutoBean$OneShotContext;)V (448 bytes) @ 0x7f8aff2050cc [0x7f8aff204600+0xacc] J 42352 C2 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$CollectionCoder.encode(Lcom/google/web/bindery/autobean/shared/impl/AutoBeanCodexImpl$EncodeState;Ljava/lang/Object;)V (109 bytes) @ 0x7f8b02af44c0 [0x7f8b02af4080+0x440] J 37750 C2 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyGetter.encodeProperty(Ljava/lang/String;Ljava/lang/Object;Lcom/google/web/bindery/autobean/shared/AutoBeanVisitor$PropertyContext;)V (93 bytes) @ 0x7f8b01e45b58 [0x7f8b01e455c0+0x598] J 39466 C2 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyGetter.visitReferenceProperty(Ljava/lang/String;Lcom/google/web/bindery/autobean/shared/AutoBean;Lcom/google/web/bindery/autobean/shared/AutoBeanVisitor$PropertyContext;)Z (18 bytes) @ 0x7f8affaa6da8 [0x7f8affaa6d40+0x68] J 35602 C2 com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(Lcom/google/web/bindery/autobean/shared/AutoBeanVisitor;Lcom/google/web/bindery/autobean/shared/impl/AbstractAutoBean$OneShotContext;)V (448 bytes) @ 0x7f8aff204fb4 [0x7f8aff204600+0x9b4] J 39707 C2 com.google.web.bindery.autobean.shared.AutoBeanCodex.encode(Lcom/google/web/bindery/autobean/shared/AutoBean;)Lcom/google/web/bindery/autobean/shared/Splittable; (40 bytes) @ 0x7f8b021fa89c [0x7f8b021fa000+0x89c] J 55999 C2 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V (315 bytes) @ 0x7f8b03a890c4 [0x7f8b03a884e0+0xbe4] J 47925 C2 javax.servlet.http.HttpServlet.service(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletResponse;)V (251 bytes) @ 0x7f8b01c2a6e0 [0x7f8b01c2a3e0+0x300] J 47728 C2 javax.servlet.http.HttpServlet.service(Ljavax/servlet/ServletRequest;Ljavax/servlet/ServletResponse;)V (125 bytes) @ 0x7f8affc45e54 [0x7f8affc45a40+0x414] J 47946 C2 io.undertow.servlet.handlers.ServletHandler.handleRequest(Lio/undertow/server/HttpServerExchange;)V (334 bytes) @ 0x7f8b01c41adc [0x7f8b01c417e0+0x2fc] Any pointers that will help us investigate this issue will be really appreciated. -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT 2.7.0 is here
Hi Daniel how to i convert my application which is in 2.3 version to 2.7 ? plz provide me some steps to convert the version to 2.7. On Thursday, 20 November 2014 16:29:06 UTC+5:30, Daniel Kurka wrote: Today we are excited to announce the GWT 2.7.0 release. Thanks to everyone who contributed to this release, especially our non-Google open source contributors. One major feature of this release is a new super fast compilation path in Super Dev mode that replaces the old dev mode. For a run-down of all changes since GWT 2.6.1, read the release notes http://www.gwtproject.org/release-notes.html#Release_Notes_2_7_0. The release is available for download here http://www.gwtproject.org/download.html or on maven central. If you find any issues with this release, please file a bug in our issue tracker. Daniel, on behalf of the GWT team at Google -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT 2.4.0 native drag and drop... does it *really* work with IE9?
we found that the drag and drop api is not usable at this point. There is not a single browser in which this api work as expected. I think the api is still in development and should not be used at this point, unless you require part of it to work with specific browser. On Jan 24, 11:44 am, Rori Stumpf r...@simplesmartads.com wrote: Following the example from Google I/O 2011 (youtube video), I wrote the following code which successfully implements drag and drop on Chrome, Firefox and Safari. But, of course, it does not work with IE9.. Here is the code... any obvious problems? What's up with GTW native drag and drop with IE9? Thanks in advance... (p.s. I'd prefer to stick with native rather than use a lib) public void onModuleLoad() { RootPanel.get(flow).add(dropLabel); RootPanel.get(flow-components).add(dragLabel); // Configure the draggable element dragLabel.getElement().setDraggable(Element.DRAGGABLE_TRUE); dragLabel.addDragStartHandler(new DragStartHandler() { @Override public void onDragStart(DragStartEvent event) { event.setData(text, drag-data); event.getDataTransfer().setDragImage(dragLabel.getElement(), 0, 0); } }); // Configure the drop target dropLabel.addDragOverHandler(new DragOverHandler() { @Override public void onDragOver(DragOverEvent event) { dropLabel.setText(Dragging Over); } }); dropLabel.addDragLeaveHandler(new DragLeaveHandler() { @Override public void onDragLeave(DragLeaveEvent event) { dropLabel.setText(Drop Here); } }); dropLabel.addDropHandler(new DropHandler() { @Override public void onDrop(DropEvent event) { Window.alert(Dropped!); } }); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin for Firefox 8
I got the file. works well! good job... keep it up. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/85mdDCq0NQIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin for Firefox 8
unfortunately fileswap.com is blocked here. Is there an alternate location from where I can download? I am looking for firefox plugin on 64bit/win7. Thanks, greatly appreciated! Rakesh Wagh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Z64C_ccmq5oJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle custom server side exceptions
forgot to mention this: public class MyRequestFactoryServlet extends RequestFactoryServlet { private static final long serialVersionUID = 1L; public MyRequestFactoryServlet() { this(new DefaultExceptionHandler(), new MyServiceLayerDecorator()); } public MyRequestFactoryServlet(ExceptionHandler exceptionHandler, ServiceLayerDecorator... serviceDecorators) { super(exceptionHandler, serviceDecorators); } } On Oct 18, 4:17 pm, rakesh wagh rake...@gmail.com wrote: also changed web.xml mapping of servlet class from servlet- classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/ servlet-class to servlet-classcom.test.server.MyRequestFactoryServlet/servlet-class On Oct 18, 4:15 pm, rakesh wagh rake...@gmail.com wrote: How I resolved this: public class MyServiceLayerDecorator extends ServiceLayerDecorator { public T extends Object java.util.Setjavax.validation.ConstraintViolationT validate(T domainObject) { SetConstraintViolation? set = new HashSetConstraintViolation?(); PathImpl path = PathImpl.createNewPath(name); ConstraintViolationT voilation = (ConstraintViolationT)new ConstraintViolationImplPerson(custom bean error, custom bean error, Person.class, (Person)domainObject, (Person)domainObject, ((Person)domainObject).getAddress(), path, null, ElementType.FIELD); SetConstraintViolationT voilations = super.validate(domainObject); voilations.add(voilation); return voilations; }; On Oct 18, 11:02 am, rakesh wagh rake...@gmail.com wrote: with that said, what is the right way to reconstruct server side business validations(ConstraintViolation) on client (so that they can be directly added to editor.setErrors(voilations))? Also, I didnt understand how to set a callback in Request (to catch server exception). At this point as you rightly noted I am using requestContext's fire/Receiver pair. Thanks On Oct 18, 4:35 am, Thomas Broyer t.bro...@gmail.com wrote: Validation in RequestFactory is done after the object graph has been reconstructed but before any service method is invoked. It's the only place where validation errors will lead to onConstraintViolations being called back on the client side (for all the Receivers attached to the RequestContext). When service method invocations are processed, each one can succeed or throw, independently of the others, and will cause the onSuccess or onFailure of the Receiver _for that particular invocation_ (the one passed to the to() or fire() method of Request –but not the fire() method of RequestContext!–) to be called back. FYI, the global Receiver's (the one passed to the fire() method of RequestContext) onFailure method is only called when the object graph cannot be reconstructed or serialized on the server-side; in that case, the onFailure of all Receivers is also called. In any other case (except onConstraintViolations), onSuccess will be called (even if all invocations failed). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to handle custom server side exceptions
Hi, I am using gwt's bean validation framework for error validation. I am trying to understand the mechanism to create custom ConstraintViolationImpl in my server's service code and send it over to client. Following is my code in persist() method: SetConstraintViolation? set = new HashSetConstraintViolation? (); PathImpl path = new PathImpl(); ConstraintDescriptor? descriptor = null; ConstraintViolationPerson violation = new ConstraintViolationImplPerson(custom bean error, custom bean error, Person.class, person, person, person.getAddress(), path.append(name), null, ElementType.FIELD); set.add(violation); throw new ConstraintViolationException(set); on persist, I expect onConstraintViolation() of Receiver to be triggered. However I get the callback in onSuccess. What am I doing wrong here? Any kind of help and/or reference greatly appreciated. Thanks, Rakesh Wagh -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle custom server side exceptions
with that said, what is the right way to reconstruct server side business validations(ConstraintViolation) on client (so that they can be directly added to editor.setErrors(voilations))? Also, I didnt understand how to set a callback in Request (to catch server exception). At this point as you rightly noted I am using requestContext's fire/Receiver pair. Thanks On Oct 18, 4:35 am, Thomas Broyer t.bro...@gmail.com wrote: Validation in RequestFactory is done after the object graph has been reconstructed but before any service method is invoked. It's the only place where validation errors will lead to onConstraintViolations being called back on the client side (for all the Receivers attached to the RequestContext). When service method invocations are processed, each one can succeed or throw, independently of the others, and will cause the onSuccess or onFailure of the Receiver _for that particular invocation_ (the one passed to the to() or fire() method of Request –but not the fire() method of RequestContext!–) to be called back. FYI, the global Receiver's (the one passed to the fire() method of RequestContext) onFailure method is only called when the object graph cannot be reconstructed or serialized on the server-side; in that case, the onFailure of all Receivers is also called. In any other case (except onConstraintViolations), onSuccess will be called (even if all invocations failed). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle custom server side exceptions
How I resolved this: public class MyServiceLayerDecorator extends ServiceLayerDecorator { public T extends Object java.util.Setjavax.validation.ConstraintViolationT validate(T domainObject) { SetConstraintViolation? set = new HashSetConstraintViolation? (); PathImpl path = PathImpl.createNewPath(name); ConstraintViolationT voilation = (ConstraintViolationT)new ConstraintViolationImplPerson(custom bean error, custom bean error, Person.class, (Person)domainObject, (Person)domainObject, ((Person)domainObject).getAddress(), path, null, ElementType.FIELD); SetConstraintViolationT voilations = super.validate(domainObject); voilations.add(voilation); return voilations; }; On Oct 18, 11:02 am, rakesh wagh rake...@gmail.com wrote: with that said, what is the right way to reconstruct server side business validations(ConstraintViolation) on client (so that they can be directly added to editor.setErrors(voilations))? Also, I didnt understand how to set a callback in Request (to catch server exception). At this point as you rightly noted I am using requestContext's fire/Receiver pair. Thanks On Oct 18, 4:35 am, Thomas Broyer t.bro...@gmail.com wrote: Validation in RequestFactory is done after the object graph has been reconstructed but before any service method is invoked. It's the only place where validation errors will lead to onConstraintViolations being called back on the client side (for all the Receivers attached to the RequestContext). When service method invocations are processed, each one can succeed or throw, independently of the others, and will cause the onSuccess or onFailure of the Receiver _for that particular invocation_ (the one passed to the to() or fire() method of Request –but not the fire() method of RequestContext!–) to be called back. FYI, the global Receiver's (the one passed to the fire() method of RequestContext) onFailure method is only called when the object graph cannot be reconstructed or serialized on the server-side; in that case, the onFailure of all Receivers is also called. In any other case (except onConstraintViolations), onSuccess will be called (even if all invocations failed). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle custom server side exceptions
also changed web.xml mapping of servlet class from servlet- classcom.google.web.bindery.requestfactory.server.RequestFactoryServlet/ servlet-class to servlet-classcom.test.server.MyRequestFactoryServlet/servlet-class On Oct 18, 4:15 pm, rakesh wagh rake...@gmail.com wrote: How I resolved this: public class MyServiceLayerDecorator extends ServiceLayerDecorator { public T extends Object java.util.Setjavax.validation.ConstraintViolationT validate(T domainObject) { SetConstraintViolation? set = new HashSetConstraintViolation?(); PathImpl path = PathImpl.createNewPath(name); ConstraintViolationT voilation = (ConstraintViolationT)new ConstraintViolationImplPerson(custom bean error, custom bean error, Person.class, (Person)domainObject, (Person)domainObject, ((Person)domainObject).getAddress(), path, null, ElementType.FIELD); SetConstraintViolationT voilations = super.validate(domainObject); voilations.add(voilation); return voilations; }; On Oct 18, 11:02 am, rakesh wagh rake...@gmail.com wrote: with that said, what is the right way to reconstruct server side business validations(ConstraintViolation) on client (so that they can be directly added to editor.setErrors(voilations))? Also, I didnt understand how to set a callback in Request (to catch server exception). At this point as you rightly noted I am using requestContext's fire/Receiver pair. Thanks On Oct 18, 4:35 am, Thomas Broyer t.bro...@gmail.com wrote: Validation in RequestFactory is done after the object graph has been reconstructed but before any service method is invoked. It's the only place where validation errors will lead to onConstraintViolations being called back on the client side (for all the Receivers attached to the RequestContext). When service method invocations are processed, each one can succeed or throw, independently of the others, and will cause the onSuccess or onFailure of the Receiver _for that particular invocation_ (the one passed to the to() or fire() method of Request –but not the fire() method of RequestContext!–) to be called back. FYI, the global Receiver's (the one passed to the fire() method of RequestContext) onFailure method is only called when the object graph cannot be reconstructed or serialized on the server-side; in that case, the onFailure of all Receivers is also called. In any other case (except onConstraintViolations), onSuccess will be called (even if all invocations failed). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Help designing app
Hi guys, I've read the docs and am itching to get started!! Still unsure about how to put the pieces together though. So lets say I'm building a site which sells products: 1. I have to display a list of products (divided into categories, each in their own 'pod'). 2. A basket that automatically updates as the customer selects products. What are the constituent parts I would need? I can see the initial 'drawing' of the screen and the 'pods' that would contains the products. Does the Product class have to be modelled twice? One for the front end and one for the server? Or is it a good practice to make it compatible with both? When the user selects a product (say the display of the product includes a checkbox), I need to update the product to show a tick in a checkbox (an image) and then update the basket. I don't want the basket to be tied directly to the onclick event of every product so I need to use the event bus concept? Not sure what the server calls would be in this situation though? Any help appreciated! Thanks R -- You received 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.
Questions about GWT suitability
Hi, knowing very little about GWT apart from the main headlines, I am considering using it for my upcoming projects. Others are criticizing this choice on 2 main points: 1. The application is not rich enough - the app is a shop where products are added to a basket and user details and payment details are captured. 2. Customizing the UI to the business requirements may not be possible. Does GWT constrain in any way how you style components? Thanks R -- You received 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: Announcing gwt4air 1.0
How would it be different from using say Mozilla Prism? Prism does not require anything special. Rakesh Wagh On Oct 31, 4:30 pm, nino ekambi jazzmatad...@googlemail.com wrote: Hello community, It s been a long way but i m proud to annouce the release of Gwt4Air 1.0 Gwt4Air will give you the the ability to turn your GWT apps in to desktop apps using adobe air. You can download the jar herehttp://code.google.com/p/gwt4air/. The first release is compatible with gxt 2.2, gwt 2.0 and adobe air 2. It includes the following features: 1) Access to the core AIR APi from GWT, you basically can do anything you would do in actionscript or javascript. 2) An adapter to make GXT(Ext-GWT) works inside the air application sandbox 3) A pdf module to read and write pdf files. 4) A google maps module, so you can produce maps even when your web client is offline 5) An adapter to male RPC and RequestBuilder calls possible with AIR. 6) A sample app with source code that shows some examples. One of the example is how you can export an GXT chart to pdf using gwt4air. The next releases will add more and more features(check out the roadmap) To get started you can check out the wiki page. I hope you guys are going to like this and provide some good feedbacks. For any question please feel free to contact me. best regards, Alain -- You received 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: Regarding google visualization(Annotated Timeline)
Hi, Thank You Nicky.I am new to Visualization.Can u plz tell me how to set the m_vpMainPanel width and height ... Regards, Rakesh. On Fri, Jul 16, 2010 at 2:58 PM, Nicky karajd...@gmail.com wrote: The error says it all. set m_vpMainPanel width and height explicitly. com.google.gwt.core.client.JavaScriptException: (Error): Container width is zero. Expecting a valid width. fileName: http://www.google.com/uds/api/visualization/1.0/e9f5bea2f5fcf88c5d872... lineNumber: 604 stack: Error(Container width is zero. Expecting a valid width.)@: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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Regarding google visualization(Annotated Timeline)
hi, I m Rakesh Kumar Gourineni. I m working on Annotated Timeline in google visualization. The error i got was given below. I searched in many forums for the solution.But i was unlucky. Please please try to look the source code which is at the bottom n plz try to figure out the problem. The source code is below package edu.msstate.gri.client; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.HorizontalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.Panel; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.visualization.client.AbstractDataTable; import com.google.gwt.visualization.client.VisualizationUtils; import com.google.gwt.visualization.client.DataTable; import com.google.gwt.visualization.client.Selection; import com.google.gwt.visualization.client.AbstractDataTable.ColumnType; import com.google.gwt.visualization.client.events.SelectHandler; import com.google.gwt.visualization.client.visualizations.PieChart; import com.google.gwt.visualization.client.visualizations.PieChart.Options;*/ import com.google.gwt.core.client.GWT; import com.google.gwt.user.client.ui.RootPanel; import com.google.gwt.visualization.client.events.SelectHandler; import com.google.gwt.visualization.client.VisualizationUtils; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.core.client.JavaScriptException; import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.visualization.client.DataTable; import com.google.gwt.visualization.client.Properties; import com.google.gwt.visualization.client.AbstractDataTable.ColumnType; import com.google.gwt.visualization.client.events.Handler; import com.google.gwt.visualization.client.events.RangeChangeHandler; import com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine; import com.google.gwt.visualization.client.visualizations.AnnotatedTimeLine.Options; import java.util.Date; public class Gvisualization { public static VerticalPanel m_vpMainPanel = new VerticalPanel(); private AnnotatedTimeLine widget; @SuppressWarnings(deprecation) public Gvisualization() { @SuppressWarnings(unused) int year, month, day; //Options options = Options.create(); //options.setDisplayAnnotations(true); //System.out.println(Reaching here); Runnable onLoadCallback = new Runnable() { public void run() { AnnotatedTimeLine.Options options = AnnotatedTimeLine.Options.create(); options.setDisplayAnnotations(true); //options.setOption(displayRangeSelector, false); //options.setScaleType(AnnotatedTimeLine.ScaleType.ALLFIXED); // options.setAnnotationsWidth(20); //options.setAnnotationsHeight(20); // Create a chart visualization. widget = new AnnotatedTimeLine(createTable(), options, 700px, 240px); addHandler(); //widget.createSelectHandler(createSelectHandler(widget)); m_vpMainPanel.add(widget); RootPanel.get().add(m_vpMainPanel); } }; // Load the visualization api, passing the onLoadCallback to be called // when loading is done. VisualizationUtils.loadVisualizationApi(onLoadCallback, widget.PACKAGE); } private void addHandler() { widget.addRangeChangeHandler(new RangeChangeHandler() { @Override public void onRangeChange(RangeChangeEvent event) { Window.alert(The range has changed.\n + event.getStart() + \nFalls mainly on the plains.\n + event.getEnd()); } }); } private DataTable createTable() { int month, day, year; DataTable data = DataTable.create(); data.addColumn(ColumnType.DATE, Date); data.addColumn(ColumnType.NUMBER, Sold Pencils); data.addColumn(ColumnType.STRING, title1); data.addColumn(ColumnType.STRING, text1); data.addColumn(ColumnType.NUMBER, Sold Pens); data.addColumn(ColumnType.STRING, title2); data.addColumn(ColumnType.STRING, text2); data.addRows(6); try { data.setValue(0, 0, new Date(year = 2008 - 1900, month = 1, day = 1)); data.setValue(1, 0, new Date(year = 2008 - 1900, month = 1, day = 2)); data.setValue(2, 0, new Date(year = 2008 - 1900, month = 1, day = 3)); data.setValue(3, 0, new Date(year = 2008 - 1900, month = 1, day = 4)); data.setValue(4, 0, new Date(year = 2008 - 1900, month = 1, day = 5)); data.setValue(5, 0, new Date(year = 2008 - 1900, month = 1, day = 6)); } catch (JavaScriptException ex) { GWT.log(Error creating data table - Date bug on mac?, ex); } data.setValue(0, 1, 3); data.setValue(0, 4, 40645); data.setValue(1, 1, 14045
How to get the loading symbol while the application is loading in gwt 2.0.3
Hi, I am using gwt 2.0.3 in an Eclipse project. When I run the java code in eclipse I get the url n by pasting it in the web browser I need to wait for some time to get the application.So I need to get The application is loading while I wait for the appliocation to load . I have no idea how to do this plz help me. thanls in advance. Regards, Rakesh. -- You received 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 display a JSP page inside a DecoratedTabPanel
the answer is embedded in your question: framed. Use com.google.gwt.user.client.ui.Frame On Jun 30, 10:51 am, Denis denis.w...@gmail.com wrote: Hello, I have existing JSP pages that should be framed inside a GWT DecoratedTabPanel. Is this doable at all? Thanks for your reply. -- You received 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: Regarding GWT 2.0.3
hi Andres, I m encountering the following errors while running the application. Plz check them The site for access:http://www.ndbc.noaa.gov/data/5day2/42040_5day.txt [WARN] Server class 'com.google.gwt.json.client.JSONException' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/Users/rakesh/Desktop/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/gwt-user.jar' to the web app classpath for this session For additional info see: file:/C:/Users/rakesh/Desktop/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/doc/helpInfo/webAppClassPath.html [WARN] Server class 'com.google.gwt.visualization.client.AbstractDataTable$ColumnType' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/D:/My%20Work/Visualization%20files/gwt-visualization-1.1.0/gwt-visualization.jar' to the web app classpath for this session For additional info see: file:/C:/Users/rakesh/Desktop/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/doc/helpInfo/webAppClassPath.html [WARN] Server class 'com.google.gwt.widgetideas.table.client.RowPagingListenerCollection' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/D:/cosemware/BuoyApplication/lib/gwt-incubator-10-25-07.jar' to the web app classpath for this session For additional info see: file:/C:/Users/rakesh/Desktop/eclipse/plugins/com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/doc/helpInfo/webAppClassPath.html INSIDE GET MEASUREMENTS1 Number of lines read:0 java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 2 at java.util.Vector.get(Unknown Source) at edu.msstate.gri.server.BuoyDataServiceImpl.getMeasurements1(BuoyDataServiceImpl.java:150) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562) 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.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) INSERT INTO feature_of_interest VALUES ('id_42040','Station 42040','Freeport, TX 60 NM South of Freeport, TX',GeometryFromText('POINT(29.18 88.21)',4236),'http://www.ndbc.noaa.gov'); INSERT INTO procedure VALUES ('urn:ogc:def:procedure:DACT-42040','DACT buoy station','Buoy for DACT PAYLOAD)'); INSERT INTO proc_phen VALUES ('urn:ogc:def:procedure:DACT-42040','urn:ogc:def:phenomenon:windDirection'); INSERT INTO proc_foi VALUES ('urn:ogc:def:procedure:DACT-42040','id_42040'); org.postgresql.util.PSQLException: ERROR: duplicate key violates unique constraint procedure_pkey at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1548) at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1316) at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:191) at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452) at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:337) at org.postgresql.jdbc2
Re: Million access to GWT Appl ??
You can either drive a nail using hammer or break some one's head! It really depends on how you use the tool; be it the hammer or gwt. as far as million access is concerned, it completely depends on your server if it can handle that load or not. Look into your server side code, server infrastructure, network limitations, etc. In your client code you should avoid unnecessary server calls. Or atleast try to club multiple calls into one(if practically possible). As far as sluggishness of code is concerned for big size apps, you should divide your app into modules, use code splitting, etc. If you compare gwt app with jsp based app: - jsp app will make server trip for every user application. example multiple paged data table. - data being transferred between client and the server is more in case of jsp, as the entire page has to reload. - gwt app is usually single page based. Server calls are only made for data. - gwt app can execute most logic on client side and use server only to persist or fetch data. - In a nutshell, a well written gwt app will always reduce your server trips and amount of data being transferred when compared to traditional jsp/struts based applications. If you compare gwt to other js based toolkits, they all behave similar as far as client to server communication is concerned. gwt only makes life simple for the developers. Rakesh Wagh On Jun 19, 7:44 pm, manish kumar manish.online2...@gmail.com wrote: Hi, i have gone through many articles on web and found that GWT is not good for an application that has million users access simultaniouly. Is that really true? If not then what should i do make it accessible by million users?Is that really tough job in GWT? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: UIBinder Benefits?
uibinder separate layout out of your ui. pre uibinder we would use inner class to create hierarchy like structure for layout right inside java! That kind of code would look bit messy and unstructured to some one who is not familiar with the style of programming. As a developer, I would like to keep complete control with me and avoid more moving parts, especially non debug-able xml code! But in a way your java code looks much cleaner with uibinder. Since uibinder is responsible only for laying out your components, it nicely separates itself from the corresponding java class. Once you get used to it, you start liking it. When uibinder was introduced, I was hesitant myself but now I have adopted it. In fact I am craving for better support of some panels and widgets. Gwt programming is such that in most cases(unless you go out of the way) you end of creating not more than one or 2 pages of ui.xml files. hence uibinder files are very readable and usable! Infact my question is, why xml? why not yaml or json? Rakesh Wagh On Jun 20, 6:23 pm, spierce7 spier...@gmail.com wrote: Does using the UI Binder provide any benefits? I watched some of the I/ O conference, and it seemed like they made reference that the UI Binder using the browsers native rendering engine (or something like that), and it being a lot faster, but they didn't really specify whether that was the layout panels, or using the ui binder. What are the benefits to using the UIBinder, and where can I learn to use 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: Regarding GWT 2.0.3
Hi Andres, the below is my web.xml file. Plz check this and let me know if there r any errors in that. ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app Regards, Rakesh. 2010/6/17 Andrés Cerezo acerezoguil...@gmail.com Yes send me it by email. 2010/6/17 gourineni rakesh rg...@msstate.edu Thanks Cerezo for the reply I had opened web.xml file from xml editor but I couldnt find any error. Can you check whether my web.xml format is correct? Regards, Rakesh 2010/6/17 Andrés Cerezo acerezoguil...@gmail.com Try to open it with the xml editor of eclipse (design view) perhaps It has an erroneus character (space, etc) and you can`t see it. 2010/6/16 gourineni rakesh grakesh...@gmail.com Hi, I m Rakesh. I m developing a GWT based eclipse project.The project is about sensor web application for Buoys n i used google maps to display the Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m unable to update the database into PostgreSql {version is 8.2.} My *Web.xml* is shown below ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app And my *gwt.xml* file is given below ?xml version=1.0 encoding=UTF-8? module rename-to='buoyapplication' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- inherits name='com.google.gwt.http.HTTP'/ inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.json.JSON'/ inherits name='com.google.gwt.widgetideas.WidgetIdeas'/ inherits name='com.mapitz.gwt.googleMaps.GoogleMaps'/ inherits name='com.google.gwt.visualization.Visualization'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='edu.msstate.gri.client.BuoyApplication'/ !-- Specify the paths for translatable code-- source path='client'/ /module When I start my Tomcat I m getting the End event threw exception in startup window and following this another error Parse error in application web.xml Is there any error in my* web.xml file*.Plz help me Thanks in advance, Rakesh. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email
Re: Regarding GWT 2.0.3
Hi Andres, these is the attached web.xml 2010/6/18 Andrés Cerezo acerezoguil...@gmail.com Try to attach the file, please. 2010/6/18 gourineni rakesh rg...@msstate.edu Hi Andres, the below is my web.xml file. Plz check this and let me know if there r any errors in that. ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app Regards, Rakesh. 2010/6/17 Andrés Cerezo acerezoguil...@gmail.com Yes send me it by email. 2010/6/17 gourineni rakesh rg...@msstate.edu Thanks Cerezo for the reply I had opened web.xml file from xml editor but I couldnt find any error. Can you check whether my web.xml format is correct? Regards, Rakesh 2010/6/17 Andrés Cerezo acerezoguil...@gmail.com Try to open it with the xml editor of eclipse (design view) perhaps It has an erroneus character (space, etc) and you can`t see it. 2010/6/16 gourineni rakesh grakesh...@gmail.com Hi, I m Rakesh. I m developing a GWT based eclipse project.The project is about sensor web application for Buoys n i used google maps to display the Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m unable to update the database into PostgreSql {version is 8.2.} My *Web.xml* is shown below ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app And my *gwt.xml* file is given below ?xml version=1.0 encoding=UTF-8? module rename-to='buoyapplication' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- inherits name='com.google.gwt.http.HTTP'/ inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.json.JSON'/ inherits name='com.google.gwt.widgetideas.WidgetIdeas'/ inherits name='com.mapitz.gwt.googleMaps.GoogleMaps'/ inherits name='com.google.gwt.visualization.Visualization'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='edu.msstate.gri.client.BuoyApplication'/ !-- Specify the paths for translatable code-- source path='client'/ /module When I start my Tomcat I m getting the End event threw exception in startup window and following this another error Parse error in application web.xml Is there any error in my* web.xml file*.Plz help me Thanks in advance, Rakesh. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received
GWT
Hi, I m Rakesh. I m developing a GWT based eclipse project.The project is about sensor web application for Buoys n i used google maps to display the Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m unable to update the database into PostgreSql {version is 8.2.} My *Web.xml* is shown below ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app And my *gwt.xml* file is given below ?xml version=1.0 encoding=UTF-8? module rename-to='buoyapplication' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- inherits name='com.google.gwt.http.HTTP'/ inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.json.JSON'/ inherits name='com.google.gwt.widgetideas.WidgetIdeas'/ inherits name='com.mapitz.gwt.googleMaps.GoogleMaps'/ inherits name='com.google.gwt.visualization.Visualization'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='edu.msstate.gri.client.BuoyApplication'/ !-- Specify the paths for translatable code-- source path='client'/ /module When I start my Tomcat I m getting the End event threw exception in startup window and following this another error Parse error in application web.xml Is there any error in my* web.xml file*.Plz help me Thanks in advance, Rakesh. -- You received 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.
Regarding GWT 2.0.3
Hi, I m Rakesh. I m developing a GWT based eclipse project.The project is about sensor web application for Buoys n i used google maps to display the Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m unable to update the database into PostgreSql {version is 8.2.} My *Web.xml* is shown below ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app And my *gwt.xml* file is given below ?xml version=1.0 encoding=UTF-8? module rename-to='buoyapplication' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- inherits name='com.google.gwt.http.HTTP'/ inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.json.JSON'/ inherits name='com.google.gwt.widgetideas.WidgetIdeas'/ inherits name='com.mapitz.gwt.googleMaps.GoogleMaps'/ inherits name='com.google.gwt.visualization.Visualization'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='edu.msstate.gri.client.BuoyApplication'/ !-- Specify the paths for translatable code-- source path='client'/ /module When I start my Tomcat I m getting the End event threw exception in startup window and following this another error Parse error in application web.xml Is there any error in my* web.xml file*.Plz help me Thanks in advance, Rakesh. -- You received 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: Regarding GWT 2.0.3
Thanks Cerezo for the reply I had opened web.xml file from xml editor but I couldnt find any error. Can you check whether my web.xml format is correct? Regards, Rakesh 2010/6/17 Andrés Cerezo acerezoguil...@gmail.com Try to open it with the xml editor of eclipse (design view) perhaps It has an erroneus character (space, etc) and you can`t see it. 2010/6/16 gourineni rakesh grakesh...@gmail.com Hi, I m Rakesh. I m developing a GWT based eclipse project.The project is about sensor web application for Buoys n i used google maps to display the Buoy locations.For this the GWT i m using is 2.0.3, eclipse is 3.4 Ganemade n Tomcat is 5.5.9. Recently I have upgraded the Sensor Web project from gwt 1.4.62 to 2.0.3. I m able to get the application in the web browser but i m unable to update the database into PostgreSql {version is 8.2.} My *Web.xml* is shown below ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameBuoyDataService/servlet-name servlet-classedu.msstate.gri.server.BuoyDataServiceImpl/servlet-class /servlet servlet-mapping servlet-nameBuoyDataService/servlet-name url-pattern/buoyapplication/buoyDataService/url-pattern /servlet-mapping !-- Default page to serve -- welcome-file-list welcome-fileBuoyApplication.html/welcome-file /welcome-file-list /web-app And my *gwt.xml* file is given below ?xml version=1.0 encoding=UTF-8? module rename-to='buoyapplication' !-- Inherit the core Web Toolkit stuff.-- inherits name='com.google.gwt.user.User'/ !-- Inherit the default GWT style sheet. You can change -- !-- the theme of your GWT application by uncommenting -- !-- any one of the following lines.-- inherits name='com.google.gwt.user.theme.standard.Standard'/ !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ -- !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ -- inherits name='com.google.gwt.http.HTTP'/ inherits name='com.google.gwt.xml.XML'/ inherits name='com.google.gwt.json.JSON'/ inherits name='com.google.gwt.widgetideas.WidgetIdeas'/ inherits name='com.mapitz.gwt.googleMaps.GoogleMaps'/ inherits name='com.google.gwt.visualization.Visualization'/ !-- Other module inherits -- !-- Specify the app entry point class. -- entry-point class='edu.msstate.gri.client.BuoyApplication'/ !-- Specify the paths for translatable code-- source path='client'/ /module When I start my Tomcat I m getting the End event threw exception in startup window and following this another error Parse error in application web.xml Is there any error in my* web.xml file*.Plz help me Thanks in advance, Rakesh. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MMLc: a Tool to convert HTML in GWT widgets
good job congrats! keep it up. On May 23, 10:59 pm, Davi Pires inho...@gmail.com wrote: Hi all, I'd like to announce that the tool I mentioned here earlier (6 months ago) has finally been opened. We call it MMLc. From the project description: MMLc is a GWT generator that processes files written in an enriched HTML like syntax and outputs code that instantiates the precise widgets to represent that code. MMLc improves collaboration between programmer and designers in GWT projects, bringing back to the designers control over UI and style. Programmers need only to worry with programmers's stuff, which is a Good Thing. We are trying to turn GWT into a more team-friendly tool. So far, within our team, we have achieved great success with it. Links: - Project page:http://code.google.com/p/mmlc/ - An about page that explains it all:http://code.google.com/p/mmlc/wiki/AboutMMLC - The original mail thread on this group:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... - Some people asked for a comparison between this project and the UiBinder. We explain it better here:http://code.google.com/p/mmlc/wiki/ComparisonToUIBinder Some parts of the project (namely, i18n support and extensibility) still lack proper documentation. It should be fixed soon. Looking forward to your valuable feedback. Cheers, Davi Pires -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt webgl smartgwt
Use emulateIE7 in your html page. I personally had limited luck with this. Another work around is: frames. If your underlying layout is in smartgwt, load your canvas piece as different module html in a frame and vice versa. Both are really bad options, however smartgwt and gwt2 mix and match does not really work well! Rakesh Wagh On May 11, 2:25 pm, Alan Chaney a...@mechnicality.com wrote: Hi I've started to build an application using GWT 2 which will needs an HTML 5 canvas element to display WebGL. I was intending to use smartgwt for the bulk of the UI. Sadly, smartgwt gives layout problems when I add the !doctype html required by HTML 5 to the main html page of my app. Hopefully this will be fixed in a future version of smartgwt, but does anyone have any ideas for a workaround? For example, could I create a widget which wrapped an iframe and set the URL of the iframe to a page with an html 5 doctype? I could then use this widget to embed my webgl viewer. Any suggestions welcome! Thanks! Alan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Feature Request - Improve Visual Look
if you ask me, I like the default theme; simple and elegant! but my boss and many others I know need something more aesthetically pleasing. On Jan 28, 1:27 pm, Simon dciphercomput...@gmail.com wrote: Hi I think some of the most aesthetically pleasing UI components can be found in extJS so I would like to suggest that GWT further improve the visual appearance of their widgets. Simon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Popuppanel hight/width set to itself, does not work as expected
any one? On Jan 27, 11:11 am, rakesh wagh rake...@gmail.com wrote: Check this code: PopupPanel p = new PopupPanel(); p.setSize(p.getOffsetWidth() + px, p.getOffsetHeight() + px); As expected, nothing should happen., size of the popup panel should not change But you can notice that the size changes. Both height and width increases by the amount of padding padding/margin/border specified in the style. I you make those attribute 0px, it works. This problem is not seen with DecoratedPopupPanel, reason being, DecoratedPopupPanel does not use those attributes. Any one know the workaround, or what's wrong here? -- You received 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.
Popuppanel hight/width set to itself, does not work as expected
Check this code: PopupPanel p = new PopupPanel(); p.setSize(p.getOffsetWidth() + px, p.getOffsetHeight() + px); As expected, nothing should happen., size of the popup panel should not change But you can notice that the size changes. Both height and width increases by the amount of padding padding/margin/border specified in the style. I you make those attribute 0px, it works. This problem is not seen with DecoratedPopupPanel, reason being, DecoratedPopupPanel does not use those attributes. Any one know the workaround, or what's wrong here? -- You received 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.
popuppanel hight/width set to itself, does not work as expected
Check this code: PopupPanel p = new PopupPanel(); p.setSize(p.getOffsetWidth() + px, p.getOffsetHeight() + px); As expected, nothing should happen., size of the popup panel should not change But you can notice that the size changes. Both height and width increases by the amount of padding padding/margin/border specified in the style. I you make those attribute 0px, it works. This problem is not seen with DecoratedPopupPanel, reason being, DecoratedPopupPanel does not use those attributes. Any one know the workaround, or what's wrong here? -- You received 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 GWT do this?
ofcourse you can do that... It would help if you can elaborate. A simple implementation would be to make use of deckpanel where you switch the deck card based on editMode flag. put a label and textbox in the deck. If editMode == true, display textbox. if false, display label. This is one simple implementation. It depends on what your exact use case is. Rakesh Wagh On Dec 13, 11:23 am, sportscode venkatnar...@gmail.com wrote: I would like to create an application that has, 1. Edit Mode - Acts as an editor where i can design buttons and labels 2. Application Mode - Where it acts as an application on the newly designed buttons Thanks and Regards -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and portlet
portlet by itself is a broad term. You have to be more specific on what you need to achieve. If all you are looking for is portlet like boxes where some information can be displayed, look into demo 4 and 5 of gwt-dnd library. If you need more like jsr 168 compliance etc, you will have to put some more efforts. Check these articles if they are any help: https://technical.wiki.d4science.research-infrastructures.eu/documentation/index.php/Developing_Portlets_with_GWT http://blogs.sun.com/insidemyhead/entry/google_web_toolkit_gwt_modules On Dec 12, 7:10 am, Rascio88 manuelrasci...@gmail.com wrote: Hi! i'm new using GWT. Where can i find some documentation on how i can make a portlet using the GWT? And there's some Maven archetype that can i use to make this? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Which is the best way to manage many rows in a table with pagination?
I was seeing the incubator's widget ScrollPagingTable, what do you think about it? it is really good, use it! Rakesh Wagh On Oct 28, 6:43 am, iaio81 stefano.taurie...@gmail.com wrote: Hi all, which is according to you the best way to manage many rows in a table through pagination? I was seeing the incubator's widget ScrollPagingTable, what do you think about it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Announcing GWT 2.0 Milestone 1
great release ... especially the declarative ui, download on demand and multiple browsers piece!!! good going gwt team... you rock!! --~--~-~--~~~---~--~~ You received 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: Very! basis question: Call from JavaScript to Java
look into jsni: http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html On Sep 21, 9:48 am, kuri...@googlemail.com kuri...@googlemail.com wrote: Hi, i have a pretty simple problem i guess, and i cant get the solution because i cant all the examples available in the web work. I have a HTMLPanel with the following content: a href=# onclick=\javascript:alert (th...@com.meinskat.client.content.components.msloginpage::getLink() ());\gt; hier/a my method in the class: MSLoginPage is: getLink(){ return test} Nothing is working... can anybody give me a hint or the solution how i can call a Java Method through javascript? Thanks alot, Christian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Creating a wizard - Series of steps with GWT
Steps: - Create a Composite widget called Wizard - This widget will have a DeckPanel and back/next buttons in a main VerticalPanel. - Add your screens(different widgets) into the base DeckPanel. - If you have lot of data that is shared across the screens, wrap it up in a value object. - Share this value object across screens. - Each screen is a composite widget that is aware of how to render itself with the passed data. you can make the wizard generic by accepting list of screen widgets (Widget[]) and adding them all to the deckpanel; on back/next move the visible deck as required. It is very simple! Little playing around with gwt and you will do it. good luck... Rakesh Wagh On Sep 15, 9:31 pm, Karan Sardana karansard...@gmail.com wrote: Scenario is - The user needs to enter and submit a lot of information, the mechanism to collect such information is often organized into many screens with next/previous/finish buttons. Is there any way in which I can create this with GWT? Thanks, Karan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is it possible to clone Widgets?
It is not impossible, though not very straight forward; To start with, you can create a simple replica of any of your widget by flattening it into html, and creating element out of this html. private class TestClone extends Composite{ public TestComposite(TestClone src){ setElement(new HTML(src.toString()).getElement()); } public TestComposite(){ initWidget(new VerticalPanel(){ {add(new TextBox()); add(new CheckBox());} }); } } ... TestClone original = new TestClone(); TestClone cloned = new TestClone(original);//Cloned! This simple construct will work on basic Widgets that does not have private variables and other handler related references attached to them. Technically you should be able to achieve complete cloning if you are able to link the html and its corresponding variable references properly. Rakesh Wagh On Aug 13, 8:53 am, Ice13ill andrei.fifi...@gmail.com wrote: If i have a Widget, in a VerticalPanel let's say, and i want to add a widget with the same properties in another panel, is it possible to clone that widget? Or to create a Widget from that first widget ? (Smth like : Widget w = new Widget(firstWidget) ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Textbox event key code not case sensitive?
Thomas, I am not sure I understand what you are saying. I need the last char pressed by the user(on key down/up). How do you get that? On Aug 14, 6:31 pm, Thomas Broyer t.bro...@gmail.com wrote: On 14 août, 21:37,rakeshwaghrake...@gmail.com wrote: Today While extending the TextBox, I encountered very strange behaviour. All alphabets returned by event.getNativeKeyCode() are upper case. Here is sample program: public class TextBox extends com.google.gwt.user.client.ui.TextBox{ public TextBox() { super(); addKeyDownHandler(new KeyDownHandler(){ public void onKeyDown(KeyDownEvent event) { int key = event.getNativeKeyCode(); System.out.println(key: + (char)key); } } } } Enter characters in lower case, it will print upper case to the console. I thought of checking with the group before raising it as an issue. Any idea on what's going on here? You're confusing key codes with characters. Key codes (as well as keydown and keyup events) are really about keyboard *keys* that you depress (or at least should be, as it differs a bit amongst browsers). This was really confusing in GWT 1.5 and previous versions, since GWT 1.6 and the new events, it's a bit clearer, but still somewhat buggy (see issue 3753:http://code.google.com/p/google-web-toolkit/issues/detail?id=3753 ) See also issues 72 (among others):http://code.google.com/p/google-web-toolkit/issues/detail?id=72 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Re: Is it possible to clone Widgets?
typo: private class TestClone extends Composite{ public TestClone (TestClone src){ setElement(new HTML(src.toString()).getElement ()); } public TestClone (){ initWidget(new VerticalPanel(){ {add(new TextBox()); add(new CheckBox());} }); } } On Aug 21, 12:38 pm, Rakesh rake...@gmail.com wrote: It is not impossible, though not very straight forward; To start with, you can create a simple replica of any of your widget by flattening it into html, and creating element out of this html. private class TestClone extends Composite{ public TestComposite(TestClone src){ setElement(new HTML(src.toString()).getElement()); } public TestComposite(){ initWidget(new VerticalPanel(){ {add(new TextBox()); add(new CheckBox());} }); } } ... TestClone original = new TestClone(); TestClone cloned = new TestClone(original);//Cloned! This simple construct will work on basic Widgets that does not have private variables and other handler related references attached to them. Technically you should be able to achieve complete cloning if you are able to link the html and its corresponding variable references properly. Rakesh Wagh On Aug 13, 8:53 am, Ice13ill andrei.fifi...@gmail.com wrote: If i have a Widget, in a VerticalPanel let's say, and i want to add a widget with the same properties in another panel, is it possible to clone that widget? Or to create a Widget from that first widget ? (Smth like : Widget w = new Widget(firstWidget) ) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~--~~~~--~~--~--~---
Textbox event key code not case sensitive?
Today While extending the TextBox, I encountered very strange behaviour. All alphabets returned by event.getNativeKeyCode() are upper case. Here is sample program: public class TextBox extends com.google.gwt.user.client.ui.TextBox{ public TextBox() { super(); addKeyDownHandler(new KeyDownHandler(){ public void onKeyDown(KeyDownEvent event) { int key = event.getNativeKeyCode(); System.out.println(key: + (char)key); } } } } Enter characters in lower case, it will print upper case to the console. I thought of checking with the group before raising it as an issue. Any idea on what's going on here? Thanks, Rakesh Wagh --~--~-~--~~~---~--~~ You received 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: prerequisities of GWT to develop JPA
Read this tutorial: http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hibernate.html It might have answers to most of your questions. Rakesh Wagh On Aug 11, 2:04 am, tolga ozdemir tka...@gmail.com wrote: Hi everybody, I am starting to learn GWT stuff for a while. I am really getting enjoy it. Now, I am considering to use JPA to access my database.. I read a lot of articles about this.. (took a look at GWT 1.4 and GWT 1.5 samples also) But guys, I have not succeeded yet.. Any help about this would be great.. Bu my question is different.. Would you jote down a list what we need to use JPA with GWT JDK? (I have Java SE 1.6 JDK) Server? (I use hosted mode, I love it) Database (I can use MySQL and MsSql) GWT SDK (1.7) Google App SDK (1.2.2) Hibernate api Any more tools do we need to develop??? please write a simple list to me, maybe I missing the point right there.. My tools are enough?? Thank you, Tolga --~--~-~--~~~---~--~~ You received 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: New GWT user has a simple qustion using eclipse
The cleanup is really very minimal. Clean the EntryPoint class Clean RPC: delete the three files: async, service and impl. Remove the table and header from html I hope you will not mind the css... Rakesh Wagh On Jul 11, 9:35 am, tedpottel tedpot...@gmail.com wrote: Hi, I was able to use eclipse to create a project and run it. When I create a new project using eclipse it startes out with a simple program instad of empty code. Is there a way to have it so when you create a new project the code is just a empty class? -Ted --~--~-~--~~~---~--~~ You received 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: multiple dialog box/popup panel overlap issue
as I said, hide/show is not an option. Consider that the DialogBoxes are always in show state. User can drag them over each other. Does any one know how PopupPanel manages z-index and lisbox on top issue? I looked in the PopupPanel class several times, without any luck :( Rakesh Wagh On Jul 7, 9:53 pm, Ian Bambury ianbamb...@gmail.com wrote: Have you actually *tried* a hide followed by a show to see the effect? Ian http://examples.roughian.com 2009/7/8 Rakesh rake...@gmail.com typo: ...All dialog boxes mantain the other ... = ...All dialog boxes mantain the order ... On Jul 7, 9:39 pm, rakesh wagh rake...@gmail.com wrote: I have multiple dialog boxes(or popup panels) on my screen. When I drag one, it should show up on top of others. But that does not happen. All dialog boxes mantain the other in which they were added. Unfortunately show()/hide() is not the option for me. All my non modal dialog box windows are always in the show() state. Any solution?? I tried playing around z-index a bit, but no luck so far. Thanks... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Initial release of GWT-cs, GWT application construction with Spring
do you have an example some where that will explain its use??? Thanks, Rakesh Wagh On Jul 7, 7:22 pm, colin.zhao colinzhao...@yahoo.com wrote: I am pleased to announce the initial release of GWT-cs, which allows you to use Springframework's bean configuration xml file to define GWT client side application structure. It leverages GWT generator API and Spring BeanFactory API, and so the module itself is tiny. My intention is to externalize the inter page/screen structure and eventually store it in a relational form for an application life cycle management system. So here is the project url:http://code.google.com/p/gwt-cs/ Hope you find it useful. Colin --~--~-~--~~~---~--~~ You received 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: Excel and GWT
use jdbc on the server side to select and insert data into your excel spread sheet. If you are using MS, try the ODBC-JDBC method. Or check this project: https://xlsql.dev.java.net/ On Jun 30, 12:41 am, garshita grshtgu...@gmail.com wrote: Hi, I need to read data from my excel sheet and display it using GWT dynamically...I am very new to the topic. Can u suugest me a base so tht i can proceed... ? --~--~-~--~~~---~--~~ You received 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: GWTetris - enjoy it :)
good work, keep it up! On Jun 2, 10:41 pm, Janusz Prokulewicz jprokulew...@gmail.com wrote: Hi everyone! I'd like to invite all of you to play my own Tetris which I implemented with GWT. It's called GWTetris :p and I hope you'll enjoy it :) I added high scores feature so I think it'll be fun. You can find it here:http://mars.iti.pk.edu.pl/~swoosh/GWTTetris.html Greetings, Janusz Prokulewicz BTW I'm looking for a job in Poland as a GWT developer (more or less)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Resizable Disclosure panel
try gwt-mosaic or gwt-dnd panels/widgets for your purpose. On Jun 1, 4:42 am, java_hunter anoop...@gmail.com wrote: Hello , I am using Disclosure panel to populate some customer information. I need to make the disclosure panel as resizable. But I could not find any functions for it. Is there a way to make the disclosure panel as resizable? Or any other panel options that I can use as resizable? Thanks in advance. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Introducing Shandor Xul: Run you app as Gwt, Swing and SWT
Do you have an online showcase that would show us how a simple sample application would look like all the three platforms? And also the code associated with it? On May 20, 12:20 pm, codeoncoffee codeoncof...@gmail.com wrote: For the past year Pentaho has been developing a Java Xul framework for writing apps that run in Swing, Swt and Gwt without code modification. It's been open source from the start (LGPLv2) but not advertised. We've recently moved the project out into BitBucket.org as Shandor Xul and are looking for contributors! About Shandor Xul: Shandor allows you to write applications in a UI agnostic framework built on the Mozilla XUL declarative mark-up syntax. Shandor is not code-gen! It's a runtime framework with agnostic interfaces that you code against. There's an live abstract DOM representing your application that you can interact with and bind your code to. Below are some of the Killer things Shandor can do for you: Built-in Binding Framework (including collections to UI) Includes and Overlays (overlays allow runtime changing of the UI, free plug-in framework!) IOC ready (Spring, Juice, etc.) Groovy event handler support. Built-in i18n Being able to change a UI without recompiling is fantastic for our users as well as our Graphic Designers. Not having to write and maintain the same code in 3 places... dead sexy. Shandor has been of great use to us and we hope that it can do the same for the larger java community. We're looking for anyone who would like to contribute to the project, from users to coders! The code, doc (some) and a sample application can be found here:http://bitbucket.org/codeoncoffee/shandor-xul/wiki/Home --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
Getting started with gwt 1.6 and Intellij 8
hi all, I'm trying to learn GWT (well Ext GWT top be precise) and have lots of issues using Intellij. Firstly, I purchased a book but the examples are based on Eclipse. I'm trying to translate for Intellij but running into issues the main one being that Intellij doesn't seem to want to create all the directories for you. There is a demo on the Jet brains site but its out of date as the GWT Studio plug in has been deprecated. The new 'facet' system doesn't create a sample app. I did find a menu item when I created a new gwt project that said 'Sample App' but it said i needed version 1.5 of GWT or later but I am using 1.6 To top it all, I saw posts by the Jetbrains people to say 'proper' support will be available in Intellij 9!!! Bottom line, is it easier to just use Eclipse? Or is there some staright forward resource out there which will show me how to create a gwt app in Intellij 8? Frustrated!!! R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google Collections with GWT?
it would be interesting to have google collections work in gwt! On May 8, 7:46 am, sullymandias sullymand...@gmail.com wrote: Are Google Collections passable over GWT-RPC? I've been trying to get this to work for a few hours now with no luck. I'm using GWT 1.6.4. I managed to get Maven to download the source for google collections 1.0- rc1, and get it in my classpath for the GWT Compiler, but the compiler is not succeeding in processing that source. I get the following error: [java] [ERROR] Errors in 'jar:file:/home/sullivan/ NetBeansProjects/rnateam/war/WEB-INF/lib/google-collections-1.0-rc1- sources.jar!/com/google/common/collect/TreeMultimap.java' [java] [ERROR] Line 32: The import javax.annotation.Nullable cannot be resolved [java] [ERROR] Line 135: Nullable cannot be resolved to a type [java] [ERROR] Line 136: Nullable cannot be resolved to a type [java] [ERROR] Line 179: Nullable cannot be resolved to a type [java] [ERROR] Line 180: Nullable cannot be resolved to a type I went and added the jar and source-jar for javax.annotation:jsr250- api:1.0 and got it in the classpath for the GWT Compiler, but no luck. As it turns out, there is no javax.annotation.Nullable in the jsr250- api.jar Any suggestions? Thanks, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Google Collections with GWT?
FYI: http://groups.google.com/group/google-collections-users/browse_thread/thread/b0873c9e59050ed3/a3915e9e3db8314a?lnk=gstq=gwt#a3915e9e3db8314a On May 12, 11:57 am, Rakesh rake...@gmail.com wrote: it would be interesting to have google collections work in gwt! On May 8, 7:46 am, sullymandias sullymand...@gmail.com wrote: Are Google Collections passable over GWT-RPC? I've been trying to get this to work for a few hours now with no luck. I'm using GWT 1.6.4. I managed to get Maven to download the source for google collections 1.0- rc1, and get it in my classpath for the GWT Compiler, but the compiler is not succeeding in processing that source. I get the following error: [java] [ERROR] Errors in 'jar:file:/home/sullivan/ NetBeansProjects/rnateam/war/WEB-INF/lib/google-collections-1.0-rc1- sources.jar!/com/google/common/collect/TreeMultimap.java' [java] [ERROR] Line 32: The import javax.annotation.Nullable cannot be resolved [java] [ERROR] Line 135: Nullable cannot be resolved to a type [java] [ERROR] Line 136: Nullable cannot be resolved to a type [java] [ERROR] Line 179: Nullable cannot be resolved to a type [java] [ERROR] Line 180: Nullable cannot be resolved to a type I went and added the jar and source-jar for javax.annotation:jsr250- api:1.0 and got it in the classpath for the GWT Compiler, but no luck. As it turns out, there is no javax.annotation.Nullable in the jsr250- api.jar Any suggestions? Thanks, John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Newbie question about testing guis
Hi, I've just been told by the powers-that-be that I will be taking over development of a GWT-Ext app thats just been started. I know very little about GWT and intend to read up soon but I have a question that I will probably not find in the docs and thought I would ask this group. My previous experience of testing guis has been prone to problems. The main one being testing lots of use cases and the build taking a lot of time to run. I was wondering whether it would be possible to test the GWT app with stubbed server-side components? Is that possible? Thanks R --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: GWT Mail sample using Spring Dreamsource ORM
Why would anyone want to use this ORM when theres hibernate ? Check the author name of that project! Nevertheless, good job! On hibernate: After using hibernate for years, we are seriously considering other options like toplink essentials, cayenne or even ibatis. I think we should remove the blind fold and start using whatever makes sense for a specific problem domain. Rakesh Wagh On Apr 22, 3:11 am, mP miroslav.poko...@gmail.com wrote: Why would anyone want to use this ORM when theres hibernate ? Hibernate has lots of additional features, caching, different fetch strategies, tooling, the list goes on etc none of which are mentioned in the wiki.. The main page doesnt mention has this package solves the detached enhanced object problem so many people have raised questions and discussed in thsi forumDoes this lib solve that problem - if so please elaborate... On Apr 21, 4:16 pm, Jim jim.p...@gmail.com wrote: I modified the GWT mail sample distributed with GWT. The mail sample can retrieve emails from HSQLDB and update contacts in the database. I use the following features - Spring IOC and Spring AOP transaction, Dreamsource ORM. You can lauch a href=http://www.leeonsoft.com/mail/ Mail.htmlthis application/a. The source code is available fromhttp://dreamsource-orm.googlecode.com/files/mail_1.0.0_04202009.jar. You need Dreamsource ORM source code that is also available fromhttp://dreamsource-orm.googlecode.com/files/dreamsource2_0_1_04202009 Dreamsource ORM is making big difference in developing GWT application. Any feedback is welcome. Jim Xie --~--~-~--~~~---~--~~ You received 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: File Upload with rpc call
Look into google gears. You can upload a file of up to 1 GB in youtube with google gears installed. Look for: Blob slice(offset, length) and HttpRequest API --~--~-~--~~~---~--~~ You received 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: Folks.. I need a direction
You are missing something here. and that is RPC. Calling get set on your beans will modify that value only in the client browser. You want to communicate this value back to the server. So you need to make an RPC call. Now, you can generate a bean that will make RPC calls in its get set methods... why not? However, there is no such library or framework currently that work this way. With little code, you can create this behaviour. However I will recommend that let a bean be bean. do a rpc when set is called on the bean. Send the entire bean to your service layer. In service layer make the db call. On Apr 6, 10:32 am, ammours amer.saifedd...@gmail.com wrote: Hello All, My goal is to use a developed persistence layer where validation, fetch , add , update and delete operations are performed with GWT. This persistence is not EJB, Spring nor hibernate. They are simple objects doing validations and operations. I am looking for a mechanism to pass beans to the UI then making those beans triggering the persistence layer , pass updates and receive OK or errors based on the business validation rules. Something like bean property change fire etc... What would be the best direction to follow with GWT? Are there such examples? Any help is appreciated --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Why not use applets?
Weak reference (Weak listener in SWT/Swing) that isn't supported in javascript, but does in javaFX (java). You can simulate this in gwt. About speed and performance: Remember js runs inside the browser. It is completely at the mercy of browser(unlike applets). You should see the js engine improvements in firefox 3.1 and chrome. They are ultrafast for js. Js differs from pure java in the sense that it is single threaded. However this will change in coming years. We recently developed a sizeably big application using gwt over the past 1.5 years. I can tell you that without any code for freeing/releasing/ cleaning up objects etc, we had pretty good performance... If I am working with browsers, my first choice will be browser dom and not plugins! GWT makes so much sense with that aspect... As I said earlier, google should submit the gwt as a jsr in jcp. Or sun enggs should rethink for client side java. Again, translating java into js or any other code that runs on client would be better than forcing the jvm/bytecode approach. And I say this after writing my first ever web based program as java applet and not jsp/aps/servlet or cgi script. On Mar 31, 4:02 am, Ed post2edb...@hotmail.com wrote: - New scripting language. Why? Why should I learn a new scripting language? I love java... and sun is asking me to write my code in Can't agree with you on this one. You should see javaFx as a DSL (Domain Specific Language). That is: every problems asks for another solution. In this case javaFX simple fits better in solving the RIA solutions. And don't worry, you can still do a lot in java, and javaFX looks a lot like it. If you are a swing/gwt programming, it has some reay nice things like for example the bind keyword. Just one keyword to bind a variable to some screen presentation. I gwt, you have to use a listener, listener collection, etc... to realize this (and clean it up properly to overcome memory problems). I can give you man advantages of this... Not even to speak about the Weak reference (Weak listener in SWT/Swing) that isn't supported in javascript, but does in javaFX (java). My experience: in complex RIA app's, this isn't a NICE to have, this is a MUST-have... Try it and you will understand what I mean. I had about the same thoughts before trying it and only playing with simple RIA app's...! Disclaimer: I have not developed a real application from javafx. My knowledge is restricted to samples and demos provided by sun. That explains the above remarks... What I miss in this discussion: the whole enterpise strategy plans, which will break/make javaFx. Just the same as how Microsoft made sure their OS was accepted and a success was born (together with the richest man on this planet)... S time will tell how Java will be accepted in the browser and if we can really use javaFX in a year or so just like Flash. Things look promising, but still. it's Sun behind it, and not microsoft and they aren't so well in Marketing Just my thoughs, Ed --~--~-~--~~~---~--~~ You received 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: Why not use applets?
correction: netscape = firefox On Mar 29, 11:46 pm, Rakesh rake...@gmail.com wrote: My thoughts on javafx: - jnpl start: Web apps are supposed to run in web browser! More over they are supposed to co-exist with other stuff on the webpage, example javascript, html. While I like the concept of webstart for deploying desktop based applications through internet, I dont really buy the idea of calling a webstart based app as RIA. I would rather call it as desktop based swing app with a different skin! - New scripting language. Why? Why should I learn a new scripting language? I love java... and sun is asking me to write my code in something else? why? Who is sun targeting? Developers or designers? or both?? I am confused here... JavaFX Script is a big no no for me. - Its not cool enough! Java fx would had been cool if it was released in early swing days, not now. It is not smooth enough. It is not catchy enough. Compare it with Flash... it simply doesn't fly. Flash's main advantage is animation and vector graphics which is not captured properly by javafx. I can go on and on... The point here is that if sun is coming up with a client side tech(browser based or otherwise), it should 1. try to bring in something better in comparison to the competition and 2. Learn from its past mistakes(pushing applets and java run time in client machine). Disclaimer: I have not developed a real application from javafx. My knowledge is restricted to samples and demos provided by sun. I wonder why google-gwt team didnt register a jsr for gwt? Browser is getting faster and feature rich. Java should make browser work to its advantage. Sun's approach is isolation... it wants to get out of the browser into its own jvm to do things. Html 5 is so exciting. Imagine a swing based application rendering in HTML5 canvas! As I said earlier, Sun should think out of its jvm/jre mind set at least for client apps. Silverlight: Not much knowledge/experience in that area. I will go with flash instead of Silverlight any day(another discussion!) Finally: I think javascript and HTML5 is the future of Internet based applications. With that said, any technology that works in that direction is a good technology. gwt, gears, canvas, netscape browser itself, etc ... all are going fwd technologies RakeshWagh On Mar 29, 10:35 pm, Guy Rouillier guyr-...@burntmail.com wrote: On Mar 29, 9:46 pm,Rakeshrake...@gmail.com wrote: oops, forgot to mention: javafx is such a wrong initiative and waste of time energy and resources in wrong direction! Care to expand on why you think so? Why is JavaFX more a waste of time than, say, Silverlight? --~--~-~--~~~---~--~~ You received 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: Why not use applets?
sun did bad job when it comes to browser side java. Microsoft's strategies, and there dislike towards sun made sure that applets never succeeded(remember ie has and had the largest browser market share). However if some one has to be blamed, I think it is Sun's vision and Engineering. In my opinion, Sun engineering failed to: - Move out of the fixed mindset of jre based browser plugin and think differently - Visualize something like gwt is possible - Learn lessons from the popularity of flash plugin. - get rid of the ugly gray screen and refresh issues. - Make applets light weight like flash. I still think that it is not too late for sun to change its course. They should drop the concept of applet and launch the concept called client side java. Client side java should compile into various targets like javascript, swf, silverlight to name few. This way java users would write browser/client based apps and run them everywhere... In one sense this is the true defn of java! Sun should get away from the notion of java to bytecode. Instead they should develop the notion of java to anything! You will write code in java and run it anywhere, literally! One simple bridge of java to swf would change the applet world... just my 2c... On Mar 29, 5:52 pm, Dobes Vandermeer dob...@gmail.com wrote: After some more research it looks like the java plugin isn't as popular as I thought, only 50%-80% penetration, whereas javascript is supported in all browsers, and flash has 80%-99% penetration. Thus, applets are not cool ... oh well. On Mar 29, 3:17 pm, Dobes dob...@gmail.com wrote: Recently while cursing the slowness of GWT compilation, the slowness in the browser, and the lack of Java 6 features, it occurred to me that if GWT had simply been built on top of the Java Applet technology it could really overcome these limitations. Does anyone know why GWT wouldn't be much better if it were java bytecode running in an applet? All the major browsers support applets, the Java VM runs the code nice and fast, and applets have decent access to the DOM and the ability to run javascript. Everything that is needed to implement GWT is available to an applet, as far as I can tell. Thoughts? If I had time I'd experiment and try making a knock-off of GWT using a hidden applet so I could just write every in Java, run and debug it in the Java VM ... could even use Java's built-in RPC mechanism if I wanted to. Interesting concept, although it's likely I'm missing something important about why the GWT team didn't go this route in the first place. --~--~-~--~~~---~--~~ You received 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: Why not use applets?
oops, forgot to mention: javafx is such a wrong initiative and waste of time energy and resources in wrong direction! On Mar 29, 8:18 pm, Rakesh rake...@gmail.com wrote: sun did bad job when it comes to browser side java. Microsoft's strategies, and there dislike towards sun made sure that applets never succeeded(remember ie has and had the largest browser market share). However if some one has to be blamed, I think it is Sun's vision and Engineering. In my opinion, Sun engineering failed to: - Move out of the fixed mindset of jre based browser plugin and think differently - Visualize something like gwt is possible - Learn lessons from the popularity of flash plugin. - get rid of the ugly gray screen and refresh issues. - Make applets light weight like flash. I still think that it is not too late for sun to change its course. They should drop the concept of applet and launch the concept called client side java. Client side java should compile into various targets like javascript, swf, silverlight to name few. This way java users would write browser/client based apps and run them everywhere... In one sense this is the true defn of java! Sun should get away from the notion of java to bytecode. Instead they should develop the notion of java to anything! You will write code in java and run it anywhere, literally! One simple bridge of java to swf would change the applet world... just my 2c... On Mar 29, 5:52 pm, Dobes Vandermeer dob...@gmail.com wrote: After some more research it looks like the java plugin isn't as popular as I thought, only 50%-80% penetration, whereas javascript is supported in all browsers, and flash has 80%-99% penetration. Thus, applets are not cool ... oh well. On Mar 29, 3:17 pm, Dobes dob...@gmail.com wrote: Recently while cursing the slowness of GWT compilation, the slowness in the browser, and the lack of Java 6 features, it occurred to me that if GWT had simply been built on top of the Java Applet technology it could really overcome these limitations. Does anyone know why GWT wouldn't be much better if it were java bytecode running in an applet? All the major browsers support applets, the Java VM runs the code nice and fast, and applets have decent access to the DOM and the ability to run javascript. Everything that is needed to implement GWT is available to an applet, as far as I can tell. Thoughts? If I had time I'd experiment and try making a knock-off of GWT using a hidden applet so I could just write every in Java, run and debug it in the Java VM ... could even use Java's built-in RPC mechanism if I wanted to. Interesting concept, although it's likely I'm missing something important about why the GWT team didn't go this route in the first place. --~--~-~--~~~---~--~~ You received 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: Why not use applets?
My thoughts on javafx: - jnpl start: Web apps are supposed to run in web browser! More over they are supposed to co-exist with other stuff on the webpage, example javascript, html. While I like the concept of webstart for deploying desktop based applications through internet, I dont really buy the idea of calling a webstart based app as RIA. I would rather call it as desktop based swing app with a different skin! - New scripting language. Why? Why should I learn a new scripting language? I love java... and sun is asking me to write my code in something else? why? Who is sun targeting? Developers or designers? or both?? I am confused here... JavaFX Script is a big no no for me. - Its not cool enough! Java fx would had been cool if it was released in early swing days, not now. It is not smooth enough. It is not catchy enough. Compare it with Flash... it simply doesn't fly. Flash's main advantage is animation and vector graphics which is not captured properly by javafx. I can go on and on... The point here is that if sun is coming up with a client side tech(browser based or otherwise), it should 1. try to bring in something better in comparison to the competition and 2. Learn from its past mistakes(pushing applets and java run time in client machine). Disclaimer: I have not developed a real application from javafx. My knowledge is restricted to samples and demos provided by sun. I wonder why google-gwt team didnt register a jsr for gwt? Browser is getting faster and feature rich. Java should make browser work to its advantage. Sun's approach is isolation... it wants to get out of the browser into its own jvm to do things. Html 5 is so exciting. Imagine a swing based application rendering in HTML5 canvas! As I said earlier, Sun should think out of its jvm/jre mind set at least for client apps. Silverlight: Not much knowledge/experience in that area. I will go with flash instead of Silverlight any day(another discussion!) Finally: I think javascript and HTML5 is the future of Internet based applications. With that said, any technology that works in that direction is a good technology. gwt, gears, canvas, netscape browser itself, etc ... all are going fwd technologies Rakesh Wagh On Mar 29, 10:35 pm, Guy Rouillier guyr-...@burntmail.com wrote: On Mar 29, 9:46 pm, Rakesh rake...@gmail.com wrote: oops, forgot to mention: javafx is such a wrong initiative and waste of time energy and resources in wrong direction! Care to expand on why you think so? Why is JavaFX more a waste of time than, say, Silverlight? --~--~-~--~~~---~--~~ You received 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: Announcing GWT 1.6 Release Candidate
great job! keep the momentum going... Gwt is the most vibrant open source project I have team. Thanks to the google gwt team... On Mar 18, 3:32 pm, Bruce Johnson br...@google.com wrote: Good news! Google Web Toolkit 1.6 RC is ready for you to download and try out: http://code.google.com/p/google-web-toolkit/downloads/list?q=1.6.2 For background on what's new in GWT 1.6, please see the still-in-progress doc: http://code.google.com/docreader/?p=google-web-toolkit-doc-1-6s=goog... as well as previous 1.6-related announcements: Announcing GWT 1.6 Milestone 1http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... and Announcing GWT 1.6 Milestone 2http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... For complete details, the GWT issue tracker has the full list of changes: http://code.google.com/p/google-web-toolkit/issues/list?can=2q=miles... We expect this to be a short RC cycle, so a more comprehensive blog post with an overview of the features in GWT 1.6 should be just around the corner. -- Bruce, on behalf of the GWT team --~--~-~--~~~---~--~~ You received 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: Dealing with session timeout and container managed security
we use server push for session time out and it works really great! On Feb 28, 1:26 am, marcelstoer mar...@frightanic.com wrote: Is there some consensus or best practice in the GWT community as for how to deal with session timeout and container managed security? There are some pointers if you search for this subject, but some of the ideas are wild... In my case I use the Servlet container's built in security features for authentication as described in the Servlet specification. Hence, in my web.xm I protect access to the GWT application like so: security-constraint web-resource-collection web-resource-namemy app/web-resource-name url-pattern/app/*/url-pattern http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method http-methodDELETE/http-method /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint login-config auth-methodFORM/auth-method form-login-config form-login-page/public/login.jsp/form-login-page form-error-page/public/login.jsp?retry=true/form-error-page /form-login-config /login-config security-role role-name*/role-name /security-role So, the application (host/bootstrap page, RPC Servlet, etc.) is in the app folder and the login form (login.jsp) is in the public folder. This works flawlessly except for the session timeout use case. The application sends an RPC request to /app/AppServlet, the Servlet container requires authentication because the session had timed out and dutifully *forwards* to the login page. Hence, the result of the request is not some RPC/JSON/XML object as expected by the client but the login page HTML structure. The client simply isn't prepared for that and freezes i.e. doesn't do anything. I believe that on the server side everything is set up correctly. If the session timed out the requests don't even reach the RPC Servlet because it's intercepted by the container, fine. But how do you deal with this in the client? Should one write some custom AsyncCallback class that handles the reponse sent by the container? Thanks for your feedback. Marcel --~--~-~--~~~---~--~~ You received 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: Drang/drop files to GWT app - any progress?
GWT, as mars said, is based on js and hence inherit all of its restrictions. You should probably request the Gears team for this feature. Gears is a browser plugin. If the gears team has enough user request and a good use case, they might add this feature to the plugin. Rakesh Wagh On Feb 24, 4:16 am, dduck anders.johansen.a...@gmail.com wrote: Hi, I have searched the archives and the web, and all I could find was 1) Drag/drop projects that were only related to widgets. 2) Some discussions, all at least a year old, concluding that it was either hard and non-standards compliant, or impossible. Any progress? Regards Anders --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: What are you using for a backend??
php and perl are light weight compared to j2ee stack. Tomcat php perl linux hosting is usually cheap because all the software required are free; also the hardware requirement is relatively low. Because of these advantages, over the past years a vast community of small and medium size applications has been developed around these software. It is relatively easy to setup and support a hosting service with php- tomcat-mysql combo. Moreover there is a huge open source domain that has various libraries and applications written in php. I am sure, you will find java-tomcat/jboss based hosting service but the fee will be much more when compared to those php deals. Try the Amazon cloud computing platform. I have not tried that myself, but it sounds promising. Rakesh Wagh On Jan 20, 7:24 am, sloughran slough...@gmail.com wrote: So, in my messing around with GWT for the past year or so, I have been using RPC's to communicate to the server. The thing is, my projects have never gotten past my Eclipse project, so my server has just been a folder on my computer. I am looking at web hosting companies and I just see things like PHP, RUBY, PERL and such being allowed. I am not seeing JAVA being allowed, which I would need for my RPC's. So, my question is, what do people use for server side code? Do you use a web host with JAVA allowed? Do you use PHP and talk to it through HTML gets? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to attach a click listener to an existing SPAN element?
See the Label class. They do similar stuff for Div. Copy it for Span... Not sure what all events span handles. On Jan 10, 6:06 pm, Fred Janon fja...@gmail.com wrote: Hi, I need to add some functionality to an existing web page with a SPAN element and add a click listener to it. The SPAN element is not created with GWT. Is there a way to do that? Thanks Fred --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Multiple web pages how-to
You are still thinking in the classical web development paradigm. You should start thinking web2.0 now! The concept of multiple pages and they linked with each other through form submits or hyper link clicks etc is gone now! Now your entire application is a module with a single entry point and it loads in one single page. Once loaded every thing happen in that same page... popups, tabs, button clicks, hyperlinks, form submits, table render, data fetch, insert, updates, etc, etc all happens in that same page. However, as per gwt's philosophy you can break your application into multiple functional groups called modules. Modules will load in separate pages and can link to each other using classic hyperlinks or other methods. But for most purpose your entire application will be one page! With that said, there is no default back/ fwd or history related functionality build in your application as you are not navigating through data any more. To accomplish this behavior, gwt has provides History api. You can use the History api and events to simulate the back/fwd and bookmark functionality. It is a little tedious, but the good news is you get all the control over difficult to manipulate browser functions. I am sure you will learn these concepts through practice. Hope that helps! Rakesh Wagh On Jan 8, 11:18 pm, Sahil Dave sahil.dav...@gmail.com wrote: Hi all, i am new to GWT. I have gone thru the gwt's online tutorial and have understood how everything works. But 1 thing that i am not able to understand is, if i have multiple interlinked pages in my web application then, do i need to create multiple classes and do all those classes need to implement the EntryPoint interface. I am using Eclipse the basic project contains just a single class its associated .gwt.xml file can someone explain this.?? -- Sahil --~--~-~--~~~---~--~~ You received 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: Newbie Question on GWT/JSON
You probably got your answer by now. Think this way. JSON string is like any other string. The transport mechanism does not have to know weather it is json or text or number or binary or otherwise. With that said, you can use forms with get or post(knowing the advantages drawback of each will help you select the right mechanism) and simply posting it to your php page. In your php page, read the request parameters as if they were any other parameters. As a matter of fact you can even append the json string as part of your target page url with a variable name and expect the json string (with a hyperlink click) to reach its destination as expected. Good luck! Rakesh Wagh On Jan 3, 9:09 pm, Ian ikra...@gmail.com wrote: I am new to the Web application world; I am trying to encapsulate my set of data in a JSONObject, convert to string, and send it (async POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial discusses the trip from the server back to the client and not the other way around where I am unclear about. Do I need to set the header? Currently I set it to: builder.setHeader(Content-Type, application/x-www-form- urlencoded); However, this works fine as long as am sending key1=value1key2=values where I can retrieve variable via $_POST ['key1'] or $_POST['key2'] But I am not sure how to send a JSON string where it can be retrieved in a php page. I have tried sending myvar=MyJsonString but cannot retrieve in my php page. How should $_POST reference the JSON object? Any clarification would be much appreciated. Thanks, Ian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Getting java.net.SocketTimeoutException: Read timed out
Please provide more details on what you are doing. Are you getting this error on client or server? How much time does your request waits? Is it because of long executing methods? The error message clearly reads that it is a time out exception. My guess is some operation on server is taking more time than your time out values set. For a better answer, give us more information. Rakesh Wagh On Jan 4, 12:45 am, tin nitingupta...@gmail.com wrote: Hi All, I occassionally get this exception when my app's page is getting downloaded in the broser. In my application, I make few rpc calls to fetch the data once the JSP is downloaded by the browser. Any help in this will greatly be appreciated. No concrete answer could be found for this on the internet but it seeems others have faced this problem too. Stack Trace: java.net.SocketTimeoutException: Read timed out at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(Unknown Source) at org.apache.coyote.http11.InternalInputBuffer.fill (InternalInputBuffer.java:747) at org.apache.coyote.http11.InternalInputBuffer $InputStreamInputBuffer.doRead(InternalInputBuffer.java:777) at org.apache.coyote.http11.filters.IdentityInputFilter.doRead (IdentityInputFilter.java:115) at org.apache.coyote.http11.InternalInputBuffer.doRead (InternalInputBuffer.java:712) at org.apache.coyote.Request.doRead(Request.java:427) at org.apache.catalina.connector.InputBuffer.realReadBytes (InputBuffer.java:283) at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:379) at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java: 298) at org.apache.catalina.connector.CoyoteInputStream.read (CoyoteInputStream.java:180) at com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8 (RPCServletUtils.java:146) at com.google.gwt.user.server.rpc.RemoteServiceServlet.readContent (RemoteServiceServlet.java:335) at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost (RemoteServiceServlet.java:77) at org.gwtwidgets.server.spring.GWTSpringController.handleRequest (GWTSpringController.java:82) at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle (SimpleControllerHandlerAdapter.java:48) at org.springframework.web.servlet.DispatcherServlet.doDispatch (DispatcherServlet.java:875) at org.springframework.web.servlet.DispatcherServlet.doService (DispatcherServlet.java:809) at org.springframework.web.servlet.FrameworkServlet.processRequest (FrameworkServlet.java:523) at org.springframework.web.servlet.FrameworkServlet.doPost (FrameworkServlet.java:463) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) --~--~-~--~~~---~--~~ You received 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: about GWT compiler performance
some quick tips: 1. Hardware: U need to increase your CPU power over memory. Adding gigs of ram is not going to help much. Instead use dual/quad processors with higher configurations. Also use a faster HD and a higher FSB(try to match with your RAM speed). 2. Compile for one browser using user-agent mentioned earlier. 3. Code design! This is the biggest area where you can speed things up. Use lazy initialization in every possible class. There are many threads that explain this concept. I will give you a quick example: public class MyPopup extends DialogPanel{ public DialogPanel(){ ... } private void initialized = false; private void init(){ setWidget(createWidget()); } @Override public void show(){ if (!initialized){ init(); initialized = true; } } } With the current GWT toolkit #3 is your key to significantly reduce the load time. It also makes your application design better. Rakesh Wagh On Nov 7 2008, 5:06 pm, surfer lorenzo.naza...@gmail.com wrote: since often the main development of an application is viewed and debugged with one single type of browser and only sometimes verified on the others, does anybody know if it's possible to force GWT compiler to build javascript code for just one single target browser, in order to increase compiling phase performance ? thanx --~--~-~--~~~---~--~~ You received 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: Are RPC servlets Thread safe
cheers! On Dec 26, 5:57 pm, byhisdeeds byhisde...@gmail.com wrote: Sorry for bothering everybody in this season of good cheer. I found the problem which was my own (of course). I had my json object instantiated per the RPC servlet class and not the servlet method. Think I'll go and have a drink now. John On Dec 26, 4:05 pm, byhisdeeds byhisde...@gmail.com wrote: Please forgive me if the question seems a bit daft. Its christmas and maybe I have had too much to drink. I have a GWT 1.5 application using RPC to access some server side code running under tomcat 6.xxx. I've just recently seen something that puzzles me. When I let fly with 10 or 20 independent RPC calls from my client, each of which queries a database and returns an entry for a single row in a table, I see all the calls being received by the server RPC method, but when I look at the response being sent back to the client (within the RPC method) I see some overwriting each other. That is, I instantiate a JSONObject (http://www.jason.orglibrary) within the RPC myMethod(String s){...} and see that different call to the RPC method result in the same values for the JSON object just before returning. Since I instantiate these within myMethod(String s){...} I expect that they should not interfere with each other. Am I missing something. John P.S. A merry Christmas and Happy New Year when it comes (even if you can';t help me solve my problem). --~--~-~--~~~---~--~~ You received 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: To draw a line
1. GWT Canvas 2. JSGraphics(Using GWT Widget Library). You have x and y co-ordinates of your two widgets. To calculate length of the line, do simple mathematics. Remember Pythagoras? Rakesh Wagh On Dec 25, 11:47 pm, arun theeperfection...@gmail.com wrote: Hi frends, I have a requirment to connect two widget by a line and also need to find the length of line to measure the distance between two widget. Please help me how can i draw the lne and calculate the distance. Any help would be appreciated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: IDE for GWT
Eclipse vs netbeans vs IntelliJ is actually matter of personal preference and any such comparison should probably be part of some other forum. None of thes IDE I believe has anything out of the box for GWT. And even if they did, most of those features are easy to do manually(of course with little practice). As far as application builder, project builder and drag and drop facilities are concerned, they are all beginners tool. For example, creating a debug/run configuration is matter of knowing what jars to include at runt time and what parameters to supply. Doing it manually some times is much simpler than running the creators! If I change or add a RPC method, changing 3 files is hardly a matter of few more seconds. As far as visual designers are concerned, I would recommend: Design the code such that it loads fast in hosted mode(use lazy initialization of objects, you can find many threads out here). This way you have complete control over your design/code and whatever changes you do, will be seen immediately in hosted mode on refresh. Again, all the assistance tools are good for beginners and small size application... but as the application grows, you are most of the time pretty much on your own.. and it is good to be that way so that you have the complete control and less unknowns. Any tool that helps you write java code should be equally helpful for gwt. vi ny1? ;) :) just my 2c. Rakesh Wagh On Dec 20, 7:48 pm, Eduardo Henrique eduardo.hi...@gmail.com wrote: What IDE are you using??? Do you use any Eclipse's Plugin for GWT? -- Eduardo Henrique(Hitek) -www.eduardohitek.blogspot.com Desenvolvimento SoftSite -www.softsite.com.br --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Get file from server with GWT-RPC
Cannot comment on what you are doing wrong without looking into the code. However I see no need for setUrl on server side. You should have a Servlet that will parse the parameters, read the appropriate image file(either file system or db or any doc mgmt system for that matter), set a proper content type and just spit out the byte stream. From the client just call this servlet with appropriate params for it to retrieve the image. In essence: Image img = new Image(); img.setUrl(/servlet?photoId=39934width=50); Rakesh Wagh On Dec 26, 4:26 pm, Daniele dany.hat...@gmail.com wrote: I cannot planning image manipulation. If images are on client sides, setUrl() etc it works. On server side, I have an undefined number of folders that represent photo category, but if I put on setUrl() method path to folders on server, it's not work. 2008/12/26 rakesh wagh rake...@gmail.com: ask yourself: Even if you get your image/files using rpc, what will you do with it? I mean there is no real application of getting binary files using rpc yet. Are you planning to do image manipulations like rotation, filters, etc on the client side? js is not yet ready for that. However if you wish, you can get the entire file using rpc method. But sticking it to the image tag is very difficult. Search through the group, some one mentioned how you can embed the actual bytes and construct a img tag that will display the image. Good luck, because that is very non standard and your millage can greatly vary. You might also want to look at Gears, it allows you to store and retrieve Blobs in client database... not sure if it has to do anything with your requirement but will come handy if you are playing a lot with files etc. .. Rakesh Wagh On Dec 24, 8:01 am, Daniele B dany.hat...@gmail.com wrote: Hi. I work on a photogallery application for my thesis. I have a problem. How can I do to retrieve image files stored on a server folder trought GWT-RPC? Thanks at all! Sorry fo my english!!! :) Daniele. --~--~-~--~~~---~--~~ You received 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: Waiting on multiple RPC calls
performance: Are you acquiring handles to three different RPC services for your 3 calls? If yes, you can improve performance by clubbing them into a single call. If you do a little client side profiling, you will realize that creating a async reference on client side is a not a very quick operation. It is always a good idea to cache(static) your rpc service references on client once you create it for the very first time. Rakesh Wagh On Dec 19, 3:38 am, stephen.sm...@paretopartners.com stephen.sm...@paretopartners.com wrote: Thats exactly the thing i need!!! Thanks :) On Dec 18, 11:17 pm, Dobes dob...@gmail.com wrote: Hi Stephen, I had a lot of scenarios like this, so I added some utility classes to help. For example, I have a class called AsyncCallbackGroup which allows you to wait on multiple parallel RPC calls and then when they are all complete it calls another callback. In your case you could create a group with the first two operations, then pass a callback whose onSuccess() method called the next call. You can get the source code for these classes in the kiyaa project: http://code.google.com/p/kiyaa/ On Dec 18, 2:14 am, stephen.sm...@paretopartners.com stephen.sm...@paretopartners.com wrote: Firstly, before any1 goes off on 1 about You cant do syncronous rpc calls in gwt or JS is single threaded im fully aware of these facts. However i also know that like many things there are usually work arounds or at least better solutions than i have thought of... So my problem is this. I have 3 RPC calls. The first 2 are totally seperate however the third depends on the result of both the first 2. The 3rd call is unfortunately rather large as it requires some DB access on the server and sorting/filtering etc. and i would therefor like to get this going asap. There is also alot of other initalisation code on the client that can be done at almost any stage. so it would be preferable to do this during any (and possibly all) of the rpc calls This is all currently done in module load and i am chaining my 3 rpc calls. This causes the total load time to be a bit slow. This seems such a horrible way to do it and even for me it gets a little confusing and i wrote it. Does any one have a better solution to how i can wait on the first 2 calls before making the 3rd whilst still executing the client initalisation code. Thanks in advance, Steve- Hide quoted text - - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: New release of the GWT project Tatami
How does your js loading happen? For example if I need to use just gfx in my application, will tatami load only the gfx related dojo js files? I have not played around with tatami. We use lot of gfx in our application. Will you recommend switching to Tatami... ? Thanks for the release Rakesh WAgh On Dec 19, 2:08 am, vgrassaud vgrass...@gmail.com wrote: Hi We are really excited to announce the release of Tatami v1.3. Visit the homepage to give it a try, see the demos... http://code.google.com/p/tatami/ We will be glad to have your feedback! Not exhaustive change list: - License switched from LGPL only to LGPL or Apache License or BSD - Now relies on latest Dojo 1.2.3 release - Charting support - Tree Widget - Dojo drag and drop can now be used in Tatami - The border container has been ported, advantageously replacing both GWT DockPanel and SplitPanels - Relies on custom dojo builds, optimizing it for the very usage of Tatami - Easier dijit Theme integration - New HTML online documentation - The grid wrapping has been ported from dojo's DataGrid 1.1 to DataGrid 1.2 - Release of TatamiX, extensions for Tatami including an HMVC design-pattern implementation Cheers, The Tatami Team. --~--~-~--~~~---~--~~ You received 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: Dollar sign in filename
those files are automatically generated by the compiler. They are typically inner classes. What is your concern by the way? On Dec 16, 5:55 pm, jchimene jchim...@gmail.com wrote: Hi, Would someone please post a link to the documentation for the filenaming convention that allows for names like: RichTextToolbar $Strings.properties --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Image viewer widget
com.google.gwt.user.client.ui.Image is all you need. You should develop your own Composite on top of it. Add a zoom in, zoom out buttons; handle the click events; and resize your image accordingly; it is that easy! On Dec 16, 4:56 am, ArunDhaJ arund...@gmail.com wrote: Hi All, Is there any widget developed in gwt for viewing Image. The widget should have the ability to zoom. Please let me know if any such widgets available... Thanks in Advance !!! ArunDhaJwww.arundhaj.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Drawing seperator (Line) between widgets
Horizontal: new HTML(hr/); Vertical: new HTML( table style='display:inline;border- collapse:collapse;border:0'trtd style='padding:0'img src='transparent.gif' width='2' height='600' style='background:black'/td/tr/table); On Dec 15, 6:02 am, Arul arulmanikandan.sriniva...@gmail.com wrote: Hi, Would you please help me How I can draw line(Horizontal or Vertical) between widgets?. I understand it is web tool kit, but supposed to give importance to this areas as well. The core idea is to replace presentation layer. Pease reply with out re-directing to some where. Thanks Arul --~--~-~--~~~---~--~~ You received 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: Clickable text
Here is a simple class we wrote for our purpose. : public class TextLink extends Label{ boolean enabled = true; public TextLink() { super(); init(); } public TextLink(Element element) { super(element); init(); } public TextLink(String text, boolean wordWrap) { super(text, wordWrap); init(); } public TextLink(String text) { super(text); init(); } private void init(){ addStyleName(TextLink); } @Override public void onBrowserEvent(Event event) { if (enabled) super.onBrowserEvent(event); } private void setEnabled(boolean enabled) { if (this.enabled == enabled) return; if (enabled){ removeStyleName(TextLink-disabled); addStyleName(TextLink); }else{ removeStyleName(TextLink); addStyleName(TextLink-disabled); } this.enabled = enabled; } } .TextLink{ color: #AA; text-decoration:underline; cursor:pointer;cursor:hand; } .TextLink-disabled{ color: #EE; text-decoration:underline; cursor:pointer;cursor:hand; } On Dec 15, 9:07 am, Smith smitha.kang...@gmail.com wrote: All, Is there a way to add some clickable text into a panel? I am aware of Hyperlink, but I don't need history support. All I need is to show another panel when a text is clicked on. --~--~-~--~~~---~--~~ You received 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: Clickable text
fyi: The above widget also has a enable/disable functionality which is missing in a regular hyperlink. (The functionality is not fully tested). Use the widget at your own risk(if you have to). But I dont see any reason why it should fail. Rakesh Wagh --~--~-~--~~~---~--~~ You received 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: Dialog Box Appears Behind Another Widget
never used openlayers... but try this: for your dialog box, where you do dialoBox.show(), call the .hide() method first and then call ..show(); or try .show() .hide() .show in a sequence and see if it works... its basically about setting the proper z-index. On Dec 15, 3:26 pm, WebDude curtis.jen...@gmail.com wrote: I'm using the gwt-OpenLayers plug-in. In Firefox and Chrome, any DialogBoxes appear beneath the Map widget. It makes things a little tricky for modal dialogs. In Hosted mode and IE it works fine. I've dried modifying the zIndex of the dialogs and the map to force the dialogs to appear on top. I am unable to get the dialogs to be in front. Any ideas on how to get the dialogs on top? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to have a layered panel?
Yup glasspanel is really handy. Do remember to turn off the scrollbars... they could mess up the page big time! Window.enableScrolling(false); On Dec 9, 12:32 am, Petrus Pelser [EMAIL PROTECTED] wrote: The component in the incubator is called a GlassPanel and it works really well. Though I did have some issues with the blur event in IE, but I could easily fix it by catching and ignoring the onBlur() call. Suri wrote: Hi Rakesh, Isaac Litty Thanks for the replies. Since I'm currently already using the incubator jar for a table, I'll first attempt Isaac's suggestion which seems least effort-consuming at the moment. If i do need to create my own panel, I'll try both of your suggestions and update everyone on the results. Thanks a bunch all. You guys are really great help in this forum. On Dec 8, 3:11 pm, rakesh wagh [EMAIL PROTECTED] wrote: Correction to my earlier post: Use PopupPanel, not AbsolutePanel. I just tried this code in a class that extends DialogBox: @Override public void show() { mask.setPixelSize(Window.getClientWidth(), Window.getClientHeight ()); mask.setPopupPosition(0, 0); mask.setWidget(new Label(test)); mask.setStyleName(trans-bg); mask.show(); super.hide(); super.show(); } @Override public void hide() { mask.hide(); super.hide(); } .trans-bg{ background-color: black; filter: alpha(opacity=50); -moz-opacity: .5; } And I am able to show a translucent background to any of my dialog box! Rakesh Wagh On Dec 8, 9:37 am, rakesh wagh [EMAIL PROTECTED] wrote: if you are trying to do this on your own, you will probably need a absolute panel that is placed on the screen based on the screen size (0, 0, max clientx, max clienty). Select a proper style: color and transparency. Now just put your widget or popup on top of this panel. This way the z index of your translucent panel will be between the main screen and your visible widget. You might also have to put a screen resize handler to resize the size of your panel. I think the gwt incubator has a ready to use widget. Rakesh Wagh On Dec 6, 11:04 pm, Suri [EMAIL PROTECTED] wrote: Hey all, In GWT how would we create a layered panel/widget that basically acts like a semi-opaque screen for the stuff below it. Sort of looking like the screen is in a disabled mode. Thanks for any ideas. Suri -- Petrus Pelser Software Developer, CTO Codewave (http://www.codewave.co.za) mailto:[EMAIL PROTECTED] Cell: +27 79 522 6463 --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: TestBox inside CheckBox's text
Create a Composite widget with a checkbox and textbox inside it. On Dec 9, 5:45 am, Danny Schimke [EMAIL PROTECTED] wrote: I want to use a TextBox inside the CheckBox- label. For example: *[X]* Save in *TextBox* minutes I can do it by using the toString()- method on TextBox, but it is behaving incorrectly: - Firefox (un)checks the CheckBox by clicking into the TextBox - The TextBox- Object is not the TextBox which is displayed - no changes in the original TextBox. Is there a possible way to realize. Except i have to split the components... --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Suggestions with code design
gwt is not going to help you a lot here(Think in terms of html and js. If html and js cannot do, gwt can neither.). Did you check the recent javafx release? I think it is best suited for your work. At least the image manipulation part. On Dec 6, 10:54 pm, Rohan Redkar [EMAIL PROTECTED] wrote: Hi everyone, My application requires the user to select a bunch of images from his system. Then I need to do modifications on these images(example aline them horizontally into a single image). I need some design suggestions on how I can achieve this? I guess, AWT cannot be directly used at the client side code. So if I am transfering these images to the server to do these operations, can I use rpc or will I run into Serialization issues? Is upload via the normal multipart request the only option in this case? Any help will be appreciated. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to have a layered panel?
if you are trying to do this on your own, you will probably need a absolute panel that is placed on the screen based on the screen size (0, 0, max clientx, max clienty). Select a proper style: color and transparency. Now just put your widget or popup on top of this panel. This way the z index of your translucent panel will be between the main screen and your visible widget. You might also have to put a screen resize handler to resize the size of your panel. I think the gwt incubator has a ready to use widget. Rakesh Wagh On Dec 6, 11:04 pm, Suri [EMAIL PROTECTED] wrote: Hey all, In GWT how would we create a layered panel/widget that basically acts like a semi-opaque screen for the stuff below it. Sort of looking like the screen is in a disabled mode. Thanks for any ideas. Suri --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to have a layered panel?
Correction to my earlier post: Use PopupPanel, not AbsolutePanel. I just tried this code in a class that extends DialogBox: @Override public void show() { mask.setPixelSize(Window.getClientWidth(), Window.getClientHeight ()); mask.setPopupPosition(0, 0); mask.setWidget(new Label(test)); mask.setStyleName(trans-bg); mask.show(); super.hide(); super.show(); } @Override public void hide() { mask.hide(); super.hide(); } .trans-bg{ background-color: black; filter: alpha(opacity=50); -moz-opacity: .5; } And I am able to show a translucent background to any of my dialog box! Rakesh Wagh On Dec 8, 9:37 am, rakesh wagh [EMAIL PROTECTED] wrote: if you are trying to do this on your own, you will probably need a absolute panel that is placed on the screen based on the screen size (0, 0, max clientx, max clienty). Select a proper style: color and transparency. Now just put your widget or popup on top of this panel. This way the z index of your translucent panel will be between the main screen and your visible widget. You might also have to put a screen resize handler to resize the size of your panel. I think the gwt incubator has a ready to use widget. Rakesh Wagh On Dec 6, 11:04 pm, Suri [EMAIL PROTECTED] wrote: Hey all, In GWT how would we create a layered panel/widget that basically acts like a semi-opaque screen for the stuff below it. Sort of looking like the screen is in a disabled mode. Thanks for any ideas. Suri --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: How to share work between Java developers and HTML/CSS designers?
Here are few things to consider: - Check the Instantiation Designer tool. Personally never used it beyond evaluation... but you and your team might have some luck with it. - Let the HTML team design the layout. Let the GWT team design the application and place the components as per the layout. Gwt team uses the default widget css. Then let the HTML team work only with the css provided by the gwt team and modify it to meet the new look and feel. - GWT team takes both the layout and the CSS from html team, and include the CSS element as the project progresses. Finally this is what we did: - We created our own widget library with common components for tables, hyperlinks, menus etc. We(developers) spared some time designing the common components as per the graphics design. Finally for most of the part it was only the matter of following the layout. good luck! Rakesh Wagh On Dec 2, 11:36 pm, Nizam [EMAIL PROTECTED] wrote: Are there any best practices in bringing together a multi-disciplinary team of Java developers and HTML/CSS designers in developing a commercial GWT application? Our Java guys cannot do CSS and our HTML/ CSS guys prefer working in DreamWeaver. I haven't seen any material that talks about the team collaboration aspect. Any thoughts? --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Portlet Layout - Similar to iGoogle
Check demo #3, #5 and #7 of gwt-dnd demo. demo link: http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#WindowExample You will require the draggable and resizable Iframe from demo7. And place those widgets in a layout similar to that of demo 5. Here is the project link: http://code.google.com/p/gwt-dnd/ Hope that helps. Rakesh Wagh On Nov 28, 4:58 am, StrongSteve [EMAIL PROTECTED] wrote: Hi Everybody! I have a very basic question and you hope you can provide me an answer! ;) So basically I have an existing web-application consisting of several JSP/HTML pages that provide different simple tasks. What I want to do now, is change the user interface in a way, that it looks like the main screen of iGoogle. So that I have a wide area with different widgets, that can be dragged around, hidden, ... Within each widget I want to display one of my existing Java Server Pages. Is this possible with GWT? Or do I need additional libraries to support this behaviour. Can you please point me out the major steps that would be necessary to reach this goal? Thanks in Advance for both your time and your knowledge! Greetings Stefan --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Interesting question:how can I get the rownumber of a cell that contain a button when I click this ?
Are you quizzing us or asking for help? I would go with alex.d 's solution. Other method(which I personally hate) is to write a for loop in the onClick event of the button that will read the widget in each r,c and match it with the sender or button instance itself. Rakesh Wagh On Dec 1, 7:24 pm, Alex Luya [EMAIL PROTECTED] wrote: Remember: no pre-condition,no external variable that defined the location of this button. --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: using Jetty for hosted mode?
check this: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/604aec6b7460c133/419baa6d8488eaa6?hl=enlnk=gstq=jetty#419baa6d8488eaa6 On Nov 25, 4:07 am, Juan Backson [EMAIL PROTECTED] wrote: Hi, Does anyone know how to change GWT default servlet engine to Jetty? Any suggestion will be greatly appreciated. Thanks, JB --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Label Click events to be fired Automatically
Or put the body of onCick in a method example: doOnClick(). Call the doOnClick() method in your Widget's onLoad() method. Rakesh WAgh On Nov 26, 7:06 am, Ryan [EMAIL PROTECTED] wrote: Hi everybody, I have a page with two labels. I have written some code on the click events of the 2 labels. Is it possible that when a page loads I fire these click events without the user required to click the labels. regards, Cherian --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Add a new row in a table dynamically!!!
Hi, I wanted to know if it is possible to add a new row to a existing html table dynamically using GWT. I am fairly new to GWT and was wondering if its possible. I checked the forum and couldn't find anything on this. If anyone has a solution for this please let me know. Thanks, Rakesh --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Why use GWT?
my bad... that was a typo which i realized only after clicking the send button(and was too lazy to post the second response). just include the js = just include the jar. Following attributes in your gwt.xml while in development simplify compile some what: set-property name=user.agent value=ie6 / set-property name=gwt.suppressNonStaticFinalFieldWarnings value=true / On Nov 24, 2:23 pm, adam [EMAIL PROTECTED] wrote: Rakesh, This was a totally great response and I'm really thankful that you took the time to write it. divide your project into distinct modules that do not rely on each other, do it! A good example is managing administration activities could be a separate module. This way you take away the load from main application. I see what you mean, but it's often pretty tough to come up with modules whose dependency graph is disconnected from the rest of the project. They do appear from time to time, I suppose. this common project, do our development, test it in hosted mode(with a demo app) and just include the js. This way we shift at least 30% of our development to this very small project that is easy on hosted mode refresh, debugging, and over all development. I hope you get my point here. Please let me know if I understand the just include the js part correctly. You are saying that you keep your UI widget lib in a separate project, compile it to javascript, and then include that javascript in the html for your main project? If this is correct, how do you expose the methods? Do you just add functions to $wnd in JSNI or are you using Cromwell's GWT Exporter? I use the passive view pattern, which means it's usually pretty easy for me to try out my widgets in a harness; I usually keep a second module in my main Eclipse project for this purpose. 4. At time of development compile only for IE(through a property ingwtex I'm sorry, but I didn't catch you here. I think your original message may have become a bit garbled here. Thanks again. Adam On Nov 24, 12:47 pm,rakeshwagh[EMAIL PROTECTED] wrote: I will agree on the final thing about listeners and feel that it is more of personal preference. In my experience we had good luck and happy results using listeners to decouple our widgets and hence screens. Basically like any other java based application you need a lead in your team who will always take care of the over all design and make sure that listeners are not abused; that parents do not pass themselves as references to the child for purpose of method invocation; and many other best practice that come by little practice. Withgwt, client side programming deserves equal or more respect(hence design and lead resources) compared to its server side counter part. About the size of generated javascript code. As I said I am not going to go in comparison with any other lib, because that would be apple vs bananas(I love both fruits btw). If your app is compiled as 160kb js, I think it is not huge. It is probably just okay. The best thing I like aboutgwtis that it does not include a staticgwt.js of its own (like most other toolkits does, take dojo for instance).Gwtmaps your java code as effeciently as possible to corresponding javascript(again without including its own static js lib). I agree with you that lazy loading would be a good idea. Moreover I also agree with you that hosted mode refresh time sucks as your app size increaseas(and that happens pretty soon!). We all face this issue, and I think thatgwt team will put a solution in coming months. See my comments in this thread:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... Here are some suggestions: 1.Usemodules right from the beginning if possible. If you could divide your project into distinct modules that do not rely on each other, do it! A good example is managing administration activities could be a separate module. This way you take away the load from main application. 2. Create a separate project for commongwtwidgets. If you are relying on vanillagwtfor widgets(not usinggwt-ext etc), you would most probably end up writing lot of common widgets that you would like to reusein your project. We created a separate project just for this purpose. So whenever we write a reusable(1+ times) widget, we go to this common project, do our development, test it in hosted mode(with a demo app) and just include the js. This way we shift at least 30% of our development to this very small project that is easy on hosted mode refresh, debugging, and over all development. I hope you get my point here. 3.uselazy initialization of variable where ever possible. This reduces lot of start up time. 4. At time of development compile only for IE(through a property ingwtex More over we created a entirely different project that would contain the common widgets that we develop and can be reused. I think Finally: - I
Re: Why use GWT?
Adam, did you even try GWT? Because if you had developed a 3-4 screen application with server connectivity you would have already answered your question. I will not do gwt-jquery comparison here, but just few cents about gwt itself. That who is using list is incomplete. I can bet you that gwt's who is using list(if honestly made) will be bigger than any other ajax tech adaption. Jquery's adaption list is created by jquery itself. gwt's list you posted is not created by google or the gwt team. FYI, we have done more than 3(big) projects successfully overt the past 2 years and we do not care to be part of any such lists. GWT is more than a UI library, it is a paradigm shift in developing web applications. People who have spend there life in struts and other similar web based framework will typically take a while to understand this paradigm change. If you liked and respected swing and javascript for what ever they are, you will probably like and understand gwt much faster than some one who doesn't. Very fast, here are some basic advantages that make gwt a toolkit of choice: - Google's beta releases are production quality! - You get answers to your question within 24 hours from a great user community. Like you just did for this thread! - Apache, A great license, without any fine prints. - Dozens of supporting projects, which make GWT even better. - Check smart gwt or ext gwt for really rich widgets. - Couple gwt with spring and hibernate and with little plumbing you are dealing with only java objects from client browser to the data layer. - A very small technology and tool stack required for the entire project. - Generated js is super-super fast and tiny(relatively)! You end up writing fast and small apps. compare it with flex and or any other toolkit of your choice. (btw, comparing it with lo level libs like prototype.js is wrong) - Every thing is so modular and object oriented. you can write long lasting apps and manage huge application easily. - Creating reusable widgets is a snap. And that is what you do with gwt most of the time. - Some really great features that are unique to gwt: locale mgmt, history token management, image bundle, exception handling and rpc mechanism - I am yet to see a more elegant and easier way to communicate data back and forth the server then gwt's rpc. You send a generic arraylist to your client code. You cannot beat this! - Strongly typed java is always better compared to js. You end up making less mistakes as 80% errors are resolved by eclipse as you type your code. - Never seen a better way of debugging my code. - Listeners architecture(if you understand and implement correctly) is a great tool to decouple your app widgets/classes and make them more reusable. Great way of event handling! - Can keep going ... all in all gwt rocks!! Fine prints: There is a learning curve if you really want to build long lasting production ready code(depends on your java experience and understanding of swing, layouts, event handling etc). Else use one of the ready to go widget libraries, try smart gwt. Rakesh Wagh On Nov 22, 8:58 pm, adam [EMAIL PROTECTED] wrote: I see herehttp://docs.jquery.com/Sites_Using_jQuerythat lots of big projects, most of which are probably led by some smart, deep-thinking, open-minded individuals, are using jQuery and hand-written javascript. I notice that this list of projects using GWThttp://www.ociweb.com/mark/programming/GWT.html#WhoIsUsingItdoesn't look as impressive. Why are leaders on big projects deciding to use tools other than GWT? Do they have any good reasons to not use GWT? Should they use GWT? If so, why? If this has already been covered in another post, please point me to it; no need to reinvent the --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SWFUpload library for GWT
While I appreciate your efforts: We recently were faced with a requirement with multiple file upload. After lot of research and trying out swfupload we concluded that the best approach(for now) is using gears Desktop api for this purpose. swfupload had huge problems with flash 10 release. Basically adobe decided to change the way multiple file upload is handled for security reasons. In my experience there is no silver bullet as far as multiple file upload functionality is concerned. Nothing against swfupload, it is a great library in its own rights. But flash in my experience is not reliable/credible enough for this specific purpose. People might vary in opinion and I totally respect it. Rakesh Wagh On Nov 24, 6:45 am, Mark Renouf [EMAIL PROTECTED] wrote: Hello, I wanted to gauge interest in a GWT interface to using SWFUpload (http://www.swfupload.org/). While work continues on GWT support for file uploads using Gears, I need a more compatible and short term solution to a problem that's come up. I also feel that having more than one option is good practice to ensure compatibility with the most number of users. I'm currently putting this together for my own needs but I wanted to see if anyone else in the community would be interested in helping to complete this. The SWFUpload javascript library is around 30KB and and the associated flash control is 11KB. It's also recently had support added to work around the new security restrictions in flash player 10 (which is what has forced me to scrap my own implementation and move to this one). My goal is a nice GWT wrapper to make it very simple to drop into any existing GWT app. To my knowledge no such thing exists yet (please speak up if you know of one). Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: Why use GWT?
I will agree on the final thing about listeners and feel that it is more of personal preference. In my experience we had good luck and happy results using listeners to decouple our widgets and hence screens. Basically like any other java based application you need a lead in your team who will always take care of the over all design and make sure that listeners are not abused; that parents do not pass themselves as references to the child for purpose of method invocation; and many other best practice that come by little practice. With gwt, client side programming deserves equal or more respect(hence design and lead resources) compared to its server side counter part. About the size of generated javascript code. As I said I am not going to go in comparison with any other lib, because that would be apple vs bananas(I love both fruits btw). If your app is compiled as 160kb js, I think it is not huge. It is probably just okay. The best thing I like about gwt is that it does not include a static gwt.js of its own (like most other toolkits does, take dojo for instance). Gwt maps your java code as effeciently as possible to corresponding javascript(again without including its own static js lib). I agree with you that lazy loading would be a good idea. Moreover I also agree with you that hosted mode refresh time sucks as your app size increaseas(and that happens pretty soon!). We all face this issue, and I think that gwt team will put a solution in coming months. See my comments in this thread: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/604aec6b7460c133/950c73ed1d98ae3a?hl=en#950c73ed1d98ae3a Here are some suggestions: 1. Use modules right from the beginning if possible. If you could divide your project into distinct modules that do not rely on each other, do it! A good example is managing administration activities could be a separate module. This way you take away the load from main application. 2. Create a separate project for common gwt widgets. If you are relying on vanilla gwt for widgets(not using gwt-ext etc), you would most probably end up writing lot of common widgets that you would like to re use in your project. We created a separate project just for this purpose. So whenever we write a reusable(1+ times) widget, we go to this common project, do our development, test it in hosted mode(with a demo app) and just include the js. This way we shift at least 30% of our development to this very small project that is easy on hosted mode refresh, debugging, and over all development. I hope you get my point here. 3. use lazy initialization of variable where ever possible. This reduces lot of start up time. 4. At time of development compile only for IE(through a property in gwt ex More over we created a entirely different project that would contain the common widgets that we develop and can be reused. I think Finally: - I reiterate, it is futile to compare gwt with any other js libraries. For us, gwt eliminates the use of many server side layers and xml configurations etc that we would traditionally do in a struts like app framework. - If I am allowed to be philosophical: GWT is a change in paradigm for web app developments - It also makes our server side code simple to a level where we have to just provide the implementation to a bunch of interface methods. Our server and client teams can work totally independent of each other. - Moreover when we float requirement, all we need is a person who is good in java, and nothing else.(yes there is a learning curve for this person, but that is true with any thing else). - Before gwt, javascript was my personal favorite for the flexibility and ease of that language. However it didn't take me to long to realize how nasty it would get to debug others code and how difficult does it get to add new features to a already written js based application. Frankly it is a nightmare and ppl tend to stay away from touching pre written js based applications. - Last year we developed a gwt based application and shipped it offshore for maintenance and the response from our offshore team was really good(compared to our earlier experiences). All were new to gwt but they could go in and do bug fixes and add new features without much hand holding(and without hating or messing the existing code). Rakesh Wagh On Nov 24, 11:20 am, adam [EMAIL PROTECTED] wrote: Hi Rakesh, Thanks for your response. Adam, did you even tryGWT? As I said earlier in this thread, I've developed applications in GWT. My most recent one (still in development) is matchomat.com. This application has some rollover buttons, dialogs, form checking, gwt rpc, history, and it even uses gwt-coded jsonp to communicate with an erlang server. All of the js is written in GWT. I described the client- side architecture in the reply to Adam T earlier in this thread. I've also made a large pure-GWT-history app before. created by jquery itself.gwt'slist you posted is not created by google
Re: Your opinion sought: Jetty or Tomcat?
jetty or tomcat, no problem for us. But startup speed certainly is! we use -noserver with jboss/oc4j and weblogic. Few thing I would like to propose/request in upcoming release: #1. Seamless hot deployment for any source code change(class signature as well as stmt changes). So when the user refreshes the browser, js compilation does not take place. it will just load whatever exists. Hot deployment will make sure that whatever exists is always current. I know this is difficult to achieve but if it is implemented, the development time will be super super fast. We will basically have to run the app in hosted mode browser only once. And all subsequent changes will be auto deployed(synched) with the hosted mode. In big applications like ours, almost every code change requires hosted mode refresh. And in most cases it takes any where between 50 to 200 secs. #2. If #1 is not possible: gwt should atleast detect the files that were changed since app was last refreshed and attempt to compile load only those changes. Some how the compiler/loader/linker should be smart enough to the level where hosted mode refresh is reduced to less than 7 seconds. Really looking forward towards a super fast hosted mode. Thanks, Rakesh Wagh On Oct 20, 9:46 am, John [EMAIL PROTECTED] wrote: Manuel Carrasco wrote:The most annoying issue with GWT is performance in development mode. I mean, compiling, startng hosted mode and running GWT Unit tests. So any action that improves these is welcome. So my vote if for jetty +1 --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: SmartGWT 1.0 Released
great job Sanjeev. Keep up the good work. Always love smart-client. Smart client is much better compared to ext-js as far as licensing is concerned. However the showcase looks little slow compared to the original js based smart-client as well as gwt-ext. Thanks! On Nov 22, 6:48 pm, Tim [EMAIL PROTECTED] wrote: Excellent Job! some things are rough around the edges but overall this release is impressive! Gotta fix those image downloads though. And adding a couple of the standard schemes wouldn't hurt. But you already mentioned these things in your release announcement post anyway. Can't wait. Cool stuff! On Nov 22, 8:32 am, ART [EMAIL PROTECTED] wrote: This looks cool. Ann. On Nov 18, 9:50 am, Sanjiv Jivan [EMAIL PROTECTED] wrote: Hi all,I have just released SmartGWT 1.0. Here is the release announcement :http://www.jroller.com/sjivan/entry/smartgwt_1_0_released Google Code Project Page :http://code.google.com/p/smartgwt/ Showcase Demo :http://www.smartclient.com/smartgwt/showcase/ Javadocs :http://www.smartclient.com/smartgwt/javadoc/ SmartGWT uses the new GWT 1.6 event API's which is really neat and works great. Seehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ProposedEv... Thanks, Sanjiv --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Gears distribution for completely offline clients
First of all, please forgive me for posting this topic in gwt forum. I have tried posting threads in the gears group with no real response. Basically I am in desperate mode and need advice from people knowledgeable in this area. I believe many gwt users use gears and might have faced similar issues. We are facing a scenario where some of our application users will never have access to public internet. However they will be connecting to the corporate intranet to access the application. Now we are almost in final stages of our application development that heavily made use of gwt, gwt-api and gears. Recently we discovered that gears does not have bundle-able plugin. We cannot go in production without addressing this issue. Currently we are trying to make a exe from the gears svn trunk. I would appreciate any kind of feedback and or suggestion from experts. Thanks in advance. Here is the issue thread i created in gears: http://code.google.com/p/gears/issues/detail?id=763sort=-idcolspec=Version%20Milestone%20Owner%20ID%20Summary%20Component --~--~-~--~~~---~--~~ You received 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---