Re: Unchecked exceptions from server to client

2010-09-15 Thread Kasper Hansen
> Its a feature, not a defect.

You are quite right.

> You have to explicitly declare any methods you want to send to the client. 
> Without this declaration, GWT would have had to create javascript code for 
> every RuntimeException in the system - and that would certainly lead to code 
> bloat.

True - I wonder if there is another solution. Like a special
GWTRuntimeException you can extend into your own exceptions, so GWT
knows only to generate javascript code for them ?

How does that sound ?


On Thu, Sep 16, 2010 at 8:21 AM, Sripathi Krishnan
 wrote:
>>
>> Does anyone have a reason for why I should not report this a bug in the 
>> issue tracker ?
>
> Its a feature, not a defect.
> You have to explicitly declare any methods you want to send to the client. 
> Without this declaration, GWT would have had to create javascript code for 
> every RuntimeException in the system - and that would certainly lead to code 
> bloat.
> --Sri
>
>
> On 16 September 2010 11:26, Kasper Hansen  wrote:
>>
>> After closer examination, this solution is not good enough. Examine the 
>> stacktrace below;
>>
>> SEVERE: [1284616090213000] javax.servlet.ServletContext log: Exception while 
>> dispatching incoming RPC call
>>
>> com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public 
>> abstract void 
>> com.netgazelle.client.service.AccountService.createAccount(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
>>  throws com.netgazelle.shared.CreateException' threw an unexpected 
>> exception: com.netgazelle.shared.DuplicatePhoneCreationException
>>
>> at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)
>>
>> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581)
>>
>> at 
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
>>
>> at 
>> com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
>>
>> at 
>> com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>>
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>>
>> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>>
>> at 
>> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at 
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>>
>> at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>
>> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>>
>> at 
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>
>> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>>
>> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>
>> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>>
>> at 
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
>>
>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>
>> at 
>> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349)
>>
>> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
>>
>> at org.mortbay.jetty.Server.handle(Server.java:326)
>>
>> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>>
>> at 
>> org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
>>
>> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>>
>> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>>
>> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>>
>> at 
>> org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
>>
>> at 
>> org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
>>
>> Caused by: com.netgazelle.shared.DuplicatePhoneCreationException
>>
>> at 
>> com.netgazelle.server.manager.AccountManager.createAccount(AccountManager.java:285)
>>
>> at 
>> com.netgazelle.server.service.AccountServiceImpl.createAccount(AccountServiceImpl.java:74)
>>
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav

Re: Unchecked exceptions from server to client

2010-09-15 Thread Sripathi Krishnan
>
> Does anyone have a reason for why I should not report this a bug in the
> issue tracker ?

Its a feature, not a defect.

You have to *explicitly* declare any methods you want to send to the client.
Without this declaration, GWT would have had to create javascript code for
every RuntimeException in the system - and that would certainly lead to code
bloat.

--Sri


On 16 September 2010 11:26, Kasper Hansen  wrote:

> After closer examination, this solution is not good enough. Examine the
> stacktrace below;
>
> SEVERE: [1284616090213000] javax.servlet.ServletContext log: Exception
> while dispatching incoming RPC call
>
> com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
> abstract void
> com.netgazelle.client.service.AccountService.createAccount(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
> throws com.netgazelle.shared.CreateException' threw an unexpected exception:
> com.netgazelle.shared.DuplicatePhoneCreationException
>
> at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(
> RPC.java:378)
>
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581
> )
>
> at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(
> RemoteServiceServlet.java:188)
>
> at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(
> RemoteServiceServlet.java:224)
>
> at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(
> AbstractRemoteServiceServlet.java:62)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>
> at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> ServletHandler.java:1166)
>
> at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(
> ServeBlobFilter.java:58)
>
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> ServletHandler.java:1157)
>
> at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(
> TransactionCleanupFilter.java:43)
>
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> ServletHandler.java:1157)
>
> at com.google.appengine.tools.development.StaticFileFilter.doFilter(
> StaticFileFilter.java:122)
>
> at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
> ServletHandler.java:1157)
>
> at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388
> )
>
> at org.mortbay.jetty.security.SecurityHandler.handle(
> SecurityHandler.java:216)
>
> at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182
> )
>
> at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765
> )
>
> at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>
> at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(
> DevAppEngineWebAppContext.java:70)
>
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152
> )
>
> at
> com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(
> JettyContainerService.java:349)
>
> at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152
> )
>
> at org.mortbay.jetty.Server.handle(Server.java:326)
>
> at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
>
> at org.mortbay.jetty.HttpConnection$RequestHandler.content(
> HttpConnection.java:938)
>
> at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
>
> at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
>
> at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
>
> at org.mortbay.io.nio.SelectChannelEndPoint.run(
> SelectChannelEndPoint.java:409)
>
> at org.mortbay.thread.QueuedThreadPool$PoolThread.run(
> QueuedThreadPool.java:582)
>
> Caused by: com.netgazelle.shared.DuplicatePhoneCreationException
>
> at com.netgazelle.server.manager.AccountManager.createAccount(
> AccountManager.java:285)
>
> at com.netgazelle.server.service.AccountServiceImpl.createAccount(
> AccountServiceImpl.java:74)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
>
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:597)
>
> at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(
> Runtime.java:100)
>
> at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562
> )
>
> ... 30 more
>
> My problem lies in RPC.java line
> 377; !RPCServletUtils.isExpectedException(serviceMethod, cause))
>
> The function RPCServletUtils.isExpectedException does not take this into
> consideration;
>
> --> if the cause is an unchecked exception
> --> if the cuase is an subclass instance of an defined and checked
> exc

Re: Unchecked exceptions from server to client

2010-09-15 Thread Kasper Hansen
After closer examination, this solution is not good enough. Examine the
stacktrace below;

SEVERE: [1284616090213000] javax.servlet.ServletContext log: Exception while
dispatching incoming RPC call

com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract void
com.netgazelle.client.service.AccountService.createAccount(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Date,java.lang.String,java.lang.String,java.lang.String,java.lang.String)
throws com.netgazelle.shared.CreateException' threw an unexpected exception:
com.netgazelle.shared.DuplicatePhoneCreationException

at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)

at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:581)

at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(
RemoteServiceServlet.java:188)

at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(
RemoteServiceServlet.java:224)

at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(
AbstractRemoteServiceServlet.java:62)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)

at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1166)

at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(
ServeBlobFilter.java:58)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(
TransactionCleanupFilter.java:43)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at com.google.appengine.tools.development.StaticFileFilter.doFilter(
StaticFileFilter.java:122)

at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(
ServletHandler.java:1157)

at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)

at org.mortbay.jetty.security.SecurityHandler.handle(
SecurityHandler.java:216)

at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)

at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)

at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)

at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(
DevAppEngineWebAppContext.java:70)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at
com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(
JettyContainerService.java:349)

at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

at org.mortbay.jetty.Server.handle(Server.java:326)

at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)

at org.mortbay.jetty.HttpConnection$RequestHandler.content(
HttpConnection.java:938)

at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)

at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)

at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)

at org.mortbay.io.nio.SelectChannelEndPoint.run(
SelectChannelEndPoint.java:409)

at org.mortbay.thread.QueuedThreadPool$PoolThread.run(
QueuedThreadPool.java:582)

Caused by: com.netgazelle.shared.DuplicatePhoneCreationException

at com.netgazelle.server.manager.AccountManager.createAccount(
AccountManager.java:285)

at com.netgazelle.server.service.AccountServiceImpl.createAccount(
AccountServiceImpl.java:74)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)

at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(
Runtime.java:100)

at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)

... 30 more

My problem lies in RPC.java line
377; !RPCServletUtils.isExpectedException(serviceMethod, cause))

The function RPCServletUtils.isExpectedException does not take this into
consideration;

--> if the cause is an unchecked exception
--> if the cuase is an subclass instance of an defined and checked exception

The workaround seems to be to define the explicit exceptions throws in the
service interface.

Does anyone have a reason for why I should not report this a bug in the
issue tracker ?

Thanks,

:-) Kasper

