Re: a basic gwt-maven-plugin question

2011-09-15 Thread Warren Tang
Right click on that folder and then select "Build Path > Use as Source 
Folder".

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

2011-09-15 Thread BST
Hi All,

I am facing the same issue and I have added the validation-api-1.0.0.GA.jar, 
validation-api-1.0.0.GA-sources.jar,  
hibernate-validator-4.1.0.Final-sources.jar, and 
hibernate-validator-4.1.0.Final.jar to the war/WEB-INF/lib and to the 
eclipse classpath(buildpath) but the issue still remains.

When I remove the validation-api-1.0.0.GA.jar from the classpath it gets 
resolved, but when I add it again issue persists. I am using Hibernate 3 and 
Spring in the application.

I am not sure why it is not able to find BeanValidationFactory inspite of 
adding hibernate-validator in the classpath. Is there any particular version 
that is required??

Your inputs will be helpful as I am stuck with this for quite some time. 
Below is the complete error message for reference.


[WARN] Server class 'javax.validation.Validation' could not be found in the 
web app, but was found on the system classpath
   [WARN] Adding classpath entry 
'file:/C:/Workspace/OneBill/src/war/WEB-INF/lib/hibernate-validator/validation-api-1.0.0.GA.jar'
 
to the web app classpath for this session
   For additional info see: 
file:/F:/eclipse/plugins/com.google.gwt.eclipse.sdkbundle_2.2.0.v201103311225/gwt-2.2.0/doc/helpInfo/webAppClassPath.html
ERROR [main] (ContextLoader.java:220) - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean 
with name 'sessionFactory' defined in ServletContext resource 
[/WEB-INF/classes/spring/spring-common-config.xml]: Invocation of init 
method failed; nested exception is org.hibernate.HibernateException: Unable 
to get the default Bean Validation factory
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at 
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at 
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at 
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at 
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at 
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)
at 
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at 
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at 
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at 
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at 
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at 
org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:543)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1220)
at 
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:513)
at 
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
at 
com.google.gwt.dev.shell.jetty.JettyLauncher$WebAppContextWithReload.doStart(JettyLauncher.java:461)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at 
org.mortbay.jetty.handler.RequestLogHandler.doStart(RequestLogHandler.java:115)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at 
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:39)
at 
com.google.gwt.dev.shell.jetty.JettyLauncher.start(JettyLauncher.java:565)
at com.google.gwt.dev.DevMode.doStartUpServer(DevMode.java:494)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1058)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
Caused by: org.hibernate.HibernateException: Unable to get the default Bean 
Validation factory
at 
org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127)
at 
org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1704)
at 
org.hibernate.cfg.Configuration.

Re: How to create image sprits

2011-09-15 Thread ramesh
Hi Alexandre,

Thanks for your response.

I have a one question.

Suppose If i implement Client Bundle interface  in my project.
 is GWT automatically create a single image sprite from 200+ static
images?

it would be a great if you provide a sample demo example on Image
sprite .

Thanks.

On Sep 15, 7:04 pm, Alexandre Dupriez 
wrote:
> You can use the ClientBundle interface.Createan interface which
> extends ClientBundle and declare youimageresources in it. Here is a
> piece of code:
>
> public interface AppResources extends ClientBundle {
>
>   @Source("image/frame.gif")
>   ImageResource frame();
>
> }
>
> Note that the path you provide in the @Source annotation is relative
> to the AppResources interface.
>
> Alexandre.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: what is the difference between onAttach() and onLoad()?

2011-09-15 Thread Y2i
onAttach() attaches all children first before calling onLoad().  onLoad() is 
just en empty hook in 
Widgetclass.

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



what is the difference between onAttach() and onLoad()?

2011-09-15 Thread wahaha
for a widget,what is the difference of usage between onAttach() and
onLoad()?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Browser does GWT 2.4 support for Firefox

2011-09-15 Thread AS Rosiel
I would like to confirm the updated developer plugin is from the link
below?
https://dl.google.com/dl/gwt/plugins/firefox/1.0.10582/gwt-dev-plugin.xpi

Also, is GWT 2.3 and GWT 2.4 also support IE8?

Thanks a lot.




-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: I want to Access External .js file in My GWT Application How can i achieve it??

2011-09-15 Thread Paul
The keyword is JavaScript Native Interface (JSNI).
Take a look at this discription:

http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html




On 15 Sep., 13:08, Nagendrasinh Rathod 
wrote:
> I want to Access External .js file which contains some function in My
> GWT Application How can I achieve it??
>
> How can I access javascript function written in external .js file can
> you plz. help with some example.
>
> 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.



SOLVED: An IncompatibleRemoteServiceException was thrown

2011-09-15 Thread Rob Tanner
I figured the problem must be 2.1 residue in a GWT 2.3 build.  So an
that assumption I deleted all those may directories that running in
development mode and compiling builld.  They contain javascript and
xml files and a few other sundry type.  I recompiled and all those
directories cam back but with 2.3 content only.  The problem went
away.

~ Rob


On Sep 15, 11:27 am, Rob Tanner  wrote:
> Hi,
>
> An application I build with GWT 2.1 in Eclipse (v3.5, Classic) worked
> just fine in tomcat.  However, I've upgraded my environment to Eclipse
> Indigo (EE version) and GWT 2.3 and the same app will not run on the
> production servers, but builds and runs fine in the development
> environment.  Since I'm testing GlassFish with the intention of moving
> away from Tomcat, I tried the app there and got an extensive stack
> trace error report:
>
> WebModule[/AccountRequest]AuthenService: An
> IncompatibleRemoteServiceException was thrown while processing this
> call.
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> Invalid type signature for
> org.linfield.accountRequest.client.AsyncServices.DataToken at
> com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at
> com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
> 206) 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:755) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:
> 1534) at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 281) at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 175) at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:
> 655) at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
> 595) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
> at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:
> 91) at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 162) at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:
> 326) at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 227) at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:
> 170) at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:
> 822) at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
> at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
> at
> com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:
> 225) at
> com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:
> 137) at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
> 104) at
> com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
> 90) at
> com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:
> 79) at
> com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:
> 54) at
> com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:
> 59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
> com.sun.grizzly.util.AbstractThreadPool
> $Worker.doWork(AbstractThreadPool.java:532) at
> com.sun.grizzly.util.AbstractThreadPool
> $Worker.run(AbstractThreadPool.java:513) at
> java.lang.Thread.run(Thread.java:662) Caused by:
> com.google.gwt.user.client.rpc.SerializationException: Invalid type
> signature for
> org.linfield.accountRequest.client.AsyncServices.DataToken at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateTypeVersions(ServerSerializationStreamReader.java:
> 931) at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:
> 545) at
> com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
> 119) at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
> $ValueReader$8.readValue(ServerSerializationStreamReader.java:138) at
> com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:
> 385) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:
> 303) ... 30 more
>
> Since the app was simply imported and not built from scratch on
> Indigo, are there settings I need to play with?  Any ideas?
>
> Thanks,
>
> Rob Tanner
> Linfield College

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@g

Re: Generated AutoBean name length for Proxies too long

2011-09-15 Thread Y2i
Thomas, I think this is the 
'fix'you were referring to.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/2FDrS5Ri34EJ.
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: Generated AutoBean name length for Proxies too long

2011-09-15 Thread Y2i
I just run into the same problem with gwt-maven-plugin.  Got a bunch of 
warnings like

[INFO]  [WARN] Error writing out generated unit at 
'...target/.generated/...'  (File name too long)

but the output at the end says BUILD SUCCESS.

Do these warnings/write errors affect the compilation?  
gwt:compilesays 
Location on filesystem where GWT will write generated content for review 
(-gen option to GWTCompiler)

It looks like the warnings can be ignored (I hope).

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

2011-09-15 Thread Y2i
Update: 

The two files GreetingServiceAsync.java and Messages.java are generated by 
gwt-maven-plugin and are placed to target/generated-sources/gwt directory. 
 Does anyone know how I can tell gwt compiler to look into this directory?

Thanks for your help!

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

2011-09-15 Thread Y2i
Update:  running *mvn compile* before *mvn gwt:compile* reduces the number 
of errors.

[INFO] --- gwt-maven-plugin:2.3.0-1:compile (default-cli) @ mygwt ---
[INFO] Compiling module org.example.gwt.MyGwt
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 
'file:/home/.../workspace/mygwt/src/main/java/org/example/gwt/client/MyGwt.java'
[INFO]  [ERROR] Line 35: No source code is available for type 
org.example.gwt.client.GreetingServiceAsync; did you forget to inherit a 
required module?
[INFO]  [ERROR] Line 37: No source code is available for type 
org.example.gwt.client.Messages; did you forget to inherit a required 
module?
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'org.example.gwt.client.MyGwt'
[INFO]  [ERROR] Hint: Previous compiler errors may have made this 
type unavailable
[INFO]  [ERROR] Hint: Check the inheritance chain from your module; 
it may not be inheriting a required module or a module may not be adding its 
source path entries properly
[INFO] 


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

2011-09-15 Thread Y2i
Using the 
Archetypearticle
 shows an example of generating a basic maven GWT project
After the generation I run
mvn gwt:run
and the application runs.

Then I run
mvn gwt:compile
and the compilation fails.

When I update gwt-maven-plugin to point to GWT 2.4 I get exactly the same 
compilation error.

Are the errors related to GWT compiler not understanding maven directory 
structure? How these errors can be fixed?  Thank you for your help!

[INFO] Compiling module org.example.gwt.MyGwt
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 
'file:/home/.../workspace/mygwt/src/main/java/org/example/gwt/client/MyGwt.java'
[INFO]  [ERROR] Line 35: GreetingServiceAsync cannot be resolved to 
a type
[INFO]  [ERROR] Line 35: No source code is available for type 
GreetingServiceAsync; did you forget to inherit a required module?
[INFO]  [ERROR] Line 35: The method create(Class) from the type 
GWT refers to the missing type GreetingServiceAsync
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 37: No source code is available for type 
Messages; did you forget to inherit a required module?
[INFO]  [ERROR] Line 37: The method create(Class) from the type 
GWT refers to the missing type Messages
[INFO]  [ERROR] Line 37: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 43: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 45: Messages cannot be resolved to a type
[INFO]  [ERROR] Line 123: GreetingServiceAsync cannot be resolved to 
a type
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'org.example.gwt.client.MyGwt'
[INFO]  [ERROR] Hint: Previous compiler errors may have made this 
type unavailable
[INFO]  [ERROR] Hint: Check the inheritance chain from your module; 
it may not be inheriting a required module or a module may not be adding its 
source path entries properly

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



pom.xml
Description: XML document


Re: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-15 Thread David Chandler
Thanks, Jeff. That's some pretty fine Maven wizardry.

What we've discovered is that with the lifecycle mapping POM hacks in place,
the ValidationTool does in fact run under Indigo, but the WTP publish
operation that happens just prior to launch does not have access to the
newly-generated sources in the workspace without a refresh. We're working on
a GPE fix to address this as well as simplifying the POM by using built-in
annotation processing rather than a separate exec.

/dmc

On Thu, Sep 15, 2011 at 1:44 PM, Jeff Larsen  wrote:

> @David,
>
> my post here
>
> https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/-4gaablGx8I
>
> is how I got rfvalidator-apt working with m2e in indigo.
>
> If you have questions, let me know.
>



-- 
David Chandler
Developer Programs Engineer, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.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.



GWT, Canvas, and excanvas.js

2011-09-15 Thread Christopher Piggott
Hi,

I have been searching for information on excanvas.js and GWT, and I
find a lot of information that is old/obsolete.  Some documents say
that you still need excanvas; others do not.

I have tried to make it work by including excanvas.js then creating a
little canvas in my GWT project's html loader page (index.html in my
case).

What I see are two things.  First, my little sample canvas draws just
fine in IE8 (I drew a box).  But then, my GWT initiated canvas still
doesn't work.  My code fails here:


canvas = Canvas.createIfSupported();
if (canvas == null) {
initWidget(new Label("Sorry, your browser doesn't 
support the HTML5
Canvas element"));
return;
}

It always thinks there's no canvas support.

Can anybody definitively say for version 2.3.0 of GWT 1) whether or
not it should work 2) what steps you need to take to initialize it so
it does?

Thanks,

--Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 Developer Plugin for Firefox 6

2011-09-15 Thread HakunaMatata
Worked on Lion without a hitch!!

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

2011-09-15 Thread POODevelopper
Thank you guys for the hint, I used this article to set up a proper
Exception handling :
http://cleancodematters.wordpress.com/2011/05/29/improved-exceptionhandling-with-gwts-requestfactory/

I have found that the Property "destTransactionId" was Null.
GWT need to handle Exceptions well Out of the Box. For a beginner it's
really difficult.


On Sep 15, 10:54 am, Thomas Broyer  wrote:
> Put a breakpoint in
> com.google.web.bindery.requestfactory.server.DefaultExceptionHandler, or
> provide your own ExceptionHandler to the RequestFactoryServlet to log the
> exceptions (with their stacktrace).

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: JSNI - Call Javascript native method from another

2011-09-15 Thread Jésica
Thomas, your example with $entry worked perfectly. I have a question
about your code snippet: which is representing *that* var assignment
in this case and why Is It necessary to use It?.
Thanks,
Jésica.

