Re: Get keypress info without an event.

2011-05-25 Thread Gabriel
Right, to capture events anywhere on the client use
Event.addNativePreviewHandler()

On May 24, 11:23 pm, zip184 zip...@gmail.com wrote:
 I thought of that.  The problem is that the user might hold the key
 down before they're over the object I'm capturing the events on.  So
 in that case I wouldn't get the event.

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



Re: GWT remote logging

2011-05-25 Thread Alexandre Ardhuin
Have you add an URL mapping in your web.xml ?

servlet
servlet-nameremoteLogging/servlet-name

servlet-classcom.google.gwt.logging.server.RemoteLoggingServiceImpl/servlet-class
/servlet
servlet-mapping
servlet-nameremoteLogging/servlet-name
url-pattern/YOUR_MODULE/remote_logging/url-pattern
/servlet-mapping

Alexandre


2011/5/24 Dave meye...@gmail.com

 I'm trying to Log a message to a server log.  I found these
 instructions:

 http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Remote_Logging

 In my GWT XML I have
 inherits name=com.google.gwt.logging.Logging/
 set-property name=gwt.logging.simpleRemoteHandler value=ENABLED /
 

 my code is:
 SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
 remoteLog.publish(new LogRecord(Level.INFO, test GWT log));

 I'm sure that I'm missing a simple setup step.

 I get the error message.
 WireActivityLogger SEVERE: Remote logging failed:
 com.google.gwt.user.client.rpc.StatusCodeException: 0
   at

 com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
 192)
   at
 com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
 287)
   at com.google.gwt.http.client.RequestBuilder
 $1.onReadyStateChange(RequestBuilder.java:395)
   at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
   at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
 103)
   at
 com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
   at

 com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
 157)
   at

 com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:
 326)
   at

 com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
 207)
   at
 com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
 126)
   at
 com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
 561)
   at
 com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
 269)
   at

 com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
 91)
   at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
   at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)


 Thanks for your assistance,

 Dave

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



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



Re: Setting Up A Login Page To Use SSL

2011-05-25 Thread Max Jonas Werner
Nick,

On Tuesday, May 24, 2011 11:56:57 PM UTC+2, Nick Apperley wrote:

 Max - With regards to point 1 I did consider it but it isn't feasible 
 to use SSL for the entire website when large amounts of data is being 
 sent to/from the server. Most of the data being received from the 
 server is in JSON format, which although it is less verbose than XML 
 it does include other pieces of data that hasn't been requested from 
 the website (client). 

 All of the received data comes from a DB as row(s). If a row contains 
 a foreign key then the referred row (by the key) is automatically 
 included instead of the key in a JSON file. This is automatically done 
 by the server, no changes were made to do this. You can imagine just 
 how much data is included if there is more than one foreign key, and 
 this automatically scales up recursively if the included row also 
 contains a foreign key. 


I'm sorry, but how is this an argument against TLS, again?

Cheers!
Max

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



Re: Better XSRF protection in 2.3?

2011-05-25 Thread cbauer


On May 15, 8:38 pm, meder me...@google.com wrote:

 The problem with using session ID as XSRF token is that applications
 mark session cookies as HttpOnly[1] to protect against cookie theft
 via cross-site scripting (XSS) attacks. This means that client-side
 code can't access the session ID value in a cookie.

I was not aware of HttpOnly cookies. Making the web secure one patch
after another, I guess.

 Could you elaborate on which part of API do you find complex? If
 server-side code was done correctly, client-side coding mistakes will
 result in XSRF exception.

The API has the necessary complexity if you need the additional shared-
secret generator/regular cookie.

What about real stateless applications without sessions, are you
planning to provide an HMAC form-signature based solution?

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



Initialization Parameter in GWT

2011-05-25 Thread Nitish Upreti
Hello Everyone

I am working on establishing Database connection in my GWT Application with
MySQL. I want the database to read a set of 'init' parameters so as I dont
need to 'hand code' DB URL and Usernames and Passwords.
I googled a while for possible solutions but got a bit overwhelmed by the
possible solutions. Some of them talked of JNDI as solution but none
where clear as to how to do it.

Moreover the differences in running your application from Eclipse in
development/debugging mode(in Jetty) and finally deploying it in Tomcat is
further confusing me.

Is it possible to specify set of Init Parameters in web.xml ? How do I read
them?

If JNDI is to be used? Can I get a step by step concise summary of how
to achieve this task?


Cheers
Nitish

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



RequestFactory updating issue: update entity which has fields that are not listed in the proxy interface

2011-05-25 Thread Miroslav Genov
Hello,

I'm encountering an issue with RequestFactory when I'm trying to update an 
entity which has properties that are not listed in the proxy objects. For 
example, in my case I have the following structure: 

Contract
  String contractCode; // gets/sets
  String serviceName; // gets/sets
  Date installationDate // get/sets - updated from external service, not 
from the UI

ContractProxy {
  String contractCode;  //gets/sets 
  String serviceName;  //gets/sets
}

and we have a service class ContractService: 
public class ContractService { 
  @Transactional
  public void updateContract(Contract contract) {
dataStore.get().storeOrUpdate(contract); // twig-persist dataStore 
object (GAE)
  }
}

So, the problem is that when contract is updated, the installationDate is 
set to null, cause RF's ContractProxy-Contract transformation doesn't have 
any information about that installation date. Was wondering how you guys are 
handling this situations ? 

I know that It could be done by copying and updating some of the properties, 
but why I have to use RF, when I have to do it manually ? 



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



Re: Strange gwt compile error: JPrimitiveType JReferenceType

2011-05-25 Thread Raphael André Bauer
On Fri, May 20, 2011 at 3:34 PM, Raphael André Bauer
raphael.andre.ba...@gmail.com wrote:
 On Fri, May 20, 2011 at 3:15 PM, Brian Reilly brian.irei...@gmail.com wrote:
...
Just a quick follow-up:
- Bug 2478 seems to be related and I added a description of our
problem (http://code.google.com/p/google-web-toolkit/issues/detail?id=2478#c11)
- Hotfix: If you run into the error you can change the char[] to
Character[] in Base64Coder.java - and the error goes away magically.

So far,

Raphael

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



Re: RequestFactory: Find out which exception was thrown at serverside

2011-05-25 Thread opn
Thanks again! It's working now!

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread MaximeMularz
Hi,

Client Side no probem it works, but ServerSide I can't catch the
excepetion becasue HashSet is not supported by RPCService :

[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.HashSet' was not included in the set of types which can be
serialized by this SerializationPolicy or its Class object could not
be loaded. For security purposes, this type will not be serialized.:
instance =
[ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
messageTemplate='{custom.name.size.message}'}]
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
619)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at
javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
49)
at
javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
72)
at
javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
28)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
740)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
621)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
539)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
390)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
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
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
94)
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:351)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 

Re: RequestFactory updating issue: update entity which has fields that are not listed in the proxy interface

2011-05-25 Thread Thomas Broyer
RF won't (shouldn't) *set* the installationDate to null. If it's set to 
null, it's because when you retrieve the Contract by ID (assuming it's an 
EntityProxy), i.e. in Contract.findContract static method or a Locator's 
find method, you retrieve an object that has a null value in 
installationDate.

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
You can save the errors strings in an arrayListString and transpor by rpc
to the client side.

2011/5/25 MaximeMularz max...@mularz.fr

 Hi,

 Client Side no probem it works, but ServerSide I can't catch the
 excepetion becasue HashSet is not supported by RPCService :

 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.HashSet' was not included in the set of types which can be
 serialized by this SerializationPolicy or its Class object could not
 be loaded. For security purposes, this type will not be serialized.:
 instance =
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
 propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
 messageTemplate='{custom.name.size.message}'}]
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 619)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at

 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
 49)
at

 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 72)
at

 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 28)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
 740)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 621)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
 539)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 390)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 588)
at

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

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

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
 35)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
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

 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
 94)
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
 

Problem with getting height of element

2011-05-25 Thread Globee
Hi,

I am currently working on my own implementation of scrollable panel because 
I want to have opportunity to customize style of scrollbar but I encountered 
some problem. I want to hide scrollbar when it is not needed. Idea is 
simple. I listen for LoadEvent fired by content of this panel and when I 
received it I compare height of content with height of wrapping panel. If 
content has height grater than wrapper, I hide scrollbar but here emerges my 
problem. I need opportunity to define height of wrapper in css in 
percentage. In this case when I check height of wrapper after receiving 
LoadEvent it's always 0px thus scrollbar is always visible even if it is 
not needed. Of course after rendering wrapper has height computed 
accordingly to percentage value and it's not 0px. I tried to get height of 
this wrapper by js function getComputedStyle() but it didn't work, it still 
returns 0px. Maybe someone has other idea how I can hide this scrollbar or 
get computed height of this wrapper?

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



Отг: Re: RequestFactory updating issue: update entity which has fields that are not listed in the proxy interface

2011-05-25 Thread Miroslav Genov
I just wrote a small test in my sample project injecting-request-factory 
that explains for what I'm talking about. Here is the commit of changes:

https://github.com/mgenov/injecting-request-factory/commit/c7855f9bca9ae07982d7298af63350c697f2582b

Here is the source code of the test: 
https://github.com/mgenov/injecting-request-factory/blob/c7855f9bca9ae07982d7298af63350c697f2582b/test/com/clouway/testing/requestfactory/UpdateExistingEntityTest.java

Can you take a look whether I'm doing something wrong ?

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



Re: new html page wizard broken ?

2011-05-25 Thread Tor Pedersen
I get the same thing on Windows... there is allready a registered
issue @ http://code.google.com/p/google-web-toolkit/issues/detail?id=6338

Hopefully they will fix this pronto, as a gwt project isn't going to
fly very far without an html page. As a workaround I guess you can
create a new project with the sample code, and then copy the contents
of the html and css pages from there

//T

On 11 Mai, 08:07, bishop martin.bis...@gmail.com wrote:
 On a fresh install on Linux using Eclipse 3.6 and GWT 2.3.0 
 thenewhtmlpagewizard barfs this upon clicking Finish, I searched
 extensively to try and find source code for the first few layers of
 the stack trace, but to no avail.

 java.lang.NullPointerException
         at
 com.google.gdt.eclipse.core.ResourceUtils.getResourceAsString(ResourceUtils.java:
 655)
         at
 com.google.gdt.eclipse.core.ResourceUtils.getResourceAsString(ResourceUtils.java:
 467)
         at
 com.google.gwt.eclipse.core.wizards.NewHostPageWizard.getDocType(NewHostPageWizard.java:
 216)
         at
 com.google.gwt.eclipse.core.wizards.NewHostPageWizard.getInitialContents(NewHostPageWizard.java:
 148)
         at
 com.google.gwt.eclipse.core.wizards.AbstractNewFileWizard.createNewFile(AbstractNewFileWizard.java:
 130)
         at
 com.google.gwt.eclipse.core.wizards.AbstractNewFileWizard.performFinish(AbstractNewFileWizard.java:
 94)
         at
 com.google.gwt.eclipse.core.wizards.NewHostPageWizard.performFinish(NewHostPageWizard.java:
 115)
         at
 org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:
 811)
         at
 org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:
 430)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
         at
 org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
 234)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
 3540)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
         at org.eclipse.jface.window.Window.open(Window.java:801)
         at
 org.eclipse.ui.internal.actions.NewWizardShortcutAction.run(NewWizardShortcutAction.java:
 135)
         at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
         at
 org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:
 584)
         at org.eclipse.jface.action.ActionContributionItem.access
 $2(ActionContributionItem.java:501)
         at org.eclipse.jface.action.ActionContributionItem
 $5.handleEvent(ActionContributionItem.java:411)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
 3540)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:
 2640)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
         at
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:
 332)
         at
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:
 664)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:
 149)
         at
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:
 115)
         at
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:
 196)
         at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:
 110)
         at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:
 79)
         at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
 369)
         at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:
 179)
         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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
         at org.eclipse.equinox.launcher.Main.main(Main.java:1384)

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

Dealing with XSRF/CSRF

2011-05-25 Thread HelperMethod
Am I correct, that if I pass a self-generated sessionID with every RPC
request, and only check this sessionID instead of the one passed in
the cookie header, the session can't be hijacked by malicious sites? I
know that you should also send this sessionID in the cookie and then
compare it with the one sent with every request to detect an XSRF
attack but doing it my way should at least protect against XSRF
attacks, doesn't it?

EDIT

I know that GWT 2.3 takes care of XSRF by providing XSRF Token
Support. Sadly I'm stuck with GWT 2.2 and so have to deal with it by
myself.

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



Отг: Re: RequestFactory updating issue: update entity which has fields that are not listed in the proxy interface

2011-05-25 Thread Miroslav Genov
I think that I found where is the problem. The problem is that I'm 
initializing my id locally and RF is checking whether you are doing that by 
using the EPHEMERAL placeholder. 

  /**
   * A placeholder value for {@link #clientId} to indicate the id was not
   * created locally.
   */
  public static final int NEVER_EPHEMERAL = -1;

So I have to load object first then I have to update it. The following 
change makes the things working:

 CustomerRequestFactory.CustomerRequest request = rf.customerRequest();
request.findCustomer(1l).to(new ReceiverCustomerProxy() {
  @Override
  public void onSuccess(CustomerProxy entity) {
CustomerRequestFactory.CustomerRequest editRequest = 
rf.customerRequest();

entity = editRequest.edit(entity);

entity.setName(test test);
entity.setVersion(2l);

editRequest.store(entity).to(new ReceiverVoid() {
  @Override
  public void onSuccess(Void response) {

  }
}).fire();
  }
}).fire();

Are there are any workarounds which I can use to lie RF that request was 
loaded ?

In my case object is loaded as in the example, but proxy values are copied 
from one proxy to another due some old bugs with RF  Editor integration. It 
seems that this copy functionality is broking everything. 

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



Re: MVP pattern uncaught exception

2011-05-25 Thread Jordi Planadecursach
Problem identified. Thanks for the help.

The activity was injected to the View after its construction while the
activity was requested by the class inicializator.
I am forced to pass the activity in the constructor of the view.

Is that a good practice?

