Re: Google Maps 1.0 Library access to native underlying GMap2 object ...

2009-01-11 Thread Luciano Broussal

Hi Eric, Adam,

thanks for your responses.

getPeer() rocks  perfectly!

Thanks

Luciano

On 11 jan, 00:44, Eric Ayers zun...@google.com wrote:
 Try the getPeer() method on MapWidget

 On Sat, Jan 10, 2009 at 2:14 PM, Luciano Broussal 



 luciano.brous...@gmail.com wrote:

  hum,

  the real underlying Gmap2 object is her into the WidgetMap object

   /* Reference to GMap2 object. */
   private final JavaScriptObject jsoPeer;

  do you have nay idea how i can access this object 

  Thanks

  On 10 jan, 20:07, Luciano Broussal luciano.brous...@gmail.com wrote:
   Hi all and happy new year to all!

   I'm using the Google Maps 1.0 Library and need to access the
   $wnd.GMap2 defined into the MapImpl.class

   Is ther any tip to access this object since its java security privacy
   is friendly and there is no getter available into the MapWidget
   returning the native javascript Object i wish to access ...

   I did try  to reference  directly $wnd.GMap2 in my native method which
   need the map without success.

   Any help is welcome.

   Best regards.

   Luciano
   --http://www.gwtwindowmanager.org

 --
 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 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Google Maps 1.0 Library access to native underlying GMap2 object ...

2009-01-11 Thread Luciano Broussal

Thread closed and resolved!

I like to put that because some thread have plenty of answers but you
sometime don't know if it has a solution ;)

Maybe it would be a suggestion to google forum developpers to had a
feature to have the capability to mark the state of the thread (open,
resolved , )

Thanks.

Luciano

On 11 jan, 00:50, Adam T adam.t...@gmail.com wrote:
 or if there's a method as Eric mentions, use that :)
 //A

 On 11 Jan, 00:48, Adam T adam.t...@gmail.com wrote:

  .possibly through a JSNI method - pass the WidgetMap object in as
  a parameter and then return the field.  I seem to recall doing
  something similar with something else, but can't find my code, i.e.
  something like the following might work:

  public native JavaScriptObject getGMap2(WidgetMap map)/*-{
      return m...@com.google.widgetmap::jsoPeer;

  }-*/;

  Good Luck!

  //Adam

  On 10 Jan, 20:14, Luciano Broussal luciano.brous...@gmail.com wrote:

   hum,

   the real underlying Gmap2 object is her into the WidgetMap object

    /* Reference to GMap2 object. */
     private final JavaScriptObject jsoPeer;

   do you have nay idea how i can access this object 

   Thanks

   On 10 jan, 20:07, Luciano Broussal luciano.brous...@gmail.com wrote:

Hi all and happy new year to all!

I'm using the Google Maps 1.0 Library and need to access the
$wnd.GMap2 defined into the MapImpl.class

Is ther any tip to access this object since its java security privacy
is friendly and there is no getter available into the MapWidget
returning the native javascript Object i wish to access ...

I did try  to reference  directly $wnd.GMap2 in my native method which
need the map without success.

Any help is welcome.

Best regards.

Luciano
--http://www.gwtwindowmanager.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC Error while running on Glassfish

2009-01-11 Thread Valavanur Man

Has anyone faced similar issue? Can you please throw some light?

On Jan 9, 2:38 pm, GWTFan valavanur...@gmail.com wrote:
 We are using GWT 1.5.3.

 On Jan 9, 2:38 pm, GWTFan valavanur...@gmail.com wrote:

  I'm getting the following error while trying to run our application on
  Glassfish High Availability server Version 9.1.

  However the same application runs well on Glassfish Version 9.1
  Developer edition.

  Can anyone help?

  [#|2009-01-09T14:32:37.858-0800|SEVERE|sun-appserver9.1|
  javax.enterprise.system.container.web|
  _ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=570535ce-
  d13f-40a9-8ab3-6fec976c27e6;|WebModule[/Tims]Exception while
  dispatching incoming RPC call
  com.google.gwt.user.client.rpc.SerializationException:
  java.lang.reflect.InvocationTargetException
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
  (ServerSerializationStreamWriter.java:696)
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl
  (ServerSerializationStreamWriter.java:659)
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
  (ServerSerializationStreamWriter.java:593)
          at
  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
  (AbstractSerializationStreamWriter.java:129)
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
  $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
          at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue
  (ServerSerializationStreamWriter.java:530)
          at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
  573)
          at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
  (RPC.java:441)
          at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
  (RPC.java:529)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
  (RemoteServiceServlet.java:164)
          at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
  (RemoteServiceServlet.java:86)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:
  738)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:
  831)
          at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown
  Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke
  (DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.apache.catalina.security.SecurityUtil$1.run
  (SecurityUtil.java:276)
          at java.security.AccessController.doPrivileged(Native Method)
          at javax.security.auth.Subject.doAsPrivileged(Subject.java:
  517)
          at org.apache.catalina.security.SecurityUtil.execute
  (SecurityUtil.java:309)
          at org.apache.catalina.security.SecurityUtil.doAsPrivilege
  (SecurityUtil.java:192)
          at
  org.apache.catalina.core.ApplicationFilterChain.servletService
  (ApplicationFilterChain.java:404)
          at org.apache.catalina.core.StandardWrapperValve.invoke
  (StandardWrapperValve.java:290)
          at org.apache.catalina.core.StandardContextValve.invokeInternal
  (StandardContextValve.java:271)
          at org.apache.catalina.core.StandardContextValve.invoke
  (StandardContextValve.java:202)
          at org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:632)
          at org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:577)
          at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
  94)
          at org.apache.catalina.core.StandardHostValve.invoke
  (StandardHostValve.java:206)
          at org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:632)
          at org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:577)
          at org.apache.catalina.core.StandardPipeline.invoke
  (StandardPipeline.java:571)
          at org.apache.catalina.core.ContainerBase.invoke
  (ContainerBase.java:1080)
          at org.apache.catalina.core.StandardEngineValve.invoke
  (StandardEngineValve.java:150)
          at org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:632)
          at org.apache.catalina.core.StandardPipeline.doInvoke
  (StandardPipeline.java:577)
          at org.apache.catalina.core.StandardPipeline.invoke
  (StandardPipeline.java:571)
          at org.apache.catalina.core.ContainerBase.invoke
  (ContainerBase.java:1080)
          at org.apache.coyote.tomcat5.CoyoteAdapter.service
  (CoyoteAdapter.java:272)
          at
  com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter
  (DefaultProcessorTask.java:637)
          at
  com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess
  (DefaultProcessorTask.java:568)
          at
  

