Exception in thread main java.lang.UnsatisfiedLinkError

2009-08-31 Thread Junie

Hi Guys,

I'm  starting to study GWT and downloaded the GWT plugin for eclipse.
But when I create a web application project and try to run/debug it,
I'm encountering the following error:

Exception in thread main java.lang.UnsatisfiedLinkError: /home/junie/
eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
linux-1.7.0/libswt-pi-gtk-3235.so: /home/junie/eclipse/plugins/
com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
(Possible cause: architecture word width mismatch)
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
at java.lang.Runtime.load0(Runtime.java:770)
at java.lang.System.load(System.java:1005)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
at org.eclipse.swt.widgets.Display.clinit(Display.java:126)
at com.google.gwt.dev.SwtHostedModeBase.clinit
(SwtHostedModeBase.java:82)


I tried this both on Eclipse Ganymede and Galileo running on Ubuntu
8.04. Please guide me on what is happening and how to fix it.

Thanks,
Junie

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



Frame Events

2009-08-31 Thread Scottish

Is there any event that is dispatched when the iframe's location is
changed?

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



query string

2009-08-31 Thread Juergen Saar
Hi,

how can I get the Query-Arguments from my URL on EntryPoint?

Thanx
-jsaar-

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



Re: Exception in thread main java.lang.UnsatisfiedLinkError

2009-08-31 Thread Etienne Neveu

Hi,

This is because the GWT hosted mode browser ships with a 32-bit
version of the SWT bindings, so the browser does not work in 64-bit
Linux.

As I remember it, solving this involves launching the Hosted Mode
Browser with a 32 bit jdk. You may find more details by searching this
group for threads about gwt 64 linux, as well as in the following
links:

http://code.google.com/p/google-web-toolkit/issues/detail?id=135
http://vegdave.wordpress.com/2006/10/16/libswt-pi-gtk-annoyances-in-eclipse-and-gwt/

Regards,

-Etienne

On 31 août, 02:54, Junie junie...@gmail.com wrote:
 Hi Guys,

 I'm  starting to study GWT and downloaded the GWT plugin for eclipse.
 But when I create a web application project and try to run/debug it,
 I'm encountering the following error:

 Exception in thread main java.lang.UnsatisfiedLinkError: /home/junie/
 eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
 linux-1.7.0/libswt-pi-gtk-3235.so: /home/junie/eclipse/plugins/
 com.google.gwt.eclipse.sdkbundle.linux_1.7.0.v200907291526/gwt-
 linux-1.7.0/libswt-pi-gtk-3235.so: wrong ELF class: ELFCLASS32
 (Possible cause: architecture word width mismatch)
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1647)
         at java.lang.Runtime.load0(Runtime.java:770)
         at java.lang.System.load(System.java:1005)
         at org.eclipse.swt.internal.Library.loadLibrary(Library.java:132)
         at org.eclipse.swt.internal.gtk.OS.clinit(OS.java:22)
         at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
         at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
         at org.eclipse.swt.widgets.Display.clinit(Display.java:126)
         at com.google.gwt.dev.SwtHostedModeBase.clinit
 (SwtHostedModeBase.java:82)

 I tried this both on Eclipse Ganymede and Galileo running on Ubuntu
 8.04. Please guide me on what is happening and how to fix it.

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



Repeating http requests

2009-08-31 Thread Charlie

Hey all
Well I have a function that sends an http request this function sends
an http request waits 1 second with a timer and recalls itself as long
as my application is open this will continue for hours (suppose to at
least), after a while this function just stops working..while other
http requests that are sent for example when I press a button on my
application still work. Is it because javascript just terminates a
function that calls itself so many times? or is it something else?
what is the alternative solution?

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



Async testing?

2009-08-31 Thread Dalla

Hi all

So we´ve all learnt that MVP is *for the win* when working with GWT,
since we can easily switch our GUI widgets to mock widgets, enabling
us to use
regular jUnit tests for our code.

But how do you handle the async calls made to a server when testing?
Can we use jUnit at all?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: query string

2009-08-31 Thread Thomas Broyer



On 31 août, 09:23, Juergen Saar duddelfud...@googlemail.com wrote:
 Hi,

 how can I get the Query-Arguments from my URL on EntryPoint?

Window.Location.getQueryString()
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/Window.Location.html#getQueryString()

Have a look at the Window.Location.getParameter() and
Window.Location.getParameterMap() too if you use application/x-www-
form-urlencoded-like query strings (i.e. key1=value1key2=value2)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Session Management

2009-08-31 Thread tolga ozdemir

Hi folks!

I am looking for a good solution for session management in GWT web
applications. Do you have any idea? or do you suggest a good article
for this?

** Cookies
** HttpSession
** Variables or what?


Regards,

Tolga


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



Re: how to determine when StackPanel index changes?

2009-08-31 Thread Phineas Gage

It works, thanks...

On Aug 28, 6:57 pm, Chad chad...@gmail.com wrote:
 Phineas Gage,

 I haven't tried it, but you could probably override either the
 showStack or onBrowserEvent method. Probably showStack, something like
 this:

   @Override
   public void showStack(int index) {
     super.showStack(index);

     if (index == getSelectedIndex()) {
       onShowStack();
     }
   }

 And, of course, create an onShowStack method that would only be called
 when the stack is changed.

 HTH,
 Chad

 On Aug 28, 1:26 am, Phineas Gage phineas...@gmail.com wrote:



  When using a StackPanel, is there any way to listen for when the
  selected index of the StackPanel changes?

  I see that it can be retrieved with getSelectedIndex() and set with
  showStack(index), but there is no apparent way to be called when
  someone clicks to set the current index. I'd like to do this so that I
  can set a history token and restore the StackPanel to its original
  state when the back button is pressed or an external link is used...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Session Management

2009-08-31 Thread Hasan Turksoy
my suggestion for session management:
http://developerlife.com/tutorials/?p=230

Hasan

On Mon, Aug 31, 2009 at 11:23 AM, tolga ozdemir tka...@gmail.com wrote:


 Hi folks!

 I am looking for a good solution for session management in GWT web
 applications. Do you have any idea? or do you suggest a good article
 for this?

 ** Cookies
 ** HttpSession
 ** Variables or what?


 Regards,

 Tolga


 


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



DOM is not properly working with mozilla

2009-08-31 Thread vruddhi shah
Hello All,

I have implemented gwt buttons to change color of  button's background. I
have changed button background color using DOM.setStyleAttribute. It is not
working in mozilla (button color is not chaged) . Please help me out. I have
attached the code.

-- 
Vruddhi Shah
Pyther Innovations Pvt. Ltd.
Land line: 91 78 40074893
617, Devpath Complex
C.G. Road, Ahmedabad
India

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



GwtColorPicker.java
Description: Binary data


Re: Making a fancy GWT Chart

2009-08-31 Thread mars1412

maybe you could use 3rd party libs:
http://code.google.com/p/gchart/

On Aug 30, 2:47 am, Nether mirr...@gmail.com wrote:
 My goal is to make a chart which shows standard deviations as a
 gradient on the vertical axis.  I don't think it is easy to do this in
 the browser, so what I plan on doing is having the server render the
 chart to a BufferedImage and sending that to the client to display in
 an Image widget.

 The problem is that the Image widget only takes a URL, but how do I
 give it a bufferedimage?

 Also, is this the best solution for me to be using for making this
 gradient chart?

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



Re: FormPanel submit() displays popup

2009-08-31 Thread mars1412

hmm..
* not sure, if that's your problem, but
I think the hosted-mode browser will warn you, if you try to access
URLs on different sites
so it might help, if you build an absolute URL for the forms action
(use com.google.gwt.core.client.GWT.getModuleBaseURL())

* you should use formPanel.addFormHandler()

On Jul 24, 8:53 pm, Scott sc...@selikoff.net wrote:
 While trying to create a FormPanel that uploads a file, my application
 launches a pop-up window on FormPanel.submit().  Furthermore, the
 listener designed to retrieve the results from the submit never gets
 fired.  I'm using the latest GWT 1.7.  Below is a simplified example
 that reproduces the issue:

 public void onModuleLoad() {
         // Setup form
         final FormPanel form = new FormPanel();
         form.setEncoding(FormPanel.Encoding.MULTIPART);
         form.setMethod(FormPanel.Method.POST);
         form.setAction(uploadServlet);

         // Add submit response handler:  Never gets called!
         form.addListener(Events.Submit, new ListenerFormEvent() {
                 public void handleEvent(FormEvent event) {
                         Info.display(Form was 
 submitted,event.getResultHtml());
                 }
         });

         // Add button for submit
         form.add(new Button(Submit, new SelectionListenerButtonEvent()
 {
                 @Override
                 public void componentSelected(ButtonEvent ce) {
                         form.submit();
                 }
         }));

         RootPanel.get().add(form);

 }


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



Re: Async testing?

2009-08-31 Thread Nathan Wells

If you are referring to the client side, you should be passing in the
RPC service via dependency injection. If you do this, testing (again)
becomes a matter of implementing a mock version of the RPC interface.

On Aug 31, 1:59 am, Dalla dalla_man...@hotmail.com wrote:
 Hi all

 So we´ve all learnt that MVP is *for the win* when working with GWT,
 since we can easily switch our GUI widgets to mock widgets, enabling
 us to use
 regular jUnit tests for our code.

 But how do you handle the async calls made to a server when testing?
 Can we use jUnit at all?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to use multiple servers in a single client

2009-08-31 Thread Nathan Wells

Actually, it can.

The ability to do this, however, relies on making the request in an
iframe or (in GWT widget parlance) a Frame object. There are
complications associated with this methodology, and using the server
to proxy requests is probably a lot easier, but may not always be
possible for political/other reasons.

On Aug 30, 9:19 am, Sri sripathikrish...@gmail.com wrote:
 Simply put, it can't be done.

 Cross Domain restrictions require that javascript code only
 communicate with the server from which it originated. So, all RPC
 requests that you make must go to the same server.

 However, you can have a simple facade on your server. You can let your
 webserver simply proxy requests to a different server where you can
 take appropriate action. Something like /update proxies to servera.com
 and /delete proxies to serverb.com. To the browser, it is always the
 same web-server, so no cross-domain issues.

 On Aug 28, 9:11 am, Ganesh ganesh.ban...@gmail.com wrote:



  Hi

  I am working on a GWT application. In this, what my client needs is I
  send calls to different servers on basis of request types.

  Suppose there are 4 request types SELECT/INSERT/UPDATE/DELETE on basis
  of operation to be performed on server. If request type is SELECT, we
  need to send request to SERVER_1 and if request type is INSERT, UPDATE
  OR DELETE, we need to send request to SERVER_2.

  Now my question is how to send call to 2 different servers through
  same client window.

  Please help

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



Re: Async testing?

2009-08-31 Thread Lothar Kimmeringer

Dalla schrieb:

 So we´ve all learnt that MVP is *for the win* when working with GWT,
 since we can easily switch our GUI widgets to mock widgets, enabling
 us to use
 regular jUnit tests for our code.
 
 But how do you handle the async calls made to a server when testing?
 Can we use jUnit at all?

Do you want to test the client-side if the result of an async-call is
correctly processed or do you want to test the server-side, i.e.
the methods of the RemoteServiceServlet.