On 24 Maig, 22:58, Alisson Prestes javalis...@gmail.com wrote:
 You must find the caused by on the stack trace:

 Caused by: java.lang.NullPointerException: null

  at 
 com.rourevell.booking.client.ui.ControlPanelViewImpl.init(ControlPanelVie 
 wImpl.java:80)

  at 
 com.rourevell.booking.client.service.impl.ClientFactoryImpl.getControlPanel 
 View(ClientFactoryImpl.java:37)

  at 
 com.rourevell.booking.client.activity.ControlPanelActivity.start(ControlPan 
 elActivity.java:21)
 ...

 It seems that you tried to acess a variable without checking if it's null
 and got this error. Did you initialize the variable?

 Alisson Presteswww.google.com/profiles/javalisson

 On Tue, May 24, 2011 at 5:36 AM, Jordi Planadecursach
 planad...@gmail.comwrote:







  Hello guys,

  I have an exception in the following code using the MVP pattern. I'm
  just iniciaiting myself to the GWT world and I would need some help.

  Call:

  public class LoginActivity extends AbstractActivity implements
  LoginView.Presenter {
         private ClientFactory clientFactory;
         [...]
         public void goToControlPanel() {
                 clientFactory.getPlaceController().goTo(new
  ControlPanelPlace(controlPanelPlace));
         }

  Stack trace:

  10:26:01.019 [ERROR] [rourevell_booking] Uncaught exception escaped
  com.google.gwt.event.shared.UmbrellaException: One or more exceptions
  caught, see full set in UmbrellaException#getCauses
     at
  com.google.gwt.event.shared.EventBus.castFireEvent(EventBus.java:70)
     at
  com.google.gwt.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:
  57)
     at
  com.google.gwt.place.shared.PlaceController.goTo(PlaceController.java:
  136)
     at

  com.rourevell.booking.client.activity.LoginActivity.goToControlPanel(LoginA 
  ctivity.java:
  29)
     at com.rourevell.booking.client.ui.LoginViewImpl
  $1$1.onSuccess(LoginViewImpl.java:61)
     at com.rourevell.booking.client.ui.LoginViewImpl
  $1$1.onSuccess(LoginViewImpl.java:1)
     at

  com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv 
  ed(RequestCallbackAdapter.java:
  232)
     at
  com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
  287)
     at com.google.gwt.http.client.RequestBuilder
  $1.onReadyStateChange(RequestBuilder.java:395)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
  39)
     at

  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
  l.java:
  25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at
  com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
     at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     at

  com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
  a:
  167)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
  rReturn(BrowserChannelServer.java:
  326)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
  elServer.java:
  207)
     at
  com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
  132)
     at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
  561)
     at
  com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
  269)
     at

  com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
  ava:
  91)
     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
     at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
     at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
     at

  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
  l.java:
  25)
     at java.lang.reflect.Method.invoke(Method.java:597)
     at
  com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
     at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
     at

  com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
  a:
  167)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
  lServer.java:
  281)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
  nelServer.java:
  531)
     at

  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java 
  :
  352)
     at java.lang.Thread.run(Thread.java:619)
  Caused by: com.google.gwt.event.shared.UmbrellaException: One or more
  exceptions caught, see full set in UmbrellaException#getCauses
     at

  com.google.gwt.activity.shared.ActivityManager.onPlaceChange(ActivityManage 
  r.java:
  173)
 

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread MaximeMularz
The implementation (http://code.google.com/p/google-web-toolkit/source/
browse/trunk/samples/validation/src/com/google/gwt/sample/validation):

public class GreetingServiceImpl extends RpcServlet implements
GreetingService {

  private final Validator validator =
Validation.buildDefaultValidatorFactory().getValidator();

  public SafeHtml greetServer(Person person) throws
IllegalArgumentException,
  ConstraintViolationException {
// Verify that the input is valid.
SetConstraintViolationPerson violations =
validator.validate(person,
Default.class, ServerGroup.class);
if (!violations.isEmpty()) {
  SetConstraintViolation? temp = new
HashSetConstraintViolation?(
  violations);
  throw new ConstraintViolationException(temp);
}

String serverInfo = getServletContext().getServerInfo();
String userAgent = getThreadLocalRequest().getHeader(User-
Agent);

// Escape data from the client to avoid cross-site script
vulnerabilities.
SafeHtmlBuilder builder = new SafeHtmlBuilder();

SafeHtml safeHtml = builder//
.appendEscapedLines(Hello,  + person.getName() + !)//
.appendHtmlConstant(br)//
.appendEscaped(I am running  + serverInfo + .)//
.appendHtmlConstant(brbr)//
.appendEscaped(It looks like you are using: )//
.appendEscaped(userAgent)//
.toSafeHtml();
return safeHtml;
  }

On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
wrote:
 You can save the errors strings in an arrayListString and transpor by rpc
 to the client side.

 2011/5/25 MaximeMularz max...@mularz.fr

  Hi,

  Client Side no probem it works, but ServerSide I can't catch the
  excepetion becasue HashSet is not supported by RPCService :

  [ERROR] javax.servlet.ServletContext log: Exception while dispatching
  incoming RPC call
  com.google.gwt.user.client.rpc.SerializationException: Type
  'java.util.HashSet' was not included in the set of types which can be
  serialized by this SerializationPolicy or its Class object could not
  be loaded. For security purposes, this type will not be serialized.:
  instance =
  [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
  propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
  messageTemplate='{custom.name.size.message}'}]
         at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
  619)
         at

  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
  126)
         at

  javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
  49)
         at

  javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
  72)
         at

  javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
  28)
         at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
  740)
         at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
  621)
         at

  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
  126)
         at
  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
  $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
         at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
  539)
         at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
         at
  com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
  390)
         at
  com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
  588)
         at

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

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

  com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
  62)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
  35)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
         at

  

Re: JSNI, qualified reference to static method (devmode works fine!

2011-05-25 Thread Chris
Thank you for your reply; this resolved my issue.  I hadn't quite
wrapped my head around JSNI and was going by some examples I found
online that used var that = this before calling the JSNI method.
Thanks again.

On May 20, 3:55 pm, Thomas Broyer t.bro...@gmail.com wrote:
 If it's static, why do you qualify it with that? Simply call it with
 return @com.hidden.JSNIBridge::doProcessHit(Ljava/lang/
 String;Ljava/lang/String;DDLjava/lang/String;Ljava/lang/String;)((oldId,
 newId, mousePtX, mousePtY, xUnit, yUnit);

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



Re: send gwt-user.jar with validation projects

2011-05-25 Thread MaximeMularz
Hi,

I've compiled the last version of GWT, I've uploaded on my google
account, if you want the file send me email, max...@mularz.fr

Regards


On 23 mai, 06:29, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Paste stacktrace if you want better help

 2011/5/22 apanizo adolfo.pan...@gmail.com

  Someone could send a compilation of gwt-user to include all validation
  projects?  (i.e org.hibernate.Validator)

  I'm working with this api and I am not able to compile the project in
  eclipse (problems with ant)

  A greeting and thanks in advance.

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

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



Re: send gwt-user.jar with validation projects

2011-05-25 Thread MaximeMularz
Sorry I didnt' care your name !!


On 25 mai, 15:07, MaximeMularz max...@mularz.fr wrote:
 Hi,

 I've compiled the last version of GWT, I've uploaded on my google
 account, if you want the file send me email, max...@mularz.fr

 Regards

 On 23 mai, 06:29, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:

  Paste stacktrace if you want better help

  2011/5/22 apanizo adolfo.pan...@gmail.com

   Someone could send a compilation of gwt-user to include all validation
   projects?  (i.e org.hibernate.Validator)

   I'm working with this api and I am not able to compile the project in
   eclipse (problems with ant)

   A greeting and thanks in advance.

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

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



Detect panel remove call

2011-05-25 Thread jpp1jpp1
I have a class that extends gwt Panel. Is there a way to detect when
it is removed so I can ask for confirmation?

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



ant build using javac/gwt shows errors when eclipse/gwt build does not

2011-05-25 Thread sldahlin
In the gwt project in Eclipse uses Eclipse to compile the java code
using the automatic build feature then the gwtc compile using ant does
not show any problems. If however, I clean all the existing .class
files and then execute an ant build which runs javac and then gwtc, I
get problems with my JPA entities such as:

[ERROR] Line 12: No source code is available for type
javax.persistence.metamodel.SingularAttribute; did you forget to
inherit a required module?

I should note that I am making sure that the classpath for the ant
build is using the same exact set of libraries that is present in the
Eclipse Java Build Path. Since Eclipse does not apparently provide a
log of the build process I cannot determine if there is some
divergence. Since the projects have to build on Hudson on the build
server (which has the problem I outlined) I cannot rely on a dev
machine doing the .class generation and then gwtc doing the gwt
compilations.

I wish to note that the jpa/dto entities are contained inside the
project and are not a separate project. We have been using this
technique for a while but suddenly this issue showed up. I presume
either Eclipse is using jars different than the ones I have in the WEB-
INF/lib (even though they match the java build path) or it is some
ordering issue

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



can't get Audio to replay.

2011-05-25 Thread dani shaulov
I want an audio file to play every time I click a button. Can't find a
way that works.
Tried:

final Audio boom1 = Audio.createIfSupported();
boom1.addSource(Resources.INSTANCE.boom1().getUrl(),
AudioElement.TYPE_MP3);
boom1.load();
Button b1 = new Button(Boom1);
b1.addClickHandler(new ClickHandler()
{

@Override
public void onClick(ClickEvent event)
{
boom1.setCurrentTime(0);
boom1.play();
}
});
RootPanel.get().add(b1);

But it doesn't seem to work. Furthermore, More testing revealed that
the SetCurrentTime method doesn't seem to work at all.

When clicking the button, the file plays once and that's it, never
plays again.

*Resources.INSTANCE.boom1() is a function in a client bundle that
retrieves mp3 file.

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



SimpleEventBus: How to add a handler and fire an event for it when nested in a parent handler?

2011-05-25 Thread Panam
In my parent handler, I'd like to initiate an rpc call and react to
it when it arrives.
Thus in short, the setup is as follows

thisMethodIsCalledBytheParentHandler(){
HandlerRegistration messageRetrievedHandlerRegistration =
myEventBus.addMessageRetrievedHandler(new MessageRetrievedHandler() {
@Override
public void onMessagesRetrieved(Message event) {
//do something
messageRetrievedHandlerRegistration.removeHandler();
}
}
fetchMessage();
}

fetchMessage(){
myService.getMessage(id, new
DefaultAsyncCallbackListEventMessageDTO() {
public void onSuccess(Message myMessage){
//do someting
myEventBus.fireEvent(new messageRetrievedEvent(id, 
myMessage));
)
}

The addMessageRetrievedHandler is actually enqueueAdded in the
SimpleEventBus (because firingDepth is  0):

SimpleEventBus(line 166.., GWT 2.1.1 )
 private H extends EventHandler HandlerRegistration doAdd(
  final GwtEvent.TypeH type, final Object source, final H
handler) {
if (firingDepth  0) {
  enqueueAdd(type, source, handler);
} else {
  doAddNow(type, source, handler);
}

Problem: The handler is added AFTER the messageRetrievedEvent is
actually fired, because both, adding the handler and firing the
corresponding event is taking place in the context of a parent handler
(i.e. firingDepth is  0).

Any ideas on how to get around this? Tried some Scheduler experiments
but this did not really seem to help...

Thanks
panam

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



problem install

2011-05-25 Thread bacourosp
hello, when I try to install the google in my eclipse, said that it
the following item:

 org.eclipse.wst.xml.core 

Where I can download?
Thanks for your time! ;)

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



Generating GWT widgets based on an XML template

2011-05-25 Thread Arshad
Hi all,

I'm pretty new to GWT, so please bear... Coming from a Struts
background, GWT concepts takes a lot of getting used to :)

I have a requirement of defining a user interface in a custom XML
template, process it to generate a technology independent generic
component tree, and use this tree to generate various different user
interfaces (e.g. Swing, GWT, JSF, etc...). To get this going, I make
use of reflection to transfer values from the generic component to the
Swing/GWT/JSF component.

I'm in the process of developing the GWT part, and feel like theirs
two ways of approaching this:
1. Do only the XML processing in the server side. The client makes an
RPC call and retrieves the generic component tree in to the client
side in order to generate the GWT widgets. This doesn't seem to be an
option since GWT doesn't support reflection on the client side.

2. Do both the XML processing and the GWT widget generation on the
server side. The client makes an RPC call and retrieves the generated
GWT widgets. This also doesn't seem to be possible... may be because
it the widgets are not serializable?

I would really appreciate any input regarding this. Is there anyway I
can generate the GWT widgets on the server side and retrieve it from
the client side? Or is there any other way I can approach this
problem?

Thanks in advance,
Arshad

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



Re: Initialization Parameter in GWT

2011-05-25 Thread Myth17
Moreover once I have the Connection reference, I would like to share it with 
multiple RemoteServiceServlets. How can I achieve that?

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



Re: GWT Designer + GXT - Palette don't display GXT components

2011-05-25 Thread Eric Clayberg
GXT is only supported for GWT Java UIs.

UiBinder does not provide an API for non-standard parsers, so, in
general, GXT won't work with GWT Designer in UiBinder mode.

GXT works fine using GWT Designer and GWT Java UIs.

On May 24, 10:08 am, Jonathan jonathan.aubuc...@gmail.com wrote:
 Hi Eric,
 I'm editing a Uibinder file.
 I see all the gwt components, but not the gxt components

 Still have the problem.

 On 24 mai, 10:00, Eric Clayberg clayb...@google.com wrote:







  Are you editing a GWT Java class or UiBinder file?

  The GXT palette will only appear if you are editing a GWT Java class.

  On May 22, 11:42 pm, Jonathan jonathan.aubuc...@gmail.com wrote:

   Hi,

   This is my versions:
   gxt-2.2.4-gwt22.jar
   Google Web Toolkit SDK 2.3.0    2.3.0.r36v201104261928
   com.google.gwt.eclipse.sdkbundle.e36.feature.feature.group
   GWT Designer    2.3.1.r36x201105142201
   com.google.gdt.eclipse.designer.feature.feature.group
   GWT Designer Core       2.3.1.r36x201105142127
   com.google.gdt.eclipse.designer.hosted.feature.feature.group
   GWT Designer Editor     2.3.1.r36x201105142150
   com.google.gdt.eclipse.designer.editor.feature.feature.group

   I fallowed the steps described 
   here:http://code.google.com/intl/fr-FR/webtoolkit/tools/gwtdesigner/featur...

   The GWT Designer Palette don't display the GXT components, but I can
   manually add them:

   Right click on the palette panel -- Add component -- Choose a GXT
   class name (ie: CardPanel)

   Does it have a way to do it automatically for all GXT components? (ie:
   import a xml palette pre-made)

   Tanx.

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



Re: Help with WindowBuilder Pro XWT Application Wizard

2011-05-25 Thread Eric Clayberg
Please note that XWT is an Eclipse technology that is unrelated to
GWT. As such, this is the wrong place to ask any questions about it.

If you have questions about XWT or how to configure a project to use
XWT, they should be asked in the Eclipse XWT forum.

For questions specifically about WindowBuilder, you should post those
to the Eclipse WindowBuilder forum.

On May 24, 10:27 pm, Eric erics...@gmail.com wrote:
 I figured it out myself,

 I needed to add three .jar's to my project's references,
 org.eclipse.core.databinding
 org.eclipse.core.databinding.observable
 org.eclipse.jface.databinding

 I did that by clicking Project - Properties - Java Build Path -
 Libraries, Add External Jar's, and then I browsed to c:\eclipse
 \plugins and found the .jars there and added them.

 On May 24, 1:28 pm, Eric erics...@gmail.com wrote:







  Also theXWTapplication wizard page is 
  here:http://code.google.com/javadevtools/wbpro/wizards/xwt/application.html

  On May 24, 9:39 am, Eric erics...@gmail.com wrote:

   Hi guys,

   I tried to post before but it didnt post so I will try agian.

   I am trying to use the WindoBuilder ProXWTApplication Wizard but I
   keep seeing an error, and I don't know how to fix it.  If anyone could
   help me I would greatly appreciate it.

   Here is what I did:
   1) Install Java
   2) Install Eclipse
   3) Install WindowBuilder Pro Eclipse plugin (checked all boxes)
   4) File-New-Project-WindowBuilder\SWT Designer\SWT/JFace Java
   Project
   5) Ctrl-N-WindowBuilder\SWT Designer\XWT\XWTApplication

   At this point I am able to see my window in the editor, add controls,
   modify it, edit the code, etc.

   But when I right click the application - run as - Java Application
   then I get this error message:

   Exception in thread main java.lang.NoClassDefFoundError: org/eclipse/
   core/databinding/conversion/IConverter
           at 
   org.eclipse.e4.xwt.XWTLoaderManager.clinit(XWTLoaderManager.java:
   19)
           at org.eclipse.e4.xwt.XWT.load(XWT.java:379)
           at com.Eric.SomeXwtApplication.main(SomeXwtApplication.java:16)
   Caused by: java.lang.ClassNotFoundException:
   org.eclipse.core.databinding.conversion.IConverter
           at java.net.URLClassLoader$1.run(Unknown Source)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           ... 3 more

   I don't know how to troubleshoot this, am I missing a reference?  Why
   is the WindowBuilder ProXWTapplication wizard not giving me the
   reference?

   Thanks,
   Eric

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



