Re: Layout great difference between IE8 and FF13 after using window.getClientWidth() and window.getClientHeight()

2012-07-11 Thread tong123123
After add the px unit, FF can show the image correctly.

image1.setSize(String.valueOf(clientWidth  * 0.1) + px, 
 String.valueOf(clientHeight  * 0.1) + px);



-- 
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/-/fs_miFCLdxAJ.
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: Applying Spring Dependency Injection(DI) to client side classes in GWT

2012-07-11 Thread Saritha
Thank you very much reply.

One more doubt, with Spring DI,(from following links, i understood that, 
http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/http://goog_979169948/
https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA)
  
 I am able to apply the Dependency Injection with only Server side classes 
which holds the actual business(Remote Service) functionality.

  How can i apply Dependency Injection for all other classes like those are 
in client, shared, view, presenter packages? 



On Tuesday, July 10, 2012 7:44:23 PM UTC+5:30, Nick Siderakis wrote:

 You could use


- Server: Guice
- Client(GWT): Gin


 or


- Server: Spring
- Client: Gin


 On Tuesday, July 10, 2012 1:26:22 AM UTC-4, Saritha wrote:

 Hi All,

 I am new GWT. I have a project where I am using GWT and Spring as our 
 technologies to implement.
 I have done Spring integration with GWT, with the help of following links.

 http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/
 http://goog_979169948

 https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA
 Here with this, I am able to apply the Dependency Injection with only 
 Server side classes which holds the actual business(Remote 
 Service) functionality.

 My questions are, 

 How can i apply Dependency Injection for all other classes like those are 
 in client, shared, view, presenter packages?

 Which dependency Injection is better? I mean GWT provided two dependency 
 injection mechanisms
 1 is guice is for implementing dependency injection on server side
 2 is gin is for implementing dependency injection on client side.

 and Spring Dependency Injection.

 Which one is better to select? either GWT Dependency Injection or Spring 
 Dependency Injection? or combination of both?

 Please reply me.

 Thanks,
 Saritha.

  



-- 
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/-/1AdPsBp0sjYJ.
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: Applying Spring Dependency Injection(DI) to client side classes in GWT

2012-07-11 Thread Saritha
Please ignore last post..

*Wanted to know... combination of Guice and Spring DI used at server side?*

On Wednesday, July 11, 2012 11:52:09 AM UTC+5:30, Saritha wrote:

 Thank you very much reply.

 One more doubt, with Spring DI,(from following links, i understood that, 
 http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/http://goog_979169948/

 https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA)
   
  I am able to apply the Dependency Injection with only Server side classes 
 which holds the actual business(Remote Service) functionality.

   How can i apply Dependency Injection for all other classes like those 
 are in client, shared, view, presenter packages? 



 On Tuesday, July 10, 2012 7:44:23 PM UTC+5:30, Nick Siderakis wrote:

 You could use


- Server: Guice
- Client(GWT): Gin


 or


- Server: Spring
- Client: Gin


 On Tuesday, July 10, 2012 1:26:22 AM UTC-4, Saritha wrote:

 Hi All,

 I am new GWT. I have a project where I am using GWT and Spring as our 
 technologies to implement.
 I have done Spring integration with GWT, with the help of following 
 links.

 http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-its-step/
 http://goog_979169948

 https://docs.google.com/document/pub?id=1USHYx9cB3B1s1zM4dlkzEZ759D3lEfavn_dDewvBkaA
 Here with this, I am able to apply the Dependency Injection with only 
 Server side classes which holds the actual business(Remote 
 Service) functionality.

 My questions are, 

 How can i apply Dependency Injection for all other classes like those 
 are in client, shared, view, presenter packages?

 Which dependency Injection is better? I mean GWT provided two dependency 
 injection mechanisms
 1 is guice is for implementing dependency injection on server side
 2 is gin is for implementing dependency injection on client side.

 and Spring Dependency Injection.

 Which one is better to select? either GWT Dependency Injection or Spring 
 Dependency Injection? or combination of both?

 Please reply me.

 Thanks,
 Saritha.

  



-- 
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/-/bLWOLyJAYkMJ.
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: Scheduler and DeferredCommand stopping in unit tests

2012-07-11 Thread salk31
Sorry for talking to myself but...

waitForBackgroundJavaScriptStartingBefore looks like a possible cause. It 
is called here:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java#158
 
with a value of 2s the implementation of this method seems a bit odd:
http://grepcode.com/file/repo1.maven.org/maven2/net.sourceforge.htmlunit/htmlunit/2.9/com/gargoylesoftware/htmlunit/WebClient.java#WebClient.waitForBackgroundJavaScriptStartingBefore%28long%29
 
It seems to block while the number of jobs is different to the number of 
jobs after the time passed to it...

This time starts _before_ servlet startup so in our case that could easily 
be longer than 2s

Just me or both these bits of code a bit dodgy? Maybe gwt should pass the 
unit test timeout value to htmlunit or just some huge value?

Thanks

Sam



On Friday, July 6, 2012 10:23:02 AM UTC+1, salk31 wrote:

 Has anybody else had cases where Scheduler and DeferredCommands have 
 stopped being scheduled/run when used in unit tests?

 We have a lot of async code so need to use them a lot but currently, 
 seemingly at random, our tests stall until they get timed out. Even setting 
 up a periodic job that is never meant to stop will fail at the same 
 time/point as our normal jobs.

 Lot of code going on with 
 junit/GWTTestCase/htmlunit/jetty/requestfactory/database... and because it 
 is hard to reproduce it is proving tough to fix.

 Many thanks

 Sam



-- 
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/-/34VpCnP3M4EJ.
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: super dev mode tomcat eclipse

2012-07-11 Thread Thomas Broyer

On Tuesday, July 10, 2012 7:05:14 PM UTC+2, Marius Grama wrote:



 On Tuesday, July 10, 2012 1:05:46 PM UTC+2, Thomas Broyer wrote:


 On Tuesday, July 10, 2012 12:31:30 PM UTC+2, Marius Grama wrote:

 I've recently switched to gwt 2.5 rc1 and i've integrated on the 
 application i am working on.

 I work with Eclipse 3.7.2 and Tomcat 7.0.8.
 I've started the CodeServer and deployed the gwt application on which I 
 am working on Tomcat via Eclipse.

 Everytime i do a modfication on the src/main/java/com/myapp/client/... 
 java sources the application gets redeployed on Tomcat and I lose my 
 curently logged in session and then have to go through the application to 
 get to the place on which i wanted to edit/debug.


 In a previous project in Jetty, I made a special Authenticator to 
 automatically authenticate requests as a specific user. That way, even if 
 the app is redeployed, your next request will be authenticated and it'll 
 Just Work™.
 I'm working now on a project using Tomcat and I'll probably do the same 
 here (there's no reason it wouldn't work).
 We should open-source our Jetty work during the summer, and if we build 
 the same tool for Tomcat we'll open-source it too.
  

 Does anybody know if there is a way to perform automatic redeployment on 
 Tomcat only for shared/server file changes (and not also for client 
 sources) of the GWT project?


 The easiest is to have separate projects for client and server code.
 I strongly believe it's also the cleanest way of doing things with Maven.


 Can you  point me to a GWT project which follows the structure that you 
 described here? This way I could maybe use it as PoC to apply it on the 
 project on which I am currently working.


Have a look at https://github.com/tbroyer/gwt-maven-archetypes 

-- 
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/-/hdjCuvPPPyQJ.
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: Elemental in GWT 2.5 is what?

2012-07-11 Thread Thomas Broyer


On Tuesday, July 10, 2012 11:15:01 PM UTC+2, Clint Gilbert wrote:

 -BEGIN PGP SIGNED MESSAGE- 
 Hash: SHA1 

  (just like everyone else doing web dev out there, in JS, CoffeeScript, 
 Dart, etc.) 

 TLDR: There are many of us out here, I suspect, for whom this is exactly 
 what we do not want. 

 Elemental sounds cool, but I'm glad it's optional. I hope that stays 
 the case, and that the permuted-compile use case stays well-supported 
 for the foreseeable future. 


I see no reason it wouldn't be.
AFAICT, Elemental is not meant to replace what already exists, it's a new, 
different way of doing similar things (and more!) for people who need it. 
It's new as in new choice, not new vs. old.
As Ray said at I/O, it's best-suited for mobile apps where you need to cut 
every possible overhead, or for people who need to use bleeding-edge APIs 
without waiting for someone to hand-wrap them.
https://developers.google.com/events/io/sessions/gooio2012/218/

-- 
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/-/XR7mV96P8B8J.
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: maven-compiler=plugin not invoking validation tool during build

2012-07-11 Thread Thomas Broyer

On Wednesday, July 11, 2012 4:01:35 AM UTC+2, Yan wrote:

 Hi there, 

 I am having trouble with GWT 2.4 using Request factory with Maven 2.2.1 
 build.

 I have followed this URL:  
 http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation#Maven_builds

 The maven build works, but validation tool is not run, I can see that by 
 the error I get at run-time. Should not requestfactory-apt  automatically 
 pick up the request factory classes?