Re: RPC Error while running on Glassfish

2009-01-11 Thread Joe Cole

Looks like you have a permissions issue:
Caused by: java.security.AccessControlException: access denied
(java.lang.reflect.ReflectPermission suppressAccessChecks)

I would check the glassfish docs on how to allow reflection for your
servlets. Security must be turned off in the dev version.

On Jan 11, 10:38 pm, Valavanur Man mramad...@gmail.com wrote:
 Has anyone faced similar issue? Can you please throw some light?

 On Jan 9, 2:38 pm, GWTFan valavanur...@gmail.com wrote:

  We are using GWT 1.5.3.

  On Jan 9, 2:38 pm, GWTFan valavanur...@gmail.com wrote:

   I'm getting the following error while trying to run our application on
   Glassfish High Availability server Version 9.1.

   However the same application runs well on Glassfish Version 9.1
   Developer edition.

   Can anyone help?

   [#|2009-01-09T14:32:37.858-0800|SEVERE|sun-appserver9.1|
   javax.enterprise.system.container.web|
   _ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-3;_RequestID=570535ce-
   d13f-40a9-8ab3-6fec976c27e6;|WebModule[/Tims]Exception while
   dispatching incoming RPC call
   com.google.gwt.user.client.rpc.SerializationException:
   java.lang.reflect.InvocationTargetException
           at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer
   (ServerSerializationStreamWriter.java:696)
           at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl
   (ServerSerializationStreamWriter.java:659)
           at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize
   (ServerSerializationStreamWriter.java:593)
           at
   com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject
   (AbstractSerializationStreamWriter.java:129)
           at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
   $ValueWriter$8.write(ServerSerializationStreamWriter.java:146)
           at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue
   (ServerSerializationStreamWriter.java:530)
           at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:
   573)
           at com.google.gwt.user.server.rpc.RPC.encodeResponseForSuccess
   (RPC.java:441)
           at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
   (RPC.java:529)
           at
   com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
   (RemoteServiceServlet.java:164)
           at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
   (RemoteServiceServlet.java:86)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:
   738)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:
   831)
           at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown
   Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke
   (DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:585)
           at org.apache.catalina.security.SecurityUtil$1.run
   (SecurityUtil.java:276)
           at java.security.AccessController.doPrivileged(Native Method)
           at javax.security.auth.Subject.doAsPrivileged(Subject.java:
   517)
           at org.apache.catalina.security.SecurityUtil.execute
   (SecurityUtil.java:309)
           at org.apache.catalina.security.SecurityUtil.doAsPrivilege
   (SecurityUtil.java:192)
           at
   org.apache.catalina.core.ApplicationFilterChain.servletService
   (ApplicationFilterChain.java:404)
           at org.apache.catalina.core.StandardWrapperValve.invoke
   (StandardWrapperValve.java:290)
           at org.apache.catalina.core.StandardContextValve.invokeInternal
   (StandardContextValve.java:271)
           at org.apache.catalina.core.StandardContextValve.invoke
   (StandardContextValve.java:202)
           at org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:632)
           at org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:577)
           at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:
   94)
           at org.apache.catalina.core.StandardHostValve.invoke
   (StandardHostValve.java:206)
           at org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:632)
           at org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:577)
           at org.apache.catalina.core.StandardPipeline.invoke
   (StandardPipeline.java:571)
           at org.apache.catalina.core.ContainerBase.invoke
   (ContainerBase.java:1080)
           at org.apache.catalina.core.StandardEngineValve.invoke
   (StandardEngineValve.java:150)
           at org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:632)
           at org.apache.catalina.core.StandardPipeline.doInvoke
   (StandardPipeline.java:577)
           at org.apache.catalina.core.StandardPipeline.invoke
   (StandardPipeline.java:571)
           at 

Re: passing parameters from JSP to GWT

2009-01-11 Thread Chii

Why is it not secure to pass parameters from client side (whatever
that actually means...)?

I say the second method of defining a GWT Dictionary in JSP is the
easiest way. Or, instead of GWT Dictionary, use javascript overlays:
define a custom javascript object in the page, and access it through
javascript overlays. Advantage is type safety, and autocomplete.

~Chii

On Jan 11, 4:31 am, wera svet...@gmail.com wrote:
 Hi All,

 I am adding a GWT component in JSP. It should receive several
 parameters to know how to present data (for example, how many buttons
 should be, what is the selected value in a drop-down, etc.)

 The question is how to pass parameters from JSP to GWT.

 I saw several ways to do it:
 1) Go to server, for example using RPC (I prefer not doing this - to
 save time and minimize number of requests to server)

 2) Pass parameters from client side (might be not secure). I saw 2
 ways:
    -define in JSP a GWT Dictionary to contain a map of values that GWT
 component needs
    -add parameters on request - in include of GWT noscript.js

 What is the best practice?

 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: JDBC postrges under gwt

2009-01-11 Thread Aka ray