Re: Help - Trying to make XWT application

2011-05-25 Thread Eric Clayberg
XWT is an Eclipse UI technology for defining SWT-based UIs using XML.
It is unrelated to GWT.

On May 24, 1:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 What is XWT?

 2011/5/23 Eric erics...@gmail.com







  I did the following steps
  1) Install Java
  2) Install Eclipse
  3) Install WindowBuilder, SWT Designer
  4) File-New-Project-WindowBuilder\SWT Designer\SWT/JFace Java
  Project
  5) Ctrl-N-SWT Designer\XWT\XWT Application

  Now I see my project, I can enter designer mode and edit my form, I
  can edit the source, etc.
  But when I click Run I get an exception

  Exception in thread main java.lang.NoClassDefFoundError: org/eclipse/
  core/databinding/conversion/IConverter
         at
  org.eclipse.e4.xwt.XWTLoaderManager.clinit(XWTLoaderManager.java:
  19)
         at org.eclipse.e4.xwt.XWT.load(XWT.java:379)
         at com.something.SomeXWTApp.main(SomeXWTApp.java:16)
  Caused by: java.lang.ClassNotFoundException:
  org.eclipse.core.databinding.conversion.IConverter
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         ... 3 more

  I don't understand this error.  Is my project missing a reference?  If
  so, why is it missing a reference?  (isn't that the job of the wizard,
  to add all the references I need?)  Did I use the wizard incorrectly?

  Thank you in advance for the help.

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

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



GWT initialization timeout.

2011-05-25 Thread Navindian
It is not working with the latest also. Design Page has n't opened till
date..10 developers here tried different ways to see Design Page.

On Fri, May 20, 2011 at 9:10 AM, Navindian navind...@gmail.com wrote:

 I need to use GWT Designer and it seems not to be working..
 Can anybody saw working version of gwt designer anytime?
 Please tell which version is working fine..


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



Selecting TextInputCell

2011-05-25 Thread tjmcc18
I have a CellTable which makes use of TextInputCells to allow the user
to edit data.  I would like this to behave in a spreadsheet like
manner such that the user can select the various textboxes and make
changes as they see fit.  However, the default behavior for selecting
the textboxes is not desirable.  When a user first selects a textbox,
it receives focus and the user can edit the data.  When the user then
tries to select another textbox, the previous textbox loses focus but
the newly selected textbox does not receive focus.  Clicking on the
box again gives it focus.  In essence it takes two click to select the
textbox.  This is very annoying.  I believe the first click possibly
selects the cell, but I'm not sure.  Does anyone know how to get
around this?

-TJ

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



GWT Designer not working?

2011-05-25 Thread Navindian
org.eclipse.wb.internal.core.utils.exception.DesignerException: 4103
(GWT initialization timeout.).
at 
com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java:59)
at 
org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java:225)
at 
org.eclipse.wb.internal.core.editor.DesignPage.showExceptionOnDesignPane(DesignPage.java:471)
at 
org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:413)
at 
org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
at 
org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
at 
org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:247)
at 
org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:225)
at 
org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
at 
org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
at 
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
at 
org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at 
org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at 
org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at 
org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at 
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at 
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
at org.eclipse.equinox.launcher.Main.run(Main.java:1408)


On Wed, May 25, 2011 at 7:48 PM, Navindian navind...@gmail.com wrote:

 It is not working with the latest also. Design Page has n't opened till
 date..10 developers here tried different ways to see Design Page.

 On Fri, May 20, 2011 at 9:10 AM, Navindian navind...@gmail.com wrote:

 I need to use GWT Designer and it seems not to be working..
 Can anybody saw working version of gwt designer anytime?
 Please tell which version is working fine..




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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
I don´t understand. ¿What´s the problem?

Maybe you can declarate HashMap in the client side and can´t transport by
rpc.

I´m not sure, but, what´s the problem?

2011/5/25 MaximeMularz max...@mularz.fr

 The implementation (http://code.google.com/p/google-web-toolkit/source/
 browse/trunk/samples/validation/src/com/google/gwt/sample/validation):

 public class GreetingServiceImpl extends RpcServlet implements
GreetingService {

  private final Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator();

  public SafeHtml greetServer(Person person) throws
 IllegalArgumentException,
  ConstraintViolationException {
// Verify that the input is valid.
SetConstraintViolationPerson violations =
 validator.validate(person,
Default.class, ServerGroup.class);
if (!violations.isEmpty()) {
  SetConstraintViolation? temp = new
 HashSetConstraintViolation?(
  violations);
  throw new ConstraintViolationException(temp);
}

String serverInfo = getServletContext().getServerInfo();
String userAgent = getThreadLocalRequest().getHeader(User-
 Agent);

// Escape data from the client to avoid cross-site script
 vulnerabilities.
SafeHtmlBuilder builder = new SafeHtmlBuilder();

SafeHtml safeHtml = builder//
.appendEscapedLines(Hello,  + person.getName() + !)//
.appendHtmlConstant(br)//
.appendEscaped(I am running  + serverInfo + .)//
.appendHtmlConstant(brbr)//
.appendEscaped(It looks like you are using: )//
.appendEscaped(userAgent)//
.toSafeHtml();
return safeHtml;
  }

 On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  You can save the errors strings in an arrayListString and transpor by
 rpc
  to the client side.
 
  2011/5/25 MaximeMularz max...@mularz.fr
 
   Hi,
 
   Client Side no probem it works, but ServerSide I can't catch the
   excepetion becasue HashSet is not supported by RPCService :
 
   [ERROR] javax.servlet.ServletContext log: Exception while dispatching
   incoming RPC call
   com.google.gwt.user.client.rpc.SerializationException: Type
   'java.util.HashSet' was not included in the set of types which can be
   serialized by this SerializationPolicy or its Class object could not
   be loaded. For security purposes, this type will not be serialized.:
   instance =
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
   propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
   messageTemplate='{custom.name.size.message}'}]
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   619)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
   49)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   72)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   28)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
   740)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   621)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
   $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
   539)
  at
 com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
  at
   com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
   390)
  at
   com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
   588)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
   208)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
   248)
  at
 
  
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
   62)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  at
   org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
   511)
  at org.mortbay.jetty.servlet.ServletHandler
   

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunication.html#DevGuideSerializableTypes

2011/5/25 Adolfo Panizo Touzon adolfo.pan...@gmail.com

 I don´t understand. ¿What´s the problem?

 Maybe you can declarate HashMap in the client side and can´t transport by
 rpc.

 I´m not sure, but, what´s the problem?

 2011/5/25 MaximeMularz max...@mularz.fr

 The implementation (http://code.google.com/p/google-web-toolkit/source/
 browse/trunk/samples/validation/src/com/google/gwt/sample/validationhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/src/com/google/gwt/sample/validation
 ):

 public class GreetingServiceImpl extends RpcServlet implements
GreetingService {

  private final Validator validator =
 Validation.buildDefaultValidatorFactory().getValidator();

  public SafeHtml greetServer(Person person) throws
 IllegalArgumentException,
  ConstraintViolationException {
// Verify that the input is valid.
SetConstraintViolationPerson violations =
 validator.validate(person,
Default.class, ServerGroup.class);
if (!violations.isEmpty()) {
  SetConstraintViolation? temp = new
 HashSetConstraintViolation?(
  violations);
  throw new ConstraintViolationException(temp);
}

String serverInfo = getServletContext().getServerInfo();
String userAgent = getThreadLocalRequest().getHeader(User-
 Agent);

// Escape data from the client to avoid cross-site script
 vulnerabilities.
SafeHtmlBuilder builder = new SafeHtmlBuilder();

SafeHtml safeHtml = builder//
.appendEscapedLines(Hello,  + person.getName() + !)//
.appendHtmlConstant(br)//
.appendEscaped(I am running  + serverInfo + .)//
.appendHtmlConstant(brbr)//
.appendEscaped(It looks like you are using: )//
.appendEscaped(userAgent)//
.toSafeHtml();
return safeHtml;
  }

 On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  You can save the errors strings in an arrayListString and transpor by
 rpc
  to the client side.
 
  2011/5/25 MaximeMularz max...@mularz.fr
 
   Hi,
 
   Client Side no probem it works, but ServerSide I can't catch the
   excepetion becasue HashSet is not supported by RPCService :
 
   [ERROR] javax.servlet.ServletContext log: Exception while dispatching
   incoming RPC call
   com.google.gwt.user.client.rpc.SerializationException: Type
   'java.util.HashSet' was not included in the set of types which can be
   serialized by this SerializationPolicy or its Class object could not
   be loaded. For security purposes, this type will not be serialized.:
   instance =
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
   propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
   messageTemplate='{custom.name.size.message}'}]
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   619)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
   49)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   72)
  at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
   28)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
   740)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
   621)
  at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
   126)
  at
   com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
   $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
  at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
   539)
  at
 com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
  at
   com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
   390)
  at
   com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
   588)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
   208)
  at
 
  
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
   248)
  at
 
  
 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
   62)
  at 

download gwt application data

2011-05-25 Thread barz1

The company I work for is switching its front end to a gwt application
and I was wondering if it is possible to write a script (whether with
bash and wget or cURL, or java or anything) that enables me to
download the actual content of the gwt web application. Because right
now if I try with a command such as wget I just download a page with
some javascript functions, but none of the actual page content (what I
am interested in). I am on the QA side so I guess I am wondering if it
is possible to perform such a task without having direct access to the
developers code. Thanks!

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



Re: GWT Designer not working?

2011-05-25 Thread gwa
Either is really a initialization timeout because your computer is
slow / ui is large
or you can check if you havn't a proxy defined at the system level (on
windows, check IE network connection). (gwt designer try to connect to
a localhost port, but if a proxy is defined, sometime designer send
your request to the proxy)

On 25 mai, 16:23, Navindian navind...@gmail.com wrote:
 org.eclipse.wb.internal.core.utils.exception.DesignerException: 4103
 (GWT initialization timeout.).
         at 
 com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java:59)
         at 
 org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java:225)
         at 
 org.eclipse.wb.internal.core.editor.DesignPage.showExceptionOnDesignPane(DesignPage.java:471)
         at 
 org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:413)
         at 
 org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
         at 
 org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
         at 
 org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:247)
         at 
 org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:225)
         at 
 org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
         at 
 org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
         at 
 org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
         at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
         at 
 org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
         at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
         at 
 org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
         at 
 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
         at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
         at 
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
         at 
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
         at 
 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at 
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
         at 
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
         at 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at 
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
         at 
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1408)







 On Wed, May 25, 2011 at 7:48 PM, Navindian navind...@gmail.com wrote:
  It is not working with the latest also. Design Page has n't opened till
  date..10 developers here tried different ways to see Design Page.

  On Fri, May 20, 2011 at 9:10 AM, Navindian navind...@gmail.com wrote:

  I need to use GWT Designer and it seems not to be working..
  Can anybody saw working version of gwt designer anytime?
  Please tell which version is working fine..

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

Re: download gwt application data

2011-05-25 Thread David Chandler
GWT apps manipulate the browser's DOM directly via Javascript, so there is
no HTML layout. Is that what you mean by page content? However, you can
use the Snapshot Firefox extension to save the DOM structure at a given
point in time as an HTML file.

HTH,
/dmc

On Wed, May 25, 2011 at 10:47 AM, barz1 mbarsz...@yahoo.com wrote:


 The company I work for is switching its front end to a gwt application
 and I was wondering if it is possible to write a script (whether with
 bash and wget or cURL, or java or anything) that enables me to
 download the actual content of the gwt web application. Because right
 now if I try with a command such as wget I just download a page with
 some javascript functions, but none of the actual page content (what I
 am interested in). I am on the QA side so I guess I am wondering if it
 is possible to perform such a task without having direct access to the
 developers code. Thanks!

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re : Re: GEP: Signing in with Google Account vs. Proxy

2011-05-25 Thread gwa
Hi, 

I've the same issue. 
I'm able to update my eclipse installation but the click on sign in to 
google... simply fail with a 'connection timeout'.

On the global proxy settings (I use windows) i've done some test like to 
define a proxy that i can check connection on, but no connection from GPE 
are detected...


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



Re: Generating GWT widgets based on an XML template

2011-05-25 Thread Gabriel
Hi,

I can think of two options to implement what you want:
1) On the server side generate DTOs that represent the UI structure
and on the client side read them and build the UI accordingly.
2) Generate pure HTML on the server and use it as the value of an HTML
widget.

The choice depends on what exactly you need from the client side. You
should minimize the use of widgets as much as possible, and use them
only if you need to capture events. Otherwise it is recommended to use
HTML.

Gabriel

On May 25, 9:12 am, Arshad arshadnadh...@gmail.com wrote:
 Hi all,

 I'm pretty new to GWT, so please bear... Coming from a Struts
 background, GWT concepts takes a lot of getting used to :)

 I have a requirement of defining a user interface in a custom XML
 template, process it to generate a technology independent generic
 component tree, and use this tree to generate various different user
 interfaces (e.g. Swing, GWT, JSF, etc...). To get this going, I make
 use of reflection to transfer values from the generic component to the
 Swing/GWT/JSF component.

 I'm in the process of developing the GWT part, and feel like theirs
 two ways of approaching this:
 1. Do only the XML processing in the server side. The client makes an
 RPC call and retrieves the generic component tree in to the client
 side in order to generate the GWT widgets. This doesn't seem to be an
 option since GWT doesn't support reflection on the client side.

 2. Do both the XML processing and the GWT widget generation on the
 server side. The client makes an RPC call and retrieves the generated
 GWT widgets. This also doesn't seem to be possible... may be because
 it the widgets are not serializable?

 I would really appreciate any input regarding this. Is there anyway I
 can generate the GWT widgets on the server side and retrieve it from
 the client side? Or is there any other way I can approach this
 problem?

 Thanks in advance,
 Arshad

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



Re: GWT remote logging

2011-05-25 Thread Dave
Adding a mapping to my web.xml made it work.  Thanks a bunch!

