AutoBeanUtils.getAutoBean/ShimHandler.maybeWrap is causing JVM crash

2017-06-22 Thread Rakesh Wagh


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.4.0 native drag and drop... does it *really* work with IE9?

2012-01-24 Thread rakesh wagh
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

2011-11-30 Thread rakesh wagh
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

2011-11-28 Thread rakesh wagh
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

2011-10-19 Thread rakesh wagh
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

2011-10-18 Thread rakesh wagh
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

2011-10-18 Thread rakesh wagh
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

2011-10-18 Thread rakesh wagh
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

2011-10-18 Thread rakesh wagh
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.



Re: Announcing gwt4air 1.0

2010-11-01 Thread rakesh wagh
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: how to display a JSP page inside a DecoratedTabPanel

2010-06-30 Thread rakesh wagh
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: Million access to GWT Appl ??

2010-06-21 Thread rakesh wagh
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?

2010-06-21 Thread rakesh wagh
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: MMLc: a Tool to convert HTML in GWT widgets

2010-05-24 Thread rakesh wagh
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

2010-05-11 Thread rakesh wagh
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

2010-01-30 Thread rakesh wagh
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

2010-01-30 Thread rakesh wagh
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

2010-01-27 Thread rakesh wagh
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

2010-01-26 Thread rakesh wagh
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?

2009-12-14 Thread rakesh wagh
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

2009-12-14 Thread rakesh wagh
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?

2009-10-28 Thread rakesh wagh

  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
-~--~~~~--~~--~--~---



Textbox event key code not case sensitive?

2009-08-14 Thread rakesh wagh

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: What are you using for a backend??

2009-01-20 Thread rakesh wagh

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?

2009-01-11 Thread rakesh wagh

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

2009-01-11 Thread rakesh wagh

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

2009-01-04 Thread rakesh wagh

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

2009-01-04 Thread rakesh wagh

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

2009-01-02 Thread rakesh wagh

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

2008-12-27 Thread rakesh wagh

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

2008-12-27 Thread rakesh wagh

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

2008-12-27 Thread rakesh wagh

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

2008-12-27 Thread rakesh wagh

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

2008-12-19 Thread rakesh wagh

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

2008-12-19 Thread rakesh wagh

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

2008-12-17 Thread rakesh wagh

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

2008-12-16 Thread rakesh wagh

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

2008-12-15 Thread rakesh wagh

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

2008-12-15 Thread rakesh wagh

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

2008-12-15 Thread rakesh wagh

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

2008-12-15 Thread rakesh wagh

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?

2008-12-10 Thread rakesh wagh

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

2008-12-09 Thread rakesh wagh

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

2008-12-08 Thread rakesh wagh

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?

2008-12-08 Thread rakesh wagh

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?

2008-12-08 Thread rakesh wagh

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?

2008-12-04 Thread rakesh wagh

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

2008-12-02 Thread rakesh wagh

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 ?

2008-12-02 Thread rakesh wagh

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?

2008-11-26 Thread rakesh wagh

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

2008-11-26 Thread rakesh wagh

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
-~--~~~~--~~--~--~---



Re: Why use GWT?

2008-11-25 Thread rakesh wagh

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?

2008-11-24 Thread rakesh wagh

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

2008-11-24 Thread rakesh wagh

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?

2008-11-24 Thread rakesh wagh

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?

2008-11-22 Thread rakesh wagh

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

2008-11-22 Thread rakesh wagh

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

2008-11-11 Thread rakesh wagh

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
-~--~~~~--~~--~--~---



Re: Gears 0.4 features in GWT Google API Library

2008-11-09 Thread rakesh wagh

any updates in this area? I am especially interested in the classcast
exception error taken care of.
Thanks

On Nov 3, 8:55 am, Eric Ayers [EMAIL PROTECTED] wrote:
 The sample code LGTM.

 http://code.google.com/p/gwt-google-apis/source/branch?spec=issue202

 The final sticking point is migrating the callbacks to use the Handler
 pattern.  Let's discuss this some more so we can go ahead and get this patch
 committed..



 On Mon, Nov 3, 2008 at 8:48 AM, rakesh wagh [EMAIL PROTECTED] wrote:

  So what is the fix for this? Is this a bug in Mark's code that is easy
  to fix?

  Thanks

  On Nov 2, 7:47 pm, Eric Ayers [EMAIL PROTECTED] wrote:
   JsValueGlueGet is about interpreting a parameter or return value in
  hosted
   mode.  If, for example, you pass a string as a boolean value parameter,
   you'll get this error.

   On Sun, Nov 2, 2008 at 8:07 PM, rakesh wagh [EMAIL PROTECTED] wrote:

Regarding the hosted mode ClassCastexception issue I reported
earlier:

java.lang.ClassCastException
       at java.lang.Class.cast(Class.java:2951)
       at
  com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:128)
       at

  com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
