Re: How to send images with image map to client and create widget with it

2012-09-17 Thread tanteanni
thx,

especially for the security hint.

On Friday, 14 September 2012 16:45:29 UTC+2, Jens wrote:

 So for each image to server requests are necessary: 

 1 to get the dto and create html with image-url 
 2 to get the image from servlet


 Yes, although the second request is done by the browser and not by your 
 GWT app. To remove the browser request, you would need to use data uris 
 (base64) and use the data uri instead of the server url. But as you said, 
 you don't want that.

 Just be aware of XSS attacks. A possible man in the middle attack could 
 probably modify the raw html while its send from server to client. The html 
 would then contain some evil javascript that will be executed by the 
 browser in your app's context as soon as you render the html.

 -- 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/-/7eI0GotdbWAJ.
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-OpenLayers Project

2012-09-17 Thread Giuseppe La Scaleia
Hi folks,
there is a little example wrapping with gwt the Openlayers project.
Here the demo :
http://demo.gwt-openlayers.org/gwt_ol_showcase/GwtOpenLayersShowcase.html
Here the documentation : http://www.gwt-openlayers.org/

Regards Giuseppe

-- 
Giuseppe La Scaleia
CNR - IMAA
geoSDI
Sviluppo Software

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

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

web: http://www.geosdi.org

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: Integer and int are not equal... Especially if received via JSNI

2012-09-17 Thread pash7ka
Yes, this manual boxing is what i did to solve this.

I don't use DevMode because it's a bit difficult to configure my 
environment for it: i use JBoss as my app server and the app is deployed 
via .ear archive with some other modules it needs to work... I'm sure it's 
possible to configure somehow, just i didn't need it. :)

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



Re: Is there any chart library for GWT?

2012-09-17 Thread Mirza B
U can also look at this 
http://www.moxiegroup.com/moxieapps/gwt-highcharts/



On Thursday, 13 September 2012 21:58:28 UTC+1, Rui Afonso wrote:

 You can also check GWT Charts: http://code.google.com/p/gwt-charts 
 It's a GWT library based on Google Chart Tools: 
 https://developers.google.com/chart



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



application architecture ideas: Appli

2012-09-17 Thread tyson
Howdy-

I've been playing with different approaches to building large, complex 
applications and I've finally rolled my thoughts into an article as well as 
a tiny, tiny framework to go along with it. I would love for any thoughts 
or feedback:

http://tysoncodes.blogspot.com/2012/09/gwt-mvp-nope-do-it-better.html 

(Disclaimer: I finished writing this about 20 minutes ago and haven't done 
much proofing yet so please excuse any blatant stupidisms. The library may 
have issues too. Will be refining both over the next few weeks.)

-- 
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/-/nFUKG9wtbe0J.
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: highlight mouse-overed row in CellList?

2012-09-17 Thread Weihua
thanks a lot! it works like a charm! 

a minor revision for your style:
.myCellList *table*:hover {
background-color: #ebebeb !important;
}

thank you!!

On Thursday, September 13, 2012 5:29:58 AM UTC+2, Andrei wrote:

 Create a CSS style

 .myCellList tr:hover {
 background-color: #ebebeb !important;
 }

 and add this style to your CellList.



-- 
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/-/1S7jZV5EuXIJ.
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: Integer and int are not equal... Especially if received via JSNI

2012-09-17 Thread Thomas Broyer


On Monday, September 17, 2012 11:17:17 AM UTC+2, pash7ka wrote:

 Yes, this manual boxing is what i did to solve this.

 I don't use DevMode because it's a bit difficult to configure my 
 environment for it: i use JBoss as my app server and the app is deployed 
 via .ear archive with some other modules it needs to work... I'm sure it's 
 possible to configure somehow, just i didn't need it. :)


It'll save you hours: 
https://developers.google.com/web-toolkit/doc/latest/DevGuideCompilingAndDebugging#How_do_I_use_my_own_server_in_development_mode_instead_of_GWT's
 

-- 
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/-/7i_ND6_T8lIJ.
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: application architecture ideas: Appli

2012-09-17 Thread Thomas Broyer

On Monday, September 17, 2012 12:30:20 PM UTC+2, tyson wrote:

 Howdy-

 I've been playing with different approaches to building large, complex 
 applications and I've finally rolled my thoughts into an article as well as 
 a tiny, tiny framework to go along with it. I would love for any thoughts 
 or feedback:

 http://tysoncodes.blogspot.com/2012/09/gwt-mvp-nope-do-it-better.html 

 (Disclaimer: I finished writing this about 20 minutes ago and haven't done 
 much proofing yet so please excuse any blatant stupidisms. The library may 
 have issues too. Will be refining both over the next few weeks.)


Could we please just stop confusing ActivitiesPlaces and MVP? 

-- 
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/-/FjAAiU5AtJgJ.
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: application architecture ideas: Appli

2012-09-17 Thread Jens


 Could we please just stop confusing ActivitiesPlaces and MVP? 


+1

Maybe we should write an example app that only deals with Activity  Place 
and that uses some widgets that internally do MVP. So no Activity 
implements Presenter stuff.

-- 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/-/dpeDHzi9SfoJ.
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: add two pagers to cellTable widget

2012-09-17 Thread Weihua
Hi Andrei,

This doesn't work. I guess the reason is that whenever you add a paper to 
another widget, it'll do remove-from-parent first. This is to make sure one 
widget can only have one parent.

Thanks,

On Thursday, September 13, 2012 5:26:34 AM UTC+2, Andrei wrote:

 Create one pager and add it to two places.

-- 
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/-/uBWrD8nPE2kJ.
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 Bean Validation + Hibernate Validator version?

2012-09-17 Thread Chris Lercher
What is the officially supported Hibernate Validator 
versionhttp://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate-validator/that
 should be used in conjunction with GWT 
JSR 303 Bean 
Validationhttp://code.google.com/p/google-web-toolkit/wiki/BeanValidation? 
(Note: I'm using the word official, because the EXPERIMENTAL flag has now 
been 
removedhttps://groups.google.com/d/topic/google-web-toolkit-contributors/jyaODjNwVj0/discussion
 in 
trunk.)

*4.0.2 GA*

4.0.2 GA is the version the validation sample uses in its 
pom.xmlhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/pom.xml.
 But 
this doesn't really work: Compiling with -strict fails with

  Errors in 
'jar:file:/path/to/gwt-2.5.0.rc1/gwt-user.jar!/org/hibernate/validator/super/org/hibernate/validator/constraints/impl/URLValidator.java'
 Line 20: The import org.hibernate.validator.constraints.URL cannot 
be resolved
 Line 26: URL cannot be resolved to a type

*4.2.0 Final*

I also tried 4.2.0 Final, but this fails twofold:

First problem:

  [ERROR] Errors in 
'jar:file:/path/to/gwt-user.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
  [ERROR] Line 72: The constructor NodeImpl(String) is undefined

Second problem:

Version 4.2.0 requires Joda time, which cannot be used on the client side

*
*
*4.1.0 Final*
*
*
After some experimenting, I found that this is the only version that really 
works.

So I'd like to know, if this is the best version to use for now, and where 
we can find out when to upgrade to which newer version.

-- 
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/-/1KT13z1edJ0J.
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: CSS 3 transition+ GWT

2012-09-17 Thread Andrei
CSS3 transitions are triggered by changes in properties. It can be any 
property, like display: none changing to display: block. You can change any 
property of a widget from your code, and it will trigger the transition 
automatically.

Suppose you want a widget to slowly increase in size. You tie a transition to 
the width and height properties. Then you call myWidget.setSize(100px, 
100px) in your code, and it will trigger your transition effect.

-- 
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/-/-mJRa4Nmd0IJ.
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 Bean Validation + Hibernate Validator version?

2012-09-17 Thread Thomas Broyer
This has actually been reported a few days ago: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=7661, and in 
the comments on the wiki page.
GWT is built against 4.1.0 Final and depends on Hibernate Validator 
internals (NodeImpl, PathImpl implementations, etc.), so I'd suggest you 
stick to that version, at least for compiling your client code (you could 
use 4.2.0 GA on the server-side for instance).