On Tue, Sep 14, 2010 at 8:50 AM, San0  wrote:
> Your service probably extends RemoteServiceServlet, which is catching
> all non declared exceptions. Simple solution is to create your own
> RemoteServiceServlet implementation with overridden:
> String processCall(String payload) throws SerializationException
> Something like this:
>
> try {
>  RPCRequest rpcRequest = RPC.decodeRequest(payload,
> delegate.getClass(), this);
>  on

Re: GWT 2.1M3 Expenses

2010-09-15 Thread Rud
Thomas,

Thanks, that let me make some headway but not there yet. My web.xml
now has:


   requestFactory
   com.google.gwt.requestfactory.server.RequestFactoryServlet
  
userInfoClass
us.k5rud.scaffold.server.GaeUserInformation
  


and it is finding the GaeUser... class because if I munge its name it
gives me a not found error.

What I have now is a 500 error retured with a JSON Exception about not
finding the class definition. The class RequestFactoryServlet is at
line 82:

RequestProcessor requestProcessor = new
JsonRequestProcessor();

Any ideas?

Appreciate the help...

Rud k5rud
http://www.mysticlakesoftware.com/



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



Re: GWT Spring integration - what is the best method in late 2010?

2010-09-15 Thread lalit
Deepak - I have used the following structure
   SpringApplicationContext, SpringGwtRemoteServiceServlet ,
PersonServiceImpl go into the server side code.
  The interfaces PersonService and PersonServiceAsync  become part of
GWT client side code.

Regarding wsdl files consumption see the section on JAX-WS here
http://www.lalitbhatt.com/tiki-index.php?page=JAX-WS especiall JAX-WS
client side section. This approach uses JAX-WS approach.

For data binding you can use JAXB. The details can be seen here
http://www.lalitbhatt.com/tiki-index.php?page=JAXB. JAX-WS anyway uses
it internally.

Also just a disclaimer, the approach I took is as per Spring4GWT
project so it's there idea.

Jason- I looked into your approach and conceptually they look similar
in terms of that you are redirecting the request to Spring MVC
infrastructure. IMHO the aprroach I took as per Sping4GWT is better as
one does not have to carry the SpringMVC baggage.

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



Re: GWT+RPC+TOMCAT_PROBLEM

2010-09-15 Thread Jaroslav Záruba
What does the onFailure method carry in its event/error parameter?
What does your Tomcat log say?

On Wed, Sep 15, 2010 at 4:25 PM, Jason Zarqua wrote:

> I am writing code in gwt, and I am using rpc as services for example
>
>
>
> import com.google.gwt.core.client.GWT;
> import com.google.gwt.user.client.rpc.RemoteService;
> import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
> import com.google.gwt.user.client.rpc.ServiceDefTarget;
>
> @RemoteServiceRelativePath("Service_products")
> public interface Service_products extends RemoteService {
>
>
>public String insert_products(String prod_id,String prod_desc,String
> valid_date);
>
>
>public static class Util {
>
>public static Service_productsAsync getInstance() {
>
>
>return GWT.create(Service_products.class);
>}
>}
>
> }
>
> and also implementation ...
> it is working in eclipse fine I am using cypal studio for creation
> packages and ...
>
> when I am doing export as .war file and deploying it into tomcat 6.0
> client side works fine but rpc has generate onFailure event
> what I have to do for this? please help me.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Uninstall Google plugin from Eclipse

2010-09-15 Thread Jaroslav Záruba
If you're on Windows with UAC On consider turning it Off... I have very bad
experience with UAC when it comes to un/installing stuff. (And I've made
such experience with Eclipse+GWT namely too.)
Otherwise ignore this.

Cheers
  JZ

On Thu, Sep 16, 2010 at 1:30 AM, hezjing  wrote:

> Hi
>
> After I uninstall Google App Engine Java SDK 1.3.7 from Eclipse with the
> following steps:
> Help -> About Eclipse -> Installation Details -> Google App Engine Java SDK
> 1.3.7 -> Uninstall
>
> I can still see the SDK listed here, Window -> Preferences -> Google -> App
> Engine
> I think this entry should be removed too?
>
> --
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: Development Mode performance with Chrome

2010-09-15 Thread Michael Kelley
I have a WebGL application as well that is very slow in development
mode.  Serialization takes minutes in development mode while it takes
seconds in compiled mode.

On Sep 15, 9:13 am, "e...@2010"  wrote:
> I would like to echo the sentiment of this request and in a similar
> vein (and maybe this deserves a separate post) there is also an issue
> with the performance of Chrome in compiled mode in the following
> scenario:
>
> I am using WebGL and when creating very large Float32Arrays (of maybe
> 90,000 elements) it takes an exceptionally long time. I am creating
> only a few of these large arrays and it is instantaneous in Firefox
> (less than two seconds as I would expect) but takes 8 minutes(!) in
> the latest version of Chrome (and all previous versions). One thing
> that I observe during these 8 minutes is that the page fault rate
> (Windows XP) is about 160,000 page faults per second (for the entire 8
> minutes) for the Chrome process and the VMSize is going up and down
> all the time (varying from say 40MB to 50MB) instead of growing
> monotonically. It certainly seems to be some kind of O(n*n) problem
> and maybe even the garbage collector could be running as each element
> of the array is allocated? I don't know.
>
> Any ideas?
>
> Thanks, Ed
>
> On Sep 15, 6:34 am, Brian  wrote:
>
>
>
> > Can Chrome be made faster in development mode?
>
> > I use Chrome as my default browser as I really like the development
> > tools, but it's slow with gwt development mode.  On a table cell,
> > there's a click handler.  The click handler displays a popup built
> > with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
> > takes approx 3 seconds from click to seeing the popup.  With Firefox
> > (3.5.11) it's 'almost' instant -- fast enough anyway that it's not a
> > performance issue.
>
> > In Web Mode with everything compiled, Chrome is super fast again, no
> > issues at all.  The perf loss is only in Dev mode.
>
> > Any ideas?  Should I switch over to the production branch of chrome
> > (and thus lose speed tracer)?
>
> > -Brian

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



Uninstall Google plugin from Eclipse

2010-09-15 Thread hezjing
Hi

After I uninstall Google App Engine Java SDK 1.3.7 from Eclipse with the
following steps:
Help -> About Eclipse -> Installation Details -> Google App Engine Java SDK
1.3.7 -> Uninstall

I can still see the SDK listed here, Window -> Preferences -> Google -> App
Engine
I think this entry should be removed too?

-- 

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



Re: Manually fire a mouseout event?

2010-09-15 Thread Bernmeister
Was wondering if you could do a little test for me please.  I've found
that if I fire an event such as

ChangeEvent.fireNativeEvent( Document.get().createChangeEvent(),
myListBox );

the event fires, but if I have any code immediately after, that code
does NOT get executed.

For example if I have

Window.alert( "here" );
ChangeEvent.fireNativeEvent( Document.get().createChangeEvent(),
myListBox );
Window.alert( "there" );

I get "here" but not "there".

So when you fire your event, could you please do the same thing (put
in a Window.alert or other code to see if it is executed AFTER the
event firing is called)?

FYI: I've logged the whole sordid story here
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/891d509f168efa34

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



Re: GWT Hosted Mode Slow

2010-09-15 Thread Chris Conroy
We're working on making it faster.

If you'd like to find out where it's spending its time (and perhaps provide
us another useful data point): update to trunk and add
-Dgwt.speedtracerlog="/path/to/myproject-speedtracer.html" to your JVM
arguments. Launch your app, maybe do a refresh or two. Install the Speed
Tracer Chrome 
Extension
(and give it access to local file URIs in chrome://extensions). Open the
resulting trace file in chrome, click "Open Monitor" and check out the
visualization. You'll want to expand the initial timeline view. The most
interesting data is going to be the summary pie chart you get from clicking
on the Module Init row. Feel free to share screenshots of those summary pie
charts in this thread.


On Wed, Sep 15, 2010 at 5:26 PM, Niels  wrote:

> I have a bit of a problem with GWT Hosted mode taking an awful long
> time to launch my app - even just reloading the page (with the server
> running and no code changes) takes forever.
>
> The CPU is at 100% for a couple of minutes and as far as I can tell
> none of my code executes (it's deep in the belly of some GWT code).
> The few times I've managed to hit pause in the debugger, the offending
> thread shows the stack trace below (the finer details may vary, but
> it's always in getRootPanel):
>
> My HTML is dead simple - a single table with two cells, so it's not
> like there is a million IDs to look up, and I only call getRootPanel
> once at the very beginning. I have never had this issue with other GWT
> projects I've worked on, and can't for the life of me figure out
> what's different this time (in fact I have another entry point in the
> same project that works just fine).
>
> Anyone have any ideas?
>
> String.substring(int, int) line: not available
> String.subSequence(int, int) line: not available
> Pattern.split(CharSequence, int) line: not available
> String.split(String, int) line: not available
> String.split(String) line: not available
> PathPrefixSet.includesResource(String) line: 237
> ZipFileClassPathEntry.computeApplicableResources(TreeLogger,
> PathPrefixSet) line: 146
> ZipFileClassPathEntry.findApplicableResources(TreeLogger,
> PathPrefixSet) line: 95
> ResourceOracleImpl.refresh(TreeLogger) line: 351
> ModuleDef.getResourcesOracle() line: 324
> StandardGeneratorContext.getResourcesOracle() line: 386
> CachedGeneratorContext.getResourcesOracle() line: 66
> AbstractLocalizableImplCreator.generateConstantOrMessageClass(TreeLogger,
> GeneratorContext, GwtLocale, JClassType) line: 97
> LocalizableGenerator.generate(TreeLogger, GeneratorContext, String,
> String) line: 121
> LocaleInfoGenerator.generateOneLocale(TreeLogger, GeneratorContext,
> LocalizableGenerator, String, Map>, GwtLocale)
> line: 309
> LocaleInfoGenerator.generateConstantsLookup(TreeLogger,
> GeneratorContext, SourceWriter, LocalizableGenerator, Set,
> GwtLocale, String) line: 259
> LocaleInfoGenerator.generate(TreeLogger, GeneratorContext, String)
> line: 226
> StandardGeneratorContext.runGenerator(TreeLogger, Class,
> String) line: 418
> RuleGenerateWith.realize(TreeLogger, StandardGeneratorContext, String)
> line: 38
> StandardRebindOracle$Rebinder.tryRebind(TreeLogger, String) line: 108
> StandardRebindOracle$Rebinder.rebind(TreeLogger, String,
> ArtifactAcceptor) line: 54
> StandardRebindOracle.rebind(TreeLogger, String, ArtifactAcceptor)
> line: 154
> ShellModuleSpaceHost.rebind(TreeLogger, String) line: 119
> ModuleSpaceOOPHM(ModuleSpace).rebind(String) line: 531
> ModuleSpaceOOPHM(ModuleSpace).rebindAndCreate(String) line: 414
> GWTBridgeImpl.create(Class) line: 39
> GWT.create(Class) line: 98
> LocaleInfo.() line: 36
> RootPanel.get(String) line: 195
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT plugin for google chrome in ubuntu

2010-09-15 Thread Chris Conroy
Short answer: You can use Chrome to run compiled applications, but currently
there is no DevMode support.

see http://code.google.com/p/google-web-toolkit/issues/detail?id=4325 for
all the gory details

On Wed, Sep 15, 2010 at 12:53 AM, Ivermac  wrote:

> when are expecting the GWT developer plugin for google chrome?or is
> there a way i can use google chrome to run my GWT applications?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: GWT 1.5.3 and gwtext-2.0.4

2010-09-15 Thread Guillermo Sanchez
SOLVED
The problems was that I mixed GWT-EXT with GXT, so the solution was remove
GXT library and now works perfect

-- 
Guillermo Sánchez

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



Re: IE 9 Beta exception in IE9Standards mode on button creation

2010-09-15 Thread Thomas Broyer


On 15 sep, 21:30, Brian  wrote:
> Just downloaded the IE9 beta, and ran my site through it, but I'm
> getting exceptions.  They only occur in "Document Mode: IE9 Standards"
> -- everything seems to work in the other Document Modes (IE8
> Standards, etc).
>
> The easiest way to see an exception is having a button made in a
> UIBuilder class.  The pretty javascript is:
>
> function com_google_gwt_user_client_ui_Button_Button__V(){
> // Exception here:
>   this.com_google_gwt_user_client_ui_UIObject_element =
> $doc.createElement($intern_295);
>   this.com_google_gwt_user_client_ui_UIObject_element[$intern_296] =
> $intern_297;
>
> }
>
> Maybe I don't have something set right on this IE9 beta... ?

See http://code.google.com/p/google-web-toolkit/issues/detail?id=5125
(the exact issue you're facing is issue 5058)

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



Re: is it a regression or a bug?

2010-09-15 Thread Thomas Broyer


On 15 sep, 14:38, belin  wrote:
> Hi
> i'm using now gwt 2.x with eclipse, and i'm not able now to debug with
> the -noserver option as i did with the previous versions. With the
> current version (2.x) debugging is done thank to a plugging installed
> into a browser (IE, Chrome etc). This pluggin seem to work only with
> the Jetty embedded into gwt library.
> Please how to solve this issue?

No, the plugin works OK with -noserver; but it is only "triggered" if
you have a ?gwt.codesvr= in the URL. If you pass -startUrl 
http://myserver/foo.html
to DevMode, it'll ask you to copy/paste the modified URL into your
browser (or directly launch the browser if possible)

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



Re: GWT 2.1M3 Expenses

2010-09-15 Thread Thomas Broyer


On 15 sep, 07:43, Rud  wrote:
> I got the Expenses example from the repository. I stipped it down to
> just the Scaffold portiong to try understanding the new architecture.
> I got it running so it would put up the web page but with, obviously,
> no support for actions.
>
> Around line 80 of Scaffold.jave I enabled the line which requests user
> information. It stopped working so I split the line into:
>
>                 UserInformationRequest uir =
> requestFactory.userInformationRequest();
>                 String href = Location.getHref();
>                 RecordRequest  rr =
> uir.getCurrentUserInformation(href);
>                 rr.fire(receiver);
>
> They all execute but at the call to 'fire' it dies with an error that
> the "gwtRequest" cannot be found. This is a servlet request but I
> cannot find a servlet in the code. The GaeUserInformation class would
> appear to be what is needed but it isn't a servlet. Nothing else in a
> 'server' direcotry references user information.

The servlet is simply
com.google.gwt.requestfactory.server.RequestFactoryServlet; contrary
to GWT-RPC it works by reflection over the classes (the Record class
name --or is it the request class name?-- is sent over the wire,
loaded from classpath, server-side class extracted from the annotation
on the class)

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



GWT 2.1M3 Expenses

2010-09-15 Thread Rud
I got the Expenses example from the repository. I stipped it down to
just the Scaffold portiong to try understanding the new architecture.
I got it running so it would put up the web page but with, obviously,
no support for actions.

Around line 80 of Scaffold.jave I enabled the line which requests user
information. It stopped working so I split the line into:

UserInformationRequest uir =
requestFactory.userInformationRequest();
String href = Location.getHref();
RecordRequest  rr =
uir.getCurrentUserInformation(href);
rr.fire(receiver);

They all execute but at the call to 'fire' it dies with an error that
the "gwtRequest" cannot be found. This is a servlet request but I
cannot find a servlet in the code. The GaeUserInformation class would
appear to be what is needed but it isn't a servlet. Nothing else in a
'server' direcotry references user information.

Is there something new in the way of getting user information under
2.1M3 or AppEngine 1.3.6?

Any suggestions on how to proceed? This shouldn't be critical since it
isn't part of the new architecture but frustrating not to understand
what is a happening.

Rud K5RUD

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



GWT+RPC+TOMCAT_PROBLEM

2010-09-15 Thread Jason Zarqua
I am writing code in gwt, and I am using rpc as services for example



import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.client.rpc.ServiceDefTarget;

@RemoteServiceRelativePath("Service_products")
public interface Service_products extends RemoteService {


public String insert_products(String prod_id,String prod_desc,String
valid_date);


public static class Util {

public static Service_productsAsync getInstance() {


return GWT.create(Service_products.class);
}
}

}

and also implementation ...
it is working in eclipse fine I am using cypal studio for creation
packages and ...

when I am doing export as .war file and deploying it into tomcat 6.0
client side works fine but rpc has generate onFailure event
what I have to do for this? please help me.

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



GWT 1.5.3 and gwtext-2.0.4

2010-09-15 Thread Guille
Hi!
I am tryinig to run an application using GWT 1.5.3, gwtext-2.0.5 and
gwtextux-0.3 but I can't get an exception when I execute:
 fondoPanel = new Panel();   //import
com.gwtext.client.widgets.Panel;

>[ERROR] Unable to load module entry point class gds.cm.client.index (see 
>associated exception for details)
>com.google.gwt.core.client.JavaScriptException: (TypeError): $wnd.Ext has no 
>properties
 >fileName: jar:file:/home//librerias/gwtext-2.0.5/gwtext.jar!/com/
gwtext/client/widgets/Component.java
 >lineNumber: 118
 >stack: ()@jar:file:/home//librerias/gwtext-2.0.5/gwtext.jar!/com/
gwtext/client/widgets/>Component.java:118
>gwtOnLoad([object Window],"gds.cm.index","1.5")@:0
>gwtOnLoad(undefined,"gds.cm.index","http://localhost:8080/-war/gds.cm.index/";)@http://>localhost:8080/-war/gds.cm.index/hosted.html?gds_cm_index:20
>xc()@http://localhost:8080/-war/gds.cm.index/gds.cm.index.nocache.js:2
>()@http://localhost:8080/-war/gds.cm.index/gds.cm.index.nocache.js:9
>@http://localhost:8080/-war/gds.cm.index/hosted.html?gds_cm_index:39

>   at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
>   at com.gwtext.client.widgets.Component.(Component.java:108

This is my index.gwt.xml file:















In the public folder I copy under directory js: ext-all.js, resources/
and adapter/
In the src folder I copy under directory js: ext-all.js, resources/
and adapter/

I try some solutions but nothing,
Other post with similar problem is:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/12a3f887e054bf4f
I tried but doesn't work

Anybody have some idea?
Thanks

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



Manual Serialization

2010-09-15 Thread kjordan
I'm trying to use the built-in functions of GWT to serialize something
that's not going through regular RPC.  I've manually created a
ClientOracle and gotten the InputStream for the .gwt.rpc
where I got the  portion from the client.  I'm using
RPC.streamResponseForSuccess to write it to a ByteArrayOutputStream.
However, I get an exception part way through serialization:

java.lang.NullPointerException
at
com.google.gwt.rpc.server.WebModePayloadSink.getBytes(WebModePayloadSink.java:
860)
at com.google.gwt.rpc.server.WebModePayloadSink
$PayloadVisitor.constructorFunction(WebModePayloadSink.java:607)
at com.google.gwt.rpc.server.WebModePayloadSink
$PayloadVisitor.visit(WebModePayloadSink.java:260)
at
com.google.gwt.rpc.client.ast.InstantiateCommand.traverse(InstantiateCommand.java:
54)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at com.google.gwt.rpc.server.WebModePayloadSink
$PayloadVisitor.visit(WebModePayloadSink.java:237)
at
com.google.gwt.rpc.client.ast.ArrayValueCommand.traverse(ArrayValueCommand.java:
53)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at com.google.gwt.rpc.server.WebModePayloadSink
$PayloadVisitor.visit(WebModePayloadSink.java:285)
at
com.google.gwt.rpc.client.ast.InstantiateCommand.traverse(InstantiateCommand.java:
54)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at com.google.gwt.rpc.server.WebModePayloadSink
$PayloadVisitor.visit(WebModePayloadSink.java:376)
at
com.google.gwt.rpc.client.ast.InvokeCustomFieldSerializerCommand.traverse(InvokeCustomFieldSerializerCommand.java:
76)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at com.google.gwt.rpc.server.WebModePayloadSink
$PayloadVisitor.visit(WebModePayloadSink.java:407)
at
com.google.gwt.rpc.client.ast.ReturnCommand.traverse(ReturnCommand.java:
44)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.doAccept(RpcCommandVisitor.java:
320)
at
com.google.gwt.rpc.client.ast.RpcCommandVisitor.accept(RpcCommandVisitor.java:
42)
at
com.google.gwt.rpc.server.WebModePayloadSink.accept(WebModePayloadSink.java:
890)
at com.google.gwt.rpc.server.RPC.streamResponse(RPC.java:472)
at
com.google.gwt.rpc.server.RPC.streamResponseForSuccess(RPC.java:249)


Relevant code:

ClientOracle oracle = getClientOracle();
ByteArrayOutputStream out = new ByteArrayOutputStream();
RPC.streamResponseForSuccess(oracle, out, messagesToSend);

protected InputStream findClientOracleData(String
requestModuleBasePath, String permutationStrongName) throws
IOException {
String resourcePath = requestModuleBasePath + 
permutationStrongName
+ ".gwt.rpc";
InputStream in =
getServletContext().getResourceAsStream(resourcePath);
if (in == null) {
throw new IOException("Could not find 
ClientOracle data for
permutation " + permutationStrongName);
}
return in;
}

public ClientOracle getClientOracle() throws IOException {
String strongName = request.getParameter("StrongName");
strongName = strongName != null ? strongName.trim() : 
null;
strongName = strongName != null && strongName.isEmpty() 
? null :
strongName;
if (strongName == null) {
return null;
}
if ("HostedMode".equals(strongName)) {
return new HostedModeClientOracle();
} else {
String moduleBase = 
request.getParameter("ModuleBase");
if (moduleBase == null) {
return null;
}

String basePath = new URL(moduleBase).getPath();
if (basePath == null) {
throw new 
MalformedURLException("Blocked request without GWT base
path parameter (XSRF attack?)");
}

String contextPath = 
getServletContext().getContextPath();
if (!basePath.startsWith(contextPath)) {
 

GWT Hosted Mode Slow

2010-09-15 Thread Niels
I have a bit of a problem with GWT Hosted mode taking an awful long
time to launch my app - even just reloading the page (with the server
running and no code changes) takes forever.

The CPU is at 100% for a couple of minutes and as far as I can tell
none of my code executes (it's deep in the belly of some GWT code).
The few times I've managed to hit pause in the debugger, the offending
thread shows the stack trace below (the finer details may vary, but
it's always in getRootPanel):

My HTML is dead simple - a single table with two cells, so it's not
like there is a million IDs to look up, and I only call getRootPanel
once at the very beginning. I have never had this issue with other GWT
projects I've worked on, and can't for the life of me figure out
what's different this time (in fact I have another entry point in the
same project that works just fine).

Anyone have any ideas?

String.substring(int, int) line: not available
String.subSequence(int, int) line: not available
Pattern.split(CharSequence, int) line: not available
String.split(String, int) line: not available
String.split(String) line: not available
PathPrefixSet.includesResource(String) line: 237
ZipFileClassPathEntry.computeApplicableResources(TreeLogger,
PathPrefixSet) line: 146
ZipFileClassPathEntry.findApplicableResources(TreeLogger,
PathPrefixSet) line: 95
ResourceOracleImpl.refresh(TreeLogger) line: 351
ModuleDef.getResourcesOracle() line: 324
StandardGeneratorContext.getResourcesOracle() line: 386
CachedGeneratorContext.getResourcesOracle() line: 66
AbstractLocalizableImplCreator.generateConstantOrMessageClass(TreeLogger,
GeneratorContext, GwtLocale, JClassType) line: 97
LocalizableGenerator.generate(TreeLogger, GeneratorContext, String,
String) line: 121
LocaleInfoGenerator.generateOneLocale(TreeLogger, GeneratorContext,
LocalizableGenerator, String, Map>, GwtLocale)
line: 309
LocaleInfoGenerator.generateConstantsLookup(TreeLogger,
GeneratorContext, SourceWriter, LocalizableGenerator, Set,
GwtLocale, String) line: 259
LocaleInfoGenerator.generate(TreeLogger, GeneratorContext, String)
line: 226
StandardGeneratorContext.runGenerator(TreeLogger, Class,
String) line: 418
RuleGenerateWith.realize(TreeLogger, StandardGeneratorContext, String)
line: 38
StandardRebindOracle$Rebinder.tryRebind(TreeLogger, String) line: 108
StandardRebindOracle$Rebinder.rebind(TreeLogger, String,
ArtifactAcceptor) line: 54
StandardRebindOracle.rebind(TreeLogger, String, ArtifactAcceptor)
line: 154
ShellModuleSpaceHost.rebind(TreeLogger, String) line: 119
ModuleSpaceOOPHM(ModuleSpace).rebind(String) line: 531
ModuleSpaceOOPHM(ModuleSpace).rebindAndCreate(String) line: 414
GWTBridgeImpl.create(Class) line: 39
GWT.create(Class) line: 98
LocaleInfo.() line: 36
RootPanel.get(String) line: 195

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



Re: GWT with Hibernate - Gilead vs. Beanlib

2010-09-15 Thread kjordan
Only reason I can think of to use Gilead is if you want to send an
object across the wire, update it, and send it back.  Using its
various state stuff it's able to turn it into a detached entity which
can be merged in.

On Sep 15, 9:29 am, Flori  wrote:
> Hey all,
>
> To use my hibernate entities with Beanlib i need two lines of codes:
> HibernateBeanReplicator replicator = new
> Hibernate3BeanReplicator(null, null, myVetoer);
> MyHibernateServiceObject serviceObject =
> replicator.copy(myHibernateServiceObject);
>
> Why Gilead makes the whole so complex, why should I use Gilead instead
> Beanlib?
>
> Can someone explain that to me?
>
> cheers!

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



is it a regression or a bug?

2010-09-15 Thread belin
Hi
i'm using now gwt 2.x with eclipse, and i'm not able now to debug with
the -noserver option as i did with the previous versions. With the
current version (2.x) debugging is done thank to a plugging installed
into a browser (IE, Chrome etc). This pluggin seem to work only with
the Jetty embedded into gwt library.
Please how to solve this issue?
Thank

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



Invoking HTTPS Web Serivce

2010-09-15 Thread Amit
Hi,
I want to invoke HTTPS Soap Call Using GWT, How Should I go about it?

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



DockLayoutPanel inside a TabLayoutPanel

2010-09-15 Thread Per
We are trying to insert a Component that uses a DockLayoutPanel into
one of our Tabs of a TabLayoutPanel. It seems as if the
DockLayoutPanel simply ignores where it is put into and lies over the
TabLayoutPanel. Its "north" is acually above the TabBar, on a
different layer or so.

Is this simply not possible, or is there a trick to it?

Best Regards

Per

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



Why does GWT seem to ignore my overridden doGetSerializationPolicy()?

2010-09-15 Thread theosophe74
Gilead 1.3.2's PersistentRemoteService, which extends GWT's
RemoteServiceServlet, has a protected doGetSerializationPolicy() that
calls super.doGetSerializationPolicy().

My own CustomPersistentRemoteService, which extends
PersistentRemoteService, is being created so I can deal with conflicts
between GWT RPC and Apache mod_rewrite by tweaking the moduleBaseURL
parameter [1].  This custom class also has a protected
doGetSerializationPolicy() that calls super.doGetSerializationPolicy()
after it just echoes out for now the parameters it is passed (I'm
logging them at the WARN level so I can see them).

So if I update a service implementation to extend
CustomPersistentRemoteService instead of PersistentRemoteService,
shouldn't I see the logging statements I inserted echoed to my
configured Log4j appender (in this case, the console)?

What is it about the following stack trace that just seems to skip
over both PersistentRemoteService and CustomPersistentRemoteService?

Caused by: java.lang.NullPointerException
at
javax.servlet.GenericServlet.getServletName(GenericServlet.java:322)
at javax.servlet.GenericServlet.log(GenericServlet.java:277)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.loadSerializationPolicy(RemoteServiceServlet.java:
74)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:
251)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:
139)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:
445)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:236)
at
org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:
292)
... 26 more

I appreciate any and all insights.

Thanks,
Mike

[1] http://code.google.com/p/google-web-toolkit/issues/detail?id=5274

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



GWT plugin for google chrome in ubuntu

2010-09-15 Thread Ivermac
when are expecting the GWT developer plugin for google chrome?or is
there a way i can use google chrome to run my GWT applications?

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



IE 9 Beta exception in IE9Standards mode on button creation

2010-09-15 Thread Brian
Just downloaded the IE9 beta, and ran my site through it, but I'm
getting exceptions.  They only occur in "Document Mode: IE9 Standards"
-- everything seems to work in the other Document Modes (IE8
Standards, etc).

The easiest way to see an exception is having a button made in a
UIBuilder class.  The pretty javascript is:

function com_google_gwt_user_client_ui_Button_Button__V(){
// Exception here:
  this.com_google_gwt_user_client_ui_UIObject_element =
$doc.createElement($intern_295);
  this.com_google_gwt_user_client_ui_UIObject_element[$intern_296] =
$intern_297;
}

Maybe I don't have something set right on this IE9 beta... ?

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



HTML Widget and Firefox

2010-09-15 Thread Nestor
I have a need to provide a TextArea in my application for a user to
enter text, but the text needs to be converted to HTML format when
using it. For example, I need the following text "foo\n\nbar" to
convert to "foobar".

The solution I've implemented is to use a HTML widget as an
intermediary, using the following code:

  TextArea textArea;
  HTML translator;

  ...

  translator.setText(textArea.getText().trim());
  String htmlString = translator.getHTML();

The code works fine on IE, but totally fails to do the conversion in
Firefox.

Help?

For the record, I'm using GWT 1.7.1 running in both IE8 and FF 3.

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



Re: How could we know if GWT project will continue to be maintained by Google?

2010-09-15 Thread marius.andreiana
On Sep 15, 4:17 pm, Mikael Couzic  wrote:
> Stefan said it all. You can't have "guarantee" that an open source
> project will be maintained for an indeterminate time. Sometimes you
> just have to live with the (small) uncertainty.
I fully agree. I was just trying to get some data to minimize this
uncertainty.

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



Re: Development Mode performance with Chrome

2010-09-15 Thread Paul Stockley
>From what I understand, chrome is slower than all the other browsers
in dev mode because of the process sandbox model used by chrome. This
has an impact on communication from Java to the browser when executing
jsni methods.

On Sep 15, 12:13 pm, "e...@2010"  wrote:
> I would like to echo the sentiment of this request and in a similar
> vein (and maybe this deserves a separate post) there is also an issue
> with the performance of Chrome in compiled mode in the following
> scenario:
>
> I am using WebGL and when creating very large Float32Arrays (of maybe
> 90,000 elements) it takes an exceptionally long time. I am creating
> only a few of these large arrays and it is instantaneous in Firefox
> (less than two seconds as I would expect) but takes 8 minutes(!) in
> the latest version of Chrome (and all previous versions). One thing
> that I observe during these 8 minutes is that the page fault rate
> (Windows XP) is about 160,000 page faults per second (for the entire 8
> minutes) for the Chrome process and the VMSize is going up and down
> all the time (varying from say 40MB to 50MB) instead of growing
> monotonically. It certainly seems to be some kind of O(n*n) problem
> and maybe even the garbage collector could be running as each element
> of the array is allocated? I don't know.
>
> Any ideas?
>
> Thanks, Ed
>
> On Sep 15, 6:34 am, Brian  wrote:
>
>
>
> > Can Chrome be made faster in development mode?
>
> > I use Chrome as my default browser as I really like the development
> > tools, but it's slow with gwt development mode.  On a table cell,
> > there's a click handler.  The click handler displays a popup built
> > with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
> > takes approx 3 seconds from click to seeing the popup.  With Firefox
> > (3.5.11) it's 'almost' instant -- fast enough anyway that it's not a
> > performance issue.
>
> > In Web Mode with everything compiled, Chrome is super fast again, no
> > issues at all.  The perf loss is only in Dev mode.
>
> > Any ideas?  Should I switch over to the production branch of chrome
> > (and thus lose speed tracer)?
>
> > -Brian

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



Re: Development Mode performance with Chrome

2010-09-15 Thread Paul Stockley
>From what I understand, chrome is slower in dev mode than all the
other browsers because of the process sandbox model used by chrome.

On Sep 15, 12:13 pm, "e...@2010"  wrote:
> I would like to echo the sentiment of this request and in a similar
> vein (and maybe this deserves a separate post) there is also an issue
> with the performance of Chrome in compiled mode in the following
> scenario:
>
> I am using WebGL and when creating very large Float32Arrays (of maybe
> 90,000 elements) it takes an exceptionally long time. I am creating
> only a few of these large arrays and it is instantaneous in Firefox
> (less than two seconds as I would expect) but takes 8 minutes(!) in
> the latest version of Chrome (and all previous versions). One thing
> that I observe during these 8 minutes is that the page fault rate
> (Windows XP) is about 160,000 page faults per second (for the entire 8
> minutes) for the Chrome process and the VMSize is going up and down
> all the time (varying from say 40MB to 50MB) instead of growing
> monotonically. It certainly seems to be some kind of O(n*n) problem
> and maybe even the garbage collector could be running as each element
> of the array is allocated? I don't know.
>
> Any ideas?
>
> Thanks, Ed
>
> On Sep 15, 6:34 am, Brian  wrote:
>
>
>
> > Can Chrome be made faster in development mode?
>
> > I use Chrome as my default browser as I really like the development
> > tools, but it's slow with gwt development mode.  On a table cell,
> > there's a click handler.  The click handler displays a popup built
> > with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
> > takes approx 3 seconds from click to seeing the popup.  With Firefox
> > (3.5.11) it's 'almost' instant -- fast enough anyway that it's not a
> > performance issue.
>
> > In Web Mode with everything compiled, Chrome is super fast again, no
> > issues at all.  The perf loss is only in Dev mode.
>
> > Any ideas?  Should I switch over to the production branch of chrome
> > (and thus lose speed tracer)?
>
> > -Brian

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



Re: GWT Spring integration - what is the best method in late 2010?

2010-09-15 Thread Jason Hatton
I would highly suggest going back to my recommendation, lalit's idea is good
but, my example is more complete, takes less effort to implement and is
easier to extend.   Especially with the use of gwt-dispatch and
implementation of a GWT architecture pattern implementation from the Google
I/O talk on GWT from the last session.



On Wed, Sep 15, 2010 at 11:43 AM, Deepak Singh wrote:

> Hi Lalit,
>
> Could u pls explain the package structure i.e. which file should be placed
> in which package.
> And if possible can u guide a bit to consume web services(wsdl files) and
> data binding.
>
> Thanks
> Deepak
>
>
> On Wed, Sep 15, 2010 at 11:55 AM, lalit  wrote:
>
>> Approach based on Spring4Gwt project
>>
>> http://www.lalitbhatt.com/tiki-index.php?page=Integration+GWT+with+Spring
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

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



Re: How to handle celltable selection events?

2010-09-15 Thread chiappone
It seems like that would only work when a specific cell is clicked
rather then a celltable row?

On Sep 15, 11:46 am, Thomas Broyer  wrote:
> On 15 sep, 19:34, chiappone  wrote:
>
>
>
>
>
> > I am using M3 and want to be able to click on a row of my table and be
> > able to listen for that event.
>
> > I have the following which works fine:
>
> > private SingleSelectionModel setSelectionModel(
> >                         CellTable cellTable) {
> >                 final SingleSelectionModel selectionModel = new
> > SingleSelectionModel();
>
> >                 Handler selectionHandler = new 
> > SelectionChangeEvent.Handler() {
>
> >                         @Override
> >                         public void onSelectionChange(
> >                                         
> > com.google.gwt.view.client.SelectionChangeEvent event) {
> >                                 // User user = 
> > selectionModel.getSelectedObject();
> >                                 dispatcher.execute(
> >                                                 
> > getRealtimeAction(DEVICE_CHANNEL, selectionModel
> >                                                                 
> > .getSelectedObject().getDeviceId()),
> >                                                 new 
> > ActionCallback() {
>
> >                                                         @Override
> >                                                         public void 
> > onFailure(Throwable caught) {
> >                                                                 // do 
> > nothing
> >                                                         }
>
> >                                                         @Override
> >                                                         public void 
> > onSuccess(RealtimeResult result) {
> >                                                                 // 
> > GWT.log("POSTED REALTIME");
> >                                                         }
>
> >                                                 });
>
> >                                 DisplayMessageEvent.fireMessage(eventBus, 
> > "Loading...");
>
> >                         }
>
> >                 };
>
> >                 selectionModel.addSelectionChangeHandler(selectionHandler);
> >                 // cellTable.setSelectionEnabled(true);
> >                 cellTable.setSelectionModel(selectionModel);
>
> >                 return selectionModel;
> >         }
>
> > The problem with this is that if the row is already selected you
> > cannot select it again.  I want to fire the event not only
> > onSelectionChange but just Selection.  Thanks.
>
> Then you probably should use something like ClickableTextCell, rather
> than relying on selection.

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



Re: How to handle celltable selection events?

2010-09-15 Thread Thomas Broyer

On 15 sep, 19:34, chiappone  wrote:
> I am using M3 and want to be able to click on a row of my table and be
> able to listen for that event.
>
> I have the following which works fine:
>
> private SingleSelectionModel setSelectionModel(
>                         CellTable cellTable) {
>                 final SingleSelectionModel selectionModel = new
> SingleSelectionModel();
>
>                 Handler selectionHandler = new SelectionChangeEvent.Handler() 
> {
>
>                         @Override
>                         public void onSelectionChange(
>                                         
> com.google.gwt.view.client.SelectionChangeEvent event) {
>                                 // User user = 
> selectionModel.getSelectedObject();
>                                 dispatcher.execute(
>                                                 
> getRealtimeAction(DEVICE_CHANNEL, selectionModel
>                                                                 
> .getSelectedObject().getDeviceId()),
>                                                 new 
> ActionCallback() {
>
>                                                         @Override
>                                                         public void 
> onFailure(Throwable caught) {
>                                                                 // do nothing
>                                                         }
>
>                                                         @Override
>                                                         public void 
> onSuccess(RealtimeResult result) {
>                                                                 // 
> GWT.log("POSTED REALTIME");
>                                                         }
>
>                                                 });
>
>                                 DisplayMessageEvent.fireMessage(eventBus, 
> "Loading...");
>
>                         }
>
>                 };
>
>                 selectionModel.addSelectionChangeHandler(selectionHandler);
>                 // cellTable.setSelectionEnabled(true);
>                 cellTable.setSelectionModel(selectionModel);
>
>                 return selectionModel;
>         }
>
> The problem with this is that if the row is already selected you
> cannot select it again.  I want to fire the event not only
> onSelectionChange but just Selection.  Thanks.

Then you probably should use something like ClickableTextCell, rather
than relying on selection.

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



How to handle celltable selection events?

2010-09-15 Thread chiappone
I am using M3 and want to be able to click on a row of my table and be
able to listen for that event.

I have the following which works fine:

private SingleSelectionModel setSelectionModel(
CellTable cellTable) {
final SingleSelectionModel selectionModel = new
SingleSelectionModel();

Handler selectionHandler = new SelectionChangeEvent.Handler() {

@Override
public void onSelectionChange(

com.google.gwt.view.client.SelectionChangeEvent event) {
// User user = 
selectionModel.getSelectedObject();
dispatcher.execute(

getRealtimeAction(DEVICE_CHANNEL, selectionModel

.getSelectedObject().getDeviceId()),
new 
ActionCallback() {

@Override
public void 
onFailure(Throwable caught) {
// do nothing
}

@Override
public void 
onSuccess(RealtimeResult result) {
// 
GWT.log("POSTED REALTIME");
}

});

DisplayMessageEvent.fireMessage(eventBus, 
"Loading...");

}

};


selectionModel.addSelectionChangeHandler(selectionHandler);
// cellTable.setSelectionEnabled(true);
cellTable.setSelectionModel(selectionModel);

return selectionModel;
}

The problem with this is that if the row is already selected you
cannot select it again.  I want to fire the event not only
onSelectionChange but just Selection.  Thanks.

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



Re: Caused by: java.lang.NoSuchMethodError: java.util.Set.java_util_Collection_contains(Ljava/lang/Object;)Z

2010-09-15 Thread Albatros
After some investigation I can confirm that this is indeed the case.

Sometime after the deadline, I might produce a simple example on the
error, but for now I'm a bit busy preparing the project for an open
source release ;)

On Sep 15, 4:32 pm, Albatros  wrote:
> I was changing another part of the application when the something
> suddenly broke.
>
> Caused by: java.lang.NoSuchMethodError:
> java.util.Set.java_util_Collection_contains(Ljava/lang/Object;)Z
>  at
> com.google.gwt.user.client.ui.RootPanel.isInDetachList(RootPanel.java:
> 231)
>  at com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:
> 152)
>  at
> com.google.gwt.user.client.ui.DockLayoutPanel.insert(DockLayoutPanel.java:
> 358)
>  at
> com.google.gwt.user.client.ui.DockLayoutPanel.addNorth(DockLayoutPanel.java :
> 168)
>  at
> com.kk_electronic.kkpilot.core.ui.WebPageLayout_UIBinderImpl.createAndBindU 
> i(WebPageLayout_UIBinderImpl.java:
> 21)
>  ...
>
> Has anybody experienced anything similar?
>
> The change I made was making a JavaScriptObject that implemented
> List. can this somehow has caused the 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Spring integration - what is the best method in late 2010?

2010-09-15 Thread Deepak Singh
Hi Lalit,

Could u pls explain the package structure i.e. which file should be placed
in which package.
And if possible can u guide a bit to consume web services(wsdl files) and
data binding.

Thanks
Deepak

On Wed, Sep 15, 2010 at 11:55 AM, lalit  wrote:

> Approach based on Spring4Gwt project
>
> http://www.lalitbhatt.com/tiki-index.php?page=Integration+GWT+with+Spring
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: AJAX call doesn't ever seem to get made

2010-09-15 Thread Brett Thomas
Yeah that's what I meant - the server log on a deployed app. I can't
remember why I was looking at errors there rather than the development
server, probably was just using it wrong.

Post a followup if you figure it out.

On Wed, Sep 15, 2010 at 9:06 AM, Johannes Lehmann <
johannes.lehma...@googlemail.com> wrote:

> Well, the method is called on the client side is called just fine (the
> breakpoint where the method is called gets hit), but of course from
> then on I can't trace calls any further since it's automatically
> generated code (the service proxy). However I am certain that nothing
> ever reaches the server for two reasons:
>  -The breakpoint on the ServiceImpl method is never reched
>  -The Firebug console, which shows all requests which are made,
> indicated that no request is ever made. Since that should sit right
> between the generated JavaScript and the server, it should definitely
> show up if anything at all is sent to the server.
>
> Incase I am wrong in my reasoning somewhere, where is the appengine
> error log? I can't find it, embarrisingly... You don't mean the
> messages that are normally logged in the Console / the web interface
> to the actual appengine (rather than the development server), do you?
>
> Thanks,
>
> Johannes
>
> On Sep 15, 1:03 pm, Brett Thomas  wrote:
> > Are you sure the server method is never called? I ran in to a similar
> > problem a couple days ago: the object could be serialized and
> transferred,
> > but it couldn't be stored in app engine. I had to debug with the app
> engine
> > error log.
> >
> > On Wed, Sep 15, 2010 at 6:23 AM, Johannes Lehmann <
> >
> >
> >
> > johannes.lehma...@googlemail.com> wrote:
> > > OK, I fixed the problem now: One of the arguments of the service call
> > > was a class called Item (which I defined). If I pass a Long instead
> > > which happens to be possible but inconvenient, it works. This is still
> > > incredibly puzzling since another service call returns a List
> > > and that works fine, hence the problem can't be that GWT can't
> > > serialize my Item class properly
> >
> > > --
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: Development Mode performance with Chrome

2010-09-15 Thread e...@2010
I would like to echo the sentiment of this request and in a similar
vein (and maybe this deserves a separate post) there is also an issue
with the performance of Chrome in compiled mode in the following
scenario:

I am using WebGL and when creating very large Float32Arrays (of maybe
90,000 elements) it takes an exceptionally long time. I am creating
only a few of these large arrays and it is instantaneous in Firefox
(less than two seconds as I would expect) but takes 8 minutes(!) in
the latest version of Chrome (and all previous versions). One thing
that I observe during these 8 minutes is that the page fault rate
(Windows XP) is about 160,000 page faults per second (for the entire 8
minutes) for the Chrome process and the VMSize is going up and down
all the time (varying from say 40MB to 50MB) instead of growing
monotonically. It certainly seems to be some kind of O(n*n) problem
and maybe even the garbage collector could be running as each element
of the array is allocated? I don't know.

Any ideas?

Thanks, Ed


On Sep 15, 6:34 am, Brian  wrote:
> Can Chrome be made faster in development mode?
>
> I use Chrome as my default browser as I really like the development
> tools, but it's slow with gwt development mode.  On a table cell,
> there's a click handler.  The click handler displays a popup built
> with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
> takes approx 3 seconds from click to seeing the popup.  With Firefox
> (3.5.11) it's 'almost' instant -- fast enough anyway that it's not a
> performance issue.
>
> In Web Mode with everything compiled, Chrome is super fast again, no
> issues at all.  The perf loss is only in Dev mode.
>
> Any ideas?  Should I switch over to the production branch of chrome
> (and thus lose speed tracer)?
>
> -Brian

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



CssResources and inheritance

2010-09-15 Thread stuckagain
Hi,

I wanted to post this to GWT contribs, but lets try this newsgroup
first.

I have create my own button widget (based on a A href='#' tag) that
allows me to specify the styles through a CssResource called
ButtonCss.

I needed many different type of buttons in one application so I
thought, well simple I just define the button styles multiple times in
different .css files and such through different entries in the
ClientBundle.

For example I have the following:

interface ButtonCss {
 String button();
 String disabled();
}

Resources extends ClientBundle {

}

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



Re: GWT 2.x/Jboss/Seam gen

2010-09-15 Thread Karel Piwko
On Wed, 2010-09-15 at 16:59 +0200, Karel Piwko wrote:
> Hi Flavio,
> 
> if I got your question right, you can use following maven snippet to run
> hosted mode with your configuration after deploying *exploded* WAR to
> JBoss AS with ${context.path}:
> 
> 
>   
>  ...
>  
> package
> 
>
>   org.codehaus.mojo
>   gwt-maven-plugin
>   1.3-SNAPSHOT
>   
>  
> run-devmode
> package
> 
>run
> 
> 
> http://localhost:8080/${context.path}/devmode.html
> 
> true
> 0.0.0.0   
> 
> /jboss-as-home/server/default/${context.path}
I missed 'deploy' in here, it should
be /jboss-as-home/server/default/deploy/${context.path}.

> 
>  
>   
>
> 
>  
>   
>  
> If you're not using Maven, but Ant, which is probable if you used
> Seam-gen ;), there will be similar arguments as in plugin configuration
> you can pass.
> 
> Karel
> 
> 
> On Tue, 2010-09-07 at 02:38 -0700, Flori wrote:
> > Hey all,
> > 
> > did someone manage to run a seam generated application with gwt
> > compilied sources in hosted mode on JBoss?
> > 
> > http://community.jboss.org/wiki/UseJBossToolswithGoogleGWTPlugin  -
> > does not help really in my case - its the wrong order ;) I already
> > have my application and want to ADD a gwt application. So it's all
> > working fine - i can include my gwt module into a xhtml view - but i
> > don't know how i can use the hosted mode since my files are placed in
> > the generated view folder instead of the default gwt war folder! Can
> > someone point me in the right direction? Thanks a lot!
> > 
> > greetings!
> > 
> 
> 


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



Re: GWT 2.x/Jboss/Seam gen

2010-09-15 Thread Karel Piwko
Hi Flavio,

if I got your question right, you can use following maven snippet to run
hosted mode with your configuration after deploying *exploded* WAR to
JBoss AS with ${context.path}:


  
 ...
 
package

   
  org.codehaus.mojo
  gwt-maven-plugin
  1.3-SNAPSHOT
  
 
run-devmode
package

   run


http://localhost:8080/${context.path}/devmode.html

true
0.0.0.0   

/jboss-as-home/server/default/${context.path}

 
  
   

 
  
 
If you're not using Maven, but Ant, which is probable if you used
Seam-gen ;), there will be similar arguments as in plugin configuration
you can pass.

Karel


On Tue, 2010-09-07 at 02:38 -0700, Flori wrote:
> Hey all,
> 
> did someone manage to run a seam generated application with gwt
> compilied sources in hosted mode on JBoss?
> 
> http://community.jboss.org/wiki/UseJBossToolswithGoogleGWTPlugin  -
> does not help really in my case - its the wrong order ;) I already
> have my application and want to ADD a gwt application. So it's all
> working fine - i can include my gwt module into a xhtml view - but i
> don't know how i can use the hosted mode since my files are placed in
> the generated view folder instead of the default gwt war folder! Can
> someone point me in the right direction? Thanks a lot!
> 
> greetings!
> 


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