Nathan already told you about the first case, the servlet itself
is quite easily tested if the methods don't access parts of the
servlet container (i.e. getThreadLocalRequest().something), because
you can simply instantiate the servlet and call the methods to be
tested directly. If you need the servlet containter you can use
httpunit to do that kind of thing. Here is a (non-GWT)-example of
a test of my AS2-Connector:

  ServletRunner servletrunner = new ServletRunner();
  servletrunner.registerServlet(as2servlet, 
AS2MessageReceiveServlet.class.getName());
  ServletUnitClient sclient = servletrunner.newClient();
  Properties props = new Properties();
  Session javamailsession = Session.getDefaultInstance(props, null);
  MimeMessage mm = getAs2MessageAsMimeMessage(javamailsession);
  WebRequest wr = new MimeMessageWebRequest(http://localhost/as2servlet;, mm);
  InvocationContext ic = sclient.newInvocation(wr);
  assertEquals(check isFilterActive, false, ic.isFilterActive());
  AS2MessageReceiveServlet servlet = (AS2MessageReceiveServlet) ic.getServlet();
  servlet.setCallback(this);
  ic.service();
  WebResponse resp = ic.getServletResponse();
  [check response-values]

The answer of the request is rfc-specific but with an inner class
you can intercept the result of the method-call itself:

private class TestServlet extends MyRFCServlet{

  private String methodCalled = null;
  private Object methodResult = null;

  public String getSomethingAsString(){
methodCalled = getSomethingAsString;
methodResult = super.getSomethingAsString();
return (String) methodResult;
  }
}

So ignoring the HTTP-response you can check the result by accessing
the members of the inner class:

  assertEquals(check method being called, getSomethingAsString, 
servlet.methodCalled);
  assertNotNull(check existance of result, servlet.methodResult);
  assertEquals(check result, someResult, servlet.methodResult);

A more general way of the above inner class is using a Java Proxy.


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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Session Management

2009-08-31 Thread tolga ozdemir

Hasan thank you for your comment..

After updating, my project worked well in hosted mode but when I
clicked Compile/Browse button, I receive a blank html page..

maybe problem is not related to this topic, but do u have any idea on
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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



RichTextArea Border Problem

2009-08-31 Thread ping2ravi

Hi All,
I am trying to use RichTextArea in one of my web page. In Hosted mode
it shows the Border for RichTextArea, but when i compile and run it in
any of the browser it doesnt show any border.
Users can do text operation in this widget but border is not visible,
which is very confusing for the users.
I am also trying to set following css but no help. can you please tell
me what to do, so Border will be visible in Browsers.

.gwt-RichTextArea {
border-width: 1px;
border-style: solid;
border-color: black;
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Performance issues in GWT application

2009-08-31 Thread Ganesh

Hi Alexander

Thanks for your reply. Taking Apache in loop is required as I have to
setup some virtual host for accessing my application, so I need
Apache. Further regarding 3rd level named, could you please explain
what are these 3rd level names and how I can setup it. I have already
registered a domain (say myserver.com) and for DNS mapping of domain 
my server's IP, I am using a domain name service (zoneedit). But my
problem is that all of my calls to server are routing through zoneedit
(to resolve domain name).

Kindly excuse if I am misinterpreting something  would request to
explain further.

Ganesh Bansal

On Aug 28, 7:12 pm, Alexander Cherednichenko lex...@gmail.com wrote:
 Your request needs to go through too long chain, that's why it is
 slow.
 I'm not sure what's the purpose of the proxy server. Does it do any
 valuable work, or anything it does is just forwarding requests back
 and force between internet clients and your JBoss?

 Also, why do you need Apache on the local machine? You could just
 change JBoss configuration to listen to default port eighty, thus
 eliminating one more item from chain.

 What I'd recommend is to get some domain name. 3rd level names can be
 optained pretty easily. And then setup DNS to point this name to your
 jboss static ip address.

 In this case clients will have direct requests, except the first time
 when dns request would precede loaded one.

 On Aug 28, 2:30 am, Subhash Kaker subhash.ku...@daffodilsw.com
 wrote:

  Hi All

  I am also facing performance issue like this.

  Any suggestion/help will be appreciated.

  Thanks in adv.
  Subhash

  On Aug 28, 11:10 am,Ganeshganesh.ban...@gmail.com wrote:

   Hi All

   I am facing performance issues in my GWT application. My scenario is
   as explained below:

   My GWT application is deployed on a JBoss server which is running on a
   machine with static IP say 56.56.56.56 with port 8080. Now when I
   access my application using this IP  port, speed of my application is
   very good and all is running very well. Now I want to setup a named
   proxy server sayhttp://myserver.comforaccessingmy application. For
   this, I made an account on zoneedit.com and created a mapping of my
   named server to my static IP with port 80. On port 80 on my static
   server, I setup an Apache server. In Apache server's config file, I
   forward my all requests to JBoss server running on same machine. Now
   using this setup, I am able to access my application using 
   linkhttp://myserver.com.

   But now the performance issues started. Request which is sent to
   server from my application, starts taking too much time. A blank (no
   data is being sent b/w server  client and no processing is being done
   on server) request which takes 450 ms if access application through
   static IP, takes 1400 ms when application is accessed 
   usinghttp://myserver.com.

   Below is the code which I use to send request to my server:

       _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create
   (_MyService.class);
       ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync;
       String moduleRelativeURL = GWT.getModuleBaseURL() + MyService;
       endpoint.setServiceEntryPoint(moduleRelativeURL);
       myServiceAsync.callMethod();

   The problem which seems to be is because all my requests are going to
   zoneedit.com and than to my server and that's why they are taking a
   lot of time. A solution which I thought was replacing
   GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for
   sending direct request, but that didn't work because of cross domain
   AJAX call restriction.

   I request if someone can help me how can I achieve performance without
   telling exact IP (it is also difficult to remember an IP) to my
   clients on which my application is running. Any suggestion/help will
   be highly appreciated.

   Thanks in advance

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



Focus Left

2009-08-31 Thread monkeyboy

I have a simple text box for which I need to perform some operations
when it looses focus. It is relatively simple using the old
addFocusListener API:

TextBox txtBox = new TextBox();
txtBox.addFocusListener(new FocusListener() {

@Override
public void onFocus(Widget sender) {
// do nothing
}

@Override
public void onLostFocus(Widget sender) {
// do some stuff
}
});
But I can't figure out how to do it using the new addFocusHandler API
because there is only the onFocus method to implement. Any help is
appreciated. Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Focus Left

2009-08-31 Thread Ian Bambury
Add a blur handler
Ian

http://examples.roughian.com


2009/8/31 monkeyboy dilbert.elbo...@gmail.com


 I have a simple text box for which I need to perform some operations
 when it looses focus. It is relatively simple using the old
 addFocusListener API:

TextBox txtBox = new TextBox();
txtBox.addFocusListener(new FocusListener() {

@Override
public void onFocus(Widget sender) {
// do nothing
}

@Override
public void onLostFocus(Widget sender) {
// do some stuff
}
});
 But I can't figure out how to do it using the new addFocusHandler API
 because there is only the onFocus method to implement. Any help is
 appreciated. Thanks in advance.
 


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



Re: Focus Left

2009-08-31 Thread monkeyboy

Thanks a lot Ian. I will try that.

On Aug 31, 1:59 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Add a blur handler
 Ian

 http://examples.roughian.com

 2009/8/31 monkeyboy dilbert.elbo...@gmail.com





  I have a simple text box for which I need to perform some operations
  when it looses focus. It is relatively simple using the old
  addFocusListener API:

             TextBox txtBox = new TextBox();
             txtBox.addFocusListener(new FocusListener() {

                �...@override
                 public void onFocus(Widget sender) {
                     // do nothing
                 }

                �...@override
                 public void onLostFocus(Widget sender) {
                     // do some stuff
                 }
             });
  But I can't figure out how to do it using the new addFocusHandler API
  because there is only the onFocus method to implement. Any help is
  appreciated. Thanks in advance.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Focus Left

2009-08-31 Thread Thomas Broyer



On 31 août, 14:02, monkeyboy dilbert.elbo...@gmail.com wrote:

 On Aug 31, 1:59 pm, Ian Bambury ianbamb...@gmail.com wrote:
  Add a blur handler

 Thanks a lot Ian. I will try that.

...and note that this is is quite clearly documented:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/SourcesFocusEvents.html#addFocusListener(com.google.gwt.user.client.ui.FocusListener)
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/FocusListener.html#onLostFocus(com.google.gwt.user.client.ui.Widget)

(pointing this out for the next time you'll search the equivalent
handler for a given listener ;-) )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Session Management

2009-08-31 Thread Thomas Broyer



On 31 août, 10:23, tolga ozdemir tka...@gmail.com wrote:
 Hi folks!

 I am looking for a good solution for session management in GWT web
 applications. Do you have any idea? or do you suggest a good article
 for this?

 ** Cookies
 ** HttpSession
 ** Variables or what?

Have a look at Ray Ryan's session at Google I/O:
http://code.google.com/intl/fr-FR/events/io/sessions/GoogleWebToolkitBestPractices.html
(starts at slide 85 and around 37:10 on the video: strive to achieve
statelessness)

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



Re: Async testing?

2009-08-31 Thread Dalla

Thanks for the pointers!
I´m using DI, so creating a mock implementing the async interface
should be pretty straight forward I guess.
Just looking to test the client side, I guess it´s probably better to
use selenium or the likes to test the integration part of the app.

On 31 Aug, 12:48, Lothar Kimmeringer j...@kimmeringer.de wrote:
 Dalla schrieb:

  So we´ve all learnt that MVP is *for the win* when working with GWT,
  since we can easily switch our GUI widgets to mock widgets, enabling
  us to use
  regular jUnit tests for our code.

  But how do you handle the async calls made to a server when testing?
  Can we use jUnit at all?

 Do you want to test the client-side if the result of an async-call is
 correctly processed or do you want to test the server-side, i.e.
 the methods of the RemoteServiceServlet.

 Nathan already told you about the first case, the servlet itself
 is quite easily tested if the methods don't access parts of the
 servlet container (i.e. getThreadLocalRequest().something), because
 you can simply instantiate the servlet and call the methods to be
 tested directly. If you need the servlet containter you can use
 httpunit to do that kind of thing. Here is a (non-GWT)-example of
 a test of my AS2-Connector:

   ServletRunner servletrunner = new ServletRunner();
   servletrunner.registerServlet(as2servlet, 
 AS2MessageReceiveServlet.class.getName());
   ServletUnitClient sclient = servletrunner.newClient();
   Properties props = new Properties();
   Session javamailsession = Session.getDefaultInstance(props, null);
   MimeMessage mm = getAs2MessageAsMimeMessage(javamailsession);
   WebRequest wr = new MimeMessageWebRequest(http://localhost/as2servlet;, 
 mm);
   InvocationContext ic = sclient.newInvocation(wr);
   assertEquals(check isFilterActive, false, ic.isFilterActive());
   AS2MessageReceiveServlet servlet = (AS2MessageReceiveServlet) 
 ic.getServlet();
   servlet.setCallback(this);
   ic.service();
   WebResponse resp = ic.getServletResponse();
   [check response-values]

 The answer of the request is rfc-specific but with an inner class
 you can intercept the result of the method-call itself:

 private class TestServlet extends MyRFCServlet{

   private String methodCalled = null;
   private Object methodResult = null;

   public String getSomethingAsString(){
     methodCalled = getSomethingAsString;
     methodResult = super.getSomethingAsString();
     return (String) methodResult;
   }

 }

 So ignoring the HTTP-response you can check the result by accessing
 the members of the inner class:

   assertEquals(check method being called, getSomethingAsString, 
 servlet.methodCalled);
   assertNotNull(check existance of result, servlet.methodResult);
   assertEquals(check result, someResult, servlet.methodResult);

 A more general way of the above inner class is using a Java Proxy.

 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Running Apache Hupa sample of GWT MVP

2009-08-31 Thread smiletolead

Hi Norman,
  Is it like I have to set up the mail server in my own machine?

--Ganesh

On Aug 30, 12:52 pm, Norman Maurer nor...@apache.org wrote:
 Hi,

 anything in the server logs ? I neved tested it with googlemail yet,
 Im tested it against dovecot and courier-imap.

 Any feedback is welcome:)

 Bye,
 Norman

 2009/8/30 smiletolead kumar.gane...@gmail.com:



  Hi all,
   I am looking at the sample GWT project Apache HUPA which implements
 MVPpattern. I am having trouble in running it, though I was able to
  set up in Eclipse. I am unable to login. I set this mail client to
  connect to gmail by setting IMAP details of gmail. But it did not
  connect. Has anyone connected it with gmail or any other IMAP mail
  server?

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



Re: Running Apache Hupa sample of GWT MVP

2009-08-31 Thread Norman Maurer

well it should work with gmail.. Did you check if you have enabled
imap support in gmail:
http://mail.google.com/support/bin/answer.py?answer=77695


And how you run Hupa ? In tomcat/Jetty/Jboss/Hosted Mode ?


Bye,
Norman

2009/8/31 smiletolead kumar.gane...@gmail.com:

 Hi Norman,
  Is it like I have to set up the mail server in my own machine?

 --Ganesh

 On Aug 30, 12:52 pm, Norman Maurer nor...@apache.org wrote:
 Hi,

 anything in the server logs ? I neved tested it with googlemail yet,
 Im tested it against dovecot and courier-imap.

 Any feedback is welcome:)

 Bye,
 Norman

 2009/8/30 smiletolead kumar.gane...@gmail.com:



  Hi all,
   I am looking at the sample GWT project Apache HUPA which implements
 MVPpattern. I am having trouble in running it, though I was able to
  set up in Eclipse. I am unable to login. I set this mail client to
  connect to gmail by setting IMAP details of gmail. But it did not
  connect. Has anyone connected it with gmail or any other IMAP mail
  server?

  Thanks
  Ganesh
 


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



onKeyDownPreview to onPreviewNativeEvent

2009-08-31 Thread monkeyboy

In my code I am using onKeyDownPreview to hide a popup when the escape
key is hit.
public boolean onKeyDownPreview(char key, int modifiers) {
switch (key) {
case KeyCodes.KEY_ESCAPE:
hide();
break;
return true;
}
But the onKeyDownPreview is deprecated and I was wandering how would a
version with onPreviewNativeEvent (the new way of handling events)
would look like? Any suggestions? Am I the only one to think that the
Google documentation about this is too terse?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: DOM is not properly working with mozilla

2009-08-31 Thread Dominik Steiner

Hi Vruddhi,

I would suggest trying to do setting the background color of a button
from within a CSS file and just set a classname from within GWT.

I could not see why your code is not working, as one class is missing
from what you sent, but I would also recommend if you are using labels
like black to set colors to use the equivalent hex code like
FF

HTH

Dominik

On 31 Aug., 03:14, vruddhi shah vrudd...@gmail.com wrote:
 Hello All,

 I have implemented gwt buttons to change color of  button's background. I
 have changed button background color using DOM.setStyleAttribute. It is not
 working in mozilla (button color is not chaged) . Please help me out. I have
 attached the code.

 --
 Vruddhi Shah
 Pyther Innovations Pvt. Ltd.
 Land line: 91 78 40074893
 617, Devpath Complex
 C.G. Road, Ahmedabad
 India

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



Re: how to remove scroll bar around Disclosure Panel

2009-08-31 Thread Dominik Steiner

Hi KR,

you might want to consider CSS to do that by adding overflow:hidden to
the element that shows the scroll bars

HTH

Dominik

On 30 Aug., 07:52, enorm enor...@gmail.com wrote:
 Hi, all
 I'm making a daemon according to gwt examples. I made a Disclosure
 Panel  then add it to Horizontal Split Panel, I found that there
 are scroll bar exist if resize the window. Is there any method to
 remove them?

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



Re: GWT plugin: Problem when project name is changed

2009-08-31 Thread Miguel Méndez
On Sun, Aug 30, 2009 at 2:05 PM, hezjing hezj...@gmail.com wrote:

 Hi
 I have a GWT project named X created by Google plugin.

 Then later I want to change the name to Y, so I right clicked Project X -
 Refactor - Rename ... - New name: Y

 When run, it will complaint the working directory does not exist: /X/war
 It seems that launch configuration is still referring to the old name.

 Would it be possible for the plugin to rename the launch configuration,
 hosted page and etc?


The rename should update references to the project's name in the launch
configuration.  I'm not sure that it should change the name of the launch
configuration and hosted page however.  Could you add a feature
request herehttp://code.google.com/p/google-web-toolkit/issues/listfor
this?



 --

 Hez

 



-- 
Miguel

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



Re: Performance issues in GWT application

2009-08-31 Thread Alexander Cherednichenko

You might have setup redirect on your domain name management console.
If so, all requests are being sent to the zoneedit first, and then
their disaptcher sends them to your internet IP.

Just open up shell/cmd and write
   ping myserver.com

If you see your IP, this is OK, need to figure out other problems. I
bet you'll see other IP - one from zoneedit.

If ip is different this means that you need to setup DNS records. I'm
not sure what management panel you use; but goal is to change A-
records of the DNS to point to your IP.

I'll also answer privately to this posting.

On Aug 31, 7:28 am, Ganesh ganesh.ban...@gmail.com wrote:
 Hi Alexander

 Thanks for your reply. Taking Apache in loop is required as I have to
 setup some virtual host for accessing my application, so I need
 Apache. Further regarding 3rd level named, could you please explain
 what are these 3rd level names and how I can setup it. I have already
 registered a domain (say myserver.com) and for DNS mapping of domain 
 my server's IP, I am using a domain name service (zoneedit). But my
 problem is that all of my calls to server are routing through zoneedit
 (to resolve domain name).

 Kindly excuse if I am misinterpreting something  would request to
 explain further.

 Ganesh Bansal

 On Aug 28, 7:12 pm, Alexander Cherednichenko lex...@gmail.com wrote:

  Your request needs to go through too long chain, that's why it is
  slow.
  I'm not sure what's the purpose of the proxy server. Does it do any
  valuable work, or anything it does is just forwarding requests back
  and force between internet clients and your JBoss?

  Also, why do you need Apache on the local machine? You could just
  change JBoss configuration to listen to default port eighty, thus
  eliminating one more item from chain.

  What I'd recommend is to get some domain name. 3rd level names can be
  optained pretty easily. And then setup DNS to point this name to your
  jboss static ip address.

  In this case clients will have direct requests, except the first time
  when dns request would precede loaded one.

  On Aug 28, 2:30 am, Subhash Kaker subhash.ku...@daffodilsw.com
  wrote:

   Hi All

   I am also facing performance issue like this.

   Any suggestion/help will be appreciated.

   Thanks in adv.
   Subhash

   On Aug 28, 11:10 am,Ganeshganesh.ban...@gmail.com wrote:

Hi All

I am facing performance issues in my GWT application. My scenario is
as explained below:

My GWT application is deployed on a JBoss server which is running on a
machine with static IP say 56.56.56.56 with port 8080. Now when I
access my application using this IP  port, speed of my application is
very good and all is running very well. Now I want to setup a named
proxy server sayhttp://myserver.comforaccessingmyapplication. For
this, I made an account on zoneedit.com and created a mapping of my
named server to my static IP with port 80. On port 80 on my static
server, I setup an Apache server. In Apache server's config file, I
forward my all requests to JBoss server running on same machine. Now
using this setup, I am able to access my application using 
linkhttp://myserver.com.

But now the performance issues started. Request which is sent to
server from my application, starts taking too much time. A blank (no
data is being sent b/w server  client and no processing is being done
on server) request which takes 450 ms if access application through
static IP, takes 1400 ms when application is accessed 
usinghttp://myserver.com.

Below is the code which I use to send request to my server:

    _MyServiceAsync myServiceAsync = (_MyServiceAsync) GWT.create
(_MyService.class);
    ServiceDefTarget endpoint = (ServiceDefTarget) myServiceAsync;
    String moduleRelativeURL = GWT.getModuleBaseURL() + MyService;
    endpoint.setServiceEntryPoint(moduleRelativeURL);
    myServiceAsync.callMethod();

The problem which seems to be is because all my requests are going to
zoneedit.com and than to my server and that's why they are taking a
lot of time. A solution which I thought was replacing
GWT.getModuleBaseURL() with my static IP in moduleRelativeURL for
sending direct request, but that didn't work because of cross domain
AJAX call restriction.

I request if someone can help me how can I achieve performance without
telling exact IP (it is also difficult to remember an IP) to my
clients on which my application is running. Any suggestion/help will
be highly appreciated.

Thanks in advance

   GaneshBansal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 

Re: DOM is not properly working with mozilla

2009-08-31 Thread Thomas Broyer



On 31 août, 11:14, vruddhi shah vrudd...@gmail.com wrote:
 Hello All,

 I have implemented gwt buttons to change color of  button's background. I
 have changed button background color using DOM.setStyleAttribute. It is not
 working in mozilla (button color is not chaged) . Please help me out. I have
 attached the code.

You're setting the default color on a div within the button (wow!
a div?! why not use a span? but, well, as already said by Dominik,
you'd rather use CSS classes and the addStyleName/removeStyleName
methods) and trying to override it by setting the style on the
button: the div will have precedence.

