Battery Percentage

2011-07-24 Thread sanjay kanwar
Hi There,

I have an battery image where i hav to show green line inside tht battery
when the battery power is more than 40% and red if its less than 40%. Thx in
Advance


Regards
Sam

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



Re: Multiple leftover fragments with a tree of code split points?

2011-07-24 Thread Ed Bras
Thanks  John,
I hope more people will share the same problems and vote for the issue.
I just opened an issue about this:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6612
Please vote it. When enough people vote this issue, the GWT dev team will
give it attention.

Ed

On Sun, Jul 24, 2011 at 6:46 AM, John Patterson wrote:

> I'm having the same problem - the left overs fragment is growing and
> control should be more fine grained.  This is particularly important with
> multi page apps (c.f. app in one page) where each page must load the initial
> fragment, its exclusive fragment and the leftovers fragment.
>
> I found this work that seems related:
>
> http://code.google.com/p/gwt-splitter/
>
> but there is no activity on that project.
>
> @Google: any work happening on smarter leftover fragment splitting?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/Pi6rPRBEl84J.
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



swfupload-gwt not visible

2011-07-24 Thread Ann Smith
Hi
Has anybody succeeded in using this in a DialogBox?
I've been trying to get it work for couple of days and I'm about to give up.
I copied code from the project's getting started page, I build my swfupload
object in onLoad/show and I can see it attached to the page but for some
reason the upload button isn't visible.
I appreciate any tips.

ta

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 eclipse plugin archive ?

2011-07-24 Thread swapnil marghade
It's not about plugin its about Sdk download 2.2 Sdk and configure it. Go to
properties ._ google. Choose Google web toolkit click on configure and give
path of new sdk u will see new sdk 2.2 make it default ..
 On Jul 22, 2011 9:21 PM, "patrick foure"  wrote:
> I would like to know if it's possible to download an old release of
> gwt eclipse plugin ( version 2.2 ) ?
> I can't ugrade to 2.3 actually .
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



position of selected row in a celltable

2011-07-24 Thread Deepak Singh
Hi,

I have a celltable.
I want to access  the position/margin of the selected row of the table at
runtime.
How can i acheive this?

Thanks

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



Fwd: Battery Percentage

2011-07-24 Thread sanjay kanwar
Hi There,

I have an battery image where i hav to show green line inside tht battery
when the battery power is more than 40% and red if its less than 40%. Thx in
Advance


Regards
Sam



-- 
Regards

Sanjay Kanwar
Phone 0411367420

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Error in ant build

2011-07-24 Thread Tomasz Gawel
Petr,
.. but it seems you probably have a typo ;)
  (or your packeage
has name clien not client ;))

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Not Finishing Compile

2011-07-24 Thread Sean
I just added a bunch of code to my project which was compiling fine, and now 
when I compile it seems to stop at:
Computing all possible rebind results for 'com.sean.client.CelticLock2_0'

Which is my EntryPoint class. 

Any ideas what could cause this or how I can figure out exactly why it's not 
working? I let it compile for 30mins and it's still sitting at that one 
spot.

For context sake, this is what leads up to that statement in the compile:

Replacing GWT.runAsync with island loader calls
   Looking up initial load sequence for split points
   Initial load sequence of split points: (none)
   Computing all possible rebind results for 'com.sean.client.CelticLock2_0'

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/aB8lR5wKjjAJ.
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 Designer isDesignTime Not Working?

2011-07-24 Thread davekor
Hi guys,

I have a custom widget which throws a NullPointerException when I
attempt to add it to a layout panel with GWT Designer. After some
digging, I realized its because my custom widget has some code that
tries to contact my server and this code should not be executed when
instantiated by GWT Designer. So I wrapped the code within an
isDesignTime check as described at this webpage:

http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/enhanced_compilation.html

However, the code in question still gets executed when I add the
custom widget to a layout panel in the designer. What am I doing
wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Frustrated with GWT

2011-07-24 Thread edprog
Hello,

  I like the look and feel of GWT but I can find out why i am getting