On May 25, 1:53 am, Alexandre Ardhuin alexandre.ardh...@gmail.com
wrote:
 Have you add an URL mapping in your web.xml ?

     servlet
         servlet-nameremoteLogging/servlet-name

 servlet-classcom.google.gwt.logging.server.RemoteLoggingServiceImpl/serv 
 let-class
     /servlet
     servlet-mapping
         servlet-nameremoteLogging/servlet-name
         url-pattern/YOUR_MODULE/remote_logging/url-pattern
     /servlet-mapping

 Alexandre

 2011/5/24 Dave meye...@gmail.com







  I'm trying to Log a message to a server log.  I found these
  instructions:

 http://code.google.com/webtoolkit/doc/latest/DevGuideLogging.html#Rem...

  In my GWT XML I have
  inherits name=com.google.gwt.logging.Logging/
  set-property name=gwt.logging.simpleRemoteHandler value=ENABLED /

  my code is:
  SimpleRemoteLogHandler remoteLog = new SimpleRemoteLogHandler();
  remoteLog.publish(new LogRecord(Level.INFO, test GWT log));

  I'm sure that I'm missing a simple setup step.

  I get the error message.
  WireActivityLogger SEVERE: Remote logging failed:
  com.google.gwt.user.client.rpc.StatusCodeException: 0
    at

  com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceiv 
  ed(RequestCallbackAdapter.java:
  192)
    at
  com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
  287)
    at com.google.gwt.http.client.RequestBuilder
  $1.onReadyStateChange(RequestBuilder.java:395)
    at sun.reflect.GeneratedMethodAccessor36.invoke(Unknown Source)
    at

  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
  l.java:
  25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
  103)
    at
  com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
    at

  com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav 
  a:
  157)
    at

  com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
  rReturn(BrowserChannelServer.java:
  326)
    at

  com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
  elServer.java:
  207)
    at
  com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
  126)
    at
  com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
  561)
    at
  com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
  269)
    at

  com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
  ava:
  91)
    at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
    at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)

  Thanks for your assistance,

  Dave

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

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



StockWatcher javascript compile does not open browser

2011-05-25 Thread Bob
I am working my way through the STockWatcher tutorial at
http://code.google.com/webtoolkit/doc/1.6/tutorial/compile.html

but have a problem at this section: 2. testing in web mode

Everything works fine in host mode, but the instructions say when you 
compile to JavaScript (the red tool box with a G on it icon), after it 
successfully compiles, and browser window will open.  The browser window is 
not opening.

I checked under PreferencesGeneralWeb browser, both internal and external 
set to chrome, and it seems to be fine.

Any ideas?  I am on a MAc

Thanks
bob

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



Re: download gwt application data

2011-05-25 Thread barz1
Thanks for the response, I apologize for the unclear post, but I guess
I mean, for instance say I click the search button on my gwt
application and it returns a page of search results that are pulled
from the server. I am interested in writing a script in which I can
mimic such a server request and then download the search results to
save into a text or csv or something along those lines. I hope this
clears it up some.

On May 25, 11:08 am, David Chandler drfibona...@google.com wrote:
 GWT apps manipulate the browser's DOM directly via Javascript, so there is
 no HTML layout. Is that what you mean by page content? However, you can
 use the Snapshot Firefox extension to save the DOM structure at a given
 point in time as an HTML file.

 HTH,
 /dmc



 On Wed, May 25, 2011 at 10:47 AM, barz1 mbarsz...@yahoo.com wrote:

  The company I work for is switching its front end to a gwt application
  and I was wondering if it is possible to write a script (whether with
  bash and wget or cURL, or java or anything) that enables me to
  download the actual content of the gwt web application. Because right
  now if I try with a command such as wget I just download a page with
  some javascript functions, but none of the actual page content (what I
  am interested in). I am on the QA side so I guess I am wondering if it
  is possible to perform such a task without having direct access to the
  developers code. Thanks!

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

 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w:http://code.google.com/
 b:http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

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



Spiffy UI?

2011-05-25 Thread t.dave
is anyone familiar with the Spiffy UI framework?

http://www.spiffyui.org/

it potentially looks very interesting but i've only given it a quick
once-over, and haven't dug in enough to really figure out pros  cons.

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



PreloadedTable alternative - GWT Incubator is death?

2011-05-25 Thread Go2one
Hi everyone,

because of performance issues we are using the PreloadedTable instead
of FlexTable. No I read, that GWT Incubator is death? Is there any
alternative to the PreloadedTable?

By the way: Why does PreloadedTable not support the method
getCellForEvent(event) (like the FlexTable)? How can I fetch the cell
or row, that was clicked at the UI?

Thanks and best Regards!

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



Re: GWT Designer not working?

2011-05-25 Thread Navindian
its a working small u.i sample..

On Wed, May 25, 2011 at 8:21 PM, gwa external.z31gw...@oxylane.com wrote:

 Either is really a initialization timeout because your computer is
 slow / ui is large
 or you can check if you havn't a proxy defined at the system level (on
 windows, check IE network connection). (gwt designer try to connect to
 a localhost port, but if a proxy is defined, sometime designer send
 your request to the proxy)

 On 25 mai, 16:23, Navindian navind...@gmail.com wrote:
  org.eclipse.wb.internal.core.utils.exception.DesignerException: 4103
  (GWT initialization timeout.).
  at
 com.google.gdt.eclipse.designer.GwtExceptionRewriter.rewrite(GwtExceptionRewriter.java:59)
  at
 org.eclipse.wb.internal.core.utils.exception.DesignerExceptionUtils.rewriteException(DesignerExceptionUtils.java:225)
  at
 org.eclipse.wb.internal.core.editor.DesignPage.showExceptionOnDesignPane(DesignPage.java:471)
  at
 org.eclipse.wb.internal.core.editor.DesignPage.internal_refreshGEF(DesignPage.java:413)
  at
 org.eclipse.wb.internal.core.editor.UndoManager.refreshDesignerEditor(UndoManager.java:381)
  at
 org.eclipse.wb.internal.core.editor.UndoManager.activate(UndoManager.java:90)
  at
 org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState_True(DesignPage.java:247)
  at
 org.eclipse.wb.internal.core.editor.DesignPage.handleActiveState(DesignPage.java:225)
  at
 org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode.showPage(DefaultMultiMode.java:125)
  at
 org.eclipse.wb.internal.core.editor.multi.DefaultMultiMode$1.widgetSelected(DefaultMultiMode.java:63)
  at
 org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
  at
 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
  at
 org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:774)
  at
 org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
  at
 org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
  at
 org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
  at
 org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
  at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
  at
 org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
  at
 org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
  at
 org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
  at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
  at
 org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
  at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
  at
 org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
  at
 org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:664)
  at
 org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
  at
 org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
  at
 org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
  at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
  at
 org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
  at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
  at
 org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
 Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at
 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
  at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
  at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
 
 
 
 
 
 
 
  On Wed, May 25, 2011 at 7:48 PM, Navindian navind...@gmail.com wrote:
   It is not working with the latest also. Design Page has n't opened till
   date..10 developers here tried different ways to see Design Page.
 
   On Fri, May 20, 2011 at 9:10 AM, Navindian navind...@gmail.com
 wrote:
 
   I need to use GWT Designer and it seems not to be working..
   Can anybody saw working version of gwt designer anytime?
   Please tell which version is working fine..

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to 

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread MaximeMularz
I want use the Validation API, http://gwt-code-reviews.appspot.com/1040802/show
but I don't where add the user/javax and user/org/hibernate files


On 25 mai, 17:00, Adolfo Panizo Touzon adolfo.pan...@gmail.com
wrote:
 http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunicati...

 2011/5/25 Adolfo Panizo Touzon adolfo.pan...@gmail.com

  I don´t understand. ¿What´s the problem?

  Maybe you can declarate HashMap in the client side and can´t transport by
  rpc.

  I´m not sure, but, what´s the problem?

  2011/5/25 MaximeMularz max...@mularz.fr

  The implementation (http://code.google.com/p/google-web-toolkit/source/
  browse/trunk/samples/validation/src/com/google/gwt/sample/validationhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...
  ):

  public class GreetingServiceImpl extends RpcServlet implements
     GreetingService {

   private final Validator validator =
  Validation.buildDefaultValidatorFactory().getValidator();

   public SafeHtml greetServer(Person person) throws
  IllegalArgumentException,
       ConstraintViolationException {
     // Verify that the input is valid.
     SetConstraintViolationPerson violations =
  validator.validate(person,
         Default.class, ServerGroup.class);
     if (!violations.isEmpty()) {
       SetConstraintViolation? temp = new
  HashSetConstraintViolation?(
           violations);
       throw new ConstraintViolationException(temp);
     }

     String serverInfo = getServletContext().getServerInfo();
     String userAgent = getThreadLocalRequest().getHeader(User-
  Agent);

     // Escape data from the client to avoid cross-site script
  vulnerabilities.
     SafeHtmlBuilder builder = new SafeHtmlBuilder();

     SafeHtml safeHtml = builder//
     .appendEscapedLines(Hello,  + person.getName() + !)//
     .appendHtmlConstant(br)//
     .appendEscaped(I am running  + serverInfo + .)//
     .appendHtmlConstant(brbr)//
     .appendEscaped(It looks like you are using: )//
     .appendEscaped(userAgent)//
     .toSafeHtml();
     return safeHtml;
   }

  On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
  wrote:
   You can save the errors strings in an arrayListString and transpor by
  rpc
   to the client side.

   2011/5/25 MaximeMularz max...@mularz.fr

Hi,

Client Side no probem it works, but ServerSide I can't catch the
excepetion becasue HashSet is not supported by RPCService :

[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.HashSet' was not included in the set of types which can be
serialized by this SerializationPolicy or its Class object could not
be loaded. For security purposes, this type will not be serialized.:
instance =

  [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
messageTemplate='{custom.name.size.message}'}]
       at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
619)
       at

  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
       at

  javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
49)
       at

  javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
72)
       at

  javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
28)
       at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
740)
       at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
621)
       at

  com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
       at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
       at

  com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
539)
       at
  com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
       at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
390)
       at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
       at

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

  

Re: download gwt application data

2011-05-25 Thread Raphael André Bauer
On Wed, May 25, 2011 at 5:24 PM, barz1 mbarsz...@yahoo.com wrote:
 Thanks for the response, I apologize for the unclear post, but I guess
 I mean, for instance say I click the search button on my gwt
 application and it returns a page of search results that are pulled
 from the server. I am interested in writing a script in which I can
 mimic such a server request and then download the search results to
 save into a text or csv or something along those lines. I hope this
 clears it up some.

A browser plugin like firebug for firefox [1] or Safari's or Chromes'
built in inspect functions might do the job...

Best,


Raphael


[1] https://addons.mozilla.org/en-US/firefox/addon/firebug/


 On May 25, 11:08 am, David Chandler drfibona...@google.com wrote:
 GWT apps manipulate the browser's DOM directly via Javascript, so there is
 no HTML layout. Is that what you mean by page content? However, you can
 use the Snapshot Firefox extension to save the DOM structure at a given
 point in time as an HTML file.

 HTH,
 /dmc



 On Wed, May 25, 2011 at 10:47 AM, barz1 mbarsz...@yahoo.com wrote:

  The company I work for is switching its front end to a gwt application
  and I was wondering if it is possible to write a script (whether with
  bash and wget or cURL, or java or anything) that enables me to
  download the actual content of the gwt web application. Because right
  now if I try with a command such as wget I just download a page with
  some javascript functions, but none of the actual page content (what I
  am interested in). I am on the QA side so I guess I am wondering if it
  is possible to perform such a task without having direct access to the
  developers code. Thanks!

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

 --
 David Chandler
 Developer Programs Engineer, Google Web Toolkit
 w:http://code.google.com/
 b:http://googlewebtoolkit.blogspot.com/
 t: @googledevtools

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



Re: StockWatcher javascript compile does not open browser

2011-05-25 Thread Seth Hollyman
It appears you're looking at a very old version of the tutorial docs.  Are 
you actually using gwt 1.6?  If not, you can either swizzle the version of 
the docs you want in the left nav pane, or just consult the latest version 
at http://code.google.com/webtoolkit/doc/latest/tutorial/compile.html

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



Re: Generating GWT widgets based on an XML template

2011-05-25 Thread Arshad Nadheem
Thanks for the response Gabriel... it's the 1st option that I'm
looking for. Generating HTML is not an option for me, since each of my
widgets need to be self-contained components. So, the 1st option is
the way to go for me.

But this is where my problem starts... I'd love to use reflection to
populate the widgets. I.e for each getters in my DTO, I try to invoke
the corresponding setter in the widget (if exists). E.g.: If my
ButtonDTO has a getHeight(), I'd check if the Button widget has a
setHeight(). If so, I'd call setHeight() of the Button widget with the
value of buttonDTO.getHeight().

The easiest way to do this is through reflection, so that I won't have
to do the above manually for each property. Of course some values
cannot be set in this manner... that has to be dealt in the normal
way.

So, if I follow the approach that you mentioned as option 1, I won't
be able to use reflection, right? Any workarounds?

Thanks again,
Arshad

On 5/25/11, Gabriel guz...@gmail.com wrote:
 Hi,

 I can think of two options to implement what you want:
 1) On the server side generate DTOs that represent the UI structure
 and on the client side read them and build the UI accordingly.
 2) Generate pure HTML on the server and use it as the value of an HTML
 widget.

 The choice depends on what exactly you need from the client side. You
 should minimize the use of widgets as much as possible, and use them
 only if you need to capture events. Otherwise it is recommended to use
 HTML.

 Gabriel

 On May 25, 9:12 am, Arshad arshadnadh...@gmail.com wrote:
 Hi all,

 I'm pretty new to GWT, so please bear... Coming from a Struts
 background, GWT concepts takes a lot of getting used to :)

 I have a requirement of defining a user interface in a custom XML
 template, process it to generate a technology independent generic
 component tree, and use this tree to generate various different user
 interfaces (e.g. Swing, GWT, JSF, etc...). To get this going, I make
 use of reflection to transfer values from the generic component to the
 Swing/GWT/JSF component.

 I'm in the process of developing the GWT part, and feel like theirs
 two ways of approaching this:
 1. Do only the XML processing in the server side. The client makes an
 RPC call and retrieves the generic component tree in to the client
 side in order to generate the GWT widgets. This doesn't seem to be an
 option since GWT doesn't support reflection on the client side.

 2. Do both the XML processing and the GWT widget generation on the
 server side. The client makes an RPC call and retrieves the generated
 GWT widgets. This also doesn't seem to be possible... may be because
 it the widgets are not serializable?

 I would really appreciate any input regarding this. Is there anyway I
 can generate the GWT widgets on the server side and retrieve it from
 the client side? Or is there any other way I can approach this
 problem?

 Thanks in advance,
 Arshad

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



Re: Selecting TextInputCell

2011-05-25 Thread tjmcc18
Try clicking though and editing the TextInputCells in the showcase.
It takes multiple clicks... how can I get around that?

http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler

-TJ

On May 25, 10:23 am, tjmcc18 tjmc...@gmail.com wrote:
 I have a CellTable which makes use of TextInputCells to allow the user
 to edit data.  I would like this to behave in a spreadsheet like
 manner such that the user can select the various textboxes and make
 changes as they see fit.  However, the default behavior for selecting
 the textboxes is not desirable.  When a user first selects a textbox,
 it receives focus and the user can edit the data.  When the user then
 tries to select another textbox, the previous textbox loses focus but
 the newly selected textbox does not receive focus.  Clicking on the
 box again gives it focus.  In essence it takes two click to select the
 textbox.  This is very annoying.  I believe the first click possibly
 selects the cell, but I'm not sure.  Does anyone know how to get
 around this?

 -TJ

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



Problem install