Great!! Thanks to all of you!!
I will try it out soon!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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
-~--~~~~--~~--~--~---



step by step to build entire web app with gwt1.5

2009-01-11 Thread asianCoolz

is such tutorial available?  i glanced through some of the existing,
most will either teach you to create calculator, or explain about
theory.  none of them actually teach you step by step to create web
app with user login form, shopping cart..etc...

can anyone recommend good 1.5 tutorials?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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 deselect first item in a listbox

2009-01-11 Thread Smith

The first item in a multiple selection list box is selected by default
in IE. This does not happen in Mozilla. Is there a workaround for
this?

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



Proxy class generation

2009-01-11 Thread Madhu CM

Hi all,
I am new to GWT, and i like the way its been implemented.
But i am struck up with something  I use simple application just
to do RPC.
when i do GWT.create() . where will be the proxy class generated ?
is it done dynamically?dynamically create object for Async?? please
explain about this .

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: Does Google offer GWT consulting services?

2009-01-11 Thread Joseph M

My guess is GWT is too new, and still in active open source
development for such an endorsement to be made, which would alienate
those developers not included.

On Jan 10, 10:19 pm, David E. dve1...@gmail.com wrote:
 Does Google provides GWT consulting services and/or is there a Google
 approved list of GWT consulting companies?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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
-~--~~~~--~~--~--~---



YAJRSQ (Yet Another JPA Related Serialization Question)

2009-01-11 Thread Jon Friesen

Greetings GWT experts,

Sorry, it's yet another post on the topic of serializing entities
retrieved from a JPA provider.  In this case I'm using Toplink on
Glassfish which hasn't been addressed too much in these discussions
yet.

I'm retrieving an object called OperatingSystem from the JPA layer and
trying to pass it to GWT.  Toplink does bytecode instrumentation to
add a field called _toplink_flavor_vh (type
oracle.toplink.indirection.ValueHolder).  Predictably GWT barfs with:

   Caused by: com.google.gwt.user.client.rpc.SerializationException:
   Type 'oracle.toplink.essentials.indirection.ValueHolder' was not
included in the
   set of types which can be serialized by this SerializationPolicy or
its Class
   object could not be loaded. For security purposes, this type will
not be
   serialized.

Theoretically I could add the source for ValueHolder as a GWT module
in order to make it serializable, but since _toplink_flavor_vh is not
really part of my bean I'd rather it be treated as transient and
skipped completely.  The compiled javascript version of my object
won't have the instrumented field on the client side anyways, so
serializing and transmitting the values of _toplink_flavor_vh over the
wire is a waste.

So here's my question.  Is there a way for me to get the field
_toplink_flavor_vh to be treated as transient when my OperatingSystem
object is serialized (remember that the source code for
OperatingSystem.java does not contain the field so I cannot add the
transient keyword; the field is added later by Toplink via bytecode
instrumentation).  Is this a scenario for a custom serializer? (a
crude hack would be to treat any field beginning with underscore as
transient, which I think would work for all Toplink-added fields)


(Incidentally, I tried using Dozer to make a detached copy of my
object, which I think works with Hibernate, but since Toplink is
adding fields directly to my class, even a detached object created
with new OperatingSystem() has the TopLink field.  I've only been
able to succeed by creating separate DTO class, which I'd like to
avoid if possible.  In any case it feels redundant to make a deep
clone of my objects just before GWT-RPC does a deep serialization of
them)

Looking forward to your thoughts!
Jon

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Unable to open web app in hosted mode

2009-01-11 Thread Sahil Dave
Does anyone know what this error is..?
whenever i create a new project, the default files run perfectly fine in
hosted mode.


On Sat, Jan 10, 2009 at 12:55 AM, Sahil Dave sahil.dav...@gmail.com wrote:

 Hi..

 i am getting the following errors in console while trying to open web app
 in hosted mode

 Locking assertion failure.  Backtrace:
 #0 /usr/lib/libxcb-xlib.so.0 [0xb4c4f7c7]
 #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb4c4f891]
 #2 /usr/lib/libX11.so.6(_XReply+0x254) [0xb4feb494]
 #3 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e4722e]
 #4 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e25ed7]
 #5 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e26188]
 #6
 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
 [0xb0e2648f]
 #7 [0xb5c9868e]
 #8 [0xb5c90e9d]
 #9 [0xb5c90e9d]
 #10 [0xb5c8e207]
 #11 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
 #12 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x63057d8]
 #13 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x6209510]
 #14
 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
 [0x625f38b]
 #15
 /home/sahil/jdk1.6.0/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
 [0xb7ca996d]
 #16 [0xb5c9868e]
 #17 [0xb5c90d37]
 #18 [0xb5c8e207]
 #19 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
 Locking assertion failure.  Backtrace:
 #0 /usr/lib/libxcb-xlib.so.0 [0xb4c4f7c7]
 #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb4c4f96e]
 #2 /usr/lib/libX11.so.6 [0xb4fea619]
 #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb4fe0666]
 #4 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e25189]
 #5 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e253d5]
 #6 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so [0xb0e26239]
 #7
 /home/sahil/jdk1.6.0/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x2f)
 [0xb0e2648f]
 #8 [0xb5c9868e]
 #9 [0xb5c90e9d]
 #10 [0xb5c90e9d]
 #11 [0xb5c8e207]
 #12 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x620967d]
 #13 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x63057d8]
 #14 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so [0x6209510]
 #15
 /home/sahil/jdk1.6.0/jre/lib/i386/client/libjvm.so(JVM_DoPrivileged+0x34b)
 [0x625f38b]
 #16
 /home/sahil/jdk1.6.0/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d)
 [0xb7ca996d]
 #17 [0xb5c9868e]
 #18 [0xb5c90d37]
 #19 [0xb5c8e207]


 Does anyone know how to resolve this.

 --
 Sahil