Caused by: java.lang.NoSuchMethodError: java.util.Set.java_util_Collection_contains(Ljava/lang/Object;)Z

2010-09-15 Thread Albatros
I was changing another part of the application when the something
suddenly broke.

Caused by: java.lang.NoSuchMethodError:
java.util.Set.java_util_Collection_contains(Ljava/lang/Object;)Z
 at
com.google.gwt.user.client.ui.RootPanel.isInDetachList(RootPanel.java:
231)
 at com.google.gwt.user.client.ui.Widget.removeFromParent(Widget.java:
152)
 at
com.google.gwt.user.client.ui.DockLayoutPanel.insert(DockLayoutPanel.java:
358)
 at
com.google.gwt.user.client.ui.DockLayoutPanel.addNorth(DockLayoutPanel.java:
168)
 at
com.kk_electronic.kkpilot.core.ui.WebPageLayout_UIBinderImpl.createAndBindUi(WebPageLayout_UIBinderImpl.java:
21)
 ...

Has anybody experienced anything similar?

The change I made was making a JavaScriptObject that implemented
List. can this somehow has caused the 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT with Hibernate - Gilead vs. Beanlib

2010-09-15 Thread Flori
Hey all,

To use my hibernate entities with Beanlib i need two lines of codes:
HibernateBeanReplicator replicator = new
Hibernate3BeanReplicator(null, null, myVetoer);
MyHibernateServiceObject serviceObject =
replicator.copy(myHibernateServiceObject);