Look at the generated DOM with Firebug, Web Inspector, Internet
Explorer Developer Tools or whatever, it'll become obvious.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT plugin: Problem when project name is changed

2009-08-31 Thread Isaac Truett

 I'm not sure that it should change the name of the launch
 configuration and hosted page however.

I'm willing to take the next step and say I'm sure it shouldn't. :)

- Isaac

2009/8/31 Miguel Méndez mmen...@google.com:
 On Sun, Aug 30, 2009 at 2:05 PM, hezjing hezj...@gmail.com wrote:

 Hi
 I have a GWT project named X created by Google plugin.
 Then later I want to change the name to Y, so I right clicked Project X -
 Refactor - Rename ... - New name: Y
 When run, it will complaint the working directory does not exist: /X/war
 It seems that launch configuration is still referring to the old name.
 Would it be possible for the plugin to rename the launch configuration,
 hosted page and etc?

 The rename should update references to the project's name in the launch
 configuration.  I'm not sure that it should change the name of the launch
 configuration and hosted page however.  Could you add a feature request here
 for this?


 --

 Hez





 --
 Miguel

 


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



Re: Possible cause for IncompatibleRemoteServiceException

2009-08-31 Thread Rahul

Hi,
I am also getting the same exception, when i am trying to run it
outside the browser mode
SEVERE: greetServlet: An IncompatibleRemoteServiceException was thrown
while processing this call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
This application is out of date, please click the refresh button on
your browser. ( Could not locate requested method 'greetServer3
(java.lang.String, java.lang.String)' in interface
'com.example.test10.client.GreetingService' )


Reading the above responses i am not able to see from where am i
getting that error. GreetServer3 function only executes an sql query
on the database and returns the result, and i havent extended any java
class for that.

So can anyone point how to solve this problem?



On Jul 30, 7:57 am, neshaug nesh...@gmail.com wrote:
 I have the same error, but only after I make the result from the
 persistence manager transient.

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



Re: java.lang.UnsupportedClassVersionError: Bad version number in .class file in eclipse-3.4 + mac osx

2009-08-31 Thread Jason Parekh
Hi Brian,
Could you let us know which version of the JRE is being used for launching
the app engine server?  Also, what's the compliance level set to in Eclipse?

Thanks,
jason

On Sat, Aug 29, 2009 at 1:05 PM, Brian Dorry brian.do...@gmail.com wrote:


 I am getting a similar problem, I was working on my project last night
 with no problems. But opening it and running it today I am receiving
 the following error

 SEVERE: Caught exception from remote service procedure
 com.google.apphosting.api.ApiProxy$UnknownException: An error occurred
 for the API request urlfetch.Fetch().
at
 com.google.appengine.tools.development.ApiProxyLocalImpl.makeSyncCall
 (ApiProxyLocalImpl.java:108)
at com.google.apphosting.api.ApiProxy.makeSyncCall(ApiProxy.java:79)
at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch
 (URLFetchServiceImpl.java:28)
at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.fetchResponse(URLFetchServiceStreamHandler.java:389)
at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getInputStream(URLFetchServiceStreamHandler.java:289)
at
 com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler
 $Connection.getResponseCode(URLFetchServiceStreamHandler.java:131)
at com.google.gdata.client.GoogleAuthTokenFactory.makePostRequest
 (GoogleAuthTokenFactory.java:550)
at com.google.gdata.client.GoogleAuthTokenFactory.getAuthToken
 (GoogleAuthTokenFactory.java:477)
at com.google.gdata.client.GoogleAuthTokenFactory.setUserCredentials
 (GoogleAuthTokenFactory.java:336)
at com.google.gdata.client.GoogleService.setUserCredentials
 (GoogleService.java:362)
at com.google.gdata.client.GoogleService.setUserCredentials
 (GoogleService.java:317)
at com.google.gdata.client.GoogleService.setUserCredentials
 (GoogleService.java:301)
at

 com.ltech.googleapps.powerpanel.server.BaseServiceImpl.setServiceCredentials
 (BaseServiceImpl.java:61)
at
 com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl.getUsers
 (ProvisioningServiceImpl.java:181)
at
 com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl.access$0
 (ProvisioningServiceImpl.java:171)
at com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl
 $1.performCall(ProvisioningServiceImpl.java:61)
at com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl
 $1.performCall(ProvisioningServiceImpl.java:1)
at
 com.ltech.googleapps.powerpanel.server.BaseServiceImpl.performSecureCall
 (BaseServiceImpl.java:72)
