Re: Store object in HTTP session

2008-09-14 Thread Manik Chand

Hi,

Your question is not clear.
Please write in detail.
You are asking: - How to save Object in Session?

for storing any object in session you have to access HttpSession Object.
To do that use following code.
HttpSession sessionObj = getThreadLocalRequest().getSession();


And now if you need Object at client then you should write
method in the class which extends "RemoteServiceServlet";

But that object must be serialized other wise you cant get that object.





On 9/15/08, Sebastien <[EMAIL PROTECTED]> wrote:
>
> On client side, you can use a static variable to store your data.
>
> On 15 sep, 05:32, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
>> On Sun, Sep 14, 2008 at 11:00 PM, hezjing <[EMAIL PROTECTED]> wrote:
>> > What I want is how to access the session from the client code?
>>
>> Impossible.  The session exists on the server only.
>>
>> Ian
> >
>


-- 
Manik Chand
Software Engineer
Exact Software Pvt. Ltd.
403, 4th Floor, Accord Complex,
Station Road,
Goregaon(East),
Mumbai - 400063
Cell No. : +91 9220984430
www.exact-solutions.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Store object in HTTP session

2008-09-14 Thread Sebastien

On client side, you can use a static variable to store your data.

On 15 sep, 05:32, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 14, 2008 at 11:00 PM, hezjing <[EMAIL PROTECTED]> wrote:
> > What I want is how to access the session from the client code?
>
> Impossible.  The session exists on the server only.
>
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT Maps API fails on host mode

2008-09-14 Thread Einstein0970

Hi Guys,

Recently moved on Ubuntu 8.04 (64bit) and GWT 1.5.

I am using the latest gwt-maps.api and my very simple code does not
start on host mode but works perfectly when deployed under tomcat.

Here is the error I get:

[ERROR] Unable to load module entry point class
com.mobigolf.gwt.client.MobiGolf (see associated exception for
details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
$wnd.GLatLng is not a constructor
 fileName: transient source for
com.google.gwt.maps.client.impl.__LatLngImplImpl
 lineNumber: 14
 stack: (46.870989,-71.217155)@transient source for
com.google.gwt.maps.client.impl.__LatLngImplImpl:14
gwtOnLoad([object Window],"com.mobigolf.gwt.MobiGolf","1.5")@:0
gwtOnLoad((function () {alert("Failed to load module
com.mobigolf.gwt.MobiGolf\".\nPlease see the log in the development
shell for details.");}),"com.mobigolf.gwt.MobiGolf","http://localhost:
/com.mobigolf.gwt.MobiGolf/")@http://localhost:/
com.mobigolf.gwt.MobiGolf/hosted.html?com_mobigolf_gwt_MobiGolf:20
maybeStartModule()@http://localhost:/com.mobigolf.gwt.MobiGolf/
com.mobigolf.gwt.MobiGolf.nocache.js:100
()@http://localhost:/com.mobigolf.gwt.MobiGolf/
com.mobigolf.gwt.MobiGolf.nocache.js:393
@http://localhost:/com.mobigolf.gwt.MobiGolf/hosted.html?
com_mobigolf_gwt_MobiGolf:39

at com.google.gwt.maps.client.impl.__LatLngImplImpl.construct(Native
Method)
at com.google.gwt.maps.client.geom.LatLng.(LatLng.java:65)
at
com.mobigolf.gwt.client.reservations.InfoWindowDemo.(InfoWindowDemo.java:
54)
at com.mobigolf.gwt.client.Tabs.(Tabs.java:45)
at com.mobigolf.gwt.client.MobiGolf.onModuleLoad(MobiGolf.java:51)

Thanks for any help,


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



Re: java.lang.ClassNotFoundException

2008-09-14 Thread Ananda Rao

Amit,

thanks for replying...

the correct path is same as given below. but still i am getting the error.
when i browse to this project( in the browser) first i get  is the
error Status code exception.

can  you tell me why i am getting this.

thanks in advance
Ananda


On Mon, Sep 15, 2008 at 9:16 AM, Amit Dhingra <[EMAIL PROTECTED]> wrote:
> The compiler is not able to search
> com.emr.pt01.doctormaster.server.DoctorServiceImpl
> Provide proper paths for this class.
>
> Cheers,
> Amit Dhingra
>
> On Mon, Sep 15, 2008 at 9:04 AM, Ananda Rao
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi All,
>>
>> i am getting the below error when i try to execute the code.
>> can you please help me in this regard.since iam new to java i need help
>> from you to resolve this error.
>> please help me
>>
>> Root cause.
>>
>> [EMAIL PROTECTED]
>>  com.emr.pt01.doctormaster.server.DoctorServiceImpl
>> java.lang.ClassNotFoundException:
>> com.emr.pt01.doctormaster.server.DoctorServiceImpl
>>   at
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>> 1387)
>>   at
>>
>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
>> 1233)
>>   at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
>> 1094)
>>   at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
>> 808)
>>   at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
>> 129)
>>   at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
>> 191)
>>   at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
>> 128)
>>   at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
>> 102)
>>   at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>>   at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)
>>   at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 845)
>>   at org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>   at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447)
>>   at java.lang.Thread.run(Thread.java:619)
>> Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve
>> invoke
>> SEVERE: Allocate exception for servlet
>> com.emr.pt01.doctormaster.server.DoctorServiceImpl
>> javax.servlet.ServletException: Wrapper cannot find servlet class
>> com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it
>> depends on
>>   at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
>> 1102)
>>   at
>> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
>> 808)
>>   at
>>
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
>> 129)
>>   at
>>
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
>> 191)
>>   at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
>> 128)
>>   at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
>> 102)
>>   at
>>
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
>> 109)
>>   at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
>> 286)
>>   at
>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
>> 845)
>>   at org.apache.coyote.http11.Http11Protocol
>> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>>   at
>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> 447)
>>   at java.lang.Thread.run(Thread.java:619)
>> Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
>> log
>> INFO: SessionListener: contextDestroyed()
>> Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
>> log
>> INFO: ContextListener: contextDestroyed()
>>
>>
>> Regards,
>> Ananda
>>
>>
>
>
>
> --
> Warm Regards,
> Amit Dhingra
>
> >
>

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



Re: java.lang.ClassNotFoundException

2008-09-14 Thread Amit Dhingra
The compiler is not able to search
com.emr.pt01.doctormaster.server.DoctorServiceImpl
Provide proper paths for this class.

Cheers,
Amit Dhingra

On Mon, Sep 15, 2008 at 9:04 AM, Ananda Rao <
[EMAIL PROTECTED]> wrote:

>
> Hi All,
>
> i am getting the below error when i try to execute the code.
> can you please help me in this regard.since iam new to java i need help
> from you to resolve this error.
> please help me
>
> Root cause.
>
> [EMAIL PROTECTED]
>  com.emr.pt01.doctormaster.server.DoctorServiceImpl
> java.lang.ClassNotFoundException:
> com.emr.pt01.doctormaster.server.DoctorServiceImpl
>   at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> 1387)
>   at
>
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
> 1233)
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
> 1094)
>   at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
> 808)
>   at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 129)
>   at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 191)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 128)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 102)
>   at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 109)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 286)
>   at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 845)
>   at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>   at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>   at java.lang.Thread.run(Thread.java:619)
> Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Allocate exception for servlet
> com.emr.pt01.doctormaster.server.DoctorServiceImpl
> javax.servlet.ServletException: Wrapper cannot find servlet class
> com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it
> depends on
>   at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
> 1102)
>   at
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
> 808)
>   at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 129)
>   at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 191)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 128)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 102)
>   at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 109)
>   at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 286)
>   at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 845)
>   at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>   at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>   at java.lang.Thread.run(Thread.java:619)
> Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
> log
> INFO: SessionListener: contextDestroyed()
> Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
> log
> INFO: ContextListener: contextDestroyed()
>
>
> Regards,
> Ananda
>
> >
>


-- 
Warm Regards,
Amit Dhingra

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



java.lang.ClassNotFoundException

2008-09-14 Thread Ananda Rao

Hi All,

i am getting the below error when i try to execute the code.
can you please help me in this regard.since iam new to java i need help
from you to resolve this error.
please help me

Root cause.

[EMAIL PROTECTED]
 com.emr.pt01.doctormaster.server.DoctorServiceImpl