Why Gilead makes the whole so complex, why should I use Gilead instead
Beanlib?

Can someone explain that to me?

cheers!

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



Re: Custom map

2010-09-15 Thread Mikael Couzic
I heard some guys did pretty crazy stuff with OpenLayers, like Tetris-
style games. So I guess displaying an image in background and some
clickable geometries and/or icons on top should be pretty easy.
BTW, OpenLayers is a web mapping JS library. Check out its GWT wrapper
(GWT-OpenLayers) if you plan on using it in a GWT project.


On 14 sep, 22:49, A2Person1978  wrote:
> If you can turn your custom map on your file system into a KML file,
> you could then create a google map on your application that utilizes
> the KML file.
>
> On Sep 12, 5:36 am, chinese  wrote:
>
>
>
> > Hello everyone!
> > I have a question about custom map in GWT.
> > In fact, I've to create an application within an interactive map like
> > google maps, but the map is uploaded from my file system. For example,
> > I have an apartment map and I want to upload it in my application to
> > use it for create clickable object on it.
> > Is it possible?
> > Thank you
> > Bye!

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



Re: GWT and Bing integration

2010-09-15 Thread Giuseppe La Scaleia
I use the div created for ContentPanel widget.
Regards Giuseppe

2010/9/15 Mikael Couzic 