57)

I created a simple html page with required js for multiple file upload
in it and loaded this page in hosted mode browser. It works perfectly
fine. I understand that no module is loaded in hosted mode this way
and that hosted mode treats this html file as a static web page. But I
also understand that gwt code is a simply wrapper over gears js and
that this gwt based wrapper eventually translate into js. That means
the bug is probably in GWT itself. While searching for open issues, I
found this.

   http://code.google.com/p/google-web-toolkit/issues/detail?id=2841q=j.
  ..

Though I have not yet tried the fix, I hope it fixes the issue.

   --
   Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://
  code.google.com/webtoolkit/

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gears 0.4 features in GWT Google API Library

2008-11-03 Thread rakesh wagh

So what is the fix for this? Is this a bug in Mark's code that is easy
to fix?

Thanks

On Nov 2, 7:47 pm, Eric Ayers [EMAIL PROTECTED] wrote:
 JsValueGlueGet is about interpreting a parameter or return value in hosted
 mode.  If, for example, you pass a string as a boolean value parameter,
 you'll get this error.



 On Sun, Nov 2, 2008 at 8:07 PM, rakesh wagh [EMAIL PROTECTED] wrote:

  Regarding the hosted mode ClassCastexception issue I reported
  earlier:

  java.lang.ClassCastException
         at java.lang.Class.cast(Class.java:2951)
         at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:128)
         at

  com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
  57)

  I created a simple html page with required js for multiple file upload
  in it and loaded this page in hosted mode browser. It works perfectly
  fine. I understand that no module is loaded in hosted mode this way
  and that hosted mode treats this html file as a static web page. But I
  also understand that gwt code is a simply wrapper over gears js and
  that this gwt based wrapper eventually translate into js. That means
  the bug is probably in GWT itself. While searching for open issues, I
  found this.

 http://code.google.com/p/google-web-toolkit/issues/detail?id=2841q=j...

  Though I have not yet tried the fix, I hope it fixes the issue.

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gears 0.4 features in GWT Google API Library

2008-11-02 Thread rakesh wagh

Regarding the hosted mode ClassCastexception issue I reported
earlier:

java.lang.ClassCastException
at java.lang.Class.cast(Class.java:2951)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:128)
at
com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
57)



I created a simple html page with required js for multiple file upload
in it and loaded this page in hosted mode browser. It works perfectly
fine. I understand that no module is loaded in hosted mode this way
and that hosted mode treats this html file as a static web page. But I
also understand that gwt code is a simply wrapper over gears js and
that this gwt based wrapper eventually translate into js. That means
the bug is probably in GWT itself. While searching for open issues, I
found this.
http://code.google.com/p/google-web-toolkit/issues/detail?id=2841q=java.lang.Class.cast

Though I have not yet tried the fix, I hope it fixes the issue.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gears 0.4 features in GWT Google API Library

2008-10-30 Thread rakesh wagh

Mark, jsut a quick question. Did you test your demo code for IE and
firefox? I am having issues with IE. request complete callback is not
triggered. Works great with firefox.



On Oct 29, 5:03 pm, rakesh wagh [EMAIL PROTECTED] wrote:
 Mark,
 I took your servlet as is and replaced with mine and it worked!
 I was using apache file upload which looks for certain deliminators in
 a multi-part file. File uploaded this way(usinggears) has probably no
 concept of multi part file in it. In your approach on the server side
 you simply open the inputstream and store the file. While I can get my
 stuff working that way, I am a bit curious on what I will be loosing
 by not using Mulitpart!

 Thanks a bunch... u were help!

 Rakesh Wagh

 On Oct 29, 3:20 pm, Mark  Renouf [EMAIL PROTECTED] wrote:

  Ok. I put a little something together based on my original test.

  Give this a 
  try:http://groups.google.com/group/Google-Web-Toolkit-Contributors/web/ge...

  Unzip, then generate the launch scripts:

    applicationCreator -outgears-upload -ignore
  com.google.gwt.gears.demo.client.UploadDemo

  On Oct 29, 2:03 pm, rakesh wagh [EMAIL PROTECTED] wrote:

   I think I have opened the request. Am I missing something? Can you
   post your sample code that works?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-30 Thread rakesh wagh

FYI:

Existing code with error in IE:
  public native void setCallback(RequestCallback handler) /*-{
var request = this;
this.onreadystatechange = function() {
  if (request.readyState == 4) {
 
@com.google.gwt.gears.client.httprequest.HttpRequest::fireRequestComplete(Lcom/
google/gwt/gears/client/httprequest/RequestCallback;Lcom/google/gwt/
gears/client/httprequest/HttpRequest;)(handler, request);
  }
  request.onreadystatechange = null;
  request.onprogress = null;
  request.upload.onprogress = null;

};
  }-*/;