2011-05-25 Thread Pablo Arnel Bacouros
hello, when I try to install the google in my eclipse, said that it
the following item:

 org.eclipse.wst.xml.core 

Where I can download?
Thanks for your time! ;)

-- 
*@bacourosp
TecnoSystemCA.com.ve
*
*TECNOSYSTEM C.A*

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Adolfo Panizo Touzon
user/javax and user/org/hibernate files ???
The libraries?

2011/5/25 MaximeMularz max...@mularz.fr

 I want use the Validation API,
 http://gwt-code-reviews.appspot.com/1040802/show
 but I don't where add the user/javax and user/org/hibernate files


 On 25 mai, 17:00, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunicati...
 
  2011/5/25 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
   I don´t understand. ¿What´s the problem?
 
   Maybe you can declarate HashMap in the client side and can´t transport
 by
   rpc.
 
   I´m not sure, but, what´s the problem?
 
   2011/5/25 MaximeMularz max...@mularz.fr
 
   The implementation (
 http://code.google.com/p/google-web-toolkit/source/
   browse/trunk/samples/validation/src/com/google/gwt/sample/validation
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...
   ):
 
   public class GreetingServiceImpl extends RpcServlet implements
  GreetingService {
 
private final Validator validator =
   Validation.buildDefaultValidatorFactory().getValidator();
 
public SafeHtml greetServer(Person person) throws
   IllegalArgumentException,
ConstraintViolationException {
  // Verify that the input is valid.
  SetConstraintViolationPerson violations =
   validator.validate(person,
  Default.class, ServerGroup.class);
  if (!violations.isEmpty()) {
SetConstraintViolation? temp = new
   HashSetConstraintViolation?(
violations);
throw new ConstraintViolationException(temp);
  }
 
  String serverInfo = getServletContext().getServerInfo();
  String userAgent = getThreadLocalRequest().getHeader(User-
   Agent);
 
  // Escape data from the client to avoid cross-site script
   vulnerabilities.
  SafeHtmlBuilder builder = new SafeHtmlBuilder();
 
  SafeHtml safeHtml = builder//
  .appendEscapedLines(Hello,  + person.getName() + !)//
  .appendHtmlConstant(br)//
  .appendEscaped(I am running  + serverInfo + .)//
  .appendHtmlConstant(brbr)//
  .appendEscaped(It looks like you are using: )//
  .appendEscaped(userAgent)//
  .toSafeHtml();
  return safeHtml;
}
 
   On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
   wrote:
You can save the errors strings in an arrayListString and transpor
 by
   rpc
to the client side.
 
2011/5/25 MaximeMularz max...@mularz.fr
 
 Hi,
 
 Client Side no probem it works, but ServerSide I can't catch the
 excepetion becasue HashSet is not supported by RPCService :
 
 [ERROR] javax.servlet.ServletContext log: Exception while
 dispatching
 incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.HashSet' was not included in the set of types which can
 be
 serialized by this SerializationPolicy or its Class object could
 not
 be loaded. For security purposes, this type will not be
 serialized.:
 instance =
 
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
 propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
 messageTemplate='{custom.name.size.message}'}]
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 619)
at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
 49)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 72)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 28)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
 740)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 621)
at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
 539)
at
   com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at

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

 

Re: Problem install

2011-05-25 Thread Seth Hollyman
This is part of the web tools platform from eclipse.org itself.  How are you 
attempting to install the Google Plugin for Eclipse?  If its via update 
site, this dependency should be resolved for you automatically by eclipse.


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



Re: Code Google Information

2011-05-25 Thread David Chandler
What do you mean use reference from? The GWT documentation at
code.google.com/webtoolkit is officially maintained by Google. Please do use
it when learning GWT.

Thanks,
/dmc

On Wed, May 25, 2011 at 1:06 AM, Noor baken...@gmail.com wrote:

 Hello,
 I'm doing a project on google web tookit, i want to know if i can use
 reference from code google in my project, as some people claims this
 info may change and is thus not reliable

 thanks

 kind regards
 Noor

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: Problem install

2011-05-25 Thread Pablo Arnel Bacouros
NOTE: worth noting that use Ubuntu 10.04 LTS (Lucid Lynx)
thanks!

2011/5/25 Pablo Arnel Bacouros bacour...@gmail.com

 hello Seth Hollyman,
  I'm trying to install through Help Software Update Find and install ...

 I am attaching screenshots descricion that reflects the error.

 Thanks for your time.


 2011/5/25 Seth Hollyman s...@jujufrog.com

 This is part of the web tools platform from eclipse.org itself.  How are
 you attempting to install the Google Plugin for Eclipse?  If its via update
 site, this dependency should be resolved for you automatically by eclipse.


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




 --
 *@bacourosp
 TecnoSystemCA.com.ve
 *
 *TECNOSYSTEM C.A*




-- 
*@bacourosp
TecnoSystemCA.com.ve
*
*TECNOSYSTEM C.A*

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



Re: Generating GWT widgets based on an XML template

2011-05-25 Thread Gabriel
Indeed you can't use reflection, but note that a vast majority of the
widget properties are actually style (as in CSS) properties, so you
can take advantage of it. I'm thinking in this direction: in your DTO
have a MapString,String where the keys are style properties and the
values are the style values, and on the client side iterate over the
map and for each entry call
Widget.getElement().getStyle().setProperty(key, value). You can do the
same with attributes, this time call
Widget.getElement().setAttribute(key, value). And the last thing you
have to deal with is innerText (or innerHTML). So you can write a
generic mechanism that handles styles, attributes and innerText and
that should cover everything.

On May 25, 7:26 pm, Arshad Nadheem arshadnadh...@gmail.com wrote:
 Thanks for the response Gabriel... it's the 1st option that I'm
 looking for. Generating HTML is not an option for me, since each of my
 widgets need to be self-contained components. So, the 1st option is
 the way to go for me.

 But this is where my problem starts... I'd love to use reflection to
 populate the widgets. I.e for each getters in my DTO, I try to invoke
 the corresponding setter in the widget (if exists). E.g.: If my
 ButtonDTO has a getHeight(), I'd check if the Button widget has a
 setHeight(). If so, I'd call setHeight() of the Button widget with the
 value of buttonDTO.getHeight().

 The easiest way to do this is through reflection, so that I won't have
 to do the above manually for each property. Of course some values
 cannot be set in this manner... that has to be dealt in the normal
 way.

 So, if I follow the approach that you mentioned as option 1, I won't
 be able to use reflection, right? Any workarounds?

 Thanks again,
 Arshad

 On 5/25/11, Gabriel guz...@gmail.com wrote:







  Hi,

  I can think of two options to implement what you want:
  1) On the server side generate DTOs that represent the UI structure
  and on the client side read them and build the UI accordingly.
  2) Generate pure HTML on the server and use it as the value of an HTML
  widget.

  The choice depends on what exactly you need from the client side. You
  should minimize the use of widgets as much as possible, and use them
  only if you need to capture events. Otherwise it is recommended to use
  HTML.

  Gabriel

  On May 25, 9:12 am, Arshad arshadnadh...@gmail.com wrote:
  Hi all,

  I'm pretty new to GWT, so please bear... Coming from a Struts
  background, GWT concepts takes a lot of getting used to :)

  I have a requirement of defining a user interface in a custom XML
  template, process it to generate a technology independent generic
  component tree, and use this tree to generate various different user
  interfaces (e.g. Swing, GWT, JSF, etc...). To get this going, I make
  use of reflection to transfer values from the generic component to the
  Swing/GWT/JSF component.

  I'm in the process of developing the GWT part, and feel like theirs
  two ways of approaching this:
  1. Do only the XML processing in the server side. The client makes an
  RPC call and retrieves the generic component tree in to the client
  side in order to generate the GWT widgets. This doesn't seem to be an
  option since GWT doesn't support reflection on the client side.

  2. Do both the XML processing and the GWT widget generation on the
  server side. The client makes an RPC call and retrieves the generated
  GWT widgets. This also doesn't seem to be possible... may be because
  it the widgets are not serializable?

  I would really appreciate any input regarding this. Is there anyway I
  can generate the GWT widgets on the server side and retrieve it from
  the client side? Or is there any other way I can approach this
  problem?

  Thanks in advance,
  Arshad

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread A. Stevko
Try adding gwt-servlet-deps.jar and gwt-servlet,jar to your build path.

On Wed, May 25, 2011 at 10:06 AM, Adolfo Panizo Touzon 
adolfo.pan...@gmail.com wrote:

 user/javax and user/org/hibernate files ???
 The libraries?

 2011/5/25 MaximeMularz max...@mularz.fr

 I want use the Validation API,
 http://gwt-code-reviews.appspot.com/1040802/show
 but I don't where add the user/javax and user/org/hibernate files


 On 25 mai, 17:00, Adolfo Panizo Touzon adolfo.pan...@gmail.com
 wrote:
  http://code.google.com/webtoolkit/doc/trunk/DevGuideServerCommunicati.
 ..
 
  2011/5/25 Adolfo Panizo Touzon adolfo.pan...@gmail.com
 
   I don´t understand. ¿What´s the problem?
 
   Maybe you can declarate HashMap in the client side and can´t transport
 by
   rpc.
 
   I´m not sure, but, what´s the problem?
 
   2011/5/25 MaximeMularz max...@mularz.fr
 
   The implementation (
 http://code.google.com/p/google-web-toolkit/source/
   browse/trunk/samples/validation/src/com/google/gwt/sample/validation
 http://code.google.com/p/google-web-toolkit/source/browse/trunk/sampl...
   ):
 
   public class GreetingServiceImpl extends RpcServlet implements
  GreetingService {
 
private final Validator validator =
   Validation.buildDefaultValidatorFactory().getValidator();
 
public SafeHtml greetServer(Person person) throws
   IllegalArgumentException,
ConstraintViolationException {
  // Verify that the input is valid.
  SetConstraintViolationPerson violations =
   validator.validate(person,
  Default.class, ServerGroup.class);
  if (!violations.isEmpty()) {
SetConstraintViolation? temp = new
   HashSetConstraintViolation?(
violations);
throw new ConstraintViolationException(temp);
  }
 
  String serverInfo = getServletContext().getServerInfo();
  String userAgent = getThreadLocalRequest().getHeader(User-
   Agent);
 
  // Escape data from the client to avoid cross-site script
   vulnerabilities.
  SafeHtmlBuilder builder = new SafeHtmlBuilder();
 
  SafeHtml safeHtml = builder//
  .appendEscapedLines(Hello,  + person.getName() + !)//
  .appendHtmlConstant(br)//
  .appendEscaped(I am running  + serverInfo + .)//
  .appendHtmlConstant(brbr)//
  .appendEscaped(It looks like you are using: )//
  .appendEscaped(userAgent)//
  .toSafeHtml();
  return safeHtml;
}
 
   On 25 mai, 11:30, Adolfo Panizo Touzon adolfo.pan...@gmail.com
   wrote:
You can save the errors strings in an arrayListString and
 transpor by
   rpc
to the client side.
 
2011/5/25 MaximeMularz max...@mularz.fr
 
 Hi,
 
 Client Side no probem it works, but ServerSide I can't catch the
 excepetion becasue HashSet is not supported by RPCService :
 
 [ERROR] javax.servlet.ServletContext log: Exception while
 dispatching
 incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.HashSet' was not included in the set of types which
 can be
 serialized by this SerializationPolicy or its Class object could
 not
 be loaded. For security purposes, this type will not be
 serialized.:
 instance =
 
  
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
 propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
 messageTemplate='{custom.name.size.message}'}]
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 619)
at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
 49)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 72)
at
 
  
 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 28)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
 740)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 621)
at
 
  
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
 
  
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
 539)
at
   

Re: download gwt application data

2011-05-25 Thread David Chandler
OK, that's quite different. In that case, you'll want to use the browser's
Developer Tools or something like TamperData (FF extension) to inspect each
request and copy the request URL into your script. With these tools, you'll
also be able to see the server response, which you can cut and paste to a
file.

/dmc

On Wed, May 25, 2011 at 11:24 AM, barz1 mbarsz...@yahoo.com wrote:

 Thanks for the response, I apologize for the unclear post, but I guess
 I mean, for instance say I click the search button on my gwt
 application and it returns a page of search results that are pulled
 from the server. I am interested in writing a script in which I can
 mimic such a server request and then download the search results to
 save into a text or csv or something along those lines. I hope this
 clears it up some.

 On May 25, 11:08 am, David Chandler drfibona...@google.com wrote:
  GWT apps manipulate the browser's DOM directly via Javascript, so there
 is
  no HTML layout. Is that what you mean by page content? However, you can
  use the Snapshot Firefox extension to save the DOM structure at a given
  point in time as an HTML file.
 
  HTH,
  /dmc
 
 
 
  On Wed, May 25, 2011 at 10:47 AM, barz1 mbarsz...@yahoo.com wrote:
 
   The company I work for is switching its front end to a gwt application
   and I was wondering if it is possible to write a script (whether with
   bash and wget or cURL, or java or anything) that enables me to
   download the actual content of the gwt web application. Because right
   now if I try with a command such as wget I just download a page with
   some javascript functions, but none of the actual page content (what I
   am interested in). I am on the QA side so I guess I am wondering if it
   is possible to perform such a task without having direct access to the
   developers code. Thanks!
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  David Chandler
  Developer Programs Engineer, Google Web Toolkit
  w:http://code.google.com/
  b:http://googlewebtoolkit.blogspot.com/
  t: @googledevtools

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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

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



Re: Problem install

2011-05-25 Thread Seth Hollyman

It appears you're either using an old update site, and/or possibly an old 
version of eclipse (3.3 is no longer supported by the GPE team).  I'd 
consider redoing the install into a fresh eclipse (preferably 3.6).  The 
basic GPE update instructions are located here:

http://code.google.com/eclipse/docs/download.html

I don't know off the top of my head if/which eclipse is installed as 
standard 10.04 LTS packages, but you can get newer versions of eclipse here:

http://www.eclipse.org/downloads/

If you don't know which version you want, the Compare Packages link 
towards the top of that page will help you decide.  I generally end up using 
either the Classic or JEE versions myself.

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread MaximeMularz
These Classes are not in the api :

javax.validation.ConstraintViolationException_CustomFieldSerializer

org.hibernate.validator.engine.ConstraintViolationImpl_CustomFieldSerializer
org.hibernate.validator.engine.PathImpl_CustomFieldSerializer

How can i add them ?


I added gwt-servlets-deps.jar but the same error :


[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'java.util.HashSet' was not included in the set of types which can be
serialized by this SerializationPolicy or its Class object could not
be loaded. For security purposes, this type will not be serialized.:
instance =
[ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
messageTemplate='{custom.name.size.message}'}]
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
619)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at
javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
49)
at
javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
72)
at
javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
28)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
740)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
621)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
126)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
539)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
390)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
588)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
208)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
248)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
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
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
94)
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

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Nick Chalko
Take a look at
http://code.google.com/p/google-web-toolkit/wiki/BeanValidation

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread MaximeMularz
I red it, but nothing about RPC

On 25 mai, 20:49, Nick Chalko ncha...@google.com wrote:
 Take a look athttp://code.google.com/p/google-web-toolkit/wiki/BeanValidation

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread A. Stevko
I have hibernate-validator-4.1.0.Final.jar and validation-api.1.0.0.GA.jar
in my lib
I downloaded them from the Hibernate Validation project at
http://www.hibernate.org/subprojects/validator.html