> You mean you put an OpenLayers Map in an ExtJS ContentPanel ? Sounds
> scary. Have you tried with a simple DIV ?
>
>
> On 15 sep, 13:13, Giuseppe La Scaleia 
> wrote:
> > Hi all,
> > i have a great problem in my application. I have integrated a map with
> > google layer as base layer. I'm trying to integrate Bing as base layer
> with
> > great difficulties. I use Openlayers .
> > I think that the problem is caused by gwt components rendering. I also
> use
> > extjs and put a map in a ContentPanel.
> > Any ideas???
> > Regards Giuseppe
> >
> > --
> > Giuseppe La Scaleia
> > CNR - IMAA
> > geoSDI - NSDI
> > Sviluppo Software
> >
> > C.da S. Loja
> > 85050  Tito Scalo - POTENZA (PZ)
> > Italia
> >
> > phone:  +39 0971427305
> > fax:  +39 0971 427271
> > mob:+39 3804697436
> > mail: giuseppe.lascal...@geosdi.org
> > skype:  glascaleia
> >
> > web:http://www.geosdi.org
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
Giuseppe La Scaleia
CNR - IMAA
geoSDI - NSDI
Sviluppo Software

C.da S. Loja
85050  Tito Scalo - POTENZA (PZ)
Italia