My local code that fixed the issue:
  public native void setCallback(RequestCallback handler) /*-{
var request = this;
this.onreadystatechange = function() {
  if (request.readyState == 4) {
 
@com.google.gwt.gears.client.httprequest.HttpRequest::fireRequestComplete(Lcom/
google/gwt/gears/client/httprequest/RequestCallback;Lcom/google/gwt/
gears/client/httprequest/HttpRequest;)(handler, request);
  request.onreadystatechange = null;
  request.onprogress = null;
  request.upload.onprogress = null;
  }

};
  }-*/;




On Oct 30, 6:39 pm, rakesh wagh [EMAIL PROTECTED] wrote:
 Mark, jsut a quick question. Did you test your demo code for IE and
 firefox? I am having issues with IE. request complete callback is not
 triggered. Works great with firefox.

 On Oct 29, 5:03 pm, rakesh wagh [EMAIL PROTECTED] wrote:

  Mark,
  I took your servlet as is and replaced with mine and it worked!
  I was using apache file upload which looks for certain deliminators in
  a multi-part file. File uploaded this way(usinggears) has probably no
  concept of multi part file in it. In your approach on the server side
  you simply open the inputstream and store the file. While I can get my
  stuff working that way, I am a bit curious on what I will be loosing
  by not using Mulitpart!

  Thanks a bunch... u were help!

  Rakesh Wagh

  On Oct 29, 3:20 pm, Mark  Renouf [EMAIL PROTECTED] wrote:

   Ok. I put a little something together based on my original test.

   Give this a 
   try:http://groups.google.com/group/Google-Web-Toolkit-Contributors/web/ge...

   Unzip, then generate the launch scripts:

     applicationCreator -outgears-upload -ignore
   com.google.gwt.gears.demo.client.UploadDemo

   On Oct 29, 2:03 pm, rakesh wagh [EMAIL PROTECTED] wrote:

I think I have opened the request. Am I missing something? Can you
post your sample code that works?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

In addition to above issue, I am also trying to understand on how to
pass over the selected file(s) as multipart request to a servlet? I
tried the RequestBuilder, but so far no luck.

We are trying to use the Desktop class for multiple(image) file upload
feature in our application.
Any help is appreciated!


On Oct 29, 10:40 am, rakesh wagh [EMAIL PROTECTED] wrote:
 Mark, I tried the patch(gears.jar from issue 201) for multiple file
 upload. I am able to select multiple files both in hosted and non
 hosted mode. However when I press open, I get a exception in hosted
 mode(as a stacktrace in eclipse console). Works in browser(compile/
 browse). Here is the error:

 java.lang.ClassCastException
         at java.lang.Class.cast(Class.java:2951)
         at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:128)
         at
 com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects(SwtOleGlue.java:
 57)
         at
 com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:
 119)
         at
 com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:
 155)
         at
 com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
 294)
         at
 com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:
 194)
         at
 org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:
 117)
         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
         at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
         at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
         at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

 Thanks for the efforts!

 On Oct 28, 5:11 pm, Eric Ayers [EMAIL PROTECTED] wrote:

  I loaded up the patch into a branch so we could perform a public code
  review:

   http://code.google.com/p/gwt-google-apis/issues/detail?id=202

  On Tue, Oct 28, 2008 at 6:58 AM, Eric Ayers [EMAIL PROTECTED] wrote:
   Hi Mark,
   Thanks for posting this.  I haven't forgotten about your patch, but I'm
   busy with a release and may not get a chance to send you feedback until
   later this week.  I want to put your changes into 'trunk' and need to 
   merge
   the release branch back.  Also, I want to try out a new code review
   technique with you.

   On Mon, Oct 27, 2008 at 10:23 PM, Mark Renouf [EMAIL PROTECTED]wrote:

   If anyone wants to try this out, I just created issue #201. Attached
   is a pre-built gwt-gears.jar:

  http://code.google.com/p/gwt-google-apis/issues/detail?id=201

   I tested Geolocation throughGearson my G1 today and it worked just
   fine. The address lookup function may not be working right though,
   either a mistake I made somewhere or some other issue (always returns
   null?).

   --
   Eric Z. Ayers - GWT Team - Atlanta, GA USA
  http://code.google.com/webtoolkit/

  --
  Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

here is my code. Now the problem is that I dont see a server call. Due
to earlier mentioned issue, I cannot debug in hosted mode. Any
pointers???


Factory.getInstance().createDesktop().openFiles(new OpenFilesCallback()
{
public void filesOpened(File[] files) {
Window.alert(Files selected:  
+ files.length);
HttpRequest request = 
Factory.getInstance().createHttpRequest();

request.setRequestHeader(Content-type, multipart/form-data);
request.open(POST, 
http://localhost:8180/app/myserv?
param1=val1);

request.send(files[0].getBlob(), new RequestCallback(){

public void 
onResponseReceived(HttpRequest request) {

Window.alert(success);
}

});

}

 });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