On Sep 15, 7:40 am, Thomas Broyer  wrote:
> On Wednesday, September 14, 2011 6:57:42 PM UTC+2, Jésica wrote:
>
> > Hi, I'm facing problems for calling a native method from another. i'm
> > trying to do It like this:
>
> > //JSNI code
> > public native void dragStart()/*-{
> >      alert("OnDragStart");
> > }-*/;
>
> > public native void addPushpin()/*-{
> >     (...)
> >     blah.Events.addHandler(pin, 'dragstart', dragStart);
>
> This should work:
>
> var that = this;
> blah.Events.addHandler(pin, 'dragstart', $entry(function() {
>    th...@path.to.YourClass::dragStart()();
>
> }));
>
> ($entry() is so that exceptions throw by the wrapped function, thus by your
> dragStart method, which the wrapped function calls, will go through
> GWT.UncaughtExceptionHandler; it also ensures Scheduler#scheduleEntry and
> Scheduler#scheduleFinally commands will be run around that call back to Java
> code)

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

2011-09-15 Thread Fábio Marigo
migrated to version 2.4.0 and now I'm having the following problem:

[INFO] Loaded 3546 units from persistent store.
[INFO]Found 3195 cached units.  Used 3195 / 3195 units from cache.
[INFO]Added 187 units to persistent cache.
[INFO]Validating newly compiled units
[INFO]   Errors in 'file:/D:/Desenvolvimento/eclipse/workspace/SLT/
saltobandeirantes-gwt/src/main/java/br/com/insula/saltobandeirantes/
client/adm/ui/configuracaosistema/ConfiguracaoSistemaView.java'
[INFO]  Line 258: The method doubleValue() is undefined for
the type BigDecimal


On Sep 15, 11:46 am, Fábio Marigo  wrote:
> In dev mode also occurs. The following web.xml:
>
> 
> http://java.sun.com/xml/ns/j2ee";
>         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>         
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
>         Salto Bandeirantes - GWT
>         Salto Bandeirantes - GWT
>         
>
>         
>                 DB Connection
>                 jdbc/salto
>                 javax.sql.DataSource
>                 Container
>         
>
>         
>                 contextConfigLocation
>                 
>                         classpath*:META-INF/*-context.xml
>                         classpath*:META-INF/datasource.xml
>                 
>         
>         
>                  class>org.springframework.web.context.ContextLoaderListener class>
>         
>
>         
>                 60
>         
>
>         
>                 index.html
>         
>
>         
>                 gwt-log-remote-logger-servlet
>                  class>com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl class>
>         
>
>         
>                 gwt-log-remote-logger-servlet
>                 /gwt-log
>         
>
>         
>                 preco-diaria-export-xml
>                 
>
> br.com.insula.saltobandeirantes.servlets.ExportarPrecoDiariaHotelXMLServlet  servlet-class>
>         
>         
>                 preco-diaria-export-xml
>                 /preco-diaria
>         
>
>         
>         
>                 RelatorioReceitaGeralServlet
>                 
>
> br.com.insula.saltobandeirantes.report.RelatorioReceitaGeralServlet servlet-class>
>         
>         
>                 RelatorioReceitaGeralServlet
>                 /relatorioReceitaGeralServlet
>         
>
>         
>
> 
>
> On 7 set, 10:12, Alexandre Dupriez 
> wrote:
>
>
>
>
>
>
>
> > Hello Fabio.
>
> > Do you achieve to get the application running in dev mode?
> > Could you please provide us with the content of your WEB-INF\web.xml
> > file?
>
> > Regards,
> > A.
>
> > On 6 sep, 15:12, Fábio Marigo  wrote:
>
> > > Could someone help me with the error below? I am having trouble trying
> > > to compile the GWT module.
>
> > > [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project-
> > > gwt\src\main\resources\br\com\project\Main.gwt.xml
> > >    Unable to parse module
> > > java.net.MalformedURLException
> > >         at java.net.URL.(URL.java:601)
> > >         at java.net.URL.(URL.java:464)
> > >         at java.net.URL.(URL.java:413)
> > >         at
> > > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity
> > >  (XMLEntityManager.java:
> > > 650)
> > >         at
> > > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVers
> > >  ion(XMLVersionDetector.java:
> > > 186)
> > >         at
> > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
> > >  nfiguration.java:
> > > 772)
> > >         at
> > > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co
> > >  nfiguration.java:
> > > 737)
> > >         at
> > > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
> > > 119)
> > >         at
> > > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract
> > >  SAXParser.java:
> > > 1205)
> > >         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> > > $JAXPSAXParser.parse(SAXParserImpl.java:522)
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
> > >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
> > >         at
> > > com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto
> > >  rs(GwtWebInfProcessor.java:
> > > 151)
> > >         at
> > > com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto
> > >  rs(GwtWebInfProcessor.java:
> > > 168)
> > >         at
> > > com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.(GwtWebInfProces
> > >  sor.java:
> > > 106)
> > >         at
> > > com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:
> > > 91)
> > >         at
> > > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP
> > >  luginManager.java:
> > > 107)
> > >         at
> > > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > > 209)
> > >         at
> > > or

Re: Strange Request: How do I open a new browser window, run part of the GWT application there, and communicate with it

2011-09-15 Thread Rob
Hi,

Take a look at gwt-multipage:

-> http://code.google.com/p/gwt-multipage/

and this post:

-> http://uptick.com.au/content/managing-multiple-host-pages

Cheers
Rob

On Sep 15, 11:30 pm, Derek  wrote:
> I once had to do something vaguely similar. I needed to open a GWT app
> in a window from a non-GWT app. I called var win =
> window.open("GwtHtmlPage.html") and then set the data the GWT app
> needed with win.blah = 3 or whatever. Then my GWT app used some JSNI
> to fetch that value.
>
> The problem as Robert metioned is that GWT doesn't really want you
> doing inter-window communication. So you have to sling your own JSNI.
>
> Derek
>
> On Sep 14, 12:34 pm, Néstor Boscán  wrote:
>
>
>
>
>
>
>
> > Hi
>
> > I have a strange request. I have an application that needs to run on an
> > iframe as part of another application. This application needs to open  popup
> > browser windows to show additional information, for example a celltable with
> > a list. How do I use GWT to run on the new popup browser window and send it
> > data?
>
> > Regards,
>
> > Néstor Boscán

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

2011-09-15 Thread Ernesto Oltra
The CSS file must be in the same *package* as the ClientBundle java file. In
one of my projects I have this structure:

src/com/company/app/Resources.java
resources/com/company/app/Style.css

And both folders (src & resources) are "Source folders" in my IDE

2011/9/15 Mike Dee 

> Made progress on this.  Posting here since it may be helpful to
> someone else.  Also additional questions.
>
> Started from scratch.  Having @CssResource.NotStrict is important.
> That pretty much allowed the css to be loaded without @external.
>
> One problem occurs if there is a css class with a hyphen in the name.
> A corresponding "foo-bar()" method is not allowed in the CssResource
> class as the hyphen is an illegal char in a Java method name. That was
> no big deal for me, since I don't need to programatically access css
> classes.
>
> I started out on this path to check if UiBinder would work with a
> CssResource.  It does.  The ensureInject() seems to stick the styles
> in myapp.css into the HEAD of the app's page (after standard.css).
> However, GwtDesigner doesn't reflect the styles.  In using a
> CssResource myapp.css was moved from the WAR directory (where the
> myapp.html file is) to com.mycompany.myapp.resources.  I don't think
> GwtDesigner knows to look there. I guess a copy of myapp.css could be
> left in both places, but I'll probably forget to keep them in sync.
>
> On Sep 15, 9:12 am, Mike Dee  wrote:
> > I've been playing around with this for a couple of days, to great
> > frustration.  Can't get it to work.
> >
> > I followed the example here:
> >  http://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Examples
> >
> > That doesn't work either.  The call to Window.Alert to print out the
> > css shows no text.
> >
> > I also noticed a few other things.
> >
> > 1) I took to naming my styles with hyphens, just like in all the GWT
> > examples.  Hyphens are not allowed.
> >
> > 2) The app won't start.  An error message appears and the fix was to
> > add "@external" to the front of my styles.  But WHY?  Nothing I did
> > was any different from the GWT samples and none of them used
> > @external.  So, I just did something for which I have no understanding
> > (the documentation is not helpful).  I'd like to know, when is
> > @external not needed?
> >
> > 3) I am using uibinder and removed my css file from the war directory
> > and moved it someplace where the CssResource can access it (in the
> > class hierarchy).  Now those styles are not being picked up.  Probably
> > because the enjureInjected() isn't working.  Or maybe ensureInjected()
> > doesn't work with uibinder.  Haven't been able to get far enough to
> > determine.
> >
> > I would like to see some decent documentation.  It is nice to have
> > step by step just-do-it-this-way instructions. But when that doesn't
> > work, I have no idea why I am doing what I am doing.  Seems like the
> > docs are written for those who already understand GWT, which kind of
> > defeats the purpose.
> >
> > Mike
> >
> > On Sep 8, 1:23 pm, Ernesto Oltra  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Sorry, I meant if you use the CssResource to bundle your stylesheets
> > > together with your app, it has a method ensureInjected(). The load
> process
> > > would be something like that:
> >
> > > Host page -> GWT code -> standard.css -> Your code -> Your CSS file
> injected
> >
> > > So it's easier to overwrite styles in this way.
> >
> > > Sample code:
> >
> > > public interface Resources extends ClientBundle {
> >
> > >   public static final Resources INSTANCE = GWT.create(Resources.class);
> >
> > >   public interface Style extends CssResource {
> > > String myCssClassHere();
> > > String myCssClassHere2();
> > >   }
> >
> > >   @ClientBundle.Source("Style.css")
> > >   @CssResource.NotStrict // If a class is present in the css file,
> > >   Style css();   //but not in the interface, don't
> > >  // return any compiler errors
> >
> > >   ImageResource blahBlah();
> > >   // Othere resources
> >
> > > }
> >
> > > public class MyApp implements EntryPoint {
> >
> > >   public void onModuleLoadSafe() {
> > > Resources.INSTANCE.css().ensureInjected();
> > >   }
> >
> > > }
> >
> > > 2011/9/8 Tobias 
> >
> > > > I am currently also struggling with that issue, see:
> >
> > > >
> http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> >
> > > > On Sep 8, 9:29 pm,MikeDee wrote:
> > > > > What does "injecting" mean in terms of CSS?  Sounds like this may
> > > > > alter the way cascading works in a typical web site/app?
> >
> > > > > On Sep 8, 11:47 am, Ernesto Oltra  wrote:
> >
> > > > > > Hi,
> >
> > > > > > Use Firebug or Chrome Dev Tools to see the cascade of styles,
> because I
> > > > had
> > > > > > some hard times with that. You define the font X for body, but
> then GWT
> > > > > > loads and injects the standard.css file and you have sans-serif
> or
> > > > whatever
> > > > > > again.
> >
> > > > > > You coul

Re: Basic CSS question

2011-09-15 Thread Ernesto Oltra
The documentation you have linked is for vesion < 2.0. It clearly says at
the beggining:

*Documentation for the GWT 2.0 release of
ClientBundle
can
be found on the GWT Developer's Guide website.*

1) I have included a hyphen example in the files
2) Have you add CssResource.NotStrict? If not, the things declared in the
CSS file and not declared in the interface will be reported as errors
3) Uibinder doesn't modify ClientBundle in any way. If the file
(MyCSSFile.css in this example) is not found, it's a compile error, not a
runtime one.

This is a complete working example (Java imports excluded for shortness):

*com/example/myapp/MyApp.gwt.xml*
*
*
http://google-web-toolkit.googlecode.com/svn-history/r10350/trunk/distro-source/core/src/gwt-module.dtd
">


  

  


*
*
*com/example/myapp/client/MyCSSFile.css*
*
*
body {
  background-color: red; /* only an example of changing the color */
  font: bold 20pt sans-serif;
}

.example-with-hyphens {
  font-weight: bold;
}

*com/example/myapp/client/Resources.java*

public interface Resources extends ClientBundle {

  public static final Resources INSTANCE = GWT.create(Resources.class);

  public interface Style extends CssResource {
@ClassName("example-with-hyphens")
exampleWithHpyhens();
  }

  @ClientBundle.Source("MyCSSFile.css")
  @CssResource.NotStrict // If a class is present in the css file,
  Style css();   //but not in the interface, don't
 // return any compiler errors

}

*com/example/myapp/client/MyApp.java*

public class MyApp implements EntryPoint {

  public void onModuleLoadSafe() {
Resources.INSTANCE.css().ensureInjected();

Button button = new Button("Example button");

String cls = Resources.INSTANCE.css().exampleWithHyphens();
// Now cls contains the obfuscated name
// of .example-with-hyphens

button.setStyleName(cls);

RootPanel.add(button);
  }

}


2011/9/15 Mike Dee 