phone:  +39 0971427305
fax:  +39 0971 427271
mob:+39 3804697436
mail: giuseppe.lascal...@geosdi.org
skype:  glascaleia

web: http://www.geosdi.org

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



Re: GWT and Bing integration

2010-09-15 Thread Mikael Couzic
You mean you put an OpenLayers Map in an ExtJS ContentPanel ? Sounds
scary. Have you tried with a simple DIV ?


On 15 sep, 13:13, Giuseppe La Scaleia 
wrote:
> Hi all,
> i have a great problem in my application. I have integrated a map with
> google layer as base layer. I'm trying to integrate Bing as base layer with
> great difficulties. I use Openlayers .
> I think that the problem is caused by gwt components rendering. I also use
> extjs and put a map in a ContentPanel.
> Any ideas???
> Regards Giuseppe
>
> --
> Giuseppe La Scaleia
> CNR - IMAA
> geoSDI - NSDI
> Sviluppo Software
>
> C.da S. Loja
> 85050  Tito Scalo - POTENZA (PZ)
> Italia
>
> phone:  +39 0971427305
> fax:      +39 0971 427271
> mob:    +39 3804697436
> mail:     giuseppe.lascal...@geosdi.org
> skype:  glascaleia
>
> web:    http://www.geosdi.org

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