java.lang.ClassNotFoundException:
com.emr.pt01.doctormaster.server.DoctorServiceImpl
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1387)
   at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1233)
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1094)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
808)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
   at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
   at java.lang.Thread.run(Thread.java:619)
Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Allocate exception for servlet
com.emr.pt01.doctormaster.server.DoctorServiceImpl
javax.servlet.ServletException: Wrapper cannot find servlet class
com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it
depends on
   at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1102)
   at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
808)
   at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
   at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
   at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
   at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
   at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
   at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
   at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
   at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
   at java.lang.Thread.run(Thread.java:619)
Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextDestroyed()
Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextDestroyed()


Regards,
Ananda

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



Re: Store object in HTTP session

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 11:00 PM, hezjing <[EMAIL PROTECTED]> wrote:
> What I want is how to access the session from the client code?

Impossible.  The session exists on the server only.

Ian

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



java.lang.ClassNotFoundException

2008-09-14 Thread Ananda

Hi All,

i am getting the below error when i try to execute the code.
can you please help me in this regard.since iam new to i need help
from you to resolve this error.
please help me

Root cause.

[EMAIL PROTECTED]
 com.emr.pt01.doctormaster.server.DoctorServiceImpl
java.lang.ClassNotFoundException:
com.emr.pt01.doctormaster.server.DoctorServiceImpl
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1387)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:
1233)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1094)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
808)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:619)
Sep 15, 2008 12:02:35 AM org.apache.catalina.core.StandardWrapperValve
invoke
SEVERE: Allocate exception for servlet
com.emr.pt01.doctormaster.server.DoctorServiceImpl
javax.servlet.ServletException: Wrapper cannot find servlet class
com.emr.pt01.doctormaster.server.DoctorServiceImpl or a class it
depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:
1102)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:
808)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
129)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Thread.java:619)
Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
log
INFO: SessionListener: contextDestroyed()
Sep 15, 2008 12:04:10 AM org.apache.catalina.core.ApplicationContext
log
INFO: ContextListener: contextDestroyed()


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



Re: Store object in HTTP session

2008-09-14 Thread hezjing
Yes, that's work :-)
And I'm sorry, because I was confused :-(
What I want is how to access the session from the client code?

For example I want to add a user object into session in a login panel.
Then, retrieve the same object from the session from another panel.




On Mon, Sep 15, 2008 at 10:04 AM, Dean S. Jones <[EMAIL PROTECTED]>wrote:

>
> getThreadLocalRequest().getSession()
>
> On Sep 14, 9:56 pm, hezjing <[EMAIL PROTECTED]> wrote:
> > Hi
> > When a user successfully login, I want to store the login information
> into a
> > session.
> > How do we store an object in the HTTP session?
> >
> > I read this Using Servlet Sessions in
> > GWT,
> > and it explained that all GWT services are implemented in classes that
> > extend the RemoteServiceServlet class.
> > From there, we can retrieve the session from the current request.
> >
> > Unfortunately, I'm following the GWT tutorial and all my services now
> extend
> > the RemoteService.
> > How can I retrieve the HTTP session if my service extends RemoteService?
> >
> > What is the different if a service extends RemoteService
> > or RemoteServiceServlet?
> >
> > --
> >
> > Hez
> >
>


-- 

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



Re: Store object in HTTP session

2008-09-14 Thread Dean S. Jones

getThreadLocalRequest().getSession()

On Sep 14, 9:56 pm, hezjing <[EMAIL PROTECTED]> wrote:
> Hi
> When a user successfully login, I want to store the login information into a
> session.
> How do we store an object in the HTTP session?
>
> I read this Using Servlet Sessions in
> GWT,
> and it explained that all GWT services are implemented in classes that
> extend the RemoteServiceServlet class.
> From there, we can retrieve the session from the current request.
>
> Unfortunately, I'm following the GWT tutorial and all my services now extend
> the RemoteService.
> How can I retrieve the HTTP session if my service extends RemoteService?
>
> What is the different if a service extends RemoteService
> or RemoteServiceServlet?
>
> --
>
> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Store object in HTTP session

2008-09-14 Thread hezjing
Hi
When a user successfully login, I want to store the login information into a
session.
How do we store an object in the HTTP session?

I read this Using Servlet Sessions in
GWT,
and it explained that all GWT services are implemented in classes that
extend the RemoteServiceServlet class.
>From there, we can retrieve the session from the current request.

Unfortunately, I'm following the GWT tutorial and all my services now extend
the RemoteService.
How can I retrieve the HTTP session if my service extends RemoteService?

What is the different if a service extends RemoteService
or RemoteServiceServlet?


-- 

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



Re: Embed Flex/Flash in GWT

2008-09-14 Thread fred

You could look at the source for the gwt-voices project.

Fred

On 9/14/08, Amit Dhingra <[EMAIL PROTECTED]> wrote:
> Hi Pete,
> Can you please provide me link to the widget, as I might also wanna try
> using it. :)
>
> Cheers,
> Amit Dhingra
>
> On Sun, Sep 14, 2008 at 4:07 PM, Pete Kay <[EMAIL PROTECTED]> wrote:
>
>> Hi,
>>
>> I have a small Flex/Flash widget that can record voices.  Is it possible
>> to
>> embed that widget inside a GWT table cell?
>>
>> Any sample code showing how it can be done will be greatly appreciated.
>>
>> Thanks in advance for your kind help.
>>
>> Best Regards,
>> Pete
>>
>> >
>>
>
>
> --
> Warm Regards,
> Amit Dhingra
>
> >
>


-- 
Fred Sauer
[EMAIL PROTECTED]

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



Re: Using EasyMock in GWT Test Cases

2008-09-14 Thread Arthur Kalmenson

It's not possible to use EasyMock in GWTTestCases. EasyMock requires
Java Reflections (AFAIK), and therefore cannot be run in hosted mode.
This is why you need to architect your application in such a way that
most of your business logic lives in classes that don't use GWT
widgets and are therefore testable outside of GWTTestCase.

Regards,
Arthur Kalmenson

On Sep 13, 6:05 pm, ksachdeva <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to use the EasyMock in my unit tests and I am getting a
> weired behavior. Here are the details of my configuration:
>
> Windows Vista SP1; GWT 1.5.2; EasyMock 2.4; Eclipse 3.4
>
> The error I am getting when I run my MyTest-hosted.launch
> configuration from eclipse:
>
> Compiling Java source files in module 'com.myns.MyModule.JUnit'
>    Removing units with errors
>       [ERROR] Errors in 'file:/C:/---removed-for-clarity--/test/
> com/myns/client/subpackage/MyModuleTest.java'
>          [ERROR] Line 25: No source code is available for type
> org.easymock.EasyMock; did you forget to inherit a required module?
>
> From error it seems like it is looking for JUnit / EasyMock
> sources 
>
> My understanding was that in hosted mode there would be no conversion
> to JavaScript so I should be able to use EasyMock to mock some of my
> classes.
>
> Here is how my methods look in the test case:
>
>  public String getModuleName() {
>     return "com.myns.MyModule";
>   }
>
>   public void testSimple() {
>           SomeInterface mock = createMock(SomeInterface.class);
>   }
>
> If I remove the code for mocking from testSimple() then I can see that
> my unit test work !!!
>
> Please help
>
> Regards
> Kapil
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Best solution for client-side graphing in GWT?

2008-09-14 Thread Arthur Kalmenson

Hello Nathan,

I'd recommend that Google Visualization API: 
http://code.google.com/apis/visualization/

There are GWT overlays in the works at the GALGWT project (http://
code.google.com/p/gwt-google-apis/). See the issue here:
http://code.google.com/p/gwt-google-apis/issues/detail?id=130