-- 
Sahil

MCA(SE)
USIT
GGSIPU, Kashmere Gate
Delhi

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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 Sahil Dave
On Sat, Jan 10, 2009 at 10:47 AM, A Friend Of Yours
omer.akh...@gmail.comwrote:


 getSelectedItem is protected method. You can't access it unless you
 are extending MenuBar. So, it might not go that way. I guess you need
 a separate Command for each of the MenuItem.


 i am trying to use separate commands for each menu item, but i have to
declare the simplePanel as final before using it inside the execute() of
command.
due to this, once a menu item set the simplePanel's contents, others are not
able to overwrite it.
An exception is also thrown in the GWT shell.

is there a workaround for this or any other much better way in which i can
create the functionality for the Navigation Menu?


-- 
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: Getting java.net.SocketTimeoutException: Read timed out

2009-01-11 Thread paveltonev

Hello All,
I have same problem, using JBoss AS. The most interesting that this
situation occurs only and ifonly I have a very big delay when tracing
the route host i.e. something like 1400ms. I have tested my
application from many locations in the world today but only from one
where the connection seems to be unstable I had such a problem. Here
are my connector settings:

Connector port=8009 address=${jboss.bind.address}
 emptySessionPath=true enableLookups=false
redirectPort=8443
 protocol=AJP/1.3 maxThreads=400
connectionTimeout=60
 compression=force
/


Following the documentation :
http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.0/config/printer/http.html
it seems that keepAliveTimeout = connectionTimeout = 60 = 10 mins

I have lost all the day fixing this problem but nothing can be done
unfortunately. Any help is appreciated!

Best Regards,
Pavel Tonev

On 5 Ян, 11:11, stephen.sm...@paretopartners.com
stephen.sm...@paretopartners.com wrote:
 I had a similar problem and i eventually tracked it down to a looping
 rpc call.

 If you doing a very large request (or many in very quick succession)
 then you will have toreadthe apache docs and edit the settings in
 your web.xml (possibly keep alive) although with the default
 settings of 1min before timeout this is unlikely.

 Hope this helps,
 Steve

 On Jan 4, 10:51 pm, rakesh wagh rake...@gmail.com wrote:

  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 timeoutexception. My guess is some operation on
  server is taking more time than your timeout 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:Readtimedout
    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)- 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
-~--~~~~--~~--~--~---



UI Binder

2009-01-11 Thread ruslanv

Hi guys. According to tis blog entry

http://googlewebtoolkit.blogspot.com/2008/12/whats-ahead-for-google-web-toolkit_10.html

long-awaited UI Binder extension will be released soon. But the main
question is WHEN ? Originally October of 2008 was stated as planned
release date, then after NYE holidays and finally last thing I heard
was will be released this week. Considering that UI Binder is
heavily used (according to member of GWT team) inside Google is there
any real estimate when it's going to be published ? Beta version is
fine, it's enough to try it out.

I'm also curious where it will be published - in GWT incubator project
or as new release of GWT ?

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: passing parameters from JSP to GWT

2009-01-11 Thread wera

Hi Chii, Thank you for your suggestion

Why client side solution is not secure?
Because in JSP the presentation logic was hidden in server. And if I
pass all the parameters to GWT via JavaScript, everyone can play with
it by changing HTML source.

On Jan 11, 2:34 pm, Chii sangohan@gmail.com wrote:
 Why is it not secure to pass parameters from client side (whatever
 that actually means...)?

 I say the second method of defining a GWT Dictionary in JSP is the
 easiest way. Or, instead of GWT Dictionary, use javascript overlays:
 define a custom javascript object in the page, and access it through
 javascript overlays. Advantage is type safety, and autocomplete.

 ~Chii

 On Jan 11, 4:31 am, wera svet...@gmail.com wrote:

  Hi All,

  I am adding a GWT component in JSP. It should receive several
  parameters to know how to present data (for example, how many buttons
  should be, what is the selected value in a drop-down, etc.)

  The question is how to pass parameters from JSP to GWT.

  I saw several ways to do it:
  1) Go to server, for example using RPC (I prefer not doing this - to
  save time and minimize number of requests to server)

  2) Pass parameters from client side (might be not secure). I saw 2
  ways:
     -define in JSP a GWT Dictionary to contain a map of values that GWT
  component needs
     -add parameters on request - in include of GWT noscript.js

  What is the best practice?

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



Serialization problem

2009-01-11 Thread huma

Hi people.

I've been developing an application with hibernate + spring + gwt, and
i've come to a point where i need some help from you!

I know that hibernate generates PersistentBag for Lists ( Hibernate
implementation of List), and I need to serialize this lists. But I
know that GWT doesn't support PersistentBag.

So, and because i've read that we can implement a custom field
serializer, i developed a PersistentBag_CustomFieldSerializer, like
this:

package org.hibernate.collection;

import com.google.gwt.user.client.rpc.SerializationException;
import com.google.gwt.user.client.rpc.SerializationStreamReader;
import com.google.gwt.user.client.rpc.SerializationStreamWriter;

/**
 * Custom field serializer for {...@link
org.hibernate.collection.PersistentBag}.
 */
public final class PersistentBag_CustomFieldSerializer {

public static void deserialize(SerializationStreamReader
streamReader, PersistentBag instance) throws SerializationException {
int size = streamReader.readInt();
for (int i = 0; i  size; ++i) {
Object obj = streamReader.readObject();
instance.add(obj);
}
}

public static void serialize(SerializationStreamWriter
streamWriter, PersistentBag instance) throws SerializationException {
int size = instance.size();
streamWriter.writeInt(size);
for (Object o : instance) {
streamWriter.writeObject(o);
}
}

}

With this development, the server serializes the instance, with no
error, but the client return's a message saying
This application is out of date, please click the refresh button on
your browser.