a

Error when invoking the pageable data service :404 


Error 404 NOT_FOUND

HTTP ERROR 404
Problem accessing /timesheettracking/timesheetlogin. Reason:
NOT_FOUNDPowered by Jetty://


I have spent 2 days already trying to figure it out and about to give
up. Here is my code


WEB.XML


http://java.sun.com/dtd/web-app_2_3.dtd";>

  
  
timesheetLoginServlet
com.timesheet.tmproject.server.TimeSheetLoginServiceImpl
  
  
timesheetLoginServlet
/TimeSheetTracking/timesheetlogin
  
  
  
TimeSheetTracking.html
  



//TIMESHEET LOGIN SERVICE

package com.timesheet.tmproject.client;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

public interface TimeSheetLoginService extends RemoteService {

  public boolean isAuthenticated(String empID, String password );
}

//TIMESHEET LOGIN SERVICE ASYNC

package com.timesheet.tmproject.client;

import com.google.gwt.user.client.rpc.AsyncCallback;

public interface TimeSheetLoginServiceAsync {
public void isAuthenticated(String empID, String
password ,AsyncCallback callback);
}





//TIMESHEETTRACK.JAVA





package com.timesheet.tmproject.client;

import java.util.ArrayList;
import java.util.Iterator;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.PasswordTextBox;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.SourcesTabEvents;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.TabListener;
import com.google.gwt.user.client.ui.TabPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * Entry point classes define onModuleLoad().
 */
public class TimeSheetTracking implements EntryPoint {

  VerticalPanel vpLogin = new VerticalPanel();
  private Label lblLoginEmpID = new Label("Employee ID");
  private TextBox txtEmpID = new TextBox();
  private Label lblLoginPassword = new Label("**Password ");
  private PasswordTextBox txtPassword = new PasswordTextBox();
  private Button btnLogin = new Button("Login");
  private String _empID;
  private String _password;

  final TimeSheetLoginServiceAsync timesheetLoginServlet =
(TimeSheetLoginServiceAsync) GWT
.create(TimeSheetLoginService.class);



@SuppressWarnings("deprecation")
public void onModuleLoad() {


ServiceDefTarget endpoint = (ServiceDefTarget)
timesheetLoginServlet;
endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() +
"timesheetlogin");

txtEmpID.setStyleName("txtTextbox");
txtPassword.setStyleName("txtTextbox");

lblLoginEmpID.setStyleName("lblLabels");
lblLoginPassword.setStyleName("lblLabels");

btnLogin.setStyleName("btnButtons");


// Create a tab panel with three items.
TabPanel panel = new TabPanel();
HorizontalPanel hpLogin = new HorizontalPanel();
hpLogin.add(lblLoginEmpID);
hpLogin.add(txtEmpID);
vpLogin.add(hpLogin);

HorizontalPanel hpLogin2 = new HorizontalPanel();
hpLogin2.add(lblLoginPassword);
hpLogin2.add(txtPassword);
hpLogin2.add(btnLogin);
vpLogin.add(hpLogin2);

panel.add(vpLogin, "Login");



panel.setWidth("100%");
panel.selectTab(0);


// Hook up a tab listener to do something when the user selects a
tab.
panel.addTabListener(new TabListener() {
  public void onTabSelected(SourcesTabEvents sender, int
tabIndex) {
// Let the user know what they just did.
  }

  public boolean onBeforeTabSelected(SourcesTabEvents sender,
  int tabIndex) {

// Just for fun, let's disallow selection of 'panel'.
//if (tabIndex == 1)
//  return false;
  return true;
  }
});

// Add it to the root panel.

Gwt Sound doesn't work!?

2011-07-24 Thread Hani Hashemi
i added zero code to my gwt.xml

""
and then added 'gwt-sound.jar' to my project

but when i'm going to run it,it shows zero error

"Loading modules
mysound.TestSound
  Loading inherited module 'org.miller.gwt.Sound'
 [WARN] Injected scripts no longer use an associated JavaScript
block; ignoring."

has anyone ever could use this library (gwt-sound)?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



getPropertyInt and getPropertyDouble return 0 for undefined property

2011-07-24 Thread AJ
Found in GWT Release 2.3

Encountered on Windows 7 : Chrome

The code for getPropertyInt and getPropertyDouble in the Element class is...

