FileUpload and Content-Disposition

2015-08-19 Thread ehodges
I'm trying to upload a file to a servlet using the example provided 
on 
http://www.gwtproject.org/javadoc/latest/com/google/gwt/user/client/ui/FileUpload.html.
 
 The multipart request arrives at the servlet, but the attachment doesn't 
have a Content-Disposition header.  I can't find any way to set it.  Any 
suggestions?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Determine widget size after load

2015-05-27 Thread ehodges
I don't understand.  What event are you talking about?  And what "wrapper"?

On Friday, May 22, 2015 at 8:58:38 AM UTC-5, Blaze wrote:
>
> You need to initiate the sizing of the canvas after the real sizing fo the 
> wrapper components is done.
>
> What I mean is, this wrapp has some kind of layout logic(usually this 
> layouts are not happening before the comp becomes attached and visible) . 
> So u need to lesten for this "event", and after this is done to use 
> wrap.getSize and set this size on the canvas. In this moment the wrap.size 
> will have the correct values...
>
>
>
>
> On Thursday, May 21, 2015 at 11:39:25 PM UTC+2, eho...@usdataworks.com 
> wrote:
>>
>> The deferred command works most of the time, but not always.  I'm seeing 
>> a zero height and width about 5% of the time in Chrome.
>>
>> Anyone have other ideas?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Determine widget size after load

2015-05-21 Thread ehodges
The deferred command works most of the time, but not always.  I'm seeing a 
zero height and width about 5% of the time in Chrome.

Anyone have other ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT web content from a Java servlet

2015-04-21 Thread ehodges
Never mind.  I think I have figured it out.  I have to run 
the com.google.gwt.dev.codeserver.CodeServer class in the 
gwt-codeserver.jar.


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT web content from a Java servlet

2015-04-21 Thread ehodges
I was wrong in that last post.  The GWT RPC request isn't going to the code 
server, it's going to the ... I guess it's a Jetty server that is launched 
by Eclipse when I run in debug mode?

Is there a good tutorial on using Super Dev Mode with a J2EE app server? 
 I've read that I should be able to do that without the Jetty server that 
is launched by Eclipse, but I can't find documentation about it.  The 
site http://www.gwtproject.org/articles/superdevmode.html seems to be the 
official site, but I'm having trouble understanding it.  I'm especially 
confused by the bit about running super dev mode without dev mode, but I 
have a sneaking suspicion that's what I want to do.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT web content from a Java servlet

2015-04-21 Thread ehodges
That works like a charm, but now I can't get GWT RPC to work with Super Dev 
Mode.

I found a thread here 
, 
but that isn't for 2.7 and it doesn't provide a solution.

When in Super Dev Mode, all of my GWT RPC calls go to /GWTRPC.

Is there some trick to setting the correct URL for the RPC calls?  They 
should be going to my J2EE app server, not the GWT code server.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT web content from a Java servlet

2015-04-21 Thread ehodges
Excellent suggestion.  I like the path info thing.  Thank you!