On Sep 12, 1:04 pm, Nathan <[EMAIL PROTECTED]> wrote:
> I've been investigating the best way to do client-side graphing in
> GWT. The features that I am looking for that don't seem to be widely
> provided are the ability for users to select portions of the graph,
> and to receive events for mouse clicks on any part of the graph. I
> also can't use a solution that uses flash (IE support however, is not
> important).
>
> The solution I'm currently considering is to write a bunch of
> JavaScript Overlay classes for use with flot (http://code.google.com/p/flot/
> ).
>
> As far as I can tell, gchart (http://code.google.com/p/gchart/) is
> the only native GWT graphing solution, but has no events support. I
> also looked into the dojox charting library, but flot seems to have
> better events support (particularly the ability to click on any point
> in the graph and get an event with the graph coordinates for the point
> clicked).
>
> Are there any projects out there that I've missed? I'd really like a
> native GWT solution, if possible.
>
> Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

Thanks for the explanation - I knew that already (had to do so with
Tree to change a private method).

This is a good approach. Now I just have to think how to implement it.
I will try some different things - I have some ways in mind by now. If
I find a good workaround, I will let you know!

Thanks again for your answer. Jakob


On Sep 14, 9:02 pm, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 14, 2008 at 12:43 PM, jakob.korherr
>
> <[EMAIL PROTECTED]> wrote:
> > Hmm. This would maybe help, although the SuggestBox is final and not
> > really designed for extending.
>
> You can work around that by maintaining your own version of
> SuggestBox.  If you extract SuggestBox.java from gwt-user.jar and put
> it in a source directory in your project that comes before
> gwt-user.jar on the CLASSPATH, the GWT compiler will pick up the
> extracted version instead of the version in gwt-user.jar.  You can
> then modify the extracted version to suit your needs--whether that
> means just removing the final keyword, or more invasive changes.  If
> the "right" place to make the change is in a class other than
> SuggestBox, just extract its source file instead.  If you come up with
> a clean patch that looks generally useful, you could submit it for
> inclusion in GWT 1.6, too.
>
> > A great way would be changing the order of the events, so that the
> > click event fires before the focus event. Do you thinkt this is
> > possible - or even better: do you know a way to do this?
>
> I think that might be difficult to impossible.  Ignore GWT for a
> moment and consider just what the browser is doing: clicking on the
> pop-up list causes the text box to lose focus.  I'm pretty sure every
> browser will fire the lost-focus event on the text box before firing
> the click event on the pop-up's element.  GWT can't do anything about
> the order in which the browser delivers events, and the only way it
> can fire lost-focus or click events for itself is by piggy-backing on
> the browser-native events.
>
> The only idea I have that might make it possible is to complicate
> SuggestBox's event handling.  When the wrapped text box fires
> onLostFocus, the SuggestBox could set up a delayed call to fire its
> own onLostFocus, rather than firing it directly.  In the pop-up's
> onClick listener, the delayed onLostFocus would then be canceled.  The
> idea is that if focus is lost because some other widget has gained it,
> then the delayed onFocusLost will fire.  If, on the other hand, focus
> is lost because the pop-up has gained it, then the SuggestBox as a
> whole hasn't really lost focus, so the pending onFocusLost can be
> sanely canceled.
>
> The biggest problem I see with the above approach is that it would
> probably re-order related onFocusLost and onFocus events.  Normally,
> if widget A loses focus to widget B, A's onLostFocus fires before B's
> onFocus.  If widget A is a SuggestBox modified as above, though, then
> I think B will fire onFocus before A fires onFocusLost.  Ideally,
> that's not a problem--event driven programmes shouldn't normally
> depend on the order of events being fired, I wouldn't think--but real
> life is hardly ideal.
>
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Any ideas on how to make a popup stay on top?

2008-09-14 Thread Thomas Wrobel

Sorry about the lack of xml files, that was sloopy of me.
I should have just ziped the whole project directory, but I was in a
bit of a rush.

Its really odd that the Z-indexing worked, as that was the first thing I tried
I'll have a few experiments in the full app and see if it acts the
same as the cut-down one I sent out.

Thanks,
Thomaas

2008/9/12 Thomas Broyer <[EMAIL PROTECTED]>:
>
>
>
> On 11 sep, 16:14, "Thomas Wrobel" <[EMAIL PROTECTED]> wrote:
>> Ok,thanks, I upload an example zip of what I'm trying to do here;
>>
>> www.darkflame.co.uk/client.zip
>
> It would have been far better with the appropriate directory structure
> and .gwt.xml (and even TestProject-shell.cmd...)
>
>> Basically, I want it if the user clicks on popup1, then popup2, popup1
>> stays ontop.
>
> I've removed your "workaround", added a this.addStyleName("darkflame-
> OverlayPopUp") in the OverlayPopUp constructor, and added the
> following CSS rule in the TestProject.html:
>
>   .darkflame-OverlayPopUp { z-index: 1000; }
>
> ...and the draggable popup stays on top (tested both in hosted mode –
> IE7– and an IE6 within a Virtual PC).
>
>
>
> >
>

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



Re: Worker with Gwt-Gears 1.1 RC

2008-09-14 Thread Andrey

Hello!
I am very interested in Java-workers too. Please, someone tell us when
this feature is going to be implemented?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CSS not work when using GWT4Gadgets

2008-09-14 Thread Len

Hi Norman,

Which browser are you using ? I have had some errors like this with IE
and had to put a string of selectors in like

#html body headerStyle {
...
}


Len