Re: How could we know if GWT project will continue to be maintained by Google?

2010-09-15 Thread Mikael Couzic
Stefan said it all. You can't have "guarantee" that an open source
project will be maintained for an indeterminate time. Sometimes you
just have to live with the (small) uncertainty.


On 14 sep, 18:45, "marius.andreiana" 
wrote:
> On Sep 14, 7:31 pm, Ed  wrote:> Not again this 
> question ptt... :)
> > Please put some effort in searching this forum and the web for gwt
> > projects... etc...
> > And decide yourself...
>
> I did, here are the 
> results:https://docs.google.com/document/edit?id=16rQknO-r3ZqfMbuIl0R52OnFcWB...
>
> This is a valid concern which I thought it's worth addressing. I even
> thought of arguments like Google makes money from appspot.com hosting,
> and GWT make it easy to develop apps on top of App Engine => more
> apps.
>
> It's ok if the answer on my question would be "Besides what we're
> doing publicly (e.g. I/O sessions, Spring partnership) and using it in
> AdWords, no guarantee". Much better than "pt" ;)

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



Re: AJAX call doesn't ever seem to get made

2010-09-15 Thread Johannes Lehmann
Well, the method is called on the client side is called just fine (the
breakpoint where the method is called gets hit), but of course from
then on I can't trace calls any further since it's automatically
generated code (the service proxy). However I am certain that nothing
ever reaches the server for two reasons:
 -The breakpoint on the ServiceImpl method is never reched
 -The Firebug console, which shows all requests which are made,
indicated that no request is ever made. Since that should sit right
between the generated JavaScript and the server, it should definitely
show up if anything at all is sent to the server.