> I've been playing around with this for a couple of days, to great
> frustration.  Can't get it to work.
>
> I followed the example here:
>  http://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Examples
>
> That doesn't work either.  The call to Window.Alert to print out the
> css shows no text.
>
> I also noticed a few other things.
>
> 1) I took to naming my styles with hyphens, just like in all the GWT
> examples.  Hyphens are not allowed.
>
> 2) The app won't start.  An error message appears and the fix was to
> add "@external" to the front of my styles.  But WHY?  Nothing I did
> was any different from the GWT samples and none of them used
> @external.  So, I just did something for which I have no understanding
> (the documentation is not helpful).  I'd like to know, when is
> @external not needed?
>
> 3) I am using uibinder and removed my css file from the war directory
> and moved it someplace where the CssResource can access it (in the
> class hierarchy).  Now those styles are not being picked up.  Probably
> because the enjureInjected() isn't working.  Or maybe ensureInjected()
> doesn't work with uibinder.  Haven't been able to get far enough to
> determine.
>
> I would like to see some decent documentation.  It is nice to have
> step by step just-do-it-this-way instructions. But when that doesn't
> work, I have no idea why I am doing what I am doing.  Seems like the
> docs are written for those who already understand GWT, which kind of
> defeats the purpose.
>
> Mike
>
> On Sep 8, 1:23 pm, Ernesto Oltra  wrote:
> > Sorry, I meant if you use the CssResource to bundle your stylesheets
> > together with your app, it has a method ensureInjected(). The load
> process
> > would be something like that:
> >
> > Host page -> GWT code -> standard.css -> Your code -> Your CSS file
> injected
> >
> > So it's easier to overwrite styles in this way.
> >
> > Sample code:
> >
> > public interface Resources extends ClientBundle {
> >
> >   public static final Resources INSTANCE = GWT.create(Resources.class);
> >
> >   public interface Style extends CssResource {
> > String myCssClassHere();
> > String myCssClassHere2();
> >   }
> >
> >   @ClientBundle.Source("Style.css")
> >   @CssResource.NotStrict // If a class is present in the css file,
> >   Style css();   //but not in the interface, don't
> >  // return any compiler errors
> >
> >   ImageResource blahBlah();
> >   // Othere resources
> >
> > }
> >
> > public class MyApp implements EntryPoint {
> >
> >   public void onModuleLoadSafe() {
> > Resources.INSTANCE.css().ensureInjected();
> >   }
> >
> > }
> >
> > 2011/9/8 Tobias 
> >
> >
> >
> >
> >
> >
> >
> > > I am currently also struggling with that issue, see:
> >
> > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa.
> ..
> >
> > > On Sep 8, 9:29 pm, Mike Dee  wrote:
> > > > What does "injecting" mean in terms of CSS?  Sounds like this may
> > > > alter the way

Re: Basic CSS question

2011-09-15 Thread Mike Dee
Made progress on this.  Posting here since it may be helpful to
someone else.  Also additional questions.

Started from scratch.  Having @CssResource.NotStrict is important.
That pretty much allowed the css to be loaded without @external.

One problem occurs if there is a css class with a hyphen in the name.
A corresponding "foo-bar()" method is not allowed in the CssResource
class as the hyphen is an illegal char in a Java method name. That was
no big deal for me, since I don't need to programatically access css
classes.

I started out on this path to check if UiBinder would work with a
CssResource.  It does.  The ensureInject() seems to stick the styles
in myapp.css into the HEAD of the app's page (after standard.css).
However, GwtDesigner doesn't reflect the styles.  In using a
CssResource myapp.css was moved from the WAR directory (where the
myapp.html file is) to com.mycompany.myapp.resources.  I don't think
GwtDesigner knows to look there. I guess a copy of myapp.css could be
left in both places, but I'll probably forget to keep them in sync.

On Sep 15, 9:12 am, Mike Dee  wrote:
> I've been playing around with this for a couple of days, to great
> frustration.  Can't get it to work.
>
> I followed the example here:
>  http://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Examples
>
> That doesn't work either.  The call to Window.Alert to print out the
> css shows no text.
>
> I also noticed a few other things.
>
> 1) I took to naming my styles with hyphens, just like in all the GWT
> examples.  Hyphens are not allowed.
>
> 2) The app won't start.  An error message appears and the fix was to
> add "@external" to the front of my styles.  But WHY?  Nothing I did
> was any different from the GWT samples and none of them used
> @external.  So, I just did something for which I have no understanding
> (the documentation is not helpful).  I'd like to know, when is
> @external not needed?
>
> 3) I am using uibinder and removed my css file from the war directory
> and moved it someplace where the CssResource can access it (in the
> class hierarchy).  Now those styles are not being picked up.  Probably
> because the enjureInjected() isn't working.  Or maybe ensureInjected()
> doesn't work with uibinder.  Haven't been able to get far enough to
> determine.
>
> I would like to see some decent documentation.  It is nice to have
> step by step just-do-it-this-way instructions. But when that doesn't
> work, I have no idea why I am doing what I am doing.  Seems like the
> docs are written for those who already understand GWT, which kind of
> defeats the purpose.
>
> Mike
>
> On Sep 8, 1:23 pm, Ernesto Oltra  wrote:
>
>
>
>
>
>
>
> > Sorry, I meant if you use the CssResource to bundle your stylesheets
> > together with your app, it has a method ensureInjected(). The load process
> > would be something like that:
>
> > Host page -> GWT code -> standard.css -> Your code -> Your CSS file injected
>
> > So it's easier to overwrite styles in this way.
>
> > Sample code:
>
> > public interface Resources extends ClientBundle {
>
> >   public static final Resources INSTANCE = GWT.create(Resources.class);
>
> >   public interface Style extends CssResource {
> >     String myCssClassHere();
> >     String myCssClassHere2();
> >   }
>
> >   @ClientBundle.Source("Style.css")
> >   @CssResource.NotStrict // If a class is present in the css file,
> >   Style css();           //but not in the interface, don't
> >                          // return any compiler errors
>
> >   ImageResource blahBlah();
> >   // Othere resources
>
> > }
>
> > public class MyApp implements EntryPoint {
>
> >   public void onModuleLoadSafe() {
> >     Resources.INSTANCE.css().ensureInjected();
> >   }
>
> > }
>
> > 2011/9/8 Tobias 
>
> > > I am currently also struggling with that issue, see:
>
> > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> > > On Sep 8, 9:29 pm,MikeDee wrote:
> > > > What does "injecting" mean in terms of CSS?  Sounds like this may
> > > > alter the way cascading works in a typical web site/app?
>
> > > > On Sep 8, 11:47 am, Ernesto Oltra  wrote:
>
> > > > > Hi,
>
> > > > > Use Firebug or Chrome Dev Tools to see the cascade of styles, because 
> > > > > I
> > > had
> > > > > some hard times with that. You define the font X for body, but then 
> > > > > GWT
> > > > > loads and injects the standard.css file and you have sans-serif or
> > > whatever
> > > > > again.
>
> > > > > You could:
>
> > > > > 1) Load your stylesheet and inject it after GWT loads.
>
> > > > > 2) Use your own version of standard.css (it's only a css file with 
> > > > > some
> > > > > images, copy it and use it)
>
> > > > > Hope it helps,
>
> > > > > Ernesto
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > goog

Re: CellTable Tab Event Handling

2011-09-15 Thread ryepie


On Sep 15, 11:32 am, ryepie  wrote:
> Hello,
>
> Getting some odd behavior on tab events with CellTable and hoping
> someone can point me in the right direction. The CellTable is using a
> type of AbstractInputCell.
>
> After finishEditing is called with an onChange event, the focus is
> sent back to the first cell in the row with KeyboardSelectionPolicy
> set to disabled. If KSP is set to enabled, it sets the focus to
> whatever cell was "clicked" last.
>
> I am using GWT2.3 now, but was using GWT 2.1 before. This behavior
> started when I upgraded to GWT 2.3 however we did see some wonky
> behavior even in 2.1 with tabbign and the cellTable.
>
> Has anyone else encountered this? Any Ideas how I can fix this
> behavior. I want to be able to tab normally through the table after
> data changes.

edit: One other thing. When coming back from the server, the focus is
not being set at all. I have to hit tab twice to get the focus back
then it goes to the first cell in the table.

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



Radiobutton vs checkbox in celltable

2011-09-15 Thread Roger Studner
If I do a single selection model etc.. (canonical).. I get a checkbox.

Technically, you'd think, this would render as a radio button..

Anyone experiment/discover how to replace the default check box column w/ a 
radio button ?

thanks

Roger

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 / AutoBean with non-bean value type

2011-09-15 Thread Eric Sirianni
Thanks Thomas - that was going to be my workaround, but we have a
fairly rich domain model and use Joda types extensively.  Providing
String-based wrapper properties on each entity class is going to be a
bit of a pain.  This is why I'd been looking for a more centralized
approach.

I'm not too familiar with AutoBean, but I would think something could
be done here.  Are you guys accepting patches :)?

On Sep 15, 6:31 am, Thomas Broyer  wrote:
> I don't think ServiceLayerDecorator would work (interface won't validate
> against domain object; you could use @SkipInterfaceValidation but that
> actually wouldn't help, at least with GWT 2.4.0: see my comments 
> onhttp://code.google.com/p/google-web-toolkit/source/detail?r=10542).
>
> How about adding getters and setters to your domain object that do the
> conversion between JodaTime types and strings or numbers?
>
> I.e.
> public final String getDurationString() {
>    return getDuration().toString();}
>
> public final void setDurationString(String s) {
>    setDuration(Duration.parse(s));
>
> }
>
> Not ideal but assured to work.
>
> Ideally of course, ValueCodex would be pluggable. If you have an idea how to
> refactor it so anyone could plug his "codecs", that'd be awesome ;-)

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



CellTable Tab Event Handling

2011-09-15 Thread ryepie
Hello,

Getting some odd behavior on tab events with CellTable and hoping
someone can point me in the right direction. The CellTable is using a
type of AbstractInputCell.

After finishEditing is called with an onChange event, the focus is
sent back to the first cell in the row with KeyboardSelectionPolicy
set to disabled. If KSP is set to enabled, it sets the focus to
whatever cell was "clicked" last.

I am using GWT2.3 now, but was using GWT 2.1 before. This behavior
started when I upgraded to GWT 2.3 however we did see some wonky
behavior even in 2.1 with tabbign and the cellTable.

Has anyone else encountered this? Any Ideas how I can fix this
behavior. I want to be able to tab normally through the table after
data changes.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-15 Thread Eric Andresen
I'm using M2E and Indigo, so it looks like I might be running into this 
problem.  I don't see the *DeobfuscatorBuilder in my WAR anywhere.

I'll take a look through Jeff's link below and see if that helps me at all.

Thanks,
Eric

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

2011-09-15 Thread karim duran
Hi Norman,

1) As you see in your log -> java.lang.NoClassDefFoundError:
sung/app/kylintv/product/Product , one of your Classes or package can't be
found by the server runtime.

Are you sure that your *.war is well generated ?

Open your *.war with a ZIP utility tool and check if there is a
'Product.class' and 'sung.app.kylintv.product' package. Sometimes Eclipse
War exportation tool don't include package or classes with compilation
warnings.

2) Of course GWT applications work with EJB...So in my opinion EJBs are not
the problem.

You'll tell me later.

I hope it helps.

Karim Duran.








2011/9/15 Norman Klingspor 

> Hello,
>
> I'm trying to establish a shop-system through gwt. In Ecplise running
> on jBoss 6.1.0.Final, GWT 2.4
>
> In my first approach I wanted to integrate my ejb-structures from the
> originial project. As a result I:
>
> 1.) created a .ejb project and integrated all classes relevant
> from my original project
> 2.) created a .gwt project, build first page, one button:
> establish database (which is implemented in my class ProductHome.java)
> 3.) adding an interface Product for ProductHome
> 4.) added my .ejb-project into my build-path, added the
> generated jar-file to the deployf-folder WEB-INF/classes by hand
> additionally
> 5.) build the Service DatabaseBuilderService (incl
> DatabaseBuilderServiceImpl and DatabaseBuilderServiceAsync)
> 6.) deployed the complete war-folder to jBoss into .gwt.war
>
> The page is build, and I can reach my side, pressing the button to
> start my function in .ejb CreateDefaultDatabase().
>
> In debug I reached the server-code-line, where the external function
> should be called.
>
> But in jBoss there still occurs this Error:
>
> 2011-09-15 17:17:26,324 ERROR [org.apache.catalina.core.ContainerBase.
> [jboss.web].[localhost].[/kylintv.gwt]] (http-127.0.0.1-8080-2)
> Exception while dispatching incoming RPC call:
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract boolean
>
> sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()'
> threw an unexpected exception: java.lang.NoClassDefFoundError: sung/
> app/kylintv/product/Product
>at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 385) [:]
>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:754) [:
> 1.0.0.Final]
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:
> 1.0.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 324) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>at
>
> org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:
> 67) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 274) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 275) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 161) [:6.1.0.Final]
>at
>
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
> 181) [:6.1.0.Final]
>at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
>at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
>at
>
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
> 88) [:6.1.0.Final]
>at
>
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
> 100) [:6.1.0.Final]
>at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 159) [:6.1.0.Final]
>at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 102) [:6.1.0.Final]
>at
>
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
> 158) [:6.1.0.Final]
>at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 109) [:6.1.0.Final]
>at
>
> org.jboss.web.tomcat.service.request.ActiveRequestResponseCac