2008/9/14 [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> Hi all,
>
> I try to build a Gadget with GWT4Gadgets. I added some basic CSS file,
> but it seems to get not used. I tried to set the grids first column
> color to blue with:
> grid.getRowFormatter().setStyleName(0,"headerStyle);
>
> In css I have:
>
> .headerStyle { background-color: blue; }
>
> In the module xml file it get "included" with:   src='DFIGadget.css' />
>
> But it just seems to not work. Is there anything I miss ?
>
> Thx,
> Norman
> >
>

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



Re: @EJB annotation

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 2:59 PM, Len <[EMAIL PROTECTED]> wrote:
> That depends on your servlet container and not GWT. If your container
> supports the @EJB injection then yes otherwise no. JBoss 5 does but
> not 4 as far as I am aware.

Implicit in what Len has said is the fact that @EJB might work on the
server (depending on your servlet container) but _won't_ work on the
client.  As such, it's not really a GWT issue.

Ian

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



Re: GWT + Entity Bean

2008-09-14 Thread Len

Hi

GWT needs to be able to see the source of your entities so you need to
include them in the GWT compile. To do this create a module xml file
in the server package that contains a  statement
where entityDir is your directory containing the entity classes. Then
include this module in your main module.

Len

2008/9/13 Bálint Kriván <[EMAIL PROTECTED]>:
> Hi!
>
> I'm having an issue, and I hope someone can help me, because GWT looks very
> great.
>
> So I've started to make a very simple application.
> I have an EJB package which contains the Session Beans and the Entity Beans.
> In the WAR project I've set up the GWT:
> I've created an Entry Point and a Service (RPC call) - In the implemented
> RemoteServiceServlet I can use the Session Beans, which is connected to
> Entity Beans. So I can make new objects to the database. It works fine.
>
> But I would like to be able to retrieve objects as well, so I've created a
> retrieve call aswell to this Service, and the returned value should be
> List (Topic is my Entity Bean).
> But when I want to compile my project, it says that:
> [ERROR] Errors in
> 'file:/home/balint/NetBeansProjects/GWTForum/GWTForum-war/src/java/hu/krivan/client/service/TopicService.java'
> [ERROR] Line 20: No source code is available for type hu.krivan.model.Topic;
> did you forget to inherit a required module?
>
> (This is in Line 20:
> public List retrieveTopics();
> )
>
> TopicService is my interface which implements RemoteService. How can I use
> my List in the UI (so I would like to build a FlexTable based on
> these Topic objects.)
>
> Very thanks for your help!
>
> Regards,
> Kriván Bálint
> >
>

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



Re: SQL DateTime object to java.util.Date through JSON

2008-09-14 Thread Amit Dhingra

Oops I didn't notice that the message had been approved by the
moderator...
Sorry for having send it twice!!!

Cheers,
Amit


On Sep 15, 12:10 am, "Amit Dhingra" <[EMAIL PROTECTED]> wrote:
> Hi,
> I have JSON SQL DateTime objects, which I wish to convert to
> java.util.Date objects, for which I have coded as below... (I am using
> com.google.gwt.i18n.client.DateTimeFormat.parse for conversion)
>
> if (...) {
> .
> .
> .
> System.out.println(sDate); //sDate is derived from a JSON obj
> System.out.println(eDate); //eDate is derived from a JSON obj
>
> Date stDate  = DateTimeFormat.getFormat("-MM-dd
> HH:MM:SS").parse(sDate);
> Date endDate = DateTimeFormat.getFormat("-MM-dd
> HH:MM:SS").parse(eDate);
>
> System.out.println(sDate + " & " + eDate + " Converted Dates are " +
> stDate.toString() + " & " + endDate.toString());
> .
> .
> .
>
> }
>
> The code above gives the following output on the console
>
> 2008-09-01 10:00:00
> 2008-09-01 10:30:00
> 2008-09-01 10:00:00 & 2008-09-01 10:30:00 Converted Dates are Mon Sep
> 01 10:00:00 IST 2008 & Tue Jun 01 10:00:00 IST 2010
> 2008-09-01 10:30:00
> 2008-09-01 11:00:00
> 2008-09-01 10:30:00 & 2008-09-01 11:00:00 Converted Dates are Tue Jun
> 01 10:00:00 IST 2010 & Mon Sep 01 11:00:00 IST 2008
> 2008-09-03 10:00:00
> 2008-09-03 10:30:30
> 2008-09-03 10:00:00 & 2008-09-03 10:30:30 Converted Dates are Wed Sep
> 03 10:00:00 IST 2008 & Thu Jun 03 10:00:00 IST 2010
> 2008-09-04 10:00:00
> 2008-09-04 10:30:00
> 2008-09-04 10:00:00 & 2008-09-04 10:30:00 Converted Dates are Thu Sep
> 04 10:00:00 IST 2008 & Fri Jun 04 10:00:00 IST 2010
>
> Here I am correctly receiving the JSON object, but while converting it
> into the java object using
> DateTimeFormat.getFormat("-MM-dd HH:MM:SS").parse
> I get wrong results, e.g.
> here
> 2008-09-01 10:00:00
> 2008-09-01 10:30:00
> 2008-09-01 10:00:00 & 2008-09-01 10:30:00 Converted Dates are Mon Sep
> 01 10:00:00 IST 2008 & Tue Jun 01 10:00:00 IST 2010
>
> The converted date is Tue Jun 01 10:00:00 IST 2010 which is incorrect.
>
> And I see that it is just the second date which is every time wrong!!!
>
> Am not able to get hold of the flaw here.
> Where I might be going wrong???
>
> Thanks in advance.
>
> Thanks & Regards,
> Amit
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



SQL DateTime object to java.util.Date through JSON

2008-09-14 Thread Amit Dhingra
Hi,
I have JSON SQL DateTime objects, which I wish to convert to
java.util.Date objects, for which I have coded as below... (I am using
com.google.gwt.i18n.client.DateTimeFormat.parse for conversion)

if (...) {
.
.
.
System.out.println(sDate); //sDate is derived from a JSON obj
System.out.println(eDate); //eDate is derived from a JSON obj

Date stDate  = DateTimeFormat.getFormat("-MM-dd
HH:MM:SS").parse(sDate);
Date endDate = DateTimeFormat.getFormat("-MM-dd
HH:MM:SS").parse(eDate);

System.out.println(sDate + " & " + eDate + " Converted Dates are " +
stDate.toString() + " & " + endDate.toString());
.
.
.
}

The code above gives the following output on the console

2008-09-01 10:00:00
2008-09-01 10:30:00
2008-09-01 10:00:00 & 2008-09-01 10:30:00 Converted Dates are Mon Sep
01 10:00:00 IST 2008 & Tue Jun 01 10:00:00 IST 2010
2008-09-01 10:30:00
2008-09-01 11:00:00
2008-09-01 10:30:00 & 2008-09-01 11:00:00 Converted Dates are Tue Jun
01 10:00:00 IST 2010 & Mon Sep 01 11:00:00 IST 2008
2008-09-03 10:00:00
2008-09-03 10:30:30
2008-09-03 10:00:00 & 2008-09-03 10:30:30 Converted Dates are Wed Sep
03 10:00:00 IST 2008 & Thu Jun 03 10:00:00 IST 2010
2008-09-04 10:00:00
2008-09-04 10:30:00
2008-09-04 10:00:00 & 2008-09-04 10:30:00 Converted Dates are Thu Sep
04 10:00:00 IST 2008 & Fri Jun 04 10:00:00 IST 2010

Here I am correctly receiving the JSON object, but while converting it
into the java object using
DateTimeFormat.getFormat("-MM-dd HH:MM:SS").parse
I get wrong results, e.g.
here
2008-09-01 10:00:00
2008-09-01 10:30:00
2008-09-01 10:00:00 & 2008-09-01 10:30:00 Converted Dates are Mon Sep
01 10:00:00 IST 2008 & Tue Jun 01 10:00:00 IST 2010

The converted date is Tue Jun 01 10:00:00 IST 2010 which is incorrect.

And I see that it is just the second date which is every time wrong!!!

Am not able to get hold of the flaw here.
Where I might be going wrong???

Thanks in advance.

Thanks & Regards,
Amit

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



Re: I cannot run sample applications that came with GWT

2008-09-14 Thread Amit Dhingra
Found this googling...

"
Sounds like you got a 64-bit setup.

Tough luck. Won't work. When it's out, buy an OS that can interop 32-
bit and 64-bit properly, I guess. (Mac OS X Leopard).

Alternatively, complile the relevant .so (libswt-pi-gtk) yourself
using gcc, or try and find a 64-bit version. SWT is hosted somewhere
on www.eclipse.org, and you should be able to just replace the .so
file, though it MUST be the same version (3235), or it won't
interoperate with the SWT class files used by GWT. You may be able to
replace swt.jar if that file even exists with a newer version if you
can't find a 3235 64-bit version. (GWT may have integrated those files
into the main JAR file which will make your life very difficult).
If you get stuck, well, the GWT -Compiler- won't need that library so
that will still work. Just can't use hosted mode.
"

Cheers,
Amit



On Sat, Sep 13, 2008 at 9:22 PM, bilahar A <[EMAIL PROTECTED]> wrote:

>
>
>A newbiew with GWT, wanted to explore it but cannot run
> the examples as they crash. I am on a AMD 64 Turion, Ubuntu 64-bit
> (Hardy Heron) and using sun java 6. I tried compiling firsnkst and
> then running the examples but it didnt help.
>
> Please help me. Tha
>
> :~/gwt-linux-1.5.0/samples/Hello$ sh Hello-shell
> Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/
> bilahari/gwt-linux-1.5.0/libswt-pi-gtk-3235.so: /home/bilahari/gwt-
> linux-1.5.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.(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.(Display.java:126)
>at com.google.gwt.dev.GWTShell.(GWTShell.java:302)
>
>
> Bilahari
>
> >
>


-- 
Warm Regards,
Amit Dhingra

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



Re: Embed Flex/Flash in GWT

2008-09-14 Thread Amit Dhingra
Hi Pete,
Can you please provide me link to the widget, as I might also wanna try
using it. :)

Cheers,
Amit Dhingra

On Sun, Sep 14, 2008 at 4:07 PM, Pete Kay <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I have a small Flex/Flash widget that can record voices.  Is it possible to
> embed that widget inside a GWT table cell?
>
> Any sample code showing how it can be done will be greatly appreciated.
>
> Thanks in advance for your kind help.
>
> Best Regards,
> Pete
>
> >
>


-- 
Warm Regards,
Amit Dhingra

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



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 12:43 PM, jakob.korherr
<[EMAIL PROTECTED]> wrote:
> Hmm. This would maybe help, although the SuggestBox is final and not
> really designed for extending.

You can work around that by maintaining your own version of
SuggestBox.  If you extract SuggestBox.java from gwt-user.jar and put
it in a source directory in your project that comes before
gwt-user.jar on the CLASSPATH, the GWT compiler will pick up the
extracted version instead of the version in gwt-user.jar.  You can
then modify the extracted version to suit your needs--whether that
means just removing the final keyword, or more invasive changes.  If
the "right" place to make the change is in a class other than
SuggestBox, just extract its source file instead.  If you come up with
a clean patch that looks generally useful, you could submit it for
inclusion in GWT 1.6, too.

> A great way would be changing the order of the events, so that the
> click event fires before the focus event. Do you thinkt this is
> possible - or even better: do you know a way to do this?

I think that might be difficult to impossible.  Ignore GWT for a
moment and consider just what the browser is doing: clicking on the
pop-up list causes the text box to lose focus.  I'm pretty sure every
browser will fire the lost-focus event on the text box before firing
the click event on the pop-up's element.  GWT can't do anything about
the order in which the browser delivers events, and the only way it
can fire lost-focus or click events for itself is by piggy-backing on
the browser-native events.

The only idea I have that might make it possible is to complicate
SuggestBox's event handling.  When the wrapped text box fires
onLostFocus, the SuggestBox could set up a delayed call to fire its
own onLostFocus, rather than firing it directly.  In the pop-up's
onClick listener, the delayed onLostFocus would then be canceled.  The
idea is that if focus is lost because some other widget has gained it,
then the delayed onFocusLost will fire.  If, on the other hand, focus
is lost because the pop-up has gained it, then the SuggestBox as a
whole hasn't really lost focus, so the pending onFocusLost can be
sanely canceled.

The biggest problem I see with the above approach is that it would
probably re-order related onFocusLost and onFocus events.  Normally,
if widget A loses focus to widget B, A's onLostFocus fires before B's
onFocus.  If widget A is a SuggestBox modified as above, though, then
I think B will fire onFocus before A fires onFocusLost.  Ideally,
that's not a problem--event driven programmes shouldn't normally
depend on the order of events being fired, I wouldn't think--but real
life is hardly ideal.

Ian

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



Re: slow scrolling in gwt

2008-09-14 Thread Amit Dhingra
Hi,
Though I am a newbie to GWT, but would like to ask if you are facing this on
both hosted and external browsers. As I had issues of slow switching between
tabs in hosted browser, but on firefox it runs fine.

Cheers,
Amit Dhingra

On Sat, Sep 13, 2008 at 3:39 AM, Czarna Foka <[EMAIL PROTECTED]> wrote:

>
> Hi
> I'm very exciting of power of gwt and I have great idea for web
> application but...
> One of component on my application will be group chat so I try do
> performance tests and it shows me that scrolling in gwt isn't very
> fast.
>
> I did chat component as HTML inside ScrollPanel and client side
> receive message from server and appends it on the end of HTML and next
> step is scrolling ScrollPanel to bottom. All works fine till when HTML
> contains more rows than about 2000. After this one more message cause
> that scrolling take 100% power of computer for short time (less 1
> second). I need optimize it, please help me maybe other component?
> In gmail chat this problem not appears, why? :)
>
> My procedure on client side looks like:
>
> 1. in loop add message(s) to StringBuilder
> 2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
> Widget)
> 3. ScrollPanel.scrollToBottom
>
> any suggestions?
>
>
> >
>


-- 
Warm Regards,
Amit Dhingra

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



Re: @EJB annotation

2008-09-14 Thread Len

Hi

That depends on your servlet container and not GWT. If your container
supports the @EJB injection then yes otherwise no. JBoss 5 does but
not 4 as far as I am aware.

Len


2008/9/14 Oleana <[EMAIL PROTECTED]>:
>
> Hi, can I use @EJB annotaion to call enterprose bean in gwt1.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: [ERROR]Failed to load module com.gwt.LoginCliente". Please see the log in the development shell for details.

2008-09-14 Thread Amit Dhingra
Hi Shi,
Please be sure that
com.gwtext.client.widgets.Panel
is supported by google gwt compiler.
As java.text.* and java.sql.* are not supported and if used, you will get
tonnes of errors.

Cheers,
Amit Dhingra



On Sun, Sep 14, 2008 at 2:57 PM, Shi <[EMAIL PROTECTED]> wrote:

>
> Hi, I'm new here, and beginners with GWT.
> I am using the plugin Cypal STudio for GWT, but I can not go forward
> because when I try to debug an error I always, when I declare and
> initialize variables in the onModuleLoad() method or I declare outside
> of the method and I initialize inside the method.
> I noticed that this happens with variables declared like instance of
> class imported from gwtext.
> The module is this:
> 
> package com.gwt.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.Window;
> import com.gwtext.client.widgets.Panel;
>
>
> public class LoginCliente implements EntryPoint {
>
>private Panel loginPanel = null;
>
>public void onModuleLoad() {
>Window.alert("ciao");
>
>Panel formPanel = new Panel();
> }}
>
>
> --
> LoginCliente.gwt.xml
> 
> 
>
>
>
>
>
>
> 
>
> --
>
>
> Have you any idea?
> thank you!
>
> >
>


-- 
Warm Regards,
Amit Dhingra

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



Re: slow scrolling in gwt

2008-09-14 Thread Len

Hi

Perhaps a way is not to keep all the lines in the scroll panel - only
the last 100 or so. When new lines are added after 100 remove the old
ones and if you need to, keep them in a buffer. Then when someone
scrolls back up past 100 lines you can add them back to the buffer.
In other words the scroll bar is virtual.


Hth
Len

2008/9/13 Czarna Foka <[EMAIL PROTECTED]>:
>
> Hi
> I'm very exciting of power of gwt and I have great idea for web
> application but...
> One of component on my application will be group chat so I try do
> performance tests and it shows me that scrolling in gwt isn't very
> fast.
>
> I did chat component as HTML inside ScrollPanel and client side
> receive message from server and appends it on the end of HTML and next
> step is scrolling ScrollPanel to bottom. All works fine till when HTML
> contains more rows than about 2000. After this one more message cause
> that scrolling take 100% power of computer for short time (less 1
> second). I need optimize it, please help me maybe other component?
> In gmail chat this problem not appears, why? :)
>
> My procedure on client side looks like:
>
> 1. in loop add message(s) to StringBuilder
> 2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
> Widget)
> 3. ScrollPanel.scrollToBottom
>
> any suggestions?
>
>
> >
>

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



Re: [ERROR]Failed to load module com.gwt.LoginCliente". Please see the log in the development shell for details.

2008-09-14 Thread Len

Hi

Just off the top of my head the Panel class is abstract and you cant
create one. Perhaps you want a concrete panel like a VerticalPanel ?
However looking again i see that is the GwtExt panel so not sure ...

Len

2008/9/14 Shi <[EMAIL PROTECTED]>:
>
> Hi, I'm new here, and beginners with GWT.
> I am using the plugin Cypal STudio for GWT, but I can not go forward
> because when I try to debug an error I always, when I declare and
> initialize variables in the onModuleLoad() method or I declare outside
> of the method and I initialize inside the method.
> I noticed that this happens with variables declared like instance of
> class imported from gwtext.
> The module is this:
> 
> package com.gwt.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.Window;
> import com.gwtext.client.widgets.Panel;
>
>
> public class LoginCliente implements EntryPoint {
>
>private Panel loginPanel = null;
>
>public void onModuleLoad() {
>Window.alert("ciao");
>
>Panel formPanel = new Panel();
> }}
>
>
> --
> LoginCliente.gwt.xml
> 
> 
>
>
>
>
>
>
> 
>
> --
>
>
> Have you any idea?
> thank you!
>
> >
>

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



[ERROR]Failed to load module com.gwt.LoginCliente". Please see the log in the development shell for details.

2008-09-14 Thread Shi

Hi, I'm new here, and beginners with GWT.
I am using the plugin Cypal STudio for GWT, but I can not go forward
because when I try to debug an error I always, when I declare and
initialize variables in the onModuleLoad() method or I declare outside
of the method and I initialize inside the method.
I noticed that this happens with variables declared like instance of
class imported from gwtext.
The module is this:

package com.gwt.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.gwtext.client.widgets.Panel;


public class LoginCliente implements EntryPoint {

private Panel loginPanel = null;

public void onModuleLoad() {
Window.alert("ciao");

Panel formPanel = new Panel();
}}


--
LoginCliente.gwt.xml










--


Have you any idea?
thank you!

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



SQL DateTime object to java.util.Date through JSON

2008-09-14 Thread Amit Dhingra

I have JSON SQL DateTime objects, which I wish to convert to
java.util.Date objects, for which I have coded as below... (I am using
com.google.gwt.i18n.client.DateTimeFormat.parse for conversion)

if (...) {
.
.
.
System.out.println(sDate); //sDate is derived from a JSON obj
System.out.println(eDate); //eDate is derived from a JSON obj

Date stDate  = DateTimeFormat.getFormat("-MM-dd
HH:MM:SS").parse(sDate);
Date endDate = DateTimeFormat.getFormat("-MM-dd
HH:MM:SS").parse(eDate);

System.out.println(sDate + " & " + eDate + " Converted Dates are " +
stDate.toString() + " & " + endDate.toString());
.
.
.
}

The code above gives the following output on the console

2008-09-01 10:00:00
2008-09-01 10:30:00
2008-09-01 10:00:00 & 2008-09-01 10:30:00 Converted Dates are Mon Sep
01 10:00:00 IST 2008 & Tue Jun 01 10:00:00 IST 2010
2008-09-01 10:30:00
2008-09-01 11:00:00
2008-09-01 10:30:00 & 2008-09-01 11:00:00 Converted Dates are Tue Jun
01 10:00:00 IST 2010 & Mon Sep 01 11:00:00 IST 2008
2008-09-03 10:00:00
2008-09-03 10:30:30
2008-09-03 10:00:00 & 2008-09-03 10:30:30 Converted Dates are Wed Sep
03 10:00:00 IST 2008 & Thu Jun 03 10:00:00 IST 2010
2008-09-04 10:00:00
2008-09-04 10:30:00
2008-09-04 10:00:00 & 2008-09-04 10:30:00 Converted Dates are Thu Sep
04 10:00:00 IST 2008 & Fri Jun 04 10:00:00 IST 2010

Here I am correctly receiving the JSON object, but while converting it
into the java object using
DateTimeFormat.getFormat("-MM-dd HH:MM:SS").parse
I get wrong results, e.g.
here
2008-09-01 10:00:00
2008-09-01 10:30:00
2008-09-01 10:00:00 & 2008-09-01 10:30:00 Converted Dates are Mon Sep
01 10:00:00 IST 2008 & Tue Jun 01 10:00:00 IST 2010

The converted date is Tue Jun 01 10:00:00 IST 2010 which is incorrect.

And I see that it is just the second date which is every time wrong!!!

Am not able to get hold of the flaw here.
Where I might be going wrong???

Thanks in advance.

Thanks & Regards,
Amit

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



slow scrolling in gwt

2008-09-14 Thread Czarna Foka

Hi
I'm very exciting of power of gwt and I have great idea for web
application but...
One of component on my application will be group chat so I try do
performance tests and it shows me that scrolling in gwt isn't very
fast.

I did chat component as HTML inside ScrollPanel and client side
receive message from server and appends it on the end of HTML and next
step is scrolling ScrollPanel to bottom. All works fine till when HTML
contains more rows than about 2000. After this one more message cause
that scrolling take 100% power of computer for short time (less 1
second). I need optimize it, please help me maybe other component?
In gmail chat this problem not appears, why? :)

My procedure on client side looks like:

1. in loop add message(s) to StringBuilder
2. HTML.setHTML(stringbuilder.tostring) (HTML is as ScrollPanel's
Widget)
3. ScrollPanel.scrollToBottom

any suggestions?


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



Re: Dialog Box wouldn't open in deployment mode

2008-09-14 Thread kojo

I inspected the script under firebug and discovered that a 'typeError'
was caught. The code still works in hosted mode anyway. I have
attached the section of the code responsible.

11801 try {
11802 for (j = 0; j < this
$static.departmentListBox.element.options.length; ++j) {
11803 if ($matches($getItemText_0(this$static.departmentListBox, j),
employee.department.name_0)) { // offending line
11804 this$static.departmentListBox.element['selectedIndex'] = j;
11805 }
11806 }
11807 }
11808 catch ($e0) {
11809 $e0 = caught_0($e0);
11810 if (instanceOf($e0, 49)) {
11811 }
11812 else
11813 throw $e0;
11814 }
11815}
11816

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



Gwt + Openlayers + Beyond (but no so far)

2008-09-14 Thread Javier Mena

Hi,

I'm trying to use OpenLayers in Gwt, but I don't know to make
something. I want that everytime a user press a button, the
application create new panel a put a map there.

I don't know how to do it even in JS.

Currently my approach is somthing like this:

public class X {
  public onClick() {
Label x = new Label();
x.getElement().setId("mymap");
panel.add(x);
MyJsHelp.createMap("mymap");
  }
}

public class MyJsHelp {
  public native void MyJsHelp(String s) /*-{
var map = new $wnd.OpenLayers.Map("mymap");

  }-*/
}

The problem is that this code doesn't work, and I think it's because
Gwt is not creating the label before createMap is called.

If I execute the line:
   MyJsHelp.createMap("mymap");

In another event, and after creating the div, the code works.

Any ideas? Adding a listener to draw after rendering? Force Gwt to
create the label before createMap is called?

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



Embed Flex/Flash in GWT

2008-09-14 Thread Pete Kay
Hi,

I have a small Flex/Flash widget that can record voices.  Is it possible to
embed that widget inside a GWT table cell?

Any sample code showing how it can be done will be greatly appreciated.

Thanks in advance for your kind help.

Best Regards,
Pete

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



Re: Using EasyMock in GWT Test Cases

2008-09-14 Thread Waleed Zedan
Hi,

Try to include the easy mock jars in the classpath of the gwt compiler.

br.

On Sun, Sep 14, 2008 at 2:05 AM, ksachdeva <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I am trying to use the EasyMock in my unit tests and I am getting a
> weired behavior. Here are the details of my configuration:
>
> Windows Vista SP1; GWT 1.5.2; EasyMock 2.4; Eclipse 3.4
>
> The error I am getting when I run my MyTest-hosted.launch
> configuration from eclipse:
>
> Compiling Java source files in module 'com.myns.MyModule.JUnit'
>   Removing units with errors
>  [ERROR] Errors in 'file:/C:/---removed-for-clarity--/test/
> com/myns/client/subpackage/MyModuleTest.java'
> [ERROR] Line 25: No source code is available for type
> org.easymock.EasyMock; did you forget to inherit a required module?
>
> From error it seems like it is looking for JUnit / EasyMock
> sources 
>
> My understanding was that in hosted mode there would be no conversion
> to JavaScript so I should be able to use EasyMock to mock some of my
> classes.
>
> Here is how my methods look in the test case:
>
>  public String getModuleName() {
>return "com.myns.MyModule";
>  }
>
>  public void testSimple() {
>  SomeInterface mock = createMock(SomeInterface.class);
>  }
>
> If I remove the code for mocking from testSimple() then I can see that
> my unit test work !!!
>
> Please help
>
> Regards
> Kapil
>
>
> >
>


-- 
Waleed Zedan
SCJP 1.4 , CCNA

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



Re: GWT

2008-09-14 Thread Herman

can you post the solution to this problem? I am running into the same
problem and I am not using eclipse for IDE, can that contribute to the
problem?

On Sep 6, 7:33 pm, Daniel <[EMAIL PROTECTED]> wrote:
> This issue has been solved thanks to the help of a very informative
> irc #gwt member.  :)
>
> On Sep 5, 3:28 pm, Daniel <[EMAIL PROTECTED]> wrote:
>
> > Hi all,
>
> > GWT is great!
>
> > I'm following through the tutorial, but I've gotten stuck on the RPC
> > stuff.  When I run it I get this error:
>
> > -
>
> > [ERROR] Unable to instantiate
> > 'com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl'
> > java.lang.ClassNotFoundException:
> > com.google.gwt.sample.stockwatcher.server.StockPriceServiceImpl
> >         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> >         at java.security.AccessController.doPrivileged(Native Method)
> >         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> >         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> >         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> >         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> >         at java.lang.Class.forName0(Native Method)
> >         at java.lang.Class.forName(Class.java:169)
> >         at
> > com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServle­t.java:
> > 952)
> >         at
> > com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
> > 278)
> >         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> >         at
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio­nFilterChain.java:
> > 237)
> >         at
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC­hain.java:
> > 157)
> >         at
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j­ava:
> > 214)
> >         at
> > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
> > 104)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > 520)
> >         at
> > org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex­tValve.java:
> > 198)
> >         at
> > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j­ava:
> > 152)
> >         at
> > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
> > 104)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > 520)
> >         at
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> > 137)
> >         at
> > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
> > 104)
> >         at
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> > 118)
> >         at
> > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
> > 102)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > 520)
> >         at
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav­a:
> > 109)
> >         at
> > org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte­xt.java:
> > 104)
> >         at
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> > 520)
> >         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
> > 929)
> >         at 
> > org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
> > 160)
> >         at
> > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> > 799)
> >         at org.apache.coyote.http11.Http11Protocol
> > $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
> >         at
> > org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
> > 577)
> >         at org.apache.tomcat.util.threads.ThreadPool
> > $ControlRunnable.run(ThreadPool.java:683)
> >         at java.lang.Thread.run(Thread.java:619)
>
> > followed by:
>
> > [ERROR] Unable to dispatch request
>
> > -
>
> > I'm guessing that gwt doesn't compile the server side stuff
> > automatically for debugging?
>
> > If so, would I just create a directory called "stockPrices" in "www/
> > com.google.gwt.sample.stockwatcher.StockWatcher", and compile the
> > servlet there, and if so, would I still need to create entries in a
> > "WEB-INF/whatever.xml" file?
>
> > Just a little confused because the tutorial made it seem like gwt
> > handled the servlets automatically.
>
> > Thanks for the help 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 un