It should.
 

 What did I miss?  The following is what my POM.xml looks like, 

 Thanks,
 yan

   plugin
 artifactIdmaven-compiler-plugin/artifactId
 version2.5.1/version
 configuration
   source1.6/source
   target1.6/target
 /configuration
 dependencies
   dependency
 groupIdcom.google.web.bindery/groupId
 artifactIdrequestfactory-apt/artifactId
 version2.4.0/version
   /dependency
 /dependencies
   /plugin



Try adding the following to the configuration:
annotationProcessors
  
annotationProcessorcom.google.web.bindery.requestfactory.apt.RfValidator/annotationProcessor
/annotationProcessors

If that still doesn't work, try using the 
org.bsc.maven:maven-processor-plugin in the generate-sources phase.
See 
http://code.google.com/p/google-web-toolkit/source/detail?spec=svn11159r=11019 
for 
the changes I made to the wiki page; the previous version used the 
maven-processor-plugin.

Please come back here with your feedback so I can fix the wiki.

-- 
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/-/Bl0zVOaodnQJ.
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: Scheduler and DeferredCommand stopping in unit tests

2012-07-11 Thread Thomas Broyer


On Wednesday, July 11, 2012 9:21:10 AM UTC+2, salk31 wrote:

 Sorry for talking to myself but...

 waitForBackgroundJavaScriptStartingBefore looks like a possible cause. It 
 is called here:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java#158
  
 with a value of 2s the implementation of this method seems a bit odd:

 http://grepcode.com/file/repo1.maven.org/maven2/net.sourceforge.htmlunit/htmlunit/2.9/com/gargoylesoftware/htmlunit/WebClient.java#WebClient.waitForBackgroundJavaScriptStartingBefore%28long%29
  
 It seems to block while the number of jobs is different to the number of 
 jobs after the time passed to it...

 This time starts _before_ servlet startup so in our case that could easily 
 be longer than 2s

 Just me or both these bits of code a bit dodgy? Maybe gwt should pass the 
 unit test timeout value to htmlunit or just some huge value?



IIUC, that code is called when loading the page, to wait for the GWT code 
to launch, but before tests are executed. I doubt it's the culprit.
BTW, have you set the logs to SPAM level? that could help find where things 
hang. Also maybe a threaddump (not sure I could help, but pretty sure the 
people knowing the internals better than me would find them useful)

-- 
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/-/oXjfhrrhN5sJ.
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: SuperDevMode stuck on compiling

2012-07-11 Thread Thomas Broyer


On Tuesday, July 10, 2012 11:40:22 PM UTC+2, Chris Gamache wrote:

 I know it's poor form to bump one's own thread, but I'm down to the end of 
 my rope:

 I'm not sure if this has anything to do with anything, but this is from my 
 nocache.js file, where the error had occurred:

 function computePropValue(propName){
 var value = providers[propName](), allowedValuesMap = values[propName];
 if (value in allowedValuesMap) {
 return value;
 }
 var allowedValuesList = [];
 for (var k in allowedValuesMap) {
 allowedValuesList[allowedValuesMap[k]] = k;
 }
 if (__propertyErrorFunc) {
 __propertyErrorFunc(propName, allowedValuesList, value);
 }
 throw null;
 }

 propName is set to 'remove' and I can't for the life of me figure out 
 where GWT is getting that. It is certainly not in the values array. The 
 script execution fails when it tries to find 'remove' and it is not in 
 allowedValuesMap. Adding to that problem, __propertyErrorFunc is undefined. 



That sure is strange. What does the callstack look like at that point?

-- 
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/-/MgqLccLYQZMJ.
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.



Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread tanteanni
I've tried to make a Seleniumtest on the text content of a suggest box. The 
text is rendered correctly but don't shows up in rendered code (inspect 
element) and selenium also sees only an empty string. The Elment look like 
this in chrome and friefox:

input type=text class=PEB id=gwt-debug-overviewSuggestbox

But it is rendered with correct text - i can't find the text anywhere. But 
in IE 8 the elemnt looks like that:

input class=PEB id=gwt-debug-overviewSuggestbox __eventBits=8064 
__listener=INPUT id=gwt-debug-overviewSuggestbox class=PEB 
value=SomeText __eventBits=8064 value=SomeText/

So there i see the text SomeText. Why is this so? Or how to 
(Selenium)test contents of such fields?

-- 
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/-/6F-GFD7Jj74J.
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.



Fixed splitter in SplitLayoutPanel

2012-07-11 Thread mtrebizan
hi,
I have recently replaced horizontal split panel with split layout panel. 
everything works great except now i don't have function fixSplitter. Has 
anyone needed this or knows a way how to implement this?
thanks!

-- 
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/-/-S4YLSf_2nQJ.
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: Scheduler and DeferredCommand stopping in unit tests

2012-07-11 Thread salk31
Hi Thomas,

It is called at the loading of the page but the HtmlUnitThread only runs 
while that call is blocking...

I'm struggling to point the finger at a particular line of code but:
* Fiddling with the number of seconds GWT specifies to HTMLUnit can make 
the problem appear and disappear (a colleague has duplicated but I had to 
mess with Maven dependencies so not as reliable at test as wanted)
* I noticed that when a test stalls the HTMLUnit JavaScript thread was 
gone.

I'll try and write a unit test before raising an issue but is not easy as 
seems non-deterministic.

btw Congratulations on your new role in the steering committee. Bit scary 
as the code as been so good so far but fingers crossed.

Cheers

Sam

On Wednesday, July 11, 2012 10:34:40 AM UTC+1, Thomas Broyer wrote:



 On Wednesday, July 11, 2012 9:21:10 AM UTC+2, salk31 wrote:

 Sorry for talking to myself but...

 waitForBackgroundJavaScriptStartingBefore looks like a possible cause. It 
 is called here:

 http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java#158
  
 with a value of 2s the implementation of this method seems a bit odd:

 http://grepcode.com/file/repo1.maven.org/maven2/net.sourceforge.htmlunit/htmlunit/2.9/com/gargoylesoftware/htmlunit/WebClient.java#WebClient.waitForBackgroundJavaScriptStartingBefore%28long%29
  
 It seems to block while the number of jobs is different to the number of 
 jobs after the time passed to it...

 This time starts _before_ servlet startup so in our case that could 
 easily be longer than 2s

 Just me or both these bits of code a bit dodgy? Maybe gwt should pass the 
 unit test timeout value to htmlunit or just some huge value?



 IIUC, that code is called when loading the page, to wait for the GWT code 
 to launch, but before tests are executed. I doubt it's the culprit.
 BTW, have you set the logs to SPAM level? that could help find where 
 things hang. Also maybe a threaddump (not sure I could help, but pretty 
 sure the people knowing the internals better than me would find them useful)


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



Problem with RequestFactoryGenerator and ExtraTypes annotation

2012-07-11 Thread Ryan McFall
Hi:
 
I have an @ExtraTypes annotation on my RequestContext extension interface 
to pick up proxies associated with inheritance.  For 3 of the 4 developers 
in the group, everything works fine.  For the 4th, when the application is 
started up the Development Mode console window says
Unknown class:  in @ExtraTypes
 
There are two other sub-types in the @ExtraTypes annotation which work 
correctly.
 
I have tried cleaning the project and even deleting the generated 
RequestFactoryDeobfuscatorBuilder.java class in .apt_generated, which has 
worked in the past when I've had issues associated with adding new requests 
or annotations to the RequestContext extension, but this has had no effect.
 
Does anyone have any ideas on what else to try to get this particular 
developer's copy of the project running correctly?  Everything in his 
checkout is up-to-date, and since others have had success updating to the 
version that contains the new proxy interface, I do not think that any 
files are not committed to the repository.
 
Thanks for any suggestions!
Ryan

-- 
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/-/9VOnbn5OoAcJ.
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: SuperDevMode stuck on compiling

2012-07-11 Thread Chris Gamache
Stopped on that line above when propName == 'remove' here's the call stack:

 console.trace()
  (anonymous function)
  (anonymous function)
  evaluate
  InjectedScript._evaluateOn
  InjectedScript._evaluateAndWrap
  InjectedScript.evaluateOnCallFrame
  computePropValue mymodule.nocache.js:326
  mymodule.__getPropMap mymodule.nocache.js:389
  getBindingParameters dev_mode_on.js:324
  compile dev_mode_on.js:388
  runBookmarklet dev_mode_on.js:414
  (anonymous function) dev_mode_on.js:427
  (anonymous function)