On Saturday, April 18, 2015 at 8:07:55 AM UTC-5, Thomas Broyer wrote:
>
>
> On Friday, April 17, 2015 at 10:59:49 PM UTC+2, eho...@usdataworks.com 
> wrote:
>>
>> I've tried looking for answers to this question, but the terms are so 
>> common that I can't find anything useful.  Either that or I don't know the 
>> right term to include in my search.
>>
>> My goal is to provide GWT web content (an HTML page, the nocache.js and 
>> cache.js files, etc.) all from a Java servlet.
>>
>> My HTML file has a script tag that specifies the servlet (and some 
>> parameters) in its "src" attribute.  That successfully loads the nocache.js 
>> file from my servlet.
>>
>> Inside the nocache.js file, though, there is a section of calls to 
>> "unflattenKeylistIntoAnswers()" that maps browser types to the generated 
>> names for the GWT javascript files.  I need to prepend my servlet name (and 
>> some parameters) to those file names so they will also be loaded from my 
>> servlet.
>>
>> So instead of loading the cache.js files from 
>>
>>   "www.myhost/foo/3D4F8081F105F3856719E7F2AEF0133D.cache.js"
>>
>> the nocache.js file will load them from
>>
>>   
>> "www.myhost/foo/myservlet?page=bar_3D4F8081F105F3856719E7F2AEF0133D.cache.js"
>>
>> I'm looking for some way to modify the __moduleBase added to the filename 
>> in computeUrlForResource(), or some way to redefine the functions like 
>> installCode() to change the URL for the .js file.
>>
>> Any ideas?
>>
>
>
> It would be easier to use the path-info rather than a query-string 
> parameter: map your servlet to /myservlet/* and use 
> HttpServletRequest#getPathInfo() 
> 
>  to 
> get the rest of the path.
>
> If you really want to use a query-string parameter, then you'll have to 
> customize the selection-script, as you already noticed. Fortunately, this 
> is made relatively easy by the CrossSiteIframeLinker: create a subclass 
> where you override getJsComputeUrlForResource 
> 
>  
> and use that as your primary linker in place of xsiframe. cf. 
> http://www.gwtproject.org/doc/latest/DevGuideLinkers.html
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT web content from a Java servlet

2015-04-17 Thread ehodges
I've tried looking for answers to this question, but the terms are so 
common that I can't find anything useful.  Either that or I don't know the 
right term to include in my search.

My goal is to provide GWT web content (an HTML page, the nocache.js and 
cache.js files, etc.) all from a Java servlet.

My HTML file has a script tag that specifies the servlet (and some 
parameters) in its "src" attribute.  That successfully loads the nocache.js 
file from my servlet.

Inside the nocache.js file, though, there is a section of calls to 
"unflattenKeylistIntoAnswers()" that maps browser types to the generated 
names for the GWT javascript files.  I need to prepend my servlet name (and 
some parameters) to those file names so they will also be loaded from my 
servlet.

So instead of loading the cache.js files from 

  "www.myhost/foo/3D4F8081F105F3856719E7F2AEF0133D.cache.js"

the nocache.js file will load them from

  
"www.myhost/foo/myservlet?page=bar_3D4F8081F105F3856719E7F2AEF0133D.cache.js"

I'm looking for some way to modify the __moduleBase added to the filename 
in computeUrlForResource(), or some way to redefine the functions like 
installCode() to change the URL for the .js file.

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How do I make the GWT Compiler see other modules in Eclipse?

2015-02-18 Thread ehodges
Source folders are automatically exported from Eclipse projects.  There's 
actually no way to turn that off.

The latest GWT compile stuff for Eclipse doesn't create run configurations 
as far as I can tell.  At least they aren't listed on the Run Configuration 
window's left hand tree.

You now have to right click the Eclipse project, select "Google", then "GWT 
Compile".  A dialog appears that lets you pick a module to compile, but has 
no classpath options.

On Wednesday, February 18, 2015 at 10:20:21 AM UTC-6, Thomas Broyer wrote:
>
> IIRC, you might have to explicitly "export" the sources from the project 
> properties (somewhere near "Build path"); but the GPE is supposed to 
> automatically add references to source folders of referenced projects, so 
> maybe just refresh the classpath for your launch configuration?
>
> On Wednesday, February 18, 2015 at 4:14:26 PM UTC+1, 
> eho...@usdataworks.com wrote:
>>
>> I agree that the project dependency out to be enough.
>>
>> I see the compiler finding foo:
>>
>>Loading inherited module 'Foo'
>>   Module location: 
>> file://c:/somepath/Workspaces/MyEclipse%20Professional%yadda%20yadda/foo/src/main/foopath/Foo.gwt.xml
>>
>> But it can't see the Java source for the code inside Foo.
>>
>> I'm stumped.
>>
>>
>> On Tuesday, February 17, 2015 at 5:44:07 PM UTC-6, Jens wrote:
>>>
>>> A simple eclipse project dependency to foo should be enough. 
>>>
>>> As the error says "can not find source" it does mean that the GWT 
>>> compiler has actually found your foo.gwt.xml that you have inherited 
>>> otherwise the compiler would complain about a missing GWT module. At work 
>>> we have a common project that also holds GWT modules and we just add that 
>>> common project to other projects as project reference/dependency to the 
>>> build path. Works without problems. We do not add an explicit classpath 
>>> entry, only the project reference.
>>>
>>> -- J.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How do I make the GWT Compiler see other modules in Eclipse?

2015-02-18 Thread ehodges
I agree that the project dependency out to be enough.

I see the compiler finding foo:

   Loading inherited module 'Foo'
  Module location: 
file://c:/somepath/Workspaces/MyEclipse%20Professional%yadda%20yadda/foo/src/main/foopath/Foo.gwt.xml

But it can't see the Java source for the code inside Foo.

I'm stumped.


On Tuesday, February 17, 2015 at 5:44:07 PM UTC-6, Jens wrote:
>
> A simple eclipse project dependency to foo should be enough. 
>
> As the error says "can not find source" it does mean that the GWT compiler 
> has actually found your foo.gwt.xml that you have inherited otherwise the 
> compiler would complain about a missing GWT module. At work we have a 
> common project that also holds GWT modules and we just add that common 
> project to other projects as project reference/dependency to the build 
> path. Works without problems. We do not add an explicit classpath entry, 
> only the project reference.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: How do I make the GWT Compiler see other modules in Eclipse?

2015-02-17 Thread ehodges
I mean I have a bunch of Java code that's used on the server.  I have a GWT 
module (foo) that compiles some of that code so it can be used by other GWT 
modules.  It's a simple dependency between GWT modules at that point, just 
like my bar module depends on com.google.gwt.user.User.  I just can't 
figure out how to make foo visible to the GWT compiler when it is compiling 
bar.

On Tuesday, February 17, 2015 at 3:52:33 PM UTC-6, Jens wrote:
>
> What do you mean with "server side code compiled into a GWT module"? GWT 
> modules and server side code are separate things.
>
> I guess you have to be more specific. Also keep in mind that GWT can only 
> compile a subset of JRE classes unless you provide additional super-source 
> / emulation.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How do I make the GWT Compiler see other modules in Eclipse?

2015-02-17 Thread ehodges
I'm using GWT 2.7 with Eclipse.  I have one Eclipse project, let's call it 
"foo" that has a bunch of server side code compiled into a GWT module.  I 
have another Eclipse project, let's call it "bar" that has a bunch of web 
app code compiled into a GWT module.  I need to reference the foo code in 
the bar code.

I added an "inherits" tag to the bar's gwt.xml module definition file.

I added the Eclipde project foo to the classpath of bar.

I added a project reference from bar to foo.

I've basically tried everything I can think off, but when I compile bar, I 
get errors like this:

Line 22: No source code is available for type com.xxx.yyy.Zzz; did you 
forget to inherit a required module?

I've also searched the web and this group.  I see some answers from 2009 
that involve Maven (which I'm not using) and older versions of the GWT 
compiler, but nothing has solved my problem.

What am I missing?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Errors migrating to GWT 2.7.0 . Can someone please help me ?

2015-02-12 Thread ehodges
That fails like this:

Unknown argument: -Dgwt.usearchives=false
Google Web Toolkit 2.7.0
Compiler [-logLevel level] [-workDir dir] [-[no]compileReport] 
[-X[no]checkCasts] [-X[no]classMetadata] [-[no]draftCompile] 
[-[no]checkAssertions] [-X[no]closureCompiler] [-XfragmentCount 
numFragments] [-XfragmentMerge numFragments] [-gen dir] 
[-[no]incrementalCompileWarnings] [-XjsInteropMode [NONE, JS, CLOSURE]] 
[-missingDepsFile file] [-Xnamespace PACKAGE, NONE] [-optimize level] 
[-[no]overlappingSourceWarnings] [-[no]saveSource] [-style style] 
[-[no]failOnError] [-X[no]enforceStrictResources] [-[no]validateOnly] 
[-sourceLevel [auto, 1.6, 1.7]] [-localWorkers count] [-[no]incremental] 
[-war dir] [-deploy dir] [-extra dir] [-saveSourceOutput dir] 
[-XmethodNameDisplayMode NONE | ONLY_METHOD_NAME | ABBREVIATED | FULL] 
module[s] 

where 
  -logLevelThe level of logging detail: ERROR, 
WARN, INFO, TRACE, DEBUG, SPAM, or ALL
  -workDir The compiler's working directory for 
internal use (must be writeable; defaults to a system temp dir)
  -[no]compileReport   Compile a report that tells the "Story 
of Your Compile". (defaults to OFF)
  -X[no]checkCasts EXPERIMENTAL: Insert run-time checking 
of cast operations. (defaults to ON)
  -X[no]classMetadata  EXPERIMENTAL: Include metadata for some 
java.lang.Class methods (e.g. getName()). (defaults to ON)
  -[no]draftCompileCompile quickly with minimal 
optimizations. (defaults to OFF)
  -[no]checkAssertions Include assert statements in compiled 
output. (defaults to OFF)
  -X[no]closureCompilerEXPERIMENTAL: Compile output Javascript 
with the Closure compiler for even further optimizations. (defaults to OFF)
  -XfragmentCount  EXPERIMENTAL: Limits of number of 
fragments using a code splitter that merges split points.
  -XfragmentMerge  DEPRECATED (use -XfragmentCount 
instead): Enables Fragment merging code splitter.
  -gen Debugging: causes normally-transient 
generated types to be saved in the specified directory
  -[no]incrementalCompileWarnings  Whether to show warnings during 
monolithic compiles for issues that will break in incremental compiles 
(strict compile errors, strict source directory inclusion, missing 
dependencies). (defaults to OFF)
  -XjsInteropMode  Specifies JsInterop mode, either NONE, 
JS, or CLOSURE (defaults to NONE)
  -missingDepsFile Specifies a file into which detailed 
missing dependency information will be written.
  -Xnamespace  Puts most JavaScript globals into 
namespaces. Default: PACKAGE for -draftCompile, otherwise NONE
  -optimizeSets the optimization level used by the 
compiler.  0=none 9=maximum.
  -[no]overlappingSourceWarnings   Whether to show warnings during 
monolithic compiles for overlapping source inclusion. (defaults to OFF)
  -[no]saveSource  Enables saving source code needed by 
debuggers. Also see -debugDir. (defaults to OFF)
  -style   Script output style: OBF[USCATED], 
PRETTY, or DETAILED (defaults to OBF)
  -[no]failOnError Fail compilation if any input file 
contains an error. (defaults to OFF)
  -X[no]enforceStrictResources EXPERIMENTAL: Avoid adding implicit 
dependencies on "client" and "public" for modules that don't define any 
dependencies. (defaults to OFF)
  -[no]validateOnlyValidate all source code, but do not 
compile. (defaults to OFF)
  -sourceLevel Specifies Java source level (defaults to 
auto:1.6)
  -localWorkersThe number of local workers to use when 
compiling permutations
  -[no]incremental Compiles faster by reusing data from the 
previous compile. (defaults to OFF)
  -war The directory into which deployable 
output files will be written (defaults to 'war')
  -deploy  The directory into which deployable but 
not servable output files will be written (defaults to 'WEB-INF/deploy' 
under the -war directory/jar, and may be the same as the -extra 
directory/jar)
  -extra   The directory into which extra files, 
not intended for deployment, will be written
  -saveSourceOutputOverrides where source files useful to 
debuggers will be written. Default: saved with extras.
  -XmethodNameDisplayMode  Emit extra information allow chrome dev 
tools to display Java identifiers in many places instead of JavaScript 
functions.
and 
  module[s]Specifies the name(s) of the module(s) 
to compile


On Thursday, February 12, 2015 at 4:54:15 PM UTC-6, Jens wrote:
>
> Should be the JRE/JDK you have configured for your project and not the one 
> you launched Eclipse with.
>
> I am on Mac OS and use Oracle

Re: Errors migrating to GWT 2.7.0 . Can someone please help me ?

2015-02-12 Thread ehodges
Which GWT compiler I'm using:  The one that runs when I right click on a 
project containing a GWT module and select Google -> GWT Compile.  I just 
installed the latest from https://dl.google.com/eclipse/plugin/4.3.

I used to have launch configurations to compile GWT, but they all seem to 
have been erased.  No warning given.

I have my default JRE in Eclipse set to 1.7.0.u45.  The project that 
contains my GWT module doesn't override that.

On Thursday, February 12, 2015 at 3:04:36 PM UTC-6, Juan Pablo Gardella 
wrote:
>
> Which GWT compiler are you using? Eclipse 4.3 recommends JRE 1.6 
> , but you can add a 
> different JDK in Eclipse from from Windows->preference->Java->Installed 
> JRE. Then in your project you can use it (right click in the project, 
> properties-> Java->built path and choose the JDK).
>
> On 12 February 2015 at 17:53, > 
> wrote:
>
>> I said "I'm compiling with Oracle's 1.7.0.u45 JDK", but I'm not quite 
>> sure.  Does the Eclipse (4.3) plugin's GWT compiler use the current Eclipse 
>> default JRE?  Is there something I need to do to configure it?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Errors migrating to GWT 2.7.0 . Can someone please help me ?

2015-02-12 Thread ehodges
I said "I'm compiling with Oracle's 1.7.0.u45 JDK", but I'm not quite sure. 
 Does the Eclipse (4.3) plugin's GWT compiler use the current Eclipse 
default JRE?  Is there something I need to do to configure it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Errors migrating to GWT 2.7.0 . Can someone please help me ?

2015-02-12 Thread ehodges
Same problem here.  I'm compiling with Oracle's 1.7.0.u45 JDK.  I get a 
bunch of warnings like this:

   [WARN] Unable to read: 
jar:file:/C:/gwt-2.7.0/gwt-user.jar!/com/google/gwt/core/Core.gwtar. 
Skipping: java.io.InvalidClassException: 
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream 
classdesc serialVersionUID = -2407201776821563037, local class 
serialVersionUID = 4713379764594032837

before my compile terminates with this:

   Adding '1' new generated units
  Compiling...
 Compilation completed in 0.01 seconds
  Removing invalidated units
   [ERROR] Unexpected internal compiler error
java.lang.RuntimeException: Unexpected IOException on in-memory stream
at 
com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:383)
at 
com.google.gwt.dev.jjs.impl.UnifyAst.assimilateSourceUnit(UnifyAst.java:999)
at com.google.gwt.dev.jjs.impl.UnifyAst.internalFindType(UnifyAst.java:1595)
at com.google.gwt.dev.jjs.impl.UnifyAst.addRootTypes(UnifyAst.java:733)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.unifyJavaAst(JavaToJavaScriptCompiler.java:1291)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.constructJavaAst(JavaToJavaScriptCompiler.java:1038)
at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$Precompiler.precompile(JavaToJavaScriptCompiler.java:954)
at 
com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.precompile(MonolithicJavaToJavaScriptCompiler.java:303)
at 
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:38)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:286)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
at com.google.gwt.dev.Compiler.run(Compiler.java:206)
at com.google.gwt.dev.Compiler.run(Compiler.java:158)
at com.google.gwt.dev.Compiler$1.run(Compiler.java:120)
at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
at com.google.gwt.dev.Compiler.main(Compiler.java:127)
Caused by: java.io.InvalidClassException: 
com.google.gwt.dev.jjs.SourceOrigin$1; local class incompatible: stream 
classdesc serialVersionUID = -2407201776821563037, local class 
serialVersionUID = 4713379764594032837
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:632)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1600)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1513)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1749)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1964)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1888)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
at java.util.ArrayList.readObject(ArrayList.java:731)
at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1044)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1866)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1770)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1346)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:365)
at 
com.google.gwt.dev.jjs.ast.JDeclaredType.readMembers(JDeclaredType.java:412)
at com.google.gwt.dev.jjs.ast.JProgram.deserializeTypes(JProgram.java:229)
at 
com.google.gwt.dev.javac.CompilationUnit.getTypes(CompilationUnit.java:381)
... 17 more


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT compiler is confused by class and package name that differ by capitalization only

2015-02-12 Thread ehodges
That sounds like the problem isn't fixed in 2.7.  I can't use a snapshot.

On Thursday, February 12, 2015 at 9:33:35 AM UTC-6, Jens wrote:
>
> gwtar support has already been deleted in GWT trunk / 2.8-SNAPSHOT. So if 
> you skip 2.7 and use a 2.8-SNAPSHOT build you should not have any issues.
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT compiler is confused by class and package name that differ by capitalization only

2015-02-12 Thread ehodges
Great.  I hope Issue 7530 
 has 
been fixed in 2.7.  That's what has kept us at 2.5.0.

On Wednesday, February 11, 2015 at 4:49:48 PM UTC-6, Jens wrote:
>
> If you use GWT 2.7 Final release this should be fixed: 
>
> https://gwt-review.googlesource.com/#/c/9661/
> https://code.google.com/p/google-web-toolkit/issues/detail?id=8716
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT compiler is confused by class and package name that differ by capitalization only

2015-02-11 Thread ehodges
I'm trying to compile some existing Java code to share with GWT code.  I 
can't modify the existing Java code, so don't even ask.

I have a package called "com.foo.bar".

I also have a class called "com.foo.Bar".

When I run the GWT compiler on code that imports the class com.foo.Bar, it 
complains that:

 Line 26: Only a type can be imported. com.foo.Bar resolves to a package

Anyone know of a workaround for this?


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-10 Thread ehodges
Thanks!  I got it working.

I had to place my version of Collections.java under the directory 
"src/com/mycompany/emul/java/util".  In my gwt.xml module definition file, 
I added the tag ''.  I modified my build scripts 
to ignore everything under com/mycompany/emul and it seems to be working 
now.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-10 Thread ehodges
I have a couple of GWT module files.  One of them inherits 
com.google.gwt.user.User.  In that one I've tried to override Google's 
implementation of java.util.Collections.  I've placed their 
Collections.java file under the paths src/emul/java/util and src/java/util, 
but when I compile my GWT code my version of Collections.java isn't being 
used.

Is there something I need to do in my gwt.xml file to include the source 
path containing my version of Collections.java?  My gwt.xml is located at 
src/com/mycompany.  It includes a lot of  tags to pick and choose 
which of our Java files are compiled for GWT.  Is my use of  tags 
excluding my version of Collections.java?  If so, how do I include it, 
since it isn't under the src/com/mycompany path?

On Tuesday, February 10, 2015 at 2:55:22 AM UTC-6, Vassilis Virvilis wrote:
>
> You need to create a a GWT module file gwt.xml file. Please see 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html
>
> Basically from your master .gwt.xml you inherit the module with the files 
> to super source.
>
> In my case I wanted to override google's PopupPanel so
>
> in my master.gwt.xml I have 
> ...
> 
> ...
>
> and in my src/
>
> src/
>   com.mycompany.xxx
>  Xxx.java
>   com.google.gwt.user.User
>  PopupPanel.java
>
>
> Hope that helps
>
>  Vassilis
>
>
>
>
> On Mon, Feb 9, 2015 at 5:36 PM, > 
> wrote:
>
>> I'm able to exclude these classes from my IDE and build scripts, but I 
>> can't get the GWT compiler to see them.  I put them at what I think is the 
>> same location they had in the gwt-user module, but they aren't included 
>> when I compile my module.  I don't understand the syntax of the 
>> super-source tag enough to make it include them based on my gwt.xml file.
>>
>> On Saturday, February 7, 2015 at 1:57:08 AM UTC-6, Vassilis Virvilis 
>> wrote:
>>>
>>> No it won't collide during GWT compilation. It will super source and 
>>> override the original. However it will collide during normal java 
>>> compilation. To that end in your IDE / build environment you need to make 
>>> sure that the specific package (java.util) is excluded from compilation by 
>>> the java compiler but it is included for the GWT compiler.
>>>
>>> Hope that helps.
>>>
>>>  Vassilis
>>>
>>> On Sat, Feb 7, 2015 at 12:20 AM,  wrote:
>>>
  
 I found an "emu" directory with a Collections implementation.  Problem 
 is that Collections.java file has a "java.util" package.  I can't put that 
 in my source tree.  It will collide with the real implementation.

 -- 
 You received this message because you are subscribed to the Google 
 Groups "Google Web Toolkit" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-we...@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> -- 
>>> Vassilis Virvilis
>>>  
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Vassilis Virvilis
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-09 Thread ehodges
I'm able to exclude these classes from my IDE and build scripts, but I 
can't get the GWT compiler to see them.  I put them at what I think is the 
same location they had in the gwt-user module, but they aren't included 
when I compile my module.  I don't understand the syntax of the 
super-source tag enough to make it include them based on my gwt.xml file.

On Saturday, February 7, 2015 at 1:57:08 AM UTC-6, Vassilis Virvilis wrote:
>
> No it won't collide during GWT compilation. It will super source and 
> override the original. However it will collide during normal java 
> compilation. To that end in your IDE / build environment you need to make 
> sure that the specific package (java.util) is excluded from compilation by 
> the java compiler but it is included for the GWT compiler.
>
> Hope that helps.
>
>  Vassilis
>
> On Sat, Feb 7, 2015 at 12:20 AM, > 
> wrote:
>
>>  
>> I found an "emu" directory with a Collections implementation.  Problem is 
>> that Collections.java file has a "java.util" package.  I can't put that in 
>> my source tree.  It will collide with the real implementation.
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Vassilis Virvilis
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-09 Thread ehodges
Thanks.  I can't figure out how the relative pathing is supposed to work. 
 My gwt.xml file for this module is a couple of levels deep in our package 
hierarchy.  How do I get back up to "java.util"?

Is this documented someplace?  I hate having to ask on a forum.

On Friday, February 6, 2015 at 6:47:04 PM UTC-6, Benjamin DeLillo wrote:
>
> You place it wherever you want in your source tree, usually at src/emul or 
> src/super I think. So you'd have src/emul/java/util/Collections.java
>
> Then add
> 
>
> to your gwt.xml file.
>
> Someone else can help fill in the details I've missed, I'm a little fuzzy 
> on the specifics of how the path gets resolved or the canonical location 
> for the super-source directory, but that's the idea.
>
>
> On Friday, February 6, 2015 at 5:20:55 PM UTC-5, eho...@usdataworks.com 
> wrote:
>>
>>  
>> I found an "emu" directory with a Collections implementation.  Problem is 
>> that Collections.java file has a "java.util" package.  I can't put that in 
>> my source tree.  It will collide with the real implementation.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-06 Thread ehodges
 
I found an "emu" directory with a Collections implementation.  Problem is 
that Collections.java file has a "java.util" package.  I can't put that in 
my source tree.  It will collide with the real implementation.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-06 Thread ehodges
We use GWT 2.5.1.  (GWT 2.6.0 is buggy under WebSphere, I believe, so we 
are stuck here.)

I don't see any "emul" packages or directories in 2.5.1.

On Friday, February 6, 2015 at 3:29:52 PM UTC-6, Vassilis Virvilis wrote:
>
> Currently I don't have my IDE so I am not 100% sure but I believe it is 
> this one:
>
> In gwt-user-2.7.0.jar
> com/google/gwt/emul/java/util/Collections.java
>
> You have to copy it in ~/myproject/src/java/util/Collections.java in 
> package java.util
>
> and make your modifications there.
>
> The obvious disadvantage of this neat trick that you will have to port 
> forward in every GWT upgrade your local modifications - or you can submit a 
> patch :-)
>
>  Vassilis
>
>
>
>
>
>
>
> On Fri, Feb 6, 2015 at 11:14 PM, > 
> wrote:
>
>> As I said in my first post, I see why GWT doesn't need a synchronized 
>> sorted set.  I don't need one either, I just need my Java code (that will 
>> be compiled to GWT) to reference other Java code that references a 
>> synchronized sorted set.
>>
>>
>> On Friday, February 6, 2015 at 3:07:28 PM UTC-6, Vassilis Virvilis wrote:
>>>
>>> You can copy paste the existing Collections.java from the GWT tree to 
>>> your source tree in the same package path and add your own method there. 
>>> The GWT compiler will super source your file meaning that it will have 
>>> precedence over the GWT supplied file.
>>>
>>> However I am not actually suggesting this for your case. The reason is 
>>> the following. In normal circumstances GWT code is plain javascript and it 
>>> executed in a single thread therefore the synchronized variant of a 
>>> collection makes non sense. Recent advances in WWW standards include 
>>> something called web workers which is basically javascript threads. I 
>>> haven't used them or study them in detail to commend but my gut feeling and 
>>> past experience says that their semantics will not map to java thread 
>>> semantics.
>>>
>>>
>>>Vassilis
>>>
>>> On Fri, Feb 6, 2015 at 10:35 PM,  wrote:
>>>
 Yes, I saw that documentation.  It seems to assume a lot of GWT 
 knowledge.  I doubt we can provide our own Collections implementation just 
 to fill in one static method.  Does anyone know a more reasonable 
 workaround?


 On Thursday, February 5, 2015 at 5:34:33 PM UTC-6, iza wrote:
>
> I believe super-source is what you need. Have you seen the 
> documentation "Overriding one package implementation with another" at 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.
> html#DevGuideModuleXml
>
  -- 

>>>
>>>
>>> -- 
>>> Vassilis Virvilis
>>>  
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Google Web Toolkit" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to google-web-toolkit+unsubscr...@googlegroups.com .
>> To post to this group, send email to google-we...@googlegroups.com 
>> .
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Vassilis Virvilis
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-06 Thread ehodges
I copied com.google.gwt.user.client.rpc.core.java.util.Collections from the 
GWT source to my source tree, but GWT doesn't use it when compiling my 
code.  My module inherits the com.google.gwt.user.User module.  I tried 
looking inside that module to see 
how com.google.gwt.user.client.rpc.core.java.util.Collections was 
super-sourced, but I haven't been able to find that.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-06 Thread ehodges
Question:  When you say "copy paste the existing Collections.java from the 
GWT tree", do you mean the one in 
package com.google.gwt.user.client.rpc.core.java.util?  Or perhaps the one 
in com.google.gwt.user.server.rpc.core.java.util?  Or some other one?

On Friday, February 6, 2015 at 3:07:28 PM UTC-6, Vassilis Virvilis wrote:
>
> You can copy paste the existing Collections.java from the GWT tree to your 
> source tree in the same package path and add your own method there. The GWT 
> compiler will super source your file meaning that it will have precedence 
> over the GWT supplied file.
>
> However I am not actually suggesting this for your case. The reason is the 
> following. In normal circumstances GWT code is plain javascript and it 
> executed in a single thread therefore the synchronized variant of a 
> collection makes non sense. Recent advances in WWW standards include 
> something called web workers which is basically javascript threads. I 
> haven't used them or study them in detail to commend but my gut feeling and 
> past experience says that their semantics will not map to java thread 
> semantics.
>
>
>Vassilis
>
> On Fri, Feb 6, 2015 at 10:35 PM, > 
> wrote:
>
>> Yes, I saw that documentation.  It seems to assume a lot of GWT 
>> knowledge.  I doubt we can provide our own Collections implementation just 
>> to fill in one static method.  Does anyone know a more reasonable 
>> workaround?
>>
>>
>> On Thursday, February 5, 2015 at 5:34:33 PM UTC-6, iza wrote:
>>>
>>> I believe super-source is what you need. Have you seen the documentation 
>>> "Overriding one package implementation with another" at 
>>> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.
>>> html#DevGuideModuleXml
>>>
>>  -- 
>>
>
>
> -- 
> Vassilis Virvilis
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-06 Thread ehodges
As I said in my first post, I see why GWT doesn't need a synchronized 
sorted set.  I don't need one either, I just need my Java code (that will 
be compiled to GWT) to reference other Java code that references a 
synchronized sorted set.


On Friday, February 6, 2015 at 3:07:28 PM UTC-6, Vassilis Virvilis wrote:
>
> You can copy paste the existing Collections.java from the GWT tree to your 
> source tree in the same package path and add your own method there. The GWT 
> compiler will super source your file meaning that it will have precedence 
> over the GWT supplied file.
>
> However I am not actually suggesting this for your case. The reason is the 
> following. In normal circumstances GWT code is plain javascript and it 
> executed in a single thread therefore the synchronized variant of a 
> collection makes non sense. Recent advances in WWW standards include 
> something called web workers which is basically javascript threads. I 
> haven't used them or study them in detail to commend but my gut feeling and 
> past experience says that their semantics will not map to java thread 
> semantics.
>
>
>Vassilis
>
> On Fri, Feb 6, 2015 at 10:35 PM, > 
> wrote:
>
>> Yes, I saw that documentation.  It seems to assume a lot of GWT 
>> knowledge.  I doubt we can provide our own Collections implementation just 
>> to fill in one static method.  Does anyone know a more reasonable 
>> workaround?
>>
>>
>> On Thursday, February 5, 2015 at 5:34:33 PM UTC-6, iza wrote:
>>>
>>> I believe super-source is what you need. Have you seen the documentation 
>>> "Overriding one package implementation with another" at 
>>> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.
>>> html#DevGuideModuleXml
>>>
>>  -- 
>>
>
>
> -- 
> Vassilis Virvilis
>  

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: I need java.util.Collections synchronized classes.

2015-02-06 Thread ehodges
Yes, I saw that documentation.  It seems to assume a lot of GWT knowledge. 
 I doubt we can provide our own Collections implementation just to fill in 
one static method.  Does anyone know a more reasonable workaround?

On Thursday, February 5, 2015 at 5:34:33 PM UTC-6, iza wrote:
>
> I believe super-source is what you need. Have you seen the documentation 
> "Overriding one package implementation with another" at 
> http://www.gwtproject.org/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


I need java.util.Collections synchronized classes.

2015-02-05 Thread ehodges
I'm trying to share some Java code between my server and client using GWT. 
 When I try to compile this Java code for GWT, I find that 
Collections.synchronizedSortedSet() is not defined for GWT.

I understand why Javascript doesn't need synchronized versions of these 
collections, but I can't modify the Java code I want to share with GWT.

Does anyone have a workaround for this kind of problem?  I don't really 
understand how to use the "super-source" tag in the module definition. 
 Could that be used to replace Collections.synchronizedSortedSet() with a 
SortedSet?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread ehodges


On Wednesday, September 24, 2014 9:45:43 AM UTC-5, Joseph Lust wrote:
>
> There are various ways to place links in UiBinder based UI's. The most 
> basic of these is to simply generate the UI and set the href property of 
> your target element. Static URL's can be directly inserted in the XML using 
>  as covered in the documentation 
> 
> .
>
> Joe
>

 Maybe I'm using the wrong words?  I'm using a visual editor in Eclipse to 
edit the UIBinder files.  There's a property editor for the hyperlink that 
contains a property called "targetHistoryToken".  It takes a String value.

I have no trouble typing in the colon, I just had no idea there was 
supposed to be a colon.  The example section in the Hyperlink documentation 

 uses 
the metasyntactic variables as example values, but doesn't include colons.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-25 Thread ehodges


On Wednesday, September 24, 2014 11:39:50 AM UTC-5, Jens wrote:
>
> Please don't take me offensive.
>

Quite the opposite.  You seem defensive.

I would be happy to improve the documentation if I knew what I was talking 
about.  I'm a GWT newbie, so all I have are questions.  My biggest question 
is where do I find better documentation, because the documentation provided 
 at gwtproject.org is incomplete and inconsistent.  It may seem sufficient 
to someone who already knows GWT, but trust me, it doesn't provide a good 
introduction.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-24 Thread ehodges


On Monday, September 22, 2014 8:58:43 AM UTC-5, Jens wrote:
 

> Actually everything you have asked is covered in 
> http://www.gwtproject.org/doc/latest/DevGuideMvpActivitiesAndPlaces.html
>
> - The URL representation of a Place is described in "Places" section 
> (Prefix + ":" + token)
> - The @Prefix is mentioned in "PlaceHistoryMapper" section and obviously 
> you want to use it if you don't like the default prefix chosen by GWT (the 
> Place class name)
> - How to get a token for a Hyperlink is covered in section "How to 
> navigate" (using the PlaceHistoryMapper.getToken() method)
>
> So maybe you just need to read documentation a bit more carefully ;-)
>

Perhaps.  Maybe you can explain where my reading is going astray.  For 
instance:

" For more control of the PlaceHistoryMapper, you can use the @Prefix 
annotation on a PlaceTokenizer to change the first part of the URL 
associated with the Place. For even more control, you can instead implement 
PlaceHistoryMapperWithFactory and provide a TokenizerFactory that, in turn, 
provides individual PlaceTokenizers."

That says I can use @Prefix, but it doesn't say why I would want to, how I 
would use it, or how it gives me more control of the PlaceHistoryMapper.

And you're right, it does say I can call PlaceHistoryMapper.getToken() to 
get a token for a Hyperlink, but my Hyperlinks are laid out in UI Binder. 
 There's no option to invoke PlaceHistoryMapper.getToken() there.  The 
examples I can find for Hyperlink show tokens with no colons in them.  I 
only figured out I needed a colon in there by reading the source code for 
AbstractPlaceHistoryMapper.getPlace().


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Is there a tutorial that explains Places and Hyperlinks?

2014-09-22 Thread ehodges
Is there a good document that explain all of this?  How do new GWT 
developers learn these things?

On Friday, September 19, 2014 5:49:19 PM UTC-5, Jens wrote:
>
> In general the hash fragment the GWT places framework generates consists 
> of two parts: a unique prefix that represents the place type and a token 
> that contains the serialized state of a place instance. Both are separated 
> by a colon.
>
> You can use @Prefix to change the default unique prefix of a Place which 
> is the concrete Place class simple name, e.g. CustomerPlace.
>
> To fill a Hyperlink target history token you would use the 
> PlaceHistoryMapper.getToken(new CustomerPlace()) method 
> which basically returns Prefix + ":" + tokenizer.getToken(place) .
>
> If you don't like the colon you can also use your own logic by either 
> implementing the PlaceHistoryMapper interface yourself or by creating just 
> a single PlaceTokenizer with a prefix @Prefix(""). This tokenizer 
> will act as a catch-all tokenizer and you can then freely implement your 
> getToken() / getPlace() logic for all places inside that tokenizer. The 
> catch-all tokenizer is kind of a cheat, so I would prefer implementing 
> PlaceHistoryMapper directly. 
> For example my apps usually use history tokens that look like 
> /#!/archive/2014/august/
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Is there a tutorial that explains Places and Hyperlinks?

2014-09-19 Thread ehodges
I'm writing a GWT app and trying to make Hyperlink widgets work.  I've read 
http://www.gwtproject.org/doc/latest/DevGuideMvpActivitiesAndPlaces.html and 
some of the API docs, but it doesn't seem coherent.

For instance, that web page says I can use an "@Prefix" annotation on a 
PlaceTokenizer to change the first part of the URL associated with a Place, 
but it doesn't show an example or tell me why I would want to do that.

Also, all of the examples I can find of the Hyperlink widget show the 
target history token as a single word, with no colon.  When I look in 
Google's AbstractPlaceHistoryMapper.getPlace(), however, it expects a 
colon.  If the token has no colon then the tokenizer can't be found.

Am I missing some documentation?  Is there a good intro to this subject out 
there?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Javascript call from anchor's onclick is firing a ValueChangeEvent.

2014-07-22 Thread ehodges
I have some HTML code that's invoking GWT code via JSNI.  The user clicks 
on an anchor in the HTML, which executes a bit of Javascript that calls one 
of my GWT methods.  That's all working as expected.

The problem is that the act of clicking the anchor is firing a 
ValueChangeEvent, and the PlaceHistoryHandler is telling the 
PlaceController to go to a new place.  I don't want to go to a new place 
every time an anchor is clicked.  I want to stay on the same place 
sometimes.  The GWT code being invoked by the Javascript should get to 
decide if I go to a new place or not.

Any suggestions or explanations?  I don't understand why any GWT events are 
being fired in the first place.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT HTML renders incorrectly

2014-07-14 Thread ehodges
Adding "table-layout:fixed" doesn't help.

On Friday, July 11, 2014 6:17:22 PM UTC-5, Thomas Broyer wrote:
>
> Try adding a "table-layout:fixed" style to the table.
>
> On Friday, July 11, 2014 8:54:09 PM UTC+2, eho...@usdataworks.com wrote:
>>
>> Thank you SO much.  It's a strict vs quirks mode thing.  When I use this 
>> DOCTYPE:
>>
>> > "http://www.w3.org/TR/html4/strict.dtd";>
>>
>>
>> the vertical spacing is messed up outside of GWT.  When I modify my GWT 
>> project to use this DOCTYPE:
>>
>>
>> 
>>
>>
>> or something else quirky then the vertical spacing looks right.
>>
>>
>> I have no idea how to fix this, but at least I know the reason.  Thanks 
>> again.
>>
>>
>> On Friday, July 11, 2014 1:38:11 PM UTC-5, Jens wrote:
>>>
>>> GWT is doing something that changes the vertical size of the elements.

>>>
>>> IMHO there are only two possibilities: Its either a CSS/style 
>>> declaration or it's an standard vs.quirks mode issue and you should check 
>>> if both pages run in the same mode (for standards mode make sure both have 
>>>  at the beginning of the html file).
>>>
>>> GWT can not modify the vertical size of an element without using CSS / 
>>> inline styles (which you would see in DevTools, unless you still missed 
>>> some).
>>>
>>> -- J.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT HTML renders incorrectly

2014-07-11 Thread ehodges
Thank you SO much.  It's a strict vs quirks mode thing.  When I use this 
DOCTYPE:

http://www.w3.org/TR/html4/strict.dtd";>


the vertical spacing is messed up outside of GWT.  When I modify my GWT project 
to use this DOCTYPE:





or something else quirky then the vertical spacing looks right.


I have no idea how to fix this, but at least I know the reason.  Thanks again.


On Friday, July 11, 2014 1:38:11 PM UTC-5, Jens wrote:
>
> GWT is doing something that changes the vertical size of the elements.
>>
>
> IMHO there are only two possibilities: Its either a CSS/style declaration 
> or it's an standard vs.quirks mode issue and you should check if both pages 
> run in the same mode (for standards mode make sure both have  html> at the beginning of the html file).
>
> GWT can not modify the vertical size of an element without using CSS / 
> inline styles (which you would see in DevTools, unless you still missed 
> some).
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT HTML renders incorrectly

2014-07-11 Thread ehodges
That's what's odd.  I've used Chrome to disable all of the CSS I could.  I 
commented out all of the GWT CSS.  I even modifed the Javascript to stop 
importing "gwt/standard/standard.css".  The HTML still renders differently 
than it does outside of GWT (or inside of Ext-JS, which is where it is 
currently displayed).

I can't use border-radius CSS.  The same HTML is also used inside a Java 
app using it's antiquated HTML engine.  I need it to show up consistently 
in both places.

GWT is doing something that changes the vertical size of the elements.  The 
first div has an explicit height of 280px.  The table inside it has a 
height of 300px for some reason, and extends past the bottom of the div 
that contains it.  When I display the same HTML outside of GWT the table 
has a height of 280px.


On Friday, July 11, 2014 12:12:11 PM UTC-5, Jens wrote:
>
> Not sure how to help. As it's a CSS issue the Chrome/FireFox DevTools 
> should be everything you need to figure it out. If you believe that it's a 
> GWT default style causing this, then comment out your GWT theme inherited 
> in your app.
>
> Also keep in mind that you can achieve the same with less elements and 
> using border-radius CSS. Of course this only works in IE 9+, older IEs will 
> display normal corners: http://jsfiddle.net/98a4v/
>
> -- J.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT HTML renders incorrectly

2014-07-11 Thread ehodges
I think something in GWT's CSS is making my HTML render incorrectly.  I've 
attached a sample HTML file.  When I view it in Chrome (or any other 
browser) the edges of the box line up correctly.  When I display it in my 
GWT application, there are vertical gaps introduced between the table rows. 
 The top middle cell is 44 pixels tall in GWT while it's 40 pixels tall 
everywhere else.

I also tried pasting the HTML into this message and I see the same vertical 
gaps.

I'm pretty sure it's something in the default GWT CSS, but I can't figure 
out what it is.  I've gone into Chrome's debugger and disabled all of the 
stylesheets I could, but it looks like there are some styles from webkit 
that are different on the GWT page than they are elsewhere.

Any suggestions?


-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.




 
 
 		
	  
	
	Foo
	
	  
	  
	
	
	
	
	
	  	
	  
	
		
			

	   


	   

			
		
	
	  
	



Re: Dynamically replacing entire CSS style

2014-05-16 Thread ehodges
Clarification:

I want to provide an entire "declaration block".  That's the correct name 
for the collection of declarations surrounded by braces.


On Friday, May 16, 2014 8:51:59 AM UTC-5, eho...@usdataworks.com wrote:
>
> I read that page.  It doesn't provide enough context for me to understand 
> it.
>
> I don't want to replace a stylesheet at run time; I want to replace a 
> single style.  Rule?  Is that the right word?  Whatever is between the { 
> and } in a CSS file, I want to change that for an element.  I need to do it 
> dynamically, with a rule read from a database based on run time data.
>
> On Thursday, May 15, 2014 1:50:20 PM UTC-5, Bu Pereira wrote:
>>
>> Stylesheet is a CSS. A set of rules applicable to the page you're dealing 
>> with. 
>> This explanation seems really simple 
>> https://code.google.com/p/google-web-toolkit/wiki/StyleInjector 
>>
>> Hope it helps. 
>>
>> On Thu, May 15, 2014 at 11:47 AM,   wrote: 
>> > I don't understand what most of that means. 
>> > 
>> > Where and how would I wrap "this" as a CSS rule? 
>> > 
>> > What stylesheet are you talking about? 
>> > 
>> > Is there a tutorial or something for this?  I've found several pages 
>> that 
>> > mention StyleInjector, but they all seem to rely on knowledge I don't 
>> yet 
>> > have. 
>> > 
>> > Thanks for trying to help. 
>> > 
>> > 
>> > On Thursday, May 15, 2014 10:48:46 AM UTC-5, Thomas Broyer wrote: 
>> >> 
>> >> You could probably wrap this as a CSS rule: ".somethingRandom {" + 
>> >> userProvidedCSS + "}" and then use the StyleInjector to inject that 
>> >> stylesheet, and finally call addStyleName on the Element or Widget to 
>> apply 
>> >> the rule. 
>> >> 
>> >> On Thursday, May 15, 2014 4:54:30 PM UTC+2, eho...@usdataworks.comwrote: 
>> >>> 
>> >>> I've figured out how to change CSS properties using 
>> >>> Element.getStyle().setSomething(), but I need to replace an entire 
>> CSS style 
>> >>> on the fly.  I want my users to be able to supply their own CSS for 
>> certain 
>> >>> widgets and have GWT replace the current CSS with their user defined 
>> CSS. 
>> >>> 
>> >>> So instead of asking a user for background image, background repeat, 
>> >>> background size, etc, the user just pastes in 
>> >>> 
>> >>> background-size:100% 100%; 
>> >>> background-repeat: no-repeat; 
>> >>> background-image: url(some_image.jpg); 
>> >>> 
>> >>> Is there a way to do this? 
>> > 
>> > -- 
>> > You received this message because you are subscribed to the Google 
>> Groups 
>> > "Google Web Toolkit" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> an 
>> > email to google-web-toolkit+unsubscr...@googlegroups.com. 
>> > To post to this group, send email to google-we...@googlegroups.com. 
>> > Visit this group at http://groups.google.com/group/google-web-toolkit. 
>> > For more options, visit https://groups.google.com/d/optout. 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Dynamically replacing entire CSS style

2014-05-16 Thread ehodges
I read that page.  It doesn't provide enough context for me to understand 
it.

I don't want to replace a stylesheet at run time; I want to replace a 
single style.  Rule?  Is that the right word?  Whatever is between the { 
and } in a CSS file, I want to change that for an element.  I need to do it 
dynamically, with a rule read from a database based on run time data.

On Thursday, May 15, 2014 1:50:20 PM UTC-5, Bu Pereira wrote:
>
> Stylesheet is a CSS. A set of rules applicable to the page you're dealing 
> with. 
> This explanation seems really simple 
> https://code.google.com/p/google-web-toolkit/wiki/StyleInjector 
>
> Hope it helps. 
>
> On Thu, May 15, 2014 at 11:47 AM,  > 
> wrote: 
> > I don't understand what most of that means. 
> > 
> > Where and how would I wrap "this" as a CSS rule? 
> > 
> > What stylesheet are you talking about? 
> > 
> > Is there a tutorial or something for this?  I've found several pages 
> that 
> > mention StyleInjector, but they all seem to rely on knowledge I don't 
> yet 
> > have. 
> > 
> > Thanks for trying to help. 
> > 
> > 
> > On Thursday, May 15, 2014 10:48:46 AM UTC-5, Thomas Broyer wrote: 
> >> 
> >> You could probably wrap this as a CSS rule: ".somethingRandom {" + 
> >> userProvidedCSS + "}" and then use the StyleInjector to inject that 
> >> stylesheet, and finally call addStyleName on the Element or Widget to 
> apply 
> >> the rule. 
> >> 
> >> On Thursday, May 15, 2014 4:54:30 PM UTC+2, eho...@usdataworks.comwrote: 
> >>> 
> >>> I've figured out how to change CSS properties using 
> >>> Element.getStyle().setSomething(), but I need to replace an entire CSS 
> style 
> >>> on the fly.  I want my users to be able to supply their own CSS for 
> certain 
> >>> widgets and have GWT replace the current CSS with their user defined 
> CSS. 
> >>> 
> >>> So instead of asking a user for background image, background repeat, 
> >>> background size, etc, the user just pastes in 
> >>> 
> >>> background-size:100% 100%; 
> >>> background-repeat: no-repeat; 
> >>> background-image: url(some_image.jpg); 
> >>> 
> >>> Is there a way to do this? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "Google Web Toolkit" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to google-web-toolkit+unsubscr...@googlegroups.com . 
> > To post to this group, send email to 
> > google-we...@googlegroups.com. 
>
> > Visit this group at http://groups.google.com/group/google-web-toolkit. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Dynamically replacing entire CSS style

2014-05-15 Thread ehodges
I don't understand what most of that means.  

Where and how would I wrap "this" as a CSS rule?

What stylesheet are you talking about?

Is there a tutorial or something for this?  I've found several pages that 
mention StyleInjector, but they all seem to rely on knowledge I don't yet 
have.

Thanks for trying to help.

On Thursday, May 15, 2014 10:48:46 AM UTC-5, Thomas Broyer wrote:
>
> You could probably wrap this as a CSS rule: ".somethingRandom {" + 
> userProvidedCSS + "}" and then use the StyleInjector to inject that 
> stylesheet, and finally call addStyleName on the Element or Widget to apply 
> the rule.
>
> On Thursday, May 15, 2014 4:54:30 PM UTC+2, eho...@usdataworks.com wrote:
>>
>> I've figured out how to change CSS properties using 
>> Element.getStyle().setSomething(), but I need to replace an entire CSS 
>> style on the fly.  I want my users to be able to supply their own CSS for 
>> certain widgets and have GWT replace the current CSS with their user 
>> defined CSS.
>>
>> So instead of asking a user for background image, background repeat, 
>> background size, etc, the user just pastes in
>>
>> background-size:100% 100%;
>> background-repeat: no-repeat;
>> background-image: url(some_image.jpg);
>>
>> Is there a way to do this?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: MVP:should the View object keep a reference to the corresponding Activity object?

2014-05-15 Thread ehodges
No, the view should be a simple container for UI objects.  The only 
exception should be a reference to the event bus, so UI Binder event 
methods can fire events.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Dynamically replacing entire CSS style

2014-05-15 Thread ehodges
I've figured out how to change CSS properties using 
Element.getStyle().setSomething(), but I need to replace an entire CSS 
style on the fly.  I want my users to be able to supply their own CSS for 
certain widgets and have GWT replace the current CSS with their user 
defined CSS.

So instead of asking a user for background image, background repeat, 
background size, etc, the user just pastes in

background-size:100% 100%;
background-repeat: no-repeat;
background-image: url(some_image.jpg);

Is there a way to do this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.