Re: GWT Developer Plugin works only sometimes

2009-11-23 Thread cromoteca
Truth is my application *works* with 2.0rc. It's just that most of the
times dev mode is not able to start and I need to try again until it
starts correctly.

I also forgot to mention that Firefox crashes frequently since I
installed the dev plugin. I really cannot believe that this release
has been tagged as release candidate. It's a beta at best.

On 20 Nov, 18:01, Yozons Support on Gmail yoz...@gmail.com wrote:
 Upgrading from 1.7 seems fraught with peril.  The docs even suggest that you
 install on a clean install of Eclipse, which is what I did because prior to
 that, my own attempt resulted in much confusion.

 As the gwt.xml, it appears that there was a bug (supposedly fixed for RC 2)
 regarding uppercase characters in the gwt.xml file name.  I went with all
 lowercase letters and it seemed happy.  I also found that I had to add
 -Xms100m to my debug launch param for the JRE VM to avoid module load
 failures.  Hope this helps

--

You received 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=.




Re: SOP and GWT 1.7

2009-11-23 Thread oleberre
Hi Thomas.

Thanks a lot for the information.
So, I did what you adviced me i.e. adding the linker option in the
module.
As you suspected, it does not generate a nocache.js with the xs suffix
but the usual file with the right
version.

However, trying to load my module, I get the following message from
jetty :

Cross-site hosted mode not yet implemented. See issue
http://code.google.com/p/google-web-toolkit/issues/detail?id=2079

So, as far as I understood, there is a problem only with hosted mode,
but it should be ok once deployed.
So, I deployed everything on google app engine and try to load the
script from a different page.

I tried two ways but only one worked. So, if I simply add the
following line anywhere in the code :

script type=text/javascript language=javascript src=http://
domain.appspot.com/module/module.nocache.js/script

everything works fine.

But if I try to include the script as following :

script type=text/javascript
var url = http://domain.appspot.com/module/module.nocache.js;;
var script = document.createElement(script);
script.setAttribute(src, url);
script.setAttribute(type, text/javascript);
document.getElementsByTagName(head)[0].appendChild(script);

/script

It does not work properly. From the firefox error console, I have the
following error

   Error: __gwt_stylesLoaded is not defined


Anyway, I guess the first method is the one recommended and easier to
use.
Or maybe shall I raised an issue on that ?

Regards.
Olivier.

--

You received 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=.




Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-23 Thread Youen
Hi,

I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
when i am in development mode.

I set some breakpoints, I run in eclipse debug mode and I use firefox
3.5, but it seems that the breakpoints are not catch.

Does someone make it work or am I missing someting ?

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=.




Re: Page flows in GWT

2009-11-23 Thread Thomas Broyer


On Nov 22, 4:27 pm, klr8 erva...@gmail.com wrote:
 Hello,

 Would somebody of the GWT community be interested in trying to
 implement the Page Flow Challenge in GWT? You can find more details in
 the following blog post:

 http://ev9d9.blogspot.com/2009/11/page-flow-challenge.html

 I'd love to get a GWT entry posted or learn about how something like
 this would be accomplished in GWT.

 Thanks in advance!

You don't need any page actually (though you might *want* pages),
and your challenge doesn't talk about bookmarkability (well, because
you say it should use HTTP POST, I believe you're modifying a
resource's state and therefore the URL for, e.g., page 2 is the
same whichever the value you entered in page 1; ...and now that I
looked at your swf1's sample, it seems this really is the case: the
URL doesn't change between pages).

This leads me to say that your challenge is completely not web-
style, it reminds me of JSF (don't ask me what I think of it, I can
become angry quite quickly).

Instead of focusing on page flows (why are there so many frameworks
doing such a shitty thing?), (learn REST if needed and then:) focus on
resources and their states, moving application state to the client
(and therefore building a stateless server, where you don't even need
sessions), 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-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=.




Re: Anyone using soafaces for client server communication ?

2009-11-23 Thread R.Domingo
Hi Sam,

Thank you for responding, I really like to get soafaces up and
running.

The jars I'm using are:
jettison-1.0.1.jar
soafaces-services-client-2.4.2.jar
soafaces-services-servlet-nomule-2.4.2.jar
xstream-1.2.2.jar

In my hosted browser at least:
- onUniversalClientSuccess is triggered

But when building a jar and depoying in tomcat:
- onFailure is triggered
I couldn't find any error message, the exception thrown in onFailure
doesn't have a message in it.

Any ideas ?
Or is there any change you could post an (maven2 enabled) example
using gwt and soafaces ?


On Nov 22, 7:49 pm, Sam Taha taha...@gmail.com wrote:
 Do you only see this problem in hosted mode? Do you see it in web
 mode?

 What version ofsoafacesare you using?

 Are you getting any servlet errors?

 On Nov 12, 4:00 am, R.Domingo raym...@domingo.nl wrote:

  Hi Sam and Mike,

  I'm currently reviewingSoafacesbut:
  - I can't get it 100% to work;
  - I couldnt find asoafacesrelated forum.

  It could be my problem is related to the problem just described.
  Because the object (string) returned by service doesn't seem to be
  received by the client.

  I created a normal gwt (1.5.2) client and added:
  - jettizon
  -soafaces-services-client
  -soafaces-services-servlet-nomule
  - xstream
  - added lines to ...gwt.xml:
   source path=client/
          inherits name='org.soafaces.services.Services'/

  When running my app and invoking the service
  'onUniversalClientSuccess' is triggered. So far so good, but the
  string sended by server  You got it isn't received.
  The result object parameter of onUniversalClientSuccess is null, see
  my code and log output below.

  Any ideas / tips / additional examples ?

  I get number of errors/warnings in my log:
  [DEBUG] Rebinding org.soafaces.services.client.rpc.UniversalClientRPC
  [DEBUG] Invoking generate-with
  class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

  [DEBUG] Generating client proxy for remote service interface
  'org.soafaces.services.client.rpc.UniversalClientRPC'
  [DEBUG] Analyzing
  'org.soafaces.services.client.rpc.UniversalClientRPC' for serializable
  types
  [DEBUG] Analyzing methods:
  [DEBUG] public abstract void dispatchAny(java.lang.String endpointURI,
  org.soafaces.services.client.rpc.GenericDataWrapper payload,
  java.util.Mapjava.lang.String, java.io.Serializable properties)
  throws org.soafaces.services.client.rpc.UniversalClientRemoteException
  [DEBUG] Parameter: org.soafaces.services.client.rpc.GenericDataWrapper
  payload
  [DEBUG] org.soafaces.services.client.rpc.GenericDataWrapper
  [DEBUG] Verifying instantiability
  [DEBUG] org.soafaces.services.client.rpc.GenericDataWrapper
  [DEBUG] Analyzing the fields of type
  'org.soafaces.services.client.rpc.GenericDataWrapper' that qualify for
  serialization
  [DEBUG] public java.io.Serializable _PojoSerial
  [DEBUG] java.io.Serializable
  [DEBUG] Verifying instantiability
  [DEBUG] nl.telecats.web.gwt.common.model.ServiceEvent
  [DEBUG] Analyzing the fields of type
  'nl.telecats.web.gwt.common.model.ServiceEvent' that qualify for
  serialization
  
  [DEBUG] Analyzing the fields of type
  'com.google.gwt.i18n.client.impl.ConstantMap' that qualify for
  serialization
  [WARN] Field 'private final
  com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSetjava.lang.String
  keys' will not be serialized because it is final
  
  [DEBUG] com.extjs.gxt.ui.client.data.BaseListLoadResult? extends
  java.lang.Object
  [DEBUG] Checking parameters of
  'com.extjs.gxt.ui.client.data.BaseListLoadResult? extends
  java.lang.Object'
  [DEBUG] Checking type argument 0 of type
  'com.extjs.gxt.ui.client.data.BaseListLoadResultData' because it is
  exposed as an array with a maximum dimension of 1 in this type or one
  of its subtypes
  [DEBUG] java.lang.Object[]
  [DEBUG] Analyzing component type:
  [DEBUG] java.lang.Object
  [WARN] In order to produce smaller client-side code, 'Object' is not
  allowed; consider using a more specific type
  ...
  [DEBUG] java.util.Vector? extends java.lang.Object
  [WARN] Checking all subtypes of Object which qualify for serialization
  [DEBUG] nl.telecats.web.gwt.client.mvc.helper.MVCViewInstanceHolder
  [ERROR] Type
  'nl.telecats.web.gwt.client.mvc.helper.MVCViewInstanceHolder' was not
  serializable and has no concrete serializable subtypes
  [DEBUG] com.extjs.gxt.ui.client.data.BeanModel
  [DEBUG] Verifying instantiability
  [DEBUG] com.extjs.gxt.ui.client.data.BeanModel
  [DEBUG] Analyzing the fields of type
  'com.extjs.gxt.ui.client.data.BeanModel' that qualify for
  serialization
  [DEBUG] protected java.lang.Object bean
  [DEBUG] java.lang.Object
  [WARN] In order to produce smaller client-side code, 'Object' is not
  allowed; consider using a more specific type

  Code I added to my app:
  private static final String UNIVERSAL_CLIENT_SERVLET = /
  gwtMulePoc.Application4HostedBrowser/SOAFacesRPCServlet;
            private UniversalClient _oClient;

Re: Anyone using soafaces for client server communication ?

2009-11-23 Thread R.Domingo
correction:
'But when building a JAR and depoying in tomcat: '

I'm not building a JAR, but I'm building a war...

On Nov 23, 10:55 am, R.Domingo raym...@domingo.nl wrote:
 Hi Sam,

 Thank you for responding, I really like to getsoafacesup and
 running.

 The jars I'm using are:
 jettison-1.0.1.jarsoafaces-services-client-2.4.2.jarsoafaces-services-servlet-nomule-2.4.2.jar
 xstream-1.2.2.jar

 In my hosted browser at least:
 - onUniversalClientSuccess is triggered

 But when building a jar and depoying in tomcat:
 - onFailure is triggered
 I couldn't find any error message, the exception thrown in onFailure
 doesn't have a message in it.

 Any ideas ?
 Or is there any change you could post an (maven2 enabled) example
 using gwt andsoafaces?

 On Nov 22, 7:49 pm, Sam Taha taha...@gmail.com wrote:

  Do you only see this problem in hosted mode? Do you see it in web
  mode?

  What version ofsoafacesare you using?

  Are you getting any servlet errors?

  On Nov 12, 4:00 am, R.Domingo raym...@domingo.nl wrote:

   Hi Sam and Mike,

   I'm currently reviewingSoafacesbut:
   - I can't get it 100% to work;
   - I couldnt find asoafacesrelated forum.

   It could be my problem is related to the problem just described.
   Because the object (string) returned by service doesn't seem to be
   received by the client.

   I created a normal gwt (1.5.2) client and added:
   - jettizon
   -soafaces-services-client
   -soafaces-services-servlet-nomule
   - xstream
   - added lines to ...gwt.xml:
    source path=client/
           inherits name='org.soafaces.services.Services'/

   When running my app and invoking the service
   'onUniversalClientSuccess' is triggered. So far so good, but the
   string sended by server  You got it isn't received.
   The result object parameter of onUniversalClientSuccess is null, see
   my code and log output below.

   Any ideas / tips / additional examples ?

   I get number of errors/warnings in my log:
   [DEBUG] Rebinding org.soafaces.services.client.rpc.UniversalClientRPC
   [DEBUG] Invoking generate-with
   class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/

   [DEBUG] Generating client proxy for remote service interface
   'org.soafaces.services.client.rpc.UniversalClientRPC'
   [DEBUG] Analyzing
   'org.soafaces.services.client.rpc.UniversalClientRPC' for serializable
   types
   [DEBUG] Analyzing methods:
   [DEBUG] public abstract void dispatchAny(java.lang.String endpointURI,
   org.soafaces.services.client.rpc.GenericDataWrapper payload,
   java.util.Mapjava.lang.String, java.io.Serializable properties)
   throws org.soafaces.services.client.rpc.UniversalClientRemoteException
   [DEBUG] Parameter: org.soafaces.services.client.rpc.GenericDataWrapper
   payload
   [DEBUG] org.soafaces.services.client.rpc.GenericDataWrapper
   [DEBUG] Verifying instantiability
   [DEBUG] org.soafaces.services.client.rpc.GenericDataWrapper
   [DEBUG] Analyzing the fields of type
   'org.soafaces.services.client.rpc.GenericDataWrapper' that qualify for
   serialization
   [DEBUG] public java.io.Serializable _PojoSerial
   [DEBUG] java.io.Serializable
   [DEBUG] Verifying instantiability
   [DEBUG] nl.telecats.web.gwt.common.model.ServiceEvent
   [DEBUG] Analyzing the fields of type
   'nl.telecats.web.gwt.common.model.ServiceEvent' that qualify for
   serialization
   
   [DEBUG] Analyzing the fields of type
   'com.google.gwt.i18n.client.impl.ConstantMap' that qualify for
   serialization
   [WARN] Field 'private final
   com.google.gwt.i18n.client.impl.ConstantMap.OrderedConstantSetjava.lang.String
   keys' will not be serialized because it is final
   
   [DEBUG] com.extjs.gxt.ui.client.data.BaseListLoadResult? extends
   java.lang.Object
   [DEBUG] Checking parameters of
   'com.extjs.gxt.ui.client.data.BaseListLoadResult? extends
   java.lang.Object'
   [DEBUG] Checking type argument 0 of type
   'com.extjs.gxt.ui.client.data.BaseListLoadResultData' because it is
   exposed as an array with a maximum dimension of 1 in this type or one
   of its subtypes
   [DEBUG] java.lang.Object[]
   [DEBUG] Analyzing component type:
   [DEBUG] java.lang.Object
   [WARN] In order to produce smaller client-side code, 'Object' is not
   allowed; consider using a more specific type
   ...
   [DEBUG] java.util.Vector? extends java.lang.Object
   [WARN] Checking all subtypes of Object which qualify for serialization
   [DEBUG] nl.telecats.web.gwt.client.mvc.helper.MVCViewInstanceHolder
   [ERROR] Type
   'nl.telecats.web.gwt.client.mvc.helper.MVCViewInstanceHolder' was not
   serializable and has no concrete serializable subtypes
   [DEBUG] com.extjs.gxt.ui.client.data.BeanModel
   [DEBUG] Verifying instantiability
   [DEBUG] com.extjs.gxt.ui.client.data.BeanModel
   [DEBUG] Analyzing the fields of type
   'com.extjs.gxt.ui.client.data.BeanModel' that qualify for
   serialization
   [DEBUG] protected java.lang.Object bean
   [DEBUG] java.lang.Object
   [WARN] In order to produce 

RTL

2009-11-23 Thread Jaber
Hi,

i think i did the part of i18n in terms of labels and texts, but what
about the page direction, how can i switch between RTL and LTR, i have
seen the way on which showcase project was built, which is depending
on css switching the thing i can see a little bit uncomfortable, so
what other options do i have, and does the layout of my page(the
compostion of components in panel) effected or effects 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=.




Re: Controlling desktop windows size and position.

2009-11-23 Thread Martin Trummer
you can't do that with html/javascript, so GWT can't help you

On 19 Nov., 18:35, PatrickJ patrickjsim...@gmail.com wrote:
 Is there and equivalent functional in GWT to VB's FindWindow,
 ShowWindow and MoveWindow?

 I would like to write a simple GWT application that would list all
 applications running on a Windows PC and have the ability to control
 the window's position attributes.

 Patrick

--

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




Re: Design Patterns

2009-11-23 Thread Martin Trummer
maybe you should ask a more detailed question

the GWT stuff is just an implementation of the corresponding pattern
with the same name
you'll find plenty of explanations for the patterns when you google
for them
or look it up in wiki
http://en.wikipedia.org/wiki/Command_pattern

I don't know what more one could say about this..

On 21 Nov., 23:58, Lúcio Camilo luciocam...@gmail.com wrote:
 But someone can xplain what?

 2009/11/20 Martin Trummer martin.trum...@24act.at

  yes

  On 19 Nov., 21:08, Lúcio Camilo luciocam...@gmail.com wrote:
   The component Composite and the object Command have something in common
  with
   the design patterns with same name?

  --

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



--

You received 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=.




Re: GWT 2.0 Javascript IE Crash

2009-11-23 Thread Charlie M
I raised an issue for this a few days ago.

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