Incase I am wrong in my reasoning somewhere, where is the appengine
error log? I can't find it, embarrisingly... You don't mean the
messages that are normally logged in the Console / the web interface
to the actual appengine (rather than the development server), do you?

Thanks,

Johannes

On Sep 15, 1:03 pm, Brett Thomas  wrote:
> Are you sure the server method is never called? I ran in to a similar
> problem a couple days ago: the object could be serialized and transferred,
> but it couldn't be stored in app engine. I had to debug with the app engine
> error log.
>
> On Wed, Sep 15, 2010 at 6:23 AM, Johannes Lehmann <
>
>
>
> johannes.lehma...@googlemail.com> wrote:
> > OK, I fixed the problem now: One of the arguments of the service call
> > was a class called Item (which I defined). If I pass a Long instead
> > which happens to be possible but inconvenient, it works. This is still
> > incredibly puzzling since another service call returns a List
> > and that works fine, hence the problem can't be that GWT can't
> > serialize my Item class properly
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

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



Development Mode performance with Chrome

2010-09-15 Thread Brian
Can Chrome be made faster in development mode?

I use Chrome as my default browser as I really like the development
tools, but it's slow with gwt development mode.  On a table cell,
there's a click handler.  The click handler displays a popup built
with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
takes approx 3 seconds from click to seeing the popup.  With Firefox
(3.5.11) it's 'almost' instant -- fast enough anyway that it's not a
performance issue.

In Web Mode with everything compiled, Chrome is super fast again, no
issues at all.  The perf loss is only in Dev mode.

Any ideas?  Should I switch over to the production branch of chrome
(and thus lose speed tracer)?

-Brian

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



GWT and Bing integration

2010-09-15 Thread Giuseppe La Scaleia
Hi all,
i have a great problem in my application. I have integrated a map with
google layer as base layer. I'm trying to integrate Bing as base layer with
great difficulties. I use Openlayers .
I think that the problem is caused by gwt components rendering. I also use
extjs and put a map in a ContentPanel.
Any ideas???
Regards Giuseppe

-- 
Giuseppe La Scaleia
CNR - IMAA
geoSDI - NSDI
Sviluppo Software

C.da S. Loja
85050  Tito Scalo - POTENZA (PZ)
Italia

phone:  +39 0971427305
fax:  +39 0971 427271
mob:+39 3804697436
mail: giuseppe.lascal...@geosdi.org
skype:  glascaleia

web: http://www.geosdi.org

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



Re: AJAX call doesn't ever seem to get made

2010-09-15 Thread Brett Thomas
Are you sure the server method is never called? I ran in to a similar
problem a couple days ago: the object could be serialized and transferred,
but it couldn't be stored in app engine. I had to debug with the app engine
error log.

On Wed, Sep 15, 2010 at 6:23 AM, Johannes Lehmann <
johannes.lehma...@googlemail.com> wrote:

> OK, I fixed the problem now: One of the arguments of the service call
> was a class called Item (which I defined). If I pass a Long instead
> which happens to be possible but inconvenient, it works. This is still
> incredibly puzzling since another service call returns a List
> and that works fine, hence the problem can't be that GWT can't
> serialize my Item class properly
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: AJAX call doesn't ever seem to get made

2010-09-15 Thread Johannes Lehmann
OK, I fixed the problem now: One of the arguments of the service call
was a class called Item (which I defined). If I pass a Long instead
which happens to be possible but inconvenient, it works. This is still
incredibly puzzling since another service call returns a List
and that works fine, hence the problem can't be that GWT can't
serialize my Item class properly

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



Re: Rapid development of desktop-like web applications

2010-09-15 Thread csaffi
Thank you for your answer Kasper.

> What about Eclipse with GWT Designer, GWT and GAE ? That's what I use...
I'd like to try GWT Designer but now Instantiations was acquired by
Google and GWT Designer is not available on 
http://www.instantiations.com/gwtdesigner...

Perhaps it's now replaced by http://code.google.com/eclipse ?

Does GWT Designer let you visually design UI and bind data ?


Thank you very much for your help

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



Re: Rapid development of desktop-like web applications

2010-09-15 Thread csaffi
Thank you Kasper.

> What about Eclipse with GWT Designer, GWT and GAE ? That's what I use...
I'd like to try GWT Designer, but now Instantiations was acquired by
Google and GWT Designer is not available on 
http://www.instantiations.com/gwtdesigner

GWT Designer lets you visually design and bind UI ?

What about http://code.google.com/eclipse ?

What do you suggest? Thank you very much!

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



Native Event either skips my code or doesn't call my event handler

2010-09-15 Thread Bernmeister
Using GWT 2.1.0 M3 with the following code snippet:

@UiField ListBox myListBox;

. . .

Window.alert( "here" );
ChangeEvent.fireNativeEvent( Document.get().createChangeEvent(),
myListBox );
Window.alert( "there" );

I get "here" but not "there".  Further, the event handler is also
subsequently called...

@UiHandler( "myListBox" )
void handleSelection( ChangeEvent changeEvent )
{
Window.alert( "everywhere" );
}

and I get "everywhere".  This is strange as it seems as if the event
is fired and calls other code, but does not return to continue
execution (as "there" is not pumped out).

If I alter the event call to be

ChangeEvent.fireNativeEvent( Document.get().createChangeEvent(),
this );

where 'this' is an object which extends Composite, I get "here" AND
"there" but not "everywhere".  That is the event handling code is not
triggered.

So what is the correct way to trigger an event such as a list box's
value being changed?


Thanks in advance,

Bernmeister.

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



Re: Re: function as parameter

2010-09-15 Thread Marco Gadaleta
oh yes, i've just done :-P
thx

2010/9/15 Gal Dolber 

> Command is a simple java interface.
> You can define your own.
>
> public interface YourFunction {
> void execute(String value);
> }
>
> public void processFunction(YourFunction f) {
> f.execute("yeah");
> }
>
> To call:
> processFunction(new YourFunction() {
> public void execute(String value) {
>  // Do something
> }
> });
>
>
> On Wed, Sep 15, 2010 at 2:21 AM, Marco Gadaleta 
> wrote:
>
>> yes it's clear but in the execute of the command i can't pass an argument
>> (for example a return of a call)
>>
>> 2010/9/14 Gal Dolber 
>>
>> sendFunction(new Command() {
>>>
>>> public void execute() {
>>> // Do something
>>> }
>>>
>>> });
>>>
>>>
>>> On Tue, Sep 14, 2010 at 4:23 PM, Marco Gadaleta <
>>> gadaleta.ma...@gmail.com> wrote:
>>>
 Thank-you for the help. Can you post me an example of the calling ?

 Il giorno 14/set/2010 20:02, "Gal Dolber"  ha
 scritto:


 You can use Command.

 public void sendFunction(Command command) {
 command.execute();
 }

 On Tue, Sep 14, 2010 at 12:43 PM, Marco Gadaleta <
 gadaleta.ma...@gmail.com> wrote:

> >
> > here's a way to send  a function to another function as attribute?
> >
> > --
> > Marco
>
> --
> You received this message because you are subscribed to the Google
> Groups "Google Web Toolkit" group.
> To post to this group, send email to
> google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



 --
 Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.

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




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

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

>>>
>>>
>>>
>>> --
>>> Guit: Elegant, beautiful, modular and *production ready* gwt
>>> applications.
>>>
>>> http://code.google.com/p/guit/
>>>
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> Marco
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/
>
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Marco

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



Re: Re: function as parameter

2010-09-15 Thread Gal Dolber
Command is a simple java interface.
You can define your own.

public interface YourFunction {
void execute(String value);
}

public void processFunction(YourFunction f) {
f.execute("yeah");
}

To call:
processFunction(new YourFunction() {
public void execute(String value) {
 // Do something
}
});

On Wed, Sep 15, 2010 at 2:21 AM, Marco Gadaleta wrote:

> yes it's clear but in the execute of the command i can't pass an argument
> (for example a return of a call)
>
> 2010/9/14 Gal Dolber 
>
> sendFunction(new Command() {
>>
>> public void execute() {
>> // Do something
>> }
>>
>> });
>>
>>
>> On Tue, Sep 14, 2010 at 4:23 PM, Marco Gadaleta > > wrote:
>>
>>> Thank-you for the help. Can you post me an example of the calling ?
>>>
>>> Il giorno 14/set/2010 20:02, "Gal Dolber"  ha
>>> scritto:
>>>
>>>
>>> You can use Command.
>>>
>>> public void sendFunction(Command command) {
>>> command.execute();
>>> }
>>>
>>> On Tue, Sep 14, 2010 at 12:43 PM, Marco Gadaleta <
>>> gadaleta.ma...@gmail.com> wrote:
>>>
 >
 > here's a way to send  a function to another function as attribute?
 >
 > --
 > Marco

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

>>>
>>>
>>>
>>> --
>>> Guit: Elegant, beautiful, modular and *production ready* gwt
>>> applications.
>>>
>>> http://code.google.com/p/guit/
>>>
>>>
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "Google Web Toolkit" group.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to
>>> google-web-toolkit+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>>
>>
>>
>>
>> --
>> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>>
>> http://code.google.com/p/guit/
>>
>>
>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>
>
>
> --
> Marco
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>



-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

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

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