Integrating a help system

2008-09-14 Thread [EMAIL PROTECTED]

Does anyone have a recommendation for a integrated help system that
plays nice with GWT?

Right now we are thinking of using CHM to author then exporting to
HTML.  We would still need to build hooks into our widgets to provide
the "context" piece of the context help.

Anyone have something that works better?

TIA

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



@EJB annotation

2008-09-14 Thread Oleana

Hi, can I use @EJB annotaion to call enterprose bean in gwt1.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT compilation Error

2008-09-14 Thread [EMAIL PROTECTED]

Hi group,

i am new to this tool. i need help from any one of you. when i try to
run my build i get the following error. any help to resolve this
greatly accepted.

[jar] Building jar: C:\Users\Myproject\EMR20-PT03-
[EMAIL PROTECTED]
\lib\EMR20-Base.jar
gwt-compile:
 [java] Loading module
'com.emr.pt03.accountgroup01.AccountGroup01'
 [java]Loading inherited module 'com.google.gwt.user.User'
 [java]   Loading inherited module 'com.google.gwt.core.Core'
 [java]  [ERROR] Line 23: Unexpected element 'define-
linker'
 [java]  [ERROR] Failure while parsing XML
 [java] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
 [java] at
com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement(DefaultSchema.java:
80)
 [java] at