I have just worked out what causing it. Its a mistake in my code UI
XML. I had a colon in the width value. IE was throwing an exception
where as Firefox and Chrome were simply ignoring it.

Thanks,

Charlie M

On Nov 20, 4:21 pm, jd jdpatter...@gmail.com wrote:
 I wonder if this is the bug that I am also seeing.  I am running
 2.0RC2 and in IE6 also get an Illegal Argument error when I run it as
 compiled JS.  From hosted mode this exception is thrown

 com.google.gwt.core.client.JavaScriptException: (Error): Invalid
 argument. number: -2147024809 description: Invalid argument. at
 sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java:39) at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance
 (DelegatingConstructorAccessorImpl.java:27) at
 java.lang.reflect.Constructor.newInstance(Constructor.java:501) at
 com.google.gwt.dev.shell.ModuleSpace.createJavaScriptException
 (ModuleSpace.java:64) at
 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
 (BrowserChannelServer.java:157) at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
 (ModuleSpaceOOPHM.java:120) at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 509) at

 stepping through the code my problem occurs in LayoutImplIE6 on the
 line with the *

   public Element attachChild(Element parent, Element child, Element
 before) {
     if (!isIE6) {
       return super.attachChild(parent, child, before);
     }

     DivElement container = Document.get().createDivElement();
 *    container.insertBefore(child, before);

 It works fine in IE7, 8, Safari and Firefox

--

You received 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=.




Re: cache.html file is not cached with JBoss(Tomcat) and Internet Explorer 6-7

2009-11-23 Thread pepgrifell

Hi,

the problem is that *.css,*.js and images are cached but the only file
that is not cached is my cache.html file ... The file is about 3MB and
each time the users enter in the application, this file is downladed.
The only different thing from cache.html file and the others
(css,js,images...) is that cache.html file is gzipped before sending
it to the client.

I tried to add :
Context
Valve className=org.apache.catalina.authenticator.FormAuthenticator
disableProxyCaching=false /
/Context

in META-INF/context.xml file (WAR) but it's not working either. (we
use JAAS. I tried with FormAuthenticator and SSLAuthenticator)


Any idea why cache.html file is not cached ?

Thanks !

On 20 nov, 20:15, Yozons Support on Gmail yoz...@gmail.com wrote:
 For Tomcat, if you have this in your META-INF/context.html:

 Context debug=0
         Valve
 className=org.apache.catalina.authenticator.NonLoginAuthenticator
                 disableProxyCaching=false /
 /Context

 This will prevent it from doing the caching.  If you have any other type of
 Authenticator in use already, you can probably just add the
 disableProxyCaching=false attribute to it.

--

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




java.util.List

2009-11-23 Thread ben fenster
why cant i make a sub class for java.util.List
every time i do i get compile errors

--

You received 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=.




Strang problem under 2.0 RC1+Google plugin for Eclipse.2rc1

2009-11-23 Thread Alex Luya
 I used plugin(Google plugin for Eclipse.2rc1) to creat a
project,run and browse it and everything just works fine.But after
deleting src and war ,and replace them with new src and war(comes from
a worked project),clean project,and run it,copy url to firefox to open
it,and strange thing comes up,nothing showed and no error reported in
console and Web Application Debug View. I am using ubuntu 9.10,what is
the problem?think you.

--

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




Re: java.util.List

2009-11-23 Thread Lothar Kimmeringer
ben fenster schrieb:
 why cant i make a sub class for java.util.List
 every time i do i get compile errors

Reading the error-message should help but independent
from that, the the answer is: It's an interface, baby.


Regards, Lothar

--

You received 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=.




Re: java.util.List

2009-11-23 Thread ben fenster
i know !!!
but when i try to implement it  and the compile it  i get a general
error saying  my main module cant be loaded
so baby ! show me any class you create that inherites from List and of
course compile it !

On 23 נובמבר, 14:10, Lothar Kimmeringer j...@kimmeringer.de wrote:
 ben fenster schrieb:

  why cant i make a sub class for java.util.List
  every time i do i get compile errors

 Reading the error-message should help but independent
 from that, the the answer is: It's an interface, baby.

 Regards, Lothar

--

You received 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=.




Re: How to set default font family as Verdana in RichTextEditor

2009-11-23 Thread Manolo Carrasco Moñino
I do this:

area.setHTML(font size='2' style='font-family: arial' + html +
/font);

It's a bit tricky but works.

Regards
Manolo

On Sat, Nov 21, 2009 at 11:09 AM, Brendan bcke...@gmail.com wrote:

 Supporting RichTextEditor across browsers looks like it can get pretty
 intense, and the implementations look inherently programmatic (using
 execCommand()), so I think your best bet is setFont() on the widget
 itself. Maybe someone else can chime in if there is an easy way to do
 it in CSS; I couldn't find one.

 More about IE/Mozilla implementation details:
 https://developer.mozilla.org/en/Rich-Text_Editing_in_Mozilla

 On Nov 21, 12:49 am, javalover madhu4technol...@gmail.com wrote:
  Hi Everyone,
 
  I have used the RichTextEditor given by the GWT ,by default when i
  typed the text in it it is Times New Roman,i want to change that
  default to Verdana.Please give me suggestion where i need to do the
  change to make default font family as Verdana in RichTextEditor when
  i typed in it.
 
  ThanksRegards,
  Madhu

 --

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




--

You received 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=.




Re: java.util.List

2009-11-23 Thread Lothar Kimmeringer
ben fenster schrieb:
 i know !!!

So why do you try to create a subclass of an interface?

 but when i try to implement it

Implement != subclass.

  and the compile it  i get a general
 error saying  my main module cant be loaded

You try to compile it for deployment or are we talking about
the hosted mode? if the latter, what's the error-message
showing up in the details-pane if you click on the main-entry

 so baby ! show me any class you create that inherites from List and of
 course compile it !

I come to the impression that you think that I'm some kind
of support-guy you have the right to use for free. That's
not the case, so please work on your way of asking questions:

 - Don't use exclamation and question marks excessively
 - Give as much information as possible to be able to
   reproduce or at least understand your problem
 - Don't forget: It's you, who want to be helped, so ask
   in a way motivating as much people as possible to
   help you.

I never needed to create a new implementation of java.util.List
but alway use ArrayList for the client side of the application.
Most likely java.util.List is not part of the client JRE that
is converted to Javascript leading to the error (but that's just
a guess, the error-message in the details-pane should clearify
that).


Regards, Lothar

--

You received 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=.




Re: gwt + jquery rounded corner

2009-11-23 Thread Дмитрий Николаев
What log say?
Do you really include jquery library ? How do you know this ?

On 22 ноя, 22:14, Sudeep S sudee...@gmail.com wrote:
 Hi,

 I am trying to use jquery.corner.js to round my panel in gwt using the below
 code

 *

 public* *final* *native* *void* roundCorner()/*-{

 $wnd.$(#roundedPanel).corner(5px);

 }-*/;

 where roundedPanel is the id of the div panel. Though it is invoking the
 jquery.corner.js it is not rounding it. Is it not possible to round corners
 using this.

 Thanks
 Sudeep

--

You received 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=.




detecting if a widget is added to DOM or not

2009-11-23 Thread Prashant
Hi,

Suppose, I write my own custom widget using some features (say, third party
library features) which will work only if my widget is added to DOM, so,
those features need to be loaded only after the widget is added to DOM. Is
there any way to detect if widget is added to DOM? like, any method which
gets triggered when widget is added to DOM?

Thanks

--

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




Re: java.util.List

2009-11-23 Thread ben fenster
i dont think anyone is working for me i just found what seems to be a
very big bug in gwt since for some reason its not possible to
implement the list interface and i belive it is a potential problem
for alot of people other then me

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class SmartQueueT implements ListT{

protected ArrayListT m_items;
protected int m_Limit=-1;
/**
 * constructor
 * @param lim = limit of queue to set
 */
public SmartQueue()
{

}
public SmartQueue(int lim)
{
m_Limit=lim;
}

/**
 * Enqueue a member into head of queue
 * @param val-val to insert
 */
public T Enqueue(T val)
{
m_items.add(0, val);
return (m_Limit0  m_items.size()m_Limit) ? Dequeue() : null;
}
/**
 * Enqueue a member into a chosen pos at the queue
 * @param val-val to insert
 */
public T Enqueue(T val,int at)
{
m_items.add(at, val);
return (m_Limit0  m_items.size()m_Limit) ? Dequeue() : null;
}

/**
 * Enqueue a member into head of queue
 * @param val-val to insert
 */
public CollectionT Enqueue(Collection? extends T  coll)
{
m_items.addAll(0, coll);
if(m_Limit0  m_items.size()m_Limit)
{
return Dequeue(m_items.size() - m_Limit);
}
return null;
}
/**
 * Enqueue a member into head of queue
 * @param val-val to insert
 */
public CollectionT Enqueue(Collection? extends T  coll,int at)
{
m_items.addAll(at, coll);
if(m_Limit0  m_items.size()m_Limit)
{
return Dequeue(m_items.size() - m_Limit);
}
return null;
}


/**
 * Dequeue a member from tail end of queue
 * @return T - the member of the queue that was removed
 */
public T Dequeue()
{
int end  = m_items.size()-1;
T res = m_items.get(end);
m_items.remove(end);
return res;
}
/**
 * Dequeue a member list from tail end of queue
 * @return T - the member of the queue that was removed
 */
public CollectionT Dequeue(int count)
{
CollectionTres = new ArrayListT();
for (int i = m_items.size()-count; i  m_items.size(); i++) {
res.add(get(i));
m_items.remove(i);
}
return res;
}

/**
 * get the maximum capacity of the queue
 * @return maximum capacity of the queue
 */
public int GetLimit()
{
return m_Limit;
}
/**
 * sets maximum capacity of the queue
 * @param lim-the limit of the queue to set
 */
public void SetLimit(int lim)
{
m_Limit=lim;
}

public void SetItemPosition(int from,int to)
{
if(from 0  from  m_items.size() to 0  to  
m_items.size())
{
Collections.swap(m_items, from, to);
}
}
private  CollectionT GetAndRemoveOverLimit()
{
if(m_Limit0  m_items.size()m_Limit)
{
return Dequeue(m_items.size() - m_Limit);
}
return null;
}
private  void RemoveOverLimit()
{
if(m_Limit0  m_items.size()m_Limit)
{
Dequeue(m_items.size() - m_Limit);
}
}
@Override
public boolean add(T e) {
boolean res = m_items.add(e);
RemoveOverLimit();
return res;
}
@Override
public void add(int index, T element) {
RemoveOverLimit();
m_items.add(index,element);
}
@Override
public boolean addAll(Collection? extends T c) {
boolean res =addAll(c);
RemoveOverLimit();
return res;
}
@Override
public boolean addAll(int index, Collection? extends T c) {
boolean res =addAll(index,c);
RemoveOverLimit();
return res;
}
@Override
public void clear() {
m_items.clear();

}
@Override
public boolean contains(Object o) {

return 

Re: java.util.List

2009-11-23 Thread ben fenster
by the way the error is
[ERROR] Failure to load module 'vzooo'

On 23 נובמבר, 14:49, Lothar Kimmeringer j...@kimmeringer.de wrote:
 ben fenster schrieb:

  i know !!!

 So why do you try to create a subclass of an interface?

  but when i try to implement it

 Implement != subclass.

   and the compile it  i get a general
  error saying  my main module cant be loaded

 You try to compile it for deployment or are we talking about
 the hosted mode? if the latter, what's the error-message
 showing up in the details-pane if you click on the main-entry

  so baby ! show me any class you create that inherites from List and of
  course compile it !

 I come to the impression that you think that I'm some kind
 of support-guy you have the right to use for free. That's
 not the case, so please work on your way of asking questions:

  - Don't use exclamation and question marks excessively
  - Give as much information as possible to be able to
    reproduce or at least understand your problem
  - Don't forget: It's you, who want to be helped, so ask
    in a way motivating as much people as possible to
    help you.

 I never needed to create a new implementation of java.util.List
 but alway use ArrayList for the client side of the application.
 Most likely java.util.List is not part of the client JRE that
 is converted to Javascript leading to the error (but that's just
 a guess, the error-message in the details-pane should clearify
 that).

 Regards, Lothar

--

You received 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=.




Re: java.util.List

2009-11-23 Thread Paul MERLIN
Le lundi 23 novembre 2009 12:29:10, ben fenster a écrit :
 why cant i make a sub class for java.util.List
 every time i do i get compile errors

Documentation is clear :

  Google Web Toolkit includes a library that emulates a subset of the Java 
runtime library. The list 
below shows the set of JRE packages, types and methods that GWT can 
translate automatically. 
   Note that in some cases, only a subset of methods is supported for a given 
type.

http://code.google.com/intl/fr/webtoolkit/doc/1.6/RefJreEmulation.html

java.util.List is in the emulated list but you'd better check if all methods 
are supported

I tried to write an empty implementation (no time to waste) of ListString, 
and GWTCompiler seems to be happy with it, 
so I'd suspect an error in your code (using something else that is not 
supported by gwt jre emulation).

By the way, you're asking insistingly without giving any valuable information 
for us to help you ... IMHO that's 
impolite.

/Paul

--

You received 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=.




Re: java.util.List

2009-11-23 Thread Nathan Wells
1) Is your class in a client package? by that, I mean does the
parent package have a *.gwt.xml file, and does it declare the
SmartQueue package as a source package?

If you haven't already, you might want to read this:

http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html

along with the rest of the Developer Guide. and probably the FAQ...
and the Reference Guide... and watch a few Google I/O videos.

On Nov 23, 6:17 am, ben fenster fenster@gmail.com wrote:
 by the way the error is
 [ERROR] Failure to load module 'vzooo'

 On 23 נובמבר, 14:49, Lothar Kimmeringer j...@kimmeringer.de wrote:



  ben fenster schrieb:

   i know !!!

  So why do you try to create a subclass of an interface?

   but when i try to implement it

  Implement != subclass.

    and the compile it  i get a general
   error saying  my main module cant be loaded

  You try to compile it for deployment or are we talking about
  the hosted mode? if the latter, what's the error-message
  showing up in the details-pane if you click on the main-entry

   so baby ! show me any class you create that inherites from List and of
   course compile it !

  I come to the impression that you think that I'm some kind
  of support-guy you have the right to use for free. That's
  not the case, so please work on your way of asking questions:

   - Don't use exclamation and question marks excessively
   - Give as much information as possible to be able to
     reproduce or at least understand your problem
   - Don't forget: It's you, who want to be helped, so ask
     in a way motivating as much people as possible to
     help you.

  I never needed to create a new implementation of java.util.List
  but alway use ArrayList for the client side of the application.
  Most likely java.util.List is not part of the client JRE that
  is converted to Javascript leading to the error (but that's just
  a guess, the error-message in the details-pane should clearify
  that).

  Regards, Lothar

--

You received 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=.




Re: plugin system

2009-11-23 Thread sandeepgiri
The other problem I for see with the keywatch kind of mechanism is
that the debugging process will get pretty dificult.

Any ideas?

On Nov 10, 3:15 pm, sandeepgiri sandeepg...@gmail.com wrote:
 Dear GWT Group,
 We are building an enterprize wide web application using GWT. We have
 been quite impressed with GWT so far as productivity has increased at
 least 5 times.

 The only question which is unanswered is how to support plugins. Our
 application is being used by various customers and these customers
 have their plugins. The plugins contain the UI as well as the server
 side logic.

 After doing some research I found keywatch (http://freshmeat.net/
 projects/keywatch) - which is based on GWT and OSGi.

 Is there a better mechanism than keywatch because I do not want to get
 into the OSGi at this moment?

 Regards,
 Sandeep Giri

--

You received 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=.




Re: java.util.List

2009-11-23 Thread ben fenster
yes its in a client package and i also tried to create an empty
implementation of INTEGER and it didnt work
did you try to run the module with the  empty ListString in hosted
mode

On 23 נובמבר, 15:53, Nathan Wells nwwe...@gmail.com wrote:
 1) Is your class in a client package? by that, I mean does the
 parent package have a *.gwt.xml file, and does it declare the
 SmartQueue package as a source package?

 If you haven't already, you might want to read this:

 http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html

 along with the rest of the Developer Guide. and probably the FAQ...
 and the Reference Guide... and watch a few Google I/O videos.

 On Nov 23, 6:17 am, ben fenster fenster@gmail.com wrote:

  by the way the error is
  [ERROR] Failure to load module 'vzooo'

  On 23 נובמבר, 14:49, Lothar Kimmeringer j...@kimmeringer.de wrote:

   ben fenster schrieb:

i know !!!

   So why do you try to create a subclass of an interface?

but when i try to implement it

   Implement != subclass.

 and the compile it  i get a general
error saying  my main module cant be loaded

   You try to compile it for deployment or are we talking about
   the hosted mode? if the latter, what's the error-message
   showing up in the details-pane if you click on the main-entry

so baby ! show me any class you create that inherites from List and of
course compile it !

   I come to the impression that you think that I'm some kind
   of support-guy you have the right to use for free. That's
   not the case, so please work on your way of asking questions:

    - Don't use exclamation and question marks excessively
    - Give as much information as possible to be able to
      reproduce or at least understand your problem
    - Don't forget: It's you, who want to be helped, so ask
      in a way motivating as much people as possible to
      help you.

   I never needed to create a new implementation of java.util.List
   but alway use ArrayList for the client side of the application.
   Most likely java.util.List is not part of the client JRE that
   is converted to Javascript leading to the error (but that's just
   a guess, the error-message in the details-pane should clearify
   that).

   Regards, Lothar

--

You received 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=.




Re: java.util.List

2009-11-23 Thread ben fenster
im sorry but i was under some presure i have a close deadline and
thats pretty much the only problem idid you create an anonymous class
or a class that implements the list

On 23 נובמבר, 15:50, Paul MERLIN eskato...@gmail.com wrote:
 Le lundi 23 novembre 2009 12:29:10, ben fenster a écrit :

  why cant i make a sub class for java.util.List
  every time i do i get compile errors

 Documentation is clear :

   Google Web Toolkit includes a library that emulates a subset of the Java 
 runtime library. The list
     below shows the set of JRE packages, types and methods that GWT can 
 translate automatically.
    Note that in some cases, only a subset of methods is supported for a given 
 type.

    http://code.google.com/intl/fr/webtoolkit/doc/1.6/RefJreEmulation.html

 java.util.List is in the emulated list but you'd better check if all methods 
 are supported

 I tried to write an empty implementation (no time to waste) of ListString, 
 and GWTCompiler seems to be happy with it,
 so I'd suspect an error in your code (using something else that is not 
 supported by gwt jre emulation).

 By the way, you're asking insistingly without giving any valuable information 
 for us to help you ... IMHO that's
 impolite.

 /Paul

--

You received 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=.




Re: MenuBar in a Flextable cell

2009-11-23 Thread Brian
Sounds like a tricky problem. I haven't worked with menu bars so I'm
not sure this will work. What I'm thinking is that you could use a
placeholder menu bar in the table cell that doesn't have any menu
items. Then, when that is clicked on, display a PopupPanel with the
real menu bar and position it relative to the placeholder menu bar.
You may have to play with styling on the PopupPanel to remove any
decoration and/or margins to get the effect right. You'll also have to
capture which menu item (assuming there's more than one) was clicked
on the placeholder and simulate a click on the corresponding item in
the real menu bar.

Or maybe you can do away with the menu bar in the table cell
altogether and make your own drop-down menu using PopupPanels. It
depends on what you're looking for in terms of user interface feel.

-Brian 

On Nov 22, 10:56 am, Sudeep S sudee...@gmail.com wrote:
 Hi,

 I have a req wherein I have to add a menubar widget to every row in a
 flextable. When the menubar is clicked it opens but it also expands the
 cell in which it is placed distorting the layout.

 Any ideas on this one.

 Thanks
 Sudeep

--

You received 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=.




Re: java.util.List

2009-11-23 Thread Paul MERLIN
Le lundi 23 novembre 2009 15:02:14, ben fenster a écrit :
 did you try to run the module with the  empty ListString in hosted
 mode
Nope.
Did you try to get a more valuable error message ?

/Paul

--

You received 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=.




Re: java.util.List

2009-11-23 Thread Paul MERLIN
Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :
 im sorry but i was under some presure i have a close deadline and
 thats pretty much the only problem idid you create an anonymous class
 or a class that implements the list

public class Test implements ListString { ... }

--

You received 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=.




Re: GWT 1.7.1 don't show app in hosted mode (Jetty bug: FULL head)

2009-11-23 Thread ipsonic
I am getting the same error when running in GWT hosted mode.  The app
(GXT 2.0.1) runs fine on firefox.  Where is this cookie file exactly,
I've looked around at the suggested location in this thread and cannot
find it?

-John

On Nov 16, 8:16 am, Rajeev Dayal rda...@google.com wrote:
 @Stephen: What platform are you on?

 @Rodrigo: That sounds like a GXT-specific bug. Have you tried posting on
 their forum?

 2009/11/15 Stephen Graham sggraha...@gmail.com

  I am getting a similar error:
  Nov 15, 2009 7:24:24 PM com.google.apphosting.utils.jetty.JettyLogger
  info
  INFO: jetty-6.1.x
  Nov 15, 2009 7:24:25 PM com.google.apphosting.utils.jetty.JettyLogger
  info
  INFO: Started selectchannelconnec...@0.0.0.0:8080
  The server is running athttp://localhost:8080/
  2009-11-15 14:24:25.396 java[58372:80f] [Java CocoaComponent
  compatibility mode]: Enabled
  2009-11-15 14:24:25.400 java[58372:80f] [Java CocoaComponent
  compatibility mode]: Setting timeout for SWT to 0.10
  Nov 15, 2009 7:24:25 PM
  com.google.apphosting.utils.jetty.DevAppEngineWebAppContext
  disableTransportGuarantee
  INFO: Ignoring transport-guarantee for /* as the SDK does not
  support HTTPS.  It will still be used when you upload your
  application.
  Nov 15, 2009 7:24:25 PM
  com.google.apphosting.utils.jetty.AppEngineAuthentication
  $AppEngineAuthenticator authenticate
  INFO: Got /console.html but no one was logged in, redirecting.
  Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
  warn
  WARNING: handle failed
  java.io.IOException: FULL head
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
         at org.mortbay.io.nio.SelectChannelEndPoint.run
  (SelectChannelEndPoint.java:396)
         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
  (BoundedThreadPool.java:442)
  Nov 15, 2009 7:24:27 PM com.google.apphosting.utils.jetty.JettyLogger
  warn
  WARNING: handle failed
  java.io.IOException: FULL head
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
         at org.mortbay.io.nio.SelectChannelEndPoint.run
  (SelectChannelEndPoint.java:396)
         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
  (BoundedThreadPool.java:442)

  I am running from Eclipse Galileo, on a Mac, GWT 1.7.1, GXT 2.0.1.

  Does anyone know the name of the file that is keeping the cookies for
  the hosted mode browser?

  On Nov 2, 11:45 pm, Rodrigo rodrigoglsi...@gmail.com wrote:
   Hi,

   Same here.

   GXT does use cookies for storing theme related things.

   See:
 http://www.extjs.com/deploy/gxtdocs/com/extjs/gxt/ui/client/state/Sta...

   It seems it is writing the cookies many times on the file
   user@localhost[1].txt.

   After deleting this file my application seems to work. I say seems
   because there
   is another error that looks like has nothing to do with the original
   post.

   [ERROR] Unable to load module entry point class com.xxx.App (see
   associated exception for details)
   com.google.gwt.core.client.JavaScriptException: (TypeError):
   '$doc.defaultView' is null or not an object
    number: -2146823281
    description: '$doc.defaultView' is null or not an object
           at
   com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getComputedStyle
   (Native Method)
           at
   com.extjs.gxt.ui.client.core.impl.ComputedStyleImpl.getStyleAttribute
   (ComputedStyleImpl.java:27)
           at
  com.extjs.gxt.ui.client.core.El.getStyleAttribute(El.java:1236)
           at com.extjs.gxt.ui.client.util.IconHelper.createStyle
   (IconHelper.java:77)
           at
  com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:
   107)
           at
  com.extjs.gxt.ui.client.util.IconHelper.create(IconHelper.java:93)
           at com.extjs.gxt.ui.client.widget.button.Button.setIconStyle
   (Button.java:357)
           at com.xxx.App.Editor.init(Editor.java:104)
           at com.xxx.App.onModuleLoad(App.java:27)

   R.

   On Oct 28, 1:12 pm, Rajeev Dayal rda...@google.com wrote:

Hm, I would have expected that to work. Can you verify that when this
problem happens, you have large cookies in the directories that you
  tried to
clear?

I believe that the Vista cookies directory is:

C:\Users\ your user name\AppData\Roaming\Microsoft\Windows\Cookies

2009/10/17 lain yana-afanas...@ya.ru

  My suspicion is that there is some sort of cookie problem
 You are completely right.

 Now my application works fine without any configurations (because
 cookies expiration date has come, I think), so this bug was really a
 problem with cookies.
 But this problem may occur again in the future. =(

 If you 

Re: GWT Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5

2009-11-23 Thread Filipe Sousa
On Nov 19, 10:27 pm, Yozons Support on Gmail yoz...@gmail.com wrote:
 I wish I had a fixed way to make it happen, but it seems like I get a few
 different scenarios.

 Sometimes, after lots of code changes while the debugger is running, when I
 save the client .java file in Eclipse and it's compiled, FF will crash.
 Other times, it's when I click RELOAD after making changes.

 Sadly, FF is my main browser for all sorts of apps, so having it crash is a
 pain.  I'll post back if I can make heads or tails out of what I see
 happening.

I have seen a few crashes and that's why I'm build the firefox plugin
from trunk using the xulrunner provided by my distro.

$ cd plugins/xpcom/
$ make ARCH=x86_64 BROWSER=ff35 DEFAULT_FIREFOX_LIBS=/usr/lib64/
xulrunner-sdk-1.9.1 GECKO_LIBS=/usr/lib64/xulrunner-sdk-1.9.1/sdk/lib

--

You received 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=.




getCurrencyFormat() - I want it to use $ as the currency symbol, not US$

2009-11-23 Thread evan
This is probably a dumb question but when I try to use
numberFormat.getCurrencyFormat() to format a double as currency, it
insists on using US$ as the currency symbol. If I do getCurrencyFormat
(GBP) it uses UK£, etc.

Is there a way to make it just show the basic currency symbol and not
the country code as well? My app doesn't deal with foreign (to the
user) currency, so if a person in the US sees $ she will not wonder if
it refers to US or AUS dollars.

--

You received 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=.




Removing long classnames from RPC messages

2009-11-23 Thread inventor
Hi,

I would like to optimize RPC comminication of my GWT application. If I
look into the  RPC messages I am seeing many classnames from
serialized objects and I think the uncompressed message could be
nearly the half size if these classnames would be replaced by short
identifiers. Is there a way to achieve this?

Kind 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=.




horizontal Alignment in a dialog box not working

2009-11-23 Thread Neil Patel
Hi All,

I have a simple dialog box that is constructed as below. For some
reason the single inner element (buttons panel) does not obey the
horizontal align setting. The element *does* align vertically. Any
suggestions are greatly appreciated.

==

public FooDialog() {
setText(Foo Title);
VerticalPanel outer = new VerticalPanel();
outer.setBorderWidth(3);
outer.setSize(400px, 200px);
outer.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
outer.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE);

Button cancelButton = new Button(Cancel, new ClickHandler() {
  public void onClick(ClickEvent event) {
hide();
  }
});

HorizontalPanel buttons = new HorizontalPanel();
buttons.setBorderWidth(3);
buttons.add(cancelButton);

outer.add(buttons);

setWidget(outer);
}

--

You received 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=.




Re: How to use Selenium to simulate the action of picking an item of SuggestionBox?

2009-11-23 Thread Clint
You need to instruct it to focus on the field, clear the field (some
browsers might keep the original text), type each key, and somehow you
need to type space as the last key to trigger the suggestions. So
basically just selenium.type(..) won't work.

Clint

On Nov 20, 12:06 am, zoe.Liao zoe613...@hotmail.com wrote:
 Hello,Selenium IDE can not capture the action of picking an item of
 SuggestionBox.Is there any way to simulate this action (selecting an
 item) ?Or any aternative way to test SuggestionBox with selenium?

 Thanks in advance.

--

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




GWT and FlowPlayer

2009-11-23 Thread bmattar
I am trying to replace JW Player with Flow Player in my web page.
My page used JW player via GWT2SWF widget, which works great. Flow
player however, needs to call a JS function to initialize properly.

Is there any way to get Flow Player to work with GWT2SWF?

The problem is that I want the player embedded in an HTMLPanel widget.
When I embed the Flow Player initialization JS code within the HTML
Panel widget text, it doesn't work at all. But when I embed the JS
init function in the static HTML page used by my GWT app, it works
fine!

--

You received 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=.




(eclipse 3.5,GWT,macosx) a sample program seems to have bugs

2009-11-23 Thread lolveley
hello,

I tried to reproduce an example of program (from the magazine
programmez, in french), using GWT, but there is an execution error,
which I cannot understand, but I know which lines are involved.

the program deals with a list of pictures; which are displayed.There
is a button add which allows to add a new picture, by entering its
name, its url.
the sample pictures are well displayed, but the error comes when I
want to add a new picture; the dialog box stays displayed a few
seconds and there is an error which makes the program stop.
the error is : Invalid memory access of location 0010
eip=95d4e77b.

here is the code.
there are 3 classes : Miniature (which concern each picture),
Formulaire (which manages the addition of picture), and test!1, the
main classe.
nothing really complicated.

Miniature
**
package test.client;

import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.VerticalPanel;


public class Miniature extends Composite {

VerticalPanel panel;
Image miniature;
Label label;

public Miniature(String url, String titre){

miniature=new Image (url);
label=new Label(titre);

label.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
panel = new VerticalPanel();
panel.add(miniature);
panel.add(label);
initWidget(panel);
setHeight(80px);
setWidth(80px);
setStyleName(miniature-float);



}


}


**

Formulaire
**
package test.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.*;


public class Formulaire extends DialogBox {

public TextBox saisieUrl = new TextBox();
public TextBox saisieTitre = new TextBox();

public Formulaire() {

super();
setText(Ajouter une nouvelle image);
Grid grid=new Grid(3,2);
grid.setWidget(0, 0, new Label(Url));
grid.setWidget(0, 1, saisieUrl);
grid.setWidget(1, 0, new Label(Titre));
grid.setWidget(1, 1, saisieTitre);
Button boutonAjouter = new Button(Ajouter);
grid.setWidget(2, 1, boutonAjouter);
boutonAjouter.addClickHandler(new ClickHandler() {

@Override
public void onClick(ClickEvent event) {
Formulaire.this.hide();

}
});
add(grid);
center();


}





}


**

test_1
**
package test.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.event.logical.shared.CloseEvent;
import com.google.gwt.event.logical.shared.CloseHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PopupPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define codeonModuleLoad()/code.
 */
public class Test_1 implements EntryPoint, ClickHandler,
CloseHandlerPopupPanel {

private FlowPanel liste;
private Button boutonAjouter;


/**
 * This is the entry point method.
 */
public void onModuleLoad() {

VerticalPanel verticalPanel = new VerticalPanel();
liste = new FlowPanel();
liste.add(new 
Miniature(http://www.programmez.com/img/magazines/
couverture_119.jpg, Mai 2009));
liste.add(new 
Miniature(http://www.programmez.com/img/magazines/
couverture_120.jpg, Juin 2009));
boutonAjouter = new Button(Ajouter);
boutonAjouter.addClickHandler(this);

Re: OOPHM IE plugin doesn't work

2009-11-23 Thread ageres
Any updates?
I have the same problem using Vista + IE 8.0.6001.18828.

After first installation(GWT 2.Beta1) it worked for some time (at
least 1 day),
but after reboot it stopped working(Vista installed system updates and
requested for reboot).
I tried to repir/reinstall GWT plugin, but it still doesn't work.

I tried GWT2 Beta1, Beta2 and RC1, still no success.


On Oct 26, 3:06 pm, mikedshaf...@gmail.com mikedshaf...@gmail.com
wrote:
 Anyone from Google care to respond?  Seems pretty foundational.

 On Oct 24, 7:00 am, Ian Bambury ianbamb...@gmail.com wrote:

  I mentioned this 2 weeks ago. So far, no response.

  Ian

 http://examples.roughian.com

  2009/10/24 mikedshaf...@gmail.com mikedshaf...@gmail.com

   Having the same problem here.  I'm on XP Pro with IE 7 (corporate
   mandate).  Worked fine on Firefox.  Starting on Chrome  Safari later
   today.

   On Oct 24, 2:33 am, Andrey mino...@gmail.com wrote:
Hello!

When I open dev mode url in IE a message appears:
No GWT Browser Plugin Detected

I've downloaded and installed GWT Dev Mode Plugin for IE but the
message appears again.
Tried to repair and reinstall without success.

In FireFox everything is OK.

Does this plugin work?
I must add that I don't see this plugin in Service - Plugins menu in
IE. Should it be there?

Windows Vista
IE 8 with last updates

Andrey



--

You received 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=.




error with the DEFAULT PROJECT in eclipse 3.5 with macosx

2009-11-23 Thread loveley
hi,

I have posted a former mail in which I spoke about an issue with a 
sample project.
now, I have the same issue with the DEFAULT project (the one created 
with the button new web application project, in eclipse).
so the project isn't in cause, and the issue is elsewhere.

I use eclipse 3.5 JEE  cocoa 32 bits, for macosx, and the workspace is 
located in my HDD (before, it was located in my dropbox directory).
I downloaded GWT from the update site for eclipse 3.5, so the stuff is 
up-to-date.

the error is when I launch the default project, I have the first window 
asking me my name, I accept the default one, and then I have the remote 
procedure call window , all is good till I MOVE THE MOUSE, and then the 
program stops and in the console view I have the message : Invalid 
memory access of location xxx.

can you help me?
it's urgent!

olivier.







___ 
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

--

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




Re: GWT as part of repository or not?

2009-11-23 Thread Javier Molina
I recommend you put it in your VCS. Having it in the repository does not 
impact anyone negatively and makes everybody's life easier. If you must, 
set up your project so that you can override the default version by 
changing a per-developer setting or an environment variable and you're 
good to go, but this should be for experimentation only. You should 
dictate an approved version and everyone should be using that; otherwise 
someone will commit code that uses newer features not available in 
previous versions and, generally, chaos will take over your project.

rjcarr escribió:
 You list good pros and cons so you'll have to just decide which is the
 stronger argument for your situation.
 
 Since our project is developed in mixed environments, and the
 developer base isn't very big, it made sense for us to go with your
 second option (although we use property files not environment
 variables).  However, I can see justification in checking it in.
 
 Good luck!
 
 On Nov 21, 3:22 pm, jbdhl jbirksd...@gmail.com wrote:
 I can't decide where we should place GWT itself for a project with
 multiple developers:

   1) In the svn repository as part of the project.
  Pros:
 * The developers GWT version will always match what is being
 used in the project
 * No potential problems with GWT binaries being located
 differently for different developers. All scripts can just refer to
 the same relative path(s).
  Cons:
 * It's kind of ugly to commit third-party stuff into the
 project repository

2) Each developer download their own GWT version and let an
 environment variable, GWT_ROOT, point to it.
  Pros:
 * No third party stuff in project repository
  Const:
 * Possible conflicts if developers use different GWT versions
 * Possible problems with developers different placements of
 GWT.

 What would you suggest?
 
 --
 
 You received 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=.
 
 
 