Hibernate Validator 4.x is the reference implementation for JSR 303 - Bean
Validation http://jcp.org/en/jsr/detail?id=303 of which Red Hat is the
specification lead.


On Wed, May 25, 2011 at 11:45 AM, MaximeMularz max...@mularz.fr wrote:

 These Classes are not in the api :

 javax.validation.ConstraintViolationException_CustomFieldSerializer


 org.hibernate.validator.engine.ConstraintViolationImpl_CustomFieldSerializer
 org.hibernate.validator.engine.PathImpl_CustomFieldSerializer

 How can i add them ?


 I added gwt-servlets-deps.jar but the same error :


 [ERROR] javax.servlet.ServletContext log: Exception while dispatching
 incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.HashSet' was not included in the set of types which can be
 serialized by this SerializationPolicy or its Class object could not
 be loaded. For security purposes, this type will not be serialized.:
 instance =
 [ConstraintViolationImpl{interpolatedMessage='{custom.name.size.message}',
 propertyPath=name, rootBeanClass=class myvalidator.shared.Person,
 messageTemplate='{custom.name.size.message}'}]
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 619)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at

 javax.validation.ConstraintViolationException_CustomFieldSerializer.serialize(ConstraintViolationException_CustomFieldSerializer.java:
 49)
at

 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 72)
at

 javax.validation.ConstraintViolationException_CustomFieldSerializer.serializeInstance(ConstraintViolationException_CustomFieldSerializer.java:
 28)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java:
 740)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
 621)
at

 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
 126)
at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
at

 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
 539)
at com.google.gwt.user.server.rpc.RPC.encodeResponse(RPC.java:616)
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 390)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 588)
at

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

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

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
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.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
 35)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
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

 com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
 94)
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
 

Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread Nick Chalko
You will need to do something like this.


public class ExposeImpl implements IsSerializable {

  @SuppressWarnings(unused)
  private ConstraintViolationImpl? constraintViolationImpl;

  @SuppressWarnings(unused)
  private PathImpl pathIpml;

  @SuppressWarnings(unused)
  private HashSet? hashSet;
}


And then Create a dummy method like the following in your RemoteService


 ExposeImpl dummy();





I am working on a simpler solution.

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



Re: PreloadedTable alternative - GWT Incubator is death?

2011-05-25 Thread Seth Hollyman
Have you taken a look at the new Cell widgets, particularly the CellTable?
http://code.google.com/webtoolkit/doc/latest/DevGuideUiCellWidgets.html


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



Re: Detect panel remove call

2011-05-25 Thread Ben Imp
I believe if you can add a handler (via addAttachHandler) that will fire 
when it is removed.  However, at that point I'm not sure you can really 
prevent the panel from being removed, if that is your goal.

-Ben

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



Re: Validation-api-1.0.0, Doesn't work

2011-05-25 Thread MaximeMularz
Sorry, I don't understand your implementation could you please give me
more details ?

On 25 mai, 21:31, Nick Chalko ncha...@google.com wrote:
 You will need to do something like this.

 public class ExposeImpl implements IsSerializable {

   @SuppressWarnings(unused)
   private ConstraintViolationImpl? constraintViolationImpl;

   @SuppressWarnings(unused)
   private PathImpl pathIpml;

   @SuppressWarnings(unused)
   private HashSet? hashSet;

 }

 And then Create a dummy method like the following in your RemoteService

  ExposeImpl dummy();

 I am working on a simpler solution.

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



Re: Aw: Re: ERROR: Expecting version between 5 and 6 from client, got 7

2011-05-25 Thread Ashwani Gupta
Thanks guys for your suggestions.

I did clear my browser cache and it did not fix it.

But when I copied the latest gwt-servlet.jar file to WEB-INF/lib folder that
did fix it.

Ash

On Tue, May 24, 2011 at 7:18 PM, Paul Stockley pstockl...@gmail.com wrote:

 You can also clear these kind of mismatch errors by clearing your browser
 cache/cookies

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



Re: Help with WindowBuilder Pro XWT Application Wizard

2011-05-25 Thread Eric
Hm.

Can you please observe Window Builder Pro project's website here:
http://code.google.com/javadevtools/wbpro/

At the top of the page it says Google Web Toolkit

Also the Community link, links to this forum.

I expect, until that is altered, most people like me who have
questions about Window Builder Pro will come here to ask them.

Thanks,
Eric


On May 25, 6:54 am, Eric Clayberg clayb...@google.com wrote:
 Please note that XWT is an Eclipse technology that is unrelated to
 GWT. As such, this is the wrong place to ask any questions about it.

 If you have questions about XWT or how to configure a project to use
 XWT, they should be asked in the Eclipse XWT forum.

 For questions specifically about WindowBuilder, you should post those
 to the Eclipse WindowBuilder forum.

 On May 24, 10:27 pm, Eric erics...@gmail.com wrote:







  I figured it out myself,

  I needed to add three .jar's to my project's references,
  org.eclipse.core.databinding
  org.eclipse.core.databinding.observable
  org.eclipse.jface.databinding

  I did that by clicking Project - Properties - Java Build Path -
  Libraries, Add External Jar's, and then I browsed to c:\eclipse
  \plugins and found the .jars there and added them.

  On May 24, 1:28 pm, Eric erics...@gmail.com wrote:

   Also theXWTapplication wizard page is 
   here:http://code.google.com/javadevtools/wbpro/wizards/xwt/application.html

   On May 24, 9:39 am, Eric erics...@gmail.com wrote:

Hi guys,

I tried to post before but it didnt post so I will try agian.

I am trying to use the WindoBuilder ProXWTApplication Wizard but I
keep seeing an error, and I don't know how to fix it.  If anyone could
help me I would greatly appreciate it.

Here is what I did:
1) Install Java
2) Install Eclipse
3) Install WindowBuilder Pro Eclipse plugin (checked all boxes)
4) File-New-Project-WindowBuilder\SWT Designer\SWT/JFace Java
Project
5) Ctrl-N-WindowBuilder\SWT Designer\XWT\XWTApplication

At this point I am able to see my window in the editor, add controls,
modify it, edit the code, etc.

But when I right click the application - run as - Java Application
then I get this error message:

Exception in thread main java.lang.NoClassDefFoundError: org/eclipse/
core/databinding/conversion/IConverter
        at 
org.eclipse.e4.xwt.XWTLoaderManager.clinit(XWTLoaderManager.java:
19)
        at org.eclipse.e4.xwt.XWT.load(XWT.java:379)
        at com.Eric.SomeXwtApplication.main(SomeXwtApplication.java:16)
Caused by: java.lang.ClassNotFoundException:
org.eclipse.core.databinding.conversion.IConverter
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 3 more

I don't know how to troubleshoot this, am I missing a reference?  Why
is the WindowBuilder ProXWTapplication wizard not giving me the
reference?

Thanks,
Eric

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



using GWT with flex?

2011-05-25 Thread Jaggernat
hi guys

I need to learn GWT and impliment a simple solution using GWT. I come
from flex background.
can anyone point me what the important concepts in GWT is? and in what
order do i learn?

Goal:
we are currently developeing a trading app using flex screens but we
want to use ajax framework GWT to make the asynchronous backend calls
to our spring-java backend.
(Is using flex  Fabridge an option to integrate GWT with flex?)

any help greatly appreciated
thanks.

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



Re: Big Daddy example problems

2011-05-25 Thread bbgott
I have not had the Fatal Exception issue, but I have had other
problems with it, when developing on Ubuntu linux.  When I try the
example on my Mac, it works.  I have been able to narrow it down to
the fact that the example attempts to connect to 127.0.1.1: for
debugging with a local app engine instance.  Upon examining the
Util.java file, around the 190 line area, it says to create an assets/
debugging_prefs.properties file with the url of the debug app engine
server in it.  I tried doing that, but everytime I ran the code, it
would revert the url back to 127.0.1.1:.  The only way that I have
been able to get the code to run on linux is to hardcode the url of
the dev app engine into the Uitl.java file.  This seems to be a bug in
the App engine connected project.  I have scoured the project settings
as well as the other eclipse settings and can not come up with a
reason for why it keeps reverting that file.

On May 13, 9:38 am, patjackson52 patjackso...@gmail.com wrote:
 I've been trying the new app engine connected android projected with
 the new beta release and have had no luck.  The server side appears to
 be working, however the android app crashes.  I get a Fatal
 Exception:  cannot parse payload: payload[0]

 Has anyone else tried this?

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



Re: using GWT with flex?

2011-05-25 Thread Alain Ekambi
May i suggest you Gwt4Air ? :)
http://code.google.com/p/gwt4air/

2011/5/25 Jaggernat jagger...@gmail.com

 hi guys

 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?

 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)

 any help greatly appreciated
 thanks.

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: using GWT with flex?

2011-05-25 Thread Alain Ekambi
Well the suggestion  was for the Integrating Flex with GWT part.

If you come from Flex learning GWT should not  be a  big problem because the
development model is very similar.
The official GWT Documentation is always a good point to start:
http://code.google.com/webtoolkit/doc/latest/DevGuide.html
And if you are really really stucked there is a guy called *Thomas
Broyer*here in the community. You cant miss him :)

Making a GWT RPC call from an AS3/MXML based  Flex application is not that
easy and adds a lot of  overhead to your application.

We had the same issue with one of our Flex applications. This is one of the
reasons that motivated me to create a GWT API for Flex, so one could use
Java everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External
Interface to communicate with the GWT ) and Java(GWT +  backend)

If your Flex application is MXML/AS3 based the best way should be to use
something like Blase DS.

If you want to use a GWT API to build a Flex application  you can  have a
look at gwt4air.

Best,

Alain




2011/5/25 Alain Ekambi jazzmatad...@googlemail.com

 May i suggest you Gwt4Air ? :)
 http://code.google.com/p/gwt4air/


 2011/5/25 Jaggernat jagger...@gmail.com

 hi guys

 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?

 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)

 any help greatly appreciated
 thanks.

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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/





-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: can't get Audio to replay.

2011-05-25 Thread dani shaulov
I compiled and deployed that and it works. seems it doesn't work only
in dev mode.

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



Re: Problem install

2011-05-25 Thread Pablo Arnel Bacouros
Thank you very much for your prompt response and your time spent!
I managed to install googles supplements with success! :)
Note: in the research process to solve this problem, it was interesting to
read how to fix it in Fedora, through this link 

http://www.shekhargovindarajan.com/tips-n-tricks/solved-requires-bundle-org-eclipse-wst-xml-core-error-while-installing-google-plugin-in-fedora-eclipse/

2011/5/25 Seth Hollyman s...@jujufrog.com


 It appears you're either using an old update site, and/or possibly an old
 version of eclipse (3.3 is no longer supported by the GPE team).  I'd
 consider redoing the install into a fresh eclipse (preferably 3.6).  The
 basic GPE update instructions are located here:

 http://code.google.com/eclipse/docs/download.html

 I don't know off the top of my head if/which eclipse is installed as
 standard 10.04 LTS packages, but you can get newer versions of eclipse here:

 http://www.eclipse.org/downloads/

 If you don't know which version you want, the Compare Packages link
 towards the top of that page will help you decide.  I generally end up using
 either the Classic or JEE versions myself.

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




-- 
*@bacourosp
TecnoSystemCA.com.ve
*
*TECNOSYSTEM C.A*

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



Re: Problem install

2011-05-25 Thread Seth Hollyman
Good to hear its now working for you!

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



Re: using GWT with flex?

2011-05-25 Thread Jay
Thanks for response. We are already using blazeds to communicate with our 
remote spring services. Our present architecture:
Flex talks to backend java objects using spring blazeds.

I want to incorporate ajax so What I had in mind is
Flex mxml/as screen invokes JavaScript invokes java backend?
Would that be correct?

Thanks

On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com wrote:

 Well the suggestion  was for the Integrating Flex with GWT part. 
 
 If you come from Flex learning GWT should not  be a  big problem because the 
 development model is very similar.
 The official GWT Documentation is always a good point to start: 
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 And if you are really really stucked there is a guy called Thomas Broyer here 
 in the community. You cant miss him :)
 
 Making a GWT RPC call from an AS3/MXML based  Flex application is not that 
 easy and adds a lot of  overhead to your application.
 
 We had the same issue with one of our Flex applications. This is one of the 
 reasons that motivated me to create a GWT API for Flex, so one could use Java 
 everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External Interface 
 to communicate with the GWT ) and Java(GWT +  backend)
 
 If your Flex application is MXML/AS3 based the best way should be to use 
 something like Blase DS.
 
 If you want to use a GWT API to build a Flex application  you can  have a 
 look at gwt4air.
 
 Best,
 
 Alain
 
 
 
 
 2011/5/25 Alain Ekambi jazzmatad...@googlemail.com
 May i suggest you Gwt4Air ? :)
 http://code.google.com/p/gwt4air/
 
 
 2011/5/25 Jaggernat jagger...@gmail.com
 hi guys
 
 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?
 
 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)
 
 any help greatly appreciated
 thanks.
 
 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 
 
 
 
 -- 
 
 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/
 
 
 
 
 
 -- 
 
 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/
 
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



Re: using GWT with flex?

2011-05-25 Thread Alain Ekambi
What exactly  do you mean  with incorporate ajax ?
Do you mean making async  call to the server ?
If  yes cant you do that with Blase DS ?

Like i said before i dont know  if the road mxml/as -External Interface -
js -  gwt - backend  and  back is effective
because  you are adding  a lot of overhead just to call methods in the
backend.



2011/5/26 Jay jagger...@gmail.com

 Thanks for response. We are already using blazeds to communicate with our
 remote spring services. Our present architecture:
 Flex talks to backend java objects using spring blazeds.

 I want to incorporate ajax so What I had in mind is
 Flex mxml/as screen invokes JavaScript invokes java backend?
 Would that be correct?

 Thanks

 On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com
 wrote:

 Well the suggestion  was for the Integrating Flex with GWT part.

 If you come from Flex learning GWT should not  be a  big problem because
 the development model is very similar.
 The official GWT Documentation is always a good point to start: 
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 And if you are really really stucked there is a guy called *Thomas 
 Broyer*here in the community. You cant miss him :)

 Making a GWT RPC call from an AS3/MXML based  Flex application is not that
 easy and adds a lot of  overhead to your application.

 We had the same issue with one of our Flex applications. This is one of the
 reasons that motivated me to create a GWT API for Flex, so one could use
 Java everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External
 Interface to communicate with the GWT ) and Java(GWT +  backend)

 If your Flex application is MXML/AS3 based the best way should be to use
 something like Blase DS.

 If you want to use a GWT API to build a Flex application  you can  have a
 look at gwt4air.

 Best,

 Alain




 2011/5/25 Alain Ekambi  jazzmatad...@googlemail.com
 jazzmatad...@googlemail.com

 May i suggest you Gwt4Air ? :)
 http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/


 2011/5/25 Jaggernat  jagger...@gmail.comjagger...@gmail.com

 hi guys

 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?

 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)

 any help greatly appreciated
 thanks.

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




 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/
  http://www.gwt4air.appspot.com/http://www.gwt4air.appspot.com/





 --

 GWT API for  non Java based platforms
 http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/
 http://www.gwt4air.appspot.com/http://www.gwt4air.appspot.com/


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

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