On Wednesday, July 11, 2012 5:38:54 AM UTC-4, Thomas Broyer wrote:



 On Tuesday, July 10, 2012 11:40:22 PM UTC+2, Chris Gamache wrote:

 I know it's poor form to bump one's own thread, but I'm down to the end 
 of my rope:

 I'm not sure if this has anything to do with anything, but this is from 
 my nocache.js file, where the error had occurred:

 function computePropValue(propName){
 var value = providers[propName](), allowedValuesMap = values[propName];
 if (value in allowedValuesMap) {
 return value;
 }
 var allowedValuesList = [];
 for (var k in allowedValuesMap) {
 allowedValuesList[allowedValuesMap[k]] = k;
 }
 if (__propertyErrorFunc) {
 __propertyErrorFunc(propName, allowedValuesList, value);
 }
 throw null;
 }

 propName is set to 'remove' and I can't for the life of me figure out 
 where GWT is getting that. It is certainly not in the values array. The 
 script execution fails when it tries to find 'remove' and it is not in 
 allowedValuesMap. Adding to that problem, __propertyErrorFunc is undefined. 



 That sure is strange. What does the callstack look like at that point?


-- 
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/-/Mqmg7TIol0wJ.
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: Text of Suggestbox not seen in rendered code on some Browsers - strange?!

2012-07-11 Thread Thomas Broyer

On Wednesday, July 11, 2012 12:41:11 PM UTC+2, tanteanni wrote:

 I've tried to make a Seleniumtest on the text content of a suggest box. 
 The text is rendered correctly but don't shows up in rendered code 
 (inspect element) and selenium also sees only an empty string. The Elment 
 look like this in chrome and friefox:

 input type=text class=PEB id=gwt-debug-overviewSuggestbox

 But it is rendered with correct text - i can't find the text anywhere. But 
 in IE 8 the elemnt looks like that:

 input class=PEB id=gwt-debug-overviewSuggestbox __eventBits=8064 
 __listener=INPUT id=gwt-debug-overviewSuggestbox class=PEB 
 value=SomeText __eventBits=8064 value=SomeText/

 So there i see the text SomeText. Why is this so? Or how to 
 (Selenium)test contents of such fields?