  public final native int getPropertyInt(String name) /*-{
 return parseInt(this[name]) || 0;
   }-*/;

  public final native double getPropertyDouble(String name) /*-{
 return parseFloat(this[name]) || 0.0;
   }-*/;

The result is that code can not determine if the value is truly zero, or if 
the property does not exist.

A method... isProperty(String name) ... would help to see if the property 
exists, but there isn't one.

Perhaps the methods should throw an exception?

Workaround if you have one: Don't use zero as a value.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/eBadgbqaY-IJ.
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.



Making the Slider Bar included in the Google Web Toolkit Incubator Vertical

2011-07-24 Thread Novice Programmer
Hi,

I was wondering if it was possible to make the slider bar that resides
in the Google Web Toolkit Incubator vertical instead of horizontal? My
first thought was to rotate the bar panel and the labels 90 degrees
with a css style

.gwt-SliderBar-shell {
  border: 2px solid #faf9f7;
  border-right: 2px solid #848280;
  border-bottom: 2px solid #848280;
  background-color: #efebe7;
  height: 34pt;
  width: 50%;
  -webkit-transform: rotate(90deg);
-moz-transform: rotate(90deg);
-ms-transform: rotate(90deg);
transform: rotate(90deg);
}

but  I lose the functionality of the slider bar when I do this (I am
unable to slide the knob and the bar is unresponsive when I click on
it). Thanks for any help you guys can offer!

The Slider Bar I am talking about is located on this webpage
http://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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.



Developing Google gadgets with GWT

2011-07-24 Thread Михаил Марёнов


I successfully created gadget using Getting Started with Gadgets and 
GWT

I want to know:

   1. 
   
   Is it possible to work on gadgets in development mode? I want to change 
   the code and see the results. Or i need to compile and publish the gadget 
   every time i change code?
   2. 
   