On Monday, September 17, 2012 2:45:52 PM UTC+2, Chris Lercher wrote:

 What is the officially supported Hibernate Validator 
 versionhttp://repository.jboss.org/nexus/content/groups/public-jboss/org/hibernate/hibernate-validator/that
  should be used in conjunction with GWT 
 JSR 303 Bean 
 Validationhttp://code.google.com/p/google-web-toolkit/wiki/BeanValidation? 
 (Note: I'm using the word official, because the EXPERIMENTAL flag has now 
 been 
 removedhttps://groups.google.com/d/topic/google-web-toolkit-contributors/jyaODjNwVj0/discussion
  in 
 trunk.)

 *4.0.2 GA*

 4.0.2 GA is the version the validation sample uses in its 
 pom.xmlhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/validation/pom.xml.
  But 
 this doesn't really work: Compiling with -strict fails with

   Errors in 
 'jar:file:/path/to/gwt-2.5.0.rc1/gwt-user.jar!/org/hibernate/validator/super/org/hibernate/validator/constraints/impl/URLValidator.java'
  Line 20: The import org.hibernate.validator.constraints.URL 
 cannot be resolved
  Line 26: URL cannot be resolved to a type

 *4.2.0 Final*

 I also tried 4.2.0 Final, but this fails twofold:

 First problem:

   [ERROR] Errors in 
 'jar:file:/path/to/gwt-user.jar!/org/hibernate/validator/super/org/hibernate/validator/engine/PathImpl.java'
   [ERROR] Line 72: The constructor NodeImpl(String) is 
 undefined

 Second problem:

 Version 4.2.0 requires Joda time, which cannot be used on the client side

 *
 *
 *4.1.0 Final*
 *
 *
 After some experimenting, I found that this is the only version that 
 really works.

 So I'd like to know, if this is the best version to use for now, and where 
 we can find out when to upgrade to which newer version.


-- 
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/-/oe3QjqYzAN8J.
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 Bean Validation + Hibernate Validator version?

2012-09-17 Thread Chris Lercher
Ok, thanks.

On Monday, September 17, 2012 3:34:48 PM UTC+2, Thomas Broyer wrote:

 This has actually been reported a few days ago: 
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7661, and in 
 the comments on the wiki page.
 GWT is built against 4.1.0 Final and depends on Hibernate Validator 
 internals (NodeImpl, PathImpl implementations, etc.), so I'd suggest you 
 stick to that version, at least for compiling your client code (you could 
 use 4.2.0 GA on the server-side for instance).



-- 
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/-/5eA3hmlrQSUJ.
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: CSS 3 transition+ GWT

2012-09-17 Thread Paul Stockley
I use transitions and they work fine just by using the style object to 
update the property.

On Sunday, September 16, 2012 7:51:59 PM UTC-4, regnoult axel wrote:

 Hi Andrei,  

 I will try to answer the best I can regarding to your questionsand 
 most of all, regarding to want I have understood about CSS transition and 
 animation


 *1 - Why do you need to activate it in your code?* 
 *
 *
 What I am looking for, for example, is to manipulate CSS transitions + 
 animation such as cool effects... For example, I want to show a popup 
 with a funny and cool effect (animation + transition) and I can not show 
 this effect just with :hover...so I want to do it programatically (for 
 example, when the user scroll at the top of the page, it will appear a 
 slideshow trailer, and this apparition should be sexy thanks to CSS 
 transition/animation)...


 *2 - Do you plan to do something else when the transition activates?*

 If you are talking about something related to the widget's animation, not 
 especially...I am just looking for the cool effect... And I am also asking 
 about how to use these CSS transition, because, the only example I have 
 seen is using :hover to activate the transition.

 So in a more general way, I am asking if there is alternative to activate 
 these CSS transition without :hover. And, I am asking these question on the 
 GWT forum, because, I just would like to see a simple example manipulating 
 CSS 3 + GWTMaybe I could study some existing lib like VISUAL FOX (
 http://code.google.com/p/visualfox-fx/)

 Cheers,





-- 
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/-/UZG2isXZLXEJ.
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 Bean Validation + Hibernate Validator version?

2012-09-17 Thread Jens
Should GWT 2.5 SDK then bundle Hibernate Validator 4.1.0 if it depends on 
that specific (older) implementation? Or at least mention it somewhere in 
the docs that Hibernate 4.1.0 is the way to go?

-- J.

Am Montag, 17. September 2012 15:54:20 UTC+2 schrieb Chris Lercher:

 Ok, thanks.

 On Monday, September 17, 2012 3:34:48 PM UTC+2, Thomas Broyer wrote:

 This has actually been reported a few days ago: 
 http://code.google.com/p/google-web-toolkit/issues/detail?id=7661, and 
 in the comments on the wiki page.
 GWT is built against 4.1.0 Final and depends on Hibernate Validator 
 internals (NodeImpl, PathImpl implementations, etc.), so I'd suggest you 
 stick to that version, at least for compiling your client code (you could 
 use 4.2.0 GA on the server-side for instance).



-- 
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/-/XDE-rgW6QxcJ.
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: CSS 3 transition+ GWT

2012-09-17 Thread Andy
I would encourage you to create to classes and change the class to trigger 
the transition. For example, if you want to change the width, do this:

.narrow-animation {
width: 100px;
transition-property: width;
transition-duration: 1s;
}

.wide-animation {
width: 400px;
transition-property: width;
transition-duration: 2s;
}

Then, in GWT, use addStyleName and removeStyleName to add the appropriate 
class to trigger the animation.

For last year's Google I/O, I submitted a little project that used CSS 
transitions to animate a countdown timer. The code just changes the class 
on an element and the transition takes care of the animation.

You can see it here http://code.google.com/p/pulazzo-lastcall/ (in the 
demo, choose a date in the future to trigger the countdown).

-Andy

On Saturday, September 15, 2012 12:34:00 PM UTC-4, regnoult axel wrote:

 Hello,

 I do not succeed to use CSS3 transition with GWT...I do not understand how 
 to activate the transition without using :hover in the css file.

 W3C says that : 
 *The effect will start when the specified CSS property changes value. A 
 typical CSS property change would be when a user mouse-over an element...*
 *
 *
 So I have:
 focus{
*height*: 100px;
transition: all 0.3s ease-out;
-webkit-transition: all 0.3s ease-out;
 }

 focus:hover
 {
   *height*: 200px;
 }

 This works, but I do not succeed to activate the  transition  using :

 /* 
  */
 @UiHandler(focus) void mouse__Over(MouseOverEvent e)
 /* 
  */
 {
 // TODO - WHICH CODE TO INSERT HERE TO ACTIVATE THE TRANSITION (on 
 the focus panel) ?
 }

 If you could complete the TODO in order to activate the transition, it 
 would help me... 
 (I have tried focus.addStyleName(), focus.setHeight() but the transition 
 does not appear !)

 Thanks you,





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



Opening a browser in development mode in Eclipse

2012-09-17 Thread CF
Hi there,

I'm having some problems with my Eclipse, GWT settings.  When I try to run 
my code in development mode, clicking the URL opens up my code in a text 
editor.  Currently it's set to Open with default system browser.

   - I tried to Add a new browser and added Chrome with the 
   location: /opt/google/chrome/google-chrome but with that setting, 
   double-clicking the development mode url did not open anything at all.
   - I also tried setting the gwt external browser: export 
   GWT_EXTERNAL_BROWSER=/opt/google/chrome/google-chrome but that did not 
   seem to have any effect.

This started happening when I switched to Indigo from Galileo.  I'm using 
Ubuntu 10.04 Lucid Lynx.

Thanks for any suggestions.

-- 
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/-/KxDaEcQTh5IJ.
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: hard time to get GWTTestCase to work

2012-09-17 Thread Ajax
Not everything can be tested with unit tests.

I write a lot of generator + linker code, so, by necessity, I must use 
GWTTestCase, as I am testing the compilation process.

If your tests don't involve the gwt generator, then definitely don't incur 
the overhead of GWTTestCase,
but if you are working in the generator layer, or if you want to test a 
functional gui in the browser, then you should use GWTTestCase.

It might be possible with selenium to achieve the in-browser tests, but you 
will likely need to run the gwt compile anyway,
so you might as well just use the testing suite provided. =}

On Sunday, September 16, 2012 3:49:38 PM UTC-6, Ed wrote:

 @ tanteanni :
 Easiest solution: don't use GWTTestCase... It simple doesn't work well and 
 if you have it working, it's hard to maintain...

 Try to do everything through unit testing...
 Nowedays I can test almost everything through unit tests, and works well. 
 Google around for awesome testing with IsWidget, 
 if I remember correctly, and you find some forum posts of me that might 
 help you in the correct direction...

 - Ed


-- 
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/-/VE4aPJxwRuQJ.
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: Project architecture