Could anyone provide with possible hints to solve this error.

Best regards

Hugo Marcelino

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: UI Binder

2009-01-11 Thread Zakaluka

Hi,

The UI Binder is currently listed under the Post-1.6 timeframe.
Seeing as how GWT 1.5.3 is the latest version out there and 1.6 will
come out in the next 3 months, it'll probably be quite a while before
we see UI Binder out in a stable form.

Regards,

z.

ruslanv wrote:
 Hi guys. According to tis blog entry

 http://googlewebtoolkit.blogspot.com/2008/12/whats-ahead-for-google-web-toolkit_10.html

 long-awaited UI Binder extension will be released soon. But the main
 question is WHEN ? Originally October of 2008 was stated as planned
 release date, then after NYE holidays and finally last thing I heard
 was will be released this week. Considering that UI Binder is
 heavily used (according to member of GWT team) inside Google is there
 any real estimate when it's going to be published ? Beta version is
 fine, it's enough to try it out.

 I'm also curious where it will be published - in GWT incubator project
 or as new release of GWT ?

 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: Ibatis + GWT: No source code is available for type com.ibatis.dao.client.DaoManager; did you forget to inherit a required module?

2009-01-11 Thread Arthur Kalmenson

Yes.

--
Arthur Kalmenson



On Wed, Jan 7, 2009 at 3:10 PM, Keven Chan keven.c...@gmail.com wrote:

 Thanks for you reply!!!

 So is that means in order to retreieve data from database via ibatis,
 I have to creat a RPC? or can i call the object/classes from
 com.company.dmt.admin.server.persistence??

 This maybe a stupid question...
 THanks!!

 On Jan 7, 2:49 pm, todd.sei...@gmail.com todd.sei...@gmail.com
 wrote:
 The client portion of your code can only use objects which GWT
 emulates (http://code.google.com/docreader/#p=google-web-toolkit-
 doc-1-5s=google-web-toolkit-doc-1-5t=RefJreEmulation) and objects
 which are in your client package.

 You probably want to move this to your com...server package instead.

 On Jan 7, 2:18 pm, Keven Chan keven.c...@gmail.com wrote:

  Hi all,

  I'm new to GWT and I'm playing around with GWT for a month.

  I tried to insert some ibatisDAO code to GWT, when I compile with
  shell-hosted , i have the following error:

  [TRACE] Removing units with errors
  [ERROR] Errors in 'file:/path/src/java/com/company/dmt/admin/
  client/persistence/DaoConfig.java'
  No source code is available for type com.ibatis.dao.client.DaoManager;
  did you forget to inherit a required module?
  [ERROR] Line 46: No source code is available for type
  java.util.Properties; did you forget to inherit a required module?
  [ERROR] Line 48: No source code is available for type java.io.Reader;
  did you forget to inherit a required module?
  [ERROR] Line 48: No source code is available for type
  com.ibatis.common.resources.Resources; did you forget to inherit a
  required module?
  [ERROR] Line 49: No source code is available for type
  com.ibatis.dao.client.DaoManagerBuilder; did you forget to inherit a
  required module?

  Where com.company.dmt.admin.client.persistence.DaoConfig.java is:
  -
  package com.company.dmt.admin.client.persistence;

  import com.ibatis.common.resources.Resources;
  import com.ibatis.dao.client.DaoManager;
  import com.ibatis.dao.client.DaoManagerBuilder;

  import java.io.Reader;
  import java.util.Properties;

  public class DaoConfig {

  private static final String resource = com/company/dmt/admin/
  persistence/dao.xml;
  private static final DaoManager daoManager;

  static {
  try {
  daoManager = newDaoManager(null);
  } catch (Exception e) {
  throw new RuntimeException(Description.  Cause:  + e,
  e);
  }

  }

  public static DaoManager getDaoManager() {
  return daoManager;
  }

  public static DaoManager newDaoManager(Properties props) {
  try {
  Reader reader = Resources.getResourceAsReader(resource);
  return DaoManagerBuilder.buildDaoManager(reader, props);
  } catch (Exception e) {
  throw new RuntimeException(Could not initialize
  DaoConfig.  Cause:  + e, e);
  }
  }}

  -

  Please help me find out why gwt compiler can't recognize the import -
  import com.ibatis.common.resources.Resources;
  import com.ibatis.dao.client.DaoManager;
  import com.ibatis.dao.client.DaoManagerBuilder;

  Thankss in advance!!
  Keven
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Focused training/consulting?

2009-01-11 Thread medgey

I don't think there is any way to make things compile much faster.  I
think the real question is why you think you need hundreds of
modules.  Does your website really need hundreds of small RIAs?  I
cannot think of too many situations where this would be needed.

I have used JPA and GWT in an application before without too many
problems but not Spring (the app was a standalone RIA).

Although debugging is a nice GWT feature it is not its strongest
advantage - the organized OO-method of UI web design and AJAX
integration are by far the most important aspects of the toolkit.

Regards,

Matt

On Jan 9, 5:29 pm, Steve Anthony stephencanth...@gmail.com wrote:
 Hi,

 My engineering team took the last month to use GWT to implement new
 pages for our UI. We had a world of trouble around interactions with
 Spring  Hibernate. It was bad enough that the main GWT advantage
 (productivity increases from easier debugging) was not realized.

 Likewise, we had some issues around compilation speed, 1-2 minutes to
 compile a single module, for example. Think hundreds of modules, and
 this isn't going to scale.

 I'm looking to see if there are any recommendations for people who
 could provide a _focused_ training session; a few days to help us
 understand how to work the technology interactions so that we can
 improve our productivity. We know the basics; but are having trouble
 adapting the technology into our stack and making effective use of it.

 Recommendations gratefully welcome.

 Steve
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: ThreadLocal support

2009-01-11 Thread medgey