One more thing:
Should the call back param of onResponseReceived be HttpResponse
instead of HttpRequest? It does not matter for my purpose since I am
not interested int he response.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

I surrounded the code with try/catch. Here is the exception:
(Error): Request is not open.
 fileName: 
http://localhost:/org.myPackage.DemoBrowse/C94D754673F94D7F17F97D760D29421B.cache.html
 lineNumber: 1803
 stack: Error(Request is not open.)@:0
setRequestHeader(Content-type,multipart/form-data)@:0
vQb([object Array])@http://localhost:/org.myPackage.DemoBrowse/
C94D754673F94D7F17F97D760D29421B.cache.html:1803
tG([object Object],[object Array])@http://localhost:/
org.myPackage.DemoBrowse/C94D754673F94D7F17F97D760D29421B.cache.html:
76
([object Array])@http://localhost:/org.myPackage.DemoBrowse/
C94D754673F94D7F17F97D760D29421B.cache.html:75


I think I have opened the request. Am I missing something? Can you
post your sample code that works?

Thanks


On Oct 29, 11:30 am, rakesh wagh [EMAIL PROTECTED] wrote:
 here is my code. Now the problem is that I dont see a server call. Due
 to earlier mentioned issue, I cannot debug in hosted mode. Any
 pointers???

 Factory.getInstance().createDesktop().openFiles(new OpenFilesCallback()
 {
                                         public void filesOpened(File[] files) 
 {
                                                 Window.alert(Files selected: 
  + files.length);
                                                 HttpRequest request = 
 Factory.getInstance().createHttpRequest();
                                                 
 request.setRequestHeader(Content-type, multipart/form-data);
                                                 request.open(POST, 
 http://localhost:8180/app/myserv?
 param1=val1);
                                                 
 request.send(files[0].getBlob(), new RequestCallback(){

                                                         public void 
 onResponseReceived(HttpRequest request) {
                                                                 
 Window.alert(success);
                                                         }

                                                 });

                                         }

                                  });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

Mark, appreciate your response. I am not really trying to use
RequestBuilder here(incorrectly mentioned RequestBuilder in my first
post). I just need to get it working until the support is official.
The code I posted earlier is using Gear's HttpRequest. When I try to
submit the request using .send() method I get a nasty error saying
Request is not open. I have no clue what to make out of this
message. I am just trying different permutation combination in a
desperate attempt to make it work. Do you think this issue go back to
gears? I thought this was tested by the gears team before they
released it. I saw your code which is really a wrapper and looks
pretty clean, simple and correct. If I had to work directly with the
gears api, this is what I might probably end up writing to interface
the js with my gwt proj.

Can you check in your test code if a file upload to server is working?
If it is, can you share the test code?