   I want my GWT GAE application to be both normal GWT app and a google 
   gadget. When user enters http://mygadget.appspot.com/ i want him to see 
   normal GWT app. But when user access
   
http://mygadget.appspot.com/axogadget/com.axdms.gadget.client.AxObjectGadget.gadget.xml
 he 
   gets the gadget. Is it posible? Or it has to be 2 different GAE 
   applications? (Normal GWT app and gadget have different functionality). 
   Multiple entry points?
   

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Iil9t7vTNTEJ.
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 + Javascript Libraries

2011-07-24 Thread Tom Carchrae
Hi All,

I get the impression (and please correct me if I'm wrong) that most GWT 
developers live in a pure Java (compiled in JS) world.  Am I wrong?  Do you 
mix GWT with other Javascript libraries (eg. 
http://makeawesomeweb.com/?cat=13 )

I wonder if there are any groups or other resources for developers that want 
to develop in both GWT and JS.  While I love GWT, I really want to take 
advantage of some of the amazing JS libraries that are out there.  I know 
there are various ways to integrate and expose API points (GWT -> JS, or 
visaversa), but I am yet to see any great resources from people doing this 
in practice (I have read the GWT doc pages, and seen some GWT libraries that 
make exposing GWT API to native JS easier).

Why don't I jump to pure JS?  I really like the ability to develop my core 
logic code in Java.  

Any pointers to resources on people combining JS + GWT would be very much 
appreciated as are experiences and opinions ("you're mad", "I do it all the 
time", "I tried it and got burnt", "why?")

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2UjfKJzQmZYJ.
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: Frustrated with GWT

2011-07-24 Thread Gal Dolber
Maybe the uppercases? try this:

/timesheettracking/timesheetlogin

On Sat, Jul 23, 2011 at 9:16 PM, edprog  wrote:

> Hello,
>
>  I like the look and feel of GWT but I can find out why i am getting
> a
>
> Error when invoking the pageable data service :404 
> 
> 
> Error 404 NOT_FOUND
> 
> HTTP ERROR 404
> Problem accessing /timesheettracking/timesheetlogin. Reason:
> NOT_FOUNDPowered by Jetty://
>
>
> I have spent 2 days already trying to figure it out and about to give
> up. Here is my code
>
>
> WEB.XML
>
> 
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>"http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
>  
>  
>timesheetLoginServlet
> class>com.timesheet.tmproject.server.TimeSheetLoginServiceImpl servlet-class>
>  
>  
>timesheetLoginServlet
>/TimeSheetTracking/timesheetlogin
>  
>  
>  
>TimeSheetTracking.html
>  
> 
>
>
> //TIMESHEET LOGIN SERVICE
>
> package com.timesheet.tmproject.client;
>
> import java.util.List;
>
> import com.google.gwt.user.client.rpc.RemoteService;
> import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
>
> public interface TimeSheetLoginService extends RemoteService {
>
>  public boolean isAuthenticated(String empID, String password );
> }
>
> //TIMESHEET LOGIN SERVICE ASYNC
>
> package com.timesheet.tmproject.client;
>
> import com.google.gwt.user.client.rpc.AsyncCallback;
>
> public interface TimeSheetLoginServiceAsync {
>public void isAuthenticated(String empID, String
> password ,AsyncCallback callback);
> }
>
>
>
>
>
> //TIMESHEETTRACK.JAVA
>
>
>
>
>
> package com.timesheet.tmproject.client;
>
> import java.util.ArrayList;
> import java.util.Iterator;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.event.dom.client.ClickEvent;
> import com.google.gwt.event.dom.client.ClickHandler;
> import com.google.gwt.event.dom.client.KeyCodes;
> import com.google.gwt.event.dom.client.KeyUpEvent;
> import com.google.gwt.event.dom.client.KeyUpHandler;
> import com.google.gwt.user.client.Window;
> import com.google.gwt.user.client.rpc.AsyncCallback;
> import com.google.gwt.user.client.rpc.ServiceDefTarget;
> import com.google.gwt.user.client.ui.Button;
> import com.google.gwt.user.client.ui.ClickListener;
> import com.google.gwt.user.client.ui.DialogBox;
> import com.google.gwt.user.client.ui.FlowPanel;
> import com.google.gwt.user.client.ui.HTML;
> import com.google.gwt.user.client.ui.HorizontalPanel;
> import com.google.gwt.user.client.ui.Label;
> import com.google.gwt.user.client.ui.PasswordTextBox;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.SourcesTabEvents;
> import com.google.gwt.user.client.ui.TabPanel;
> import com.google.gwt.user.client.ui.TabListener;
> import com.google.gwt.user.client.ui.TabPanel;
> import com.google.gwt.user.client.ui.TextBox;
> import com.google.gwt.user.client.ui.VerticalPanel;
> import com.google.gwt.user.client.ui.Widget;
>
> /**
>  * Entry point classes define onModuleLoad().
>  */
> public class TimeSheetTracking implements EntryPoint {
>
>  VerticalPanel vpLogin = new VerticalPanel();
>  private Label lblLoginEmpID = new Label("Employee ID");
>  private TextBox txtEmpID = new TextBox();
>  private Label lblLoginPassword = new Label("**Password ");
>  private PasswordTextBox txtPassword = new PasswordTextBox();
>  private Button btnLogin = new Button("Login");
>  private String _empID;
>  private String _password;
>
>  final TimeSheetLoginServiceAsync timesheetLoginServlet =
> (TimeSheetLoginServiceAsync) GWT
>.create(TimeSheetLoginService.class);
>
>
>
>@SuppressWarnings("deprecation")
>public void onModuleLoad() {
>
>
>ServiceDefTarget endpoint = (ServiceDefTarget)
> timesheetLoginServlet;
>endpoint.setServiceEntryPoint(GWT.getModuleBaseURL() +
> "timesheetlogin");
>
>txtEmpID.setStyleName("txtTextbox");
>txtPassword.setStyleName("txtTextbox");
>
>lblLoginEmpID.setStyleName("lblLabels");
>lblLoginPassword.setStyleName("lblLabels");
>
>btnLogin.setStyleName("btnButtons");
>
>
>// Create a tab panel with three items.
>TabPanel panel = new TabPanel();
>HorizontalPanel hpLogin = new HorizontalPanel();
>hpLogin.add(lblLoginEmpID);
>hpLogin.add(txtEmpID);
>vpLogin.add(hpLogin);
>
>HorizontalPanel hpLogin2 = new HorizontalPanel();
>hpLogin2.add(lblLoginPassword);
>hpLogin2.add(txtPassword);
>hpLogin2.add(btnLogin);
>vpLogin.add(hpLogin2);
>
>panel.add(vpLogin, "Login");
>
>
>
>panel.setWidth("100%");
>panel.selectTab(0);
>
>
>// Hook up a tab listener to do something when the user selects
> a
> tab.
>panel.addTabListener(new TabListener() {
>  public void onTabSelected(SourcesTabEvents 

Re: RequestFactory exception when creating a proxy

2011-07-24 Thread Y2i
I started getting the same error after upgrading to 2.3.  The error occurs 
when a client receives response and attempts to create a proxy from the data 
encoded in the response string.  The stack up to the point of failure is at 
the bottom of the message.

When a response from the server is received, this method in JsniCreaterMap 
is called twice with the same proxy type (clazz).  First time the get() 
method succeeds, the second time it returns a null JsArray assigned to arr 
local variable.



The get() method is a simple java script lookup:



Not sure what's going on here, but it all worked fine before upgrading to 
GWT 2.3.

Once create() returns 
null, AbstractRequestFactory$2(AbstractRequestContext).createProxy(Class, 
SimpleProxyId) fails:



It looks like I'm not alone with this error and it started to occur in GWT 
2.3.  Any help would be greatly appreciated.
Thanks!


6afUkn4PPdS7L*m[] (Suspended) 
JsniCreatorMap$.create$(Class, AbstractAutoBeanFactory) line: 50 
AppRequestFactoryImpl_FactoryImpl(AbstractAutoBeanFactory).create(Class) 
line: 44 
AbstractRequestFactory$2(AbstractRequestContext).createProxy(Class, 
SimpleProxyId) line: 426 
AbstractRequestFactory$2(AbstractRequestContext).getProxyForReturnPayloadGraph(SimpleProxyId)
 
line: 673 
AbstractRequestFactory$2(AbstractRequestContext).processReturnOperation(SimpleProxyId,
 
OperationMessage, WriteOperation...) line: 757 
AbstractRequestFactory$2(AbstractRequestContext).processReturnOperations(ResponseMessage)
 
line: 1067 
AbstractRequestContext.access$5(AbstractRequestContext, ResponseMessage) 
line: 1037 
AbstractRequestContext$StandardPayloadDialect.processPayload(Receiver, 
String) line: 276 
AbstractRequestContext$4.onTransportSuccess(String) line: 959 
DefaultRequestTransport$1.onResponseReceived(Request, Response) line: 141 
Request.fireOnResponseReceived(RequestCallback) line: 287 
RequestBuilder$1.onReadyStateChange(XMLHttpRequest) line: 395 
GeneratedMethodAccessor67.invoke(Object, Object[]) line: not available 
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 
Method.invoke(Object, Object...) line: 597 
MethodAdaptor.invoke(Object, Object...) line: 103 
MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 
OophmSessionHandler.invoke(BrowserChannelServer, BrowserChannel$Value, int, 
BrowserChannel$Value[]) line: 167 
BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer$SessionHandlerServer)
 
line: 326 
BrowserChannelServer.invokeJavascript(CompilingClassLoader, JsValueOOPHM, 
String, JsValueOOPHM[], JsValueOOPHM) line: 207 
ModuleSpaceOOPHM.doInvoke(String, Object, Class[], Object[]) line: 132 
ModuleSpaceOOPHM(ModuleSpace).invokeNative(String, Object, Class[], 
Object[]) line: 561 
ModuleSpaceOOPHM(ModuleSpace).invokeNativeObject(String, Object, Class[], 
Object[]) line: 269 
JavaScriptHost.invokeNativeObject(String, Object, Class[], Object[]) 
line: 91 
Impl.apply(Object, Object, Object) line: not available 
Impl.entry0(Object, Object, Object) line: 214 
GeneratedMethodAccessor59.invoke(Object, Object[]) line: not available 
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 25 
Method.invoke(Object, Object...) line: 597 
MethodAdaptor.invoke(Object, Object...) line: 103 
MethodDispatch.invoke(JsValue, JsValue[], JsValue) line: 71 
OophmSessionHandler.invoke(BrowserChannelServer, BrowserChannel$Value, int, 
BrowserChannel$Value[]) line: 167 
BrowserChannelServer.reactToMessages(BrowserChannelServer$SessionHandlerServer) 
line: 281 
BrowserChannelServer.processConnection() line: 531 
BrowserChannelServer.run() line: 352 
Thread.run() line: 662 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/bIXifgOcQU8J.
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 Sound doesn't work!?

2011-07-24 Thread Alain Ekambi
Have you tried the one from Fred Sauer ?
http://code.google.com/p/gwt-voices/



2011/7/24 Hani Hashemi 

> i added zero code to my gwt.xml
>
> ""
> and then added 'gwt-sound.jar' to my project
>
> but when i'm going to run it,it shows zero error
>
> "Loading modules
> mysound.TestSound
>  Loading inherited module 'org.miller.gwt.Sound'
> [WARN] Injected scripts no longer use an associated JavaScript
> block; ignoring."
>
> has anyone ever could use this library (gwt-sound)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google 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 API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.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.



How can I get the "Expenses" sample up and running?

2011-07-24 Thread Warren Tang
I have trouble to run the "Expenses" sample in GWT's samples folder. The 
sample appeared in Google I/O sessions a few times. 

I'm not familiar with App Engine, but this is what I've done:

   1. create an new Eclipse project and then overwrite the src and war with 
   those from the Expenses sample.
   2. add App Engine support and specified the application id/name I got by 
   creating a new application in appengine.google.com.
   3. compile "LoadExpensesDB.gwt.xml" (which I assume is used to fill 
   appengine with some sample data.).The permunations completed but at the 
   beginning of the log their are some errors:
   Compiling module com.google.gwt.sample.expenses.LoadExpensesDB
  Validating newly compiled units
 [ERROR] Errors in 
   
'file:/D:/work/learning/gwt/Expenses/java/com/google/gwt/sample/expenses/shared/EmployeeProxy.java'
[ERROR] Line 25: 
   com.google.gwt.sample.expenses.server.domain.Employee cannot be resolved to 
   a type
 [ERROR] Errors in 
   
'file:/D:/work/learning/gwt/Expenses/java/com/google/gwt/sample/expenses/shared/EmployeeRequest.java'
[ERROR] Line 22: The import 
   com.google.gwt.sample.expenses.server.domain.Employee cannot be resolved
[ERROR] Line 29: Employee cannot be resolved to a type 
   ... ...
   4. When I run the module I got 
  HTTP ERROR: 503  SERVICE_UNAVAILABLE
   The log in hosted getty says:
   00:00:00.008 [WARN] failed GaeAuthFilter
   javax.servlet.UnavailableException: 
   com.google.gwt.sample.gaerequest.server.GaeAuthFilter 
 at org.mortbay.jetty.servlet.Holder.doStart(Holder.java:79) 
 at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:81)

Regards, 
Warren

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XS1mzZlPuT8J.
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.