com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:93)
 [java] at
com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema.java:93)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:171)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
 [java] at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
 [java] at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
 [java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
 [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
 [java] at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.access$100(ReflectiveParser.java:48)
 [java] at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
366)
 [java] at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
 [java] at com.google.gwt.dev.cfg.ModuleDefSchema
$BodySchema.__inherits_begin(ModuleDefSchema.java:143)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
 [java] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown
Source)
 [java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 [java] at java.lang.reflect.Method.invoke(Unknown Source)
 [java] at
com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(HandlerMethod.java:
223)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.startElement(ReflectiveParser.java:242)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:
454)
 [java] at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:
217)
 [java] at
org.apache.xerces.impl.XMLNamespaceBinder.emptyElement(XMLNamespaceBinder.java:
594)
 [java] at
org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(XMLDTDValidator.java:
777)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:
748)
 [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl
$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:
1453)
 [java] at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:
333)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
524)
 [java] at
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:
580)
 [java] at
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
 [java] at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:
1169)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.parse(ReflectiveParser.java:295)
 [java] at com.google.gwt.dev.util.xml.ReflectiveParser
$Impl.access$100(ReflectiveParser.java:48)
 [java] at
com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java:
366)
 [java] at
com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java:
175)
 [java] at com.google.gwt.d