Looks like I might have to end up using applet based file uplaod :(

Rakesh Wagh

On Oct 29, 1:29 pm, Mark  Renouf [EMAIL PROTECTED] wrote:
 These are probably valid points. This is going to confuse people I'm
 sure, but the whole openFiles/Blob/upload mechanism requires use of
 Gears' own HttpRequest and can't be used with GWT's RequestBuilder.
 (see HttpRequest#setBody). The Blob is sent bare, no multipart
 encoding, so some server side changes are required to receive a file
 sent this way. I think it's simpler and cleaner, but unfortunately
 this isn't a drop-in replacement.

 Response information (status code, headers, etc) is available from the
 Request object after the request completes. We could return this as an
 interface to make it more clear but I tried to keep things simple.

 On Oct 29, 12:48 pm, rakesh wagh [EMAIL PROTECTED] wrote:

  One more thing:
  Should the call back param of onResponseReceived be HttpResponse
  instead of HttpRequest? It does not matter for my purpose since I am
  not interested int he response.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

Exception on the server is:
 org.apache.commons.fileupload.FileUploadException: the request was
rejected because no multipart boundary was found

Any idea what this could be? Probably to do something with what is set
in the request header.

On Oct 29, 2:52 pm, rakesh wagh [EMAIL PROTECTED] wrote:
 Update:
 In my code I used request.setRequestHeader before open(). That was a
 mistake. After changing it I can at least see the request reaching the
 server. However I see a null pointer exception in server :(

 Will post this thread on progress...

 On Oct 29, 11:30 am, rakesh wagh [EMAIL PROTECTED] wrote:

  here is my code. Now the problem is that I dont see a server call. Due
  to earlier mentioned issue, I cannot debug in hosted mode. Any
  pointers???

  Factory.getInstance().createDesktop().openFiles(new OpenFilesCallback()
  {
                                          public void filesOpened(File[] 
  files) {
                                                  Window.alert(Files 
  selected:  + files.length);
                                                  HttpRequest request = 
  Factory.getInstance().createHttpRequest();
                                                  
  request.setRequestHeader(Content-type, multipart/form-data);
                                                  request.open(POST, 
  http://localhost:8180/app/myserv?
  param1=val1);
                                                  
  request.send(files[0].getBlob(), new RequestCallback(){

                                                          public void 
  onResponseReceived(HttpRequest request) {
                                                                  
  Window.alert(success);
                                                          }

                                                  });

                                          }

                                   });
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Gears 0.4 features in GWT Google API Library

2008-10-29 Thread rakesh wagh

Mark,
I took your servlet as is and replaced with mine and it worked!
I was using apache file upload which looks for certain deliminators in
a multi-part file. File uploaded this way(using gears) has probably no
concept of multi part file in it. In your approach on the server side
you simply open the inputstream and store the file. While I can get my
stuff working that way, I am a bit curious on what I will be loosing
by not using Mulitpart!

Thanks a bunch... u were help!

Rakesh Wagh

On Oct 29, 3:20 pm, Mark  Renouf [EMAIL PROTECTED] wrote:
 Ok. I put a little something together based on my original test.

 Give this a 
 try:http://groups.google.com/group/Google-Web-Toolkit-Contributors/web/ge...

 Unzip, then generate the launch scripts:

   applicationCreator -out gears-upload -ignore
 com.google.gwt.gears.demo.client.UploadDemo

 On Oct 29, 2:03 pm, rakesh wagh [EMAIL PROTECTED] wrote:

  I think I have opened the request. Am I missing something? Can you
  post your sample code that works?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: GWT-ext or ext-GWT?

2008-10-29 Thread rakesh wagh

I would agree with Arthur Kalmenson .
And that is the reason why we used vanilla gwt over ext.

you will miss that blazing performance in ext libs. Do not get fooled
with attractive showcase.

With that said, from look and feel + user experience perspective, ext
is probably the best and complete library out there.

If you are a smart developer you will go with gwt. If you are a dumb
manager, u will go with ext

Rakesh Wagh

On Oct 29, 5:45 pm, sankar.gorthi [EMAIL PROTECTED] wrote:
 http://gwt-ext.com/forum/viewtopic.php?f=12p=10318sid=c4b4b0a204e38...

 On Oct 29, 1:55 am, maku [EMAIL PROTECTED] wrote:

  This is a good advice when you have much time and the expertise to
  develop nice looking widgets.

  But in reality this is not the case.

  From my point of view a small team is not able to develop something
  which is as good as ExtGwt (aka GXT).
  (E.g. a powerful grid component)

  We took GXT to develop our app.
  In general we had no huge problems to solve until now (at least in
  context with GXT)

  Regards,
  Martin

  On Oct 28, 1:55 pm, Arthur Kalmenson [EMAIL PROTECTED] wrote:

   I would say go with neither. If you look at the group, you'll find
   that there are endless problems with these libraries. They're shoddy,
   poorly put together, slow and nowhere near the level of quality that
   you come to expect from GWT. The library is made by Javascript
   developers who have little to no Java knowledge. If you want a well
   test, well designed toolkit, stick with vanilla GWT and make widgets
   yourself.

   Regards,
   --
   Arthur Kalmenson

   On Mon, Oct 27, 2008 at 11:50 AM, Suri [EMAIL PROTECTED] wrote:

Not sure if there is a thread ever discussed on this. If so, I'd
appreciate help in locating it. Tried a search and it decided to
exclude the gwt part and search only for ext which isn't much help.
Anyway, for all the people using either of these, I figure it might be
good to get some feedback on the drawbacks and strengths of each and
have something helpful for everyone like me trying to decide which is
a good fit. Any ideas? Sorry if I seem abstract, I just thought the
more general the better.

Thanks
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: GWT-ext or ext-GWT?

2008-10-29 Thread rakesh wagh

Folks, correction to my first post. The original contributor of gwt-
ext is probably still part of the project, though not as active.
http://gwt-ext.com/forum/viewtopic.php?f=12p=10318sid=c4b4b0a204e3891ad392622656a65684#p10318

Rakesh Wagh

On Oct 27, 2:17 pm, rakesh wagh [EMAIL PROTECTED] wrote:
 I have used  GWT-ext but not ext-GWT.
 GWT-ext was a hot favorite before ext-js went commercial and before
 the ext team themselves launched ext-GWT. Now that gwt support is
 provided by the ext team themselves, I think it will make more sense
 to use ext-gwt. Moreover Sanjeev Jeevan the original creator of gwt-
 ext is no longer part of that project.

 I would go with ext-gwt with a little evaluation. Hope they dont have
 any major hiccups.

 Rakesh Wagh

 On Oct 27, 10:50 am, Suri [EMAIL PROTECTED] wrote:

  Not sure if there is a thread ever discussed on this. If so, I'd
  appreciate help in locating it. Tried a search and it decided to
  exclude the gwt part and search only for ext which isn't much help.
  Anyway, for all the people using either of these, I figure it might be
  good to get some feedback on the drawbacks and strengths of each and
  have something helpful for everyone like me trying to decide which is
  a good fit. Any ideas? Sorry if I seem abstract, I just thought the
  more general the better.

  Thanks
  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: Model View Controller - of any use in my project?

2008-10-27 Thread rakesh wagh

Start thinking GWT way!
You dont need MVC any more. Think in terms of widgets and RPC. Your
server side will be a bunch of interfaces and impl classes
implementing those interfaces. For a advanced set up you can use
spring or ejb. These impls will essentially call the DAO's in your
data layer which could be made up of hibernate or simple jdbc. You
will write your pojos irrespective of the persistence layer. You can
use the same pojos or wrap them with value objects for client side
data communication.

On the client you will have your page divided into multiple widgets.
Follow the natural hierarchy looking at your page. Child widgets will
throw events that parent widgets will use if required. Parent widgets
will contain the child widgets. Widgets will make rpc calls to save/
fetch data as and when required. Data will be received in collections
of pojos or value objects you designed earlier(which happens to be the
return type of the methods in your interfaces)

Trust me, that is all it is...

Rakesh Wagh

On Oct 27, 5:37 am, Michi_de [EMAIL PROTECTED] wrote:
 Hi!

 I'm actually all searchin for MVC information concerning the GWT.
 I use the Ext GWT 1.1.1 and GWT 1.5. I tested a lot out for 2 weeks
 now and its some realy good framework. Now i wanted to start the real
 project and got some problems on the desing part:
 should i use a MVC?
 The application is pretty simple. There will be an entry site, with
 statistics. Now the user can go on to fill in a form to create new
 data and save it to the database (coding this isnt realy a problem).
 Then again he can search the database via a form and get the result
 displayed.
 Seems not too much. But so far my small trial project handeled all
 actions and everything in just one class: app.java. Its 400 lines of
 code and realy some unstructured code. So i thought the MVC should be
 usefull...
 but how to realize?
 The only thing i actually think of is split the data into class. For
 example: take a registerform.java which gives me a panel with all the
 fields and buttons. Same with anything which will be displayed on the
 entry site, like statistics or results.
 This would purge my app.java but would this realy help? Or should i
 learn to use MVC? Any idea where i can find more information about MVC
 + GWT? MVC alone has lots of information, but i need to transcribe
 this information on GWT so i can realy 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-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: can i use java libs

2008-10-27 Thread rakesh wagh

Shaffer, explained it all.
A little addition: Class.forName and Reflection related apis are not
yet available as standard part of gwt. However you can use third party
projects(again open source) to achieve most of what you are looking
for.

http://sourceforge.net/projects/gwtreflection/

Rakesh Wagh

On Oct 27, 7:01 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 Hello,

 This is a standard question here, so I'm going to link to one of the
 many responses in this forum (from January 2007)

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 To summarize:  GWT is client side/web browser code written in Java.
 You use the standard Java development methodology and syntax with one
 notable exception:  the GWT compiler compiles all of this Java into
 native Javascript/HTML/CSS.  So the only true Java libraries that you
 can import into a client side package are ones that the compiler can
 convert into Javascript.  java.sql.* is not one of them.  And (nothing
 official or binding here) but it seems highly unlikely that it ever
 will.  There are some very strict boundaries that a web browser has to
 live inside of, and I would think that directly connecting to a
 database from a web browser (which would be cool) isn't likely to
 happen.  Just like there isn't a mountain of javascript (my official
 term for a library written in javascript) that connects to a database,
 it's a limitation of the browser container that everything runs inside
 of.

 The standard solution here, which is standard to most web browser
 based products, GWT or otherwise, is to create a middle tier and
 connect from there.  GWT-RPC is a terrific way for GWT clients to
 connect to Java middle tiers, using a syntax that is virtually the
 same as any basic remoting type.  Your middle tier lives on a web
 server which is true blue 100% Java, and therefore would be able to
 import the java.sql.* libraries.

 Hope this adds some clarity.

 Later,

 Shaffer

 On Oct 26, 12:46 am, tapan [EMAIL PROTECTED] wrote:

  Hi guys

  can i use the java jre with gwt.
  please help.
  some of them which i require are

  Class.forName
  java.sql.DriverManager
  java.sql.Statement

  etc.

  Please help
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: GWT-ext or ext-GWT?

2008-10-27 Thread rakesh wagh

I have used  GWT-ext but not ext-GWT.
GWT-ext was a hot favorite before ext-js went commercial and before
the ext team themselves launched ext-GWT. Now that gwt support is
provided by the ext team themselves, I think it will make more sense
to use ext-gwt. Moreover Sanjeev Jeevan the original creator of gwt-
ext is no longer part of that project.

I would go with ext-gwt with a little evaluation. Hope they dont have
any major hiccups.

Rakesh Wagh

On Oct 27, 10:50 am, Suri [EMAIL PROTECTED] wrote:
 Not sure if there is a thread ever discussed on this. If so, I'd
 appreciate help in locating it. Tried a search and it decided to
 exclude the gwt part and search only for ext which isn't much help.
 Anyway, for all the people using either of these, I figure it might be
 good to get some feedback on the drawbacks and strengths of each and
 have something helpful for everyone like me trying to decide which is
 a good fit. Any ideas? Sorry if I seem abstract, I just thought the
 more general the better.

 Thanks
 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: close dialog box

2008-10-27 Thread rakesh wagh

Use a PopupPanel(with appropriate text and button) instead of
Window.alert. Then use the Timer class to schedule and execute
whatever you feel like.

Rakesh Wagh

On Oct 27, 10:48 am, nano [EMAIL PROTECTED] wrote:
 hello,
 I want to know if if there is a fonction like window.alert(hello),
 lets you close dialog box after a few seconde without click ok of
 dialog box.

 thank's,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: FastStringMap is not public class

2008-10-18 Thread rakesh wagh

u gotta make a copy and change the private to public. Seems to be the
only way for now. Check this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/22c37ad1ba4950fc/d98c8ecb0b33b993?lnk=gstq=FastStringMap#d98c8ecb0b33b993

Try to avoid string as keys in your hashmaps. We use longs, ints
etc... Default hahsmap implementation for string keys is relatively
slow.

Rakesh Wagh

On Oct 17, 6:52 pm, Andrej Harsani [EMAIL PROTECTED] wrote:
 I'm talking about com.google.gwt.user.client.ui.FastStringMap - class
 which is already in GWT...

 On Oct 18, 1:16 am, kozura [EMAIL PROTECTED] wrote:

  Only a small subset of the Java library is emulated for use on the
  client side; 
  seehttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=RefJ

  You can use any library you desire for server-side code, but on the
  client everything has to be properly emulated to handle javascript and
  browser compatibility issues, so is limited to the above set.  The 4x
  better performance might be true in Java, but does not correlate at
  all to how it might be implemented in js!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: FastStringMap is not public class

2008-10-18 Thread rakesh wagh

FYI:
http://code.google.com/p/google-web-toolkit/issues/detail?id=672can=1q=hashmap

On Oct 17, 6:52 pm, Andrej Harsani [EMAIL PROTECTED] wrote:
 I'm talking about com.google.gwt.user.client.ui.FastStringMap - class
 which is already in GWT...

 On Oct 18, 1:16 am, kozura [EMAIL PROTECTED] wrote:

  Only a small subset of the Java library is emulated for use on the
  client side; 
  seehttp://code.google.com/docreader/#p=google-web-toolkit-doc-1-5t=RefJ

  You can use any library you desire for server-side code, but on the
  client everything has to be properly emulated to handle javascript and
  browser compatibility issues, so is limited to the above set.  The 4x
  better performance might be true in Java, but does not correlate at
  all to how it might be implemented in js!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Graphs in pdf file

2008-10-16 Thread rakesh wagh

sridhar, you need to understand:
- gwt and gchart is a js/browser based technology.
- there are no js/client based pdf libs till date(that i know of).
- your only option is to generate pdf on the server and provide a url
for the user to download.
- on the server you can use various reporting tools like jasper etc.
or you could simply use itext.
- the bottom line here is that you cannot use the output of gchart in
your pdf on server side.
- There are quite a free easy to use, good looking chart generation
apis for the server.

on the other hand:
- Using jtidy and xsl-fo you can create pdf from a html.
- You can always instantiate your gchart on the server and generate
the output as dom string(viz html!).
- with that said, technically you should get a gchart in pdf even on
the server.

But good luck if you are following that approach. Because as per my
experience it takes quite some effort to extract anything meaningful
out of xsl-fo.



On Oct 15, 3:05 am, sridhar [EMAIL PROTECTED] wrote:
 Hi all,

  I have generated some graphs using gwt's GChart.jar.Now i want that
 graphs to be generated in  pdf file.how can i do that pls help me.
 regards,
 sridhar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: width and height attributes when replacing an Image URL

2008-10-16 Thread rakesh wagh

So what is your question?

If you fix a width like 200px etc for a image widget, any image
loaded inside it will resize itself to that dimension. In order to get
away from that, assign either 100% or blank string  or any thing
that is not a width. And the browser will ignore it.

Rakesh Wagh


On Oct 15, 9:16 am, David E. [EMAIL PROTECTED] wrote:
 I was having problems with old images maintaing their width and
 height attributes when replaced with new images with the same url.
 i.e. the image at the url is replaced with a different image.

 Unfortunately, the option of changing the image file name to force new
 values for width and height was not an option in my case.

 While researching a solution, I discovered that if I add the following
 lines to remove the width and height attributes which are never
 updated when the image at the url are changed, the image is resized
 appropriately both in hosted and web mode. I am using GWT 1.4.61

 DOM.removeAttribute(image.getElement(), width);
 DOM.removeAttribute(image.getElement(), height);
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Displaying lists in a cell in a Flextable

2008-10-16 Thread rakesh wagh

dont see anything wrong in what you are doing. as walden suggested,
inspect your dom in firebug. I think it could be a style related
issue.

On Oct 15, 5:59 am, craige [EMAIL PROTECTED] wrote:
 Hi

 I am trying to insert some HTML into a cell in a Flextable which
 includes a list (ordered/ordered it makes no difference). I use the
 setHTML method to set the contents of the cell but  when displayed,
 the list markers are not displayed rendered at all i.e. no bullet
 points and no numerical markers.

 Other markup such as the b tags is rendered correctly as you would
 expect.

 The code which I am using to set the contents of the cell follows.

 faultDescriptionTable.setHTML(1,0,faultDetails.description);

 and faultDetails.description is set to

 This is a test of the systembrbrullia test/lilimore of a
 test/lilianother test/lilianother testbr/li/ul

 Has anybody any ideas what might be going on here? I'm using GWT 1.5
 on linux and firefox 3 and opera.

 Cheers

 Craige
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Most efficient way to transfer larger amounts of data via RPC?

2008-10-13 Thread rakesh wagh

 3. Is there another way all together that I could approach this to get
 the data to the client faster?
For this specific scenario use RequestBuilder on client and a
traditional servlet on the server.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announce: MathEclipse GWT module 0.0.6 released

2008-09-07 Thread rakesh wagh

great, keep up the good work!

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Google Chrome and GWT Apps Speed. Fred Sauer. HornetBlast

2008-09-05 Thread rakesh wagh

nice fun game... chrome is fast indeed. Chrome feels more like Opera.
We now have 3 good browsers!

Some of our DOM intensive gwt screens run at least 12 times faster
when compared to IE. However firefox rendered them as fast if not
faster. What makes chrome different is the multi process architecture.
Finally javascript is treated as first class citizens! Thanks to
chrome and firefox.

for those interested in chrome speed, try this canvas based game in
your fav browser and chrome. the difference is significant(at least on
my machine)
http://www.abrahamjoffe.com.au/ben/canvascape/textures.htm

Did any one notice the DOM Inspect feature in Chrome? Very handy and
useful. Wish they add some form of Adblock capability too! Few more
features, and chrome will be my primary browser! :)



On Sep 2, 2:40 pm, Gabriel Krupa [EMAIL PROTECTED] wrote:
 Hello,

 I have just tried the Demo Game from Fred Sauer with 
 GoogleChrome.http://allen-sauer.com/com.allen_sauer.gwt.game.hornetblast.HornetBla...

 This is so fast with GoogleChrome.
 I have compared this with IE7, FF3 Vista Business 8 GB, Intel Core 2
 Quad 2.4 GHz.

 Greetings from Frankfurt,
 Gabriel.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: GWT 1.5 Now Available

2008-08-29 Thread rakesh wagh

great milestone achievement. Entire gwt community was looking fwd for
this release. congrats gwt team for all the hard work put in.

Cannot wait to see what features are planned for 1.6 :)