-- 

GWT API for  non Java based platforms
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.com/

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



Re: Problem install

2011-05-25 Thread bacourosp
I want work with you and atain good things! 
twitter:@bacourosp

-Original Message-
From: Seth Hollyman s...@jujufrog.com
Sender: google-web-toolkit@googlegroups.com
Date: Wed, 25 May 2011 17:09:40 
To: google-web-toolkit@googlegroups.com
Reply-To: google-web-toolkit@googlegroups.com
Subject: Re: Problem install

Good to hear its now working for you!

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


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



Re: How to edit a live project design in GWT

2011-05-25 Thread A. Stevko
Try building a New Web Application Project and you will see the structure.


On Wed, May 18, 2011 at 10:03 PM, naresh web developer 
naresh.webdevelo...@gmail.com wrote:

 Hi,
 i wanna edit design of a live project design in GWT and i dont know
 how to do it..i download all code file of this project..
 But there is no any html or editable file...
 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-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.




-- 
-- A. Stevko
===
If everything seems under control, you're just not going fast enough. M.
Andretti

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



Re: using GWT with flex?

2011-05-25 Thread Jay Roy
let me explain with a simple example
We have a flex screen with a data grid. The data in data grid is populated
with java collection. The java collection contains stock data which comes
from backend.  In the backend every 0.5 second the stock data in collection
is updated(we get market feed of data).

so every 0.5 second we need to refresh the flex data grid and update it with
the backend data.

So the question now is we need to make a asynch call every 0.5 sec to fetch
the updated data.

I am using blazeds to get the java collection but i dont think blazeds can
be used to make asynchronous calls. That is where we want to use ajax to
make the asynchronous call every 0.5 sec.

thanks.
On Wed, May 25, 2011 at 8:32 PM, Alain Ekambi
jazzmatad...@googlemail.comwrote:

 What exactly  do you mean  with incorporate ajax ?
 Do you mean making async  call to the server ?
 If  yes cant you do that with Blase DS ?

 Like i said before i dont know  if the road mxml/as -External Interface -
 js -  gwt - backend  and  back is effective
 because  you are adding  a lot of overhead just to call methods in the
 backend.



   2011/5/26 Jay jagger...@gmail.com

   Thanks for response. We are already using blazeds to communicate with
 our remote spring services. Our present architecture:
 Flex talks to backend java objects using spring blazeds.

 I want to incorporate ajax so What I had in mind is
 Flex mxml/as screen invokes JavaScript invokes java backend?
 Would that be correct?

 Thanks

 On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com
 wrote:

Well the suggestion  was for the Integrating Flex with GWT part.

 If you come from Flex learning GWT should not  be a  big problem because
 the development model is very similar.
 The official GWT Documentation is always a good point to start: 
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 And if you are really really stucked there is a guy called *Thomas Broyer
 * here in the community. You cant miss him :)

 Making a GWT RPC call from an AS3/MXML based  Flex application is not that
 easy and adds a lot of  overhead to your application.

 We had the same issue with one of our Flex applications. This is one of
 the reasons that motivated me to create a GWT API for Flex, so one could use
 Java everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External
 Interface to communicate with the GWT ) and Java(GWT +  backend)

 If your Flex application is MXML/AS3 based the best way should be to use
 something like Blase DS.

 If you want to use a GWT API to build a Flex application  you can  have a
 look at gwt4air.

 Best,

 Alain




 2011/5/25 Alain Ekambi  jazzmatad...@googlemail.com
 jazzmatad...@googlemail.com

 May i suggest you Gwt4Air ? :)
 http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/


 2011/5/25 Jaggernat  jagger...@gmail.comjagger...@gmail.com

 hi guys

 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?

 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)

 any help greatly appreciated
 thanks.

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




 --

 GWT API for  non Java based platforms
  http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/
  http://www.gwt4air.appspot.com/http://www.gwt4air.appspot.com/





 --

 GWT API for  non Java based platforms
  http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/
  http://www.gwt4air.appspot.com/http://www.gwt4air.appspot.com/


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

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

Re: using GWT with flex?

2011-05-25 Thread Alain Ekambi
 If i  understand what you mean,  you want to repopulate the grid everytime
the data are updated in the backend right ?

I think Blase DS does not support pushing Data to the client. Atleast not
the  free version.

A solution could be to set up a timer that will  poll data from the backend
every 5s ?
I think  you can do that  in as3

Dont get me wrong i dont want to keep you from using GWT, i just think that
in your case there is a solution that is more effcient and esay to maintain
then using GWT. But if you dont mind having some overhead  plus a  language
explosion (MXML/AS3, JS, Java)  and architecture problem in your project. I
can tell you what our first solution to solve this type of problem was

2011/5/26 Jay Roy jagger...@gmail.com

 let me explain with a simple example
 We have a flex screen with a data grid. The data in data grid is populated
 with java collection. The java collection contains stock data which comes
 from backend.  In the backend every 0.5 second the stock data in collection
 is updated(we get market feed of data).

 so every 0.5 second we need to refresh the flex data grid and update it
 with the backend data.

 So the question now is we need to make a asynch call every 0.5 sec to fetch
 the updated data.

 I am using blazeds to get the java collection but i dont think blazeds can
 be used to make asynchronous calls. That is where we want to use ajax to
 make the asynchronous call every 0.5 sec.

 thanks.
 On Wed, May 25, 2011 at 8:32 PM, Alain Ekambi jazzmatad...@googlemail.com
  wrote:

 What exactly  do you mean  with incorporate ajax ?
 Do you mean making async  call to the server ?
 If  yes cant you do that with Blase DS ?

 Like i said before i dont know  if the road mxml/as -External Interface
 - js -  gwt - backend  and  back is effective
 because  you are adding  a lot of overhead just to call methods in the
 backend.



   2011/5/26 Jay jagger...@gmail.com

   Thanks for response. We are already using blazeds to communicate with
 our remote spring services. Our present architecture:
 Flex talks to backend java objects using spring blazeds.

 I want to incorporate ajax so What I had in mind is
 Flex mxml/as screen invokes JavaScript invokes java backend?
 Would that be correct?

 Thanks

 On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com
 wrote:

Well the suggestion  was for the Integrating Flex with GWT part.

 If you come from Flex learning GWT should not  be a  big problem because
 the development model is very similar.
 The official GWT Documentation is always a good point to start: 
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 And if you are really really stucked there is a guy called *Thomas
 Broyer* here in the community. You cant miss him :)

 Making a GWT RPC call from an AS3/MXML based  Flex application is not
 that easy and adds a lot of  overhead to your application.

 We had the same issue with one of our Flex applications. This is one of
 the reasons that motivated me to create a GWT API for Flex, so one could use
 Java everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External
 Interface to communicate with the GWT ) and Java(GWT +  backend)

 If your Flex application is MXML/AS3 based the best way should be to use
 something like Blase DS.

 If you want to use a GWT API to build a Flex application  you can  have a
 look at gwt4air.

 Best,

 Alain




 2011/5/25 Alain Ekambi  jazzmatad...@googlemail.com
 jazzmatad...@googlemail.com

 May i suggest you Gwt4Air ? :)
 http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/


 2011/5/25 Jaggernat  jagger...@gmail.comjagger...@gmail.com

 hi guys

 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?

 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)

 any help greatly appreciated
 thanks.

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




 --

 GWT API for  non Java based platforms
  http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/
  http://www.gwt4air.appspot.com/http://www.gwt4air.appspot.com/





 --

 GWT API for  non Java based platforms
  

Dock Layout Panel

2011-05-25 Thread Doug
Good Evening,

I am trying to design an app using DockLayoutPanel (using the example
here:http://code.google.com/webtoolkit/doc/latest/
DevGuideUiPanels.html) and I can't seem to get the panel to work.
When I run this code in the development server all I get in the
browser is a blank page with header in the upper left.  Both IE and
Chrome display the exact same page.

Can anyone tell me what I am doing wrong?

Thanks,
Doug


DockLayoutPanel p = new DockLayoutPanel(Unit.EM);
p.addNorth(new HTML(header), 2);
p.addSouth(new HTML(footer), 2);
p.addWest(new HTML(navigation), 10);
p.add(new HTML(Content));
RootPanel.get().add(p);

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



Re: can't get Audio to replay.

2011-05-25 Thread John LaBanca
The first thing to check is that the http headers include the correct mime
type.  The version of Jetty that GWT uses doesn't return the correct
mime-type by default.  Take a look at the mime-types defined in the web.xml
file of the mobilewebapp sample for an example workaround:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/mobilewebapp/war/WEB-INF/web.xml

Hopefully that will work, but I also ran into a similar problem recently.
 Loading the file from the file system worked, but loading it from dev mode
(with app engine enabled) caused it to play only once and not be seekable.
 My only lead was that the HTTP headers contained cache-control: private,
which might cause the browser to not cache the file, and thus make it
unseekable.  I think you can work around this using Filters with appengine,
but I haven't tried it.

Thanks,
John LaBanca
jlaba...@google.com


On Wed, May 25, 2011 at 6:01 PM, dani shaulov danish1...@gmail.com wrote:

 I compiled and deployed that and it works. seems it doesn't work only
 in dev mode.

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



Re: running GWT compiler low priority

2011-05-25 Thread Seth Hollyman
Depending on how you're calling the compiler, there may be several options 
available to you:

1) start the compiler at an elevated nice level (nice first, not renicing 
after start)

2) Tweak the jvm arguments so the compiler is less greedy with resources

3) Consider tweaking the GWT compiler options for faster, less optimized 
compile times if you're just iterating quickly


The following URL has a lot of information on getting better mileage out of 
GWT development, including many of the options you can pass both to devmode 
and the compiler (compiler args are at the bottom):
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html


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



Re: Forwarding all calls to the initial page

2011-05-25 Thread Seth Hollyman

You might want to check out the javadoc for 
com.google.gwt.user.client.Window.Location (has helper methods to get access 
to the URL, hashes, and GET parameters).  If this is a precursor to a more 
advanced application, you may want to take the time to learn how GWT's 
history mechanism works (store and retrieve application state through URL 
hash tokenization), and patterns that build upon it like Activities  
Places.

GWT's javadoc viewer can be found here:
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/index.html?overview-summary.html

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



Re: using GWT with flex?

2011-05-25 Thread Jay Roy
 If i  understand what you mean,  you want to repopulate the grid
everytime the data are updated in the backend right ?

exactly. yes i think u r right i can do it using timer object. so i am
guessing flex does provide asynchronous support in its own way :)
I would be curious to see what an AJAX framework like GWT can do which flex
cant.

thanks for your input.



On Wed, May 25, 2011 at 9:34 PM, Alain Ekambi
jazzmatad...@googlemail.comwrote:

  If i  understand what you mean,  you want to repopulate the grid everytime
 the data are updated in the backend right ?

 I think Blase DS does not support pushing Data to the client. Atleast not
 the  free version.

 A solution could be to set up a timer that will  poll data from the backend
 every 5s ?
 I think  you can do that  in as3

 Dont get me wrong i dont want to keep you from using GWT, i just think that
 in your case there is a solution that is more effcient and esay to maintain
 then using GWT. But if you dont mind having some overhead  plus a  language
 explosion (MXML/AS3, JS, Java)  and architecture problem in your project. I
 can tell you what our first solution to solve this type of problem was

 2011/5/26 Jay Roy jagger...@gmail.com

 let me explain with a simple example
 We have a flex screen with a data grid. The data in data grid is populated
 with java collection. The java collection contains stock data which comes
 from backend.  In the backend every 0.5 second the stock data in collection
 is updated(we get market feed of data).

 so every 0.5 second we need to refresh the flex data grid and update it
 with the backend data.

 So the question now is we need to make a asynch call every 0.5 sec to
 fetch the updated data.

 I am using blazeds to get the java collection but i dont think blazeds can
 be used to make asynchronous calls. That is where we want to use ajax to
 make the asynchronous call every 0.5 sec.

 thanks.
   On Wed, May 25, 2011 at 8:32 PM, Alain Ekambi 
 jazzmatad...@googlemail.com wrote:

 What exactly  do you mean  with incorporate ajax ?
 Do you mean making async  call to the server ?
 If  yes cant you do that with Blase DS ?

 Like i said before i dont know  if the road mxml/as -External Interface
 - js -  gwt - backend  and  back is effective
 because  you are adding  a lot of overhead just to call methods in the
 backend.



   2011/5/26 Jay jagger...@gmail.com

   Thanks for response. We are already using blazeds to communicate with
 our remote spring services. Our present architecture:
 Flex talks to backend java objects using spring blazeds.

 I want to incorporate ajax so What I had in mind is
 Flex mxml/as screen invokes JavaScript invokes java backend?
 Would that be correct?

 Thanks

 On May 25, 2011, at 5:58 PM, Alain Ekambi jazzmatad...@googlemail.com
 wrote:

Well the suggestion  was for the Integrating Flex with GWT part.

 If you come from Flex learning GWT should not  be a  big problem because
 the development model is very similar.
 The official GWT Documentation is always a good point to start: 
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 http://code.google.com/webtoolkit/doc/latest/DevGuide.html
 And if you are really really stucked there is a guy called *Thomas
 Broyer* here in the community. You cant miss him :)

 Making a GWT RPC call from an AS3/MXML based  Flex application is not
 that easy and adds a lot of  overhead to your application.

 We had the same issue with one of our Flex applications. This is one of
 the reasons that motivated me to create a GWT API for Flex, so one could 
 use
 Java everywhere instead of mixing MXML/AS3(Flex UI), JavaScript(External
 Interface to communicate with the GWT ) and Java(GWT +  backend)

 If your Flex application is MXML/AS3 based the best way should be to use
 something like Blase DS.

 If you want to use a GWT API to build a Flex application  you can  have
 a look at gwt4air.

 Best,

 Alain




 2011/5/25 Alain Ekambi  jazzmatad...@googlemail.com
 jazzmatad...@googlemail.com

 May i suggest you Gwt4Air ? :)
 http://code.google.com/p/gwt4air/http://code.google.com/p/gwt4air/


 2011/5/25 Jaggernat  jagger...@gmail.comjagger...@gmail.com

 hi guys

 I need to learn GWT and impliment a simple solution using GWT. I come
 from flex background.
 can anyone point me what the important concepts in GWT is? and in what
 order do i learn?

 Goal:
 we are currently developeing a trading app using flex screens but we
 want to use ajax framework GWT to make the asynchronous backend calls
 to our spring-java backend.
 (Is using flex  Fabridge an option to integrate GWT with flex?)

 any help greatly appreciated
 thanks.

 --
 You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
 To post to this group, send email to
 google-web-toolkit@googlegroups.com
 google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit%2bunsubscr...@googlegroups.com
 

Re: Generating GWT widgets based on an XML template

2011-05-25 Thread Arshad Nadheem
That's awesome... I never tough in the lines of setting CSS into widgets...
Thanks a lot!
So this means that I can have my reflection thing going on the server side -
to populate the Map with key/value pairs of the fields in the DTO..!

Cheers,
Arshad