An IncompatibleRemoteServiceException was thrown

2011-09-15 Thread Rob Tanner
Hi,

An application I build with GWT 2.1 in Eclipse (v3.5, Classic) worked
just fine in tomcat.  However, I've upgraded my environment to Eclipse
Indigo (EE version) and GWT 2.3 and the same app will not run on the
production servers, but builds and runs fine in the development
environment.  Since I'm testing GlassFish with the intention of moving
away from Tomcat, I tried the app there and got an extensive stack
trace error report:

WebModule[/AccountRequest]AuthenService: An
IncompatibleRemoteServiceException was thrown while processing this
call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Invalid type signature for
org.linfield.accountRequest.client.AsyncServices.DataToken at
com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:315) at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
206) 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:755) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:848) at
org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:
1534) at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
281) at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
175) at
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:
655) at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
595) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98)
at
com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:
91) at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
162) at
org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:
326) at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
227) at
com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:
170) at
com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:
822) at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:
225) at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:
137) at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
104) at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:
90) at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:
79) at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:
54) at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:
59) at com.sun.grizzly.ContextTask.run(ContextTask.java:71) at
com.sun.grizzly.util.AbstractThreadPool
$Worker.doWork(AbstractThreadPool.java:532) at
com.sun.grizzly.util.AbstractThreadPool
$Worker.run(AbstractThreadPool.java:513) at
java.lang.Thread.run(Thread.java:662) Caused by:
com.google.gwt.user.client.rpc.SerializationException: Invalid type
signature for
org.linfield.accountRequest.client.AsyncServices.DataToken at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.validateTypeVersions(ServerSerializationStreamReader.java:
931) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(ServerSerializationStreamReader.java:
545) at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
119) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader
$ValueReader$8.readValue(ServerSerializationStreamReader.java:138) at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserializeValue(ServerSerializationStreamReader.java:
385) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:
303) ... 30 more

Since the app was simply imported and not built from scratch on
Indigo, are there settings I need to play with?  Any ideas?

Thanks,

Rob Tanner
Linfield College

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 2.4 breaks JDK 5 compile support

2011-09-15 Thread David Goodenough
On Thursday 15 Sep 2011, Thad wrote:
> Right, good riddance to 1.5 so long as your not stuck supporting a few
> die-hards with old Macs as servers. Apple didn't port Java 1.6 to the
> old non-Intel RISC machines.If a site's server runs OSX 10.4 or below,
> or it's a non-Intel machine with OS 10.5, GWT 2.4 is not an option.
> 
> God help us when Java 1.7 is required. I was never happy with the
> Blackdown port for Linux. Therefore I'm not confident that OpenJDK
> will provide a suitable environment for OSX down the road. The fact
> that I develop almost exclusively in Java these days is what keeps me
> from making a Mac my next computer.
This should be much less of a problem now as OpenJDK is the only
official JDK for 7.  I have no idea whether there is a version for
MACs, but it is now all properly open source so if you need to make
a version for old machines then it is open for you (and others) to 
do so.

David
> 
> On Sep 14, 5:47 pm, Jeff Larsen  wrote:
> > Yea, 1.6 is required now. Good riddance to 1.5!

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



Re: RequestFactory with complex client parameters

2011-09-15 Thread Jesse Hutton
You can create proxy instances in the client using
RequestContext#create(Class clazz). For your filter object, you
just need an interface extending ValueProxy that has a server side
representation, and you should be good to go.

Jesse

On Thu, Sep 15, 2011 at 3:35 AM, albertoknox
wrote:

> I´m using GWT RequestFactory and want to transport client-side
> parameters in a service. The parameters should be created on the
> client, because they aren´t part of the domain model and won´t be
> stored in the database. Unfortunately I found no way to do this,
> because only xxxProxy objects can be used as parameters and they can
> only be created on the server.
>
> My concrete example:
>
> I want to download tasks from a server and want to send a filter
> object with the request as parameter, which specifies the task objects
> to be loaded.
>
> Thanks for your help!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

2011-09-15 Thread Fabricio Pizzichillo
Thanks Alex!

2011/9/15 Alex Dobjanschi 

> Your login place should have a 'redirectAfterLogin' String member, like
> this:
>
> class LoginPlace extends Place {
>  String redirectAfterLogin;
> }
>
> Optionally, you could go for, this is closely bound to GWT specific
> implementation:
>
> class LoginPlace extends Place {
>   Place redirectAfterLogin;
> }
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/s-Oxx0HYzzAJ.
> 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: The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-15 Thread Jeff Larsen
@David,

my post here
https://groups.google.com/forum/#!topic/google-web-toolkit-contributors/-4gaablGx8I

is how I got rfvalidator-apt working with m2e in indigo. 

If you have questions, let me know. 

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

2011-09-15 Thread Jeff Larsen
You're not required to have a java 1.6 server to run with gwt compiled 1.5 
code. You'll just have to setup a no-server situation. That way your 1.5 
server code can live in a 1.5 environment and you compile your js with java 
1.6


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

2011-09-15 Thread David Chandler
Hi Eric,

Look for a class named *YourRequestFactory*DeobfuscatorBuilder in the WAR.
This will be present if the RF validation tool has run.

We're currently working on an issue where it gets wiped out in Maven
projects in Eclipse Indigo.

/dmc

On Thu, Sep 15, 2011 at 12:45 PM, Eric Andresen wrote:

> I just upgraded to 2.4, and am seeing the following problem when I try to
> run my server:
>
> SEVERE: Unexpected error
> java.lang.RuntimeException: The RequestFactory ValidationTool must be run
> for the XX RequestFactory type
>  at
> com.google.web.bindery.requestfactory.vm.impl.Deobfuscator$Builder.load(Deobfuscator.java:59)
>
> I followed the instructions at
> http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
>  to
> turn on annotation processing in Eclipse and add the requestfactory-apt to
> it, and I was able to see the annotation processor flag errors between my
> Request types and my Services.  (those errors are now fixed)
>
> Is there anything else I need to do in order to convince the deployed
> web-app that its RequestFactory was validated?  Or anything I can look for
> in the deployed WAR to determine if in fact the validation was run or not?
>
> Thanks,
> Eric
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-web-toolkit/-/ze3TX70785EJ.
> 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, GWT+GAE
w: http://code.google.com/
b: http://turbomanage.wordpress.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: Installation not done properly

2011-09-15 Thread Y2i
Google App Engine Tools for Android requires Android ADT which needs to be 
installed first.

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

2011-09-15 Thread Y2i
In Eclipse I only had to make RequestFactory interfaces and their server 
domain counterparts to be available on the sourcepath during the compilation 
process.  This seemed to be enough to validate RF interfaces and generate 
additional Java types.  The deployed app worked after this.

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

2011-09-15 Thread Markandayarushi Pamu
Please help on this issue

On Sep 15, 8:23 am, Markandayarushi Pamu  wrote:
> Hi,
>
> I want to implement the remember username and password functionality
> in my application.
>
> We are using the GWT version 2.2. I have tried to implement but user
> name auto complete is only working in the Fiirefox, Chrome and not
> working IE. remember the password is not working any browser. Actually
> when submit the form it is asking to save the password and it is
> stored in the browser but when I select the user name from auto
> complete suggested items password is not populating.
>
> My code is
>
>                FormPanel formPanel = new FormPanel();
>                formPanel.setMethod(FormPanel.METHOD_POST);
>                HTMLPanel verticalPanel = new HTMLPanel("");
>                TextBox textBox = new TextBox();
>                textBox.setName("username");
>                verticalPanel.add(textBox);
>                PasswordTextBox password= new PasswordTextBox();
>                password.setName("password");
>                verticalPanel.add(password);
>                Button btn = new SubmitButton();
>                btn.setText("Click");
>                verticalPanel.add(btn);
>                formPanel.add(verticalPanel);
>                formPanel.setAction("/");
>                HTMLPanel htmlPanel = new HTMLPanel("");
>                htmlPanel.add(formPanel);
>                RootPanel.get().add(formPanel);
>
> Please help me how to implement remember user name and password in
> GWT .
>
> Thanks
> P.M.Rushi

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

2011-09-15 Thread Alex Dobjanschi
Your login place should have a 'redirectAfterLogin' String member, like 
this:

class LoginPlace extends Place {
 String redirectAfterLogin;
}

Optionally, you could go for, this is closely bound to GWT specific 
implementation:

class LoginPlace extends Place {
  Place redirectAfterLogin;
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/s-Oxx0HYzzAJ.
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: mvn gwt:run java.lang.IllegalStateException: No Constructor

2011-09-15 Thread Y2i
The java process started by mvn gwt:run opens the same file twice:  one file 
in ~/m2/repository, another file in ${webappDirectory}/WEB-INF/lib.  
geronimo-spec-jta, 
that contains UserTransaction, is also on the list of open-twice files.

Could that be a problem?

Thank you in advance!

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

2011-09-15 Thread RickL
Good Morning,

Any luck with this?  I am having the exact same problem with the
expenses sample app (I refreshed it from the repository yesterday).  I
have been trying to get past this for days.  I can manually validate
the expenses request factory class with:

java -cp \
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/classes:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/appengine-api-1.0-sdk-1.5.4.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/validation-api-1.0.0.GA.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/persistence-api-1.0.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/transaction-api-1.1.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/jdo2-api-2.3-eb.jar:\
/rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/WEB-
INF/lib/gwt-servlet-2.4.0.jar\
 com.google.web.bindery.requestfactory.apt.ValidationTool \
   /rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT/
WEB-INF/classes \
   com.google.gwt.sample.expenses.shared.ExpensesRequestFactory

I *suspect* the problem may be with my run configuration, which has
program arguments of:

-war /rick/workspace-ee/expenses/target/expenses-0.1.0.BUILD-SNAPSHOT
-startupUrl Expenses.html
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -
codeServerPort 9997 -port 
-server com.google.appengine.tools.development.gwt.AppEngineLauncher
 com.google.gwt.sample.expenses.Expenses
 com.google.gwt.sample.expenses.LoadExpensesDB
 com.google.gwt.sample.expenses.ExpensesMobile

The LoadExpensesDB module works fine, but it uses RPC not the request
factory.

Thanks,

Rick

On Sep 14, 3:27 am, Geoffray  wrote:
> Good morning everyone,
>
> i'm trying to figure out how to migrate requestfactory 2.3 to 2.4 but
> I still have the same problem : java.lang.RuntimeException: The
> RequestFactory ValidationTool must be run for the
> com.airfrance.cappla.client.service.factory.AppRequestFactory
> RequestFactory type
>
> Actually, in order to solve my problem I tried to do what was
> explained in this tutorial 
> :http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterf...,
> but it still doesn't work :(
>
> Does anyone have the same problem ??
> Does anyone have solve it ??
>
> Thank you for your help.
>
> Geoffray.

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 2.4 breaks JDK 5 compile support

2011-09-15 Thread cri
Time to bring your guys up to date, I'd say, and off the antiquated
mac servers. ;-) Actually I didn't know people used Macs as
servers. ;-)

On Sep 15, 11:05 am, Thad  wrote:
> Right, good riddance to 1.5 so long as your not stuck supporting a few
> die-hards with old Macs as servers. Apple didn't port Java 1.6 to the
> old non-Intel RISC machines.If a site's server runs OSX 10.4 or below,
> or it's a non-Intel machine with OS 10.5, GWT 2.4 is not an option.
>
> God help us when Java 1.7 is required. I was never happy with the
> Blackdown port for Linux. Therefore I'm not confident that OpenJDK
> will provide a suitable environment for OSX down the road. The fact
> that I develop almost exclusively in Java these days is what keeps me
> from making a Mac my next computer.
>
> On Sep 14, 5:47 pm, Jeff Larsen  wrote:
>
>
>
>
>
>
>
> > Yea, 1.6 is required now. Good riddance to 1.5!

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



The RequestFactory ValidationTool must be run for the RequestFactory type

2011-09-15 Thread Eric Andresen
I just upgraded to 2.4, and am seeing the following problem when I try to 
run my server:

SEVERE: Unexpected error
java.lang.RuntimeException: The RequestFactory ValidationTool must be run 
for the XX RequestFactory type
at 
com.google.web.bindery.requestfactory.vm.impl.Deobfuscator$Builder.load(Deobfuscator.java:59)

I followed the instructions at 
http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation
 to 
turn on annotation processing in Eclipse and add the requestfactory-apt to 
it, and I was able to see the annotation processor flag errors between my 
Request types and my Services.  (those errors are now fixed)

Is there anything else I need to do in order to convince the deployed 
web-app that its RequestFactory was validated?  Or anything I can look for 
in the deployed WAR to determine if in fact the validation was run or not?

Thanks,
Eric

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



remember places

2011-09-15 Thread Fabricio Pizzichillo
 hello to the group
I am developing an application, and I need at the time of requesting the
login,remember that place comes the request, so you can continue browsing where
you were
How do I remember the place where I come from?


greetings and 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: Basic CSS question

2011-09-15 Thread Mike Dee
I've been playing around with this for a couple of days, to great
frustration.  Can't get it to work.

I followed the example here:
  http://code.google.com/p/google-web-toolkit/wiki/ClientBundle#Examples

That doesn't work either.  The call to Window.Alert to print out the
css shows no text.