2012-09-17 Thread nessrinovitta
Each application has a logical architecture . I'm asking weather my 
application (made with GWT RPC+MYSQL+deployed on tomcat) has a three 
layered architecture or a client/server architecture ? In other terms , the 
database does it constitute a layer or is it integrated in the server layer 
? 
I need this information to write the report .
I think it's a concrete question !

-- 
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/-/2kgbeqeHgagJ.
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.



Data (objects) on the first view?

2012-09-17 Thread jones34
Hi,
This question was asked before (2007) but I'm wondering if there's a better 
way to load data in the first page.

I have a shopping application that displays product data in the first page, 
then when you click on a product it loads a second page with more detail. 
It would be preferable to pass a product object to the client on the first 
page, so that common data elements (name, id, price) could be handled the 
same way on both pages. I can't see anyway to do this, aside from using a 
callback in the module load method to fetch the product list and then 
render those page elements.

This adds a _very_ noticeable lag to the rendering on the first page. If I 
push the same data as text labels, etc. It's much faster and the page 
renders seamlessly.

Is there any way to push non-visual data to the client on the first page? 

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



Re: GWT AND SOAP

2012-09-17 Thread Gerardo
Blake McBride blake1024@... writes:
 
 
 Greetings,
 
 I ran through the same issues.  Spent quite a bit of time banging my head 
against the wall. (Still am!!)  I sense a lot of GWT stuff is simple to those 
who already know HTML/JavaScript/CSS/JSP/etc..  They understand what is going 
on underneath, what the limitations are, and what common workarounds are.  For 
those of us non-experts in the above technologies, GWT is very difficult.  It 
seems to be filled with arbitrary limitations and arbitrary mechanisms.  It is 
sad in a way because I believe GWT was meant to hide all that stuff.  In spite 
of all these frustrations however, I have found GWT to be the best thing out 
there.  HTML is the worst environment I've ever seen for writing interactive 
applications by far!
 
 Naturally, GWT includes a communications mechanism that works and is 
sufficient if you write the front-end and backend in GWT.  There is no need for 
trying to use another mechanism - you'd be adding a lot of unnecessary 
work.  On the other hand, if you already have an existing back-end and you are 
trying to link it up with a GWT front-end you need something else like SOAP.  I 
spent a huge amount of time trying all sorts of ways to get this working with 
little success for a long time until I finally settled on something that worked 
well.  What I did was use GWT to create the front-end and backend so that the 
two sides were communicating in native GWT.  I then had the GWT backend create 
a socket connection with the real backend and communicate with it.  I created 
all of the code to very easily form the socket connection and have the ability 
to bi-directionally communicate via named methods and arbitrary structured 
data.  This can all be done without adding new classes for each communication 
(to specify the arguments).  Another beauty of this is that the real server and 
the GWT server can be operating on different machines, different URL's, 
different ports, etc..  
 
 I offered the code to the GWT community before but there was no interest.  I 
haven't spent the time to package up the code due to the lack of interest but 
if you want it I'd be happy to package it up and give it to you.  Let me know.
 
 Thanks, and good luck.
 
 Blake McBride
 
 
 On Thu, Jul 26, 2012 at 6:03 AM, Nitheesh Chandran nitheesh-
xupyepad5z7eqncyljx...@public.gmane.org wrote:Okay thanks for the information. 
Do you have experience of writing a soap client on the GWT server ? or else can 
i get any links regarding that ?Or do we have any alternatives that can be used 
instead of SOAP ? 
 On Thursday, July 26, 2012 1:59:28 AM UTC+5:30, Rob Whiteside wrote:You are 
right that GWT does NOT have built in support for making SOAP calls.  GWT (like 
all javascript that runs in the browser) is subject to Same-Origin-Policy 
rules.  So you couldn't call any remote soap service anyway.  You can to do GWT-
RPC to get to your server, then write a soap client on the server that 
sorta proxies the calls to the soap webservice.
 
 
 --RobOn Tuesday, July 24, 2012 10:54:52 PM UTC-7, Nitheesh Chandran 
wrote: HI, 
  Can we use GWT and SOAP  ? i read from some documents that GWT does not have 
a built in support for SOAP and  another document says it can be used in server 
side of GWT. it is a little bit confusing. Can anyone give me a clarification 
on this. Also i read SMART GWT has built in support for SOAP webservices. But i 
am looking for GWT AND SOAP. Is that possible ? Thanks Nitheesh
 
 
 
 
 
 




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



Two footers in a CellTable?

2012-09-17 Thread Kevin Buikema
Is there a way within the standard CellTable to add two footers to the 
table? I need to have two separate non-editable total rows, and I was 
hoping to be able to do it without having to customize objects or create a 
separate table for the totals.

-- 
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/-/HgWPAWBu6PkJ.
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: Project architecture

2012-09-17 Thread Ed
You can do both, it depends on many details.
Your DB is always part of the server layer.

Op maandag 17 september 2012 21:09:37 UTC+2 schreef nessrinovitta het 
volgende:

 Each application has a logical architecture . I'm asking weather my 
 application (made with GWT RPC+MYSQL+deployed on tomcat) has a three 
 layered architecture or a client/server architecture ? In other terms , the 
 database does it constitute a layer or is it integrated in the server layer 
 ? 
 I need this information to write the report .
 I think it's a concrete question !

-- 
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/-/a8EdwT7M0FkJ.
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: hard time to get GWTTestCase to work

2012-09-17 Thread Ed
Just curious: where do you use your linker and generators for?
(I always tried to avoid them as much as possible, don't like hem).

Op maandag 17 september 2012 20:06:10 UTC+2 schreef Ajax het volgende:

 Not everything can be tested with unit tests.

 I write a lot of generator + linker code, so, by necessity, I must use 
 GWTTestCase, as I am testing the compilation process.

 If your tests don't involve the gwt generator, then definitely don't incur 
 the overhead of GWTTestCase,
 but if you are working in the generator layer, or if you want to test a 
 functional gui in the browser, then you should use GWTTestCase.

 It might be possible with selenium to achieve the in-browser tests, but 
 you will likely need to run the gwt compile anyway,
 so you might as well just use the testing suite provided. =}

 On Sunday, September 16, 2012 3:49:38 PM UTC-6, Ed wrote:

 @ tanteanni :
 Easiest solution: don't use GWTTestCase... It simple doesn't work well 
 and if you have it working, it's hard to maintain...

 Try to do everything through unit testing...
 Nowedays I can test almost everything through unit tests, and works well. 
 Google around for awesome testing with IsWidget, 
 if I remember correctly, and you find some forum posts of me that might 
 help you in the correct direction...

 - Ed



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



Re: GWT AND SOAP