at
 com.ltech.googleapps.powerpanel.server.ProvisioningServiceImpl.getUsers
 (ProvisioningServiceImpl.java:59)
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:585)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
 (RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
 (RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
 (RemoteServiceServlet.java:86)
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.utils.servlet.TransactionCleanupFilter.doFilter
 (TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
 (ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
 (StaticFileFilter.java:124)
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.utils.jetty.DevAppEngineWebAppContext.handle
 (DevAppEngineWebAppContext.java:54)
at org.mortbay.jetty.handler.HandlerWrapper.handle
 (HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:313)
at org.mortbay.jetty.handler.HandlerWrapper.handle
 (HandlerWrapper.java:139)

Re: EclipseLink Glassfish

2009-08-31 Thread Jason Parekh
Thanks for posting the solution!
jason

On Sat, Aug 29, 2009 at 1:09 PM, MamboJumbo torni...@googlemail.com wrote:


 If anyone will have a similar problem, it was the eclipse galileo
 issue. I had one of the earlier releases that was not adding selected
 Facets to GWT project correctly. After installing newer Galileo
 release everything 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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Possible cause for IncompatibleRemoteServiceException

2009-08-31 Thread Rahul

Hi Sorry for the incomplete information earlier

I am using Windows XP+Elipse+GWT 1.70

I just upgraded my plugin again, and now the error seems to be gone
So it was a version issue? or something else?

On Aug 31, 10:25 am, Rahul coolrahul18...@gmail.com wrote:
 Hi,
 I am also getting the same exception, when i am trying to run it
 outside the browser mode
 SEVERE: greetServlet: An IncompatibleRemoteServiceException was thrown
 while processing this call.
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 This application is out of date, please click the refresh button on
 your browser. ( Could not locate requested method 'greetServer3
 (java.lang.String, java.lang.String)' in interface
 'com.example.test10.client.GreetingService' )

 Reading the above responses i am not able to see from where am i
 getting that error. GreetServer3 function only executes an sql query
 on the database and returns the result, and i havent extended any java
 class for that.

 So can anyone point how to solve this problem?

 On Jul 30, 7:57 am, neshaug nesh...@gmail.com wrote:

  I have the same error, but only after I make the result from the
  persistence manager transient.

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



Re: Does GWT work in Snow Leopard?

2009-08-31 Thread miller

I agree that it should be a simple patch to allow 1.6 or 1.7 to run in
hosted mode with Java 1.6 VM on snow leopardor is someone able to
provide instructions on how to perform the fix ourselves?



On Aug 30, 12:21 am, James james.hagg...@convolution.net wrote:
 Hi... I just wanted to add that along with the suggestions on:

 http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

 I had to rename the CurrentJDK symbolic link in

 /System/Library/Frameworks/JavaVM.framework/Versions/

 from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was
 looking at the CurrentJDK for its version not the env.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



File Not Found While working with RPC

2009-08-31 Thread Aximilli302

Hello all,

I'm having a slight issue with making server calls. I have set up a
relitivly simple server, but am new to this, and have gotten most of
what i've learned off the internet.

At this point, the error is that the server can not be found. Here are
a few tidbits of my code, where the issue likely lies.

//Inside the Main Class
ServiceDefTarget endpoint = (ServiceDefTarget) myService;

endpoint.setServiceEntryPoint(/MyService);

myService.myMethod(lbl.getText(), user.getUserName(), new
AsyncCallbackString() {

@Override
public void onFailure(Throwable caught) {
System.out.println(Into the onfailure method);
lbl.setText(Failure to send);
System.out.println(caught.getCause());
}

@Override
public void onSuccess(String a) {
System.out.println(Sucess);
//Does everthing it's supposed to   
}
});


I have the MyService interface, and the MyServiceAsync.
The MyServiceImpl class returns a simple String

The XML class contains the following lines:
entry-point class='com.google.tabs.client.Tabs' /
  servlet path=/MyService
class=com.google.tabs.server.MyServiceImpl /


MyService is inside the .client class, while MyServiceImpl is
inside .server

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



Re: Possible cause for IncompatibleRemoteServiceException

2009-08-31 Thread Tim McCormack

On Aug 31, 10:25 am, Rahul coolrahul18...@gmail.com wrote:
 ( Could not locate requested method 'greetServer3
 (java.lang.String, java.lang.String)' in interface
 'com.example.test10.client.GreetingService' )

I don't think this is the same issue, Rahul. Sounds like your compiled
client code is out of sync with your servlets. Try recompiling and
clearing cache.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Not Found While working with RPC

2009-08-31 Thread Aximilli302

The Exact error is:

Aug 31, 2009 9:37:02 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /MyService

On Aug 31, 9:38 am, Aximilli302 aximilli...@gmail.com wrote:
 Hello all,

 I'm having a slight issue with making server calls. I have set up a
 relitivly simple server, but am new to this, and have gotten most of
 what i've learned off the internet.

 At this point, the error is that the server can not be found. Here are
 a few tidbits of my code, where the issue likely lies.

 //Inside the Main Class
 ServiceDefTarget endpoint = (ServiceDefTarget) myService;

 endpoint.setServiceEntryPoint(/MyService);

 myService.myMethod(lbl.getText(), user.getUserName(), new
 AsyncCallbackString() {

 @Override
 public void onFailure(Throwable caught) {
 System.out.println(Into the onfailure method);
 lbl.setText(Failure to send);
 System.out.println(caught.getCause());
                                 }

 @Override
 public void onSuccess(String a) {
 System.out.println(Sucess);
 //Does everthing it's supposed to                                             
                   }
                 });

 I have the MyService interface, and the MyServiceAsync.
 The MyServiceImpl class returns a simple String

 The XML class contains the following lines:
 entry-point class='com.google.tabs.client.Tabs' /
   servlet path=/MyService
 class=com.google.tabs.server.MyServiceImpl /

 MyService is inside the .client class, while MyServiceImpl is
 inside .server

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



Re: Does GWT work in Snow Leopard?

2009-08-31 Thread Michael Shantzis

The question I have is how high it is on google's list to release a
version of GWT that runs on snow leopard without any modifications.
I'm working in an environment where I'm testing jboss (which requires
java 1.6) and have had to jump through hoops to get my server running
1.6 and my GWT client running 1.5.

I'm sure they're already aware of this and it's certainly the case
that all the pieces are out there for them.

I'm patiently waiting!!!

On Aug 29, 9:21 pm, James james.hagg...@convolution.net wrote:
 Hi... I just wanted to add that along with the suggestions on:

 http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

 I had to rename the CurrentJDK symbolic link in

 /System/Library/Frameworks/JavaVM.framework/Versions/

 from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was
 looking at the CurrentJDK for its version not the env.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Project Package Name

2009-08-31 Thread Jason Parekh
Hi Stephan,
The project name is generally a title for the project, e.g. Google Web
Toolkit if we were developing GWT.  This is used as the Eclipse project
name and also naming some files (for example, the GWT module.xml).

The package name is similar to a java package name.  It defines a globally
unique name for the project.  It is recommended to start the package name
with a domain you own and the rest is up to you (most people just append the
project name though).

Hope this helps,
jason

On Sat, Aug 29, 2009 at 8:41 PM, GumbyGWTBeginner stephan.gump...@gmail.com
 wrote:


 Please be gentol... I am very green around the ears to thislol

 Hi Can anyone please tell me what the importance of the Project and
 Package name have on app when creating a new application in eclipse?

 The tutorials all tell you what to write but dont mention how they
 effect the app?

 Thanks in advance.

 Stephan

 


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



Re: Problem deploying with Firefox/Chrome

2009-08-31 Thread Rahul

Hi
I just checked and i am not getting an null response
xmlDoc1 is not empty with FireFox also



On Aug 28, 3:53 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/28/2009 07:03 AM, Rahul wrote:





  Hi
  This is a sample code how i am using to create my UI from parsing XML
  files

     protected void fucn(final VerticalPanel verticalPanel, String
  substring,final PickupDragController drag) {
             // TODO Auto-generated method stub
             RequestBuilder builder1 = new RequestBuilder
  (RequestBuilder.GET,substring+.mdl);
             try
             {
                     Request request1 = builder1.sendRequest(null, new 
  RequestCallback()
                     {

                             public void onError(Request request1, Throwable 
  exception) {
                             }

                            �...@override
                             public void onResponseReceived(Request request1,
                                             Response response1)
                             {
                                     Document xmlDoc1 = 
  XMLParser.parse(response1.getText());

 You wrote earlier that ... I am believing that it gets an null response

 is xmlDoc1 indeed empty?

 My guess is that there is a subtle syntax error in the MDL file; which
 problem IE ignores. FF on the other hand doesn't let it slide.

                                     XMLParser.removeWhitespace(xmlDoc1);

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



Re: Eclipse GWT NoClassDefFoundError

2009-08-31 Thread Jason Parekh
Hi Jack,
This is a known issue.

For jars referenced by your dependent projects, the typical workaround is
what you've described.

For the source in your dependent projects, you could add linked source
resources in your main project pointing to the dependent projects' source
directories.

jason

On Sun, Aug 30, 2009 at 12:19 AM, jack jack.terran...@gmail.com wrote:


 I have a simple GWT project in Eclipse that requires another external
 project.  Everything builds fine.  But when I launch as a Google Web
 App using the App Engine I get a server-side NoClassDefFound for
 classes located in the external project.

 I've played around with the launch config and can't get around this.
 Under the classpath tab when I select the external project, Eclipse
 also chooses the project's dependent jars, but when I run the GWT
 project apparently Eclipse is not making these jars available to the
 App Engine.

 I can jar up the external project and cram it into WEB-INF/lib of my
 GWT project - the error goes away then.  But this requires me to
 gather up every jar that the external project relies on and place it
 under WEB-INF/lib.  I imagine Eclipse should be doing this for me
 through the launch configuration.

 Thanks in advance
 


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



Re: File Not Found While working with RPC

2009-08-31 Thread Rahul

Hi,
There should be another class called MyServiceAsync.java under client


On Aug 31, 10:41 am, Aximilli302 aximilli...@gmail.com wrote:
 The Exact error is:

 Aug 31, 2009 9:37:02 AM
 com.google.appengine.tools.development.LocalResourceFileServlet doGet
 WARNING: No file found for: /MyService

 On Aug 31, 9:38 am, Aximilli302 aximilli...@gmail.com wrote:

  Hello all,

  I'm having a slight issue with making server calls. I have set up a
  relitivly simple server, but am new to this, and have gotten most of
  what i've learned off the internet.

  At this point, the error is that the server can not be found. Here are
  a few tidbits of my code, where the issue likely lies.

  //Inside the Main Class
  ServiceDefTarget endpoint = (ServiceDefTarget) myService;

  endpoint.setServiceEntryPoint(/MyService);

  myService.myMethod(lbl.getText(), user.getUserName(), new
  AsyncCallbackString() {

  @Override
  public void onFailure(Throwable caught) {
  System.out.println(Into the onfailure method);
  lbl.setText(Failure to send);
  System.out.println(caught.getCause());
                                  }

  @Override
  public void onSuccess(String a) {
  System.out.println(Sucess);
  //Does everthing it's supposed to                                           
                      }
                  });

  I have the MyService interface, and the MyServiceAsync.
  The MyServiceImpl class returns a simple String

  The XML class contains the following lines:
  entry-point class='com.google.tabs.client.Tabs' /
    servlet path=/MyService
  class=com.google.tabs.server.MyServiceImpl /

  MyService is inside the .client class, while MyServiceImpl is
  inside .server

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



Exceptions

2009-08-31 Thread Charlie

Hello
Trying to figure how do I wrap a code with try and catch so any error
that happens it will be caught there?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Not Found While working with RPC

2009-08-31 Thread Aximilli302

That is there.

Myservice looks like this:

public interface MyService extends RemoteService{

public String myMethod(String s, String username);
}

MyServiceAsync looks like this:

public interface MyServiceAsync {
public void myMethod(String s, String username, AsyncCallbackString
callback);

}

MyServiceImpl looks like this:

public class MyServiceImpl extends RemoteServiceServlet implements
MyService {
public String myMethod(String s, String username) {
System.out.println(into myMethod, in the impl class);
s=It got to the server and was returned as this. The user is:  +
username;
return s;
}

On Aug 31, 9:53 am, Rahul coolrahul18...@gmail.com wrote:
 Hi,
 There should be another class called MyServiceAsync.java under client

 On Aug 31, 10:41 am, Aximilli302 aximilli...@gmail.com wrote:



  The Exact error is:

  Aug 31, 2009 9:37:02 AM
  com.google.appengine.tools.development.LocalResourceFileServlet doGet
  WARNING: No file found for: /MyService

  On Aug 31, 9:38 am, Aximilli302 aximilli...@gmail.com wrote:

   Hello all,

   I'm having a slight issue with making server calls. I have set up a
   relitivly simple server, but am new to this, and have gotten most of
   what i've learned off the internet.

   At this point, the error is that the server can not be found. Here are
   a few tidbits of my code, where the issue likely lies.

   //Inside the Main Class
   ServiceDefTarget endpoint = (ServiceDefTarget) myService;

   endpoint.setServiceEntryPoint(/MyService);

   myService.myMethod(lbl.getText(), user.getUserName(), new
   AsyncCallbackString() {

   @Override
   public void onFailure(Throwable caught) {
   System.out.println(Into the onfailure method);
   lbl.setText(Failure to send);
   System.out.println(caught.getCause());
                                   }

   @Override
   public void onSuccess(String a) {
   System.out.println(Sucess);
   //Does everthing it's supposed to                                         
                         }
                   });

   I have the MyService interface, and the MyServiceAsync.
   The MyServiceImpl class returns a simple String

   The XML class contains the following lines:
   entry-point class='com.google.tabs.client.Tabs' /
     servlet path=/MyService
   class=com.google.tabs.server.MyServiceImpl /

   MyService is inside the .client class, while MyServiceImpl is
   inside .server

   Any thoughts?- Hide quoted text -

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



Re: Exceptions

2009-08-31 Thread Brian Blain


try {
   // your code
}
catch(Exception e) {
}



On Aug 31, 10:54 am, Charlie codeboo...@gmail.com wrote:
 Hello
 Trying to figure how do I wrap a code with try and catch so any error
 that happens it will be caught there?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT google maps, determine the balloon is hidden after user drag the map

2009-08-31 Thread Eric Ayers

First, grab the bounds of the map with

LatLngBounds mapBounds = map.getBounds().

Then, use LatLng position of the InfoWindow and see if it is within the bounds:

LatLng coords;
...

 if (!mapBounds.containsLatLng(coords)) {
  // move the info window
  ...
}



On Fri, Aug 28, 2009 at 12:36 AM, zinkronz networkzinkr...@gmail.com wrote:
 hello all,


 i need help. how can i know the balloon is hidden after user drag the map to
 another location? i want to re center the balloon if the balloon is not
 visible after user drag map to another location.


 Thanks

 Buzz

 




-- 
Google Code Jam 2009
http://code.google.com/codejam

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



Problem on loading several times the same image

2009-08-31 Thread guymage

Hi,

Here is my problem:

My program load an image, I modify the size of this image when it's
loaded (LoadHandler). The first time I load the image, everything
works fine.
After an action, I have to refresh the panel and the image is reloaded
(needed) but the LoadEvent is not fired.

Is it because the web browser get the image in its cache ?
Is there any solution ?

I tried to save the image on a hashmap and use it when the same image
is reloaded, it works but but my program can have several times the
same image on the same panel, so the image appeared only once.

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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Integrate GWT + Servlet in Eclipse

2009-08-31 Thread Xavi

Hi,

I'm developing a web project with GWT that consumes a pre-existent
Dynamic Web Project's servlet. I've been trying to integrate both
separated projects in Eclipse but there is no way :( Every project,
separately, works perfectly but I can't imagine how I could debug/run
both projects together.

Anyone have any idea?

Thanks for your help.


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



up gradation of gwt1.6 to 1.7

2009-08-31 Thread Chevron

Hi,
I have upgraded my app from 1.6 to 1.7 but most of the things are
not working the way it should be what are the changes I'll have to
make.
Thanks in advance
Chevron

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



Problem with GWT Project Configuration - Inherits Module Problem

2009-08-31 Thread Prosky

Good morning to all users of the forum; i am a new user and i have a
small problem with a gwt project.
The Project is constituted by one module that is called Portal, that
contain the entry point class, and by another support module that is
called Canvas, that not contain another entry point.
The project is completely but i can't execute him because i don't
configurate the classhopath in the correctly mode.
Infact during the execution i have this problem:

[ERROR] Unable to load module entry point class
org.unicam.resourceome.web.portal.client.Portal (see associated
exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError): Property
or method doesn't support by the object
 number: -2146827850
 description: Property or method doesn't support by the object
at
org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImplDefault.createElement
(Native Method)
at org.unicam.gwt.graphics.client.canvas.GWTCanvas.init
(GWTCanvas.java:138)
at org.unicam.gwt.graphics.client.GWTGraphicsView.init
(GWTGraphicsView.java:42)
at org.unicam.gwt.graphics.client.GWTGraphicsView.init
(GWTGraphicsView.java:38)
at org.unicam.resourceome.web.portal.client.Portal.onModuleLoad
(Portal.java:198)

I would want to be more precise in the description but i don't speek a
good english. Since the project is concluded and the problem of
configuration should easily be resolvable there is a person exists to
which could kindly pass the project so that you worry him about to
directly resolve me him?

Sorry for the bad english, thank you for the quickly answer. Bye.
Marco.

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



@RemoteServiceRelativePath glassfish problem

2009-08-31 Thread SimonC

Hi,
@RemoteServiceRelativePath does not work correctly when war is
deployed on glassfish server 2.1

I've noticed that GWT.getModuleBaseURL() returned value had doubled
application name suffix at the URL end:

http://localhost:8080/ejbAccess/ejbAccess/

instead of value returned in hosted mode:

http://localhost:8080/ejbAccess/


Does anyone have any idea why this behavior is wrong/different on
glassfish2.1 ?

Regards,
sc

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



Re: Integrate GWT + Servlet in Eclipse

2009-08-31 Thread Jason Parekh
Hi Xavi,
There isn't an official way of solving this problem but one of the following
may work:

1) JAR up the pre-existent project and place it in the GWT project's
war/WEB-INF/lib folder
2) Add the pre-existant project's source folder(s) as linked source folders
in the GWT project
3) Set the output directory of the pre-existant project to the GWT project's
output directory (war/WEB-INF/classes, I believe
4) Add the GWT nature to the existing dynamic web project (there have been
discussions about this previously on the group)

Hope this helps,
jason

On Mon, Aug 31, 2009 at 3:37 AM, Xavi xavie...@gmail.com wrote:


 Hi,

 I'm developing a web project with GWT that consumes a pre-existent
 Dynamic Web Project's servlet. I've been trying to integrate both
 separated projects in Eclipse but there is no way :( Every project,
 separately, works perfectly but I can't imagine how I could debug/run
 both projects together.

 Anyone have any idea?

 Thanks for your help.


 


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



Re: Running Apache Hupa sample of GWT MVP

2009-08-31 Thread smiletolead

I have enabled IMAP settings in Gmail. And I am running the app in
Hosted mode. I have modified config.properties to run the app with
gmail.

On Aug 31, 6:04 pm, Norman Maurer nor...@apache.org wrote:
 well it should work with gmail.. Did you check if you have enabled
 imap support in 
 gmail:http://mail.google.com/support/bin/answer.py?answer=77695

 And how you run Hupa ? In tomcat/Jetty/Jboss/Hosted Mode ?

 Bye,
 Norman

 2009/8/31 smiletolead kumar.gane...@gmail.com:





  Hi Norman,
   Is it like I have to set up the mail server in my own machine?

  --Ganesh

  On Aug 30, 12:52 pm, Norman Maurer nor...@apache.org wrote:
  Hi,

  anything in the server logs ? I neved tested it with googlemail yet,
  Im tested it against dovecot and courier-imap.

  Any feedback is welcome:)

  Bye,
  Norman

  2009/8/30 smiletolead kumar.gane...@gmail.com:

   Hi all,
    I am looking at the sample GWT project Apache HUPA which implements
  MVPpattern. I am having trouble in running it, though I was able to
   set up in Eclipse. I am unable to login. I set this mail client to
   connect to gmail by setting IMAP details of gmail. But it did not
   connect. Has anyone connected it with gmail or any other IMAP mail
   server?

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



Re: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-31 Thread Isaac Truett

Dave,

I can't speak for Rajeev, but your reply to him never reached my
inbox. I understand your frustration. Do please try to be nice.

Thanks,
Isaac


On Mon, Aug 31, 2009 at 1:27 PM, Davedfdumar...@gmail.com wrote:

 Why say something like 'post back here and we'll dig deeper' if you
 don't intend to follow the thread and make good on your promise?

 Dave

 On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
 Hey Dave,
 A couple things to try:

 -Blow away the mmclient subdirectory located under your war directory
 -Clear your FF3 cache

 Try that out and see if that helps. If not, post back here and we'll dig
 deeper.

 Rajeev

 On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:

  Hi all,

  I'm getting several problems after upgrading to 1.7.
  In hosted mode:
  - all the http status codes are 304 (Not Modified)
  - I only see a blank page
  - when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
  compiled, (I've tried refreshing first - same thing)
  - if I change the module name to something bogus in my host html file,
  and refresh, things seem to work.
  For example, when I change from div id=mmcclient/div to div
  id=x_mmcclient/div, I still get 304s, but I also get
   [ERROR] Unable to load module entry point ...
    com.google.gwt.core.client.JavaScriptException: (Error): Invalid
  argument.
      number: -2147024809
    description: Invalid argument.
   [ERROR] Failure to load module 'mmcclient'
  with the line number of my entry point class where I call
   RootPanel.get(mmcclient).add(containerLayout);

  But then the module is loaded and my app is fine. No blank page!

  - finally, one of my css resource directories (sc) must be copied into
  the public root, otherwise it will not be found.

  Some further info,
  the war directory structure looks like this (my module name is
  mmcclient),
  - war
   - conf
   - images
   - mmcclient
   - sc
   - WEB-INF
   - MMCClient.css
   - MMCClient.html

  The module is loaded from the host html as:
     script type=text/javascript language=javascript
  src=mmcclient/mmcclient.nocache.js/script
  Even when I get a blank page, I believe this file is being found.
  (Firebug shows its JS functions).

  I'm working with the Eclipse (3.4.2) GWT plugin, if that's important.

  Thanks for any advice!
  -Dave
 


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



Re: Refresh page on loading

2009-08-31 Thread Rahul

Hi Ian,
Sorry for the late reply
The code which you wrote above is the same effect i am trying to make,
but i do it like:

a) Parse an xml file which has 6 or 7 enteries, so i make 6 to 7
vertical panels
b) Each entry calls another xml file which has 20 to 30 textboxes in
tht. It prints the textboxes on it
c) now after adding all textboxes to the vertical panel, I add submit
button to each vertical panel

so first time it comes it shows on top but later it shows on bottom
I will try to give a sample demo so you could see that problem
yourself soon


On Aug 24, 12:31 pm, Ian Bambury ianbamb...@gmail.com wrote:
 Hi Rahul,
 I tried the code below but it seems to work OK. Is it the kind of effect you
 are trying to get?

         VerticalPanel[] v1 = new VerticalPanel[5];
         TabPanel tabpanel = new TabPanel();
         for(int j = 0; j  5; j++)
         {
             v1[j] = new VerticalPanel();
             tabpanel.add(v1[j],  [XXX] );
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new TextBox());
             v1[j].add(new Button(Submit));
         }
         RootPanel.get().add(tabpanel);
         tabpanel.selectTab(0);

 Ian

 http://examples.roughian.com

 2009/8/24 Rahul coolrahul18...@gmail.com



  Hi Ian,
  Sorry for the late reply, I was out of office for last few days

  here is part of the code
         for ( j = 0; j  URLs.getLength()-1; j++)
                                         {
                                                 v1[j] = new VerticalPanel();
                                                 String str =
  URLs.item(j).getAttributes().toString();
                                         //      System.out.println(str);

   tabpanel.add(v1[j],str.substring(13,16));

   fucn(v1[j],str.substring(13,16),drag);

   v1[j].setTitle(str.substring(13,16));
                                             b1 = new Button (Submit);
                                             b1.addClickHandler(handler2);
                                             v1[j].add(b1);

                                         //end of for loop
                                         }

  the button b1 is an public button

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



Re: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-31 Thread Ian Bambury
Nor me.
In the last few days I've seen replies to posts that haven't reached me
until hours later - nothing has gone missing for days though. Presumably
some of Google's farm is playing up.

The 'module needs to be recompiled' might indicate that the serverside has
not been upgraded which was probably why Rajeev was suggesting nuking it so
it will get rebuilt. Generally it happens (to me) if the two sides are out
of sync, but the error messages for this condition are notoriously obscure
(aka 'wrong')

Ian

http://examples.roughian.com


2009/8/31 Isaac Truett itru...@gmail.com


 Dave,

 I can't speak for Rajeev, but your reply to him never reached my
 inbox. I understand your frustration. Do please try to be nice.

 Thanks,
 Isaac


 On Mon, Aug 31, 2009 at 1:27 PM, Davedfdumar...@gmail.com wrote:
 
  Why say something like 'post back here and we'll dig deeper' if you
  don't intend to follow the thread and make good on your promise?
 
  Dave
 
  On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
  Hey Dave,
  A couple things to try:
 
  -Blow away the mmclient subdirectory located under your war directory
  -Clear your FF3 cache
 
  Try that out and see if that helps. If not, post back here and we'll dig
  deeper.
 
  Rajeev
 
  On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:
 
   Hi all,
 
   I'm getting several problems after upgrading to 1.7.
   In hosted mode:
   - all the http status codes are 304 (Not Modified)
   - I only see a blank page
   - when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
   compiled, (I've tried refreshing first - same thing)
   - if I change the module name to something bogus in my host html file,
   and refresh, things seem to work.
   For example, when I change from div id=mmcclient/div to div
   id=x_mmcclient/div, I still get 304s, but I also get
[ERROR] Unable to load module entry point ...
 com.google.gwt.core.client.JavaScriptException: (Error): Invalid
   argument.
   number: -2147024809
 description: Invalid argument.
[ERROR] Failure to load module 'mmcclient'
   with the line number of my entry point class where I call
RootPanel.get(mmcclient).add(containerLayout);
 
   But then the module is loaded and my app is fine. No blank page!
 
   - finally, one of my css resource directories (sc) must be copied into
   the public root, otherwise it will not be found.
 
   Some further info,
   the war directory structure looks like this (my module name is
   mmcclient),
   - war
- conf
- images
- mmcclient
- sc
- WEB-INF
- MMCClient.css
- MMCClient.html
 
   The module is loaded from the host html as:
  script type=text/javascript language=javascript
   src=mmcclient/mmcclient.nocache.js/script
   Even when I get a blank page, I believe this file is being found.
   (Firebug shows its JS functions).
 
   I'm working with the Eclipse (3.4.2) GWT plugin, if that's important.
 
   Thanks for any advice!
   -Dave
  
 

 


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



Re: Running Apache Hupa sample of GWT MVP

2009-08-31 Thread Norman Maurer

Ok then you should see some errors in the console output. Can you paste them ?

Thx,
Norman

2009/8/31 smiletolead kumar.gane...@gmail.com:

 I have enabled IMAP settings in Gmail. And I am running the app in
 Hosted mode. I have modified config.properties to run the app with
 gmail.

 On Aug 31, 6:04 pm, Norman Maurer nor...@apache.org wrote:
 well it should work with gmail.. Did you check if you have enabled
 imap support in 
 gmail:http://mail.google.com/support/bin/answer.py?answer=77695

 And how you run Hupa ? In tomcat/Jetty/Jboss/Hosted Mode ?

 Bye,
 Norman

 2009/8/31 smiletolead kumar.gane...@gmail.com:





  Hi Norman,
   Is it like I have to set up the mail server in my own machine?

  --Ganesh

  On Aug 30, 12:52 pm, Norman Maurer nor...@apache.org wrote:
  Hi,

  anything in the server logs ? I neved tested it with googlemail yet,
  Im tested it against dovecot and courier-imap.

  Any feedback is welcome:)

  Bye,
  Norman

  2009/8/30 smiletolead kumar.gane...@gmail.com:

   Hi all,
    I am looking at the sample GWT project Apache HUPA which implements
  MVPpattern. I am having trouble in running it, though I was able to
   set up in Eclipse. I am unable to login. I set this mail client to
   connect to gmail by setting IMAP details of gmail. But it did not
   connect. Has anyone connected it with gmail or any other IMAP mail
   server?

   Thanks
   Ganesh
 


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



Re: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-31 Thread Isaac Truett

No worries.

I looked up your message directly in Groups, and I see that you
identified your problem as being a div with an ID that's the same as
your module name. I don't believe this is a documented gotcha, but I
do recall seeing another instance of it on the forum recently. What I
don't recall seeing is an explanation of why this should be a problem.
My guess is that something in the bootstrapping wants to use the
module name as an ID and having another element in the HTML with that
ID causes the conflict. But again, that's only a guess.


On Mon, Aug 31, 2009 at 2:03 PM, Davedfdumar...@gmail.com wrote:

 Yeah, it's good to be reminded never to make assumptions - thanks,
 Isaac.


 Dave

 On Aug 31, 10:40 am, Isaac Truett itru...@gmail.com wrote:
 Dave,

 I can't speak for Rajeev, but your reply to him never reached my
 inbox. I understand your frustration. Do please try to be nice.

 Thanks,
 Isaac

 On Mon, Aug 31, 2009 at 1:27 PM, Davedfdumar...@gmail.com wrote:

  Why say something like 'post back here and we'll dig deeper' if you
  don't intend to follow the thread and make good on your promise?

  Dave

  On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
  Hey Dave,
  A couple things to try:

  -Blow away the mmclient subdirectory located under your war directory
  -Clear your FF3 cache

  Try that out and see if that helps. If not, post back here and we'll dig
  deeper.

  Rajeev

  On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:

   Hi all,

   I'm getting several problems after upgrading to 1.7.
   In hosted mode:
   - all the http status codes are 304 (Not Modified)
   - I only see a blank page
   - when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
   compiled, (I've tried refreshing first - same thing)
   - if I change the module name to something bogus in my host html file,
   and refresh, things seem to work.
   For example, when I change from div id=mmcclient/div to div
   id=x_mmcclient/div, I still get 304s, but I also get
    [ERROR] Unable to load module entry point ...
     com.google.gwt.core.client.JavaScriptException: (Error): Invalid
   argument.
       number: -2147024809
     description: Invalid argument.
    [ERROR] Failure to load module 'mmcclient'
   with the line number of my entry point class where I call
    RootPanel.get(mmcclient).add(containerLayout);

   But then the module is loaded and my app is fine. No blank page!

   - finally, one of my css resource directories (sc) must be copied into
   the public root, otherwise it will not be found.

   Some further info,
   the war directory structure looks like this (my module name is
   mmcclient),
   - war
    - conf
    - images
    - mmcclient
    - sc
    - WEB-INF
    - MMCClient.css
    - MMCClient.html

   The module is loaded from the host html as:
      script type=text/javascript language=javascript
   src=mmcclient/mmcclient.nocache.js/script
   Even when I get a blank page, I believe this file is being found.
   (Firebug shows its JS functions).

   I'm working with the Eclipse (3.4.2) GWT plugin, if that's important.

   Thanks for any advice!
   -Dave
 


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



Re: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-31 Thread Dave

Yeah, it's good to be reminded never to make assumptions - thanks,
Isaac.


Dave

On Aug 31, 10:40 am, Isaac Truett itru...@gmail.com wrote:
 Dave,

 I can't speak for Rajeev, but your reply to him never reached my
 inbox. I understand your frustration. Do please try to be nice.

 Thanks,
 Isaac

 On Mon, Aug 31, 2009 at 1:27 PM, Davedfdumar...@gmail.com wrote:

  Why say something like 'post back here and we'll dig deeper' if you
  don't intend to follow the thread and make good on your promise?

  Dave

  On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
  Hey Dave,
  A couple things to try:

  -Blow away the mmclient subdirectory located under your war directory
  -Clear your FF3 cache

  Try that out and see if that helps. If not, post back here and we'll dig
  deeper.

  Rajeev

  On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:

   Hi all,

   I'm getting several problems after upgrading to 1.7.
   In hosted mode:
   - all the http status codes are 304 (Not Modified)
   - I only see a blank page
   - when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
   compiled, (I've tried refreshing first - same thing)
   - if I change the module name to something bogus in my host html file,
   and refresh, things seem to work.
   For example, when I change from div id=mmcclient/div to div
   id=x_mmcclient/div, I still get 304s, but I also get
    [ERROR] Unable to load module entry point ...
     com.google.gwt.core.client.JavaScriptException: (Error): Invalid
   argument.
       number: -2147024809
     description: Invalid argument.
    [ERROR] Failure to load module 'mmcclient'
   with the line number of my entry point class where I call
    RootPanel.get(mmcclient).add(containerLayout);

   But then the module is loaded and my app is fine. No blank page!

   - finally, one of my css resource directories (sc) must be copied into
   the public root, otherwise it will not be found.

   Some further info,
   the war directory structure looks like this (my module name is
   mmcclient),
   - war
    - conf
    - images
    - mmcclient
    - sc
    - WEB-INF
    - MMCClient.css
    - MMCClient.html

   The module is loaded from the host html as:
      script type=text/javascript language=javascript
   src=mmcclient/mmcclient.nocache.js/script
   Even when I get a blank page, I believe this file is being found.
   (Firebug shows its JS functions).

   I'm working with the Eclipse (3.4.2) GWT plugin, if that's important.

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



Re: Hosted mode hanging 4 out of 10times

2009-08-31 Thread Sumit Chandel
Hi gaillard,
Similar to how Ian is trying to troubleshoot Rahul's problem, you'll have to
cut bits out of your code until you can consistently get hosted mode started
up correctly.

Also, could you try running a simple Hello, World style application in
hosted mode to see if that works, preferably one using GWT RPC? If you
create a GWT application using the Google Plugin for Eclipse project wizard
or the webAppCreator utility, you should have a simple application that uses
GWT RPC to test out in hosted mode. If that sample also hangs x out of 10
times, let us know.

Cheers,
-Sumit Chandel

On Sat, Aug 29, 2009 at 8:29 AM, gaill...@audemat.com
gaill...@audemat.comwrote:


 Hi all,

 Even if this thread isn't so helpfull, I can said that I've the same
 problem as rahul.
 In hosted dev mode sometime I get Connecting to site 127.0.0.1,
 specialy on low end dev machine.
 The same project, on the same OS and exactly the same dev environment,
 works on Core2duo
 but failed sometime on Atom 330. I know Atom 330 is somewhat slow and
 not really adapted to code
 with windows+eclipse+GWT+jetty but very usefull to test
 applications on low end final env.
 I think some parts on GWT hosted mode doesn't wait enough for others
 parts to be ready.


 


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



Re: Does GWT work in Snow Leopard?

2009-08-31 Thread mdwarne

Hi,
After watching a bunch of Googles GWT videos, and seminar speeches, I
noticed some of the presenters are using Macbooks.
I have to believe they are well aware of this issue.
Mike.


On Aug 31, 4:04 am, Michael Shantzis mich...@shantzis.com wrote:
 The question I have is how high it is on google's list to release a
 version of GWT that runs on snow leopard without any modifications.
 I'm working in an environment where I'm testing jboss (which requires
 java 1.6) and have had to jump through hoops to get my server running
 1.6 and my GWT client running 1.5.

 I'm sure they're already aware of this and it's certainly the case
 that all the pieces are out there for them.

 I'm patiently waiting!!!

 On Aug 29, 9:21 pm, James james.hagg...@convolution.net wrote:



  Hi... I just wanted to add that along with the suggestions on:

 http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

  I had to rename the CurrentJDK symbolic link in

  /System/Library/Frameworks/JavaVM.framework/Versions/

  from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was
  looking at the CurrentJDK for its version not the env.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: File Manipulation / Processing in GWT

2009-08-31 Thread Rahul

I do file manipulations with gwt
i read an xml file with Requestbuilder and pass it as string to server
and write it to a file


On Aug 29, 8:29 pm, ThomasWrobel darkfl...@gmail.com wrote:
 Not sure how you mean.
 You can use GWT to read a file, then mess about with it as a string,
 then post the result to a PHP file that can write the file to your
 sever.

 On Aug 29, 8:31 am, alvinjayreyes jay_malu...@yahoo.com wrote:

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



Re: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-31 Thread Dave

Why say something like 'post back here and we'll dig deeper' if you
don't intend to follow the thread and make good on your promise?

Dave

On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
 Hey Dave,
 A couple things to try:

 -Blow away the mmclient subdirectory located under your war directory
 -Clear your FF3 cache

 Try that out and see if that helps. If not, post back here and we'll dig
 deeper.

 Rajeev

 On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:

  Hi all,

  I'm getting several problems after upgrading to 1.7.
  In hosted mode:
  - all the http status codes are 304 (Not Modified)
  - I only see a blank page
  - when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
  compiled, (I've tried refreshing first - same thing)
  - if I change the module name to something bogus in my host html file,
  and refresh, things seem to work.
  For example, when I change from div id=mmcclient/div to div
  id=x_mmcclient/div, I still get 304s, but I also get
   [ERROR] Unable to load module entry point ...
    com.google.gwt.core.client.JavaScriptException: (Error): Invalid
  argument.
      number: -2147024809
    description: Invalid argument.
   [ERROR] Failure to load module 'mmcclient'
  with the line number of my entry point class where I call
   RootPanel.get(mmcclient).add(containerLayout);

  But then the module is loaded and my app is fine. No blank page!

  - finally, one of my css resource directories (sc) must be copied into
  the public root, otherwise it will not be found.

  Some further info,
  the war directory structure looks like this (my module name is
  mmcclient),
  - war
   - conf
   - images
   - mmcclient
   - sc
   - WEB-INF
   - MMCClient.css
   - MMCClient.html

  The module is loaded from the host html as:
     script type=text/javascript language=javascript
  src=mmcclient/mmcclient.nocache.js/script
  Even when I get a blank page, I believe this file is being found.
  (Firebug shows its JS functions).

  I'm working with the Eclipse (3.4.2) GWT plugin, if that's important.

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



Re: Problem with GWT Project Configuration - Inherits Module Problem

2009-08-31 Thread Rahul

Hi,
Yes there is some configuration problem with your project but i am
unable to solve it

but this getting started guide
http://code.google.com/webtoolkit/tutorials/1.6/gettingstarted.html

tells how to configure your classpath correctly


On Aug 31, 6:21 am, Prosky metticelasempretu...@hotmail.it wrote:
 Good morning to all users of the forum; i am a new user and i have a
 small problem with a gwt project.
 The Project is constituted by one module that is called Portal, that
 contain the entry point class, and by another support module that is
 called Canvas, that not contain another entry point.
 The project is completely but i can't execute him because i don't
 configurate the classhopath in the correctly mode.
 Infact during the execution i have this problem:

 [ERROR] Unable to load module entry point class
 org.unicam.resourceome.web.portal.client.Portal (see associated
 exception for details)
 com.google.gwt.core.client.JavaScriptException: (TypeError): Property
 or method doesn't support by the object
  number: -2146827850
  description: Property or method doesn't support by the object
         at
 org.unicam.gwt.graphics.client.canvas.impl.GWTCanvasImplDefault.createElement
 (Native Method)
         at org.unicam.gwt.graphics.client.canvas.GWTCanvas.init
 (GWTCanvas.java:138)
         at org.unicam.gwt.graphics.client.GWTGraphicsView.init
 (GWTGraphicsView.java:42)
         at org.unicam.gwt.graphics.client.GWTGraphicsView.init
 (GWTGraphicsView.java:38)
         at org.unicam.resourceome.web.portal.client.Portal.onModuleLoad
 (Portal.java:198)

 I would want to be more precise in the description but i don't speek a
 good english. Since the project is concluded and the problem of
 configuration should easily be resolvable there is a person exists to
 which could kindly pass the project so that you worry him about to
 directly resolve me him?

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



Re: ext-GWT vs GWT-ext

2009-08-31 Thread Dave

GWTExt is not dead, they're still making maintenance releases, but the
lead developer (Sanjiv Jivan) has moved on to SmartGWT. ExtGWT --which
contains the JS underlying GWTExt - upto 2.0.2-- did a dirty move a
year or so ago when they changed their licensing model; as a result
there was a falling out between the two projects.

IMO, SmartGWT is the widget library of choice. It's based on a mature
Java enterprise client/server technology (SmartClient); seven years of
RIA experience; great support, and the project is lead by Sanjiv
Jivan. Here's a good discussion of its merits (article goes beyond
Groovy): 
http://www.cacoethes.co.uk/blog/groovyandgrails/introducing-smartgwt-to-grails

Regards,
Dave

On Aug 30, 4:54 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 30 août, 11:59, muhannad nasser muhannadna...@gmail.com wrote:

  i wanna choose one of these libraries to start my project... i am searching
  for a good comparison between those two or any other library that may do the
  job...

 GWT-Ext was a *wrapper* around the pure-JS Ext-JS lib, just like
 SmartGWT is a wrapper around SmartClient (AFAICT); this means that
 your page will load the whole set of widgets, classes, methods, etc.
 even those that won't ever be used.

 Ext-GWT (or GXT) on the other hand is a *port* of Ext-JS over to GWT,
 which means that only the code you actually use will end in the
 javascript loaded by the browser.

 That being said, I haven't ever used any of those libs, so I can't
 really tell which one to choose...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT DynaTable Problem

2009-08-31 Thread pdar

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



Re: Eclipse Plug-In Problem

2009-08-31 Thread Rajeev Dayal
Hi,

The log that you posted seems to show that you tried to install the 3.4
version of the plugin on Eclipse 3.5, which will not work. Then, it seems
that you tried to install the Eclipse 3.5 version of the plugin, but the
repository could not be reached.

Can you start with a clean workspace and a clean error log, and then attempt
to install the 3.5 plugin? If it fails to install, copy and paste the error
trace from your logs.


Thanks,
Rajeev

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



Catching Hyperlinks before they are executed.

2009-08-31 Thread Chris Bailey

I'm working on a social type site which I will make different versions
depending on the device (mobile, desktop, etc...) and I want all the
links to be just standard href hyperlinks. I know it's possible but
how would you in GWT check a hyperlink before it is executed??

My Goal is to check to see if the link is realitive then if it is I
can just run my own function that will not change the location of the
user's page but instead get the data the link is pointing to and parse
it. If it's not a realitive link I will assume the person is trying to
get off the page and either (based on user settings) change the whole
page to that link or open a new window of that link.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to override module stylesheet definitions

2009-08-31 Thread Fred Sauer
As a heads up, if you build gwt-dnd from trunk (which requires using GWT 2.0
features form trunk) the stylesheet in injected via StyleInjector which
avoids the extra HTTP round trip for gwt-dnd.css incurred by the stylesheet
src=.../ configuration you mention below.

Hope that helps.
Fred


On Mon, Aug 17, 2009 at 10:39 PM, Alex Epshteyn 
alexander.epsht...@gmail.com wrote:


 Surprisingly was unable to find any prior discussions about this...

 I'm optimizing my app's load time by merging all my stylesheets into a
 single CSS file (then minifying it with YUI compressor), to reduce the
 number of HTTP requests.  I'd like to also concatenate all the
 stylesheets from third party libraries I'm using into this single CSS
 file, but don't see a way to undefine the stylesheet module XML
 elements in these third party modules.

 For example, I'm using Fred Sauer's gwt-dnd library, whose module XML
 contains

 stylesheet src=gwt-dnd.css/

 This line instructs the browser to request gwt-dnd.css when this
 module is loaded, but I don't want this to happen.

 Any ideas?
 



-- 
Fred Sauer
Developer Advocate
Google Inc. 1600 Amphitheatre Parkway
Mountain View, CA 94043
fre...@google.com

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



Re: Integrate GWT + Servlet in Eclipse

2009-08-31 Thread Jamie

Perhaps you could give a bit more detail about your problems.
Eclipse is capable of debugging mulitple interacting projects at the
same time.

I suspect that you might be having trouble trying to run your GWT
project in 'hosted' mode, while trying to access the other project's
server.  If that is the case, you might try rewriting your GWT server
code to be a proxy for the other project.

But I am not sure what the problem is; I have both merged and split
GWT and web projects before, without much trouble, so long as you
understand where everything is supposed to go, how to configure the
deployment descriptors, and how to configure the GWT project(s).

---
Search for analog and digital television broadcast antennas in your
area:
http://www.antennamap.com/


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



Re: How to override module stylesheet definitions

2009-08-31 Thread Alex Epshteyn

Thanks Fred, I think the easiest solution is to wait for 2.0

On Mon, Aug 31, 2009 at 3:44 PM, Fred Sauerfre...@google.com wrote:
 As a heads up, if you build gwt-dnd from trunk (which requires using GWT 2.0
 features form trunk) the stylesheet in injected via StyleInjector which
 avoids the extra HTTP round trip for gwt-dnd.css incurred by the stylesheet
 src=.../ configuration you mention below.
 Hope that helps.
 Fred

 On Mon, Aug 17, 2009 at 10:39 PM, Alex Epshteyn
 alexander.epsht...@gmail.com wrote:

 Surprisingly was unable to find any prior discussions about this...

 I'm optimizing my app's load time by merging all my stylesheets into a
 single CSS file (then minifying it with YUI compressor), to reduce the
 number of HTTP requests.  I'd like to also concatenate all the
 stylesheets from third party libraries I'm using into this single CSS
 file, but don't see a way to undefine the stylesheet module XML
 elements in these third party modules.

 For example, I'm using Fred Sauer's gwt-dnd library, whose module XML
 contains

 stylesheet src=gwt-dnd.css/

 This line instructs the browser to request gwt-dnd.css when this
 module is loaded, but I don't want this to happen.

 Any ideas?




 --
 Fred Sauer
 Developer Advocate
 Google Inc.
 1600 Amphitheatre Parkway
 Mountain View, CA 94043
 fre...@google.com



 


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



Re: Repeating http requests

2009-08-31 Thread Jamie

You might have a bit of debugging in your future...

Is there anything different about the last request?  Check this with
eg., TamperData, FireBug console, or server logging.
Is it handled properly?
Perhaps you have some sort of referencing issue within the handler,
that is not allowing all the previous callbacks to be freed?

Jamie.
---
Search for analog and digital television broadcast antennas in your
area:
http://www.antennamap.com/


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



Re: User Interface Standards?

2009-08-31 Thread Jeff Chimene

On 08/28/2009 05:30 AM, Nathan Wells wrote:
 
 I'm not entirely sure I understand what you're asking for. Is it
 possible your higher ups don't know what they want?
 
 On Aug 27, 9:26 am, David C. Hicks dhi...@i-hicks.org wrote:
 I'm looking for documentation about what UI standards GWT may follow, if
 any.  My higher ups are interested in where we stand in this regard.  
 Can someone point me to a good source for information?  I've had no
 luck, so far.

 Thanks,
 Dave

How about Internationalization  Accessibility
(http://code.google.com/webtoolkit/doc/1.6/DevGuideI18nAndA11y.html)

But those supervising the project are probably more interested in how
does it look under Windows?

Have you identified any UI guidelines yet?

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



RE: Running Apache Hupa sample of GWT MVP

2009-08-31 Thread brian.xiang

Hi Norman/Ganesh,

How to run Hupa in hosted mode?  

Thanks,
Brian

-Original Message-
From: google-web-toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of Norman Maurer
Sent: Monday, August 31, 2009 2:19 PM
To: google-web-toolkit@googlegroups.com
Subject: Re: Running Apache Hupa sample of GWT MVP


Ok then you should see some errors in the console output. Can you paste them ?

Thx,
Norman

2009/8/31 smiletolead kumar.gane...@gmail.com:

 I have enabled IMAP settings in Gmail. And I am running the app in 
 Hosted mode. I have modified config.properties to run the app with 
 gmail.

 On Aug 31, 6:04 pm, Norman Maurer nor...@apache.org wrote:
 well it should work with gmail.. Did you check if you have enabled 
 imap support in 
 gmail:http://mail.google.com/support/bin/answer.py?answer=77695

 And how you run Hupa ? In tomcat/Jetty/Jboss/Hosted Mode ?

 Bye,
 Norman

 2009/8/31 smiletolead kumar.gane...@gmail.com:





  Hi Norman,
   Is it like I have to set up the mail server in my own machine?

  --Ganesh

  On Aug 30, 12:52 pm, Norman Maurer nor...@apache.org wrote:
  Hi,

  anything in the server logs ? I neved tested it with googlemail 
  yet, Im tested it against dovecot and courier-imap.

  Any feedback is welcome:)

  Bye,
  Norman

  2009/8/30 smiletolead kumar.gane...@gmail.com:

   Hi all,
    I am looking at the sample GWT project Apache HUPA which 
  implements MVPpattern. I am having trouble in running it, though 
  I was able to  set up in Eclipse. I am unable to login. I set 
  this mail client to  connect to gmail by setting IMAP details of 
  gmail. But it did not  connect. Has anyone connected it with 
  gmail or any other IMAP mail  server?

   Thanks
   Ganesh
 





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



Re: Catching Hyperlinks before they are executed.

2009-08-31 Thread Lothar Kimmeringer

Chris Bailey schrieb:
 I'm working on a social type site which I will make different versions
 depending on the device (mobile, desktop, etc...) and I want all the
 links to be just standard href hyperlinks. I know it's possible but
 how would you in GWT check a hyperlink before it is executed??

If you use the GWT-widget Hyperlink, you have to add a
ClickListener, where you can do all the checks you like.


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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



New Windows Update Causing Hosted Mode Failure - GWT 1.5

2009-08-31 Thread Joseph M

Has anyone experienced a strange Windows or IE security error when
trying to start their GWT hosted mode (I am still using GWT 1.5).
Instead of hosted mode starting normally I get a Windows Blue Shield
Security Question whether to Open or Save the html.  Save tries to
open the same URL in Firefox which fails because the Hosted Mode
Server is now not starting properly.  Save option is equally
unhelpful.  Has anyone else experienced this?  I am running Win 2003
Server Datacenter edition.  Any advice?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Running Apache Hupa sample of GWT MVP

2009-08-31 Thread Manuel Carrasco Moñino
Last time I played with hupa i didn't support ssl, however gmail needs ssl
for imap and tls for smtp.
So I think it is not possible to use it with gmail.

Manolo Carrasco


On Mon, Aug 31, 2009 at 3:04 PM, Norman Maurer nor...@apache.org wrote:


 well it should work with gmail.. Did you check if you have enabled
 imap support in gmail:
 http://mail.google.com/support/bin/answer.py?answer=77695


 And how you run Hupa ? In tomcat/Jetty/Jboss/Hosted Mode ?


 Bye,
 Norman

 2009/8/31 smiletolead kumar.gane...@gmail.com:
 
  Hi Norman,
   Is it like I have to set up the mail server in my own machine?
 
  --Ganesh
 
  On Aug 30, 12:52 pm, Norman Maurer nor...@apache.org wrote:
  Hi,
 
  anything in the server logs ? I neved tested it with googlemail yet,
  Im tested it against dovecot and courier-imap.
 
  Any feedback is welcome:)
 
  Bye,
  Norman
 
  2009/8/30 smiletolead kumar.gane...@gmail.com:
 
 
 
   Hi all,
I am looking at the sample GWT project Apache HUPA which implements
  MVPpattern. I am having trouble in running it, though I was able to
   set up in Eclipse. I am unable to login. I set this mail client to
   connect to gmail by setting IMAP details of gmail. But it did not
   connect. Has anyone connected it with gmail or any other IMAP mail
   server?
 
   Thanks
   Ganesh
  
 

 


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



Re: Problem deploying with Firefox/Chrome

2009-08-31 Thread Jeff Chimene

On 08/31/2009 07:43 AM, Rahul wrote:
 
 Hi
 I just checked and i am not getting an null response
 xmlDoc1 is not empty with FireFox also

What happens after the removeWhitespace() call?

Also, try pruning the MDL file to a bare minimum. See if that works on
all browsers. Then start adding back HTML elements. I'm not convinced
that there isn't an error about which either FF or Chrome is stricter
than IE.

The other thing you can try is to take the result of the
removeWhitespace() call (via capturing the output from a call to
GWT.log), add any missing elements (like Head), put it into a separate
HTML file and load it via the load file. See if all three browsers
correctly load the file.

 
 
 
 On Aug 28, 3:53 pm, Jeff Chimene jchim...@gmail.com wrote:
 On 08/28/2009 07:03 AM, Rahul wrote:





 Hi
 This is a sample code how i am using to create my UI from parsing XML
 files

protected void fucn(final VerticalPanel verticalPanel, String
 substring,final PickupDragController drag) {
// TODO Auto-generated method stub
RequestBuilder builder1 = new RequestBuilder
 (RequestBuilder.GET,substring+.mdl);
try
{
Request request1 = builder1.sendRequest(null, new 
 RequestCallback()
{

public void onError(Request request1, Throwable 
 exception) {
}

@Override
public void onResponseReceived(Request request1,
Response response1)
{
Document xmlDoc1 = 
 XMLParser.parse(response1.getText());

 You wrote earlier that ... I am believing that it gets an null response

 is xmlDoc1 indeed empty?

 My guess is that there is a subtle syntax error in the MDL file; which
 problem IE ignores. FF on the other hand doesn't let it slide.

XMLParser.removeWhitespace(xmlDoc1);

 Does xmlDoc1 lose its contents after this call?
  


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



JUnit configuration for Google Plugin

2009-08-31 Thread Gary S

The Plugin's unit testing doc only shows a run configuration
http://code.google.com/eclipse/docs/gwt_junit.html

It links to a page showing junitCreator
http://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html

I'm missing the part showing to make it work where the test classes
are under /test instead of /source.
It isn't clear if it's better to have a separate project for tests or
a test module within the project.
If it's a test module within the project what should the setup look
like
should source paths be /src and /test ?
where should junit.jar go ?
what should the *Test.gwt.xml file look like ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: blank page and other weirdness after upgrade, 1.5 to 1.7

2009-08-31 Thread Rajeev Dayal
Hi Dave,

As with Isaac and Ian, I did not receive your response either.

I'm glad that you figured the problem out. Isaac is correct in his
assessment; I've confirmed that it is indeed a problem to give an element in
your HTML page an id which matches the name of your module. I've opened the
following bug:

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


Rajeev

On Mon, Aug 31, 2009 at 2:26 PM, Isaac Truett itru...@gmail.com wrote:


 No worries.

 I looked up your message directly in Groups, and I see that you
 identified your problem as being a div with an ID that's the same as
 your module name. I don't believe this is a documented gotcha, but I
 do recall seeing another instance of it on the forum recently. What I
 don't recall seeing is an explanation of why this should be a problem.
 My guess is that something in the bootstrapping wants to use the
 module name as an ID and having another element in the HTML with that
 ID causes the conflict. But again, that's only a guess.


 On Mon, Aug 31, 2009 at 2:03 PM, Davedfdumar...@gmail.com wrote:
 
  Yeah, it's good to be reminded never to make assumptions - thanks,
  Isaac.
 
 
  Dave
 
  On Aug 31, 10:40 am, Isaac Truett itru...@gmail.com wrote:
  Dave,
 
  I can't speak for Rajeev, but your reply to him never reached my
  inbox. I understand your frustration. Do please try to be nice.
 
  Thanks,
  Isaac
 
  On Mon, Aug 31, 2009 at 1:27 PM, Davedfdumar...@gmail.com wrote:
 
   Why say something like 'post back here and we'll dig deeper' if you
   don't intend to follow the thread and make good on your promise?
 
   Dave
 
   On Aug 25, 9:20 am, Rajeev Dayal rda...@google.com wrote:
   Hey Dave,
   A couple things to try:
 
   -Blow away the mmclient subdirectory located under your war directory
   -Clear your FF3 cache
 
   Try that out and see if that helps. If not, post back here and we'll
 dig
   deeper.
 
   Rajeev
 
   On Mon, Aug 24, 2009 at 2:36 PM, Dave dfdumar...@gmail.com wrote:
 
Hi all,
 
I'm getting several problems after upgrading to 1.7.
In hosted mode:
- all the http status codes are 304 (Not Modified)
- I only see a blank page
- when I Compile/Browse, FF3 tells me GWT Module needs to be (re)
compiled, (I've tried refreshing first - same thing)
- if I change the module name to something bogus in my host html
 file,
and refresh, things seem to work.
For example, when I change from div id=mmcclient/div to div
id=x_mmcclient/div, I still get 304s, but I also get
 [ERROR] Unable to load module entry point ...
  com.google.gwt.core.client.JavaScriptException: (Error): Invalid
argument.
number: -2147024809
  description: Invalid argument.
 [ERROR] Failure to load module 'mmcclient'
with the line number of my entry point class where I call
 RootPanel.get(mmcclient).add(containerLayout);
 
But then the module is loaded and my app is fine. No blank page!
 
- finally, one of my css resource directories (sc) must be copied
 into
the public root, otherwise it will not be found.
 
Some further info,
the war directory structure looks like this (my module name is
mmcclient),
- war
 - conf
 - images
 - mmcclient
 - sc
 - WEB-INF
 - MMCClient.css
 - MMCClient.html
 
The module is loaded from the host html as:
   script type=text/javascript language=javascript
src=mmcclient/mmcclient.nocache.js/script
Even when I get a blank page, I believe this file is being found.
(Firebug shows its JS functions).
 
I'm working with the Eclipse (3.4.2) GWT plugin, if that's
 important.
 
Thanks for any advice!
-Dave
  
 

 


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



Catching Hyperlinks before they are executed

2009-08-31 Thread Chris Bailey

I'm working on a social type site which I will make different versions
depending on the device (mobile, desktop, etc...) and I want all the
links to be just standard href hyperlinks. I know it's possible but
how would you in GWT check a hyperlink before it is executed??

My Goal is to check to see if the link is realitive then if it is I
can just run my own function that will not change the location of the
user's page but instead get the data the link is pointing to and parse
it. If it's not a realitive link I will assume the person is trying to
get off the page and either (based on user settings) change the whole
page to that link or open a new window of that link.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Hosted mode hanging 4 out of 10times

2009-08-31 Thread Sumit Chandel
Hi Frank,
I understand and appreciate your concerns, but in this case, I feel that
both Ian and Isaac are doing a great job at helping developers new and old
with potentially GWT specific problems.

You'll notice over time that threads that don't have much to do with GWT, or
have to do with GWT-related libraries but should be posted on those
respective forums, often don't get a reply. If they do get a reply, it's
usually a notice saying that the person posting should try another more
appropriate forum for help. Also, queries around topics that have already
been discussed in great detail on other threads are also usually answered by
telling the developer to search the forum or the web for a solution.

That said, it is indeed important to keep a friendly and helpful tone in
this forum. This creates an environment where members can feel free to post
and contribute to technical discussions around the GWT platform, or seek
help and bring up issues as appropriate. As Isaac suggested, I recommend
taking a read through the GWT Discussion Group Charter to get a better idea
of the community we're trying to build.

GWT Discussion Group Charter:
http://groups.google.com/group/google-web-toolkit/web/gwt-discussion-group-charter

Cheers,
-Sumit Chandel

On Fri, Aug 28, 2009 at 11:33 AM, Frank Argueta frank.argu...@gmail.comwrote:


 If you look at the posts by Rahul, who only started posting since
 July, you'll find that a lot of them are off topic. For example :

 - how do I connect to convert is JDBC ResultSet into ArrayList
 - how do I execute DOS commands
 - how do I convert XML to PDF
 - how do I format XML on the server
 - why xml manipulations fails on server
 - hosted mode hangs because I did something screwy on my server and
 here's my sample code :
 method opens a new connection on each invocation without closing
 it

 I realize you are a helpful bunch of smart guys, but imagine if every
 Java beginner starts posting such questions on the GWT forum. The
 traffic on the GWT forum is high enough that additional noise like
 this really doesn't help.

 Having been in the business a while, I recognize a certain type of
 developer that post questions without making the slightest of effort
 in trying to read up / search for a solution on their own. Taking the
 liberty to fire an email to the GWT group at the first signs of
 encountering a problem is definitely not helpful to any party
 involved. Moreover responding to such questions will only encourage
 him to post more server related questions without putting in a
 concerted effort to resolve it himself.

 Frank Argue-ta.

 On Aug 28, 2:03 pm, Ian Bambury ianbamb...@gmail.com wrote:
  2009/8/28 Isaac Truett itru...@gmail.com
 
 
 
   Ian,
 
   Yes, the name did not escape my notice. But I do find reference to it
   as a surname, probably of Spanish origin. Why not give him the benefit
   of the doubt?
 
  Because he's only posted 4 times and his previous comment to Rahul was
 
  Perhaps you should learn Java and also learn how to solve your
  problems instead, especially if its urgent to you - which does not
  make your issue urgent to anyone else. Please stop posting questions
  not related to GWT on this forum.
 
  The one after that was
 
  I would request that this group require message subjects and sender
  names to be in English. The foreign characters in sender name /
  subjects are quite distracting.
  He doesn't seem to be entering into the spirit IMO, and if he can't take
 it,
  he shouldn't dish it out.
 
  Ian
 
  http://examples.roughian.com
 


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



Re: Does GWT work in Snow Leopard?

2009-08-31 Thread Sumit Chandel
Hi all,
Hosted mode will be getting an exciting makeover soon, in the form of
Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a plugin
to your favourite browser so that you can debug with the browser most
familiar to you using whichever other debugging tools it offers while at the
same time debugging your GWT code in hosted mode as you do now.

OOPHM is currently available in GWT trunk for those who want to give it a
try (instructions linked below).

That said, OOPHM solves the problem of requiring 32-bit libraries that
exists in other Mac builds where switching out to Java 1.5 was necessary.
That means that OOPHM will also work perfectly well for Snow Leopard, or any
other platform using any Java libraries, 32-bit or not.

Hopefully the workaround Dean linked to above will get you up and running
until OOPHM comes out in the next major release. If that workaround doesn't
work, please feel free to reply back and let us know.

Using OOPHM from trunk:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

Hope that helps,
-Sumit Chandel

On Mon, Aug 31, 2009 at 11:35 AM, mdwarne mike.wa...@gmail.com wrote:


 Hi,
 After watching a bunch of Googles GWT videos, and seminar speeches, I
 noticed some of the presenters are using Macbooks.
 I have to believe they are well aware of this issue.
 Mike.


 On Aug 31, 4:04 am, Michael Shantzis mich...@shantzis.com wrote:
  The question I have is how high it is on google's list to release a
  version of GWT that runs on snow leopard without any modifications.
  I'm working in an environment where I'm testing jboss (which requires
  java 1.6) and have had to jump through hoops to get my server running
  1.6 and my GWT client running 1.5.
 
  I'm sure they're already aware of this and it's certainly the case
  that all the pieces are out there for them.
 
  I'm patiently waiting!!!
 
  On Aug 29, 9:21 pm, James james.hagg...@convolution.net wrote:
 
 
 
   Hi... I just wanted to add that along with the suggestions on:
 
  http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard
 
   I had to rename the CurrentJDK symbolic link in
 
   /System/Library/Frameworks/JavaVM.framework/Versions/
 
   from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was
   looking at the CurrentJDK for its version not the env.
 


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



Re: Does GWT work in Snow Leopard?

2009-08-31 Thread Jim Douglas

Hi Sumit,

That workaround is really not acceptable.  Because Apple considers
the JVM to be part of the operating system, messing in those
directories amounts to hacking the O/S.  It's unsafe, unsupported, and
can -- and probably will -- arbitrarily drop dead at any time with an
O/S update.

I could easily be missing something important, but it seems like this
should be a fairly easy thing for you to patch.  My understanding is
that the issue with GWT is that you need a 32-bit JVM, and in Mac OS X
Leopard, the only way to get a 32-bit JVM is to use Java 5; the
Leopard Java 6 is 64-bit-only.  But in Snow Leopard, you can invoke
Java 6 with java -d32 ..., and you will get a 32-bit JVM.  Wouldn't
this work for GWT hosted mode?

Regards,
Jim.

On Aug 31, 3:58 pm, Sumit Chandel sumitchan...@google.com wrote:
 Hi all,
 Hosted mode will be getting an exciting makeover soon, in the form of
 Out-Of-Process Hosted Mode (OOPHM). With OOPHM, hosted mode runs as a plugin
 to your favourite browser so that you can debug with the browser most
 familiar to you using whichever other debugging tools it offers while at the
 same time debugging your GWT code in hosted mode as you do now.

 OOPHM is currently available in GWT trunk for those who want to give it a
 try (instructions linked below).

 That said, OOPHM solves the problem of requiring 32-bit libraries that
 exists in other Mac builds where switching out to Java 1.5 was necessary.
 That means that OOPHM will also work perfectly well for Snow Leopard, or any
 other platform using any Java libraries, 32-bit or not.

 Hopefully the workaround Dean linked to above will get you up and running
 until OOPHM comes out in the next major release. If that workaround doesn't
 work, please feel free to reply back and let us know.

 Using OOPHM from 
 trunk:http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

 Hope that helps,
 -Sumit Chandel



 On Mon, Aug 31, 2009 at 11:35 AM, mdwarne mike.wa...@gmail.com wrote:

  Hi,
  After watching a bunch of Googles GWT videos, and seminar speeches, I
  noticed some of the presenters are using Macbooks.
  I have to believe they are well aware of this issue.
  Mike.

  On Aug 31, 4:04 am, Michael Shantzis mich...@shantzis.com wrote:
   The question I have is how high it is on google's list to release a
   version of GWT that runs on snow leopard without any modifications.
   I'm working in an environment where I'm testing jboss (which requires
   java 1.6) and have had to jump through hoops to get my server running
   1.6 and my GWT client running 1.5.

   I'm sure they're already aware of this and it's certainly the case
   that all the pieces are out there for them.

   I'm patiently waiting!!!

   On Aug 29, 9:21 pm, James james.hagg...@convolution.net wrote:

Hi... I just wanted to add that along with the suggestions on:

   http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard

I had to rename the CurrentJDK symbolic link in

/System/Library/Frameworks/JavaVM.framework/Versions/

from 1.6.0 to the (newly added) 1.5.0 because it appears that ant was
looking at the CurrentJDK for its version not the env.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



How to tell when a sub menu is shown/removed?

2009-08-31 Thread Michael Sullivan

I'm trying to use GWT-DND to drag new menu items onto a menu.  For the
most part, it works, but it's failing for submenus because it only
works with 'attached' widgets, and a closed submenu is not attached.
I need to be able to know right after(or right before) a submenu is
displayed, and right before(or after) it is hidden.  Are there events
for this? All of the methods that I could override to duplicate this
behavior are private or package private.

Also, is there a good source for learning how events work in GWT in
general?
Thanks,
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT plugin: Problem when project name is changed

2009-08-31 Thread hezjing
Issue 4005http://code.google.com/p/google-web-toolkit/issues/detail?id=4005
is
created :-)

2009/8/31 Miguel Méndez mmen...@google.com

 On Sun, Aug 30, 2009 at 2:05 PM, hezjing hezj...@gmail.com wrote:

 Hi
 I have a GWT project named X created by Google plugin.

 Then later I want to change the name to Y, so I right clicked Project X -
 Refactor - Rename ... - New name: Y

 When run, it will complaint the working directory does not exist: /X/war
 It seems that launch configuration is still referring to the old name.

 Would it be possible for the plugin to rename the launch configuration,
 hosted page and etc?


 The rename should update references to the project's name in the launch
 configuration.  I'm not sure that it should change the name of the launch
 configuration and hosted page however.  Could you add a feature request
 here http://code.google.com/p/google-web-toolkit/issues/list for this?



 --

 Hez





 --
 Miguel

 



-- 

Hez

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



GWTTestCase not running?

2009-08-31 Thread charlie
Hi all, I have a unit test shown here http://pastebin.com/m4e4596b1 .

When using eclipse and Run as GWT Unit Test ( hosted mode ), the only output
I get is

Starting HTTP on port 0
   HTTP listening on port 58504
Compiling module com.charlie.MP3Player.JUnit
   Compiling 1 permutations
  Permutation compile succeeded
   Linking into www-test
  Link succeeded
   Compilation succeeded -- 10.163s

I have a very obvious assertFalse(true); for every condition but it looks
like it's never getting run ?  Debugging it shows that my method never gets
called either.

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



Re: date incompatibility between GWT java.util.Date class and the javascript Date

2009-08-31 Thread costa

It turns out that the problems that I am having stem from the way the
daylight savings time dates are calculated in the browser vs. java.

Here is a link with the US  Canada DST periods:
http://www.timeanddate.com/news/time/us-daylight-saving-extended.html

For instance in 2005 the daylight savings time in Vancouver BC started
on Apr 3rd. In 2010 the DST will start on Mar 14th.


Any java.util.Date object created in the browser (compiled code: java -
 javascript) that is between 14th of Mar 2005 and Apr 3rd 2005 will
have the time portion on the java side 23:00:00 because the browser
applies the next DST period to these dates. In the host mode the dates
work as expected because probably java uses time zone tables but as
soon as the code gets compiled to javascript things are not the same
in IE7.

I created a test remote service with the following method:

  public void displayDate(Date date)
  {
log.error(My date is  + date);
  }

the Date object is a java.util.Date.

I created this client function:

  private void displayDate(final Date date)
  {
AsyncCallbackAdapterVoid o = new AsyncCallbackAdapterVoid()
{
  @Override
  public void executeImpl()
  {
TestService.App.getInstance().displayDate(date, this);
  }

};

o.execute();
  }

Now the following code:
displayDate(new Date(105, 2, 13));
displayDate(new Date(105, 2, 14));
displayDate(new Date(105, 3, 3));
displayDate(new Date(105, 3, 4));

produces (on the server) in hosted mode:

 My date is Sun Mar 13 00:00:00 PST 2005
 My date is Mon Mar 14 00:00:00 PST 2005
 My date is Sat Apr 02 00:00:00 PST 2005
 My date is Sun Apr 03 00:00:00 PST 2005

and in web mode it produces:

My date is Sun Mar 13 00:00:00 PST 2005
My date is Sun Mar 13 23:00:00 PST 2005
My date is Sat Apr 02 23:00:00 PST 2005
My date is Mon Apr 04 00:00:00 PDT 2005

Note the time portion.




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



Re: date incompatibility between GWT java.util.Date class and the javascript Date

2009-08-31 Thread costa

I am using GWT 1.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-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



DEPCRECATED Error Messages

2009-08-31 Thread GumbyGWTBeginner

Hi again.

I am getting error messages with the word deprecated' in it.

i.e.
The Constructor Button(String, ClickListener) is deprecated.
The type ClickListener is deprecated.

The code still runs but I would like to understand what this means.

I am ony new to this (JAVA and GWT) from a VB Background.  I am
assuming there is a simple answer.

Could anyone shed some light on this topic, please?

Thanks in advance.

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



Re: DEPCRECATED Error Messages

2009-08-31 Thread Jim Douglas

Hi Stephan,

Deprecated means this feature has been replaced, and should not be
used.

http://en.wikipedia.org/wiki/Deprecation

The API documentation tells you what to use instead:

http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/Button.html#Button(java.lang.String,%20com.google.gwt.user.client.ui.ClickListener)

It's really important that you avoid using any deprecated features in
your GWT 1.7 code; they will almost certainly stop working completely
when you upgrade to GWT 2.0:

http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/33ef903fe5097437/4dcecc5b578b17ee?show_docid=4dcecc5b578b17ee#

On Aug 31, 9:04 pm, GumbyGWTBeginner stephan.gump...@gmail.com
wrote:
 Hi again.

 I am getting error messages with the word deprecated' in it.

 i.e.
 The Constructor Button(String, ClickListener) is deprecated.
 The type ClickListener is deprecated.

 The code still runs but I would like to understand what this means.

 I am ony new to this (JAVA and GWT) from a VB Background.  I am
 assuming there is a simple answer.

 Could anyone shed some light on this topic, please?

 Thanks in advance.

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



[gwt-contrib] [google-web-toolkit] r6041 committed - Add prebuilt libraries for Mac.

2009-08-31 Thread codesite-noreply

Revision: 6041
Author: j...@google.com
Date: Mon Aug 31 02:52:30 2009
Log: Add prebuilt libraries for Mac.

http://code.google.com/p/google-web-toolkit/source/detail?r=6041

Added:
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Darwin_ppc-gcc3
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Darwin_ppc-gcc3/components
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Darwin_ppc-gcc3/components/libgwt_dmp_ff2.dylib
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Darwin_x86-gcc3/components/libgwt_dmp_ff2.dylib
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_ppc-gcc3
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_ppc-gcc3/components
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_ppc-gcc3/components/libgwt_dmp_ff3.dylib
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_x86-gcc3/components/libgwt_dmp_ff3.dylib
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_ppc-gcc3
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_ppc-gcc3/components
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_ppc-gcc3/components/libgwt_dmp_ff35.dylib
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_x86-gcc3
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_x86-gcc3/components
   
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_x86-gcc3/components/libgwt_dmp_ff35.dylib

===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Darwin_ppc-gcc3/components/libgwt_dmp_ff2.dylib
   
Mon Aug 31 02:52:30 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff2/platform/Darwin_x86-gcc3/components/libgwt_dmp_ff2.dylib
   
Mon Aug 31 02:52:30 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_ppc-gcc3/components/libgwt_dmp_ff3.dylib
   
Mon Aug 31 02:52:30 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff3/platform/Darwin_x86-gcc3/components/libgwt_dmp_ff3.dylib
   
Mon Aug 31 02:52:30 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_ppc-gcc3/components/libgwt_dmp_ff35.dylib
 
Mon Aug 31 02:52:30 2009
File is too large to display a diff.
===
--- /dev/null   
+++  
/changes/jat/plugins/plugins/xpcom/prebuilt/extension-ff35/platform/Darwin_x86-gcc3/components/libgwt_dmp_ff35.dylib
 
Mon Aug 31 02:52:30 2009
File is too large to display a diff.

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Focus/blur on a group of widgets?

2009-08-31 Thread Ed

Hi,

I need to support a single focus/blur of a group of widgets.
Please some advise on this?

Examples:
1) Date (Birtyday) field that consists of 3 small text boxes, that can
be filled in by the user.
2) Date picker field: two date pickers to select a period.

It's important that 1) and 2) form one widget with a single focus/blur
event.  This is needed for further actions that depend on these
events.
For example: Form validation that occurs when a blur occurs. You don't
want to do a blur validation when the user is still filling in the
form and selects the other date field in 1) or the end date of the
date picker in 2). The blur will do validation and shows the
validation result. However, if the user is still busy filling in the
widget, you don't want to show some alert box.

Implementation: I solved this with a WidgetGroupFocus object that
contains widgets and will control the focus/blur events. On a blur it
will hold the blur event and  run a DeferredCommand to see if a focus
event occured on one of the containing widgets in the meantime. If
yes, the blur event is ignored, other wise the blur is distributed to
the subscribers.

This has two major disadvantages:
1) The global blur event will always be informed after the focus
event. As described above the blur event will be hold, to determine if
a focus event occurred on a widget that is outside the widget group.
In case this happens, the blur will be distributed after the focus
event (normally it's the other way around). However, I can live with
this...

2) The hold event can't be re-used. The hold blur event can't be
distributed as the same event after it has been hold as it might give
problems when the event is further processed, as GWT is already
processing other events. So GWT will throw exceptions like the ones
below when doing so (like expected).
In the past with the older event model this wasn't such an issue as
the listener didn't receive an event directly.

com.google.gwt.core.client.JavaScriptException: (Error): Member not
found.
 number: -2147352573
 description: Member not found.
at com.google.gwt.dom.client.DOMImpl.eventGetType(Native Method)
---

Bottom line: the solution isn't so elegant so I am looking for a
better way of solving this. This might not be so difficult if it's
possible to be able to look on the event queue when receiving a blur
event. If the queue contains the upcoming focus event that caused the
blur event, the blur could be ignored (in my case)
But I have no idea how to do this, or if this is possible.
I played with the NativePreviewEvent to see if I could detect the
upcoming focus event that follows the blur event, but that has no
luck...

Any idea's?


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Testing new GWT RPC implementation (aka deRPC)

2009-08-31 Thread futzi

Hi Bob,

anything new on the deRPC?

Regards, Mark

On 29 Jul., 09:46, futzi mgoer...@googlemail.com wrote:
 Hi,

 on client-side the code was as follows. So there is no time wasted.
 The generation of 100.000 objects on server side took 100ms.
 The time should therefore only be wasted between server and client.

 time = new Date().getTime();
 final AsyncCallbackListSerializable callback = new
 AsyncCallbackListSerializable() {
                 public void onFailure(Throwable caught) {
                         Window.alert(caught.toString());
                 }
                 public void onSuccess(ListSerializable result) {
                         // take the result coming from the server
                         boolean ok = result != null;
                         if (ok) {
                                 RootPanel.get().add(new Html(X 
 +result.size()));
                         } else {
                                 Registry.unregister(Util.USERTOKEN);
                         }
                 }};

 reportingService.test(nr, callback);

 Regards,
 Mark
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Focus/blur on a group of widgets?

2009-08-31 Thread Ray Ryan

Don't fake it, replace it: have your composite widget implement
HasValueDate (or whatever).

You really are best off avoiding having dom events as part of your
public api. You'll note a trend in Gwt's widget set toward restricting
dom events to implementation details, and the widgets themselves
throwing custom semantic events. It's not yet universal, but keep an
eye out.

rjrjr

On Monday, August 31, 2009, Ed post2edb...@hotmail.com wrote:

 Hi,

 I need to support a single focus/blur of a group of widgets.
 Please some advise on this?

 Examples:
 1) Date (Birtyday) field that consists of 3 small text boxes, that can
 be filled in by the user.
 2) Date picker field: two date pickers to select a period.

 It's important that 1) and 2) form one widget with a single focus/blur
 event.  This is needed for further actions that depend on these
 events.
 For example: Form validation that occurs when a blur occurs. You don't
 want to do a blur validation when the user is still filling in the
 form and selects the other date field in 1) or the end date of the
 date picker in 2). The blur will do validation and shows the
 validation result. However, if the user is still busy filling in the
 widget, you don't want to show some alert box.

 Implementation: I solved this with a WidgetGroupFocus object that
 contains widgets and will control the focus/blur events. On a blur it
 will hold the blur event and  run a DeferredCommand to see if a focus
 event occured on one of the containing widgets in the meantime. If
 yes, the blur event is ignored, other wise the blur is distributed to
 the subscribers.

 This has two major disadvantages:
 1) The global blur event will always be informed after the focus
 event. As described above the blur event will be hold, to determine if
 a focus event occurred on a widget that is outside the widget group.
 In case this happens, the blur will be distributed after the focus
 event (normally it's the other way around). However, I can live with
 this...

 2) The hold event can't be re-used. The hold blur event can't be
 distributed as the same event after it has been hold as it might give
 problems when the event is further processed, as GWT is already
 processing other events. So GWT will throw exceptions like the ones
 below when doing so (like expected).
 In the past with the older event model this wasn't such an issue as
 the listener didn't receive an event directly.
 
 com.google.gwt.core.client.JavaScriptException: (Error): Member not
 found.
  number: -2147352573
  description: Member not found.
 at com.google.gwt.dom.client.DOMImpl.eventGetType(Native Method)
 ---

 Bottom line: the solution isn't so elegant so I am looking for a
 better way of solving this. This might not be so difficult if it's
 possible to be able to look on the event queue when receiving a blur
 event. If the queue contains the upcoming focus event that caused the
 blur event, the blur could be ignored (in my case)
 But I have no idea how to do this, or if this is possible.
 I played with the NativePreviewEvent to see if I could detect the
 upcoming focus event that follows the blur event, but that has no
 luck...

 Any idea's?


 


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



  1   2   >