I also noticed a few other things.

1) I took to naming my styles with hyphens, just like in all the GWT
examples.  Hyphens are not allowed.

2) The app won't start.  An error message appears and the fix was to
add "@external" to the front of my styles.  But WHY?  Nothing I did
was any different from the GWT samples and none of them used
@external.  So, I just did something for which I have no understanding
(the documentation is not helpful).  I'd like to know, when is
@external not needed?

3) I am using uibinder and removed my css file from the war directory
and moved it someplace where the CssResource can access it (in the
class hierarchy).  Now those styles are not being picked up.  Probably
because the enjureInjected() isn't working.  Or maybe ensureInjected()
doesn't work with uibinder.  Haven't been able to get far enough to
determine.

I would like to see some decent documentation.  It is nice to have
step by step just-do-it-this-way instructions. But when that doesn't
work, I have no idea why I am doing what I am doing.  Seems like the
docs are written for those who already understand GWT, which kind of
defeats the purpose.

Mike

On Sep 8, 1:23 pm, Ernesto Oltra  wrote:
> Sorry, I meant if you use the CssResource to bundle your stylesheets
> together with your app, it has a method ensureInjected(). The load process
> would be something like that:
>
> Host page -> GWT code -> standard.css -> Your code -> Your CSS file injected
>
> So it's easier to overwrite styles in this way.
>
> Sample code:
>
> public interface Resources extends ClientBundle {
>
>   public static final Resources INSTANCE = GWT.create(Resources.class);
>
>   public interface Style extends CssResource {
>     String myCssClassHere();
>     String myCssClassHere2();
>   }
>
>   @ClientBundle.Source("Style.css")
>   @CssResource.NotStrict // If a class is present in the css file,
>   Style css();           //but not in the interface, don't
>                          // return any compiler errors
>
>   ImageResource blahBlah();
>   // Othere resources
>
> }
>
> public class MyApp implements EntryPoint {
>
>   public void onModuleLoadSafe() {
>     Resources.INSTANCE.css().ensureInjected();
>   }
>
> }
>
> 2011/9/8 Tobias 
>
>
>
>
>
>
>
> > I am currently also struggling with that issue, see:
>
> >http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
>
> > On Sep 8, 9:29 pm, Mike Dee  wrote:
> > > What does "injecting" mean in terms of CSS?  Sounds like this may
> > > alter the way cascading works in a typical web site/app?
>
> > > On Sep 8, 11:47 am, Ernesto Oltra  wrote:
>
> > > > Hi,
>
> > > > Use Firebug or Chrome Dev Tools to see the cascade of styles, because I
> > had
> > > > some hard times with that. You define the font X for body, but then GWT
> > > > loads and injects the standard.css file and you have sans-serif or
> > whatever
> > > > again.
>
> > > > You could:
>
> > > > 1) Load your stylesheet and inject it after GWT loads.
>
> > > > 2) Use your own version of standard.css (it's only a css file with some
> > > > images, copy it and use it)
>
> > > > Hope it helps,
>
> > > > Ernesto
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google 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: NullPointerException in MethodPropertyContext

2011-09-15 Thread Tiago
The issue you point me to is probably related, since I have a
Request>>...

Thank you for the fast response. I'll look the docs for what you
suggest me and see how it fits. Currently the project I'm working with
is using GWT 2.3, so I don't even know if I'll be able to use it,
let's see.

Thanks again!

On Sep 15, 5:52 pm, Thomas Broyer  wrote:
> I think it is (illegal).
>
> You should make one sub-interface of AValueProxy per type of
> AGenericEntityProxy that you'd use for its T type parameter; remove the type
> parameter (making AValueProxy no longer generic), and using @ExtraTypes (GWT
> 2.4 onwards) for polymorphism, listing the sub-interfaces you previously
> created.
>
> It's probably possible to enhance RF to make this work, but for now I don't
> think RF is designed to handle such things.
> See also, possibly
> related,http://code.google.com/p/google-web-toolkit/issues/detail?id=5974

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 2.4 breaks JDK 5 compile support

2011-09-15 Thread Thad
Right, good riddance to 1.5 so long as your not stuck supporting a few
die-hards with old Macs as servers. Apple didn't port Java 1.6 to the
old non-Intel RISC machines.If a site's server runs OSX 10.4 or below,
or it's a non-Intel machine with OS 10.5, GWT 2.4 is not an option.

God help us when Java 1.7 is required. I was never happy with the
Blackdown port for Linux. Therefore I'm not confident that OpenJDK
will provide a suitable environment for OSX down the road. The fact
that I develop almost exclusively in Java these days is what keeps me
from making a Mac my next computer.

On Sep 14, 5:47 pm, Jeff Larsen  wrote:
> Yea, 1.6 is required now. Good riddance to 1.5!

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



Re: NullPointerException in MethodPropertyContext

2011-09-15 Thread Thomas Broyer
I think it is (illegal).

You should make one sub-interface of AValueProxy per type of 
AGenericEntityProxy that you'd use for its T type parameter; remove the type 
parameter (making AValueProxy no longer generic), and using @ExtraTypes (GWT 
2.4 onwards) for polymorphism, listing the sub-interfaces you previously 
created.

It's probably possible to enhance RF to make this work, but for now I don't 
think RF is designed to handle such things.
See also, possibly 
related, http://code.google.com/p/google-web-toolkit/issues/detail?id=5974

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

2011-09-15 Thread Tiago Rinck Caveden
A little bit more information I've gathered with a debugger:

At a certain moment, TypeUtils.getParametrization is called with a type that
is a TypeVariable of value T. That method doesn't deal with such types, and
returns null.

The result of the request where this happens is a
List> where the entities are declared as such:

@ProxyFor(AnAbstractDomainEntity.class)
public interface AGenericEntityProxy extends EntityProxy {...}

@ProxyFor(AConcreteDomainEntity.class)
public interface AnEntityProxy extends AGenericEntityProxy {...}

@ProxyFor(ADomainClass.class)
public interface AValueProxy extends
ValueProxy {...}

In the server:

public class AnAbstractDomainEntity {...}

public class AConcreteDomainEntity extends AnAbstractDomainEntity {...}

public class ADomainClass {...}


When the TypeVariable T is given as type to TypeUtils.getParametrization,
the base parameter is the AGenericEntityProxy.class.

Is this generics construction I'm making illegal? Is there another way I can
implement a similar thing?

Thank you, and sorry for the annoyance.

On Thu, Sep 15, 2011 at 4:51 PM, Tiago Rinck Caveden wrote:

> Hello all,
>
> I'm having a NPE on MethodPropertyContext. The error message doesn't
> provide any additional information to help me understand what I'm doing
> wrong. By looking at the source code, it seems that the method traverse is
> indeed not protecting itself against a null value that may be the return of
> TypeUtils.parameterization. Take a look:
>
>   private void traverse(ParameterizationVisitor visitor, Type type) {
> Class base = TypeUtils.ensureBaseType(type);
> if (visitor.visitType(base)) {
>   Type[] params = TypeUtils.getParameterization(base, type);
>   for (Type t : params) {
> if (visitor.visitParameter()) {
>   traverse(visitor, t);
> }
> visitor.endVisitParameter();
>   }
> }
> visitor.endVisitType(base);
>   }
>
> The error is raised when the response of a particular request is treated.
> The request is particular because it receives a proxy which uses java
> generics in its declaration. It's the only case so far in my application.
>
> This is the GWT part of the stack trace:
>
> SEVERE: Unexpected error
> java.lang.NullPointerException
>  at
> com.google.web.bindery.autobean.vm.impl.MethodPropertyContext.traverse(MethodPropertyContext.java:102)
>  at
> com.google.web.bindery.autobean.vm.impl.MethodPropertyContext.accept(MethodPropertyContext.java:75)
>  at
> com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyCoderCreator.maybeCreateCoder(AutoBeanCodexImpl.java:353)
>  at
> com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$PropertyCoderCreator.visitReferenceProperty(AutoBeanCodexImpl.java:341)
>  at
> com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:295)
>  at
> com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
>  at
> com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
>  at
> com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl.doCoderFor(AutoBeanCodexImpl.java:521)
>  at
> com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:276)
>  at
> com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.setProperty(ProxyAutoBean.java:224)
>  at
> com.google.web.bindery.autobean.vm.impl.BeanPropertyContext.set(BeanPropertyContext.java:44)
>  at
> com.google.web.bindery.requestfactory.server.Resolver$1.visitValueProperty(Resolver.java:371)
>  at
> com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:260)
>  at
> com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
>  at
> com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
>  at
> com.google.web.bindery.requestfactory.server.Resolver.resolveClientProxy(Resolver.java:323)
>  at
> com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:418)
>  at
> com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:442)
>  at
> com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:196)
>  at
> com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:451)
>  at
> com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:217)
>  at
> com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:125)
>  at
> com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:118)
>
> Is this a GWT bug or am I doing something I shouldn't?
>
> Thank you,
> --
> Tiago Rinck Caveden
>
>


-- 
Tiago Rinck Caveden

-- 
You received this message because you are subscribed to the Google Groups 
"Goo

Re: EJB integration in GWT-jBoss-project

2011-09-15 Thread Norman Klingspor
correction:

STEP 4.) folder: WEB-INF/lib of course.

The error remains the same.

On 15 Sep., 17:24, Norman Klingspor 
wrote:
> Hello,
>
> I'm trying to establish a shop-system through gwt. In Ecplise running
> on jBoss 6.1.0.Final, GWT 2.4
>
> In my first approach I wanted to integrate my ejb-structures from the
> originial project. As a result I:
>
> 1.) created a .ejb project and integrated all classes relevant
> from my original project
> 2.) created a .gwt project, build first page, one button:
> establish database (which is implemented in my class ProductHome.java)
> 3.) adding an interface Product for ProductHome
> 4.) added my .ejb-project into my build-path, added the
> generated jar-file to the deployf-folder WEB-INF/classes by hand
> additionally
> 5.) build the Service DatabaseBuilderService (incl
> DatabaseBuilderServiceImpl and DatabaseBuilderServiceAsync)
> 6.) deployed the complete war-folder to jBoss into .gwt.war
>
> The page is build, and I can reach my side, pressing the button to
> start my function in .ejb CreateDefaultDatabase().
>
> In debug I reached the server-code-line, where the external function
> should be called.
>
> But in jBoss there still occurs this Error:
>
> 2011-09-15 17:17:26,324 ERROR [org.apache.catalina.core.ContainerBase.
> [jboss.web].[localhost].[/kylintv.gwt]] (http-127.0.0.1-8080-2)
> Exception while dispatching incoming RPC call:
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract boolean
> sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()'
> threw an unexpected exception: java.lang.NoClassDefFoundError: sung/
> app/kylintv/product/Product
>         at
> com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
> 385) [:]
>         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:754) [:
> 1.0.0.Final]
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:
> 1.0.0.Final]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 324) [:6.1.0.Final]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>         at
> org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:
> 67) [:6.1.0.Final]
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
> 274) [:6.1.0.Final]
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
> 242) [:6.1.0.Final]
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
> 275) [:6.1.0.Final]
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
> 161) [:6.1.0.Final]
>         at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
> 181) [:6.1.0.Final]
>         at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
>         at org.jboss.modcluster.catalina.CatalinaContext
> $RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
>         at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
> 88) [:6.1.0.Final]
>         at
> org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
> 100) [:6.1.0.Final]
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
> 159) [:6.1.0.Final]
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
> 102) [:6.1.0.Final]
>         at
> org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
> 158) [:6.1.0.Final]
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
> 109) [:6.1.0.Final]
>         at
> org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:
> 53) [:6.1.0.Final]
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
> 362) [:6.1.0.Final]
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
> 877) [:6.1.0.Final]
>         at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:654) [:
> 6.1.0.Final]
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 951) [:

EJB integration in GWT-jBoss-project

2011-09-15 Thread Norman Klingspor
Hello,

I'm trying to establish a shop-system through gwt. In Ecplise running
on jBoss 6.1.0.Final, GWT 2.4

In my first approach I wanted to integrate my ejb-structures from the
originial project. As a result I:

1.) created a .ejb project and integrated all classes relevant
from my original project
2.) created a .gwt project, build first page, one button:
establish database (which is implemented in my class ProductHome.java)
3.) adding an interface Product for ProductHome
4.) added my .ejb-project into my build-path, added the
generated jar-file to the deployf-folder WEB-INF/classes by hand
additionally
5.) build the Service DatabaseBuilderService (incl
DatabaseBuilderServiceImpl and DatabaseBuilderServiceAsync)
6.) deployed the complete war-folder to jBoss into .gwt.war

The page is build, and I can reach my side, pressing the button to
start my function in .ejb CreateDefaultDatabase().

In debug I reached the server-code-line, where the external function
should be called.

But in jBoss there still occurs this Error:

2011-09-15 17:17:26,324 ERROR [org.apache.catalina.core.ContainerBase.
[jboss.web].[localhost].[/kylintv.gwt]] (http-127.0.0.1-8080-2)
Exception while dispatching incoming RPC call:
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract boolean
sung.app.kylintv.gwt.client.DatabaseBuilderService.createDefaultDatabaseEntries()'
threw an unexpected exception: java.lang.NoClassDefFoundError: sung/
app/kylintv/product/Product
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385) [:]
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:754) [:
1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [:
1.0.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
324) [:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
242) [:6.1.0.Final]
at
org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:
67) [:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
274) [:6.1.0.Final]
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
242) [:6.1.0.Final]
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
275) [:6.1.0.Final]
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
161) [:6.1.0.Final]
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:
181) [:6.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext
$RequestListenerValve.event(CatalinaContext.java:285) [:1.1.0.Final]
at org.jboss.modcluster.catalina.CatalinaContext
$RequestListenerValve.invoke(CatalinaContext.java:261) [:1.1.0.Final]
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
88) [:6.1.0.Final]
at
org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:
100) [:6.1.0.Final]
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
159) [:6.1.0.Final]
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102) [:6.1.0.Final]
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:
158) [:6.1.0.Final]
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109) [:6.1.0.Final]
at
org.jboss.web.tomcat.service.request.ActiveRequestResponseCacheValve.invoke(ActiveRequestResponseCacheValve.java:
53) [:6.1.0.Final]
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
362) [:6.1.0.Final]
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
877) [:6.1.0.Final]
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:654) [:
6.1.0.Final]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
951) [:6.1.0.Final]
at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]
Caused by: java.lang.NoClassDefFoundError: sung/app/kylintv/product/
Product
at
sung.app.kylintv.gwt.server.DatabaseBuilderServiceImpl.createDefaultDatabaseEntries(DatabaseBuilderServiceImpl.java:
24) [:]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 

Questions about GWT suitability

2011-09-15 Thread Rakesh
Hi,

knowing very little about GWT apart from the main headlines, I am
considering using it for my upcoming projects.

Others are criticizing this choice on 2 main points:

1. The application is not rich enough - the app is a shop where products are
added to a basket and user details and payment details are captured.
2. Customizing the UI to the business requirements may not be possible. Does
GWT constrain in any way how you style components?

Thanks

R

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



IE8 CellTable Events

2011-09-15 Thread BilisJoe
Hi, this is my first time posting, so I'm sorry if I'm not asking for
help in a proper way.
I've created a CellTable with a column that looks like this:

Column name = new
Column(new ClickableTextCell()) {
@Override
public String getValue(Object object) {
return object.getName();
}

@Override
public void onBrowserEvent(Context context, Element elem, 
Object
object, NativeEvent event) {
if(event.getButton() == NativeEvent.BUTTON_LEFT){
Window.open(sistemaInformacionUi.getURL(), 
"_blank", "");
}
}
};
So when you click over a cell in this column the browser opens a new
window with the URL.
It works OK in FF and Chrome, but it doesn't work for IE8. I've tried
debbuging and the DOM class doesn't catch
the click event, so it never sends the event to the CellTable and this
one neither to the ClickableTextCell.
Anyone could help me?? 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.



Dynamic Mapping Of Click Events to Touch Event

2011-09-15 Thread Vijay Sarin
Hi,

I am working on a Project in which i have to make my website optimized for 
iPad and Android Tablets. So in case of click events, when we do some click, 
it takes 300ms delay which i calculated, for the click to complete. So is 
there any option to fix this possibly by mapping all click events to touch 
events without changing the entire code. I have problem editing the code 
because this is a huge enterprise project. So optimization in MVP here is a 
difficult and tedious task. Can anyone here help me?

Thanks

*VIJAY SARIN*

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



I want to Access External .js file in My GWT Application How can i achieve it??

2011-09-15 Thread Nagendrasinh Rathod

I want to Access External .js file which contains some function in My
GWT Application How can I achieve it??

How can I access javascript function written in external .js file can
you plz. help with some example.


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.



getting colors

2011-09-15 Thread mallikarjun....@gmail.com
Hi i need to get the colors from out side and i need to apply for my
app. Could u please let me know if any body knows.


Thanks and Regards 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.



RequestFactory with complex client parameters

2011-09-15 Thread albertoknox
I´m using GWT RequestFactory and want to transport client-side
parameters in a service. The parameters should be created on the
client, because they aren´t part of the domain model and won´t be
stored in the database. Unfortunately I found no way to do this,
because only xxxProxy objects can be used as parameters and they can
only be created on the server.

My concrete example:

I want to download tasks from a server and want to send a filter
object with the request as parameter, which specifies the task objects
to be loaded.

Thanks for your help!

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



Installation not done properly

2011-09-15 Thread samir v
When i installed GWT toolkit in eclipse(preferences->install New
Software->available softwares) i got the following error.

Cannot complete the install because one or more required items could
not be found.
  Software being installed: Google App Engine Tools for Android
2.4.0.r36v201108301710
(com.google.gdt.eclipse.mobile.android.feature.feature.group
2.4.0.r36v201108301710)
  Missing requirement: Android Cloud Tooling 2.4.0.r36v201108301710
(com.google.gdt.eclipse.mobile.android 2.4.0.r36v201108301710)
requires 'bundle com.android.ide.eclipse.adt 12.0.0' but it could not
be found
  Cannot satisfy dependency:
From: Google App Engine Tools for Android 2.4.0.r36v201108301710
(com.google.gdt.eclipse.mobile.android.feature.feature.group
2.4.0.r36v201108301710)
To: com.google.gdt.eclipse.mobile.android [2.4.0.r36v201108301710]

Please tell me what to do with 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: Securing only part of the App

2011-09-15 Thread Thomas Broyer
You could have 2 instance of RequestFactoryServlet: one "open", the other 
requiring authentication. On the client-side, use a RequestTransport to set 
the URL of the one servlet you want to use.
And in each and every service, check if the user is logged in (so that even 
if the service is accessed through the "open" end point, a user couldn't 
access unauthorized data).
The only difference between the two instances would be the way this is 
communicated to the client (so that it can be handled accordingly): with 
then "open" endpoint, onFailure of your Receiver would be called with the 
exception thrown by your service, whereas with the "secured" endpoint, the 
filter would send a specific response that the RequestTransport would 
handle.

Of course, you could even have a single, "open" endpoint, if you don't need 
the specific handling of lack of authentication (request blocked by a 
servlet filter, response handled in a RequestTransport; as in the Expenses 
sample).

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/oatg-6r-c-gJ.
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: HOWTO handle right click on CellTable Header ?

2011-09-15 Thread Thomas Broyer
Where is this sinkEvents from?

class SafeHtmlCellWithContextMenu extends SafeHtmlCell {
  public Set getConsumedEvents() { return 
Collections.singleton("contextmenu"); }

  public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml 
value, NativeEvent event, ValueUpdater valueUpdater) {
// here, event.getType() should be "contextmenu"
  }
}

Then use with: new Header(new SafeHtmlCellWithContextMenu());

(best IMO would be to turn the above into a generic Cell that can wrap any 
other Cell, delegating everything to the wrapped cell, except for 
getConsumedEvents to add "contextmenu" to the list, and onBrowserEvent to 
handle the "contextmenu")

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

2011-09-15 Thread Maiku
Hi,

If you are not totally tied to JAXB you may want to check out JIBX. I
was successfully using the beans that it creates on both Server side
and Client side.  The way it marshals is by injecting information into
the bytecode and this seems to allow GWT to still recognize the source
of the beans as being the same as the compiled server object.

I have since refactored to use RequestFactory so that this entire
issue is moot but if you cannot then I highly recommend JIBX.

- Mike

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



TinyMCE GWT UIBinder finally displayed correctly, but colorpicker's colors and font-dropdown-menu's fonts are not clickable

2011-09-15 Thread Maxim Schäfner
Hello,

I'm still searching for a maybe better solution for implementing of
TinyMCE in GWT UiBinder (as other discussion created by me). Now I
managed somehow through deferredCommand to get my TinyMCE in an div
from uibinder-composite, and the whole configuring and so on of that
editor works. And as I thought that I finally made it, because
operations like "bold" or "italic" worked, suddenly I saw when I
wanted to change the font/fontsize oder textcolor...the operations
showed me per dropdownlists and colortables that I could change the
text in the editor, but when I click on one of that entries, nothing
happens/is applied...and I don't know why. When I do the same
procedure in my index.jsp in the html body-tag in a div too, inserted
TinyMCE, then it is possible to click on the entries in this other
TinyMCE instance. I have already tried everything, but I'm still not
able to click on that entries in my TinyMCE which was placed on a div
in an uibinder composite. I would be grateful if someone could give a
hint or something. Thank you.

Regards,
Maxim

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Aw: Code splitting for activities

2011-09-15 Thread Craig Greenhalgh

Has anyone got an example of how to use this in 2.4 ?

Thanks again

Craig


On 31/08/11 10:11, Craig Greenhalgh wrote:

Ok thanks guys,

I'll wait for 2.4

Cheers

Craig