--

You received 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=.




Re: GWT 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN

2009-11-23 Thread Henry
I had a similar problem.
My problem was that my jasper-jdt.jar (Tomcat) classpath was listed
before my GWT classpath
The offending Class was CompilerOptions
Simple fix was to put the GWT classpath before Tomcat's

On Oct 26, 1:47 pm, Harmeet Bedi harmeet.b...@gmail.com wrote:
 Your JdtCompiler is likely in 2 jars. In Google and something else.
 Try to resolve JdtCompiler, see what it resolves to.

 Also if you send your .classpath it would help diagnose.

 Harmeet

 - Original Message -
 From: bond daniele.re...@gmail.com
 To: Google Web Toolkit google-web-toolkit@googlegroups.com
 Sent: Monday, October 26, 2009 4:49:14 PM GMT -05:00 US/Canada Eastern
 Subject: GWT 2.0M1 java.lang.NoSuchFieldError WITH ECLIPSE PLUGIN

 Hi,
 I've a problem when I try to compile my dummy Eclipse web project with
 GWT Module with Google Plugin 1.1.2.
 The error is this:

 [ERROR] Unexpected
 java.lang.NoSuchFieldError:
 reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
         at com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions
 (JdtCompiler.java:208)
         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.init
 (JdtCompiler.java:94)
         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
 253)
         at com.google.gwt.dev.javac.CompilationState.compile
 (CompilationState.java:338)
         at com.google.gwt.dev.javac.CompilationState.refresh
 (CompilationState.java:247)
         at com.google.gwt.dev.javac.CompilationState.init
 (CompilationState.java:116)
         at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
 (ModuleDef.java:285)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:489)
         at com.google.gwt.dev.Precompile.precompile(Precompile.java:408)
         at com.google.gwt.dev.Compiler.run(Compiler.java:194)
         at com.google.gwt.dev.Compiler$1.run(Compiler.java:145)
         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
 89)
         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
 (CompileTaskRunner.java:83)
         at com.google.gwt.dev.Compiler.main(Compiler.java:152)

 Anyone has some ideas of the problem? I'm tring to deploy GWT
 application on Tomcat 6.0.20 directly from Eclipse.

 Thanks very much

 Best 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=.




Re: Add class to SerializationPolicy whitelist...

2009-11-23 Thread felix
Hi,

i had the same troubles in my project once i moved from 1.5.2 to
2.0m2. I found the following solution:

1. create a class on the client code:

public class SerializableWhiteList implements IsSerializable {
@SuppressWarnings(unused)
private MyBean myBean;
@SuppressWarnings(unused)
private MySecondBean mySecondBean;
// Put here all Beans wich need this special treatment
}

2. Create a Method in your Service and ServiceAsync and ServiceImpl:

public interface MyService extends RemoteService {
public SerializableWhiteList serializableWhiteList
(SerializableWhiteList s);
}
public interface MyServiceAsync {
public void serializableWhiteList(SerializableWhiteList s,
AsyncCallbackSerializableWhiteList cb);
}
public class MyServiceImpl extends RemoteServiceServlet implements
MyService {
@Override
public SerializableWhiteList serializableWhiteList
(SerializableWhiteList s) {
throw new RuntimeException(This Method is only used to put 
Beans to
the SerializationPolicy, please do not call it);
}
}

Greetings


On Nov 16, 4:51 am, Edgenius dapeng...@edgenius.com wrote:
 It is not new questions in this group. But I face a new problem in
 2.0M2 as SerializationPolicy logic is changed.  I know GWT will put
 serializition class into SerializationPolicy whitelist. Before 2.0, I
 create a dummy method which hold all classes I want to pass to client
 side but they are not inside any method's  parameters or exceptions.
 It looks:

 public interface RemoteServiceAsync {
 public void serialPolicy(ClientAuthenticationException
 ae,ClientAccessDeniedException ade, CaptchaVerifiedException ce
                         TextModel textModel,LinkModel linkModel, 
 MessageListModel mlm,
 AsyncCallbackObject callback);
                         }

 These Exception classes are a kind of runtime exception - For
 example, ClientAuthenticationException is thrown when login failed.
 It won't be checked exception as almost all methods have the
 possibilty to throw this exception. It is bad to write on every method
 like int myMethod() throws ClientAuthenticationException.

 I guess 2.0 becomes smarter - it can distinguish the unused method and
 kick out my runtime exceptions classes from SerializationPolicy
 whitelist.  Unfortunately, it brings troubles as well.  So, do we have
 an easy to way to expand whitelist?

--

You received 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=.




Re: GWT Hosted Mode crashing after Snow Leopard 10.6.2 Update

2009-11-23 Thread Jason
Thanks for the fix  :-)

It saved me from reinstall Max OS X.
So it's a big help for me.

Cheers

On Nov 12, 12:35 pm, Daniel Kurka kurka.dan...@googlemail.com wrote:
 I found a very UGLY solution to my problem (which enables me to continue
 working).

 I replaced in LowLevelSaf.java public static native void gcUnprotect(int,
 int); to public static void gcUnprotect(int, int) {}

 causing the invalid access

 This is not a real fix, just a very nasty workaround

 If you run into the same problem you can download a fixed gwt-dev.jar from
 here:

 http://www.daniel-kurka.de/gwt-dev-1.7.1-mac-sf-4.0.4-fix.jar

--

You received 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=.




no border on a dialogBox (macosx,netbeans)

2009-11-23 Thread lolveley
hi,

I copied a program from a magazine with the purpose of learn GWT, and
all run fine except the dialog box has no border, as shown in this
picture : 
http://serv3.upndl.com/raw/6be0cb4a4b30f0e1eee2d4bede59/capture-decran-2009-11-22--14.05.59.png
.
I use netbeans with the plugin GWT4NB, I use macosx 10.6, I downloaded
GWT (the last one), and the application container is tomcat 6.0 .
can you tell me why the dialogbox has no border?

here is the code of the dialogBox :
*
public class Formulaire extends DialogBox{

public TextBox saisieUrl=new TextBox();
public TextBox saisieTitre=new TextBox();

public Formulaire(){

super();
setText(Ajouter une nouvelle image);
Grid grid=new Grid(3, 2);
grid.setWidget(0, 0, new Label(url));
grid.setWidget(0, 1, saisieUrl);
grid.setWidget(1, 0, new Label(titre));
grid.setWidget(1, 1, saisieTitre);
Button boutonAjouter=new Button(Ajouter);
grid.setWidget(2, 1, boutonAjouter);
boutonAjouter.addClickHandler(new ClickHandler() {

public void onClick(ClickEvent event) {
Formulaire.this.hide();
}
});
add(grid);
center();
}
}

*
and here is the code for the calling of the dialogBox :
*
public void onClick(ClickEvent event) {

if (event.getSource()==boutonAjouter){

Formulaire fenetreAjout = new Formulaire();
fenetreAjout.addCloseHandler(this);
fenetreAjout.show();


}
*


can you help me?

olivier.

--

You received 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=.




New to GWT - Suggestion Required

2009-11-23 Thread Abdullah
Hi All,

I am new to GWT infact new to AJAX itself, I was wandering for an ajax
framework and came across GWT, I went through the articles, docs etc
etc on GWT and found it to be interesting infact cool.

Now that I have decided to use GWT, I require some suggestion/advice
from you guys.

We have an ERP system, which I would like to Ajaxify, there are few
doubts which I would like to clear before I delve into this :

1) How do we manage sessions when using Ajax ? I have gone through
many articles on this, but I would like to know your thoughts on this.

2) Keeping in mind the 1 question, should I use xml-rpc or http ? I
gues xml-rpc would be better.

3) How to handle https ?

Hmm .. that's it for now .. this should get me started on GWT :)


Thanks,
Abdullah

--

You received 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=.




WEB-INF/lib

2009-11-23 Thread João Paulo Ferreira
Hi guys

I'm new with GWT.
I created a gwt projetc using the google plugin for gwt 1.7.1.
After I added some jar's in war/WEB-INF/lib, I realized that this folder
wasn't in the classpath, like in a regular web project. Then I tried to add
the Web App Library, but this project wasn't recognized as a web project. I
also saw that in the project properties it didn't have facets options to be
configured.
I ended up adding the jar's in the classpath manually, one by one.
Is this correct?

Thanks in advance.

*
JP

--

You received 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=.




Gilead + Guice + Gwt-Dispatch

2009-11-23 Thread Marcos Alcantara
Hi,

Have anyone been successful on using these three altogether?

Can someone please post some examples about how to configure them?

Thanks!!!

Marcalc

--

You received 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=.




Persisting GWT Visualization API DataTable

2009-11-23 Thread Matthew Planchant
How should I go about persisting GWT Visualization API DataTable and
moving it between server and client?

I'd like to be able to build one on the client side, send it over the
wire and persist it in something like CouchDB. This should also be
able to work in the other direction. Pull a representation of a
DataTable from the DB send it to the client then rebuild the
DataTable.

Thanks for any advice/suggestions.

Matt.

--

You received 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=.




Re: GWT 2.0 Development Mode: Can't Load Page

2009-11-23 Thread Zamy
I had the same problem.
It seems randomly it has errors on loading his modules.
Stop and restart the server (in some case, more than 1 time), and it
will go :)

(error is, whit stockwatcher example:

[ERROR] Failed to load module 'stockwatcher' from user agent 'Mozilla/
5.0 (Windows; U; Windows NT 5.1; it; rv:1.9.1.5) Gecko/20091102
Firefox/3.5.5' at ZAMY:1790
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)
at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad
(ModuleDefLoader.java:225)
at com.google.gwt.dev.cfg.ModuleDefLoader$1.load(ModuleDefLoader.java:
155)
at com.google.gwt.dev.cfg.ModuleDefLoader.doLoadModule
(ModuleDefLoader.java:269)
at com.google.gwt.dev.cfg.ModuleDefLoader.loadFromClassPath
(ModuleDefLoader.java:127)
at com.google.gwt.dev.DevModeBase.loadModule(DevModeBase.java:940)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:97)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:167)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:345)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:192)
at java.lang.Thread.run(Unknown Source)

)

On 20 Nov, 19:29, spatters71 sonny.c.patter...@gmail.com wrote:
 I'm trying to run the sample GWT 2.0 Applications. I can't seem to get
 the development mode to work.

 When I hit the Run button in Eclipse, I get the GWT Development Mode
 Window, and it says:
 00:00:01.674 [INFO] Waiting for browser connection 
 tohttp://localhost:/DynaTable.html?gwt.codesvr=10.1.3.14:9997;

 However when I browse to this URL:

 http://localhost:/DynaTable.html?gwt.codesvr=10.1.3.14:9997

 in FireFox, IE8, or Chrome I get a message stating that the web page
 can't be loaded.

 I have JDK 6 release 17, Eclipse 3.5, Windows 7.

--

You received 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=.




UiBinder differences between styleName and addStyleNames

2009-11-23 Thread djd
Hi,
I have discovered that UiBinderGenerator has a (quite) strange
behavior while setting/adding Css styles.
Here is an example:

ui:UiBinder
xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui' 

   ui:style type=com.app.client.LogoDisplay.MyStyle
src=LogoDisplay.css /
   g:VerticalPanel styleName={style.basic}
addStyleNames={style.common}/
/ui:UiBinder

In LogoDisplay.css I obviously have the two styles (.basic
and .common). I also declared a custom CssResource (in LogoDisplay)
that binds with that Css file. The weird thing is styleName is
actually invoked using a setter (setStyleName) while addStyleNames are
invoked repeteadly using addStyleName, so it virtually same thing, but
the last style is not added (.common). I have also tried to use
addStyleNames=common but it seems that I don't have the Css file
injected (and I would need to manually do that) and this does not work
either.

Can you help me? I'm sorry if the answer is extremely trivial, but I
was unable to find a solution for this problem (adding 2 or more
styles on a widget) - preferably I don't want to inject the Css (I
plan to have a lot of Css files, I don't want to inject all of them).

--

You received 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=.




Code coverage for GWT

2009-11-23 Thread Nir Feldman
Hi,
I want to have a code coverage for a GWT client built using maven.
what plugin is the most recommended?

Nir

--

You received 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=.




After compilation of StockWatcher example, GWT 2.0

2009-11-23 Thread Zamy
Hi all!
Initially, excuse me if you will find my questions a bit stupid, i'm
very noob :D
After the compilation of the example named StockWatcher, done
successfully, i saw all the correct file in the directory generated.

But, i have a dubt, and the tutorial isn't so clear at this point:
i want to see the compiled project, what i have to done?
I tryed to open the hosted.html page (both locally and remote), but
i only see that:
This html file is for hosted mode support.

What i don't know?

thank for you help :)

--

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




Re: Design Patterns

2009-11-23 Thread Lúcio Camilo
The Command I understand, but and the Composite? Does not seems the same
than the pattern.
There are others design Patterns in GWT?

2009/11/23 Martin Trummer martin.trum...@24act.at

 maybe you should ask a more detailed question

 the GWT stuff is just an implementation of the corresponding pattern
 with the same name
 you'll find plenty of explanations for the patterns when you google
 for them
 or look it up in wiki
 http://en.wikipedia.org/wiki/Command_pattern

 I don't know what more one could say about this..

 On 21 Nov., 23:58, Lúcio Camilo luciocam...@gmail.com wrote:
  But someone can xplain what?
 
  2009/11/20 Martin Trummer martin.trum...@24act.at
 
   yes
 
   On 19 Nov., 21:08, Lúcio Camilo luciocam...@gmail.com wrote:
The component Composite and the object Command have something in
 common
   with
the design patterns with same name?
 
   --
 
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=.
 
 

 --

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




--

You received 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=.




Re: Button Double Click

2009-11-23 Thread Lúcio Camilo
You can override the method onClick of the button, to do nothing, so only
the method DoubleClick will work.

2009/11/23 hsk hsk...@gmail.com

 Hi Group.

 I need an ordinary button on which I can click on and then something
 happens.
 Obviously I use the Widget 'Button' for that. But I also need to
 double click on it so something else will happen.

 To do this, I extend 'Button' and implement it with
 'HasDoubleClickHandlers' and

 public HandlerRegistration addDoubleClickHandler(DoubleClickHandler
 handler) {
return addDomHandler(handler, DoubleClickEvent.getType());
 }

 This works (almost) very well by giving my button an addClickHandler
 and an addDoubleClickHandler and implement what to do in each
 overridden onClick and onDoubleClick for each respective added
 handler.

 My problem is, when clicking the Button it does what is has to do. But
 when double clicking it does both what it has to do when clicked and
 when double clicked.

 Has anyone experienced something similar? how do I block the click
 when double clicking?

 - hsk -

 --

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




--

You received 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=.




Re: Gilead + Guice + Gwt-Dispatch

2009-11-23 Thread djd
Yes, I worked on a sample code that achieved that a couple of month
ago... I will try to post some sample code as soon as possible (first
let me find it);
for now, allow me to give you some impressions :
* the idea is nice (modularization, clear code, simple classes, etc)
* BUT the implementation is painful:
- I remember that I had to extend the EngineRemoteServlet
(supplied with Gilead) - not very cool
- it boasts that no web.xml anymore - forget it, you have to map
quite a bit before making it work
- at that time there was no hello, world example of setting it
up
- A LOT OF BOILER PLATE CODE (Action, Result for every possible
interaction with the server). Way too much to actually make something
useful. After you write about 5 Action + 5 Result classes, you will
get what I mean
- You lose the feeling of coding with Java, because your remove
service interface has only one method (doExecuteAction-and-
getAResult).
- You cannot have more methods on the same interface - aka service
- (again, Java feeling is completely lost)
- Because of generics restriction (even through Rpc interface is
using generics, the type erasure is not considered when extending an
interface, so you cannot do something like interface UserService
extends ServiceGetUserLoginAction,GetUserLoginResult, Service...,
Service...

I will post some working code soon or you can PM me and I'll send you
the whole project

On Nov 23, 1:24 pm, Marcos Alcantara marc...@gmail.com wrote:
 Hi,

 Have anyone been successful on using these three altogether?

 Can someone please post some examples about how to configure them?

 Thanks!!!

 Marcalc

--

You received 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=.




Re: cache.html file is not cached with JBoss(Tomcat) and Internet Explorer 6-7

2009-11-23 Thread buz...@gmail.com
Hi,

Please share your HTTP headers for cache.html.
Also check your GZIP filter if it is not overriding some of the
settings already set by cache filter.

Dmitry

On Nov 23, 1:04 pm, pepgrifell pepgrif...@gmail.com wrote:
 Hi,

 the problem is that *.css,*.js and images are cached but the only file
 that is not cached is my cache.html file ... The file is about 3MB and
 each time the users enter in the application, this file is downladed.
 The only different thing from cache.html file and the others
 (css,js,images...) is that cache.html file is gzipped before sending
 it to the client.

 I tried to add :
 Context
 Valve className=org.apache.catalina.authenticator.FormAuthenticator
 disableProxyCaching=false /
 /Context

 in META-INF/context.xml file (WAR) but it's not working either. (we
 use JAAS. I tried with FormAuthenticator and SSLAuthenticator)

 Any idea why cache.html file is not cached ?

 Thanks !

 On 20 nov, 20:15, Yozons Support on Gmail yoz...@gmail.com wrote:



  For Tomcat, if you have this in your META-INF/context.html:

  Context debug=0
          Valve
  className=org.apache.catalina.authenticator.NonLoginAuthenticator
                  disableProxyCaching=false /
  /Context

  This will prevent it from doing the caching.  If you have any other type of
  Authenticator in use already, you can probably just add the
  disableProxyCaching=false attribute to it.

--

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




Re: java.util.List

2009-11-23 Thread ben fenster

import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;

public class bla implements ListString {

@Override
public boolean add(String e) {
// TODO Auto-generated method stub
return false;
}

@Override
public void add(int index, String element) {
// TODO Auto-generated method stub

}

@Override
public boolean addAll(Collection? extends String c) {
// TODO Auto-generated method stub
return false;
}

@Override
public boolean addAll(int index, Collection? extends String c) {
// TODO Auto-generated method stub
return false;
}

@Override
public void clear() {
// TODO Auto-generated method stub

}

@Override
public boolean contains(Object o) {
// TODO Auto-generated method stub
return false;
}

@Override
public boolean containsAll(Collection? c) {
// TODO Auto-generated method stub
return false;
}

@Override
public String get(int index) {
// TODO Auto-generated method stub
return null;
}

@Override
public int indexOf(Object o) {
// TODO Auto-generated method stub
return 0;
}

@Override
public boolean isEmpty() {
// TODO Auto-generated method stub
return false;
}

@Override
public IteratorString iterator() {
// TODO Auto-generated method stub
return null;
}

@Override
public int lastIndexOf(Object o) {
// TODO Auto-generated method stub
return 0;
}

@Override
public ListIteratorString listIterator() {
// TODO Auto-generated method stub
return null;
}

@Override
public ListIteratorString listIterator(int index) {
// TODO Auto-generated method stub
return null;
}

@Override
public boolean remove(Object o) {
// TODO Auto-generated method stub
return false;
}

@Override
public String remove(int index) {
// TODO Auto-generated method stub
return null;
}

@Override
public boolean removeAll(Collection? c) {
// TODO Auto-generated method stub
return false;
}

@Override
public boolean retainAll(Collection? c) {
// TODO Auto-generated method stub
return false;
}

@Override
public String set(int index, String element) {
// TODO Auto-generated method stub
return null;
}

@Override
public int size() {
// TODO Auto-generated method stub
return 0;
}

@Override
public ListString subList(int fromIndex, int toIndex) {

return null;
}

@Override
public Object[] toArray() {
// TODO Auto-generated method stub
return null;
}

@Override
public T T[] toArray(T[] a) {
// TODO Auto-generated method stub
return null;
}

}


 i am did the exact same thing and got

[ERROR] Line 131: The method subList(int, int) of type bla must
override or implement a supertype method



On 23 נובמבר, 16:07, Paul MERLIN eskato...@gmail.com wrote:
 Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :

  im sorry but i was under some presure i have a close deadline and
  thats pretty much the only problem idid you create an anonymous class
  or a class that implements the list

 public class Test implements ListString { ... }

--

You received 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=.




Re: java.util.List

2009-11-23 Thread Jason Morris
Hi ben,

If you are using a version of GWT  2.0 this error appears because the standard 
GWT List interface 
doesn't have the subList method. You can either remove the @Override annotation 
from that method, or 
extend AbstractList instead of implementing List directly (generally considered 
a better option 
anyways).

You could also upgrade to GWT 2.0-rc, which has the subList method included in 
the interface definition.

Hope that helps.
//Jason