2012-09-17 Thread James Gustard
The simplest way to call Soap with GWT is to make a normal RPC service call
to the remote servlet. Once you are in the servlet you are in the server
side java code. From here you can make your SOAP call using your favourite
Java soap client generator. We use axis 2 via maven but eclipse can
generate the soap client for you from the wsdl. Return the data from the
soap call to the gwt client code via the rpc call and serliazable beans. I
wouldn't try to call soap directly from the generated java script client
code.
On Aug 8, 2012 9:20 PM, Vassilis Virvilis vasv...@gmail.com wrote:

 Hi everybody,

 Sorry for the late post. I was offline

 On 07/26/12 16:31, Blake McBride wrote:

 Greetings,

 I ran through the same issues.  Spent quite a bit of time banging my head
 against the wall. (Still am!!)  I sense a lot of GWT stuff is simple to
 those who already know HTML/JavaScript/CSS/JSP/etc..  They understand what
 is going on underneath, what the limitations are, and what common
 workarounds are.  For those of us non-experts in the above technologies,
 GWT is very difficult.  It seems to be filled with arbitrary limitations
 and arbitrary mechanisms.  It is sad in a way because I believe GWT was
 meant to hide all that stuff.  In spite of all these frustrations however,
 I have found GWT to be the best thing out there.  HTML is the worst
 environment I've ever seen for writing interactive applications by far!


 Couldn't put it better my self.

  Naturally, GWT includes a communications mechanism that works and is
 sufficient if you write the front-end and backend in GWT.  There is no need
 for trying to use another mechanism - you'd be adding a lot of unnecessary
 work.  On the other hand, if you already have an existing back-end and you
 are trying to link it up with a GWT front-end you need something else like
 SOAP.  I spent a huge amount of time trying all sorts of ways to get this
 working with little success for a long time until I finally settled on
 something that worked well.  What I did was use GWT to create the front-end
 and backend so that the two sides were communicating in native GWT.  I then
 had the GWT backend create a socket connection with the real backend and
 communicate with it.  I created all of the code to very easily form the
 socket connection and have the ability to bi-directionally communicate via
 named methods and arbitrary structured data.  This can all be done without
 adding new classes for each communication (to specify the arguments).
  Another beauty of this is that the real server and the GWT server can be
 operating on different machines, different URL's, different ports, etc..


 I am on a similar position right now. We are evaluating ways to bridge
 SOAP and GWT. If you are using Apache-CXF as your GWT backend you could use
 their javascript support and to JSNI from GWT to their client javascript
 library 
 (http://cxf.apache.org/docs/**javascript-clients.htmlhttp://cxf.apache.org/docs/javascript-clients.html).
 Unfortunately in my case I can't use it because I have a strict requirement
 for ws-security that cxf's generated javascript does not support. So we are
 looking to build GWT RPC as middle end (as you suggested) and maybe auto
 generate the java interface files.

  I offered the code to the GWT community before but there was no interest.
  I haven't spent the time to package up the code due to the lack of
 interest but if you want it I'd be happy to package it up and give it to
 you.  Let me know.


 I would be very interested to see how you solved this problem.

   Thanks

Vassilis Virvilis

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



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



Re: application architecture ideas: Appli

2012-09-17 Thread Rob
Hi,

I would suggest that you include a comparions of your approach with some 
popular MVP implementations (e.g. gwtp, mvp4g).

For example:

- http://code.google.com/p/mvp4g/wiki/Mvp4g_vs_GWTP

Also, take a look at Thomas's posts:

- http://tbroyer.posterous.com/tag/gwt

David Chandler's posts:

- http://turbomanage.wordpress.com/category/google-web-toolkit/

and

Andreas Borglin's posts re gwt-presenter (and gwt-dispatch):

- http://borglin.net/gwt-project/?page_id=10

Cheers
Rob

Kiahu.com

-- 
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/-/8f_uRNa4x0AJ.
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: application architecture ideas: Appli

2012-09-17 Thread Tyson Malchow
Rob, thanks for the suggestion. that's a great idea. I'll put something
together.
On Sep 17, 2012 3:49 PM, Rob rob.fergu...@uptick.com.au wrote:

 Hi,

 I would suggest that you include a comparions of your approach with some
 popular MVP implementations (e.g. gwtp, mvp4g).

 For example:

 - http://code.google.com/p/mvp4g/wiki/Mvp4g_vs_GWTP

 Also, take a look at Thomas's posts:

 - http://tbroyer.posterous.com/tag/gwt

 David Chandler's posts:

 - http://turbomanage.wordpress.com/category/google-web-toolkit/

 and

 Andreas Borglin's posts re gwt-presenter (and gwt-dispatch):

 - http://borglin.net/gwt-project/?page_id=10

 Cheers
 Rob

 Kiahu.com

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


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



Re: hard time to get GWTTestCase to work

2012-09-17 Thread Ajax
Anywhere you find yourself re-writing the same code more than three times, 
you would likely benefit from a generator.

Linkers are only useful if you need to translate java source into artifacts 
other than the embedded js.
For gadgets and files that require xml configurations, it may be more work 
up front to write a generator + linker combo, but it will save piles of 
frustration because your config file comes from your source code, rather 
than being edited by hand.

Currently, I'm doing a lot of work with creating my own cross-platform 
dependency injection framework (by implementing java.util.ServiceLoader for 
gwt).

The easy part was getting the generated javascript to work; the hard part 
was getting dev mode to work correctly, since it does not honor 
super-source overrides.


I prefer to work with interfaces and annotations as much as possible, and 
generators really help fill the gap without having to manually bind an 
interface to a factory or, even worse, just hardcoding an implementation.  

My next task for code generation will be to subclass java.lang.Thread and 
have it export a generated artifact to a web worker.

Rather than manually export multiple modules for the web workers and test 
them with trial, error and lots of recompiles,
I'm just going to write a generator which acts as a generic ThreadFactory, 
spits out a controller interface that will speak through to the web worker 
(or js object if web worker unavailable), and link the actual worker code 
into a separate js compile.  

This way, I can get the boilerplate right exactly once, and then reuse that 
boilerplate by calling GWT.create(GwtThread.class) any time I want to 
offload tasks to a web worker.

On Monday, September 17, 2012 3:11:38 PM UTC-6, Ed wrote:

 Just curious: where do you use your linker and generators for?
 (I always tried to avoid them as much as possible, don't like hem).

 Op maandag 17 september 2012 20:06:10 UTC+2 schreef Ajax het volgende:

 Not everything can be tested with unit tests.

 I write a lot of generator + linker code, so, by necessity, I must use 
 GWTTestCase, as I am testing the compilation process.

 If your tests don't involve the gwt generator, then definitely don't 
 incur the overhead of GWTTestCase,
 but if you are working in the generator layer, or if you want to test a 
 functional gui in the browser, then you should use GWTTestCase.

 It might be possible with selenium to achieve the in-browser tests, but 
 you will likely need to run the gwt compile anyway,
 so you might as well just use the testing suite provided. =}

 On Sunday, September 16, 2012 3:49:38 PM UTC-6, Ed wrote:

 @ tanteanni :
 Easiest solution: don't use GWTTestCase... It simple doesn't work well 
 and if you have it working, it's hard to maintain...

 Try to do everything through unit testing...
 Nowedays I can test almost everything through unit tests, and works 
 well. Google around for awesome testing with IsWidget, 
 if I remember correctly, and you find some forum posts of me that might 
 help you in the correct direction...

 - Ed



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



Re: Problem with JSNI in Dev Mode (Facebook Connect)

2012-09-17 Thread bagieta
remove this:  function() {



-- 
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/-/y2l0uIBiKDYJ.
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: Getting the default DateBox() picker to advance year at a time

2012-09-17 Thread Tom Sch
Hey Thanks man, really nice and helpful.

-- 
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/-/B5s7pQIULyQJ.
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: Smart GWT / GWT Ext.... which one is better?

2012-09-17 Thread ckendrick
(d) does not apply to SmartGWT.  No GWT update has ever broken SmartGWT or 
broken backcompat.

(e) does not apply to SmartGWT.  Nightlies are available for all editions - 
see smartclient.com/builds

(c) presumably means customizing a widget by messing with it's DOM or 
overriding internal methods.  SmartGWT has a big range of documented and 
supported customization APIs that don't involve low-level hacking, and if 
these break, we consider it a bug and fix it.

(a)  (b) [performance stuff] needs to be considered in light of what 
actually drives performance for your application.  SmartGWT is designed for 
complex enterprise applications, so we do not optimize for first-ever page 
load experience (doesn't apply to apps used repeatedly and for long 
sessions).  Instead we optimize for maximal data reuse, since round-trips 
to the app server  database are almost always the thing to optimize in 
enterprise apps.  A deeper discussion is in the SmartGWT QuickStart Guide, 
Evaluating SmartGWT chapter.

In a nutshell:
- the drawbacks of Sencha are not the drawbacks of SmartGWT
- get clarity on what performance characteristics will matter for your end 
users, *then* look at performance from that perspective.  If you 
hyper-optimize the wrong thing, your app will be slow for your end users.

On Sunday, September 16, 2012 10:26:02 AM UTC-7, Andrei wrote:

 I prefer the third option: I don't use either of them. I build very 
 complex user interfaces, and so far I never regretted going with pure GWT. 
 Here are a few advantages of this option:

 (a) Much smaller compiled code size. This also means faster compile times 
 for developers and faster page load times for users.

 (b) Better performance. I had 3 years of experience with Sencha. Their 
 widgets look nice (why we chose them in the first place), but in some 
 complex UIs with lots of data you start to notice the lag relative to pure 
 GWT. Remember that showcase widgets usually represent a very simple use 
 case.

 (c) Easier customizations. The simpler the widget, the easier it is to 
 modify it as you need. There is a lower probability of breaking something. 

 (d) There is a lower probability that the next release of a library would 
 break your code. I remember how much pain we had with Sencha's updates 
 (2.0, 2.1, etc.) I hope it's much better now as Sencha moved closer to pure 
 GWT implementation of their widgets.

 (e) Faster updates. Once a new feature is available in GWT, you can use it 
 right away. With libraries you have to wait until their updates.

 I suggest that you use one of these libraries in two cases:

 1. Your knowledge of CSS is not great, so you want a professional look for 
 your app out of the box.

 2. You see some widgets in these libraries that you absolutely must use, 
 and you don't want to spend your time building them in pure GWT.

 P.S. Don't let GWT Designer drive your choice of a library. Once you learn 
 GWT, you may end up never using the Designer. I find it much easier and 
 faster to build new views in Ui:Binder, and then simply hit a refresh 
 button in a browser to see how my page looks like.



-- 
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/-/N01iJIj6y5wJ.
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: Smart GWT / GWT Ext.... which one is better?

2012-09-17 Thread ckendrick
(d) no release of GWT has ever broken SmartGWT.  We don't rely on much from 
GWT other than Java-JavaScript translation, so there is little room for 
something to break.

(c) This may refer to breakage from customizations like modifying a 
component's DOM or overriding internals.  In SmartGWT we have documented 
extension points, and if they break, we consider it a bug and fix it

(e) We provide nightly builds at smartclient.com/builds, so there is never 
a delay.

(a), (b) [performance stuff] We focus on optimizing for enterprise 
applications, where first-time-ever page load is not much of a concern 
because the users repeatedly return to the app and use it for longer 
sessions.  Similarly we focus on reducing trips to the server and/or 
database since this is usually the bottleneck in an enterprise application. 
 A deeper discussion of this is in the SmartGWT QuickStart Guide, 
Evaluating SmartGWT chapter.

In a nutshell:
- your experience with Sencha breakage doesn't apply to SmartGWT
- carefully consider what will actually drive performance for end users. 
 If you heavily optimize the wrong thing, your users will have a slow 
application.

On Sunday, September 16, 2012 10:26:02 AM UTC-7, Andrei wrote:

 I prefer the third option: I don't use either of them. I build very 
 complex user interfaces, and so far I never regretted going with pure GWT. 
 Here are a few advantages of this option:

 (a) Much smaller compiled code size. This also means faster compile times 
 for developers and faster page load times for users.

 (b) Better performance. I had 3 years of experience with Sencha. Their 
 widgets look nice (why we chose them in the first place), but in some 
 complex UIs with lots of data you start to notice the lag relative to pure 
 GWT. Remember that showcase widgets usually represent a very simple use 
 case.

 (c) Easier customizations. The simpler the widget, the easier it is to 
 modify it as you need. There is a lower probability of breaking something. 

 (d) There is a lower probability that the next release of a library would 
 break your code. I remember how much pain we had with Sencha's updates 
 (2.0, 2.1, etc.) I hope it's much better now as Sencha moved closer to pure 
 GWT implementation of their widgets.

 (e) Faster updates. Once a new feature is available in GWT, you can use it 
 right away. With libraries you have to wait until their updates.

 I suggest that you use one of these libraries in two cases:

 1. Your knowledge of CSS is not great, so you want a professional look for 
 your app out of the box.

 2. You see some widgets in these libraries that you absolutely must use, 
 and you don't want to spend your time building them in pure GWT.

 P.S. Don't let GWT Designer drive your choice of a library. Once you learn 
 GWT, you may end up never using the Designer. I find it much easier and 
 faster to build new views in Ui:Binder, and then simply hit a refresh 
 button in a browser to see how my page looks like.



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



Building Custom UI Components

2012-09-17 Thread pperera
Hello,

I am a novice to GWT.  Can you please tell me how I would go about building 
custom UI components that would be presented to the user on an as needed 
basis.  That is, will these components be built using HTML/Javascript and 
where can I get more information on 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/-/plb8MLecqY0J.
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: Making a button fire inside a custom AbstractCell

2012-09-17 Thread Shayne Guiliano
I also had trouble with this...I think the browser event might be consumed 
by the custom cell so it never fires the eventhandler, but you can still 
get the event in the onbrowserevent method of abstractcell.

Give the element an id and then use the event target to get the button fire 
event...

Element target = Element.as(event.getEventTarget());

if (target.getId().toString().equals(my_button_id))

{

   Window.alert(my button was pressed!)

}

On Wednesday, June 29, 2011 11:01:54 AM UTC-4, Tod Jackson wrote:

 Thanks for the reply.  Unfortunately, that doesn't seem to make any 
 difference.  The CellTable I'm working with is in a custom DialogBox, I 
 don't suppose that would make any difference would it?  I know I've had to 
 do a little extra before when using DialogBoxes...perhaps I'll try to 
 eliminate that as a possible culprit.  Thanks again.

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



Unable to open GWT designer?

2012-09-17 Thread Aman Sharma
I have Eclipse 4.2 installed with google plugin,GWT designer,app engine and 
GWT sdks. I don't have windows builder installed. Whenever I am trying to 
open entrypoint class of the Google Web Application project with GWT 
designer it fails to open the file  reporting an error that it could not 
parse web.xml file.

Should I install windows builder or is it some other problem with GWT 
designer?

-- 
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/-/R6MPaBvc71wJ.
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: no run as GWT application in Eclipse 3.7 (indigo)

2012-09-17 Thread Bora Yuret
Do not choose the whole project to run.
Choose the java file, and you will be able to see the run as GWT app.

Bora

On Thursday, August 4, 2011 7:13:45 PM UTC+3, pagod wrote:

 Hi, 

 I recently installed Eclipse 3.7 and need to be running projects that 
 use the GWT. I've installed the various components as described on the 
 information pages and now my configuration looks like this (copied 
 from Eclipse's installed software): 
   Google App Engine Java SDK 1.5.21.5.2.r37v201107211953 
 com.google.appengine.eclipse.sdkbundle.e37.feature.feature.group 
 Google, Inc. 
   Google Plugin for Eclipse 3.72.3.3.r37v201107211953 
 com.google.gdt.eclipse.suite.e37.feature.feature.groupGoogle, Inc. 
 Eclipse Platform3.7.0.v20110530-9gF7UHNFFt4cwE-pkZDJ7oz- 
 mj4OSEIlu9SEv0forg.eclipse.platform.feature.groupEclipse.org 

   Eclipse Help System1.3.0.v20110327-7i7uFFiFFt6ZqnbOrMXLd1 
 org.eclipse.help.feature.groupEclipse.org 
   Eclipse RCP3.7.0.v20110216-9DB5Fm1FpBGy_AaVz-mFamgY 
 org.eclipse.rcp.feature.groupEclipse.org 
   Equinox p2 Provisioning for IDEs.2.1.1.v20110526-6- 
 Bg9JXOePwKUTU7X0teV1RtDu-e 
 org.eclipse.equinox.p2.user.ui.feature.groupEclipse.org - Equinox 
 Add-on Function for p2 
 1.0.0.v20110519-7A4FD3DiVOManmZvpLOsnBhnPQM3 
 org.eclipse.equinox.p2.extras.feature.feature.groupEclipse.org - 
 Equinox 
 Equinox p2 Core Function1.0.0.v20110519-8290FZ- 
 FWmE7gdAgmOPL2_Corg.eclipse.equinox.p2.core.feature.feature.group 
 Eclipse.org - Equinox 
 Equinox p2 RCP Management Facilities 
 1.0.0.v20110519-782EoBqNKGUkVQrqOf0z-BhnPQM3 
 org.eclipse.equinox.p2.rcp.feature.feature.groupEclipse.org - 
 Equinox 
   Google Web Toolkit SDK 2.3.02.3.0.r37v201106211634 
 com.google.gwt.eclipse.sdkbundle.e37.feature.feature.groupGoogle, 
 Inc. 
   GWT Designer Core2.3.2.r37x201107161253 
 com.google.gdt.eclipse.designer.hosted.feature.feature.groupGoogle, 

 Inc. 
   GWT Designer Editor2.3.2.r37x201107161302 
 com.google.gdt.eclipse.designer.editor.feature.feature.groupGoogle, 

 Inc. 
   GWT Designer GPE2.3.2.r37x201107161423 
 com.google.gdt.eclipse.designer.gpe.feature.feature.groupGoogle, 
 Inc. 

 Now when I want to run my project, I go to Run as... and there I can 
 select Web application as a target type. My other colleagues all 
 have another option GWT Application, which apparently allows things 
 like hot code updates. This option doesn't appear in the list of 
 possible target types (neither in Run as... nor in Debug as... of 
 course). I've tried uninstalling/reinstalling the complete GWT set, no 
 improvement... 

 Any idea why this option is not available for me, and what I should do 
 to activate it? 

 Thanks a lot! 

 pagod

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



printing problem: when I print content of my iframe (I use gwt-print-it) all what is left on the right side of printable page is cut off and stays not printed at all

2012-09-17 Thread Jan Przybylo
I print big form that has fixed dimensions. If I'd use Letter parer size it 
should fit in 4 pages (2 pages wide and 2 pages high). 
I already started using PrintIt class (gwt-print-it) and it solves most 
basic problems for me. 
But when I try to print whole big form it only prints top left as the 1st 
page and top bottom as the 2nd page leaving the right side not printed. 

Does anyone know proper way of printing wide big pages?

-- 
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/-/Nbf7cUYFL2cJ.
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 Frame Load Wrong Page in IE 8 (Different Than The URL Showed In URL Toolbar)

2012-09-17 Thread diveincode
May be the frame of the first tab isn't hiding along with the first tab. 
can you provide some code so that i can get into the problem??



On Monday, September 17, 2012 6:52:59 AM UTC+5:30, the.wizard wrote:

 Anyone help me please? any clue?

 On Friday, August 31, 2012 10:13:54 AM UTC+7, the.wizard wrote:

 Anyone can help me? Still no luck with this problem... :(

 On Monday, August 27, 2012 8:43:36 AM UTC+7, the.wizard wrote:

 Hello everyone,
 I have a GWT Application that use couple of GWT Frame to load other site 
 content. Let say in the left side of my application I have tree menu, and 
 every time user click one of those menu, it will open a new tab in the 
 right side of my application, and in the tab item, it will load other site 
 content. Let say first I click tree menu A1, the application then open a 
 new tab item in the right site with URL 
 http://application.first.com/first.aspx. After that I click the other 
 tree menu B1, the application then open a new tab item in the right side 
 with URL http://application.first.com/second.aspx. After that, I hit 
 the F5 key, and the browser reload again. Then I repeat the step from the 
 beginning, when I click tree menu A1, the application open a new tab item 
 in the right side, but the content that loaded is from 
 http://application.first.com/second.aspx, but when I do right click in 
 the frame area, it will show me that the currently accessed URL is 
 http://application.first.com/first.aspx.
 Have anyone ever experience this problem? Because I really stuck in 
 here, the other major browser working just fine (FF and Chrome), only IE 8 
 that give me this problem. Any comment and advice will be appreciated.
 Thanks.

 Regards,
 the.wizard



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



Unable to open GWT designer.

2012-09-17 Thread Aman Sharma
I have Eclipse Juno with Google Plugin,GWT designer,Windows builder,google 
app engine sdk,GWT sdk installed. My problem is that  I am not able to use 
GWT designer. Whenever I try to open entrypoint class with GWT designer in 
design view it reports an error that   not able to parse web.xml. So what 
should I do to make it work?

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



Re: Unable to open GWT designer.

2012-09-17 Thread Aman Sharma
Also there is no option to create a windows builder project in new project 
dialog box.

-- 
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/-/xae9NTXJZREJ.
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: CustomScrollPanel issue (extra div overlays generated impacting performance?)

2012-09-17 Thread Deepak Singh
Hi Seth,

Is the drag functionality completed for the custom scrollbar ?

Thanks
Deepak

On Wed, Apr 11, 2012 at 2:25 AM, Deepak Singh deepaksingh...@gmail.comwrote:

 Thanks Seth. I will wait.


 On Wed, Apr 11, 2012 at 1:23 AM, GWTter seth@gmail.com wrote:

 Hi Deepak,

 Sure, I'll let you know once I add that functionality. Could be a little
 while as that currently is not a priority compared to my other items, but
 it definitely is needed and will be added.

 -Seth


 On Wednesday, April 4, 2012 4:30:01 PM UTC-4, Deepak Singh wrote:

 Ok.

 So request you to update me when you add this drag functionality. OR you
 can give me some hints/suggestion so that i could also try a bit.

 Will be waiting for this one.

 Thanks
 Deepak

 On Thu, Apr 5, 2012 at 12:47 AM, GWTter seth@gmail.com wrote:

 Hi Deepak,

 Yes, sorry, I forgot to mention that I hadn't added the drag
 functionality to the scrollbar since I had put that on hold to focus on
 some other issues. So you should see the functionality with the scroll
 wheel only currently.

 -Seth


 On Wednesday, April 4, 2012 1:26:44 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 It works. Thanks.

 But the scrolling happens only through the mouse wheel movement, it
 does not scroll by dragging the bar in up and down direction.
 It simply gets dragged like an image.


 On Wed, Apr 4, 2012 at 8:53 AM, GWTter seth@gmail.com wrote:

 Hi Deepak,

 The most you should need to do is the following:

 AbsolutePanel absPanel = new AbsolutePanel();
 for(int i = 0; i  10; i++){
  SimplePanel simp = new SimplePanel();
  simp.setHeight(100px);
  simp.setWidth(500px);
  simp.getElement().getStyle().setBackgroundColor(green);
  absPanel.add(simp);
 }

 MyScrollPanel scrollPanel = new MyScrollPanel();
 scrollPanel.setHeight(500px);
 scrollPanel.setWidth(100px);

 scrollPanel.add(absPanel);

 RootPanel.get().add(**scrollPane**l);

 If the above code does not give you a green scrollable box then you
 should recheck your code. With the code I sent you and the above code, 
 you
 should have a custom scroll bar (not native). You should at the very 
 least
 have the above code working. Hope this helps. Let me know.

 -Seth



 On Tuesday, April 3, 2012 1:59:33 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 I added the styles to myVerticalScrollBar. and added the entire page
 content to MyScrollpanel but still the default scrollbar is there.

 Its not overridden.


 On Mon, Apr 2, 2012 at 9:39 PM, GWTter seth@gmail.com wrote:

 Hi Deepak,

 Yes, you would need to apply some style to your scrollbar so that
 it at least has width (or height if you were using the horizontal
 scrollbar). If you look at the MyVerticalScrollBar constructor, the 
 line
 'this.setStyleName(**verticalScrollBar)' sets the style for
 the scrollbar. This style is not defined in the myScrollPanel.css as 
 that
 CSS file is only meant for the cornerpanel styling. You would need to
 define the style verticalScrollBar in your main CSS file. For 
 example:

 .verticalScrollBar{
   width: 10px;
   background: blue;
 }

 Also, make sure that the content you're scrolling is within the
 MyScrollPanel, since only content within the MyScrollPanel will have 
 the
 custom scroll bars, anything not within a CustomScrollPanel will still
 default to the native implementation. Hope this helps.

 -Seth

 -Seth


 On Monday, April 2, 2012 11:44:57 AM UTC-4, Deepak Singh wrote:

 Nothing more than what i sent you.

 I have just myScrollPanel.css as mention above.

 Could you pls guide me with css if i need to apply some css over
 vertical scrollbar?

 Thanks in advance
 Deepak

 On Mon, Apr 2, 2012 at 8:19 PM, GWTter seth@gmail.com wrote:

 Hi Deepak,

 This looks good to me. What style are you using for the vertical
 scrollbar?

 And thanks for the repost.

 -Seth


 On Sunday, April 1, 2012 3:50:12 PM UTC-4, Deepak Singh wrote:

 Hi Seth,

 I am posting my code here:

 myScrollPanel.css
 @CHARSET ISO-8859-1;

 .customScrollPanel{
 }
 .customScrollPanelCorner{
 opacity: 0.0;
 }

 MyScrollPanel.java

 public class MyScrollPanel extends CustomScrollPanel {
  /**
  * Extends the CustomScrollPanel Resources interface so that we
 can add our own css file and still reuse the Resources and Style 
 interfaces
 from CustomScrollPanel
  * @author SL
  *
  */
  public interface MyScrollResources extends Resources{

 @Source(com/pdstechi/client/**myScrollPanel.css)
  Style customScrollPanelStyle();
 }
  public MyScrollPanel(){
 super((MyScrollResources)GWT.**create(MyScrollResources.
 **class));
  this.setVerticalScrollbar(new MyVerticalScrollBar(),
 MyVerticalScrollBar.**getScrollBarWidth());
 // this.setHorizontalScrollbar(**new
 MyHorizontalScrollBar(), MyHorizontalScrollBar.**getScrol***
 *lBarHeight());
  }

 }


 MyVerticalScrollBar.java

 public class MyVerticalScrollBar extends Widget implements
 VerticalScrollbar {
 private double scrollBarHeight = 0.0;
  private 

check if layout already exists in main layout

2012-09-17 Thread Jaggernat
hi guys
I am working on GWT and i have something like

public class QuickSearch extends Canvas
{
private HLayout mainBodyLayout = new HLayout(); //the main layout 
containing other layouts.

//button layout
private Layout getButtonLayout()
{
//here i want to check IF mainBodyLayout already contains
getButtonLayout() , if it does not contain only then add it like
mainBodyLayout.addMember(getButtonLayout());
Any idea how i can check if getButtonLayout() is already present in 
mainBodyLayout ?

return VLayout;
}

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/-/_Q5wH_Z-1GwJ.
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: Project architecture

2012-09-17 Thread SergeZ
Apparently you have a three-layered architecture. But this should not be a case 
of big concern, because such classification is very high level and does not 
bring any light to the real architecture of your project when you discuss one. 
It just the way you make major application separation, but things get more 
interesting going deeper in each part.

-- 
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/-/rHXQ1Gv7ADAJ.
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: Update Maven sample pom.xml files to use maven-compiler-plugin's annotation processing functiona... (issue1828803)

2012-09-17 Thread drfibonacci

LGTM

Note that Mac users may have to refresh the project after first import
in order to force APT to run.

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

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


[gwt-contrib] Re: Update Maven sample pom.xml files to use maven-compiler-plugin's annotation processing functiona... (issue1828803)

2012-09-17 Thread Rajeev Dayal
Thanks David - when I tested on the mac, I didn't have to refresh the
project after first import provided that I actually did an Update Project
after enabling Maven Annotation Processing on the project.

I noted this in bold on the Wiki page.

On Mon, Sep 17, 2012 at 9:15 AM, drfibona...@google.com wrote:

 LGTM

 Note that Mac users may have to refresh the project after first import
 in order to force APT to run.

 http://gwt-code-reviews.**appspot.com/1828803/http://gwt-code-reviews.appspot.com/1828803/


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

[gwt-contrib] Re: Update Maven sample pom.xml files to use maven-compiler-plugin's annotation processing functiona... (issue1828803)

2012-09-17 Thread t . broyer


http://gwt-code-reviews.appspot.com/1828803/diff/9001/samples/dynatablerf/pom.xml
File samples/dynatablerf/pom.xml (right):

http://gwt-code-reviews.appspot.com/1828803/diff/9001/samples/dynatablerf/pom.xml#newcode120
samples/dynatablerf/pom.xml:120: version2.3.0-1/version
Oh, I'm really sorry I let it slip through: the plugin should be updated
to 2.5.0-rc1 here, or the (unfortunate) gwt-servlet dependency has to be
reintroduced (and possibly the plugin updated to 2.4.0).

And the validation sample should also benefit from this change (it too
apparently needs a bit of love:
https://groups.google.com/d/topic/google-web-toolkit/D2nrOqJeMmA/discussion)

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

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


Re: [gwt-contrib] submit chrome dev mode plugin to chrome web store?

2012-09-17 Thread Rajeev Dayal
+[skybrian]

Ok, so it looks like we'll have to go ahead and rebuild the crx on our
side. I've added Brian, who has been playing around with the crx build
process.

On Wed, Sep 12, 2012 at 7:33 PM, Daniel Kurka kurka.dan...@gmail.comwrote:

 Hi Rajeev,

 I just gave it a try and it seems that we need to do some actual changes
 to make this work. The chrome web store is complaining about the manifest
 version of the plugin:

  An error occurred: Manifest version 1 is unsupported. Please upgrade to
 manifest version 2.

 I will give this another look tomorrow. It`s getting too late in Germany
 right now.

 -Daniel




 Am 13.09.2012 um 01:09 schrieb Rajeev Dayal rda...@google.com:

 Sorry, this totally fell off the plate.
 Daniel, would you be able to submit it to the Chrome Webstore?

 On Wed, Sep 12, 2012 at 7:07 PM, Daniel Kurka kurka.dan...@gmail.comwrote:

 Hi Rajeev,

 what is the status here?

 Can I help?

 -Daniel


 Am 19.08.2012 um 17:10 schrieb Robert Hanson iamroberthan...@gmail.com:

 @Rajeev, you mentioned that you were going to post the plugin to the
 Chrome store.  Is that still the plan, or did you run into some issues
 there?

 I'm working on some documentation that is about to go to press, and just
 want to make sure I have the right instructions in there.

 Thanks.

 Rob



 On Tue, Aug 7, 2012 at 11:39 AM, Rajeev Dayal rda...@google.com wrote:

 Hey Daniel,

 We do need to post the chrome devmode plugin to the webstore. I'll take
 care of that this week.

 I also need to rebuild the devmode plugin, as there were some fixes that
 went into it a while back that were never put into a distributable binary.


 Rajeev


 On Mon, Aug 6, 2012 at 6:53 PM, Istvan Soos is...@google.com wrote:

 Hi,

 A quick fix that might help:

 1. right click on the chrome iconPropertiesShortcut
 2. add in target: --enable-easy-off-store-extension-install
 3. open chrome and navitage to extensions ( chrome://chrome/extensions/)
 4. drag and drop on it the plugin (should be in your download folder
 if you tried to install it before and didn't succeed)

 Regards,
Istvan

 On Mon, Aug 6, 2012 at 12:44 PM, Daniel Kurka kurka.dan...@gmail.com
 wrote:
  Hi everyone,
 
  today at work I was setting up a GWT installation on windows for a new
  coworker and noticed that with chrome 21 we can not install extension
  anymore. (They need to be in the chrome web store). I also noticed an
 issue
  popping up on the issue tracker on the exact same thing:
  http://code.google.com/p/google-web-toolkit/issues/detail?id=7569
 
  Does anyone have this covered or are we just hearing about this
 change to
  chrome right now?
 
  -Daniel


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



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



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


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

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

Re: [gwt-contrib] submit chrome dev mode plugin to chrome web store?

2012-09-17 Thread Brian Slesinsky
Yep, back on the Chrome plugin this week.

On Mon, Sep 17, 2012 at 9:26 AM, Rajeev Dayal rda...@google.com wrote:
 +[skybrian]

 Ok, so it looks like we'll have to go ahead and rebuild the crx on our side.
 I've added Brian, who has been playing around with the crx build process.

 On Wed, Sep 12, 2012 at 7:33 PM, Daniel Kurka kurka.dan...@gmail.com
 wrote:

 Hi Rajeev,

 I just gave it a try and it seems that we need to do some actual changes
 to make this work. The chrome web store is complaining about the manifest
 version of the plugin:

  An error occurred: Manifest version 1 is unsupported. Please upgrade to
  manifest version 2.

 I will give this another look tomorrow. It`s getting too late in Germany
 right now.

 -Daniel




 Am 13.09.2012 um 01:09 schrieb Rajeev Dayal rda...@google.com:

 Sorry, this totally fell off the plate.
 Daniel, would you be able to submit it to the Chrome Webstore?

 On Wed, Sep 12, 2012 at 7:07 PM, Daniel Kurka kurka.dan...@gmail.com
 wrote:

 Hi Rajeev,

 what is the status here?

 Can I help?

 -Daniel


 Am 19.08.2012 um 17:10 schrieb Robert Hanson iamroberthan...@gmail.com:

 @Rajeev, you mentioned that you were going to post the plugin to the
 Chrome store.  Is that still the plan, or did you run into some issues
 there?

 I'm working on some documentation that is about to go to press, and just
 want to make sure I have the right instructions in there.

 Thanks.

 Rob



 On Tue, Aug 7, 2012 at 11:39 AM, Rajeev Dayal rda...@google.com wrote:

 Hey Daniel,

 We do need to post the chrome devmode plugin to the webstore. I'll take
 care of that this week.

 I also need to rebuild the devmode plugin, as there were some fixes that
 went into it a while back that were never put into a distributable binary.


 Rajeev


 On Mon, Aug 6, 2012 at 6:53 PM, Istvan Soos is...@google.com wrote:

 Hi,

 A quick fix that might help:

 1. right click on the chrome iconPropertiesShortcut
 2. add in target: --enable-easy-off-store-extension-install
 3. open chrome and navitage to extensions ( chrome://chrome/extensions/
 )
 4. drag and drop on it the plugin (should be in your download folder
 if you tried to install it before and didn't succeed)

 Regards,
Istvan

 On Mon, Aug 6, 2012 at 12:44 PM, Daniel Kurka kurka.dan...@gmail.com
 wrote:
  Hi everyone,
 
  today at work I was setting up a GWT installation on windows for a
  new
  coworker and noticed that with chrome 21 we can not install extension
  anymore. (They need to be in the chrome web store). I also noticed an
  issue
  popping up on the issue tracker on the exact same thing:
  http://code.google.com/p/google-web-toolkit/issues/detail?id=7569
 
  Does anyone have this covered or are we just hearing about this
  change to
  chrome right now?
 
  -Daniel


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



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



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


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



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


[gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread t . broyer

Do you think it would be possible to share the BUILD file(s), or a
stripped-down version of it, even privately?
I'd love to see how it compares to Maven and other build systems.

Now back to the CL: given the move to Git soon, which will require some
changes on your side, is it wise to make such a change now? I mean, MOE
[1][2] for instance can very well sync external src to internal java
(transmogrify as they call it).
On the other hand, given that the new Git repos will be populated from
Google's internal repo, maybe the answer to the above is yes, and take
advantage of the repo move to transmogrify them back to src (along
with rollbacking the changes to the Ant files) outside Google.

[1] http://code.google.com/p/make-open-easy/
[2] http://code.google.com/p/moe-java/

On 2012/09/17 19:13:46, skybrian wrote:

This is a good place for an experiment, since in practice, very few
people build the plugins.



The bigger picture is that we don't particularly like BUILD files that
call ant, since they slow down builds for everyone at Google. There's
no reason to rebuild every GWT app and run all the tests because one
Java file in gwt.user changed that most people don't even use.



Outside Google, people seem to prefer Maven, and I expect we won't
want to use that internally either. So I'd like to see if we can just
build GWT code directly. If Google can move away from ant and open
source moves to Maven, we'll end up with two independent build systems
instead of three that are intertwined. (Or four, if you count the
plugin Makefiles. But I doubt we can get rid of those.)



- Brian



On Mon, Sep 17, 2012 at 11:45 AM,  mailto:j...@jaet.org wrote:
 So why not do it in the BUILD file the same way the rest of GWT

does,

 which also doesn't have a java directory?

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



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

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


[gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread skybrian

On 2012/09/17 20:43:56, tbroyer wrote:

Do you think it would be possible to share the BUILD file(s), or a

stripped-down

version of it, even privately?


There's a high-level overview here:
http://google-engtools.blogspot.com/2011/08/build-in-cloud-how-build-system-works.html

It doesn't explain the GWT-specific rules, but conceptually they're not
that different from the cc_library rules, or a Makefile for that matter.
Since you name the files you want to include (often using globs),
anything not named isn't a build dependency, so the compiler won't see
it and changes don't force a recompile. We normally have separate build
rules for each GWT module and apps can declare what they use.


is it wise to make such a change now?


I'm not suggesting doing the larger changes any time soon. As I said,
this is an experiment.

But I'm wary of using remapping to make open source and internal
directory structures look different. I think it will make things like
applying patches more complicated; we won't be able to just use the
patch command.

It seems like we should be able to find a compromise that lets us keep
the directory structures identical, and that's one less thing for
maintainers to worry about. I know ant is very flexible when it comes to
directory structure; can Maven be configured as well?


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

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


Re: [gwt-contrib] In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread Ray Cromwell
LGTM. I mean, ideally it would be src/main/java :), but Maven can cope
with any directory name for this.


On Mon, Sep 17, 2012 at 11:36 AM,  skybr...@google.com wrote:
 Reviewers: cromwellian,

 Description:
 In the Chrome plugin, rename src to java for compatibility with
 Google's internal build system.


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

 Affected files:
   M plugins/npapi/DevModeOptions/build.xml
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/DevModeOptions.extra.xml
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/DevModeOptions.gwt.xml
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/DevModeOptions.java
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/DevModeOptions.ui.xml
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/DevModeOptionsResources.java
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/HostEntry.java
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/HostEntryStorage.java
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/LocalStorage.java
   A
 plugins/npapi/DevModeOptions/java/com/google/gwt/devmodeoptions/client/resources/DevModeOptions.css
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/DevModeOptions.gwt.xml
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.java
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptions.ui.xml
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/DevModeOptionsResources.java
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/HostEntry.java
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/HostEntryStorage.java
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/LocalStorage.java
   D
 plugins/npapi/DevModeOptions/src/com/google/gwt/devmodeoptions/client/resources/DevModeOptions.css


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

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


[gwt-contrib] Regarding Issue 1601804: Fix leak in LayoutImplIE6

2012-09-17 Thread jay
(I seem to be unable to post this comment to the code review...)
In regards to the code review posted at 
http://gwt-code-reviews.appspot.com/1601804, I would love to see this land 
in 2.5, as we have some large customers who are still using IE7. And, no 
surprise, we're having some memory issues...

Unfortunately, when I applied this patch to our code base, part of our app 
failed to render. The problem seems to be in the LayoutImplIE6 class, 
though I'm not sure exactly what's going wrong. Clearly the DOM is 
generated differently, and that's expected.

If someone can provide a pointer or some more details on how the layers are 
supposed to be used in the onAttach now vs. previously, I will try to take 
a look and get a better understanding of what's going wrong.

Thanks,

jay

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

[gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread skybrian

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

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


Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread Stephen Haberman

 There's no reason to rebuild every GWT app and run all the tests
 because one Java file in gwt.user changed that most people don't even
 use.

Just to understand more, how does avoiding ant solve the problem?

If RarelyUsedFile.java in gwt-user changes, then from my reading of the
blog post, the gwt-user input/digest would have changed, so the
gwt-user label would be considered dirty, so it seems like all
downstream projects would have to rebuild it anyway.

Regardless of ant being used or not.

Unless ant's output is not deterministic? Just curious.

- Stephen

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


Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread Stephen Haberman

 It doesn't explain the GWT-specific rules, but conceptually they're
 not that different from the cc_library rules, or a Makefile for that
 matter.

Just curious, but would stealing Lex Spoon's scala-gwt approach (writing
.jribble ASTs to disk, like .class files), allow the Google build
system to do more incremental analysis and so less recompilation?

E.g.:

1. IDE or CLI compiles .java - .jribble (resolved AST)
2. PrecompileModule bundles .jribble - .gwtars
3. Compiler uses .jribble+.gwtars to generate .js output

I guess the unit cache/gwtars were supposed to already solve this
(avoiding reparsing of the AST), by caching ASTs.

But then why do we still have the slow startup? E.g. why is not
everything like primed superdevmode refreshes (which I, sigh, have
still not played with yet)?

- Stephen

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


Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread Brian Slesinsky
On Mon, Sep 17, 2012 at 8:22 PM, Stephen Haberman
stephen.haber...@gmail.com wrote:

 Just to understand more, how does avoiding ant solve the problem?

 If RarelyUsedFile.java in gwt-user changes, then from my reading of the
 blog post, the gwt-user input/digest would have changed, so the
 gwt-user label would be considered dirty, so it seems like all
 downstream projects would have to rebuild it anyway.

Yes, that's true, nothing changes if there's one build target for
gwt-user.jar and every project uses it and it includes everything. But
if we split things up into separate build targets (and associated
jars) for different GWT modules, downstream projects can declare what
they use. (For example, it seems reasonable to require projects to
declare where they're using GWT-RPC or RequestFactory or GWTTestCase.)
Ideally there would be a jar for each GWT module, though I doubt we'll
get that far.

I'm assuming we don't want to duplicate the dependency tree in three
places (GWT modules and Ant and Google's build), nor do we want to
divide up the open source build into that many jars.

- Brian

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


Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread Stephen Haberman

 But if we split things up into separate build targets (and associated jars)
 for different GWT modules, downstream projects can declare what they use.

Cool, makes sense, thanks for the sanity check.

 nor do we want to divide up the open source build into that many jars.

I dunno, I assumed we were headed towards 1 module == 1 jar, but would defer to
others/Thomas since he's been working on it.

- Stephen

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


Re: [gwt-contrib] Re: In the Chrome plugin, rename src to java for compatibility with (issue1834803)

2012-09-17 Thread Brian Slesinsky
On Mon, Sep 17, 2012 at 10:37 PM, Stephen Haberman
stephen.haber...@gmail.com wrote:
 nor do we want to divide up the open source build into that many jars.

 I dunno, I assumed we were headed towards 1 module == 1 jar, but would defer 
 to
 others/Thomas since he's been working on it.

Well, that's just an assumption - I don't really know what the plan
is. Maybe it's easier with Maven?

- Brian

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