On Wed, May 25, 2011 at 11:38 PM, Gabriel guz...@gmail.com wrote:

 Indeed you can't use reflection, but note that a vast majority of the
 widget properties are actually style (as in CSS) properties, so you
 can take advantage of it. I'm thinking in this direction: in your DTO
 have a MapString,String where the keys are style properties and the
 values are the style values, and on the client side iterate over the
 map and for each entry call
 Widget.getElement().getStyle().setProperty(key, value). You can do the
 same with attributes, this time call
 Widget.getElement().setAttribute(key, value). And the last thing you
 have to deal with is innerText (or innerHTML). So you can write a
 generic mechanism that handles styles, attributes and innerText and
 that should cover everything.

 On May 25, 7:26 pm, Arshad Nadheem arshadnadh...@gmail.com wrote:
  Thanks for the response Gabriel... it's the 1st option that I'm
  looking for. Generating HTML is not an option for me, since each of my
  widgets need to be self-contained components. So, the 1st option is
  the way to go for me.
 
  But this is where my problem starts... I'd love to use reflection to
  populate the widgets. I.e for each getters in my DTO, I try to invoke
  the corresponding setter in the widget (if exists). E.g.: If my
  ButtonDTO has a getHeight(), I'd check if the Button widget has a
  setHeight(). If so, I'd call setHeight() of the Button widget with the
  value of buttonDTO.getHeight().
 
  The easiest way to do this is through reflection, so that I won't have
  to do the above manually for each property. Of course some values
  cannot be set in this manner... that has to be dealt in the normal
  way.
 
  So, if I follow the approach that you mentioned as option 1, I won't
  be able to use reflection, right? Any workarounds?
 
  Thanks again,
  Arshad
 
  On 5/25/11, Gabriel guz...@gmail.com wrote:
 
 
 
 
 
 
 
   Hi,
 
   I can think of two options to implement what you want:
   1) On the server side generate DTOs that represent the UI structure
   and on the client side read them and build the UI accordingly.
   2) Generate pure HTML on the server and use it as the value of an HTML
   widget.
 
   The choice depends on what exactly you need from the client side. You
   should minimize the use of widgets as much as possible, and use them
   only if you need to capture events. Otherwise it is recommended to use
   HTML.
 
   Gabriel
 
   On May 25, 9:12 am, Arshad arshadnadh...@gmail.com wrote:
   Hi all,
 
   I'm pretty new to GWT, so please bear... Coming from a Struts
   background, GWT concepts takes a lot of getting used to :)
 
   I have a requirement of defining a user interface in a custom XML
   template, process it to generate a technology independent generic
   component tree, and use this tree to generate various different user
   interfaces (e.g. Swing, GWT, JSF, etc...). To get this going, I make
   use of reflection to transfer values from the generic component to the
   Swing/GWT/JSF component.
 
   I'm in the process of developing the GWT part, and feel like theirs
   two ways of approaching this:
   1. Do only the XML processing in the server side. The client makes an
   RPC call and retrieves the generic component tree in to the client
   side in order to generate the GWT widgets. This doesn't seem to be an
   option since GWT doesn't support reflection on the client side.
 
   2. Do both the XML processing and the GWT widget generation on the
   server side. The client makes an RPC call and retrieves the generated
   GWT widgets. This also doesn't seem to be possible... may be because
   it the widgets are not serializable?
 
   I would really appreciate any input regarding this. Is there anyway I
   can generate the GWT widgets on the server side and retrieve it from
   the client side? Or is there any other way I can approach this
   problem?
 
   Thanks in advance,
   Arshad
 
   --
   You received 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.



-- 
You received this message 

Re: Dock Layout Panel

2011-05-25 Thread Seth Hollyman

Use RootLayoutPanel instead of RootPanel in your example code when attaching 
one of the new Layout Panels.  The doclink you referenced has more detail 
about why, but its a subtle gotcha.

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



This application is out of date, please click the refresh button on your browser

2011-05-25 Thread Jose Luis Hernandez
Hello!
I have a problem with my GWT application. I deploy on Jetty server and
it runs. But when I perform a server call (class on server package of
GWT), the server returns an error message. The message is:

7|0|6|http://localhost/zbapp/zb_app/|A31E1254E17F9AD731856D6BE34124A2|
main.java.com.gwt.app.client.GreetingService|greetServer|
java.lang.String/2004016611||1|2|3|4|2|5|5|6|6|
//EX[2,1,
[com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/
3936916533,This application is out of date, please click the refresh
button on your browser. ( Expecting version 5 from client, got 7. )],
0,5]

However, the server returns a 200 code that is OK.
I have updated the browser, clear up browser cache and recompiled the
application, but it does not run. What is the solution for that??
Thanks in advance!
Regards!

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



[gwt-contrib] Re: Editor framework and submitting object graphs

2011-05-25 Thread Thomas Broyer
Actually, the Editor framework underwent a complete rewrite between 2.2 and 
2.3. There are only few visible changes though: introduction of EditorDriver 
base interface (with setConstraintViolations, so error reporting is now 
available on SimpleBeanEditorDriver too), EditorVisitor and 
HasRequestContext.

You might be running into this issue: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=6081
See also: 
http://code.google.com/p/google-web-toolkit/issues/list?can=1q=Editor%20status=ReviewPending%20milestone=2_3

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

[gwt-contrib] Re: Fix expression ranges in detailed SOYC output (issue1451801)

2011-05-25 Thread dconnelly

http://gwt-code-reviews.appspot.com/1451801/

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


[gwt-contrib] Re: Adding new DataGrid widget. DataGrid is a variation of CellTable that supports a fixed header a... (issue1450805)

2011-05-25 Thread Thomas Broyer


On Wednesday, May 25, 2011 3:29:35 PM UTC+2, Jeff Larsen wrote:

 Wow, this is awesome.


+1
 

 I haven't started digging into the code yet, but I would like to point out 
 a minor nit. In Firefox giving the scrollbars opacity looks OK, but in 
 chrome, it doesn't look right (see attached file). Personally, I think 
 people are used to not being able to see through scrollbars so I would 
 recommend just removing the opacity.


This was part of another patch a few weeks ago, it's the CustomScrollPanel.

What you're seeing only applies on Windows (IIRC, I had that on Windows XP 
too on the CustomScrollPanel demo that John put online at the time it 
proposed the widget), as it shows well on Ubuntu. It's a Chrome bug that I 
think is not worth working around in GWT.
See http://code.google.com/p/chromium/issues/detail?id=24524
 

 Another thing, the column headers don't change based on local in 
 CellSampler, or at least they didn't when I switched to an Arabic locale. 


Unrelated again, and already present in the current Showcase (with 
CellTable):
http://gwt.google.com/samples/Showcase/Showcase.html?locale=ar#!CwCellSampler
(and I believe not a bug actually, as the header text is the name of the 
cell class being used, minus the Cell suffix) 

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

[gwt-contrib] [google-web-toolkit] r10223 committed - Fix dangling clinit issue; check if clinit method calls have been repl...

2011-05-25 Thread codesite-noreply

Revision: 10223
Author:   jbrosenb...@google.com
Date: Wed May 25 04:59:33 2011
Log:  Fix dangling clinit issue; check if clinit method calls have been  
replaced or removed, during javascript generation phase.


Review at http://gwt-code-reviews.appspot.com/1448807

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

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java

===
---  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java	 
Tue May 24 12:34:23 2011
+++  
/trunk/dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java	 
Wed May 25 04:59:33 2011

@@ -127,6 +127,7 @@
 import com.google.gwt.dev.js.ast.JsNew;
 import com.google.gwt.dev.js.ast.JsNode;
 import com.google.gwt.dev.js.ast.JsNormalScope;
+import com.google.gwt.dev.js.ast.JsNullLiteral;
 import com.google.gwt.dev.js.ast.JsNumberLiteral;
 import com.google.gwt.dev.js.ast.JsObjectLiteral;
 import com.google.gwt.dev.js.ast.JsParameter;
@@ -1118,6 +1119,31 @@

   popList(jsInvocation.getArguments(), x.getArgs().size()); // args

+  if (JProgram.isClinit(method)) {
+/*
+ * It is possible for clinits to be referenced here that have  
actually

+ * been retargeted (see {@link
+ * JTypeOracle.recomputeAfterOptimizations}). Most of the time,  
these
+ * will get cleaned up by other optimization passes prior to this  
point,
+ * but it's not guaranteed. In this case we need to replace the  
method
+ * call with the replaced clinit, unless the replacement is null,  
in
+ * which case we generate a JsNullLiteral as a place-holder  
expression.

+ */
+JDeclaredType type = method.getEnclosingType();
+JDeclaredType clinitTarget = type.getClinitTarget();
+if (clinitTarget == null) {
+  if (x.getInstance() != null) {
+pop(); // instance
+  }
+  // generate a null expression, which will get optimized out
+  push(JsNullLiteral.INSTANCE);
+  return;
+} else if (type != clinitTarget) {
+  // replace the method with its retargeted clinit
+  method = clinitTarget.getMethods().get(0);
+}
+  }
+
   JsNameRef qualifier;
   JsExpression unnecessaryQualifier = null;
   if (method.isStatic()) {

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


[gwt-contrib] Re: Adding new DataGrid widget. DataGrid is a variation of CellTable that supports a fixed header a... (issue1450805)

2011-05-25 Thread Jeff Larsen


On Wednesday, May 25, 2011 10:21:18 AM UTC-5, Thomas Broyer wrote:



 On Wednesday, May 25, 2011 3:29:35 PM UTC+2, Jeff Larsen wrote:

 Wow, this is awesome.


 +1
  

 I haven't started digging into the code yet, but I would like to point out 
 a minor nit. In Firefox giving the scrollbars opacity looks OK, but in 
 chrome, it doesn't look right (see attached file). Personally, I think 
 people are used to not being able to see through scrollbars so I would 
 recommend just removing the opacity.


 This was part of another patch a few weeks ago, it's the CustomScrollPanel.

 What you're seeing only applies on Windows (IIRC, I had that on Windows XP 
 too on the CustomScrollPanel demo that John put online at the time it 
 proposed the widget), as it shows well on Ubuntu. It's a Chrome bug that I 
 think is not worth working around in GWT.
 See http://code.google.com/p/chromium/issues/detail?id=24524


Yea, that makes sense that its a chrome bug. I'll just change the css in my 
application to not use any opacity to get around the issue. I think my main 
concern was that most people aren't used to opacity in their scrollbars. 
When I looked at it initially, it just didn't feel like any experiences I've 
had on the web previously. 

Is there any bug tracker you don't know by heart? :)
 

  

 Another thing, the column headers don't change based on local in 
 CellSampler, or at least they didn't when I switched to an Arabic locale. 


 Unrelated again, and already present in the current Showcase (with 
 CellTable):

 http://gwt.google.com/samples/Showcase/Showcase.html?locale=ar#!CwCellSampler
 (and I believe not a bug actually, as the header text is the name of the 
 cell class being used, minus the Cell suffix) 


I never made that connection. Makes sense!

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

[gwt-contrib] Re: Adding new DataGrid widget. DataGrid is a variation of CellTable that supports a fixed header a... (issue1450805)

2011-05-25 Thread Thomas Broyer


On Wednesday, May 25, 2011 5:46:34 PM UTC+2, Jeff Larsen wrote:



 On Wednesday, May 25, 2011 10:21:18 AM UTC-5, Thomas Broyer wrote:



 On Wednesday, May 25, 2011 3:29:35 PM UTC+2, Jeff Larsen wrote:

 Wow, this is awesome.


 +1
  

 I haven't started digging into the code yet, but I would like to point 
 out a minor nit. In Firefox giving the scrollbars opacity looks OK, but in 
 chrome, it doesn't look right (see attached file). Personally, I think 
 people are used to not being able to see through scrollbars so I would 
 recommend just removing the opacity.


 This was part of another patch a few weeks ago, it's the 
 CustomScrollPanel.

 What you're seeing only applies on Windows (IIRC, I had that on Windows XP 
 too on the CustomScrollPanel demo that John put online at the time it 
 proposed the widget), as it shows well on Ubuntu. It's a Chrome bug that I 
 think is not worth working around in GWT.
 See http://code.google.com/p/chromium/issues/detail?id=24524


 Yea, that makes sense that its a chrome bug. I'll just change the css in my 
 application to not use any opacity to get around the issue. I think my main 
 concern was that most people aren't used to opacity in their scrollbars. 
 When I looked at it initially, it just didn't feel like any experiences I've 
 had on the web previously.


Actually, when I saw the transparency, I immediately checked whether it 
wasn't Chrome's default behavior on Linux ;-) (given that I switched from 
Windows less than a week ago, it woudln't have surprised me much that I 
wouldn't have noticed it, as much things I read don't have an horizontal 
scrollbar, and thus wouldn't need transparency on the vertical scrollbar 
either).
 

 Is there any bug tracker you don't know by heart? :)


I didn't actually know that bug until 2 mins before sending the previous 
message: I just search on crbug.com for scroll bar opacity. You don't need 
to know things by heart when you have a good search engine ;-)
(well, I have a good memory, so things regularly ring a bell, and the 
search engine is then just the mean to find it back)

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

[gwt-contrib] Re: Fix expression ranges in detailed SOYC output (issue1451801)

2011-05-25 Thread dconnelly

http://gwt-code-reviews.appspot.com/1451801/

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


Re: [gwt-contrib] Re: Adding new DataGrid widget. DataGrid is a variation of CellTable that supports a fixed header a... (issue1450805)

2011-05-25 Thread Ray Ryan
On Wed, May 25, 2011 at 9:13 AM, Thomas Broyer t.bro...@gmail.com wrote:



 On Wednesday, May 25, 2011 5:46:34 PM UTC+2, Jeff Larsen wrote:



 On Wednesday, May 25, 2011 10:21:18 AM UTC-5, Thomas Broyer wrote:



 On Wednesday, May 25, 2011 3:29:35 PM UTC+2, Jeff Larsen wrote:

 Wow, this is awesome.


 +1


 I haven't started digging into the code yet, but I would like to point
 out a minor nit. In Firefox giving the scrollbars opacity looks OK, but in
 chrome, it doesn't look right (see attached file). Personally, I think
 people are used to not being able to see through scrollbars so I would
 recommend just removing the opacity.


 This was part of another patch a few weeks ago, it's the
 CustomScrollPanel.

 What you're seeing only applies on Windows (IIRC, I had that on Windows
 XP too on the CustomScrollPanel demo that John put online at the time it
 proposed the widget), as it shows well on Ubuntu. It's a Chrome bug that I
 think is not worth working around in GWT.
 See http://code.google.com/p/chromium/issues/detail?id=24524


 Yea, that makes sense that its a chrome bug. I'll just change the css in
 my application to not use any opacity to get around the issue. I think my
 main concern was that most people aren't used to opacity in their
 scrollbars. When I looked at it initially, it just didn't feel like any
 experiences I've had on the web previously.


 Actually, when I saw the transparency, I immediately checked whether it
 wasn't Chrome's default behavior on Linux ;-) (given that I switched from
 Windows less than a week ago, it woudln't have surprised me much that I
 wouldn't have noticed it, as much things I read don't have an horizontal
 scrollbar, and thus wouldn't need transparency on the vertical scrollbar
 either).


 Is there any bug tracker you don't know by heart? :)


 I didn't actually know that bug until 2 mins before sending the previous
 message: I just search on crbug.com for scroll bar opacity. You don't
 need to know things by heart when you have a good search engine ;-)
 (well, I have a good memory, so things regularly ring a bell, and the
 search engine is then just the mean to find it back)

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


 Somehow this seems relevant: http://xkcd.com/

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

  1   2   >