I cannot run sample applications that came with GWT

2008-09-14 Thread bilahar A


A newbiew with GWT, wanted to explore it but cannot run
the examples as they crash. I am on a AMD 64 Turion, Ubuntu 64-bit
(Hardy Heron) and using sun java 6. I tried compiling firsnkst and
then running the examples but it didnt help.

Please help me. Tha

:~/gwt-linux-1.5.0/samples/Hello$ sh Hello-shell
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/
bilahari/gwt-linux-1.5.0/libswt-pi-gtk-3235.so: /home/bilahari/gwt-
linux-1.5.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.(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.(Display.java:126)
at com.google.gwt.dev.GWTShell.(GWTShell.java:302)


Bilahari

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



How to address the deprecated method readLine()

2008-09-14 Thread Vasu

Hi !

I'm a newbie in Java programming. I created a java file and tried to
compile and got following message :

ICanReadApp.java:12: warning: [deprecation] readLine() in
java.io.DataInputStrea
m has been deprecated
  name=keyboardInput.readLine();

Can anybody help solve how to read a keyboard input if the above code
has been deprecated.

Thanks in advance for your help!
Vasu

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



GWT + Entity Bean

2008-09-14 Thread Bálint Kriván
Hi!

I'm having an issue, and I hope someone can help me, because GWT looks very
great.

So I've started to make a very simple application.
I have an EJB package which contains the Session Beans and the Entity Beans.
In the WAR project I've set up the GWT:
I've created an Entry Point and a Service (RPC call) - In the implemented
RemoteServiceServlet I can use the Session Beans, which is connected to
Entity Beans. So I can make new objects to the database. It works fine.

But I would like to be able to retrieve objects as well, so I've created a
retrieve call aswell to this Service, and the returned value should be
List (Topic is my Entity Bean).
But when I want to compile my project, it says that:
[ERROR] Errors in
'file:/home/balint/NetBeansProjects/GWTForum/GWTForum-war/src/java/hu/krivan/client/service/TopicService.java'
[ERROR] Line 20: No source code is available for type hu.krivan.model.Topic;
did you forget to inherit a required module?

(This is in Line 20:
public List retrieveTopics();
)

TopicService is my interface which implements RemoteService. How can I use
my List in the UI (so I would like to build a FlexTable based on
these Topic objects.)

Very thanks for your help!

Regards,
Kriván Bálint

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



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

Hmm. This would maybe help, although the SuggestBox is final and not
really designed for extending.

A great way would be changing the order of the events, so that the
click event fires before the focus event. Do you thinkt this is
possible - or even better: do you know a way to do this?


On Sep 14, 6:16 pm, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 14, 2008 at 11:56 AM, jakob.korherr
>
> <[EMAIL PROTECTED]> wrote:
> > Any other ideas?
>
> Not really.  I haven't used SuggestBox, yet, so I'm really just guessing.
>
> Could you subclass SuggestBox or some part of the SuggestBox system to
> work around the behaviour you don't want?
>
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 11:56 AM, jakob.korherr
<[EMAIL PROTECTED]> wrote:
> Any other ideas?

Not really.  I haven't used SuggestBox, yet, so I'm really just guessing.

Could you subclass SuggestBox or some part of the SuggestBox system to
work around the behaviour you don't want?

Ian

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



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

Hi Ian - thanks for this fast reply!

I tried your suggestion, but it has the same affect. onLostFocus and
onChange are both fired before the Item is selected.

Any other ideas?


On Sep 14, 5:18 pm, "Ian Petersen" <[EMAIL PROTECTED]> wrote:
> On Sun, Sep 14, 2008 at 11:05 AM, jakob.korherr
>
> <[EMAIL PROTECTED]> wrote:
> > Has anyone got an idea to solve this problem?
>
> Why are you disabling the SuggestBox on loss of focus?  Can you
> disable it on change of value, instead?
>
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



CSS not work when using GWT4Gadgets

2008-09-14 Thread [EMAIL PROTECTED]

Hi all,

I try to build a Gadget with GWT4Gadgets. I added some basic CSS file,
but it seems to get not used. I tried to set the grids first column
color to blue with:
grid.getRowFormatter().setStyleName(0,"headerStyle);

In css I have:

.headerStyle { background-color: blue; }

In the module xml file it get "included" with:  

But it just seems to not work. Is there anything I miss ?

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



Re: Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread Ian Petersen

On Sun, Sep 14, 2008 at 11:05 AM, jakob.korherr
<[EMAIL PROTECTED]> wrote:
> Has anyone got an idea to solve this problem?

Why are you disabling the SuggestBox on loss of focus?  Can you
disable it on change of value, instead?

Ian

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



Problem with mouse selection of suggestions in SuggestBox which is disabled in onLostFocus

2008-09-14 Thread jakob.korherr

I am using a SuggestBox which I enable or disable with the help of a
FocusListener on the TextBox and a flag in the SuggestOracle. This
works very fine when I select a Suggestion via keyboard. However if I
select a Suggestion via mouse click the onLostFocus method closes the
SuggestionPopup before the Suggestion is selected.

I tried to solve this bug with the help of DeferredCommand, but then I
found out that the SuggestionMenu also uses this mechanism to fire the
SelectionCommand and so the Popup still closes before the
SelectionCommand is fired.

I also thought of using a Timer with a special delay to disable the
SuggestBox in the onLostFocus method, but this is the last thing I
want to do, because of very different execution durations of the
scripts in different browsers.

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



Multiple serialization policies generated

2008-09-14 Thread daniel.z

I'm using GWT 1.5.2 with hibernate4gwt 1.1b and the maven-
googlewebtoolkit2-plugin 2.0-beta20 and im currently getting multiple
differing serialization policy files (*.gwt.rpc) generated. I wondered
if there is one file per service interface as i did not find any hint
on multiple .gwt.rpc files anywhere? Is there any explenation how this
can happen?

In addition i wondered if the entries in this files are correct since
i did not see such in there before, several classes are contained
twice. one time "normal" and another prefixed by "[L" and suffixed by
";". For example:
java.lang.String, true
[Ljava.lang.String;, true

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



Re: GWT 1.5.2 Hosted Mode Browser Error on Linux

2008-09-14 Thread daniel.z

Obviously I had to open my eyes :) But I did not find anything that I
could explain the described behavior with. :(

On 12 Sep., 11:24, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 11 sep, 17:03, "daniel.z" <[EMAIL PROTECTED]>
> wrote:
>
> > MOZILLA_FIVE_HOME is set to an installation of XULRunner. And as
> > everything works fine with GWT 1.5.0 I expect that my installation
> > generally is ok but something has changed between 1.5.0 and 1.5.2. I
> > tried to find out using gwt subversion repository, but I did not find
> > a 1.5.2 tag there. :(
>
> http://code.google.com/p/google-web-toolkit/source/browse/tags/1.5.2
>
> or if you'd like the subversion 
> path:http://google-web-toolkit.googlecode.com/svn/tags/1.5.2
>
> List of changes until 
> 1.5.2:http://code.google.com/p/google-web-toolkit/source/list?path=/tags/1
>
> Hope you'll find what you're looking for...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Locking assertion failure

2008-09-14 Thread Eddy

Hello,

I am not very keen on modifying a jdk module.
Can you check if GWT compilation files are identical before and after
the change?
after all if it doesn't affect the compilation phase is not a big deal
Thank You
Edoardo

On Sep 5, 7:40 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the same problem on my ubuntu, with the built-in java 5 jdk...
> I've found the solution :)
>
> http://necessaryandsufficient.blogspot.com/2008/06/i-tried-to-build-g...
>
> On 3 sep, 15:44, Eddy <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > after upgrading to GWT 1.5 during compilation I am getting this
> > strange error "Locking assertion failure" compilation succeeds  and
> > the application seems working.
>
> > Any ideas? trace following
>
> > Edoardo
>
> > [EMAIL PROTECTED] ~/workspace/jras]$ ./Page-compile
> > Compiling module it.domain.ui.Page
> > Locking assertion failure.  Backtrace:
> > #0 /usr/lib/libxcb-xlib.so.0 [0x854767]
> > #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0x854831]
> > #2 /usr/lib/libX11.so.6(_XReply+0x244) [0x932f64]
> > #3 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/libmawt.so
> > [0xce34adce]
> > #4 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/libmawt.so
> > [0xce334d77]
> > #5 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/libmawt.so
> > [0xce334ef3]
> > #6 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/
> > libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26)
> > [0xce335136]
> > #7 [0xf15d0008]
> > #8 [0xf15c9b6b]
> > #9 [0xf15c9b6b]
> > #10 [0xf15c7236]
> > #11 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf781deec]
> > #12 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf79edae8]
> > #13 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf781dd1f]
> > #14 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/
> > libjvm.so(JVM_DoPrivileged+0x32d) [0xf787b82d]
> > #15 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/
> > libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security 
> > _PrivilegedAction_2+0x3d)
> > [0xf756630d]
> > #16 [0xf15cf898]
> > #17 [0xf15c9a94]
> > #18 [0xf15c7236]
> > #19 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf781deec]
> > Locking assertion failure.  Backtrace:
> > #0 /usr/lib/libxcb-xlib.so.0 [0x854767]
> > #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0x85490e]
> > #2 /usr/lib/libX11.so.6 [0x932109]
> > #3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0x9281f6]
> > #4 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/libmawt.so
> > [0xce3340b9]
> > #5 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/libmawt.so
> > [0xce334303]
> > #6 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/libmawt.so
> > [0xce334fa1]
> > #7 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/xawt/
> > libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26)
> > [0xce335136]
> > #8 [0xf15d0008]
> > #9 [0xf15c9b6b]
> > #10 [0xf15c9b6b]
> > #11 [0xf15c7236]
> > #12 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf781deec]
> > #13 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf79edae8]
> > #14 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/libjvm.so
> > [0xf781dd1f]
> > #15 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/server/
> > libjvm.so(JVM_DoPrivileged+0x32d) [0xf787b82d]
> > #16 /usr/java/jdk1.5.0_16_x86_32/jre/lib/i386/
> > libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security 
> > _PrivilegedAction_2+0x3d)
> > [0xf756630d]
> > #17 [0xf15cf898]
> > #18 [0xf15c9a94]
> > #19 [0xf15c7236]
> > Compilation succeeded
> > Linking compilation into ./default-ear/default-war/it.domain.ui.Page
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: My app crashes Safari on reload... how do I find the problem?