On 31/08/11 10:04, Jens wrote:
The used AsyncProvider from GIN will be integrated in GWT 2.4 (see: 
http://code.google.com/p/google-web-toolkit/source/browse/releases/2.4/user/src/com/google/gwt/core/client/AsyncProvider.java). 
So if you do not depend on GIN you should wait for GWT 2.4. If you 
can't wait you can try and rewrite the code to use your DI framework 
or to use GWT.runAsync directly.


As Thomas said your code example is pretty dangerous. In Dev mode 
GWT.runAsync acts synchronously so it may work during development. 
But when you compile your app you will return null the first time you 
request an activity. Just imagine onSuccess will be executed after 
getActivity() has finished.


-- J.
--
You received this message because you are subscribed to the Google 
Groups "Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xySMboZIpiEJ.
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 how do I customize my splitLayoutPanel slider bars with buttons?

2011-09-15 Thread geert3
afaik the slider bar is not customizable so you either have to draw 
everything yourselves, or add your buttons somewhere else. You may be able 
to place div's on top of the scrollbar but it will be ugly and likely not 
cross-browser compatible.
Drawing the scrollbar yourselves is a lot of work but not impossible. For 
instance you take a ScrollPanel and set overflow=hidden, then draw your own 
little scrollbar in a bordering panel (e.g. one div and play with 
margin-top/margin-bottom and background-color to make it appear like a 
scrollbar), attach mouse events to detect drag etc. You can programmatically 
setVerticalScrollPosition on the ScrollPanel to make it slide to the desired 
position.

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

2011-09-15 Thread Fábio Marigo
In dev mode also occurs. The following web.xml:


http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>
Salto Bandeirantes - GWT
Salto Bandeirantes - GWT



DB Connection
jdbc/salto
javax.sql.DataSource
Container




contextConfigLocation

classpath*:META-INF/*-context.xml
classpath*:META-INF/datasource.xml



org.springframework.web.context.ContextLoaderListener



60



index.html



gwt-log-remote-logger-servlet
com.allen_sauer.gwt.log.server.RemoteLoggerServiceImpl



gwt-log-remote-logger-servlet
/gwt-log



preco-diaria-export-xml


br.com.insula.saltobandeirantes.servlets.ExportarPrecoDiariaHotelXMLServlet


preco-diaria-export-xml
/preco-diaria




RelatorioReceitaGeralServlet


br.com.insula.saltobandeirantes.report.RelatorioReceitaGeralServlet


RelatorioReceitaGeralServlet
/relatorioReceitaGeralServlet








On 7 set, 10:12, Alexandre Dupriez 
wrote:
> Hello Fabio.
>
> Do you achieve to get the application running in dev mode?
> Could you please provide us with the content of your WEB-INF\web.xml
> file?
>
> Regards,
> A.
>
> On 6 sep, 15:12, Fábio Marigo  wrote:
>
>
>
>
>
>
>
> > Could someone help me with the error below? I am having trouble trying
> > to compile the GWT module.
>
> > [INFO] Module file: C:\Desenvolvimento\eclipse\workspace\SLT\project-
> > gwt\src\main\resources\br\com\project\Main.gwt.xml
> >    Unable to parse module
> > java.net.MalformedURLException
> >         at java.net.URL.(URL.java:601)
> >         at java.net.URL.(URL.java:464)
> >         at java.net.URL.(URL.java:413)
> >         at
> > com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity 
> > (XMLEntityManager.java:
> > 650)
> >         at
> > com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVers 
> > ion(XMLVersionDetector.java:
> > 186)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co 
> > nfiguration.java:
> > 772)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Co 
> > nfiguration.java:
> > 737)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:
> > 119)
> >         at
> > com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Abstract 
> > SAXParser.java:
> > 1205)
> >         at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl
> > $JAXPSAXParser.parse(SAXParserImpl.java:522)
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:489)
> >         at org.jdom.input.SAXBuilder.build(SAXBuilder.java:807)
> >         at
> > com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto 
> > rs(GwtWebInfProcessor.java:
> > 151)
> >         at
> > com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.getGwtServletDescripto 
> > rs(GwtWebInfProcessor.java:
> > 168)
> >         at
> > com.totsp.mavenplugin.gwt.support.GwtWebInfProcessor.(GwtWebInfProces 
> > sor.java:
> > 106)
> >         at
> > com.totsp.mavenplugin.gwt.MergeWebXmlMojo.execute(MergeWebXmlMojo.java:
> > 91)
> >         at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildP 
> > luginManager.java:
> > 107)
> >         at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 209)
> >         at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 153)
> >         at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:
> > 145)
> >         at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif 
> > ecycleModuleBuilder.java:
> > 84)
> >         at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif 
> > ecycleModuleBuilder.java:
> > 59)
> >         at
> > org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li 
> > fecycleStarter.java:
> > 183)
> >         at
> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart 
> > er.java:
> > 161)
> >         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> >         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> >         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:534)

Securing only part of the App

2011-09-15 Thread msanztru
Hello,

I have been struggling all day with an issue. I am sure there must be some 
easy solution that lots have already implemented as it looks to me as a 
basic setup.

I am building an app with GWT and appengine using requestfactory. This app 
has some "pages" (they are actually MVP views) that everybody should have 
access to. It's like the home page and a couple of views where the service 
we provide is described. Then if you want to use the service you have to 
login (with google accounts and all that). Only being logged in you have 
access to the rest of the views (pages) in the app. The question is, how to 
handle this?, the fact that some pages and some requestfactory calls are 
public and some other have to be available to those that have logged in?

I have already discarded the auth-constraints tags in web.xml because they 
work with all or nothing.

The next alternative was to use servlet filters (as the expenses demo does). 
That could work, but only if the "open" or not secured pages didn't need to 
access any data from appengine datastore (and I don't want to close that 
door, maybe in the future I want to show status or number of users, etc 
etc). The reason for this is that with request factory you only have one 
servlet so if you put a filter you shut down all comunication with appengine 
if the user is not logged in.

I was thinking of implementing this filter, with requesfactory for all the 
stuff once the user is logged in and also implement some RPC services for 
the data i might want to display in the "home or information pages" that i 
might need to retrieve from the datastore. However it looks a bit overkill 
for me.

Anyone had the same problem? any ideas?

I'd appreciate any help on this.

Thanks,

Miguel

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/GmdSq5FlyckJ.
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: is it possible to integrate PersistentUnit annotations in RequestFactoryServlet?

2011-09-15 Thread Jens
You can use guice with 
RequestFactory: 
http://wanderingcanadian.posterous.com/guiced-up-gwt-requestfactory

-- J.

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

2011-09-15 Thread Alexandre Dupriez
The point is that GWT compiler will not understand the "dragstart"
string in your addHandler(.) method, and let it untouched. Once your
unit will be compiled, the Javascript piece of code you wrote will
refer to an in-existing method, since the actual dragstart() method
will be given another binding name by GWT (eventually obfuscated).

Alexandre

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: HOWTO handle right click on CellTable Header ?

2011-09-15 Thread Christophe
I was on this, but it appears I never enter in my test. When I right-
clik on the header, it opens the standard browser context-menu.
Below my code :

private class RightClickableHeader extends SafeHtmlHeader {
public RightClickableHeader(SafeHtml headerHtml, String
columnId, String datatype) {
super(headerHtml);
sinkEvents(Event.ONMOUSEDOWN | Event.ONMOUSEUP |
Event.ONCONTEXTMENU);
}
@Override
public void onBrowserEvent(Context context, Element elem,
final NativeEvent event) {
if((event.getButton() & NativeEvent.BUTTON_RIGHT) >0) {
Window.alert("Right click!");
} else {
super.onBrowserEvent(context, elem, event);
}
}
}


On 15 sep, 12:58, Jeff Larsen  wrote:
> if contextmenu isn't sunk by all browsers ( I haven't tested EVERYWHERE, but
> it does where chrome, ie8, 9, firefox) you can always grab the native event,
> check for the click event then nativeEvent.getButton() ==
> NativeEvent.BUTTON_RIGHT

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Plug-in for Eclipse 3.7 (Indigo)

2011-09-15 Thread gwtomni gwtomni
hello,

  try to use https instead of http.

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

2011-09-15 Thread Alexandre Dupriez
If your Javascript is not too long, you can use JSNI. Just declare a
native method like

void native foo() /*-{
 Put here you Javascript
}-*/;

and call the foo() method like any other else.

Alexandre.

On 15 sep, 01:20, Diego Piedrahita  wrote:
> I have a JavaScript file and want to include GWT, someone has idea?.
> The JavaScript I want to apply for a textArea to format the text
> entered into the.
> Thank you.

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



Re: How to create image sprits

2011-09-15 Thread Alexandre Dupriez
You can use the ClientBundle interface. Create an interface which
extends ClientBundle and declare you image resources in it. Here is a
piece of code:

public interface AppResources extends ClientBundle {

  @Source("image/frame.gif")
  ImageResource frame();
}

Note that the path you provide in the @Source annotation is relative
to the AppResources interface.

Alexandre.

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

2011-09-15 Thread Jake Wharton
That indeed did work. Thank you.

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



Re: File download by GWT client

2011-09-15 Thread Derek
Yes, FileSystem and FileWriter are HTML5 Javascript APIs that are
available to browsers that support them.

And yes, with JSNI. Overlays are described here:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html

For example, the FileSystem object described at
http://dev.w3.org/2009/dap/file-system/pub/FileSystem/#the-filesystem-interface
would have an overlay like:

public final class FileSystem extends JavaScriptObject {
protected FileSystem() {
}
public native String getName()/*-{
return this.name;
}-*/;
public native DirectoryEntry getRoot()/*-{
return this.root;
}-*/;
}


On Sep 14, 1:59 pm, Marcin Olejarczyk
 wrote:
> Thank for you answer. I am quite a new in Web technologies.
>
> When you mention about FileSystem, FileWriter for HTML5 do you mean
> JavaScript API available to use in web browser?
> How have you created your own overlay types for the FileSystem /
> FileWriter objects - Did you use JSNI for that?
>
> On 14 Wrz, 16:59, Derek  wrote:
>
>
>
>
>
>
>
> > Modern HTML5 should allow something along those lines, but browser
> > support is going to be pretty hit or miss. I haven't tried exactly
> > what you describe, but you should check out FileSystem, FileWriter,
> > and blob support (http://www.html5rocks.com/en/tutorials/file/
> > filesystem/). In Chrome at least, you can create a file in a temporary
> > space, write text to it, and expose that as a filesystem: URL for the
> > user to click to download.
>
> > None of that is reflected in GWT currently. I created overlay types
> > for the few FileSystem / FileWriter objects I needed on the project
> > I'm working on, and you could do similarly. Or you could just sling
> > some JSNI.
>
> > Hope that helps,
> > Derek
>
> > On Sep 14, 8:28 am, Marcin Olejarczyk
>
> >  wrote:
> > > Hi,
>
> > > Is there any possibility to generate *.txt file and give the user the
> > > opportunity to download this file locally by typical download web
> > > browser window only by executing GWT client code without any
> > > involvement on the server side.
>
> > > Shortly: Click the button, generate file on open download window only
> > > by the client side.
>
> > > Thx for any help
>
> > > /Marcin

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-15 Thread Brad Leupen
*"my proxies AND request factories are organized into multiple
projects" i meant to say

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 create meta with @template?

2011-09-15 Thread Thomas Broyer
Google bot won't execute your JS, so injecting a  from JS is useless. 
That's totally independent from GWT.

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

2011-09-15 Thread Alexandre Dupriez
The purpose of this method is to bind the structured widget you build
within your Composite widget with the underlying widget hold by the
composite. This pattern allows you to customize your Composite with
any subclass A of Widget without exposing the methods of A.

For instance, suppose you want to make a widget which inherits the
behavior of a Button object. Though you want to create a widget which
benefit from the features implemented in the Button class, you do not
want to expose the Button method to the client of your Composite class
(because you want to hide the implementation for instance). Using the
composite object, your Button object is encapsulated and hidden to the
client while you composite object benefits from its features.

This principle admitted, initWidget() method has to be called once
since it defines the underlying nature of your Composite component,
which must not change over the life time of your object (because the
nature of your Composite object is intrasically bound to its
underlying widget).

I guess GWT forbids to call initWidget() more than once so as to avoid
to break this contract.

Alexandre.

On 15 sep, 15:15, wahaha  wrote:
> the class Composite has a protected method initWidget().
>
> the javadoc says:
> This method may only be called once for a given composite.
> why?

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

2011-09-15 Thread Thomas Broyer
How about providing your own Historian (extending DefaultHistorian) to 
PlaceHistoryHandler and track changes in the Historian's newItem method 
(after delegating to super.newItem so that the token is updated)?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/K-IBpDH0G7EJ.
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 2.4 Validation Tool not picking up @ExtraTypes on superclasses

2011-09-15 Thread Brad Leupen
Thanks for all of the replies. I have had some time to dig into this a
little more. Long story short, the ValidationTool finds inherited
@ExtraTypes when run on its own from the command line but does not
when run as an automated annotation processor. I think it might have
something to do with the fact that my proxies are request factories
are organized into multiple projects, like so:

core-components-project:
   com/acme/components/core/
   Core.gwt.xml
   client/
  ComponentRequestFactory.java
  ComponentServiceRequest.java
   shared/
  ComponentProxy.java
   server/
  Component.java
  ComponentService.java

   com/acme/components/foocomponents/
   Foo.gwt.xml
   client/
  FooRequestFactory.java (extends
ComponentRequestFactory, has @ExtraType annotation declaring
FooComponentProxy.class)
   shared/
  FooComponentProxy.java (extends
ComponentProxy)
   server/
  FooComponent.java (extends Component)

   com/acme/components/barcomponents/
   Bar.gwt.xml
   client/
  BarRequestFactory.java (extends
ComponentRequestFactory, has @ExtraType annotation declaring
BarComponentProxy.class)
   shared/
  BarComponentProxy.java (extends
ComponentProxy)
   server/
  BarComponent.java (extends Component)


Product A-project: (includes core components project on eclipse build
path)
   com/acme/producta/
ProductA.gwt.xml
client/
   ProductARequestFactory.java (extends FooRequestFactory
and BarRequestFactory, @ExtraType for ProductAComponentProxy.class)
shared/
   ProductAComponentProxy.java (extends ComponentProxy)
server/
   ProductAComponent.java (extends Component)

I have methods in com.acme.components.core.ComponentService that
operate on Component objects and are expected to return the
appropriate polymorphic subclasses of ComponentProxy.

>From the command line, the validation tool compiles a
ProductARequestFactoryObfuscatorBuilder with ComponentProxy,
FooComponentProxy, and BarComponentProxy, and ProductAComponentProxy.
When run as an annotation processor, I just get ProductAComponentProxy
and ComponentProxy.

Does this make any sense?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 and jQuery.width()/bind()

2011-09-15 Thread Darnok
Yes, I've tried, and getting the same issues with gwtQuery.

On Sep 15, 10:34 am, Jeff Larsen  wrote:
> Have you looked at gwtQuery? That could probably solve your problems. It is
> a gwt port of JQuery

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 create meta with @template?

2011-09-15 Thread Luke
ya. it's for google bot to crawl. is gwt2.4 cant use this tag anymore?

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



PlaceHistoryHandler and Analytics

2011-09-15 Thread Jake Wharton
I'm trying to implement analytics tracking in our Place-based GWT 2.2 webapp 
and finding some trouble listening to History's ValueChangeEvent. The events 
seem to not be firing as a result of the false argument on this 
line
.

I have tried adding the listener both to the History class directly and in a 
PlaceHistoryHandler.History implementation but neither seem to be receiving 
callbacks. Using the PlaceChangeEvent is also unsatisfactory because it is 
fired before the token is updated.

Is there another method I should be using track history to fire analytics 
tracking?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XkdyGo989BkJ.
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 Request: How do I open a new browser window, run part of the GWT application there, and communicate with it

2011-09-15 Thread Derek
I once had to do something vaguely similar. I needed to open a GWT app
in a window from a non-GWT app. I called var win =
window.open("GwtHtmlPage.html") and then set the data the GWT app
needed with win.blah = 3 or whatever. Then my GWT app used some JSNI
to fetch that value.

The problem as Robert metioned is that GWT doesn't really want you
doing inter-window communication. So you have to sling your own JSNI.

Derek

On Sep 14, 12:34 pm, Néstor Boscán  wrote:
> Hi
>
> I have a strange request. I have an application that needs to run on an
> iframe as part of another application. This application needs to open  popup
> browser windows to show additional information, for example a celltable with
> a list. How do I use GWT to run on the new popup browser window and send it
> data?
>
> Regards,
>
> Néstor Boscán

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



about Composite's initWidget() method

2011-09-15 Thread wahaha
the class Composite has a protected method initWidget().

the javadoc says:
This method may only be called once for a given composite.
why?

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Data duplication during serialization

2011-09-15 Thread Thomas Broyer
Have a look at 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/HashMap_CustomFieldSerializer.java
 (and 
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/rpc/core/java/util/Map_CustomFieldSerializerBase.java,
 
where all the logic is) for how maps are serialized in GWT-RPC.

GWT won't "deserialize fields twice", it's just that, to deserialize a 
HashMap, it creates an empty one and then populates it. This doesn't play 
well with the fact that your customized HashMap fills a field from the put() 
methods, field that is de/serialized independently from the map itself.

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

2011-09-15 Thread Maverick
Thank to both of you for your quick reply.

The CustomMap implementation posted here is just a small test case
that reproduces the problem, so I'm aware there are a lot of things
missing. Although, for the use we are using, duplicating a key due to
multiple put() is acceptable.

The solution of making the list transient easily solves the problem
without having to change the implementation.

However, I still don't understand why using put() for deserialization
was necessary; isn't it a slowdown to deserialize fields twice? What
problems can emerge otherwise? (I ask this to improve my knowledge on
GWT)

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.



is it possible to integrate PersistentUnit annotations in RequestFactoryServlet?

2011-09-15 Thread Elhanan
so far rpc's give me the jee standard of DI injection, but 
RequestFactoryServlet is closed, so i can't really place anything.

and i can't use GIN,guice or spring..

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

2011-09-15 Thread helios
Quick hack but hope it helps (replace YOURMODULEID):

GWT (at least 2.0.x) uses document.write in two parts:

1) for inserting the marker scipt tag and
2) for inserting a callonInjectionDone...