Rakesh Wagh

On Aug 28, 7:44 pm, Bruce Johnson [EMAIL PROTECTED] wrote:
 Hi everyone,

 The GWT team is proud to announce that GWT 1.5 is now officially released!

 GWT Home:

    http://code.google.com/webtoolkit/

 Download:

    http://code.google.com/webtoolkit/download.html

 Announcement:

    http://googlewebtoolkit.blogspot.com/2008/08/gwt-15-now-available.html

 Developer's Guide:

    http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5

 This has been a big development cycle, and we're really excited about the
 advancements in GWT over the last year. As always, we're eager to hear your
 feedback once you've tried this new version.

 GWT 1.5 would not have been possible without the immense contributions of
 code and ideas from the GWT open source community. Thank you, thank you,
 thank you.

 Cheers,
 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to send a dom document to a server

2008-08-28 Thread rakesh wagh

you can do toString() on any widget. This will return you the entire
html dom. This dom can be send through json or rpc back to your
server. If you are getting a html dom string back from the server(with
our without manipulation), you can render it using innerHTML()
function.


Rakesh Wagh

On Aug 27, 10:26 am, max_gtbd [EMAIL PROTECTED] wrote:
 Hi,
 I'm writing a web app to modify an xml document.
 the document is first loaded from a server.
 then the modified document has to be sent back to the server.

 I can't find a way to send the document back.

 thx if you can help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---