ben fenster wrote:
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.List;
 import java.util.ListIterator;
 
 public class bla implements ListString {
 
   @Override
   public boolean add(String e) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public void add(int index, String element) {
   // TODO Auto-generated method stub
 
   }
 
   @Override
   public boolean addAll(Collection? extends String c) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public boolean addAll(int index, Collection? extends String c) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public void clear() {
   // TODO Auto-generated method stub
 
   }
 
   @Override
   public boolean contains(Object o) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public boolean containsAll(Collection? c) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public String get(int index) {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public int indexOf(Object o) {
   // TODO Auto-generated method stub
   return 0;
   }
 
   @Override
   public boolean isEmpty() {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public IteratorString iterator() {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public int lastIndexOf(Object o) {
   // TODO Auto-generated method stub
   return 0;
   }
 
   @Override
   public ListIteratorString listIterator() {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public ListIteratorString listIterator(int index) {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public boolean remove(Object o) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public String remove(int index) {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public boolean removeAll(Collection? c) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public boolean retainAll(Collection? c) {
   // TODO Auto-generated method stub
   return false;
   }
 
   @Override
   public String set(int index, String element) {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public int size() {
   // TODO Auto-generated method stub
   return 0;
   }
 
   @Override
   public ListString subList(int fromIndex, int toIndex) {
 
   return null;
   }
 
   @Override
   public Object[] toArray() {
   // TODO Auto-generated method stub
   return null;
   }
 
   @Override
   public T T[] toArray(T[] a) {
   // TODO Auto-generated method stub
   return null;
   }
 
 }
 
 
  i am did the exact same thing and got
 
 [ERROR] Line 131: The method subList(int, int) of type bla must
 override or implement a supertype method
 
 
 
 On 23 נובמבר, 16:07, Paul MERLIN eskato...@gmail.com wrote:
 Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :

 im sorry but i was under some presure i have a close deadline and
 thats pretty much the only problem idid you create an anonymous class
 or a class that implements the list
 public class Test implements ListString { ... }
 
 --
 
 You received 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=.
 
 
 

--

You received this message because you are subscribed to the Google Groups 
Google 

Re: error with the DEFAULT PROJECT in eclipse 3.5 with macosx

2009-11-23 Thread Chris Ramsdale
What version of Mac OS X are you running and which browser/version are you
experiencing this issue in?

On Sat, Nov 21, 2009 at 10:51 AM, loveley lolve...@yahoo.fr wrote:

 hi,

 I have posted a former mail in which I spoke about an issue with a
 sample project.
 now, I have the same issue with the DEFAULT project (the one created
 with the button new web application project, in eclipse).
 so the project isn't in cause, and the issue is elsewhere.

 I use eclipse 3.5 JEE  cocoa 32 bits, for macosx, and the workspace is
 located in my HDD (before, it was located in my dropbox directory).
 I downloaded GWT from the update site for eclipse 3.5, so the stuff is
 up-to-date.

 the error is when I launch the default project, I have the first window
 asking me my name, I accept the default one, and then I have the remote
 procedure call window , all is good till I MOVE THE MOUSE, and then the
 program stops and in the console view I have the message : Invalid
 memory access of location xxx.

 can you help me?
 it's urgent!

 olivier.







 ___
 Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son
 interface révolutionnaire.
 http://fr.mail.yahoo.com

 --

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




--

You received 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=.




Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-23 Thread Jason Parekh
Hi Youen,

Which version of Java are you using?  There was an issue where breakpoints
would not catch on JDK 1.6.0_14.

You can check the version being used under:
- Run  Run configurations
- Expand Web Application on the side bar
- Select one of its children, click on the JRE tab

jason

On Mon, Nov 23, 2009 at 4:32 AM, Youen youen.ch...@gmail.com wrote:

 Hi,

 I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
 when i am in development mode.

 I set some breakpoints, I run in eclipse debug mode and I use firefox
 3.5, but it seems that the breakpoints are not catch.

 Does someone make it work or am I missing someting ?

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=.




--

You received 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=.




Re: java.util.List

2009-11-23 Thread ben fenster
no i am using gwt 1.7
i cant understand the error because i do  implement the method
moreover the method was auto filled by eclipse

On 23 נובמבר, 16:52, Jason Morris lem...@gmail.com wrote:
 Hi ben,

 If you are using a version of GWT  2.0 this error appears because the 
 standard GWT List interface
 doesn't have the subList method. You can either remove the @Override 
 annotation from that method, or
 extend AbstractList instead of implementing List directly (generally 
 considered a better option
 anyways).

 You could also upgrade to GWT 2.0-rc, which has the subList method included 
 in the interface definition.

 Hope that helps.
 //Jason

 ben fenster wrote:
  import java.util.Collection;
  import java.util.Iterator;
  import java.util.List;
  import java.util.ListIterator;

  public class bla implements ListString {

    �...@override
     public boolean add(String e) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public void add(int index, String element) {
             // TODO Auto-generated method stub

     }

    �...@override
     public boolean addAll(Collection? extends String c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean addAll(int index, Collection? extends String c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public void clear() {
             // TODO Auto-generated method stub

     }

    �...@override
     public boolean contains(Object o) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean containsAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String get(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int indexOf(Object o) {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public boolean isEmpty() {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public IteratorString iterator() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int lastIndexOf(Object o) {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public ListIteratorString listIterator() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public ListIteratorString listIterator(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public boolean remove(Object o) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String remove(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public boolean removeAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean retainAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String set(int index, String element) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int size() {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public ListString subList(int fromIndex, int toIndex) {

             return null;
     }

    �...@override
     public Object[] toArray() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public T T[] toArray(T[] a) {
             // TODO Auto-generated method stub
             return null;
     }

  }

   i am did the exact same thing and got

  [ERROR] Line 131: The method subList(int, int) of type bla must
  override or implement a supertype method

  On 23 נובמבר, 16:07, Paul MERLIN eskato...@gmail.com wrote:
  Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :

  im sorry but i was under some presure i have a close deadline and
  thats pretty much the only problem idid you create an anonymous class
  or a class that implements the list
  public class Test implements ListString { ... }

  --

  You received 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=.

--

You received this message because you are subscribed to the 

Debugging the serialization process for GWT-RPC

2009-11-23 Thread Eric
Hello all,

I'm fairly new to GWT.  I have had one RPC service working for about 3
weeks.  Last week I implemented a second one.  No problems.  In the
last couple days I Implemented a third service not unlike the first 2,
but I did have to make some changes to my model classes.

Suddenly the first service returns 500 errors if the return value is
not null. The exception says to See server logs for details but I
can't find any clues in the server logs at all.  From everything I can
see on the server side everything completed normally.

I can put a breakpoint right before the return statement and
everything seems to be in order.  Is there any way looking into what
problem may have been encountered while trying to serialize the retrun
value?

I'm using Eclipse 3.5 with the 1.7.1 version of the plugin.

Sorry for the lack of specifics, but any tangible error message is
exactly what I'm looking for.

Thanks,
Eric

--

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




Re: java.util.List

2009-11-23 Thread ben fenster
thanks i removed the override and it worked can you please tell me why
 did act like that since the eclipse filled out the implementation
acording to the interface and if the method is not suppored  how did
it got into the imlementation in the first place

On 23 נובמבר, 16:52, Jason Morris lem...@gmail.com wrote:
 Hi ben,

 If you are using a version of GWT  2.0 this error appears because the 
 standard GWT List interface
 doesn't have the subList method. You can either remove the @Override 
 annotation from that method, or
 extend AbstractList instead of implementing List directly (generally 
 considered a better option
 anyways).

 You could also upgrade to GWT 2.0-rc, which has the subList method included 
 in the interface definition.

 Hope that helps.
 //Jason

 ben fenster wrote:
  import java.util.Collection;
  import java.util.Iterator;
  import java.util.List;
  import java.util.ListIterator;

  public class bla implements ListString {

    �...@override
     public boolean add(String e) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public void add(int index, String element) {
             // TODO Auto-generated method stub

     }

    �...@override
     public boolean addAll(Collection? extends String c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean addAll(int index, Collection? extends String c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public void clear() {
             // TODO Auto-generated method stub

     }

    �...@override
     public boolean contains(Object o) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean containsAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String get(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int indexOf(Object o) {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public boolean isEmpty() {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public IteratorString iterator() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int lastIndexOf(Object o) {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public ListIteratorString listIterator() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public ListIteratorString listIterator(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public boolean remove(Object o) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String remove(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public boolean removeAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean retainAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String set(int index, String element) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int size() {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public ListString subList(int fromIndex, int toIndex) {

             return null;
     }

    �...@override
     public Object[] toArray() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public T T[] toArray(T[] a) {
             // TODO Auto-generated method stub
             return null;
     }

  }

   i am did the exact same thing and got

  [ERROR] Line 131: The method subList(int, int) of type bla must
  override or implement a supertype method

  On 23 נובמבר, 16:07, Paul MERLIN eskato...@gmail.com wrote:
  Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :

  im sorry but i was under some presure i have a close deadline and
  thats pretty much the only problem idid you create an anonymous class
  or a class that implements the list
  public class Test implements ListString { ... }

  --

  You received 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 
  

Making command pattern RPC look like traditional GWT RPC

2009-11-23 Thread Jamie Gennis
Hi all,

I posted this on the GWT Contributors group last week hoping to start a
discussion about the GWT internals that I'm using for the library I'm
working on (and whether they all need to be internals), but I haven't gotten
any responses about that so I'm reposting to the GWT developers group...

I've been writing a GWT library to implement the command pattern for GWT RPC
calls using the same interfaces that traditional GWT RPC uses.  Basically,
when an app calls a method of the FooAsync action service interface, an
action object is created from the method arguments, processed by some action
filters on the client, then passed to the server.  The server then pulls the
method arguments out of the action object and passes them as arguments to
the appropriate method of the Foo interface implementation class.  The
return value (or thrown Throwable) from that method then gets put into an
action result object on the server and sent back to the client, where it
gets processed by filters and eventually has the return value or throwable
pulled out and passed to the onSuccess or onFailure methods of the async
callback.

I have a working (albeit not extensively tested) implementation at
http://code.google.com/p/gwt-remote-action/, but the implementation relies
on some GWT internals, so it's rather brittle at the moment. I'd like to get
some feedback on how I can change my implementation to be more future-proof
(or correct if it isn't), and which (if any) of the GWT internals that I'm
using might be candidates for becoming a part of GWT's public interface.

To get a better idea of how this library is intended to be used, check out
the Usage Guide
http://code.google.com/p/gwt-remote-action/wiki/UsageGuide(still a
work in progress).

The tricky part of the implementation is the action result.  The purpose of
an action result object is to encapsulate the result of executing an action
in such a way that action filters can manipulate it without having any
knowledge of what the action was.  It needs to contain an arbitrary return
value object or an arbitrary Throwable object (as well as an indication that
the Throwable was thrown rather than returned).  These objects are exposed
via the 
ActionResulthttp://code.google.com/p/gwt-remote-action/source/browse/core/src/main/java/com/google/code/gwt/remoteaction/client/ActionResult.java
interface.
 Simply having a general action result class that contains a return value
field of type Object and an exception field of type Throwable is not
desirable because it would cause deserialization code for every class that
GWT knows about to be included in the compiled javascript.

The current implementation works by generating one action result class for
each RPC method.  Identical action result classes are generated by a GWT
Generator at gwtc-time (for the client) and via Java byte code generation at
run-time (for the server).  My original idea was that this method-specific
action result class could have a result field of the specific return type of
the method along with a field for each type in the method's throws list.
 This turned out not to be necessary (at least for the cases I've tested),
because when GWT calls the Generator for the
ActionExecutionServicehttp://code.google.com/p/gwt-remote-action/source/browse/core/src/main/java/com/google/code/gwt/remoteaction/client/ActionExecutionService.java
(the
traditional GWT RPC that sends the action objects to the server) it doesn't
find any of the generated method-specific action result classes.  Because of
this I simplified the action result classes to just have one field of type
Throwable, and I verified that not all the Throwable classes get included in
the deserializable classes list in the *.rpc.log files.  I'm not sure that
this behavior doesn't depend on GWT.create being called in a specific order
or something else I'm not aware of, but that should be solvable by splitting
the throwables into multiple fields if needed.

Generating the action result classes after the ActionExecutionService gets
generated means that none of the deserializers for the return values and
throwables of the action methods get generated or rescued.  To get around
this I:

   1. Make the ActionExecutionService use the new deRPC implementation
   rather than the previous RPC implementation
   2. Use the RpcProxyCreator class to generate a dummy implementation of a
   deRPC proxy for the action service (this proxy doesn't get used)
   3. Add an @ArtificialRescue to the generated action service proxy to
   rescue the _TypeOverridesFactory class that the RpcProxyCreator generated.
This _TypeOverridesFactory class has all of the @ArtificalRescue's
   necessary to deserialize the fields of the generated action result class.

Step 1 is mostly acceptable to me, though it would be nice if my
implementation didn't depend upon an experimental feature that may not make
it into GWT 2.0.  Step 2 is somewhat wasteful since it takes gwtc time
generating a proxy class 

lacking an interface with setEnabled method

2009-11-23 Thread Michel Daviot
Hi,

I think an interface defining the setEnabled method is lacking. This
would be implemented in FocusWidget, DateBox ...

--

You received 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=.




Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-23 Thread Youen
Hi,

I a using 1.6.0_15.

The result of java -version

java version 1.6.0_15
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

By the way, I am on mac with snow leopard and the last version
(10.6.2).

Youen


On 23 nov, 16:01, Jason Parekh jasonpar...@gmail.com wrote:
 Hi Youen,

 Which version of Java are you using?  There was an issue where breakpoints
 would not catch on JDK 1.6.0_14.

 You can check the version being used under:
 - Run  Run configurations
 - Expand Web Application on the side bar
 - Select one of its children, click on the JRE tab

 jason

 On Mon, Nov 23, 2009 at 4:32 AM, Youen youen.ch...@gmail.com wrote:
  Hi,

  I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
  when i am in development mode.

  I set some breakpoints, I run in eclipse debug mode and I use firefox
  3.5, but it seems that the breakpoints are not catch.

  Does someone make it work or am I missing someting ?

  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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=.

--

You received 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=.




dynamic Messages/ImageBundle possible?

2009-11-23 Thread denis56
Hi there,

I wonder if it is possible to use Internationalization and
ImageBundles in GWT in a more dynamic way. For instance, if there is a
client method

void createSportTitleAndImage(String sportId) {

}

is it somehow possible to have the  sportId argument  being
dynamically plugged into the relevant ImageBundle/Messages method to
return appropriate code without the if/else-jungle.

So instead of:

void createSportTitleAndImage(String sportId) {
 if (sport.equals(basketball))
ImageBundle.getBasketballImage();
Messages.getBasketballText();
 else if (sport.equals(handball))
ImageBundle.getHandballImage();
Messages.getHandballText();
 else ...
}

to have something like :

void createSportTitleAndImage(String sportId) {
ImageBundle.getSportImageById(sportId);
Messages.getSportTextById(sportId);
}

where getSportByName(sportId) would fetch resource for the key base +
sportId ?

That would really simplify things:)
Thanks

--

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




is the next version going to be 2.0?

2009-11-23 Thread denis56
His,

One more question. I am in the midst of one project development
running on gwt1.7. Is the next version going to be a jump to 2.0.
Would you recommend switching to 2.0 code base right away ?

thanks

--

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




Re: dynamic Messages/ImageBundle possible?

2009-11-23 Thread Dean S. Jones
this might help a little

http://code.google.com/p/asmodaiosgwt/

On Nov 23, 10:40 am, denis56 denis.ergashb...@gmail.com wrote:
 Hi there,

 I wonder if it is possible to use Internationalization and
 ImageBundles in GWT in a more dynamic way. For instance, if there is a
 client method

 void createSportTitleAndImage(String sportId) {

 }

 is it somehow possible to have the  sportId argument  being
 dynamically plugged into the relevant ImageBundle/Messages method to
 return appropriate code without the if/else-jungle.

 So instead of:

 void createSportTitleAndImage(String sportId) {
  if (sport.equals(basketball))
     ImageBundle.getBasketballImage();
     Messages.getBasketballText();
  else if (sport.equals(handball))
     ImageBundle.getHandballImage();
     Messages.getHandballText();
  else ...

 }

 to have something like :

 void createSportTitleAndImage(String sportId) {
     ImageBundle.getSportImageById(sportId);
     Messages.getSportTextById(sportId);

 }

 where getSportByName(sportId) would fetch resource for the key base +
 sportId ?

 That would really simplify things:)
 Thanks

--

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




Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-23 Thread Jason Parekh
Hi Youen,

Could you also make sure the launch configuration is using 1.6.0_15?  It
could be the case that your default JDK is _15, but when the launch config
was created, it was using _14.

Have breakpoints every work for you in this project?  How about more
generally in other projects in Eclipse?

jason

On Mon, Nov 23, 2009 at 10:33 AM, Youen youen.ch...@gmail.com wrote:

 Hi,

 I a using 1.6.0_15.

 The result of java -version

 java version 1.6.0_15
 Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
 Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

 By the way, I am on mac with snow leopard and the last version
 (10.6.2).

 Youen


 On 23 nov, 16:01, Jason Parekh jasonpar...@gmail.com wrote:
  Hi Youen,
 
  Which version of Java are you using?  There was an issue where
 breakpoints
  would not catch on JDK 1.6.0_14.
 
  You can check the version being used under:
  - Run  Run configurations
  - Expand Web Application on the side bar
  - Select one of its children, click on the JRE tab
 
  jason
 
  On Mon, Nov 23, 2009 at 4:32 AM, Youen youen.ch...@gmail.com wrote:
   Hi,
 
   I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
   when i am in development mode.
 
   I set some breakpoints, I run in eclipse debug mode and I use firefox
   3.5, but it seems that the breakpoints are not catch.
 
   Does someone make it work or am I missing someting ?
 
   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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=.

 --

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




--

You received 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=.




Re: OOPHM IE plugin doesn't work

2009-11-23 Thread Chris Ramsdale
I've been trying to reproduce the issue mentioned above and so far am
unsuccessful. Can you verify that the following registry entries are
available (UID being the unique identifier assigned to your account):

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\UID\Components\50E8C0062FB69AB5399BEF4DAE291BB6
HKEY_USERS\UID\Software\Classes\AppID\oophm.DLL
HKEY_USERS\UID\Software\Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5CB}\InprocServer32
HKEY_USERS\UID\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\InprocServer32
HKEY_USERS\UID\Software\Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\ToolboxBitmap32
HKEY_USERS\UID\Software\Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751C1}\InprocServer32
HKEY_USERS\UID\Software\Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C1BA6}\1.0\0\win32
HKEY_USERS\UID_Classes\AppID\oophm.DLL
HKEY_USERS\UID_Classes\CLSID\{1A2A78F4-B5A4-4208-B520-BDDA0A7EC5CB}\InprocServer32
HKEY_USERS\UID_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\InprocServer32
HKEY_USERS\UID_Classes\CLSID\{1D6156B6-002B-49E7-B5CA-C138FB843B4E}\ToolboxBitmap32
HKEY_USERS\UID_Classes\CLSID\{644FD769-8B9D-4AC4-A79E-AAAF5CD751C1}\InprocServer32
HKEY_USERS\UID_Classes\TypeLib\{9259F105-BE55-4BF6-B7CE-D0AA878C1BA6}\1.0\0\win32

It's also worth mentioning that trunk has an updated installer that installs
all data and registry entries to User (RC1 was installing to Program
Files\Google\...). You may want to try uninstalling the RC1 plugin and
trying out the latest. Note that trunk will contain the the .msi without the
.exe wrapper.

On Sat, Nov 21, 2009 at 8:13 AM, ageres sergey.yerma...@gmail.com wrote:

 Any updates?
 I have the same problem using Vista + IE 8.0.6001.18828.

 After first installation(GWT 2.Beta1) it worked for some time (at
 least 1 day),
 but after reboot it stopped working(Vista installed system updates and
 requested for reboot).
 I tried to repir/reinstall GWT plugin, but it still doesn't work.

 I tried GWT2 Beta1, Beta2 and RC1, still no success.


 On Oct 26, 3:06 pm, mikedshaf...@gmail.com mikedshaf...@gmail.com
 wrote:
  Anyone from Google care to respond?  Seems pretty foundational.
 
  On Oct 24, 7:00 am, Ian Bambury ianbamb...@gmail.com wrote:
 
   I mentioned this 2 weeks ago. So far, no response.
 
   Ian
 
  http://examples.roughian.com
 
   2009/10/24 mikedshaf...@gmail.com mikedshaf...@gmail.com
 
Having the same problem here.  I'm on XP Pro with IE 7 (corporate
mandate).  Worked fine on Firefox.  Starting on Chrome  Safari later
today.
 
On Oct 24, 2:33 am, Andrey mino...@gmail.com wrote:
 Hello!
 
 When I open dev mode url in IE a message appears:
 No GWT Browser Plugin Detected
 
 I've downloaded and installed GWT Dev Mode Plugin for IE but the
 message appears again.
 Tried to repair and reinstall without success.
 
 In FireFox everything is OK.
 
 Does this plugin work?
 I must add that I don't see this plugin in Service - Plugins menu
 in
 IE. Should it be there?
 
 Windows Vista
 IE 8 with last updates
 
 Andrey
 
 

 --

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




--

You received 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=.




Re: horizontal Alignment in a dialog box not working

2009-11-23 Thread Chris Ramsdale
Neil,

Which browser are you experiencing this issue in?

On Fri, Nov 20, 2009 at 7:14 AM, Neil Patel neilpa...@gmail.com wrote:

 Hi All,

 I have a simple dialog box that is constructed as below. For some
 reason the single inner element (buttons panel) does not obey the
 horizontal align setting. The element *does* align vertically. Any
 suggestions are greatly appreciated.

 ==

 public FooDialog() {
setText(Foo Title);
VerticalPanel outer = new VerticalPanel();
outer.setBorderWidth(3);
outer.setSize(400px, 200px);
outer.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
outer.setVerticalAlignment(HasAlignment.ALIGN_MIDDLE);

Button cancelButton = new Button(Cancel, new
 ClickHandler() {
  public void onClick(ClickEvent event) {
hide();
  }
});

HorizontalPanel buttons = new HorizontalPanel();
buttons.setBorderWidth(3);
buttons.add(cancelButton);

outer.add(buttons);

setWidget(outer);
}

 --

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




--

You received 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=.




Re: java.util.List

2009-11-23 Thread ben fenster
thanks i removed the override and it worked can you please tell me why
 did act like that since the eclipse filled out the implementation
acording to the interface and if the method is not suppored  how did
it got into the imlementation in the first place

On 23 נובמבר, 16:52, Jason Morris lem...@gmail.com wrote:
 Hi ben,

 If you are using a version of GWT  2.0 this error appears because the 
 standard GWT List interface
 doesn't have the subList method. You can either remove the @Override 
 annotation from that method, or
 extend AbstractList instead of implementing List directly (generally 
 considered a better option
 anyways).

 You could also upgrade to GWT 2.0-rc, which has the subList method included 
 in the interface definition.

 Hope that helps.
 //Jason

 ben fenster wrote:
  import java.util.Collection;
  import java.util.Iterator;
  import java.util.List;
  import java.util.ListIterator;

  public class bla implements ListString {

    �...@override
     public boolean add(String e) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public void add(int index, String element) {
             // TODO Auto-generated method stub

     }

    �...@override
     public boolean addAll(Collection? extends String c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean addAll(int index, Collection? extends String c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public void clear() {
             // TODO Auto-generated method stub

     }

    �...@override
     public boolean contains(Object o) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean containsAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String get(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int indexOf(Object o) {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public boolean isEmpty() {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public IteratorString iterator() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int lastIndexOf(Object o) {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public ListIteratorString listIterator() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public ListIteratorString listIterator(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public boolean remove(Object o) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String remove(int index) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public boolean removeAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public boolean retainAll(Collection? c) {
             // TODO Auto-generated method stub
             return false;
     }

    �...@override
     public String set(int index, String element) {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public int size() {
             // TODO Auto-generated method stub
             return 0;
     }

    �...@override
     public ListString subList(int fromIndex, int toIndex) {

             return null;
     }

    �...@override
     public Object[] toArray() {
             // TODO Auto-generated method stub
             return null;
     }

    �...@override
     public T T[] toArray(T[] a) {
             // TODO Auto-generated method stub
             return null;
     }

  }

   i am did the exact same thing and got

  [ERROR] Line 131: The method subList(int, int) of type bla must
  override or implement a supertype method

  On 23 נובמבר, 16:07, Paul MERLIN eskato...@gmail.com wrote:
  Le lundi 23 novembre 2009 15:05:18, ben fenster a écrit :

  im sorry but i was under some presure i have a close deadline and
  thats pretty much the only problem idid you create an anonymous class
  or a class that implements the list
  public class Test implements ListString { ... }

  --

  You received 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 
  

Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-23 Thread Youen
Ok in eclipse it's written that it is the default Mac OS X JDK, so it
should be the _15 version.

I make further tests and :
 - Breakpoints work on a project from scrath!
 - Breakpoints do not work with my 2 main (big) gwt project.

The main difference with my  2 project is that the main html file is a
Velocity template managed with spring MVC (so there is no main HTML
file in my war folder).


On 23 nov, 16:51, Jason Parekh jasonpar...@gmail.com wrote:
 Hi Youen,

 Could you also make sure the launch configuration is using 1.6.0_15?  It
 could be the case that your default JDK is _15, but when the launch config
 was created, it was using _14.

 Have breakpoints every work for you in this project?  How about more
 generally in other projects in Eclipse?

 jason

 On Mon, Nov 23, 2009 at 10:33 AM, Youen youen.ch...@gmail.com wrote:
  Hi,

  I a using 1.6.0_15.

  The result of java -version

  java version 1.6.0_15
  Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
  Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

  By the way, I am on mac with snow leopard and the last version
  (10.6.2).

  Youen

  On 23 nov, 16:01, Jason Parekh jasonpar...@gmail.com wrote:
   Hi Youen,

   Which version of Java are you using?  There was an issue where
  breakpoints
   would not catch on JDK 1.6.0_14.

   You can check the version being used under:
   - Run  Run configurations
   - Expand Web Application on the side bar
   - Select one of its children, click on the JRE tab

   jason

   On Mon, Nov 23, 2009 at 4:32 AM, Youen youen.ch...@gmail.com wrote:
Hi,

I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
when i am in development mode.

I set some breakpoints, I run in eclipse debug mode and I use firefox
3.5, but it seems that the breakpoints are not catch.

Does someone make it work or am I missing someting ?

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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-web-toolkit?hl=.

  --

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

--

You received 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=.




Re: Strang problem under 2.0 RC1+Google plugin for Eclipse.2rc1

2009-11-23 Thread Chris Ramsdale
Alex,

I would suggest leaving your existing application structure in tact and
simply updating the GWT SDK that you are building against. You can do this
via the Libraries section of the Java Build Path view.

On Mon, Nov 23, 2009 at 6:53 AM, Alex Luya alexander.l...@gmail.com wrote:

 I used plugin(Google plugin for Eclipse.2rc1) to creat a
 project,run and browse it and everything just works fine.But after
 deleting src and war ,and replace them with new src and war(comes from
 a worked project),clean project,and run it,copy url to firefox to open
 it,and strange thing comes up,nothing showed and no error reported in
 console and Web Application Debug View. I am using ubuntu 9.10,what is
 the problem?think you.

 --

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




--

You received 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=.




Re: Can't debug in eclipse in development mode with GWT 2.0 RC1

2009-11-23 Thread Youen
I'll investigate on the problem (if you have any ideas ...i'll take
them).

On 23 nov, 17:29, Youen youen.ch...@gmail.com wrote:
 Ok in eclipse it's written that it is the default Mac OS X JDK, so it
 should be the _15 version.

 I make further tests and :
  - Breakpoints work on a project from scrath!
  - Breakpoints do not work with my 2 main (big) gwt project.

 The main difference with my  2 project is that the main html file is a
 Velocity template managed with spring MVC (so there is no main HTML
 file in my war folder).

 On 23 nov, 16:51, Jason Parekh jasonpar...@gmail.com wrote:

  Hi Youen,

  Could you also make sure the launch configuration is using 1.6.0_15?  It
  could be the case that your default JDK is _15, but when the launch config
  was created, it was using _14.

  Have breakpoints every work for you in this project?  How about more
  generally in other projects in Eclipse?

  jason

  On Mon, Nov 23, 2009 at 10:33 AM, Youen youen.ch...@gmail.com wrote:
   Hi,

   I a using 1.6.0_15.

   The result of java -version

   java version 1.6.0_15
   Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)
   Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-90, mixed mode)

   By the way, I am on mac with snow leopard and the last version
   (10.6.2).

   Youen

   On 23 nov, 16:01, Jason Parekh jasonpar...@gmail.com wrote:
Hi Youen,

Which version of Java are you using?  There was an issue where
   breakpoints
would not catch on JDK 1.6.0_14.

You can check the version being used under:
- Run  Run configurations
- Expand Web Application on the side bar
- Select one of its children, click on the JRE tab

jason

On Mon, Nov 23, 2009 at 4:32 AM, Youen youen.ch...@gmail.com wrote:
 Hi,

 I'm testing GTW 2.0 RC1 and I don't know how to debug (in eclipse)
 when i am in development mode.

 I set some breakpoints, I run in eclipse debug mode and I use firefox
 3.5, but it seems that the breakpoints are not catch.

 Does someone make it work or am I missing someting ?

 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
   google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com

 .
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=.

   --

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

--

You received 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=.




Re: GWT Developer Plugin works only sometimes

2009-11-23 Thread Chris Ramsdale
We're tracking several FF related crashes that appear to be related to a
single issue. It appears you are running FF 3.5.5 on Windows. Is this
correct?

Thanks,
Chris

On Mon, Nov 23, 2009 at 4:02 AM, cromoteca luci...@virgilio.it wrote:

 Truth is my application *works* with 2.0rc. It's just that most of the
 times dev mode is not able to start and I need to try again until it
 starts correctly.

 I also forgot to mention that Firefox crashes frequently since I
 installed the dev plugin. I really cannot believe that this release
 has been tagged as release candidate. It's a beta at best.

 On 20 Nov, 18:01, Yozons Support on Gmail yoz...@gmail.com wrote:
  Upgrading from 1.7 seems fraught with peril.  The docs even suggest that
 you
  install on a clean install of Eclipse, which is what I did because prior
 to
  that, my own attempt resulted in much confusion.
 
  As the gwt.xml, it appears that there was a bug (supposedly fixed for RC
 2)
  regarding uppercase characters in the gwt.xml file name.  I went with all
  lowercase letters and it seemed happy.  I also found that I had to add
  -Xms100m to my debug launch param for the JRE VM to avoid module load
  failures.  Hope this helps

 --

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




--

You received 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=.




Re: GWT Developer Plugin works only sometimes

2009-11-23 Thread Yozons Support on Gmail
Not sure about others, but yes, I'm using FF 3.5.5.

--

You received 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=.




Re: lacking an interface with setEnabled method

2009-11-23 Thread Norman Maurer
Yes, such an interface would be really nice for MVP .

Bye
Norman
2009/11/23, Michel Daviot mdav...@gmail.com:
 Hi,

 I think an interface defining the setEnabled method is lacking. This
 would be implemented in FocusWidget, DateBox ...

 --

 You received 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=.




--

You received 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=.




Re: detecting if a widget is added to DOM or not

2009-11-23 Thread Prashant
thanks a lot, GWT really rocks and you too.. :)

--

You received 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=.




Re: gwt + jquery rounded corner

2009-11-23 Thread Sudeep S
my Mistake

i called the roundCorner() method before RootPanel.*get*().add(a);
it worked now ..when i called it after doing RootPanel.*get*().add(a);
Thanks
Sudeep


2009/11/23 Дмитрий Николаев blacklit...@gmail.com

 What log say?
 Do you really include jquery library ? How do you know this ?

 On 22 ноя, 22:14, Sudeep S sudee...@gmail.com wrote:
  Hi,
 
  I am trying to use jquery.corner.js to round my panel in gwt using the
 below
  code
 
  *
 
  public* *final* *native* *void* roundCorner()/*-{
 
  $wnd.$(#roundedPanel).corner(5px);
 
  }-*/;
 
  where roundedPanel is the id of the div panel. Though it is invoking
 the
  jquery.corner.js it is not rounding it. Is it not possible to round
 corners
  using this.
 
  Thanks
  Sudeep

  --

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




--

You received 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=.




Keyboard navigation shortcut

2009-11-23 Thread Chrisnofneur
Hi,

I am building a GWt app which has the following layout:

- FlowPanel
 * Menu Bar
  * Grid (2,x)

I want to add keyboard navigation to the Grid (UP, DOWN  DELETE)

I call the following code in the constructor of my Widget:

// EVENTS
Event.addNativePreviewHandler(new NativePreviewHandler() {

@Override
public void onPreviewNativeEvent(final NativePreviewEvent
event) {

// Key pressed
if (event.getTypeInt() == Event.ONKEYDOWN) {
// Update Grid status (up, down, delete)
}
}
});

When I press UP  DOWN keys, no problem I get the events.
The problem is that navigation in the MenuBar also fires key events
which are catched by this code.
So when I select the MenuBar I have a double navigation: in my MenuBar
and in my Grid

The questions are :
- How can I prevent my code to catch events which target elements like
MenuBar  TextField ?
- Is there another way to deal with my problem ?

Thanks

Chris

--

You received 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=.




Understanding why a class appears in the serialization policy file

2009-11-23 Thread Alex
I think I remember from Google I/O this year something about more
diagnostic information that would show why a class is appearing in the
serialization policy file. Does anyone have any info they could share?

--

You received 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=.




Re: Code coverage for GWT

2009-11-23 Thread Davis Ford
I like maven-emma-plugin or maven-cobertura-plugin

On Mon, Nov 23, 2009 at 9:23 AM, Nir Feldman nir.feld...@hp.com wrote:

 Hi,
 I want to have a code coverage for a GWT client built using maven.
 what plugin is the most recommended?

 Nir

 --

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





-- 
Zeno Consulting, Inc.
home: http://www.zenoconsulting.biz
blog: http://zenoconsulting.wikidot.com
p: 248.894.4922
f: 313.884.2977

--

You received 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=.




Re: External libs in GWT app

2009-11-23 Thread Jason Parekh
Hi Jacek,

1)  war/WEB-INF/lib is the correct place.  Could you describe when your JARs
in there get deleted?  Is it on any build (including Eclipse's incremental
build) or only when you clean and do a full build?
2)  There isn't a UI for this, so most people do a GWT compile and JAR up
the war directory.

jason

2009/11/22 Jacek Żebrowski yacho1...@gmail.com

 I have two questions regarding Google plugin for eclipse - ive set up
 my GWT project ...

 1.Where i should put libraries i want to be present in WEB-INF/lib ?
 if i put them in /war/WEB-INF/lib they get deleted with each compile -
 when i put them in user libraries - they dont get copied to WEB-INF/
 lib

 2. how do i generate WAR from eclipse's GWT plugin ?

 thx in advance.

 --

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




--

You received 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=.




Re: is the next version going to be 2.0?

2009-11-23 Thread Lúcio Camilo
The version 2.0 is already out, but still a release candidate. I suggest u
wait until turn into a official version. unless u want to try and test.

2009/11/23 denis56 denis.ergashb...@gmail.com

 His,

 One more question. I am in the midst of one project development
 running on gwt1.7. Is the next version going to be a jump to 2.0.
 Would you recommend switching to 2.0 code base right away ?

 thanks

 --

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




--

You received 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=.




(macosx) how to launch netbeans with the jvm option -d32 ?

2009-11-23 Thread lolveley
hello,

I use macosx snow leopard with netbeans (the last one) and GWT with
the plugin GWT4NB.
I can't use the debugging from the java code, I have this error:

**
You must use a 32-bit Java runtime to run GWT Hosted Mode.
  Leopard: Use the Java 1.5 runtime.
  Snow Leopard: Use the Java 1.6 runtime and add the -d32 flag.
/Users/lolveley/NetBeansProjects/StockWatcher/nbproject/build-gwt.xml:
117: The following error occurred while executing this line:
/Users/lolveley/NetBeansProjects/StockWatcher/nbproject/build-gwt.xml:
255: The following error occurred while executing this line:
/Users/lolveley/NetBeansProjects/StockWatcher/nbproject/build-gwt.xml:
363: Java returned: 1
BUILD FAILED (total time: 5 seconds)
***

do you know how I can launch netbeans with the option -d32?
I had a look at the netbeans file, and I found in netbeans/content/
resources/netbeans/etc/netbeans.conf the lines :

***
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir=${HOME}/.netbeans/6.7

# Options used by NetBeans launcher by default, can be overridden by
explicit
# command line switches:
netbeans_default_options=-d32 -J-client -J-Xss2m -J-Xms32m -J-
XX:PermSize=32m -J-XX:MaxPermSize=200m -J-Xverify:none -J-
Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your
userdir.
# The automatically selected value can be overridden by specifying -J-
Xmx here
# or on the command line.

# If you specify the heap size (-Xmx) explicitely, you may also want
to enable
# Concurrent Mark  Sweep garbage collector. In such case add the
following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:
+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/wiki/view/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome dir:
netbeans_jdkhome=/Library/Java/Home

# Additional module clusters, using ${path.separator} (';' on Windows
or ':' on Unix):
#netbeans_extraclusters=/absolute/path/to/cluster1:/absolute/path/to/
cluster2

# If you have some problems with detect of proxy settings, you may
want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the
netbeans_default_options.


I made 2 changes : I added the -d32 option and I specified the java
directory.
but there is still this error...

help me please!

olivier.

--

You received 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=.




How to set the format for a DateBox?

2009-11-23 Thread Stevko
I've setup DateTimeFormat and TimeZone objects within my application
based on user preferences.

com.google.gwt.i18n.client.DateTimeFormat
com.google.gwt.i18n.client.TimeZone


How do I set the format for a DateBox ?

DateBox.Format does not allow for the setting of a custom format.
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/datepicker/client/DateBox.Format.html

--

You received 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=.




Re: Debugging the serialization process for GWT-RPC

2009-11-23 Thread Eric
OK.  I made some progress.  I added a couple properties to my model of
type ListSomeOtherClass.  Removing those allows the rest of the
class to be serialized.  I'm still not sure why those properties won't
work.  My guess is that since they are populated through JPA, they
were some kind of funky list.

My main question remains, however.  Where could I look to see Can't
serialize this list instead of An error occured?

Thanks,
Eric

On Nov 23, 10:11 am, Eric edimickeast...@gmail.com wrote:
 Hello all,

 I'm fairly new to GWT.  I have had one RPC service working for about 3
 weeks.  Last week I implemented a second one.  No problems.  In the
 last couple days I Implemented a third service not unlike the first 2,
 but I did have to make some changes to my model classes.

 Suddenly the first service returns 500 errors if the return value is
 not null. The exception says to See server logs for details but I
 can't find any clues in the server logs at all.  From everything I can
 see on the server side everything completed normally.

 I can put a breakpoint right before the return statement and
 everything seems to be in order.  Is there any way looking into what
 problem may have been encountered while trying to serialize the retrun
 value?

 I'm using Eclipse 3.5 with the 1.7.1 version of the plugin.

 Sorry for the lack of specifics, but any tangible error message is
 exactly what I'm looking for.

 Thanks,
 Eric

--

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




Re: GWT 2.0 RC1 deRPC fails on App Engine?

2009-11-23 Thread Kabe
This still doesn't work. I can't use the new RPC system in GWT 2.0 with
AppEngine. I would love to get an idea if this is intended, and the new RPC
system will not work with AppEngine, or if this is a bug that can be
filed/tracked.


Kabe


On Sat, Nov 21, 2009 at 9:23 AM, Tristan tristan.slomin...@gmail.comwrote:

 in case this is the problem, the -server argument is:

 -server com.google.appengine.tools.development.gwt.AppEngineLauncher

 On Nov 21, 9:39 am, Tristan tristan.slomin...@gmail.com wrote:
  Don't know if it is the same problem.. but are you initializing GAE to
  run in your application configuration? I couldn't get server side to
  work because when configuring a custom Java Application Configuration,
  since Web Application doesn't work with GWT 2.0 because it is now
  DevMode and not HostedMode. To get GAE up, we need to pass a -server
  argument so that GAE runs instead of plain old Jetty. I haven't gotten
  an answer from anyone what that -server argument should be.
 
  Tristan
 
  On Nov 18, 11:01 pm, Kabe kabr...@robichaux.com wrote:
 
   I'm trying to use deRPC of GWT 2.0 RC1 on App Engine and i'm getting
   the following exception. Is this because sun.misc.Unsafe is
   unavailable on App Engine (i'm not sure it isn't, but it seems
   possible)? Seems strange that GWT 2.0 RPC would not work on App
   Engine. Did i fail to configure something correctly or is this an
   intended incompatibility with App Engine?
 
   javax.servlet.ServletContext log: Exception while dispatching incoming
   RPC call
   java.lang.ExceptionInInitializerError
   at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:158)
   at
 com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
   141)
   at
 com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
   203)
   at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
   (AbstractRemoteServiceServlet.java:62)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
   at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   487)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1093)
   at
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
   (SaveSessionFilter.java:35)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1084)
   at
   com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
   (TransactionCleanupFilter.java:43)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1084)
   at org.mortbay.jetty.servlet.ServletHandler.handle
   (ServletHandler.java:360)
   at org.mortbay.jetty.security.SecurityHandler.handle
   (SecurityHandler.java:216)
   at org.mortbay.jetty.servlet.SessionHandler.handle
   (SessionHandler.java:181)
   at org.mortbay.jetty.handler.ContextHandler.handle
   (ContextHandler.java:712)
   at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
   405)
   at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
   (AppVersionHandlerMap.java:238)
   at org.mortbay.jetty.handler.HandlerWrapper.handle
   (HandlerWrapper.java:139)
   at org.mortbay.jetty.Server.handle(Server.java:313)
   at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
   506)
   at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
   (HttpConnection.java:830)
   at
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
   (RpcRequestParser.java:76)
   at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
   at
  
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
   (JettyServletEngineAdapter.java:139)
   at com.google.apphosting.runtime.JavaRuntime.handleRequest
   (JavaRuntime.java:239)
   at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:5135)
   at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:5133)
   at
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
   (BlockingApplicationHandler.java:24)
   at
 com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
   363)
   at com.google.net.rpc.impl.Server$2.run(Server.java:814)
   at com.google.tracing.LocalTraceSpanRunnable.run
   (LocalTraceSpanRunnable.java:56)
   at
 com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
   (LocalTraceSpanBuilder.java:516)
   at com.google.net.rpc.impl.Server.startRpc(Server.java:769)
   at
 com.google.net.rpc.impl.Server.processRequest(Server.java:351)
   at 

Re: GWT 2.0 RC1 deRPC fails on App Engine?

2009-11-23 Thread Chris Ramsdale
You can track progress on this issue here:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4185

App Engine deRPC support will be available in a post 2.0 release.

On Mon, Nov 23, 2009 at 3:34 PM, Kabe kabr...@robichaux.com wrote:

 This still doesn't work. I can't use the new RPC system in GWT 2.0 with
 AppEngine. I would love to get an idea if this is intended, and the new RPC
 system will not work with AppEngine, or if this is a bug that can be
 filed/tracked.

 
 Kabe


 On Sat, Nov 21, 2009 at 9:23 AM, Tristan tristan.slomin...@gmail.comwrote:

 in case this is the problem, the -server argument is:

 -server com.google.appengine.tools.development.gwt.AppEngineLauncher

 On Nov 21, 9:39 am, Tristan tristan.slomin...@gmail.com wrote:
  Don't know if it is the same problem.. but are you initializing GAE to
  run in your application configuration? I couldn't get server side to
  work because when configuring a custom Java Application Configuration,
  since Web Application doesn't work with GWT 2.0 because it is now
  DevMode and not HostedMode. To get GAE up, we need to pass a -server
  argument so that GAE runs instead of plain old Jetty. I haven't gotten
  an answer from anyone what that -server argument should be.
 
  Tristan
 
  On Nov 18, 11:01 pm, Kabe kabr...@robichaux.com wrote:
 
   I'm trying to use deRPC of GWT 2.0 RC1 on App Engine and i'm getting
   the following exception. Is this because sun.misc.Unsafe is
   unavailable on App Engine (i'm not sure it isn't, but it seems
   possible)? Seems strange that GWT 2.0 RPC would not work on App
   Engine. Did i fail to configure something correctly or is this an
   intended incompatibility with App Engine?
 
   javax.servlet.ServletContext log: Exception while dispatching incoming
   RPC call
   java.lang.ExceptionInInitializerError
   at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:158)
   at
 com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
   141)
   at
 com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
   203)
   at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
   (AbstractRemoteServiceServlet.java:62)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
   at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   487)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1093)
   at
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
   (SaveSessionFilter.java:35)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1084)
   at
   com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
   (TransactionCleanupFilter.java:43)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1084)
   at org.mortbay.jetty.servlet.ServletHandler.handle
   (ServletHandler.java:360)
   at org.mortbay.jetty.security.SecurityHandler.handle
   (SecurityHandler.java:216)
   at org.mortbay.jetty.servlet.SessionHandler.handle
   (SessionHandler.java:181)
   at org.mortbay.jetty.handler.ContextHandler.handle
   (ContextHandler.java:712)
   at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
   405)
   at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
   (AppVersionHandlerMap.java:238)
   at org.mortbay.jetty.handler.HandlerWrapper.handle
   (HandlerWrapper.java:139)
   at org.mortbay.jetty.Server.handle(Server.java:313)
   at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
   506)
   at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
   (HttpConnection.java:830)
   at
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
   (RpcRequestParser.java:76)
   at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
   at
  
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
   (JettyServletEngineAdapter.java:139)
   at com.google.apphosting.runtime.JavaRuntime.handleRequest
   (JavaRuntime.java:239)
   at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:5135)
   at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:5133)
   at
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
   (BlockingApplicationHandler.java:24)
   at
 com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
   363)
   at com.google.net.rpc.impl.Server$2.run(Server.java:814)
   at com.google.tracing.LocalTraceSpanRunnable.run
   (LocalTraceSpanRunnable.java:56)
   at
 