I think code re-use is the only valid scenario right now.  For
example, a previously developed component that could otherwise be
compiled to JavaScript by GWT cannot because it uses ThreadLocal.

Matt

On Jan 10, 3:15 pm, Ian Petersen ispet...@gmail.com wrote:
 On Sat, Jan 10, 2009 at 6:34 AM, cobracbh cobra...@gmail.com wrote:
  But on the other hand, we could also use ThreadLocal pattern to share
  some data among multiple different method invocations.

 It sounds like you want a public static member on a class somewhere.
 Depending on whether you want to share data in a read-only fashion or
 a read-write fashion, or a mix, with some call-sites allowed
 read-write and other restricted to read-only, you may want a public
 static final member variable, a public static member variable, a
 public static getter method, or a public static getter paired with a
 public static setter.

 That's the long way of saying you want a global variable, and Java has
 many ways to support that.  ThreadLocal support is not even close to
 necessary for your use-case.

 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: Running code on server at startup

2009-01-11 Thread medgey

You can write a startup servlet that has an init method.  In your
web.xml add the load-on-startup element to your servlet entry.

With regards to GWT hosted mode I also had problems with init servlets/
context listeners.

Matt

On Jan 9, 10:36 am, Brad Larson bklar...@gmail.com wrote:
 Thanks jhulford!

 A servlet context listener seems to be the perfect solution.  Is there
 a GWT-approved way to register one with the hosted-mode Tomcat
 server?  I searched the forums a bit, but only found a few 
 hacks:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 Thanks!
 -Brad

 On Jan 9, 8:29 am, jhulford jhulf...@gmail.com wrote:

  You can use a servlet context listener to initialize your application
  too.

  On Jan 8, 12:20 pm, Brad Larson bklar...@gmail.com wrote:

   Hello friends,

   What is the best way to run code on my server when my servlet is
   loaded?  I'd like to do some database initialization work which the
   servlet is expecting.  I could use a static variable in the servlet to
   see if it is being ran for the first time, and do the init there, but
   that seems like a hack to me.

   I have googled around and found a couple references to
   ServletContextAttributeListener, but that seems like just as big of a
   hack.  Is there a GWT-approved method for doing anything like this?

   Thanks!
   -Brad
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: can gwt work with javax.swing.* ?

2009-01-11 Thread DaBlick

GWT gets translated to Javascript.

Now, you might argue So?  I heard Swing is pure Java.   Why can't
SWING by translated by the compiler to JS?

The answer is because while Swing is pure Java, it is layered on top
of AWT which is anything BUT pure Java.

Thinking SWT?  Don't go there.  Like Swing it also uses native methods
(real native methods (calls to C code), not JSNI) too.

Where Swing and SWT ultimately make calls to native heavyweight
platform specific components, GWT makes calls to the browsers dom
handling interfaces via Javascript.

   db

On Jan 10, 2:31 pm, mikedshaf...@gmail.com mikedshaf...@gmail.com
wrote:
 OK, one of the things that you have to wrap your head around is how
 GWT works.  You write GWT using Java, but then the GWT compiler
 converts this into Javascript  HTML.  It can only do this to Java
 that it specifically knows about.  Your Swing JLabel component is not
 something GWT understands and therefore it can't compile it out into
 Javascript.  The strength of GWT is that you develop in Java, but if
 your code is going to be run in the browser, it has to be Java that is
 compatible with the GWT Compiler.

 Hope this helps.

 Later,

 Shaffer

 On Jan 10, 1:32 am, mars marsg...@gmail.com wrote:

  hi, all

  i m developing an gwt(actually gwt-ext) application, and need to use
  an external package which is mainly written with java awt and javax
  swing.  when i try to add that swing component to gwt panel, it won't
  pass through my question is 'does gwt work with swing'?

  my code is as below:

              ChartViewer viewer = new ChartViewer(); (ChartViewer is a
  subclass of the SWING JLabel component.)

              createChart(viewer, 0);
              VerticalPanel mainPanel = new VerticalPanel();
              mainPanel.add(viewer);  --- this one won't pass
  through

  please give me some help. thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-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: java.io.Serializable

2009-01-11 Thread Arthur Kalmenson

If you're integrating with Spring MVC, I found problems using
java.io.Serializable. Switching to IsSerializable fixed the problems.

--
Arthur Kalmenson



On Fri, Jan 9, 2009 at 7:17 AM, tomekp tom...@mailinator.com wrote:

 hi,
 According to GWT documentation (http://code.google.com/support/bin/
 answer.py?hl=enanswer=78126), it should be possible to use
 java.io.Serializable instead of IsSerializable interface.
 But for me even the simpliest classes cannot be serialized when I
 switch from IsSerializable to Serializable.
 I checked that the automatically generated whitelist contains right
 entries. I checked the hosted and web mode.
 I always get the following exception:

 Caused by: com.google.gwt.user.client.rpc.SerializationException: Type
 'ch.systemsx.cisd.openbis.generic.client.web.client.dto.X' was not
 assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did
 not have a custom field serializer.  For security purposes, this type
 will not be deserialized.
at
 com.google.gwt.user.server.rpc.impl.LegacySerializationPolicy.validateDeserialize
 (LegacySerializationPolicy.java:123)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize
 (ServerSerializationStreamReader.java:490)
at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject
 (AbstractSerializationStreamReader.java:61)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
 $ValueReader$8.readValue(ServerSerializationStreamReader.java:131)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue
 (ServerSerializationStreamReader.java:372)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:287)
... 35 more

 For some reason always the LegacySerializationPolicy class is used.
 I'm using GWT 1.5.
 Any ideas what can be wrong? Has anyone succeeded to use Serializable
 interface?

 Greetings
  Tomek

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: GWT vs. Adobe Flex for UI development when J2EE/Spring is used for middle tier/server programming