This is an artifact of how the DOM is implemented in IE8, and the IE8 Dev 
Tools: IE mixes up attributes and properties (even though it can tell them 
apart starting with IE8, but only using the appropriate API), and the Dev 
Tools actually show you the properties: __eventBits and __listener are 
expando properties, and the value here is the property, not the attribute 
(the 'value' attribute maps to the defaultValue property, changing the 
value property shouldn't be reflected in the value attribute).

In any browser though, getting the value property of the element should 
give you the SomeText value: 
document.getElementById(gwt-debug-overviewSuggestbox).value;

-- 
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/-/jlBO7LciN-UJ.
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: Video from io 2012 : The History and Future of Google Web Toolkit

2012-07-11 Thread Vasu
thanks

On Wednesday, 11 July 2012 04:56:06 UTC+5:30, Jim Douglas wrote:

 https://developers.google.com/events/io/sessions/gooio2012/218/ 

 https://www.youtube.com/watch?v=VOf27ez_Hvg 

 On Jul 6, 12:57 am, Nicolas Antoniazzi nicolas.antonia...@gmail.com 
 wrote: 
  Does anyone know if there is a video about the gwt session from io 2012: 
  The History and Future of Google Web Toolkit by Ray Cromwell? 
  
  I know that it was not live streamed, but I tought that we could get a 
  delayed video.

-- 
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/-/UKnZw7U0ykwJ.
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: Swing UI Thread exception

2012-07-11 Thread Venkat
Hi Joseph, basically our project is not using SmartGWT gui, we rather chose 
to use only server side of SmartGWT. That is what I have confusion, becuase 
I never did this before.

Also, I need to know what will be the entry point class in this regard, 
since there is no SmartGWT gui involved.

Thanks.

On Tuesday, July 10, 2012 12:17:40 PM UTC-4, Joseph Lust wrote:

 Why are you using Swing and threads with GWT?


 Sincerely,
 Joseph


-- 
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/-/YT5hL9fSzA8J.
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: SuperDevMode stuck on compiling

2012-07-11 Thread Thomas Broyer

On Wednesday, July 11, 2012 3:27:13 PM UTC+2, Chris Gamache wrote:

 Stopped on that line above when propName == 'remove' here's the call stack:

  console.trace()
   (anonymous function)
   (anonymous function)
   evaluate
   InjectedScript._evaluateOn
   InjectedScript._evaluateAndWrap
   InjectedScript.evaluateOnCallFrame
   computePropValue mymodule.nocache.js:326
   mymodule.__getPropMap mymodule.nocache.js:389
   getBindingParameters dev_mode_on.js:324
   compile dev_mode_on.js:388
   runBookmarklet dev_mode_on.js:414
   (anonymous function) dev_mode_on.js:427
   (anonymous function)


Are you using any third-party lib? One that would manipulate the 
Array.prototype?
There's a small bug in the xsiframe linker generated script, rather a bad 
practice than a bug actually: using an Array as if it were an Object 
first, and using a for…in on it without checking hasOwnProperty; and when 
combined with the other bad practice of augmenting prototypes, it breaks!
Not really a bug in the generated script, just that it can break relatively 
easily if there are bugs/bad practices elsewhere.

I just tried it in Chrome dev tools' console:
var values = [];
values['foo'] = 'foo';
values['bar'] = 'bar';
for (var key in values) { console.log(key); }

The above should print foo and bar.

Now, add the following and then start the for loop again:
Array.prototype.remove = function() { console.log(remove); }
(using Array.prototype here, because 'values' is an array; would be true 
with Obejct.prototype if 'values' had been initialized with {})
It'll now print foo, bar, remove.

Should be relatively easy to hack around it: locate __getPropMap in your 
nocache.js and change the for-loop to add the following if:
for (key in values) {
  if (values.hasOwnProperty(key)) {
...
  }
}

-- 
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/-/0N3s4xhiQ3gJ.
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.



SuperDevMode compile time

2012-07-11 Thread Marius Grama
On the application I am working, for the gwt draft compile (via Dev mode 
on bookmarklet) CodeServer takes about 30-45 seconds.
The draft compile from Eclipse with GWT compile for one browser with 
-draftCompile argument takes ~70 seconds.

As I've read on this blog post 
http://tbroyer.posterous.com/how-does-gwts-super-dev-mode-work which explains 
how GWT Superdevmode works, the compilation should take *under 10 seconds*.

I'd like to ask some opinions on how much it takes the compile time for 
other developers who work with GWT Superdevmode on their applications. Does 
it run under 10 seconds for you?

Also when the draft compilation takes 30-40 seconds, I am still happy with 
the results, because it works much faster as with GWT Eclipse Devmode 
Plugin, but maybe I have misconfigured something in my application and this 
is why the compile takes so long.

-- 
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/-/y3SWlMfcn2sJ.
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: SuperDevMode compile time

2012-07-11 Thread Paul Stockley
I think I remember reading that there may be a problem with some of the 
generators running all the time (rpc and client bundle) even if nothing has 
changed. That could be causing some projects to be slow. Also ray mentioned 
that the linking phase was taking longer then he expected in some cases. I 
think there will be some fine tuning required.

On Wednesday, July 11, 2012 10:10:18 AM UTC-4, Marius Grama wrote:

 On the application I am working, for the gwt draft compile (via Dev mode 
 on bookmarklet) CodeServer takes about 30-45 seconds.
 The draft compile from Eclipse with GWT compile for one browser with 
 -draftCompile argument takes ~70 seconds.

 As I've read on this blog post 
 http://tbroyer.posterous.com/how-does-gwts-super-dev-mode-work which explains 
 how GWT Superdevmode works, the compilation should take *under 10 seconds*
 .

 I'd like to ask some opinions on how much it takes the compile time for 
 other developers who work with GWT Superdevmode on their applications. Does 
 it run under 10 seconds for you?

 Also when the draft compilation takes 30-40 seconds, I am still happy with 
 the results, because it works much faster as with GWT Eclipse Devmode 
 Plugin, but maybe I have misconfigured something in my application and this 
 is why the compile takes so long.


-- 
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/-/iZ2O0-G5xq0J.
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 FileUpload Help :-(

2012-07-11 Thread Vasu
I haven't gone through your problem, so not able to answer your question. 
But I would suggest you to use gwtupload library which has both server side 
and client side implementation. http://code.google.com/p/gwtupload/

Regards,
-Pandurang.

On Monday, 9 July 2012 18:15:55 UTC+5:30, Alexander Bonzo Supertramp wrote:

 Hi all,
 i'm working on GWT FileUpload. I have two side, clinet and server. In 
 client there are a form with FileUpload widget and a submit button that 
 send a file to server side. The problem is that the check
 if (ServletFileUpload.isMultipartContent(request))
   {}

 is true (so there is a file in request) but when i iterate  the line 4 is 
 false.
 
  1. List items = upload.parseRequest(request);
  2.Iterator iter = items.iterator();
  3.FileItem item;
  4.while (iter.hasNext()) { 
 ...
 }

 so i can't process the file sended. Can anybody help me?
 I attach my code (client and server side). Thanks to all.
 With respect,
 Alex.
  
 


-- 
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/-/ZFnCw5_MduIJ.
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: SuperDevMode compile time

2012-07-11 Thread Jens
You are not alone. Take a look at the comments at 
https://groups.google.com/forum/?fromgroups#!topic/google-web-toolkit-contributors/RApHAZBy348
 
for some results of other developers.

-- 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/-/qo9KN7WESbAJ.
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: SuperDevMode stuck on compiling

2012-07-11 Thread Chris Gamache

I am using Ext-Js LGPL via GWT-Ext, and they have indeed modified the Array 
prototype. Not much I can do about that. I'm stuck there.

I hacked in the modification, and it will get through to compile now. Is 
there already an issue in the tracker for the xsiframe generator bug/bad 
practice?

On Wednesday, July 11, 2012 10:02:57 AM UTC-4, Thomas Broyer wrote:


 On Wednesday, July 11, 2012 3:27:13 PM UTC+2, Chris Gamache wrote:

 Stopped on that line above when propName == 'remove' here's the call 
 stack:

  console.trace()
   (anonymous function)
   (anonymous function)
   evaluate
   InjectedScript._evaluateOn
   InjectedScript._evaluateAndWrap
   InjectedScript.evaluateOnCallFrame
   computePropValue mymodule.nocache.js:326
   mymodule.__getPropMap mymodule.nocache.js:389
   getBindingParameters dev_mode_on.js:324
   compile dev_mode_on.js:388
   runBookmarklet dev_mode_on.js:414
   (anonymous function) dev_mode_on.js:427
   (anonymous function)


 Are you using any third-party lib? One that would manipulate the 
 Array.prototype?
 There's a small bug in the xsiframe linker generated script, rather a bad 
 practice than a bug actually: using an Array as if it were an Object 
 first, and using a for…in on it without checking hasOwnProperty; and when 
 combined with the other bad practice of augmenting prototypes, it breaks!
 Not really a bug in the generated script, just that it can break 
 relatively easily if there are bugs/bad practices elsewhere.

 I just tried it in Chrome dev tools' console:
 var values = [];
 values['foo'] = 'foo';
 values['bar'] = 'bar';
 for (var key in values) { console.log(key); }

 The above should print foo and bar.

 Now, add the following and then start the for loop again:
 Array.prototype.remove = function() { console.log(remove); }
 (using Array.prototype here, because 'values' is an array; would be true 
 with Obejct.prototype if 'values' had been initialized with {})
 It'll now print foo, bar, remove.

 Should be relatively easy to hack around it: locate __getPropMap in your 
 nocache.js and change the for-loop to add the following if:
 for (key in values) {
   if (values.hasOwnProperty(key)) {
 ...
   }
 }



-- 
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/-/dO3YxsIfnhMJ.
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 FileUpload Help :-(

2012-07-11 Thread JoseM
For one, you need to add the FileUpload object to the form, not the panel, 
that will probably solve your problem.

I would also probably create a separate servlet just for the file upload 
that only handles your file uploads and is not used for GWT RPC since the 
overriding of the post can interfere with what GWT expects the servlet to 
do.

On Monday, July 9, 2012 8:45:55 AM UTC-4, Alexander Bonzo Supertramp wrote:

 Hi all,
 i'm working on GWT FileUpload. I have two side, clinet and server. In 
 client there are a form with FileUpload widget and a submit button that 
 send a file to server side. The problem is that the check
 if (ServletFileUpload.isMultipartContent(request))
   {}

 is true (so there is a file in request) but when i iterate  the line 4 is 
 false.
 
  1. List items = upload.parseRequest(request);
  2.Iterator iter = items.iterator();
  3.FileItem item;
  4.while (iter.hasNext()) { 
 ...
 }

 so i can't process the file sended. Can anybody help me?
 I attach my code (client and server side). Thanks to all.
 With respect,
 Alex.
  
 


-- 
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/-/cWTIkrqnSPIJ.
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: SuperDevMode stuck on compiling

2012-07-11 Thread Thomas Broyer


On Wednesday, July 11, 2012 5:46:16 PM UTC+2, Chris Gamache wrote:


 I am using Ext-Js LGPL via GWT-Ext, and they have indeed modified the 
 Array prototype. Not much I can do about that. I'm stuck there.

 I hacked in the modification, and it will get through to compile now. Is 
 there already an issue in the tracker for the xsiframe generator bug/bad 
 practice?


I don't know of any, and this __getPropMap seems to only be used for 
SuperDevMode so it's not surprising that this bug hadn't been discovered 
yet.

-- 
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/-/DPGOImHgGdMJ.
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: HTML 5 native dragover event of DataGrid cell never fired

2012-07-11 Thread Miltos Miltiadou
Hi, can you post the sample code for setting the effectAllowed and 
dropEffect via JSNI?

Thanks in advance.
Miltos

On Friday, June 22, 2012 2:33:07 PM UTC+3, js wrote:

 Hi,

 actually I have the effectAllowed and dropEffect set via JSNI.

 Actually I have already figured out what the problem was: I did not 
 setData() on DataTransfer object. As you also suggested. (Yep, asking a 
 question helps to figure out the answer :)
 Anyway thanks for your reply.

 *TL;TR *Solution is to set any data to DataTransfer object of dragstart 
 event. e.g. event.getDataTransfer().setData(text, anything)


 On Friday, June 22, 2012 12:58:25 PM UTC+2, Thomas Broyer wrote:

 To properly initiate a drag, you have to set the effectAllowed.
 http://dev.w3.org/html5/spec/dnd.html#introduction-7
 It looks like you'll to use JSNI though, as this property is not exposed 
 by GWT on the DataTransfer object.
 Or maybe it's just because you didn't call setData() in your Cell 
 (event.getDataTransfer().setData(text, test))


 On Friday, June 22, 2012 12:27:43 PM UTC+2, js wrote:

 Hi,

 I've been having hard time trying to make DataGrid rows sortable with 
 HTML 5 native drag and drop.
 I have custom Cell which sinks drag events (see below). If I drag the 
 cell dragstart event is fired but visualization of drag operation is not 
 displayed. Moreover dragover event on other cells in DataGrid is also never 
 fired, which I think is cause of the missing visualization of drag 
 operation. It seems like that dragdrop operation is not initialized 
 properly.

 I've tried to create test Label (see below) for which everything works 
 OK, i.e. when dragged dragstart is fired (on Label object). When dragged 
 over Datagrid cells the dragover events are fired on cell's object, even 
 drop event is properly fired.

 I suspect DataGrid widget that it swallows the event somewhere in it's 
 onBrowserEvent() but I wasn't able to find the place where it happens.

 Does anybody has an idea what's wrong here or what do I do wrong?

 public class DraggableTextCell extends AbstractCellString
 {
 public DraggableTextCell() 
 {
 super(
 dragstart,
 drag,
 dragover,
 drop
 );
 }

 @Override
 public void render(
 final Context context,
 final String value,
 final SafeHtmlBuilder sb
 )
 {
 sb.append(mTemplates.textCell(value));
 }

 @Override
 public void onBrowserEvent(
 final Context context,
 final Element parent,
 final String value,
 final NativeEvent event,
 final ValueUpdaterString valueUpdater
 )
 {
 final String eventType = event.getType();
 if (eventType.equals(dragstart))
 {
 log.info(dragStart);
 }
 else if (eventType.equals(DragEvent.DRAG.nativeType()))
 {
 log.info(drag);
 }
 else if (eventType.equals(DragEvent.DRAG_OVER.nativeType()))
 {
 log.info(dragOver);
 }
 else if (eventType.equals(DragEvent.DROP.nativeType()))
 {
 event.preventDefault();
 event.stopPropagation();
 log.info(drop);
 }
 }
 }


 /* Test label */
 final Label l = new Label(Draggable);
 l.getElement().setDraggable(Element.DRAGGABLE_TRUE);
 l.addDragStartHandler(new DragStartHandler() {
 @Override
 public void onDragStart(final DragStartEvent event)
 {
 event.setData(text, test);
 }
 });



-- 
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/-/k3Zpy8Hl3Z4J.
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: Automating GWT application

2012-07-11 Thread Joseph Lust
For most testing frameworks you can add a property (either in UiBinder or 
using element.setAttribute('debugId','myId')), and then your testing 
framework looks for that element. Since HTML spec says unknown attributes 
are silently ignored, you can just add debugId='myId' and then the 
browser ignores it, but the DOM will still allow you to select elements 
using it.


Hope that helps,

Sincerely,
Joseph

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



Re: code splitting in depth

2012-07-11 Thread Joseph Lust
Compile your application with 
SOYChttp://code.google.com/p/google-web-toolkit/wiki/CodeSplitting and 
you can use that report to see where your split points are being generated. 
You can use that to confirm splitting is occurring as desired.

Sincerely,
Joseph

-- 
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/-/y9PoI6p4sYcJ.
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: Swing UI Thread exception

2012-07-11 Thread Joseph Lust
I've no experience with doing this. You might be blazing a new trail. Good 
luck.

Sincerely,
Joseph

-- 
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/-/KNU3fg8LUj8J.
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 template mechanism

2012-07-11 Thread CF
Hi all,

Is there a templating mechanism that is typically used in GWT?  I am asked 
to produce one, similar to how JSP does it (
http://java.sun.com/developer/technicalArticles/javaserverpages/jsp_templates/) 
for a GWT project.  Links to examples or tutorials would be great.

Thanks

-- 
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/-/7JLodTUXU5sJ.
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 template mechanism

2012-07-11 Thread Joseph Lust
Yes.  https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels


Sincerely,
Joseph

-- 
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/-/q37s_yKJ3QUJ.
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 assign a JSONObject or JavaScriptObject to $wnd[x] in GWT?

2012-07-11 Thread Joseph Lust
Depends how much faster. Compare that with the maintainability and 
readability of your code. It might make more sense to use a more 
transparent option, even if there is a small performance hit. Further, 
there should not be much deserialization delay unless you're bringing in a 
lot of (thousands) of objects.

Also Checkout 
AutoBeanhttp://code.google.com/p/google-web-toolkit/wiki/AutoBean. 
It works well with JSON.

Sincerely,
Joseph

-- 
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/-/aZru1abaryMJ.
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: HTML 5 native dragover event of DataGrid cell never fired

2012-07-11 Thread js
Hi,

here it is. Nothing special.

private native void setEffectAllowed(DataTransfer dataTransfer, String 
effect)
/*-{
dataTransfer.effectAllowed = effect;
}-*/;

private native void setDropEffect(DataTransfer dataTransfer, String 
effect)
/*-{
dataTransfer.dropEffect = effect;
}-*/;

On Wednesday, July 11, 2012 6:59:55 PM UTC+2, Miltos Miltiadou wrote:

 Hi, can you post the sample code for setting the effectAllowed and 
 dropEffect via JSNI?

 Thanks in advance.
 Miltos

 On Friday, June 22, 2012 2:33:07 PM UTC+3, js wrote:

 Hi,

 actually I have the effectAllowed and dropEffect set via JSNI.

 Actually I have already figured out what the problem was: I did not 
 setData() on DataTransfer object. As you also suggested. (Yep, asking a 
 question helps to figure out the answer :)
 Anyway thanks for your reply.

 *TL;TR *Solution is to set any data to DataTransfer object of dragstart 
 event. e.g. event.getDataTransfer().setData(text, anything)


 On Friday, June 22, 2012 12:58:25 PM UTC+2, Thomas Broyer wrote:

 To properly initiate a drag, you have to set the effectAllowed.
 http://dev.w3.org/html5/spec/dnd.html#introduction-7
 It looks like you'll to use JSNI though, as this property is not exposed 
 by GWT on the DataTransfer object.
 Or maybe it's just because you didn't call setData() in your Cell 
 (event.getDataTransfer().setData(text, test))


 On Friday, June 22, 2012 12:27:43 PM UTC+2, js wrote:

 Hi,

 I've been having hard time trying to make DataGrid rows sortable with 
 HTML 5 native drag and drop.
 I have custom Cell which sinks drag events (see below). If I drag the 
 cell dragstart event is fired but visualization of drag operation is not 
 displayed. Moreover dragover event on other cells in DataGrid is also 
 never 
 fired, which I think is cause of the missing visualization of drag 
 operation. It seems like that dragdrop operation is not initialized 
 properly.

 I've tried to create test Label (see below) for which everything works 
 OK, i.e. when dragged dragstart is fired (on Label object). When dragged 
 over Datagrid cells the dragover events are fired on cell's object, even 
 drop event is properly fired.

 I suspect DataGrid widget that it swallows the event somewhere in it's 
 onBrowserEvent() but I wasn't able to find the place where it happens.

 Does anybody has an idea what's wrong here or what do I do wrong?

 public class DraggableTextCell extends AbstractCellString
 {
 public DraggableTextCell() 
 {
 super(
 dragstart,
 drag,
 dragover,
 drop
 );
 }

 @Override
 public void render(
 final Context context,
 final String value,
 final SafeHtmlBuilder sb
 )
 {
 sb.append(mTemplates.textCell(value));
 }

 @Override
 public void onBrowserEvent(
 final Context context,
 final Element parent,
 final String value,
 final NativeEvent event,
 final ValueUpdaterString valueUpdater
 )
 {
 final String eventType = event.getType();
 if (eventType.equals(dragstart))
 {
 log.info(dragStart);
 }
 else if (eventType.equals(DragEvent.DRAG.nativeType()))
 {
 log.info(drag);
 }
 else if (eventType.equals(DragEvent.DRAG_OVER.nativeType()))
 {
 log.info(dragOver);
 }
 else if (eventType.equals(DragEvent.DROP.nativeType()))
 {
 event.preventDefault();
 event.stopPropagation();
 log.info(drop);
 }
 }
 }


 /* Test label */
 final Label l = new Label(Draggable);
 l.getElement().setDraggable(Element.DRAGGABLE_TRUE);
 l.addDragStartHandler(new DragStartHandler() {
 @Override
 public void onDragStart(final DragStartEvent event)
 {
 event.setData(text, test);
 }
 });



-- 
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/-/M9s-5uaXF9UJ.
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 template mechanism

2012-07-11 Thread CF
Thanks.  So just making sure I understand, I can just swap in the panel 
that I want for content?  Is there a benefit to using UiBinder?  

On Wednesday, July 11, 2012 11:20:13 AM UTC-7, Joseph Lust wrote:

 Yes.  
 https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels


 Sincerely,
 Joseph


-- 
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/-/id0WQtIXNaYJ.
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.



Super Dev Mode How To (Eclipse) - Highly Recommended

2012-07-11 Thread mp31415
Just came across a wonderful blog of David Kurka that helped me get going 
with Super Dev Mode: 
super-dev-modehttp://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html
.
Thank you, David.

-- 
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/-/P5GDSB624qAJ.
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: Super Dev Mode How To (Eclipse) - Highly Recommended

2012-07-11 Thread mp31415
It's actually Daniel Kurka - sorry Daniel.

On Wednesday, July 11, 2012 3:36:42 PM UTC-4, mp31415 wrote:

 Just came across a wonderful blog of David Kurka that helped me get going 
 with Super Dev Mode: 
 super-dev-modehttp://blog.daniel-kurka.de/2012/07/mgwt-super-dev-mode.html
 .
 Thank you, David.


-- 
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/-/x47vU_HwoxgJ.
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 template mechanism

2012-07-11 Thread Joseph Lust
Essentially yes. The plus of using UiBinder is that you can keep the 
HTML/UI markup in a separate file in nearly the same HTML format that it 
will be rendered as, and keep the logic in a Java class. It is a 
cleaner/easier way to work with UI's.


Sincerely,
Joseph

-- 
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/-/m18RnxGZu2sJ.
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.



Weird behaviour when using url encoded %

2012-07-11 Thread kohlerfc
Hey guys,

I originally posted this on the GWTP forums but they seemed to think that 
it might be a GWT issue.

Im having issues when I try to use URL.encodeQueryString() on %. Basically 
it shows up in my browser url as %252525 rather then %25.  Is this a known 
bug in GWTP or in GWT? I have debugged down deep into GWTP and  the 
parameter seems to be set at %25 all the way along(as far as I could debug).

Also it seems to come back through gwtp as place request parameter with a 
value of %25 which is what I expect . So I just use the 
URL.decodeQueryString() and it works fine for now... 

Any help would be appreciated.

-- 
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_6xgxC-oFQJ.
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: Hierachy of autobean for state serialization

2012-07-11 Thread amir
While I agree that RequestFactory is the ultimate solution, we don't always 
have the luxury of selecting which server to communicate with .. I am bound 
to using JSON-RPC as our server end is in .NET ..

I faced the same polymorphism solution, and solved it by creating a mondo 
interface .. I created one interface that extends all subclasses of the 
base type ..

Our process is somewhat convoluted ... using soap to import all possible 
models, params, and results .. Then running a script to sanitize the data 
and create autobean compatible interfaces out of this data..

My issue was serializing one param that was a generic filter .. creating 
this mondo interface lets me set only the values I want yet allows for 
every field I've set to be serialized..

cheers

On Friday, 3 June 2011 14:55:39 UTC-4, Derek wrote:

 Thanks for posting this, Panam. I was just starting to consider using 
 AutoBean with LocalStorage, since storing a JSON string seems like the 
 best solution than rolling my own custom serializer. I haven't gotten 
 too far into it beyond some simple test cases. 

 For 2), I seem to recall seeing that polymorphism for AutoBean is an 
 eventual goal for the GWT group, but 2.3 doesn't support it. 

 For 1), my thoughts would either be on using AutoBeanVisitor (which 
 can only see things already explicitly added, so probably not) or a 
 generator (which might trip up AutoBean's generator), but I haven't 
 tried either in the way you describe, so maybe I'm wrong. 

 I think the official way is to have an interface for each subclass in 
 your AutoBeanFactory, so for example: 

 public interface Base { 
   getName() / setName() 
 } 

 public class BaseImpl implements Base { ... } 

 public interface Color extends Base { 
   getColor() / setColor() 
 } 

 public class ColorImpl extends BaseImpl implements Color { ... } 

 public interface Serializer extends AutoBeanFactory { 
   AutoBeanBase wrap(Base wrap); 
   AutoBeanColor wrap(Color wrap); 
 } 

 That works if you only have a small handful of subclasses, but it gets 
 progressively worse the more you add. 

 On Jun 2, 3:48 am, Panam pandem...@googlemail.com wrote: 
  Hm, I am just looking for a way to enocde and persist (webstore) state 
  (some POJO properties) on the client. 
  I have difficulties to see see how the RequestFactory will help me 
  here as my intention is that it is for client server communication. 
  However, it ought to be possible (at least, it has to do serialization 
  to put the data on the wire). 
  As I understand autobeans, they are that part of the bindery framework 
  that is used for this purpose (amongst all by the request factory 
  itself). That's why I am trying to use them here. 
  
  Regards, 
  panam

-- 
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/-/2xL-2JthgdQJ.
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: CellTable not rendering rows in production mode?

2012-07-11 Thread astuckey
Hi Emp,

Just a ping to see if you had any luck with this issue?
I am experiencing the exact same problem.
All looks good in dev mode, but switch to production mode and the celltable 
no longer renders it's rows.
The data backing the rows is still there, as I hooked up some key listeners 
to trigger pagination which still works,
 the server get the requests and sends the responses which then appear to 
be added to the model ok, but just not rendered in the celltable...

I'm also using the AsyncDataProvider to handle the data collection for the 
pagination requests.

Cheers,
Adam

On Friday, 6 January 2012 02:53:16 UTC+11, Emp wrote:

 Hi there - 
we are experiencing an issue where a rather complex CellTable 
 refuses to render its rows in production (compiled) mode, while 
 working perfectly in development mode. 

We are using an async data provider, the table is built in a 
 superclass and then handled in a subclass, and has a few custom cells 
 (one accesing native DOM events)... 

Trivial controls (anything that can be done with eyes + Firebug) 
 are all OK: the async request for data is fired, the loading spinner 
 renders OK, data arrives fine, spinners disappears, and then nothing. 
 No rows, nothing. The table body HTML element simply stays empty. 

Since we (negligently, I admit) stopped deploying to production 
 mode after the initial spikes, I am not able to trace back a single 
 point in time when this started happening, and this is a big head- 
 scratcher... 

I am wondering if anyone here: 
 - has had similar issues in the past 
 - can point us to some resources / ideas about any items we should 
 be paying attention and that can cause behaviour differences between 
 development and production 
- can give us a hint about any ways to debug / check what may be 
 going wrong 

 Bye and thanks, 

 Emp

-- 
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/-/AcudeSrcTwQJ.
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 FileUpload Help :-(

2012-07-11 Thread Luis O.
I think this may be the problem.

In GreetingServiceImpl.java:38

File temp = new File(C:\\Users\\Alex\\Desktop\\temp.txt); =
It should be a directory

Regards,

Luis

On Mon, Jul 9, 2012 at 5:45 AM, Alexander Bonzo Supertramp
rictam...@gmail.com wrote:
 Hi all,
 i'm working on GWT FileUpload. I have two side, clinet and server. In client
 there are a form with FileUpload widget and a submit button that send a file
 to server side. The problem is that the check
 if (ServletFileUpload.isMultipartContent(request))
   {}

 is true (so there is a file in request) but when i iterate  the line 4 is
 false.

  1. List items = upload.parseRequest(request);
  2.Iterator iter = items.iterator();
  3.FileItem item;
  4.while (iter.hasNext()) {
 ...
 }

 so i can't process the file sended. Can anybody help me?
 I attach my code (client and server side). Thanks to all.
 With respect,
 Alex.



 --
 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/-/sU3XvsU4PmMJ.
 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.



Disabling Ctrl + P short cut key on IE Browser

2012-07-11 Thread James
Hi,

I have a requirement to do something different for the short cut 'Ctrl + 
P', I tried using event.getEvent().preventDefault() or 
event.getEvent().getNativeEvent().preventDefault() which works well for 
Firefox and Chrome but it does not work for IE(8  9). Please suggest me 
something. 

Thanks 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/-/JMFCx4_oLgAJ.
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.



Disable Ctrl +p shortcut key on IE browser

2012-07-11 Thread James
Hi All,

I have a requirement where system needs to do something different for short 
cut key Ctrl + p rather than printing the web page.

I have tried using 'event.getEvent().preventDefualt()' or 
event.getEvent().getNativeEvent().preventDefault() which works well for 
firefox and chrome but not for IE(8  9).

Please suggest me a solution for the same.

Thanks

-- 
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/-/a3jCFSZ-yUsJ.
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: Vaadin 7 to include GWT

2012-07-11 Thread Joonas Lehtinen

Vaadin 7.0 contains the underlaying work to separate widgets from 
server-side by splitting the client-side to widget and connector. The 
widget itself has nothing to do with the server-side, and the connector 
handles all communications to the server.

That said, the widgetset included in Vaadin 7.0 is not yet updated to 
contain proper client-side API:s. We'll update the widgets one by one in 
upcoming minor releases so that they will be useful to be used in 
client-side.


On Tuesday, July 3, 2012 6:25:25 AM UTC-7, nino wrote:

 Pretty cool news. 
 Does this mean that Vaadin Widget will now work client side too ? 

 2012/7/3 Joonas Lehtinen j...@jole.fi

  As announced at Google IO, the upcoming Vaadin Framework 7 will include 
 GWT as its core component and will be fully compatible with GWT. 
 This way Vaadin will allow user interface development both on the 
 server-side and on the client-side. Server-side development is optimized 
 for productivity with fully automated communications and browser-side. 
 Client-side development gives a full control of rendering and 
 communications to the developer who can still use Java as the programming 
 language. 

 Vaadin 7 release is expected in the beginning of October. The first 
 developer preview version (alpha 3) with GWT built-in was released today.

 More info about this can be found at https://vaadin.com/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/-/kP_LaryJWmIJ.
 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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/V93YsJU6VrYJ.
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: Video from io 2012 : The History and Future of Google Web Toolkit

2012-07-11 Thread Steve
Video is now online!

http://youtu.be/VOf27ez_Hvg


On Tuesday, 10 July 2012 07:46:57 UTC+1, Miкола wrote:

 Actually, many of session recordings from day 3 are not yet available 
 online. So, hopefully the GWT session will be on YouTube soon, along with 
 all the remaining Friday presentations...


 On Friday, July 6, 2012 3:22:10 AM UTC-7, Paulo Martins wrote:

 I'm also looking for this presentation. It's really strange it's not 
 already uploaded, because it seems that all presentations are already 
 uploaded.

 In the meanwhile, Ray Cromwell has shared his slides on G+: 

 https://docs.google.com/presentation/d/1pC9WK80-fzIs2iMQOO3Jsvfmqv2erI9xucuF3lHOE7Q/edit

 If anyone find the video, please, share!


 On Friday, July 6, 2012 8:57:28 AM UTC+1, Nicolas Antoniazzi wrote:

 Does anyone know if there is a video about the gwt session from io 2012: 
 The History and Future of Google Web Toolkit by Ray Cromwell?

 I know that it was not live streamed, but I tought that we could get a 
 delayed video.



-- 
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/-/mgHSVi1QwjIJ.
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: Video from io 2012 : The History and Future of Google Web Toolkit

2012-07-11 Thread Andreas
Now available at http://www.youtube.com/watch?v=VOf27ez_Hvg


-- 
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/-/s63um8IqQEQJ.
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: Vaadin 7 to include GWT

2012-07-11 Thread Joonas Lehtinen


On Tuesday, July 3, 2012 8:48:48 AM UTC-7, deepak chauhan wrote:

 A quick question.. If GWT is for client side then what is vaadin for?


Both server-side and client-side. When you want to get maximum 
productivity, program on server-side. When you want control over 
communications and rendering - or want to do offline - program on 
client-side.

  

-- 
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/-/--FAqRXAIioJ.
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.



Migrating a GWT AppEngine App to a Chrome offline app

2012-07-11 Thread Vishal Singh
I  have made a enterprise application using GWT and AppEngine. There are 
some set of customers who want the data to be stored locally only for 
security reasons.

I am planning to develop an Chrome offline 
apphttp://code.google.com/chrome/extensions/trunk/apps/about_apps.html by 
using most of the current code. I have to change my current data server 
layer ( AppEngine) to something locally. There is lot of GWT code written 
which I would like to reuse in my offline app. The question is can this be 
all done ?  As I understand the GWT layer should just work in my offline 
app. I  think the hard problem is the data layer.

Any thoughts on the above problem will be appreciated.


Vishal

-- 
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/-/G_FefTZQcQoJ.
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: Migrating a GWT AppEngine App to a Chrome offline app

2012-07-11 Thread Ashwin Desikan
Vishal,

What options have you considered so far? Check out html5 offline Mode. This 
maybe a good way to store data offline and probably sync to the server if your 
customer wants the data to be available online. 

One issue with offline Mode would the data would be cleared if the user cleans 
up his browser cache/ temp files. 

~Ashwin

Sent from my iPhone

On Jul 12, 2012, at 10:12 AM, Vishal Singh singh.vi...@gmail.com wrote:

 I  have made a enterprise application using GWT and AppEngine. There are some 
 set of customers who want the data to be stored locally only for security 
 reasons.
 
 I am planning to develop an Chrome offline app by using most of the current 
 code. I have to change my current data server layer ( AppEngine) to something 
 locally. There is lot of GWT code written which I would like to reuse in my 
 offline app. The question is can this be all done ?  As I understand the GWT 
 layer should just work in my offline app. I  think the hard problem is the 
 data layer.
 
 Any thoughts on the above problem will be appreciated.
 
 
 Vishal
 -- 
 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/-/G_FefTZQcQoJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.

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



[gwt-contrib] Re: @RequestFor should support interfaces, Fix issue 7509 (issue1764804)

2012-07-11 Thread t . broyer

Please add unit-tests (even better if you test edge-cases).

Also, John no longer works at Google (or has he moved to other
offices?), and is probably not the best fit for a review on
RequestFactory.

Finally, could you please base your patch on trunk rather than
releases/2.5 (not really an issue here, as there are very few
differences between the two branches, but still a good practice to
follow).


http://gwt-code-reviews.appspot.com/1764804/diff/1/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
File
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java
(right):

http://gwt-code-reviews.appspot.com/1764804/diff/1/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java#newcode84
user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java:84:
classes.addAll(Arrays.asList(domainClass.getInterfaces()));
To be complete, you'd have to call getInterfaces() on all
getSuperclass(), and also call getInterfaces() recursively on all
interfaces.

Imagine a case with interface I2 extends I1, class C2 extends C1 and
class C1 implements I2, and you have a @ProxyFor(I1.class).
To find the proxy, getSuperclass on C2 will give you C1, getInterfaces
on C1 will give you I2, and finally getInterfaces on I2 will give you
I1.

The easiest here would be to make a recursive call (and take advantage
of the fact getSuperclass() returns 'null' for interfaces, so you don't
even have to tell interfaces apart and just use the same method for
everything).

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

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


Re: [gwt-contrib] Re: GWT 2.5 RC1 increases mgwt showcase by 22%

2012-07-11 Thread Manuel Carrasco Moñino
I migrated a couple of projects to 2.5.0-rc1 and the size decreased in a
high degree, one of them is using mgwt btw, of course I dont use all your
stuff  but I use many of the bundles, so I dont see any reason that mgwt is
the cause.

It is weird that you get an increment in gwtLang specially the
ClassLiteralHolder

FYI I have used this configuration for the comparison

  properties
gwt.styleOBF/gwt.style
gwt.compiler.compileReportfalse/gwt.compiler.compileReport
gwt.draftCompilefalse/gwt.draftCompile
gwt.compiler.optimizationLevel9/gwt.compiler.optimizationLevel
gwt.disableClassMetadatatrue/gwt.disableClassMetadata
gwt.disableCastCheckingtrue/gwt.disableCastChecking
gwt.extraJvmArgs-Xmx1g/gwt.extraJvmArgs
gwt.enableAssertionsfalse/gwt.enableAssertions
  /properties

- Manolo


On Sat, Jun 30, 2012 at 7:07 AM, Daniel Kurka
kurka.dan...@googlemail.comwrote:

 I Just took a quick look and its actually not just client bundle thats
 affected. If someone wants to take a look here are both soyc reports:
 https://www.dropbox.com/s/2edw73vpmde9oz4/soyc.zip

 -Daniel



 Am 30.06.2012 um 06:58 schrieb Daniel Kurka:

 I just had a few hours of spare time and went ahead and checked out the
 GWT release candidate together with mgwt showcase.

 I was quite staggered to see that it increases the Javascript size by 22%.
 I just took a brief look at the SOYC report and it seems that it fails to
 remove unused CSS from different permutations (that are actually not
 active). Somehow CSS for the blackberry permutations ends up in the iPhone
 permutation

 I am going to drill deeper into this, but to me this is quite critical.

 -Daniel







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

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

[gwt-contrib] Refactoring to set empty groups to include Default earlier. (issue1761805)

2012-07-11 Thread idol

Reviewers: Nick Chalko,

Description:
Refactoring to set empty groups to include Default earlier.
[JSR 303 TCK Result] 168 of 205 (81.95%) Pass with 29 Failures and 7
Errors.


Please review this at http://gwt-code-reviews.appspot.com/1761805/

Affected files:
  M  
user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java
  M  
user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java



Index:  
user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java

===
---  
user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java	 
(revision 11159)
+++  
user/src/com/google/gwt/validation/client/impl/AbstractGwtSpecificValidator.java	 
(working copy)

@@ -20,14 +20,12 @@
 import java.util.Collection;
 import java.util.Collections;
 import java.util.HashMap;
-import java.util.HashSet;
 import java.util.Map;
 import java.util.Set;

 import javax.validation.ConstraintValidator;
 import javax.validation.ConstraintViolation;
 import javax.validation.MessageInterpolator;
-import javax.validation.groups.Default;

 /**
  * strongEXPERIMENTAL/strong and subject to change. Do not use this in
@@ -92,15 +90,7 @@
 ConstraintValidatorContextImplA, V constraintValidatorContext =
 context.createConstraintValidatorContext(constraintDescriptor);

-// TODO(nchalko) set empties to Default earlier.
 SetClass? constraintGroup = constraintDescriptor.getGroups();
-if (groups.length == 0) {
-  groups = new Class?[]{Default.class};
-}
-if (constraintGroup.isEmpty()) {
-  constraintGroup = new HashSetClass?();
-  constraintGroup.add(Default.class);
-}

 // check groups requested are in the set of constraint groups  
(including the implicit group)

 if (!containsAny(groups, constraintGroup)
Index:  
user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java

===
---  
user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java	 
(revision 11159)
+++  
user/src/com/google/gwt/validation/rebind/GwtSpecificValidatorCreator.java	 
(working copy)

@@ -71,6 +71,7 @@
 import javax.validation.UnexpectedTypeException;
 import javax.validation.Valid;
 import javax.validation.ValidationException;
+import javax.validation.groups.Default;
 import javax.validation.metadata.BeanDescriptor;
 import javax.validation.metadata.ConstraintDescriptor;
 import javax.validation.metadata.PropertyDescriptor;
@@ -348,6 +349,8 @@
 writeValidateProperty(sw);
 sw.println();
 writeValidateValue(sw);
+sw.println();
+writeAddDefaultGroupWhenEmpty(sw);
 sw.println();
 writeGetDescriptor(sw);
 sw.println();
@@ -546,6 +549,32 @@
 return validateProperty_get + p.getPropertyName();
   }

+  private void writeAddDefaultGroupWhenEmpty(SourceWriter sw) {
+// private Class?[] addDefaultGroupWhenEmpty(Class? groups) {
+sw.println(private Class?[] addDefaultGroupWhenEmpty(Class?[]  
groups) {);

+sw.indent();
+
+// if (groups.length == 0) {
+sw.println(if (groups.length == 0) {);
+sw.indent();
+
+// groups = new Class?[]{Default.class};
+sw.print(groups = new Class?[]{);
+sw.print(asLiteral(Default.class));
+sw.println(};);
+
+// }
+sw.outdent();
+sw.println(});
+
+// return groups;
+sw.println(return groups;);
+
+// }
+sw.outdent();
+sw.println(});
+  }
+
   private void writeBeanDescriptor(SourceWriter sw) {
 BeanDescriptor beanDescriptor = beanHelper.getBeanDescriptor();

@@ -671,9 +700,15 @@
 constraint.getAttributes().entrySet()) {
   // .put(key, value)
   sw.print(.put();
-  sw.print(asLiteral(entry.getKey()));
+  String key = entry.getKey();
+  sw.print(asLiteral(key));
   sw.print(, );
-  sw.print(asLiteral(entry.getValue()));
+  Object value = entry.getValue();
+  // Add the Default group if it is not already present
+  if (groups.equals(key)  value instanceof Class[]   
((Class[])value).length == 0) {

+value = new Class[] { Default.class };
+  }
+  sw.print(asLiteral(value));
   sw.println());
 }

@@ -1012,6 +1047,9 @@
 sw.println(beanHelper.getTypeCanonicalName() +  object,);
 sw.println(Class?... groups) {);
 sw.outdent();
+
+// groups = addDefaultGroupWhenEmpty(groups);
+sw.println(groups = addDefaultGroupWhenEmpty(groups););

 // try {
 sw.println(try {);
@@ -1569,6 +1607,9 @@
 sw.print(p.getPropertyName());
 sw.println(\););

+// groups = addDefaultGroupWhenEmpty(groups);
+sw.println(groups = addDefaultGroupWhenEmpty(groups););
+
 // TODO(nchalko) move this out of here to the Validate method
 if (p.isCascaded()  hasValid(p, useField)) {

@@ -1658,6 +1699,9 @@
 sw.println(Object value,);
 sw.println(Class?... groups) {);
 

[gwt-contrib] Re: Refactoring to set empty groups to include Default earlier. (issue1761805)

2012-07-11 Thread idol

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

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


[gwt-contrib] Re: Added Aria roles and properties to the CellTree (issue1776803)

2012-07-11 Thread skybrian


http://gwt-code-reviews.appspot.com/1776803/diff/1/user/src/com/google/gwt/user/cellview/client/CellTree.java
File user/src/com/google/gwt/user/cellview/client/CellTree.java (right):

http://gwt-code-reviews.appspot.com/1776803/diff/1/user/src/com/google/gwt/user/cellview/client/CellTree.java#newcode1103
user/src/com/google/gwt/user/cellview/client/CellTree.java:1103: private
void updateAriaAttributes() {
This code looks involved enough that we should have some tests for it.

In fact, I think there's a bug in this CL. But just to make writing the
tests more interesting, I'll wait to tell you what it is :-)

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

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


[gwt-contrib] Adds directory listings for the source files served by Super Dev Mode. (issue1770804)

2012-07-11 Thread skybrian

Reviewers: acleung,

Description:
Adds directory listings for the source files served by Super Dev Mode.
This makes it easier to browse source code when you're not using the
Chrome debugger.
There are two new page types:
- A page for each module that lists all the directories containing at
least one Java file in the source map for that module.
- A page for each directory, listing all the source files in that
directory that are used in the source map.
Also, some refactoring: moved SourceMap manipulation to a SourceMap
class.


Please review this at http://gwt-code-reviews.appspot.com/1770804/

Affected files:
  M dev/codeserver/java/com/google/gwt/dev/codeserver/SourceHandler.java
  A dev/codeserver/java/com/google/gwt/dev/codeserver/SourceMap.java
  M dev/codeserver/java/com/google/gwt/dev/codeserver/WebServer.java
  A dev/codeserver/java/com/google/gwt/dev/codeserver/directorylist.html
  A dev/codeserver/java/com/google/gwt/dev/codeserver/filelist.html
  M dev/codeserver/java/com/google/gwt/dev/codeserver/modulepage.html


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


[gwt-contrib] Re: Allowing users to hit enter when focused on table header cell to sort a sortable column. Also ma... (issue1765804)

2012-07-11 Thread skybrian

Seems reasonable. Could you write a test to make sure it continues to
work?


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

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


[gwt-contrib] Using RequestFactory, AutoBean equality compares stableId proxyClass, which will NPE if stableId is not set.

2012-07-11 Thread Eric Friesen
This occurs in the ValueProxyCategory:

http://code.google.com/searchframe#T04cSGC7sWI/trunk/user/src/com/google/web/bindery/requestfactory/shared/impl/ValueProxyCategory.javaq=ValueProxyCategory%20package:google-web-toolkit%5C.googlecode%5C.coml=42

It's causing our project to not be able to compare our AutoBean objects 
returned to us from RequestFactory requests. Would a change to check 
whether the AutoBeans have stable ids in the first place before trying to 
compare their proxy classes be acceptable? Or am I missing something in the 
big picture here and it's a bad idea. As far as I can tell it's an 
optimization to fail early without having to do a deep equals and this 
change would be alright. If this sounds reasonable I'll put in a fix for 
review.

Thanks!

-E

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

[gwt-contrib] Re: @RequestFor should support interfaces, Fix issue 7509 (issue1764804)

2012-07-11 Thread manuel . carrasco . m

Ok, I'll add tests including edge cases, I did not because I wanted to
be sure this feature was interesting enough.
I included John because he reviewed a bunch of commits I did some time
ago, and you because I know you have contributed a lot with RF.
I'll base patches in trunk, I thought gwt was focused in 2.5 until it is
released
Good points your examples and the recursive thing.

Thank you


On 2012/07/11 14:26:31, tbroyer wrote:

Please add unit-tests (even better if you test edge-cases).



Also, John no longer works at Google (or has he moved to other

offices?), and is

probably not the best fit for a review on RequestFactory.



Finally, could you please base your patch on trunk rather than

releases/2.5 (not

really an issue here, as there are very few differences between the

two

branches, but still a good practice to follow).



http://gwt-code-reviews.appspot.com/1764804/diff/1/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java

File


user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java

(right):



http://gwt-code-reviews.appspot.com/1764804/diff/1/user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java#newcode84

user/src/com/google/web/bindery/requestfactory/server/ResolverServiceLayer.java:84:

classes.addAll(Arrays.asList(domainClass.getInterfaces()));
To be complete, you'd have to call getInterfaces() on all

getSuperclass(), and

also call getInterfaces() recursively on all interfaces.



Imagine a case with interface I2 extends I1, class C2 extends C1

and class

C1 implements I2, and you have a @ProxyFor(I1.class).
To find the proxy, getSuperclass on C2 will give you C1, getInterfaces

on C1

will give you I2, and finally getInterfaces on I2 will give you I1.



The easiest here would be to make a recursive call (and take advantage

of the

fact getSuperclass() returns 'null' for interfaces, so you don't even

have to

tell interfaces apart and just use the same method for everything).




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

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


Re: [gwt-contrib] Re: @RequestFor should support interfaces, Fix issue 7509 (issue1764804)

2012-07-11 Thread John A. Tamplin
On Wed, Jul 11, 2012 at 11:19 AM, manuel.carrasc...@gmail.com wrote:

 I included John because he reviewed a bunch of commits I did some time
 ago,


Many of us that were in the Atlanta office are no longer with Google,
including John.  So, if you send mail to jlaba...@google.com, it will
simply bounce.  He may be interested in reviewing it in his spare time, but
you would need his non-Google email address.

-- 
John A. Tamplin

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

[gwt-contrib] Re: Add new CSS FunctionValue type as a first-class representation of value functions, hook it up in... (issue1735804)

2012-07-11 Thread ehwang

Sorry for the delay, I had interns start and have been busy with them.
:)


http://gwt-code-reviews.appspot.com/1735804/diff/1/user/src/com/google/gwt/resources/css/GenerateCssAst.java
File user/src/com/google/gwt/resources/css/GenerateCssAst.java (right):

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/src/com/google/gwt/resources/css/GenerateCssAst.java#newcode1056
user/src/com/google/gwt/resources/css/GenerateCssAst.java:1056: // Just
return a String representation of the original value
On 2012/06/09 09:07:18, tbroyer wrote:

That comment should probably be deleted.


Done.

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/src/com/google/gwt/resources/css/SubstitutionReplacer.java
File user/src/com/google/gwt/resources/css/SubstitutionReplacer.java
(right):

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/src/com/google/gwt/resources/css/SubstitutionReplacer.java#newcode71
user/src/com/google/gwt/resources/css/SubstitutionReplacer.java:71: for
(ListIteratorValue i = values.listIterator(); i.hasNext();) {
On 2012/06/12 23:34:37, skybrian wrote:

Some cleanup that's unrelated to your change (so you might not want to

do it),

but will make this code easier to understand: I think we shouldn't

modify the

list in place, but instead append all the values to a new list.

Something like

this:



ListValue result = new ArrayListValue(original.size());
for (Value val : original) {
   ... append stuff to result ...
}
return new ListValue(result);





Done.

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/src/com/google/gwt/resources/css/ast/CssProperty.java
File user/src/com/google/gwt/resources/css/ast/CssProperty.java (right):

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/src/com/google/gwt/resources/css/ast/CssProperty.java#newcode148
user/src/com/google/gwt/resources/css/ast/CssProperty.java:148: name,
values.getExpression());
On 2012/06/09 09:07:18, tbroyer wrote:

Shouldn't 'name' be passed through Generator.escape()?
(just in case, such as someone using f\u006Fo as the function name)


Done. Thanks for the catch.

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/test/com/google/gwt/resources/client/CSSResourceTest.java
File user/test/com/google/gwt/resources/client/CSSResourceTest.java
(right):

http://gwt-code-reviews.appspot.com/1735804/diff/1/user/test/com/google/gwt/resources/client/CSSResourceTest.java#newcode378
user/test/com/google/gwt/resources/client/CSSResourceTest.java:378:
assertEquals(1px solid rgba(0 , 0 , 0 , 0.2),
defines.multiValueBorderDef());
On 2012/06/09 09:07:18, tbroyer wrote:

Does that mean this test actually failed?


Yes, it failed before without the extra spaces. I've updated
ListValue.toCss() to check isSpaceRequired(), and the extra spaces
aren't needed now.

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

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