Re: GWT 2.0 RC1 deRPC fails on App Engine?

2009-11-23 Thread Kabe
Great, thanks for the issue i can follow!


On Mon, Nov 23, 2009 at 12:41 PM, Chris Ramsdale cramsd...@google.comwrote:

 You can track progress on this issue here:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4185

 App Engine deRPC support will be available in a post 2.0 release.


 On Mon, Nov 23, 2009 at 3:34 PM, Kabe kabr...@robichaux.com wrote:

 This still doesn't work. I can't use the new RPC system in GWT 2.0 with
 AppEngine. I would love to get an idea if this is intended, and the new RPC
 system will not work with AppEngine, or if this is a bug that can be
 filed/tracked.

 
 Kabe


 On Sat, Nov 21, 2009 at 9:23 AM, Tristan tristan.slomin...@gmail.comwrote:

 in case this is the problem, the -server argument is:

 -server com.google.appengine.tools.development.gwt.AppEngineLauncher

 On Nov 21, 9:39 am, Tristan tristan.slomin...@gmail.com wrote:
  Don't know if it is the same problem.. but are you initializing GAE to
  run in your application configuration? I couldn't get server side to
  work because when configuring a custom Java Application Configuration,
  since Web Application doesn't work with GWT 2.0 because it is now
  DevMode and not HostedMode. To get GAE up, we need to pass a -server
  argument so that GAE runs instead of plain old Jetty. I haven't gotten
  an answer from anyone what that -server argument should be.
 
  Tristan
 
  On Nov 18, 11:01 pm, Kabe kabr...@robichaux.com wrote:
 
   I'm trying to use deRPC of GWT 2.0 RC1 on App Engine and i'm getting
   the following exception. Is this because sun.misc.Unsafe is
   unavailable on App Engine (i'm not sure it isn't, but it seems
   possible)? Seems strange that GWT 2.0 RPC would not work on App
   Engine. Did i fail to configure something correctly or is this an
   intended incompatibility with App Engine?
 
   javax.servlet.ServletContext log: Exception while dispatching
 incoming
   RPC call
   java.lang.ExceptionInInitializerError
   at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:158)
   at
 com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
   141)
   at
 com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
   203)
   at
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost
   (AbstractRemoteServiceServlet.java:62)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
   at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
   at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   487)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1093)
   at
 com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
   (SaveSessionFilter.java:35)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1084)
   at
   com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
   (TransactionCleanupFilter.java:43)
   at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
   (ServletHandler.java:1084)
   at org.mortbay.jetty.servlet.ServletHandler.handle
   (ServletHandler.java:360)
   at org.mortbay.jetty.security.SecurityHandler.handle
   (SecurityHandler.java:216)
   at org.mortbay.jetty.servlet.SessionHandler.handle
   (SessionHandler.java:181)
   at org.mortbay.jetty.handler.ContextHandler.handle
   (ContextHandler.java:712)
   at
 org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
   405)
   at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
   (AppVersionHandlerMap.java:238)
   at org.mortbay.jetty.handler.HandlerWrapper.handle
   (HandlerWrapper.java:139)
   at org.mortbay.jetty.Server.handle(Server.java:313)
   at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
   506)
   at
 org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
   (HttpConnection.java:830)
   at
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
   (RpcRequestParser.java:76)
   at
 org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
   at
  
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
   (JettyServletEngineAdapter.java:139)
   at com.google.apphosting.runtime.JavaRuntime.handleRequest
   (JavaRuntime.java:239)
   at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:5135)
   at com.google.apphosting.base.RuntimePb$EvaluationRuntime
   $6.handleBlockingRequest(RuntimePb.java:5133)
   at
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
   (BlockingApplicationHandler.java:24)
   at
 com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
   363)
   at com.google.net.rpc.impl.Server$2.run(Server.java:814)
   