2008-09-14 Thread Nevin Freeman

Well the problem is a bit different than I thought. I'm not sure if it
is somehow specific to my system, but it's certainly not my specific
application. When I make a new GWT app with the applicationCreator
script (no eclipse project), compile it, open the host html page in
Safari (Version 3.1.2 (5525.20.1)) and hit the refresh button, it
quits. This happens with both versions of gwt-mac that I have (1.5.0
and 1.5.2).

I've filed an issue, and attached the crash report.

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

On Sep 13, 4:54 pm, "Eric Ayers" <[EMAIL PROTECTED]> wrote:
> GWT team member Kelly Norton asked if you could get a crash dump from
> Safari, as well as some more information on how to reproduce the problem.
>
> -Eric
>
> On Sat, Sep 13, 2008 at 5:02 PM, Nevin Freeman <[EMAIL PROTECTED]>wrote:
>
>
>
>
>
> > It works fine in hosted mode, and the crash happens only when the
> > browser refresh button is clicked. I like the idea of inserting a few
> > window.alerts to trace how far it makes it. I'll post here with
> > progress, though it might be a bit since there are other issues that
> > have precedence.
>
> > Thanks,
> > Nevin
>
> > On Sep 12, 6:02 pm, "Freeland Abbott" <[EMAIL PROTECTED]>
> > wrote:
> > > So loading works, but reloading the identical URL (same history token or
> > > lack thereof, etc.) takes the browser down?!  Wild.
> > > Not that I can see why it should matter, but by "reload" are we talking
> > > about something you do programmatically (e.g. META refresh,
> > Window.open(),
> > > etc.), pressing the loopy arrow button, or hitting return again in the
> > > browser?
>
> > > The first thing I would check, though, is whether and how far things get
> > on
> > > the reload.  For example, if you put a Window.alert early in
> > onModuleLoad(),
> > > is that reached?  Can you watch what happens "on the wire" (or near
> > > enough)... is the hosting page received, the *.nocache.js selector
> > script,
> > > the MD5-named compiled page?
>
> > > Also, does it misbehave in hosted mode?
>
> > > On Fri, Sep 12, 2008 at 7:03 PM, Nevin Freeman <[EMAIL PROTECTED]
> > >wrote:
>
> > > > My app uses GWT, and the gwt-google-apis maps library. It loads
> > > > perfectly fine in all browsers including Safari, but refreshing the
> > > > app in Safari (3) reliably causes it to crash. I sent a report to
> > > > Apple, figuring a browser crash is more their problem than GWT's, but
> > > > I'd still like to try and make my app be reloadable in all browsers.
> > > > Where do I even start with something like this?
>
> > > > Thanks,
> > > > Nevin
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Best solution for client-side graphing in GWT?

2008-09-14 Thread chiluveri ramesh

i want to open a new window when i clicked the submit button.if we use
window.open() ,it will open a new window at a time.but i want ,window
to be open first small size,at last it should be 400px,400px
for example see www.ribbit.com

i want this functionality in  GWT/java script

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