2009-01-11 Thread Arthur Kalmenson

That really depends on what you're trying to do. If you want to build
a multimedia website that's going to have a lot of video streaming and
audio, then you're better off with Flex. However, if you want a snappy
and clean web application, you're better off with GWT. I haven't been
particularly impressed with the performance of Flex websites. Even
large websites like http://parleys.com are slow on my brand new MBP on
a 1 MB/s connection. And while Flex is the perfect candidate for
Parleys, I definitely wouldn't want web applications I'm working on to
be that slow.

--
Arthur Kalmenson



On Fri, Jan 9, 2009 at 4:32 PM, j2ee_nyc success...@yahoo.com wrote:

 Flex is a bit of an anomally, it's not Javascript really, but it's not
 Java based either.  When it comes down to what the choice is it's
 simple:  is it valuable to your development process to have a second
 language stack in your solution?  If your server side is Java, your
 client side is either Javascript or Flex (is it still called
 Actionscript, it's been a while).  Or you write your server in Java
 AND your client in Java, and allow your compiler to optimize the
 client code to it's application container...that's what GWT does.
 Plain and simple.

 I think the main issue with any framework that generates JavaScript
 is that it remains a JavaScript solution behind the scenes. Therefore,
 it retains the limitations of JavaScript and some issue with browser
 compatibility. Seems that Flex tries to accomplish something similar
 to Java Applets by providing a solution that works from within a
 plugin (Flash). Logically, that seems to give Flex a much more power
 UI that can potentially perform and work better than any JavaScript
 solution. So, that would be my question: are Flex developers so
 excited because the hype of cute UI, or because they believe that
 Flex is a better long term solution than any JavaScript based
 solution, be that GWT, Dojo, JQuery, etc.?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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 selection list box setselectedIndex does not work

2009-01-11 Thread Arthur Kalmenson

Why not add an empty item to index 0? I usually leave index 0 for
something like Select a blah.

--
Arthur Kalmenson



On Fri, Jan 9, 2009 at 5:47 PM, Smith smitha.kang...@gmail.com wrote:

 I have a multiple selection list box and when the page loads, I don't
 want any item to be selected. I gave setselectedIndex(-1) and that
 didn't work on IE. Is there any other way to do this?

 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: Writing own annotations in GWT

2009-01-11 Thread Arthur Kalmenson

You can create any annotations you want, but they will be stripped out
during the GWT compilation process because there is no concept of
annotations during runtime (in Javascript). You can use annotations in
your client side classes and process them using generators during the
GWT compilation process to generate any additional code you want.

--
Arthur Kalmenson



On Sat, Jan 10, 2009 at 12:18 PM, kuri...@googlemail.com
kuri...@googlemail.com wrote:

 Hi,

 is it possible to write my own annotations for GWT?
 My Problem is how the get access to the value of the annotation after
 i created it?
 clazz.getAnnotation(Annotation.class) can't work, because of the
 binding mechanism of GWT.

 Any Help?

 Thank you
 Eeth

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: step by step to build entire web app with gwt1.5

2009-01-11 Thread Arthur Kalmenson

There are many, many solutions to these problems. You can either build
these yourself (reinvent the wheel) or use existing technologies like
Spring Security, etc. However, none of these technologies are related
to GWT. If you're looking for a good book to cover real world use of
GWT, check out Pro Web 2.0 Application Development with GWT by Jeff
Dwyer and published by Apress.

--
Arthur Kalmenson



On Sun, Jan 11, 2009 at 10:34 AM, asianCoolz jim.the...@gmail.com wrote:

 is such tutorial available?  i glanced through some of the existing,
 most will either teach you to create calculator, or explain about
 theory.  none of them actually teach you step by step to create web
 app with user login form, shopping cart..etc...

 can anyone recommend good 1.5 tutorials?
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Does Google offer GWT consulting services?

2009-01-11 Thread Arthur Kalmenson

Not that I know of, but there are a lot of developers who are willing
to offer GWT consulting services. I believe Jason Essington is one of
them.

--
Arthur Kalmenson



On Sat, Jan 10, 2009 at 10:19 PM, David E. dve1...@gmail.com wrote:

 Does Google provides GWT consulting services and/or is there a Google
 approved list of GWT consulting companies?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Focused training/consulting?

2009-01-11 Thread gregor

Hi Steve,

1. I concur with Matt that the biggest advantage of GWT is writing
AJAX client in Java instead of javascript - if you are writing a large
application then this will pay off hand over fist in the long run.

2. Start up troubles depend on the direction your team come from. Java
people tend to have trouble with CSS and HTML rules, whereas
javascript/HTML people tend to have difficulty getting OO and Java
rules. What you've got is really good toolkit but you have to learn
how it works to use it well.

3. I don't think there are any major difficulties in addressing Spring
from GWT RPC servlets - there are numerous resources on that around -
but there is an issue with Hibernate (and any other ORM/JPA system).
The problem is that ORM frameworks support lazy loading and to do that
they adorn your persistent domain classes with various proxies and
special collection classes which the GWT JRE Emulation Library does
not support. Secondly there are things that need to be considered
regarding attaching/detaching persistent objects for transfer to
client during long running transactions. You will definitely want to
look into this and select your optimum approach up front - there is
more than one, and the best one depends on your exact situation. A
good place to start is hibernate4gwt/Gilead. If you understand how
that works you will have your head around the issues and be in a good
position to evaluate options. Hibernate4gwt stores original Hibernate
objects in HttpSession, and it would be nice not to have to do that,
so quite a lot of people role their own custom RPC serializers to
speed things up, but in general they have worked out in advance that
it will work OK for them. Others use a DTO creator library like Dozer
for the same reason, i.e. to help make server as stateless as
possible. I would be careful about this lest it bite you on the
backside. Search group for numerous posts on the subject.

4. I don't think the number of modules makes a whole lot of difference
to compilation speed - I think it's the LOC count that really matters
since it's the conversion of Java code to javascript that takes the
time. There are several things you can do get to situations where
developers are waiting seconds rather than minutes to run/debug their
edits, for example:

a) In case you don't know, if you are editing just client side code
you do not have to recompile, you just hit refresh in the dev shell
browser which takes seconds to respond. If you change, say, RPC sevlet
code (basically anything running on the server) you do.
b) If you temporarily specify a particular user-agent (i.e. browser)
in the main module gwt.xml file, the compiler only creates one set of
client files (instead of four) and that cuts compile time by about
50%.
c) If you have a big application then splitting the client into
modules is a good idea and means you can develop and test individual
components separately using separate temporary/test entry points. You
pay for that with extra integration work, but it will obviously
significantly cut down day to day compile times so it may be worth it.