GWT AsyncCallback failing

2009-11-23 Thread NeeravA
I call a GWT server method which executes perfectly and returns the
desired object. But the on return the AsyncCallback enters onFailure
method. There is no exception on the server end. On the client side I
get the following Throwable exception.

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:192)
at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
(Request.java:264)
at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
(Request.java:236)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:227)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:126)
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.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)


Note: this is occurring in the hosted mode. I checked that the object
returned is Serializable. I dont udnerstand what else could be the
problem. Please suggest few things that can cause this error.

--

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




Re: How to set the format for a DateBox?

2009-11-23 Thread Thomas Broyer


On 23 nov, 21:11, Stevko andy.ste...@gmail.com wrote:
 I've setup DateTimeFormat and TimeZone objects within my application
 based on user preferences.

 com.google.gwt.i18n.client.DateTimeFormat
 com.google.gwt.i18n.client.TimeZone

 How do I set the format for a DateBox ?

 DateBox.Format does not allow for the setting of a custom 
 format.http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...

Yes it does:

   myDateBox.setFormat(new DateBox.DefaultFormat
(DateTimeFormat.getFormat(,  dd, )));

or you could use your own custom Datebox.Format implementation:

   myDateBox.setFormat(new MyCustomDateBoxFormat());

--

You received 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=.




Re: Keyboard navigation shortcut

2009-11-23 Thread Thomas Broyer


On 23 nov, 18:42, Chrisnofneur chpr...@gmail.com wrote:
 Hi,

 I am building a GWt app which has the following layout:

 - FlowPanel
      * Menu Bar
       * Grid (2,x)

 I want to add keyboard navigation to the Grid (UP, DOWN  DELETE)

 I call the following code in the constructor of my Widget:

         // EVENTS
         Event.addNativePreviewHandler(new NativePreviewHandler() {

             @Override
             public void onPreviewNativeEvent(final NativePreviewEvent
 event) {

                 // Key pressed
                 if (event.getTypeInt() == Event.ONKEYDOWN) {
                         // Update Grid status (up, down, delete)
                 }
             }
         });

 When I press UP  DOWN keys, no problem I get the events.
 The problem is that navigation in the MenuBar also fires key events
 which are catched by this code.
 So when I select the MenuBar I have a double navigation: in my MenuBar
 and in my Grid

 The questions are :
 - How can I prevent my code to catch events which target elements like
 MenuBar  TextField ?

You'd have to test whether MenuBar.getElement().isOrHasChild(Element.as
(event.getNativeEvent().getEventTarget()))

 - Is there another way to deal with my problem ?

Why not use event bubbling (aka event delegation) instead of event
capture? i.e. either:
 - put the Grid into a FocusPanel and addKeyDownHandler(...)
 - extend Grid and addDomHandler(..., KeyDownEvent.getType())
(eventually implementing HasKeyDownHandlers if you don't want to
handle the KeyDown within the Grid but in the widget that uses the
Grid)

The user would just have to click the Grid (or FocusPanel) to have
her keyboard interact with the grid (i.e. as soon as she clicks the
MenuBar or anywhere outside the grid, the handler is no longer called)

--

You received 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=.




Re: GWT AsyncCallback failing

2009-11-23 Thread Yozons Support on Gmail
Be sure there are no null pointer errors and that all classes you serialize
also have a no-arg constructor (that one gets me from time to time) even if
you don't use it yourself (I have a lot of private constructors just for
serialization).

--

You received 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=.




Comparing calendar dates for equality

2009-11-23 Thread Rob Tanner
Hi,

I need to compare two calendar dates (Strings with just day, month and
year) for equality but it would be nice if there existed a formatter
that I can use on the client side.  Is there, and I just haven't found
it?

-- Rob

--

You received 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: Comparing calendar dates for equality

2009-11-23 Thread Jason Essington
DateTimeFormat from the I18N module should do what you want.

-jason
On Nov 23, 2009, at 6:15 PM, Rob Tanner wrote:

 Hi,
 
 I need to compare two calendar dates (Strings with just day, month and
 year) for equality but it would be nice if there existed a formatter
 that I can use on the client side.  Is there, and I just haven't found
 it?
 
 -- Rob
 
 --
 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
 

--

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




PagingScrollTable and RowSelectionHandler called even when column headers clicked

2009-11-23 Thread Open eSignForms
I'm using the 1.7 version of PagingScrollTable from the incubator with
my 2.0RC1 GWT and the table seems to function fine, but I noted that
when I click on the header columns (which are allowed for sorting), my
RowSelectionHandler still fires onRowSelection(), even though no new
rows were clicked.

I prefer to only know when a new row is selected (my table is set to
select one row when it's clicked) since I take action then.  But when
I click on the table's header, it fires again, and then my code thinks
it's time to do the action again.  It shows the same selected row that
was selected before when it was clicked directly.  Is there a way to
know if it's the header that's been clicked and not data row?  Or is
the RowSelectionHandler not the right one for me?

Is there a way to deselect a row that's been selected?

Thanks

--

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




Re: GWT compiler option to simply validate code

2009-11-23 Thread MonkeyMike
Now that I am using the -validateOnly option, I can see that it is a
much better option than the special Build module that I created.
The GWT compiler ignores unused code, and so much of the code in my
library was not being validated when I compiled via the Build
module.  But now that I am using the -validateOnly option, I can run
the compiler directly on the library, and it validates all of the
code.

Thanks again,
Mike

On Nov 19, 10:12 am, MonkeyMike mikebin...@gmail.com wrote:
 Awesome!  Thanks! :)

 On Nov 19, 2:19 am, Thomas Broyer t.bro...@gmail.com wrote:

  On Nov 19, 2:52 am, MonkeyMike mikebin...@gmail.com wrote:

   Hello,

      I am creating a GWT Overlay Type library, and have just written an
   ant build file for creating the JAR file that GWT applications will
   import.  To maintain code integrity, I make the JAR creation depend on
   a java compile of all the code, and also a gwt compile.  Obviously,
   this is meant to ensure that the code in the library is acceptable
   Java, and also that it is acceptable GWT.

      When I run the GWT compiler, however, I get an error related to the
   fact that my library has no entry point...

   -
   Buildfile: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml
   javac-compile:
       [javac] Compiling 2 source files to C:\Data\Dev
   \EclipseWorkspaceTrunk\gwtgfx\build\javac
   gwt-compile:
        [java] Compiling module gwtgfx.GwtGfx
        [java]    [ERROR] Module has no entry points defined

   BUILD FAILED
   C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:25: The following
   error occurred while executing this line:
   C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:45: Java returned:
   1

   Total time: 3 seconds
   -

     Of course, it makes perfect sense that my library has no entry point
   since it is, in fact, a library... not an application.

      Is there an option for the GWT compiler to do only the parts that I
   want here?  I want the GWT compiler to ensure, for example, that all
   of my JavaScriptObject subclasses follow the specified restrictions
   (has a protected no-arg constructor, instance methods are final,
   etc)... and anything else that the GWT compiler might do now, or in
   the future, to check that the GWT code is valid.  If not having an
   entry point means that there is no reasonable way to do one or more of
   the compiler steps, then that should be okay because those steps
   probably aren't relevant for a library anyways.

      As a temporary hack, I guess I am going to include an entry point,
   but I really don't want to ship this.  Is there a better alternative?

   Thanks in advance. :)

  There's a -validateOnly flag that doesn't mandate an entry point (and
  should check that all public classes can be compiled).

--

You received 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.




  1   2   >