So if you do the (1) using document.appendChild it find the correct tag:

var marker = document.createElement('script');
marker.id = '__gwt_marker_YOURMODULEID';
document.appendChild(marker);

var script = document.createElement('script');
// this is the script with nocache.js
document.insertBefore(script, marker);

// then when it runs it uses write to insert the marker, it fails, but anyway 
it 
founds it where it should be.

Problem (2)

you must call

  your_module_id.onInjectionDone('your.module.id');

in order to initialize the module.
You can hook this call into scriptTag.onload event. But it doesn't work in IE8 
at least. I guess you could use onreadystatechange but I'm trying yet. Good 
luck. Another option is trying every x miliseconds and call it once the 
"onInjectionDone" method is defined (or all the methods that should be there).

To inspect the bootstrap script (nocache.js) compile with style=PRETTY option!

Good luck!

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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 Request: How do I open a new browser window, run part of the GWT application there, and communicate with it

2011-09-15 Thread Robert W
Within jsni you can open new windows by window.open and there you have 
reference to new window. In the opened win you have samething like 
parentWindow (with my distant memory). Gwt not have rather inter-window 
communications methods.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iSXpSThy4l8J.
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 CELLTABLE SimplePager : Event handling on first,last,next,prev button present in SimplePager?

2011-09-15 Thread vaibhav gwt
How to determine which button is clicked by user ?
Is there any way to find out NEXT,PREV,LAST & FIRST button clicked ?

On Aug 6, 7:49 pm, Patrick Tucker  wrote:
> Look at range change.
>
> On Aug 5, 6:31 am, vaibhav bhalke  wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > How to handle event on SimplePager? Event handling on first,last,next,prev
> > button present in SimplePager? I am using CellTable gwt 2.3.0
>
> > Right now I am parsing xml in which 100 records are present. xml coming from
> > server.
>
> > @ time I am showing 100 reocrd per table_page i.e pageSize(100);
>
> > Whenever I will click next button then I will made server request for
> > getting next 1OO records same way for every button..
>
> > How to Handle event on buttons present on  SimplePager ?
>
> > Any help or guidance in this matter would be appreciated
>
> > --
> > Best Regards,
> > Vaibhav Bhalke
>
> > 

-- 
You received this message because you are subscribed to the Google Groups 
"Google 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: Data duplication during serialization

2011-09-15 Thread Paul Robinson

Your implementation doesn't handle the case where adding a value to the map 
overwrites an existing entry. In that case, you shouldn't add a new entry to 
your list of keys, but replace one of them.

When the map is transferred over RPC, the key list is sent with the data. When 
RPC reconstitutes the map, it adds key,value pairs one at a time. Unforunately, 
since you start with a non-empty list of keys, as it rebuilds the map and calls 
put(K,V), it will add a new key each time.

Even if your implementation overcame the above problem, RPC will still send the 
keys twice over the wire - once embedded in the map, and once in your list of 
keys. So if you really want an implementation like this, you ought to write 
your own custom field serializer to make the on-the-wire format more efficient. 
You would also be able to control the way the map was reconstituted from its 
parts.

OTOH, If you can do without your get(int) method, you could just use a 
LinkedHashMap instead. It remembers insertion order.


Paul

On 15/09/11 11:23, Maverick wrote:

I'm having a strange behavior (at least, something that I don't
understand) during derialization/deserialization, which causes values
to be duplicated to a List.

I have a custom Map that basically adds key order preserving through
an ArrayList. Each time a key/value pair is put into the map, the key
is also added to an ArrayList. When a class instance is passed through
a RPC the map is serialized correctly (or at least the data is the
same before and after); but the list seems to be deserialized twice
and two copies of the keys exist after.

In the code below, I instantiate the CustomMap and add the key "10"; I
expect to have one key received on the server and one key sent back to
the client. However, the output is the following:
Before sending: [10]
On server: [10, 10]
Received back: [10, 10, 10]

Am I missing some GWT programming principle?
How could I implement such feature without suffering that problem?

Thanks

Here the code:

/* The custom map; to every put, the key is also added to the list.
*/
public class CustomMap  extends HashMap  implements
Serializable, IsSerializable
{
private static final long   serialVersionUID= 
-1780691944208423396L;

ArrayList  list= 
new ArrayList();

public CustomMap()
{

}

@Override
public V put( K key, V value )
{
return put( key, value, this.list.size() );
}

public V put( K key, V value, int index )
{
this.list.add( index, key );
return super.put( key, value );
}

public V get( int n )
{
return get( key( n ) );
}

public int indexOf( K key )
{
return this.list.indexOf( key );
}

public K key( int n )
{
return this.list.get( n );
}

public ArrayList  getData()
{
return this.list;
}
}


/* The RPC call; just send a CustomMap forth and back
*/
public void onModuleLoad()
{
CustomMap  map = new CustomMap();

map.put( new Long( 10 ), "a value" );

System.out.println( "Before sending: " + map.getData() );

service.transfer( map, new AsyncCallback>(){

@Override
public void onSuccess( CustomMap  result )
{
System.out.println( "Received back: " + 
result.getData() );
}

@Override
public void onFailure( Throwable caught ) {}
} );
}

/* Server-side code, for completeness
*/

public CustomMap  transfer( CustomMap
map )
{
System.out.println( "On server: " + map.getData() );

return map;
}



--
You received this message because you are subscribed to the Google Groups "Google 
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: Data duplication during serialization

2011-09-15 Thread Thomas Broyer
I think GWT-RPC uses the CustomSerializer for the HashMap (which calls put() 
for each key/value pair) in addition to deserializing the ArrayList. The 
custom-serializer will then call your put() methods which will add to the 
list.
Marking the ArrayList 'transient' or @GwtTransient should be enough to fix 
it (the list won't be serialized, but instead rebuilt by the put() calls 
when the object is deserialized). You could also wrap a HashMap instead of 
extending hashMap.

BTW, your code is lively buggy, as you unconditionnally add to the list, 
without ever checking whether it already contains an entry for the key (i.e. 
put("a", "b"); put("a", "c"); will give you ["a", "a"] in getData(), whereas 
the Map only contains a single entry, for key "a")

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

2011-09-15 Thread Jeff Larsen
if contextmenu isn't sunk by all browsers ( I haven't tested EVERYWHERE, but 
it does where chrome, ie8, 9, firefox) you can always grab the native event, 
check for the click event then nativeEvent.getButton() == 
NativeEvent.BUTTON_RIGHT

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/wTLbZHOC9DsJ.
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 do I add general Button or Label widget into CellTable ?

2011-09-15 Thread Jeff Larsen
Short answer is no.

Long answer is yes, but it will take you far more time to implement than you 
want. 

If you wanted to use similar implementations, you could change your button 
implementation to work with ButtonBase from the com.google.gwt.*widget*.client 
package. 

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

2011-09-15 Thread Thomas Broyer
Put a breakpoint in 
com.google.web.bindery.requestfactory.server.DefaultExceptionHandler, or 
provide your own ExceptionHandler to the RequestFactoryServlet to log the 
exceptions (with their stacktrace).

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

2011-09-15 Thread Thomas Broyer
Not tested but you should be able to do that by providing a Cell to the 
header that listens to the "contextmenu" event (and possibly the "click" 
event, you'd have to try on each browser), so that its onBrowserEvent will 
be called back when such an event is fired on the header's cell.
In other words, you have to do it at the Cell level (but it's relatively 
easy to wrap any Cell into one that additionally listens to and handles 
"contextmenu" events)

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

2011-09-15 Thread Thomas Broyer
Technically, when you append() a RequestContext, you make it share the same 
internal state as the one you append to (and that's why you cannot append a 
RequestContext where you already create()d or edit()ed proxies, or invoked 
methods); so the order of invocations will be the exact order you made them 
in your code, whichever the RequestContext you used.
So, this is "guaranteed in practice", but I can't tell if this is 
"officially" guaranteed "by the API".

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

2011-09-15 Thread Thomas Broyer


On Wednesday, September 14, 2011 6:57:42 PM UTC+2, Jésica wrote:
>
> Hi, I'm facing problems for calling a native method from another. i'm 
> trying to do It like this: 
>
> //JSNI code 
> public native void dragStart()/*-{ 
>  alert("OnDragStart"); 
> }-*/; 
>
> public native void addPushpin()/*-{ 
> (...) 
> blah.Events.addHandler(pin, 'dragstart', dragStart);
>

This should work:

var that = this;
blah.Events.addHandler(pin, 'dragstart', $entry(function() {
   th...@path.to.YourClass::dragStart()();
}));

($entry() is so that exceptions throw by the wrapped function, thus by your 
dragStart method, which the wrapped function calls, will go through 
GWT.UncaughtExceptionHandler; it also ensures Scheduler#scheduleEntry and 
Scheduler#scheduleFinally commands will be run around that call back to Java 
code)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3_yCx0A8wyUJ.
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 2.4 RequestFactory Exception when receiving data from BackEnd

2011-09-15 Thread POODevelopper
I executed a JUnit Test on the services and there was no null pointer
Exception.
Also there is no constraint validation on the Entity. How can I make
the exception message more clear ??

Below the Code of the entity :

@Document(collection="transactions")
public class Transaction implements Serializable {

private static final long serialVersionUID = 4999532858364711856L;

@Id private ObjectId id;

@SuppressWarnings("unused")
private String strId;

@Indexed private ObjectId accountId;
@Indexed private ObjectId destTransactionId;
private String type;
private Date date;
private Double amount;
private String payee;
private String tags;

public Transaction() {
date = new Date();
}

public Transaction(String type, Date date, Double amount, String
payee) {
super();
this.type = type;
this.date = date;
this.amount = amount;
this.payee = payee;
}

public ObjectId getId() {
return id;
}

public void setId(ObjectId id) {
this.id = id;
}

public ObjectId getAccountId() {
return accountId;
}

public void setAccountId(ObjectId accountId) {
this.accountId = accountId;
}

public ObjectId getDestTransactionId() {
return destTransactionId;
}

public void setDestTransactionId(ObjectId destTransactionId) {
this.destTransactionId = destTransactionId;
}

public String getType() {
return type;
}

public void setType(String type) {
this.type = type;
}

public Date getDate() {
return date;
}

public void setDate(Date date) {
this.date = date;
}

public Double getAmount() {
return amount;
}

public void setAmount(Double amount) {
this.amount = amount;
}

public String getPayee() {
return payee;
}

public void setPayee(String payee) {
this.payee = payee;
}

public String getTags() {
return tags;
}

public void setTags(String tags) {
this.tags = tags;
}

public List getSplitedTags() {
List tagsList = null;
if(tags != null)
tagsList = Arrays.asList(tags.split(" "));

return tagsList == null ? new ArrayList() : tagsList;
}

public String getStrId() {
return getId().toStringMongod();
}

public void setStrId(String strId) {
this.strId = strId;
}
}

On Sep 15, 8:02 am, Ashwin Desikan  wrote:
> Have u tried to override the onFailure and onviolation methods in ur 
> Receiver? They give you better clarity on the error?
>
> Do u any constraints/ validation on the entity? If they are not met your 
> request would fail
>
> Thanks
> Ashwin
>
> Sent from my iPhone
>
> On Sep 15, 2011, at 1:24 PM, POODevelopper  wrote:
>
>
>
>
>
>
>
> > Finally RequestFactory work with Spring back end, but I have another
> > issue : Is that i receive an exception on client when he process the
> > data, the server service is call but I get this exception on client.
>
> > Everything is set up correctly the Proxy Value Object, the Request
> > Object and the RequestFactory. I just can't determine the cause for
> > this exception it is making me crazy !!!
>
> > I tired to create a method on the service which return a simple String
> > and it work but for the complex type "GxpensesTransaction" no chance.
> > Below the exception I'm getting  :
>
> > SEVERE: One or more exceptions caught, see full set in
> > UmbrellaException#getCauses
> > com.google.web.bindery.event.shared.UmbrellaException: One or more
> > exceptions caught, see full set in UmbrellaException#getCauses
> >    at
> > com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.fa 
> > il(AbstractRequestContext.java:
> > 727)
> >    at
> > com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
> > $StandardPayloadDialect.processPayload(AbstractRequestContext.java:
> > 331)
> >    at
> > com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext
> > $5.onTransportSuccess(AbstractRequestContext.java:1108)
> >    at
> > com.google.web.bindery.requestfactory.gwt.client.DefaultRequestTransport
> > $1.onResponseReceived(DefaultRequestTransport.java:136)
> >    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(Nat

  1   2   >