regards
gregor

On Jan 11, 11:01 pm, medgey matt.egyh...@gmail.com wrote:
 I don't think there is any way to make things compile much faster.  I
 think the real question is why you think you need hundreds of
 modules.  Does your website really need hundreds of small RIAs?  I
 cannot think of too many situations where this would be needed.

 I have used JPA and GWT in an application before without too many
 problems but not Spring (the app was a standalone RIA).

 Although debugging is a nice GWT feature it is not its strongest
 advantage - the organized OO-method of UI web design and AJAX
 integration are by far the most important aspects of the toolkit.

 Regards,

 Matt

 On Jan 9, 5:29 pm, Steve Anthony stephencanth...@gmail.com wrote:

  Hi,

  My engineering team took the last month to use GWT to implement new
  pages for our UI. We had a world of trouble around interactions with
  Spring  Hibernate. It was bad enough that the main GWT advantage
  (productivity increases from easier debugging) was not realized.

  Likewise, we had some issues around compilation speed, 1-2 minutes to
  compile a single module, for example. Think hundreds of modules, and
  this isn't going to scale.

  I'm looking to see if there are any recommendations for people who
  could provide a _focused_ training session; a few days to help us
  understand how to work the technology interactions so that we can
  improve our productivity. We know the basics; but are having trouble
  adapting the technology into our stack and making effective use of it.

  Recommendations gratefully welcome.

  Steve
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 

Re: UI Binder

2009-01-11 Thread julia

You might be interested in 
http://code.google.com/p/google-web-toolkit-incubator/wiki/UiBinder.

Julia

ruslanv wrote:
 Hi guys. According to tis blog entry

 http://googlewebtoolkit.blogspot.com/2008/12/whats-ahead-for-google-web-toolkit_10.html

 long-awaited UI Binder extension will be released soon. But the main
 question is WHEN ? Originally October of 2008 was stated as planned
 release date, then after NYE holidays and finally last thing I heard
 was will be released this week. Considering that UI Binder is
 heavily used (according to member of GWT team) inside Google is there
 any real estimate when it's going to be published ? Beta version is
 fine, it's enough to try it out.

 I'm also curious where it will be published - in GWT incubator project
 or as new release of GWT ?

 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: step by step to build entire web app with gwt1.5

2009-01-11 Thread saurabh hirani

You can pick up some of the web app parts from these tutorials. I
don't think any of them deal with building a login based web app
directly but in bits and pieces they can give you the direction that
you might need:

In the order of preference:

http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=GettingStartedTutorial
http://www.ibm.com/developerworks/java/library/j-ajax4/
http://www.softwaredesign.co.uk/gwt.html

I think that if you have created the sample stockwatcher of google,
you will cover most of the ground required for creating a basic app
and you can build on that.


regards,
Saurabh.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: can gwt work with javax.swing.* ?

2009-01-11 Thread Tom Schindl

Hi,

Though what you are saying is perfectly right there are on going efforts
in Eclipse 4.x (short e4) to
provide an SWT-implementation for RIA toolkits like GWT, Flex, ... .

Tom

DaBlick schrieb:
 GWT gets translated to Javascript.

 Now, you might argue So?  I heard Swing is pure Java.   Why can't
 SWING by translated by the compiler to JS?

 The answer is because while Swing is pure Java, it is layered on top
 of AWT which is anything BUT pure Java.

 Thinking SWT?  Don't go there.  Like Swing it also uses native methods
 (real native methods (calls to C code), not JSNI) too.

 Where Swing and SWT ultimately make calls to native heavyweight
 platform specific components, GWT makes calls to the browsers dom
 handling interfaces via Javascript.

db

 On Jan 10, 2:31 pm, mikedshaf...@gmail.com mikedshaf...@gmail.com
 wrote:
   
 OK, one of the things that you have to wrap your head around is how
 GWT works.  You write GWT using Java, but then the GWT compiler
 converts this into Javascript  HTML.  It can only do this to Java
 that it specifically knows about.  Your Swing JLabel component is not
 something GWT understands and therefore it can't compile it out into
 Javascript.  The strength of GWT is that you develop in Java, but if
 your code is going to be run in the browser, it has to be Java that is
 compatible with the GWT Compiler.

 Hope this helps.

 Later,

 Shaffer

 On Jan 10, 1:32 am, mars marsg...@gmail.com wrote:

 
 hi, all
   
 i m developing an gwt(actually gwt-ext) application, and need to use
 an external package which is mainly written with java awt and javax
 swing.  when i try to add that swing component to gwt panel, it won't
 pass through my question is 'does gwt work with swing'?
   
 my code is as below:
   
 ChartViewer viewer = new ChartViewer(); (ChartViewer is a
 subclass of the SWING JLabel component.)
   
 createChart(viewer, 0);
 VerticalPanel mainPanel = new VerticalPanel();
 mainPanel.add(viewer);  --- this one won't pass
 through
   
 please give me some help. thanks!
   
 

   


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