Re: combobox - combination of list- and suggestion box

2011-04-26 Thread tanteanni
thx,
so the look comes from ListBox (including the button?)? (besides -
there is no listbox in your code!)

but what is the image bundle you use for? Or to ask the other way
around: you took an suggestion box and placed it together with
FocusPanel iconWrapper in a horizontal panel?! How to get the
iconWrapper look like the browsers comboBox-Button (what gwt element
to use?)?

On 19 Apr., 16:58, Isaac Truett itru...@gmail.com wrote:
 I did use my own image for ComboBox. It can be overridden if you want
 to use your image instead.

 I think you're confused about ListBox. It's just a GWT widget wrapper
 for an HTML select element. The button image isn't something that
 comes with GWT, it's the browser's look and feel. If you want to
 create a button that looks like the browser's select element button,
 go ahead. You'll want to create a different image for each browser and
 use deferred binding to show the proper one in each permutation.







 On Tue, Apr 19, 2011 at 1:19 AM, tanteanni tantea...@hotmail.com wrote:
  thx for the code

  basically you took a suggestbox in a horizontal panel with a button
  right? i found similar code here:
 http://stackoverflow.com/questions/3039436/suggestbox-gwt-showing-all
  My Problem is how to get the button to look like the ListBox Button
  and how to get the button placed within the text box? or in general
  how to get/use styles and images of existing gwt widgets? (i didn't
  understand this part of your code. do you use your own image or do you
  use the image and style of ListBox delivered with GWT?)

  On 18 Apr., 20:09, Isaac Truett itru...@gmail.com wrote:
  I wrote a ComboBox based on the GWT 1.6 SuggestBox back in 2008. There
  have been a lot of changes since then, so I would be surprised if my
  implementation works with newer versions. The code is Apache 2.0
  licensed. If you want to use any of that old code according to the
  terms of that license, here it is:

 http://code.google.com/p/simple-gwt/wiki/ComboBoxModulehttp://code.go..

  On Mon, Apr 18, 2011 at 6:16 AM, tanteanni tantea...@hotmail.com wrote:
   how to make a suggestBox with a clickable drop down menu (showing
   suggestion on click). the use case for this is a user who don't know
   what text to put in to get a suggestion.

   i already tried listbox  - no text input :-( and suggestBox  with own
   MultiWordSuggestion and own SuggestOracle but how to get an widget
   that combines both? (probably by provideing a special textboxbase?)

   --
   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 
   athttp://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 
  athttp://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.



JRE Test for Activities and Places

2011-04-26 Thread roge.delgado
Recently I was reading about the new Activities and Places framework
that comes with the 2.1 version of GWT and after breaking my head
trying to understand what's going on with this, a question appeard in
my head. According with the official documentation about Activities
and Places, this feature can be implemented in a MVP way and, at least
in my understanding, that pattern helps in decoupling the different
layers of the aplication. One side effect of that it's that the unit
testing preccess is enhanced due to only it's needed perform some test
to the Presenter layer.
Seeing the examples of the old fashion way of MVP the unit testing
proccess it's very straightforward, simply make a Mock for the Display
interface and pass it to the presenter, but with the new Activities
and Places way this is not clear to me, so the question it's:

How to unit test my Activities (Presenters in the old MVP way)?

With unit test I mean JRE JUnit test, not GWTTestCase.

Thanks!

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



Re: TDD in Gwt

2011-04-26 Thread Piotr Kosmowski
Thank you very much for the presentation. We are starting with GWT a
bigger project and we are going to use TDD. We saw best practices from
Google IO but we are missing some good examples. The only difference
is that we are planning to use MVP4g in stead of native GWT MVP. I
hope it won't complicate our job. Anyway good job Uberto and I hope
that you won't stop showing off your work :-)

On 24 Kwi, 10:46, Uberto Barbini ube...@ubiland.net wrote:
 Hi I just presented a session on working in tdd with gwt (Goos style
 for the connoisseurs ;)).

 http://www.slideshare.net/ubertobarbini/develop-gwt-application-in-tdd

 I hope the slides could be useful to somebody else too.

 Any feedback would be very welcome.

 Happy Easter!

 Uberto

-- 
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: VerticalPanel with Celltable cell.

2011-04-26 Thread Deepak Singh
You can create an UIBinder for the 2nd column and use its object to render
it as a celltable column.

Regards
Deepak

On Tue, Apr 26, 2011 at 10:04 AM, ALB-PSP-DV1 albpsp...@gmail.com wrote:

 I have a requirement to display a celltable in the below manner
 __
 |  S.no |Data   |
 --
 |1|Data1  (image) |
 |  |Data2  (image) |
 |  |Data3  (image) |
 |  |Data4  (image) |
 --
 |2|Data5  (image) |
 |  |Data6  (image) |
 --
 |3|Data7 (image)  |
 --
 |4|Data8 (image)  |
 --

 I can use TextCell for the first column(S.no). For the second column I
 thought of using a verticalPanel which contains multiple
 horizontalPanel and each horizontalPanel consists of a text and an
 image.

 However I'm not able to find any component(like TextCell) for
 verticalPanel or horizontalPanel.

 Can we add directly a verticalPanel within celltable? Or Is there any
 other approach for the display of second column(Data)?

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



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



Re: Can i access AppEngine Datastore(Using JDO) from GWT client coding.....

2011-04-26 Thread dominic jansen
GWT provides a RPC mechanism based on Java Servlets to provide access
to server side resources like JDOs.

Take a look at the Dev Guide and of course at the Tutorial

http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideServerCommunication.html
http://code.google.com/intl/de-DE/webtoolkit/doc/latest/tutorial/clientserver.html

Best,
Dom

2011/4/22 Ram ram...@gmail.com:
 I am developing AppEngine java project...I plan to develop client side
 using GWT...

 Can i access AppEngine Datastore(Using JDO) from GWT client
 coding.

 If yes...How to do this.please help me


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



-- 
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: Debugging Maven Project in Eclipse ( Tutorial )

2011-04-26 Thread Metronome Basic

That was the solution for me
Remote Fava Applivation and gwt:debug

I used this link as an help for configuration

thanks to all that have tried to help
( others solution could have been successfull , this one seemed easier to 
me )


Patrick


- Original Message - 
From: Hilco Wijbenga hilco.wijbe...@gmail.com

To: google-web-toolkit@googlegroups.com
Sent: Friday, April 22, 2011 9:50 PM
Subject: Re: Debugging Maven Project in Eclipse ( Tutorial )



On 22 April 2011 00:33, Metronome  Basic
metronome.ba...@worldonline.fr wrote:

Any suggestion for debugging in Eclipse


Use mvn gwt:debug (instead of mvn gwt:run) and attach your debugger in
Eclipse (use Remote Java Application).

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





-
Aucun virus trouvé dans ce message.
Analyse effectuée par AVG - www.avg.fr
Version: 10.0.1209 / Base de données virale: 1500/3590 - Date: 22/04/2011



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



Dealing with Eclipse-based IDE - Maven User - Codehaus.URL
Description: Binary data


Re: Parsing Javascriptobject

2011-04-26 Thread khiem nguyen
have a look at jsni

On Tue, Apr 26, 2011 at 5:57 AM, riyaz ahmed sunez.ri...@gmail.com wrote:

 Hi,

 While querying a webservice, i have recieved a gwt.javascriptobject in
 reponse i need to convert it into string and parse it to retrieve the data,
 Any idea how to do this.

 Thanks for reading the mail



 --
 Riyaz
 9916220381

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


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



Re: Querying webservice which is on another server hosted on appengine

2011-04-26 Thread Thomas Broyer
That tutorial is outdated: there's been a JsonpRequestBuilder in GWT for a 
few versions now.

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



How to show multiple PopupPanel on the UI?

2011-04-26 Thread Sunit Katkar
I have two buttons on my UI. When each is clicked I need to show a popup
which is a subclass of the PopupPanel class

The condition is such that if Button A is clicked then show Popup A. This
popup has autohide=false, and it stays visible.
Next, when Button B is clicked then show Popup B. This popup too should stay
visible and has autohide=false.

When I try to create two separate instances of MyPopupPanel (which extends
PopupPanel), upon button clicks, the first click on Button A makes the Popup
A visible and on the second button B click the popup B shows up but Popup A
vanishes.

Any idea what could be wrong.

I invoke the popups inside button click handlers.

MyPopup pA = new MyPopup()

MyPopup pB = new MyPopup()

and then on each I use the setPositionAndShow() method.



Thank you,
Sunit Katkar

-- 
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: UIBinder and Dreamweaver

2011-04-26 Thread dmen
I have worked on both ends, building my own full blown apps and
beautifying other peoples' apps. IMO, even with UiBinder markup, it is
*very difficult* for designers with non-java knowledge to work with
GWT. The best solution is to let them work with their own tools, e.g.
Photoshop, Dreamweaver, etc. and deliver nice static HTML/CSS
templates which then *you* will tear apart and convert to GWT
components.

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



Reusable CSS inside CssResouce ClientBundle

2011-04-26 Thread Raphael André Bauer
Hi,


we are using CSS Resources and ClientBundles for some months now. And
- summing up - it's a really nice experience so far!

However, as our CSS Resources are growing bigger and bigger we would
like to have the ability to reuse some css code.

One example is the definition of gradients. There is a lot of boiler
plate code involved to make that happen for all browsers. And we have
to copy and paste that code for all elements that should use
gradients.

==Example:
   background-color: #CE; /* fallback color for retro browsers */
   background-image: -moz-linear-gradient(top, #ee, #ce); /* FF3.6 */
   background-image: -ms-linear-gradient(top, #ee, #ce); /* IE10 */
   background-image: -o-linear-gradient(top, #ee, #ce); /*
Opera 11.10+ */
   background-image: -webkit-gradient(linear, literal('0 0'),
literal(0 100%), from(#ee), to(#ce)); /* Saf4+, Chrome */
   background-image: -webkit-linear-gradient(top, #ee, #ce);
/* Chrome 10+, Saf5.1+ */
   background-image: linear-gradient(top, #ee, #ce); /*
standard compliant */
==end

That's only one example. But generally speaking, is there a way to
simply define that css at the beginning of a css file and reuse it all
the time? Our dream would be something like SASS
(http://sass-lang.com/) that uses mixins to accomplish that in an
(imho) nice manner.


Thanks a lot,


Raphael

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



Re: Debug mode becomes very slow after 3rd Refresh of the page

2011-04-26 Thread Jiunarayan
I use firefox3.6.11. What could be the reason of getting slow? Or is
there any way I can clean manually before refreshing the page.

On Apr 25, 10:25 pm, Tomi B. tomi.blinni...@bliny.net wrote:
 Jiunarayan,

 What browser are you using? I've noticed similar issues, but mostly with
 Chrome. You could try Firefox to see if anything changes. I've also noticed
 that there might be something wrong with the way the the Development Mode
 panel logs messages. It will dramatically slow down after you have a lot of
 entries there, and even clearing the log can take an extended period of
 time.

 //Tomi B.

-- 
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: UIBinder and Dreamweaver

2011-04-26 Thread A. Stevko
Unfortunately the seemingly static portions like FAQ, help, and news have
different life cycles than the dynamic portions.
Most shops are used to having designers rather than coders do the lifting
here.

Another place where designers are used to having a free hand is the css.
Has anyone had success wholesale moving the height and width directives out
of the ui.xml and into the css stylesheet? It won't work for DockLayoutPanel
or SplitLayoutPanel but for the others?



On Tue, Apr 26, 2011 at 10:32 AM, dmen dmenou...@gmail.com wrote:

 I have worked on both ends, building my own full blown apps and
 beautifying other peoples' apps. IMO, even with UiBinder markup, it is
 *very difficult* for designers with non-java knowledge to work with
 GWT. The best solution is to let them work with their own tools, e.g.
 Photoshop, Dreamweaver, etc. and deliver nice static HTML/CSS
 templates which then *you* will tear apart and convert to GWT
 components.

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




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

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



Re: StackPanel

2011-04-26 Thread Ani
Hi Carlos,

Thank you for your answer but it's still not what I want :( Because I
need the panel to act like a StackPanel (I mean, I need them to expand
and close, like a StackPanel does), but in a way that if i want to
have two items open, i could. With the aproach you're suggesting me, I
would have one always open, and the others in a StackPanel, and It's
not what i need :(

Any other idea??Can anyone help me on this??
Thank you very much!!

On 21 abr, 11:42, Carlos hbazz...@gmail.com wrote:
 hello,

 you can create a panel which can be of any kind according to the way
 you want to view your items (a vertical panel for example)
 then you add the different items to this new created item.
 finally you add this panel to your StackPanel.

 hope this will help you Ani.
 Carlos.
 On 20 avr, 08:14, Ani anapont...@gmail.com wrote:

  Hi Gaurav,

  Thank you for answering! I need a widget that works like a StackPanel,
  but in a way that I can have two items open simultaneously. Now, I
  have a StackPanel with 3 items, but I just can see one of them at
  time. Is it more clear now??Thank you for any help!

  On 20 abr, 06:07, Gaurav Vaish gaurav.va...@gmail.com wrote:

   Hi Ani,

   If you can elaborate on what you're trying to achieve, the forum may
   be able to suggess you with better options.

   --
   Happy Hacking,
   Gaurav Vaishhttp://www.incoleg.com

   On Apr 19, 5:33 pm, Issam boualem.is...@gmail.com wrote:

Hi,
Make the one item a VerticalPanel (or HorizontalPanel) and then put
what ever you want in Vertical/Horizontal Panel..
On Apr 19, 1:44 pm, Ani anapont...@gmail.com wrote:

 Hello,

 I hope that someone can help me with this question. Is it possible to
 show more than 1 item on a stackpanel? I mean, i know that by
 definition it just show 1 at time, but i'd like to know if it's
 possible to do something like that
 Thank you very much for your help.- Masquer le texte des messages 
 précédents -

  - Afficher le texte des messages précédents -

-- 
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: Adding image to a cell of CellTree

2011-04-26 Thread lamre
Hi, any idea of how to do this.
Thanks.

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



Re: Problem with complex object tree and request factory - two issues

2011-04-26 Thread Marcin Makowski


On Apr 26, 1:08 am, Thomas Broyer t.bro...@gmail.com wrote:
 What's validated is the Product object. When Product#findProduct loads the
 product, does it also load the Group list?

Group is loaded. Double, if you add following lines

  ProductMarginRequest request =
requestFactory.productMarginRequest();
margin = request.create(ProductMarginProxy.class);
margin.setProxy(product);

GWT.log(margin.getProduct().getVendorId)); //some id logged
GWT.log(margin.getProduct().getGroup().getId)); //some id
logged

request.persist(margin).fire(new
ReceiverVoid() {
   @Override
   public void onSuccess(Void response) {
   Window.alert(success!);
   }
   });


regards,

Marcin

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



Aw: Re: StackPanel

2011-04-26 Thread Jens
Maybe you want to create a custom composite that wraps a ScrollPanel. Then 
add a FlowPanel or something to the ScrollPanel and add DisclosurePanels to 
that FlowPanel and arrange them vertically and style them with css.

That way you would have something like the side menu 
in http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTree

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



How to persist child lists with an entity proxy using the Editor framework?

2011-04-26 Thread Christien Lomax
I have an object a that has a number of fields.  One of those fields is a 
list of object B.  In My editor, I can create,edit save, etc A, however 
even though the list of B is proxied, it is never persisted (it gets lost 
between the submit, and the service).  Are there any examples available of 
submitting an object graph that includes a child list?  If not, can anyone 
explain how this is done?

In the examples online, we have a simple graph:

A
|
+--B

And you can create the instance to edit it by doing:
A a = context.create(A.class);
B b = context.create(B.class);
a.setB(b);
context.edit(a);

But how do you edit a List?

A
|
+--ListB



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



Re: Problem with complex object tree and request factory - two issues

2011-04-26 Thread Thomas Broyer
What I meant is that, to me, it's unrelated to RequestFactory proper, and at 
least totally a server thing (it doesn't matter what your ProductProxy looks 
like, it's what the Product looks like on the server side that matters, 
because only the Product/ProductProxy EntityProxyId will go over the wire 
–look at the request payload–)
What RF will do with the above request is:

   1. create a ProductMargin
   2. load the Product by its ID
   3. call productMargin.setProduct(product)
   4. validate productMargin
   5. validate product
   6. etc. (create service instance, call persist method, etc.)

It fails at step 5 above, because product's group field (field, not 
property, it makes a big deal of a difference if you have lazy loading!) is 
null, whereas it has a @NotNull annotation.
Code this somewhere (in a unit test, a servlet, whatever) and run it. If it 
runs then you can blame RequestFactory; otherwise it'll help you debug your 
code.

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



Re: Floating a GWT-built page above an existing conventional page

2011-04-26 Thread jhulford
See the PopupPanel or DialogBox class...that should allow you to do
exactly what you want.

In GWT terms your standard page will be acting as the host page for
your GWT popup stuff you plan on displaying.  Your use case fits in
with all the tutorials of how to get up an going in GWT.  You're just
not inserting widgets, etc into existing slots on the screen, you're
showing a popup (which handles inserting itself into the page).

On Apr 25, 10:28 am, Richard richard.l.gold...@gmail.com wrote:
 First, thanks for taking this question on, second all kinds of
 apologies in advance if I mess-up on terminologies / technologies as I
 attempt to describe the problem:

 Can a GWT-built page be made to float above an existing HTML/CSS/
 Javascript page that has been built with typical (but non-GWT) tools
 and frameworks?

 By float I mean the kind of cool trickery you can get out of JQuery,
 etc. to have some HTML up above the existing page, where the existing
 page suddenly is covered with a translucent smoked glass effect, and
 the floating stuff is clear, has focus, and is usable, before you
 close it to return to the underlying original page.

 Initial attempts at this have failed.

 Is GWT too comprehensive to end up in an iFrame (or whatever DOM
 object JQuery is using)... does it need to own the html and / or
 head tags so it can present its nocache statement?

 Altogether:

 Is there any way to get my GWT page (which works beautifully as a
 stand-alone) to live in the same window as (as top layer above) a pre-
 existing page???

 Thank you so much.

-- 
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: TDD in Gwt

2011-04-26 Thread Tonte Pouncil
Are any of you planning to use maven as your build tool?

Thanks.

Tonté





From: Piotr Kosmowski kospi...@gmail.com
To: Google Web Toolkit google-web-toolkit@googlegroups.com
Sent: Tue, April 26, 2011 2:09:57 AM
Subject: Re: TDD in Gwt

Thank you very much for the presentation. We are starting with GWT a
bigger project and we are going to use TDD. We saw best practices from
Google IO but we are missing some good examples. The only difference
is that we are planning to use MVP4g in stead of native GWT MVP. I
hope it won't complicate our job. Anyway good job Uberto and I hope
that you won't stop showing off your work :-)

On 24 Kwi, 10:46, Uberto Barbini ube...@ubiland.net wrote:
 Hi I just presented a session on working in tdd with gwt (Goos style
 for the connoisseurs ;)).

 http://www.slideshare.net/ubertobarbini/develop-gwt-application-in-tdd

 I hope the slides could be useful to somebody else too.

 Any feedback would be very welcome.

 Happy Easter!

 Uberto

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

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



Re: using SuggestBox with special Oracle and Suggestion - how to keep view humble

2011-04-26 Thread Ben Imp
Most of the GWT widgets have predefined interfaces that will work just 
fine.  HasValue, HasText, HasClickHandlers, etc.  I rarely bother to extend 
these.  Ideally, you wont need to generate too many of these extra 
interfaces.  I think the only additional interface I have created is 
HasClickHandlersAndEnableable, which lets me have greater control over 
buttons without adding more methods to the main view interface.

-Ben

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



Re: I need 2 Google IO tickets

2011-04-26 Thread David Chandler
Hi István,

Were you able to obtain an I/O ticket? Are you still planning to be in SFO
May 10-11? I'm thinking of organizing a GWT get-together off campus so
others could attend.

Thanks,
/dmc

On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.com wrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks people
 were interested. GWT, Android, google apis etc.

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




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

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



Re: I need 2 Google IO tickets

2011-04-26 Thread Christian Goudreau
I'm in !

Cheers,

On Tue, Apr 26, 2011 at 11:17 AM, David Chandler drfibona...@google.comwrote:

 Hi István,

 Were you able to obtain an I/O ticket? Are you still planning to be in SFO
 May 10-11? I'm thinking of organizing a GWT get-together off campus so
 others could attend.

 Thanks,
 /dmc

 On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.com wrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks people
 were interested. GWT, Android, google apis etc.

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




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

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




-- 
Christian Goudreau
www.arcbees.com

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



Re: I need 2 Google IO tickets

2011-04-26 Thread nino ekambi
Wish i could be there :(

2011/4/26 Christian Goudreau goudreau.christ...@gmail.com

 I'm in !

 Cheers,


 On Tue, Apr 26, 2011 at 11:17 AM, David Chandler 
 drfibona...@google.comwrote:

 Hi István,

 Were you able to obtain an I/O ticket? Are you still planning to be in SFO
 May 10-11? I'm thinking of organizing a GWT get-together off campus so
 others could attend.

 Thanks,
 /dmc

 On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.com wrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks people
 were interested. GWT, Android, google apis etc.

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




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

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




 --
 Christian Goudreau
 www.arcbees.com

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




-- 

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

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



AutoBean deserialization facing problem with EntityProxyIdUserProxy stableId()

2011-04-26 Thread Andy
Hi,

I am trying to serialize and deserialize to and from json using
AutoBean as per the link
http://code.google.com/p/google-web-toolkit/wiki/AutoBean

I have the following classes
-
@ProxyFor(User.class)
public interface UserProxy extends EntityProxy {

  @Override
  EntityProxyIdUserProxy stableId();

  String getId();

  void setId(String id);

  void setUserName(String userName);

  String getUserName();

  String getEmail();

  void setEmail(String email);

}
-
@Category(EntityProxyCategory.class)
public interface GTAutoBeanFactory extends AutoBeanFactory {

//AutoBeanUserProxy userProxy();

AutoBeanUserProxy userProxy(UserProxy toWrap);
}
-
// copied from the URL, I don't have much understanding on this
public class EntityProxyCategory {
EntityProxyId? stableId(AutoBeanEntityProxy instance) {
return (EntityProxyId?) instance.getTag(stableId);
}
}
-

//Serialize: (This has no problem)
//---
AutoBeanUserProxy bean = AutoBeanUtils.getAutoBean(user);
String result = AutoBeanCodex.encode(bean).getPayload();

//  The result string is as below
//
{email:t...@gmail.com,id:4db6be71653a25e72154028c,userName:test}


//Deserialize:
//--
UserProxy user = AutoBeanCodex.decode(injector.getGTAutoBeanFactory(),
UserProxy.class, result).as();




However, when deserializing, I get the following error
23:08:49.604 [ERROR] [gettag] Failed to create an instance of
'com.gettag.client.GetTagClientModule$WebStorageProvider' via deferred
binding

java.lang.IllegalArgumentException: The AutoBeanFactory cannot create
a com.gettag.shared.proxies.UserProxy
at com.google.gwt.autobean.shared.AutoBeanCodex
$Decoder.push(AutoBeanCodex.java:240)
at com.google.gwt.autobean.shared.AutoBeanCodex
$Decoder.decode(AutoBeanCodex.java:50)
at
com.google.gwt.autobean.shared.AutoBeanCodex.decode(AutoBeanCodex.java:
505)
at
com.google.gwt.autobean.shared.AutoBeanCodex.decode(AutoBeanCodex.java:
521)
at com.gettag.client.resources.WebStorage.lt;initgt;
(WebStorage.java:30)   -- this is actually the
Deserialize line
at com.gettag.client.GetTagClientModule
$WebStorageProvider.lt;clinitgt;(GetTagClientModule.java:52)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
654)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
458)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.gettag.client.GetTagGinjectorImpl.create_Key$type$com$gettag
$client$GetTagClientModule$WebStorageProvider$_annotation$$none$$
(GetTagGinjectorImpl.java:257)
at com.gettag.client.GetTagGinjectorImpl.get_Key$type$com$gettag
$client$GetTagClientModule$WebStorageProvider$_annotation$$none$$
(GetTagGinjectorImpl.java:271)
at com.gettag.client.GetTagGinjectorImpl.create_Key$type$com$gettag
$client$resources$WebStorage$_annotation$$none$$
(GetTagGinjectorImpl.java:44)
at com.gettag.client.GetTagGinjectorImpl.get_Key$type$com$gettag
$client$resources$WebStorage$_annotation$$none$$
(GetTagGinjectorImpl.java:56)
at
com.gettag.client.GetTagGinjectorImpl.getWebStorage(GetTagGinjectorImpl.java:
35)
at
com.gettag.client.presenter.LoginPresenter.onStart(LoginPresenter.java:
42)
at com.mvp4g.client.Mvp4gModuleImpl$3.start(Mvp4gModuleImpl.java:
130)
at
com.mvp4g.client.Mvp4gModuleImpl.createAndStartModule(Mvp4gModuleImpl.java:
163)
at
com.gettag.client.GetTagEntryPoint.onModuleLoad(GetTagEntryPoint.java:
38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
396)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
183)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
510)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
352)
at java.lang.Thread.run(Unknown Source)

Any kind help on this will be highly appreciated.

Many thanks  best regards
Andy

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

Re: I need 2 Google IO tickets

2011-04-26 Thread István Szoboszlai
Hello David,

We don't have the tickets yet, but are constantly trying to get two on ebay
for a fair price. We are really interested in the get-together. We will be
in SF from may 6th to may 28th. Do you want to do the event on May 10-11 or
another day(s) would also be good.

Meanwhile the IneForm project I mentioned to you is getting ready to
publish:) We have done a lot of refactoring to it, and we will also do it
maven compatible. It must be out in a week. I have demoed it in our local
university (TUB), and they are quiet interested in it. I'll send you the
link when it is out if you are still interested.

Best - Istvan

Üdvözlettel / Best Regards
- István Szoboszlai
istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com


On Tue, Apr 26, 2011 at 5:17 PM, David Chandler drfibona...@google.comwrote:

 Hi István,

 Were you able to obtain an I/O ticket? Are you still planning to be in SFO
 May 10-11? I'm thinking of organizing a GWT get-together off campus so
 others could attend.

 Thanks,
 /dmc

 On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.com wrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks people
 were interested. GWT, Android, google apis etc.

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




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

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


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



Re: I need 2 Google IO tickets

2011-04-26 Thread nino ekambi
IneForm project ? :)


2011/4/26 István Szoboszlai mrsz...@gmail.com

 Hello David,

 We don't have the tickets yet, but are constantly trying to get two on ebay
 for a fair price. We are really interested in the get-together. We will be
 in SF from may 6th to may 28th. Do you want to do the event on May 10-11 or
 another day(s) would also be good.

 Meanwhile the IneForm project I mentioned to you is getting ready to
 publish:) We have done a lot of refactoring to it, and we will also do it
 maven compatible. It must be out in a week. I have demoed it in our local
 university (TUB), and they are quiet interested in it. I'll send you the
 link when it is out if you are still interested.

 Best - Istvan

 Üdvözlettel / Best Regards
 - István Szoboszlai
 istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com



 On Tue, Apr 26, 2011 at 5:17 PM, David Chandler drfibona...@google.comwrote:

 Hi István,

 Were you able to obtain an I/O ticket? Are you still planning to be in SFO
 May 10-11? I'm thinking of organizing a GWT get-together off campus so
 others could attend.

 Thanks,
 /dmc

 On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.com wrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks people
 were interested. GWT, Android, google apis etc.

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




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

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


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




-- 

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

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



GWT + Tomcat + MySQL: How to set up a development environment

2011-04-26 Thread Ani
Hi there,

I am about to create a web application using GWT + MySQL. My
understanding is that I need to set up an external server (Tomcat) in
order to use a MySQL back-end. What's the best way of doing this:

1. Create a Tomcat - Web Dynamic Project and get GWT up and running.
2. Create a Google - Web Application Project and get it to run under
Tomcat.

I have tried both and I haven't been able to get a simple example up
and running.

If anyone can shed any lights here I would really appreciate it.

Cheers

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



Call Webservice on another server using GWT

2011-04-26 Thread abilash kp
How can we call webservice on another server using GWT ?
I use RequestBuilder but it cannot send request to webserver.

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



class not found after create a war

2011-04-26 Thread jako
Hi all,
which is the correct sequence of goal for build a war from my gwt
project?
I compile my application inside eclipse and then run mvn compile
war:war but when I deploy the war   I get an error of type gwt needs
to be ricompiled. what can be causing this error?
thanks

J

-- 
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: AutoBean deserialization facing problem with EntityProxyIdUserProxy stableId()

2011-04-26 Thread Thomas Broyer


On Tuesday, April 26, 2011 5:42:11 PM UTC+2, Andy wrote:

 Hi, 

 I am trying to serialize and deserialize to and from json using 
 AutoBean as per the link 
 http://code.google.com/p/google-web-toolkit/wiki/AutoBean 

 I have the following classes 
 -
  

 @ProxyFor(User.class) 
 public interface UserProxy extends EntityProxy { 


I'm not sure but I think you should use 
ProxySerializerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/requestfactory/shared/ProxySerializer.htmlif
 your AutoBeans are RequestFactory proxies. You'll obtain such a 
ProxySerializer with the 
getSerializerhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/requestfactory/shared/RequestFactory.html#getSerializer(com.google.gwt.requestfactory.shared.ProxyStore)method
 of RequestFactory.

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



Re: I need 2 Google IO tickets

2011-04-26 Thread István Szoboszlai
IneForm is a soon to be opensourced project.
It's main goal is to provide an easy way to present data in Tables and
Forms. It uses a very simple reflection-extension and some descriptors to
enable data-binding and dynamic rendering of tables and forms.
And it constantly gets new features to help kick-starting a GWT based web
application project.
It will be published to code.google.com/p/ineform (the data on the page is
very obsolate now)

I will post it here when it's out. I hope I will get some honet feedback:)

Üdvözlettel / Best Regards
- István Szoboszlai
istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com


On Tue, Apr 26, 2011 at 5:47 PM, nino ekambi jazzmatad...@googlemail.comwrote:

 IneForm project ? :)


 2011/4/26 István Szoboszlai mrsz...@gmail.com

 Hello David,

 We don't have the tickets yet, but are constantly trying to get two on
 ebay for a fair price. We are really interested in the get-together. We will
 be in SF from may 6th to may 28th. Do you want to do the event on May 10-11
 or another day(s) would also be good.

 Meanwhile the IneForm project I mentioned to you is getting ready to
 publish:) We have done a lot of refactoring to it, and we will also do it
 maven compatible. It must be out in a week. I have demoed it in our local
 university (TUB), and they are quiet interested in it. I'll send you the
 link when it is out if you are still interested.

 Best - Istvan

 Üdvözlettel / Best Regards
 - István Szoboszlai
 istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com



 On Tue, Apr 26, 2011 at 5:17 PM, David Chandler 
 drfibona...@google.comwrote:

 Hi István,

 Were you able to obtain an I/O ticket? Are you still planning to be in
 SFO May 10-11? I'm thinking of organizing a GWT get-together off campus so
 others could attend.

 Thanks,
 /dmc

 On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.comwrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks people
 were interested. GWT, Android, google apis etc.

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




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

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


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




 --

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


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


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



Re: I need 2 Google IO tickets

2011-04-26 Thread nino ekambi
Sounds great.
Do you have a demo somewhere to play with ?

2011/4/26 István Szoboszlai mrsz...@gmail.com

 IneForm is a soon to be opensourced project.
 It's main goal is to provide an easy way to present data in Tables and
 Forms. It uses a very simple reflection-extension and some descriptors to
 enable data-binding and dynamic rendering of tables and forms.
 And it constantly gets new features to help kick-starting a GWT based web
 application project.
 It will be published to code.google.com/p/ineform (the data on the page is
 very obsolate now)

 I will post it here when it's out. I hope I will get some honet feedback:)

 Üdvözlettel / Best Regards
 - István Szoboszlai
 istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com


 On Tue, Apr 26, 2011 at 5:47 PM, nino ekambi 
 jazzmatad...@googlemail.comwrote:

 IneForm project ? :)


 2011/4/26 István Szoboszlai mrsz...@gmail.com

 Hello David,

 We don't have the tickets yet, but are constantly trying to get two on
 ebay for a fair price. We are really interested in the get-together. We will
 be in SF from may 6th to may 28th. Do you want to do the event on May 10-11
 or another day(s) would also be good.

 Meanwhile the IneForm project I mentioned to you is getting ready to
 publish:) We have done a lot of refactoring to it, and we will also do it
 maven compatible. It must be out in a week. I have demoed it in our local
 university (TUB), and they are quiet interested in it. I'll send you the
 link when it is out if you are still interested.

 Best - Istvan

 Üdvözlettel / Best Regards
 - István Szoboszlai
 istvan.szobosz...@inepex.com | +36 70 32 64 450 | inepex.com



 On Tue, Apr 26, 2011 at 5:17 PM, David Chandler 
 drfibona...@google.comwrote:

 Hi István,

 Were you able to obtain an I/O ticket? Are you still planning to be in
 SFO May 10-11? I'm thinking of organizing a GWT get-together off campus so
 others could attend.

 Thanks,
 /dmc

 On Fri, Feb 11, 2011 at 12:03 PM, Jeff Larsen larse...@gmail.comwrote:


 I'd also be interested in a get-together for GWT Developers, but I
 will only be in SF if I get a google IO ticket.


 Last year at I/O there were tables setup for the different tracks
 people were interested. GWT, Android, google apis etc.

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




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

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


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




 --

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


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


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




-- 

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

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



Re: GWT + Tomcat + MySQL: How to set up a development environment

2011-04-26 Thread Juan Pablo Gardella
Hi,

I am about to create a web application using GWT + MySQL. My
understanding is that I need to set up an external server (Tomcat) in
order to use a MySQL back-end

No really, GWT is to build frontend. So you can do your backend in other
language, for example PHP and communicate with GWT via JSON. If you want use
only GWT-RPC, yes. You need a Servlet Container.

You think, if you are starting with GWT try first with:

2. Create a Google - Web Application Project and get it to run under

You don't loose time with configurations. Then you can generate the WAR and
deploy in a tomcat server. In time your project grow
I recommend gwt-maven-plugin for manage your project.

PD: Sorry my english


2011/4/26 Ani anice...@gmail.com

 Hi there,

 I am about to create a web application using GWT + MySQL. My
 understanding is that I need to set up an external server (Tomcat) in
 order to use a MySQL back-end. What's the best way of doing this:

 1. Create a Tomcat - Web Dynamic Project and get GWT up and running.
 2. Create a Google - Web Application Project and get it to run under
 Tomcat.

 I have tried both and I haven't been able to get a simple example up
 and running.

 If anyone can shed any lights here I would really appreciate it.

 Cheers

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



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



Re: How to show multiple PopupPanel on the UI?

2011-04-26 Thread Sunit Katkar
Anyone.. any idea?

I tried using DialogBox class instead of PopupPanel but no sucess..

Thank you,
Sunit Katkar




On Tue, Apr 26, 2011 at 1:15 AM, Sunit Katkar sunitkat...@gmail.com wrote:

 I have two buttons on my UI. When each is clicked I need to show a popup
 which is a subclass of the PopupPanel class

 The condition is such that if Button A is clicked then show Popup A. This
 popup has autohide=false, and it stays visible.
 Next, when Button B is clicked then show Popup B. This popup too should
 stay visible and has autohide=false.

 When I try to create two separate instances of MyPopupPanel (which extends
 PopupPanel), upon button clicks, the first click on Button A makes the Popup
 A visible and on the second button B click the popup B shows up but Popup A
 vanishes.

 Any idea what could be wrong.

 I invoke the popups inside button click handlers.

 MyPopup pA = new MyPopup()

 MyPopup pB = new MyPopup()

 and then on each I use the setPositionAndShow() method.



 Thank you,
 Sunit Katkar




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



GWT app does not work in IE

2011-04-26 Thread Micha Roon
Hi,

I have an app developed with GWT. In any browser except IE everything
works fine. In IE 7, 8 or 9 it breaks.

The link is 
https://dev.sertal.net/SertalVision/?locale=de#LoginPlace:test:sertal.ch

In any Browser, the username is filled with test and the tenant with
sertal.ch

The solution I found is to tell people to install ChromeFrame, but one
reason I chose GWT was for its browser portability.

Any hint is appreciated.

Micha

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



PopupPanel greyed by setGlassEnabled

2011-04-26 Thread Micha Roon
I have a LoginView which is displayed in a PopupPanel on which I set
setGlassEnabled(true)

The issue is, that the content of the panel itself are grayed out too.
Everything works, it is just gray.

I would be thankful to know what I am doing wrong.

There are two files involved: LoginView.ui.xml and LoginView.java

this is LoginView.ui.xml:
!DOCTYPE ui:UiBinder
SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;

ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
 xmlns:g='urn:import:com.google.gwt.user.client.ui'
   g:HTMLPanel
 table
tr
   td
  g:Label ui:field=lblTenantTenant/g:Label
   /td
   td
  g:ListBox multipleSelect=false name=tenant
ui:field=tenant/
   /td
/tr
tr
   td
  g:Label ui:field=lblUserNameUser Name/g:Label
   /td
   td
  g:TextBox name=userName ui:field=userName/
   /td
/tr
tr
   td
  g:Label ui:field=lblPasswordPassword/g:Label
   /td
   td
  g:PasswordTextBox name=password
ui:field=password/
   /td
/tr
 /table
 g:Button ui:field=submitLogin/g:Button
   /g:HTMLPanel
/ui:UiBinder

and this is the LoginView.java


package ch.sertal.vision.client.view;

import ch.sertal.vision.client.i18n.LoginConstants;
import ch.sertal.vision.client.model.ClientTenant;
import ch.sertal.vision.client.view.interfaces.ILoginView;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.*;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.*;
import com.google.inject.Inject;
import com.google.inject.Singleton;

import java.util.ArrayList;
import java.util.List;
import java.util.TreeSet;

/**
 * Created by IntelliJ IDEA.
 * User: micharoon
 * Date: 3/20/11
 * Time: 5:50 PM
 * To change this template use File | Settings | File Templates.
 */
@Singleton
public class LoginView extends Composite implements ILoginView {
   private static LoginConstants c = GWT.create(LoginConstants.class);

   @UiField
   TextBox userName;
   @UiField
   TextBox password;
   @UiField
   ListBox tenant;
   @UiField
   Button submit;
   @UiField
   Label lblPassword;
   @UiField
   Label lblUserName;
   @UiField
   Label lblTenant;

   DecoratedPopupPanel popupPanel;

   private int selectedTenant = -1;

   private ArrayListClientTenant tenants;

   private Presenter presenter;

   interface LoginViewUiBinder extends UiBinderWidget, LoginView {}

   private static final LoginViewUiBinder binder =
GWT.create( LoginViewUiBinder.class );

   @Inject
   public LoginView() {
  initWidget(binder.createAndBindUi(this));
  tenant.addChangeHandler(new ChangeHandler() {
 @Override
 public void onChange(ChangeEvent changeEvent) {
selectedTenant = tenant.getSelectedIndex();
 }
  });
  popupPanel = new DecoratedPopupPanel(false, true);
  popupPanel.add(this);
   }

   public TextBox getUserName() {
  return userName;
   }

   public TextBox getPassword() {
  return password;
   }

   public String getTenant() {
  return tenants.get(tenant.getSelectedIndex()).getTechName();
   }

   public void setTenant(String tenantName){
  for(ClientTenant tenant : tenants) {
 if(tenant.getTechName().equals(tenantName)){
this.tenant.setSelectedIndex(tenants.indexOf(tenant));
selectedTenant = tenants.indexOf(tenant);
this.tenant.setEnabled(false);
return;
 }
  }
  this.tenant.setEnabled(true);
   }

   public void setTenants(ArrayListClientTenant tenants) {
  this.tenants = tenants;

  if(tenant != null)
 for(int i=tenant.getItemCount()-1; i = 0; i--){
tenant.removeItem(i);
 }

  for(ClientTenant t : tenants) {
 tenant.addItem(t.getName(c.locale()));
  }

  if(selectedTenant  -1){
 tenant.setSelectedIndex(selectedTenant);
  }
   }

   public Button getSubmit() {
  return submit;
   }

   @Override
   public void setPresenter(Presenter presenter) {
  this.presenter = presenter;
   }

   @Override
   public void show() {
  lblPassword.setText(c.password());
  lblTenant.setText(c.tenant());
  lblUserName.setText(c.userName());

  getSubmit().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent clickEvent) {
presenter.doLogin();
 }
  });

  KeyPressHandler loginOnReturn = new KeyPressHandler() {
 @Override
 public void onKeyPress(KeyPressEvent event) {
if(event.getCharCode() == 10 | event.getCharCode() == 13){
   presenter.doLogin();
}
 }

Re: PopupPanel greyed by setGlassEnabled

2011-04-26 Thread SVR
You could try setting your own style (a different background etc) with:
http://code.google.com/googleapps/appsscript/class_decoratedpopuppanel.html#setGlassStyleName

On Tue, Apr 26, 2011 at 4:05 PM, Micha Roon micha.r...@gmail.com wrote:

 I have a LoginView which is displayed in a PopupPanel on which I set
 setGlassEnabled(true)

 The issue is, that the content of the panel itself are grayed out too.
 Everything works, it is just gray.

 I would be thankful to know what I am doing wrong.

 There are two files involved: LoginView.ui.xml and LoginView.java

 this is LoginView.ui.xml:
 !DOCTYPE ui:UiBinder
SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
 xmlns:g='urn:import:com.google.gwt.user.client.ui'
   g:HTMLPanel
 table
tr
   td
  g:Label ui:field=lblTenantTenant/g:Label
   /td
   td
  g:ListBox multipleSelect=false name=tenant
 ui:field=tenant/
   /td
/tr
tr
   td
  g:Label ui:field=lblUserNameUser Name/g:Label
   /td
   td
  g:TextBox name=userName ui:field=userName/
   /td
/tr
tr
   td
  g:Label ui:field=lblPasswordPassword/g:Label
   /td
   td
  g:PasswordTextBox name=password
 ui:field=password/
   /td
/tr
 /table
 g:Button ui:field=submitLogin/g:Button
   /g:HTMLPanel
 /ui:UiBinder

 and this is the LoginView.java


 package ch.sertal.vision.client.view;

 import ch.sertal.vision.client.i18n.LoginConstants;
 import ch.sertal.vision.client.model.ClientTenant;
 import ch.sertal.vision.client.view.interfaces.ILoginView;
 import com.google.gwt.core.client.GWT;
 import com.google.gwt.event.dom.client.*;
 import com.google.gwt.uibinder.client.UiBinder;
 import com.google.gwt.uibinder.client.UiField;
 import com.google.gwt.user.client.ui.*;
 import com.google.inject.Inject;
 import com.google.inject.Singleton;

 import java.util.ArrayList;
 import java.util.List;
 import java.util.TreeSet;

 /**
  * Created by IntelliJ IDEA.
  * User: micharoon
  * Date: 3/20/11
  * Time: 5:50 PM
  * To change this template use File | Settings | File Templates.
  */
 @Singleton
 public class LoginView extends Composite implements ILoginView {
   private static LoginConstants c = GWT.create(LoginConstants.class);

   @UiField
   TextBox userName;
   @UiField
   TextBox password;
   @UiField
   ListBox tenant;
   @UiField
   Button submit;
   @UiField
   Label lblPassword;
   @UiField
   Label lblUserName;
   @UiField
   Label lblTenant;

   DecoratedPopupPanel popupPanel;

   private int selectedTenant = -1;

   private ArrayListClientTenant tenants;

   private Presenter presenter;

   interface LoginViewUiBinder extends UiBinderWidget, LoginView {}

   private static final LoginViewUiBinder binder =
 GWT.create( LoginViewUiBinder.class );

   @Inject
   public LoginView() {
  initWidget(binder.createAndBindUi(this));
  tenant.addChangeHandler(new ChangeHandler() {
 @Override
 public void onChange(ChangeEvent changeEvent) {
selectedTenant = tenant.getSelectedIndex();
 }
  });
  popupPanel = new DecoratedPopupPanel(false, true);
  popupPanel.add(this);
   }

   public TextBox getUserName() {
  return userName;
   }

   public TextBox getPassword() {
  return password;
   }

   public String getTenant() {
  return tenants.get(tenant.getSelectedIndex()).getTechName();
   }

   public void setTenant(String tenantName){
  for(ClientTenant tenant : tenants) {
 if(tenant.getTechName().equals(tenantName)){
this.tenant.setSelectedIndex(tenants.indexOf(tenant));
selectedTenant = tenants.indexOf(tenant);
this.tenant.setEnabled(false);
return;
 }
  }
  this.tenant.setEnabled(true);
   }

   public void setTenants(ArrayListClientTenant tenants) {
  this.tenants = tenants;

  if(tenant != null)
 for(int i=tenant.getItemCount()-1; i = 0; i--){
tenant.removeItem(i);
 }

  for(ClientTenant t : tenants) {
 tenant.addItem(t.getName(c.locale()));
  }

  if(selectedTenant  -1){
 tenant.setSelectedIndex(selectedTenant);
  }
   }

   public Button getSubmit() {
  return submit;
   }

   @Override
   public void setPresenter(Presenter presenter) {
  this.presenter = presenter;
   }

   @Override
   public void show() {
  lblPassword.setText(c.password());
  lblTenant.setText(c.tenant());
  lblUserName.setText(c.userName());

  getSubmit().addClickHandler(new ClickHandler() {
 @Override
 public void onClick(ClickEvent clickEvent) {
presenter.doLogin();
 }
  

Re: Floating a GWT-built page above an existing conventional page

2011-04-26 Thread Richard
Please... how to get that PopupPanel instance to come to life if it's
being called from (and meant to overlay) a page that has nothing to do
with GWT???  Thanks so much.


On Apr 26, 9:13 am, jhulford jhulf...@gmail.com wrote:
 See the PopupPanel or DialogBox class...that should allow you to do
 exactly what you want.

 In GWT terms your standard page will be acting as the host page for
 your GWT popup stuff you plan on displaying.  Your use case fits in
 with all the tutorials of how to get up an going in GWT.  You're just
 not inserting widgets, etc into existing slots on the screen, you're
 showing a popup (which handles inserting itself into the page).

 On Apr 25, 10:28 am, Richard richard.l.gold...@gmail.com wrote:







  First, thanks for taking this question on, second all kinds of
  apologies in advance if I mess-up on terminologies / technologies as I
  attempt to describe the problem:

  Can a GWT-built page be made to float above an existing HTML/CSS/
  Javascript page that has been built with typical (but non-GWT) tools
  and frameworks?

  By float I mean the kind of cool trickery you can get out of JQuery,
  etc. to have some HTML up above the existing page, where the existing
  page suddenly is covered with a translucent smoked glass effect, and
  the floating stuff is clear, has focus, and is usable, before you
  close it to return to the underlying original page.

  Initial attempts at this have failed.

  Is GWT too comprehensive to end up in an iFrame (or whatever DOM
  object JQuery is using)... does it need to own the html and / or
  head tags so it can present its nocache statement?

  Altogether:

  Is there any way to get my GWT page (which works beautifully as a
  stand-alone) to live in the same window as (as top layer above) a pre-
  existing page???

  Thank you so much.

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



Re: How to persist child lists with an entity proxy using the Editor framework?

2011-04-26 Thread Christien Lomax
I should note, that when stepping through the code, we can see the the list 
of B objects is indeed part of the proxy, but sometime after the request 
the values are lost.  We get a Violation error, as the name field in B 
is now null, instead of teh value that was set.

Does anyone have a clue what is going on?

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



Warning while loading images from local machine

2011-04-26 Thread Patssay
Why do I get this message when I am trying to load images from local
machine
in my GWT application?


[WARN] 404 - GET /Images%5Cbirthday1.jpg (127.0.0.1) 1408 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
1.9.2.16) Gecko/20110319 Firefox/3.6.16 PBSTB/1.2
  Accept: image/png,image/*;q=0.8,*/*;q=0.5
  Accept-Language: en-us,en;q=0.5
  Accept-Encoding: gzip,deflate
  Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Referer: http://127.0.0.1:/Greetings.html?gwt.codesvr=127.0.0.1:9997
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 1408

-- 
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: Warning while loading images from local machine

2011-04-26 Thread Alan Chaney

Well, 404 is NOT FOUND

and as the image path is

/Images%5Cbirthday1.jpg

I suspect that you've urlencoded the path somewhere ( %5C === '\') which is a path separator in 
windows but not a valid path separator in HTTP.  In other words, the URL for the image should be 
/Images/birthday1.jpg




HTH

Alan

On 4/26/2011 3:29 PM, Patssay wrote:

Why do I get this message when I am trying to load images from local
machine
in my GWT application?


[WARN] 404 - GET /Images%5Cbirthday1.jpg (127.0.0.1) 1408 bytes
Request headers
   Host: 127.0.0.1:
   User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
1.9.2.16) Gecko/20110319 Firefox/3.6.16 PBSTB/1.2
   Accept: image/png,image/*;q=0.8,*/*;q=0.5
   Accept-Language: en-us,en;q=0.5
   Accept-Encoding: gzip,deflate
   Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
   Keep-Alive: 115
   Connection: keep-alive
   Referer: http://127.0.0.1:/Greetings.html?gwt.codesvr=127.0.0.1:9997
Response headers
   Content-Type: text/html; charset=iso-8859-1
   Content-Length: 1408




--
Alan Chaney
CTO and Founder, Mechnicality, Inc.
www.mechnicality.com

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



Embedding the GWT application deployed on App Engine into Google Sites

2011-04-26 Thread Vikas Hazrati
Hi,

I created a simple gadget using gwt which is hosted at the following
location http://genpactpoc.appspot.com/

How do I include this app into google sites? I tried including it as a
gadget with the following URL http://genpactpoc.appspot.com/docversion.html
but that does not work. Do i have to include the XML ? if yes, how?
Any pointers would be appreciated.

Regards | Vikas

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



GWT Marquee

2011-04-26 Thread Dyos
Hi all,

Well I am trying to get some scrolling text on my web page. The
solution I found is to create a static empty marquee tag on the page
and the access it with the DOM parser and set my text with
setInnerHTML method. (The text I put in is dynamic and comes from the
server)

Anyway the text show up correctly but serverous glitches appear with
the animation.
Sometimes it just dont start sometimes it start and scroll too fast...

Is there any solution to fix that or replace the marquee tag with
another type of text scrolling.

Im using GWT 2.2 and testing the application on Mozilla Firefox.


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



GWT 2.2 - SingleSelectionModel and CellTable behavior issue

2011-04-26 Thread John Bates
Hi, all.

I've encountered some odd behavior when using a SingleSelectionModel
with a CellTable: when the user clicks a cell in the table, my
onSelectionChange callback reports the correct selected object, but
the CellTable widget appears to have all rows selected, as opposed to
just the row corresponding to the selected object.  I initialize the
table as follows:

...

// set the data provider
dataProvider.addDataDisplay(table);

// add a selection model
final SingleSelectionModelSample selectionModel = new
SingleSelectionModelSample();
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
@Override
public void onSelectionChange(SelectionChangeEvent event) {
Sample selected = (Sample) selectionModel.getSelectedObject();
if(selected != null) {
GWT.log(You have selected:  + 
selected.getExperimentId() +   +
selected.getSampleId());
}
}
});

table.setSelectionModel(selectionModel);

...

Any ideas as to what might be wrong?

Thanks in advance for your help!
-John Bates

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



Re: Can't serialize a Hashset for an RPC call

2011-04-26 Thread macamat
If you are Google App Engine, then the problem could be that even if
you saved a java.util.HashSetLong to the datastore, it will give you
back a org.datanucleus.sco.backed.HashSetLong when you retrieve the
parent object. It's allowed, because the sco backed version is a
subclass of java.util.HashSet.
However, GWT cannot serialize a sco backed HashSet, and you get the
error shown.

Solution - convert your sco backed HashSet to a java.util.HashSet on
the server before sending back to the client.

-- 
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: Warning while loading images from local machine

2011-04-26 Thread Patssay
Yes! Thanks ..Dont know why I changed it..had the same originally!!
Also had copied images in the wrong folder it seems!

Cheers,
Sayali

On Apr 26, 5:52 pm, Alan Chaney a...@mechnicality.com wrote:
 Well, 404 is NOT FOUND

 and as the image path is

 /Images%5Cbirthday1.jpg

 I suspect that you've urlencoded the path somewhere ( %5C === '\') which is a 
 path separator in
 windows but not a valid path separator in HTTP.  In other words, the URL for 
 the image should be
 /Images/birthday1.jpg

 HTH

 Alan

 On 4/26/2011 3:29 PM, Patssay wrote:









  Why do I get this message when I am trying toloadimagesfrom local
  machine
  in my GWT application?

  [WARN] 404 - GET /Images%5Cbirthday1.jpg (127.0.0.1) 1408 bytes
      Request headers
         Host: 127.0.0.1:
         User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
  1.9.2.16) Gecko/20110319 Firefox/3.6.16 PBSTB/1.2
         Accept: image/png,image/*;q=0.8,*/*;q=0.5
         Accept-Language: en-us,en;q=0.5
         Accept-Encoding: gzip,deflate
         Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
         Keep-Alive: 115
         Connection: keep-alive
         
  Referer:http://127.0.0.1:/Greetings.html?gwt.codesvr=127.0.0.1:9997
      Response headers
         Content-Type: text/html; charset=iso-8859-1
         Content-Length: 1408

 --
 Alan Chaney
 CTO and Founder, Mechnicality, Inc.www.mechnicality.com

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



Re: GWT + Tomcat + MySQL: How to set up a development environment

2011-04-26 Thread Maurizio Moro

Il 26/04/2011 06:12, Ani ha scritto:

Hi there,

I am about to create a web application using GWT + MySQL. My
understanding is that I need to set up an external server (Tomcat) in
order to use a MySQL back-end. What's the best way of doing this:

1. Create a Tomcat - Web Dynamic Project and get GWT up and running.
2. Create a Google - Web Application Project and get it to run under
Tomcat.

I have tried both and I haven't been able to get a simple example up
and running.

If anyone can shed any lights here I would really appreciate it.

Cheers



Hi I'm setting the project with Tomcat in this way:
(Eclipse Helios 3.6.2)
1. create the  web app google GWT
2. configure build path to apply facet dynamic web (2.5 or 3.0 version 
based on Your application server)

3. configure build path to apply facet jpa 2.0
4. configure your app server (Tomcat, JBoss, etc)
Then You can use the developer edition  Jetty based or may it's possible 
to run/debug  on server (ex. Tomcat).


Regards

Maurizio

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



[gwt-contrib] Re: Re-architect how overrides are handled. (issue1422810)

2011-04-26 Thread t . broyer

Hey, it looks like it would fix this issue, cool!
http://code.google.com/p/google-web-toolkit/issues/detail?id=4893
According to my tests at the time, it would enable pruning of most
getClass() methods (at a minimum all those for abstract classes, which
are always overridden in the concrete classes, and then never executed):
http://gwt-code-reviews.appspot.com/609801/show

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

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


[gwt-contrib] Re: Wrap low-priorty log calls with an 'if' test to avoid unnecessary calls (issue1425807)

2011-04-26 Thread jat

LGTM


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

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


[gwt-contrib] Re: Re-architect how overrides are handled. (issue1422810)

2011-04-26 Thread Scott Blum
It actually does fix the abstract getClass() problem, I was noticing in the
generated output.  I'll mark my change as fixing this issue.

On Tue, Apr 26, 2011 at 4:03 AM, t.bro...@gmail.com wrote:

 Hey, it looks like it would fix this issue, cool!
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4893
 According to my tests at the time, it would enable pruning of most
 getClass() methods (at a minimum all those for abstract classes, which
 are always overridden in the concrete classes, and then never executed):
 http://gwt-code-reviews.appspot.com/609801/show


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


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

[gwt-contrib] Re: Re-architect how overrides are handled. (issue1422810)

2011-04-26 Thread scottb


http://gwt-code-reviews.appspot.com/1422810/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java
File dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java (right):

http://gwt-code-reviews.appspot.com/1422810/diff/1/dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java#newcode830
dev/core/src/com/google/gwt/dev/jjs/ast/JTypeOracle.java:830: }
Note to self: the method name doesn't match the function.  Either rename
the method, or else go ahead and reduce the returned set to
non-abstract, instantiable types.

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

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


[gwt-contrib] Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scheglov

Reviewers: zundel,

Description:
Adds cache of CollectClassData to make refresh faster.
This gives about 10% performance gain on big projects.


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

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
  A dev/core/src/com/google/gwt/dev/util/ByteArrayWrapper.java
  A dev/core/test/com/google/gwt/dev/util/ByteArrayWrapperTest.java


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


[gwt-contrib] Allow enum ordinalization to work correctly for enum classes with no values (i.e. empty enums). (issue1423809)

2011-04-26 Thread jbrosenberg

Reviewers: scottb,

Description:
Allow enum ordinalization to work correctly for enum classes with no
values (i.e. empty enums).


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

Affected files:
  M dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java
  M dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java


Index: dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java
===
--- dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java	(revision  
10048)
+++ dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java	(working  
copy)

@@ -19,6 +19,7 @@
 import com.google.gwt.dev.jjs.SourceInfo;
 import com.google.gwt.dev.jjs.ast.Context;
 import com.google.gwt.dev.jjs.ast.JArrayType;
+import com.google.gwt.dev.jjs.ast.JBlock;
 import com.google.gwt.dev.jjs.ast.JCastOperation;
 import com.google.gwt.dev.jjs.ast.JClassLiteral;
 import com.google.gwt.dev.jjs.ast.JClassType;
@@ -42,6 +43,7 @@
 import com.google.gwt.dev.jjs.ast.JVariableRef;
 import com.google.gwt.dev.jjs.ast.js.JsniFieldRef;
 import com.google.gwt.dev.jjs.ast.js.JsniMethodRef;
+import com.google.gwt.dev.util.collect.Lists;
 import com.google.gwt.dev.util.log.speedtracer.CompilerEventType;
 import com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger;
 import com.google.gwt.dev.util.log.speedtracer.SpeedTracerLogger.Event;
@@ -790,8 +792,11 @@
  * clinit for an ordinalizable enum.
  */
 private void updateClinit(JMethod method) {
-  ListJStatement stmts = ((JMethodBody)  
method.getBody()).getStatements();

+  JBlock stmtBlock = ((JMethodBody) method.getBody()).getBlock();
+  ListJStatement stmts = stmtBlock.getStatements();
   IteratorJStatement it = stmts.iterator();
+  ListInteger toRemove = Lists.create();
+  int index = 0;
   // look for statements of the form EnumValueField = ...
   while (it.hasNext()) {
 JStatement stmt = it.next();
@@ -800,16 +805,19 @@
   if (ref instanceof JFieldRef) {
 JFieldRef enumRef = (JFieldRef) ref;
 if (enumRef.getField().getEnclosingType() ==  
method.getEnclosingType()) {
-  // see if LHS is a field ref that corresponds to the class  
of this

-  // method
+  // see if LHS is a field ref that corresponds to the class  
of this method

   if (enumRef.getField() instanceof JEnumField) {
-it.remove();
+toRemove = Lists.add(toRemove,index);
   } else if (enumRef.getField().getName().equals($VALUES)) {
-it.remove();
+toRemove = Lists.add(toRemove,index);
   }
 }
   }
 }
+index++;
+  }
+  for (int i = toRemove.size() - 1; i = 0; i--) {
+stmtBlock.removeStmt(toRemove.get(i));
   }
 }
   }
Index: dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java
===
--- dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java	 
(revision 10048)
+++ dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java	 
(working copy)

@@ -225,6 +225,30 @@
 assertTrue(tracker.isOrdinalized(test.EntryPoint$Fruit));
   }

+  public void testOrdinalizeUnusedEnum()
+  throws UnableToCompleteException  {
+EnumOrdinalizer.resetTracker();
+
+setupFruitEnum();
+
+optimize(void, Fruit myEnum;);
+
+EnumOrdinalizer.Tracker tracker = EnumOrdinalizer.getTracker();
+assertTrue(tracker.isOrdinalized(test.EntryPoint$Fruit));
+  }
+
+  public void testOrdinalizeUnusedEmptyEnum()
+  throws UnableToCompleteException  {
+EnumOrdinalizer.resetTracker();
+
+setupEmptyEnum();
+
+optimize(void, EmptyEnum myEnum;);
+
+EnumOrdinalizer.Tracker tracker = EnumOrdinalizer.getTracker();
+assertTrue(tracker.isOrdinalized(test.EntryPoint$EmptyEnum));
+  }
+
   public void testNotOrdinalizableClassLiteralReference()
   throws UnableToCompleteException  {
 EnumOrdinalizer.resetTracker();
@@ -796,6 +820,10 @@
 assertFalse(tracker.isOrdinalized(test.EntryPoint$Vegetable));
   }

+  private void setupEmptyEnum() {
+addSnippetClassDecl(public enum EmptyEnum {});
+  }
+
   private void setupFruitEnum() {
 addSnippetClassDecl(public enum Fruit {APPLE, ORANGE});
 setupExtraDummyEnum();


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


[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scottb

High-level, it seems like we might want to think about how to tie the
lifecycle of the data to the lifecycle of the associated
CompilationUnit/CompiledClass.  Maybe this should actually be moved into
a lazy-initialized transient field in CompiledClass instead of having to
use a map.

Also, now that we're going to be caching these in memory, these classes
are in sore need of a remove unused data pass.  Much of the contained
data isn't used in practice.


http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
File dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
(right):

http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode249
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:249: new
ReferenceMap(AbstractReferenceMap.HARD, AbstractReferenceMap.SOFT);
Needs to be synchronized?

http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode467
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:467:
MapString, Object values = Maps.newHashMap(annotData.getValues());
What's the motivation here?

http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/util/ByteArrayWrapper.java
File dev/core/src/com/google/gwt/dev/util/ByteArrayWrapper.java (right):

http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/util/ByteArrayWrapper.java#newcode36
dev/core/src/com/google/gwt/dev/util/ByteArrayWrapper.java:36: 
Arrays.equals(bytes, ((ByteArrayWrapper) obj).bytes);
Why not compare hashCode before the expensive byte compare?

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

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


[gwt-contrib] Re: Fix cast normalizer to properly deal with multidimensional JSO arrays. (issue1428803)

2011-04-26 Thread scottb

LGTM

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

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


[gwt-contrib] Re: Introducing CustomScrollPanel, a subclass of ScrollPanel that lets users define their own scroll... (issue1427804)

2011-04-26 Thread jlabanca

committed as r10067

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

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


[gwt-contrib] Re: Allow enum ordinalization to work correctly for enum classes with no values (i.e. empty enums). (issue1423809)

2011-04-26 Thread scottb

LGTM w/ nits


http://gwt-code-reviews.appspot.com/1423809/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java
File dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java
(right):

http://gwt-code-reviews.appspot.com/1423809/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java#newcode810
dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java:810:
toRemove = Lists.add(toRemove,index);
Why not do the remove inline?  I think there's a fairly common pattern
where you just index-- at the removal site to offset the ++ below.

http://gwt-code-reviews.appspot.com/1423809/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java
File dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java
(right):

http://gwt-code-reviews.appspot.com/1423809/diff/1/dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java#newcode250
dev/core/test/com/google/gwt/dev/jjs/impl/EnumOrdinalizerTest.java:250:
}
If I'm scanning this correctly, I think the sort order is backwards.

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

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


[gwt-contrib] [google-web-toolkit] r10068 committed - Cherry pick r10025 into gwt/releases/2.3

2011-04-26 Thread codesite-noreply

Revision: 10068
Author:   zun...@google.com
Date: Tue Apr 19 09:50:32 2011
Log:  Cherry pick r10025 into gwt/releases/2.3

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

Modified:
  
/releases/2.3/dev/core/src/com/google/gwt/dev/cfg/ConditionWhenTypeAssignableTo.java

 /releases/2.3/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java

===
---  
/releases/2.3/dev/core/src/com/google/gwt/dev/cfg/ConditionWhenTypeAssignableTo.java	 
Tue Apr 19 09:13:32 2011
+++  
/releases/2.3/dev/core/src/com/google/gwt/dev/cfg/ConditionWhenTypeAssignableTo.java	 
Tue Apr 19 09:50:32 2011

@@ -105,7 +105,7 @@
   if (!warnedMissingValidationJar) {
 warnedMissingValidationJar = true;
 logger.log(TreeLogger.WARN, Detected warnings related to ' +  
typeName + '. 
-+   Is validation-api-version-sources.jar on the  
classpath?);
++   Are validation-api-version.jar and  
validation-api-version-sources.jar on the classpath?);
 logger.log(TreeLogger.INFO, Specify -logLevel DEBUG to see all  
errors.);

 // Show the first error that matches
 return false;
===
---  
/releases/2.3/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java	 
Wed Feb  9 07:49:06 2011
+++  
/releases/2.3/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java	 
Tue Apr 19 09:50:32 2011

@@ -25,15 +25,15 @@
 import com.google.gwt.dev.asm.signature.SignatureReader;
 import com.google.gwt.dev.asm.util.TraceClassVisitor;
 import com.google.gwt.dev.javac.asm.CollectAnnotationData;
+import com.google.gwt.dev.javac.asm.CollectAnnotationData.AnnotationData;
 import com.google.gwt.dev.javac.asm.CollectClassData;
+import com.google.gwt.dev.javac.asm.CollectClassData.AnnotationEnum;
 import com.google.gwt.dev.javac.asm.CollectFieldData;
 import com.google.gwt.dev.javac.asm.CollectMethodData;
 import com.google.gwt.dev.javac.asm.CollectTypeParams;
 import com.google.gwt.dev.javac.asm.ResolveClassSignature;
 import com.google.gwt.dev.javac.asm.ResolveMethodSignature;
 import com.google.gwt.dev.javac.asm.ResolveTypeSignature;
-import com.google.gwt.dev.javac.asm.CollectAnnotationData.AnnotationData;
-import com.google.gwt.dev.javac.asm.CollectClassData.AnnotationEnum;
 import com.google.gwt.dev.javac.typemodel.JAbstractMethod;
 import com.google.gwt.dev.javac.typemodel.JArrayType;
 import com.google.gwt.dev.javac.typemodel.JClassType;
@@ -239,6 +239,11 @@
*/
   private static final boolean TRACE_CLASSES = false;

+  /**
+   * Suppress some warnings related to missing valiation.jar on classpath.
+   */
+  private static boolean warnedMissingValidationJar = false;
+
   private static JTypeParameter[] collectTypeParams(String signature) {
 if (signature != null) {
   ListJTypeParameter params = new ArrayListJTypeParameter();
@@ -541,22 +546,27 @@
   private Class? extends Annotation getAnnotationClass(TreeLogger logger,
   AnnotationData annotData) {
 Type type = Type.getType(annotData.getDesc());
+String typeName = type.getClassName();
 try {
-  Class? clazz = Class.forName(type.getClassName(), false,
+  Class? clazz = Class.forName(typeName, false,
   Thread.currentThread().getContextClassLoader());
   if (!Annotation.class.isAssignableFrom(clazz)) {
-logger.log(TreeLogger.ERROR, Type  + type.getClassName()
+logger.log(TreeLogger.ERROR, Type  + typeName
 +  is not an annotation);
 return null;
   }
   return clazz.asSubclass(Annotation.class);
 } catch (ClassNotFoundException e) {
-  logger.log(TreeLogger.WARN, Ignoring unresolvable annotation type 
-  + type.getClassName());
+  TreeLogger.Type level = TreeLogger.WARN;
+  if (shouldSuppressUnresolvableAnnotation(logger, typeName)) {
+level = TreeLogger.DEBUG;
+  }
+  logger.log(level, Ignoring unresolvable annotation type 
+  + typeName);
   return null;
 }
   }
-
+
   @SuppressWarnings(unused)
   private Class? getClassLiteralForPrimitive(Type type) {
 switch (type.getSort()) {
@@ -583,7 +593,7 @@
 return null;
 }
   }
-
+
   /**
* Map a bitset onto a different bitset.
*
@@ -1164,4 +1174,27 @@
 return null;
 }
   }
-}
+
+  /**
+   * Suppress multiple validation related messages and replace with a hint.
+   *
+   * @param typeName fully qualified type name to check for filtering
+   */
+  // TODO(zundel): Can be removed when javax.validation is included in the  
JRE
+  private boolean shouldSuppressUnresolvableAnnotation(TreeLogger logger,  
String typeName) {

+if (typeName.startsWith(javax.validation.)
+|| typeName.startsWith(com.google.gwt.validation.)) {
+  if (!warnedMissingValidationJar) {
+warnedMissingValidationJar = true;
+logger.log(TreeLogger.WARN, Detected warnings related to ' +  
typeName + '. 

++ 

[gwt-contrib] [google-web-toolkit] r10069 committed - Cherry picking r10017 into releases/2.3m1 for public issue...

2011-04-26 Thread codesite-noreply

Revision: 10069
Author:   gwt.mirror...@gmail.com
Date: Tue Apr 26 09:33:54 2011
Log:  Cherry picking r10017 into releases/2.3m1 for public issue
http://gwt-code-reviews.appspot.com/1423801/

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

Modified:
  
/releases/2.3/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java


===
---  
/releases/2.3/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
Tue Apr 12 13:51:55 2011
+++  
/releases/2.3/user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
Tue Apr 26 09:33:54 2011

@@ -47,8 +47,6 @@

   private static final String TEMPLATE_SUFFIX = .ui.xml;

-  private static final String ELEMENT_FACTORY_PROPERTY  
= uibinder.html.elementfactory;

-
   private static final String XSS_SAFE_CONFIG_PROPERTY  
= UiBinder.useSafeHtmlTemplates;


   private static boolean xssWarningGiven = false;

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


[gwt-contrib] Re: Introducing ServiceHelper, a inner class of RemoteServiceProxy that (issue1423808)

2011-04-26 Thread bobv

LGTM

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

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


[gwt-contrib] Autoformats a few files before patch (issue1425809)

2011-04-26 Thread zundel

Reviewers: scottb, jbrosenberg,

Description:
Autoformats a few files before patch


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

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java
  M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
  M dev/core/src/com/google/gwt/dev/javac/CompiledClass.java
  M dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java


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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rjrjr


http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
File
user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java#newcode76
user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java:76:
if (null == customTag) {
Please check for appropriate constructor with
com.google.gwt.uibinder.rebind.TypeOracleUtils.hasCompatibleConstructor(JClassType,
JType...), and call logger.die if none is found.

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode84
user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:84:
childFieldWriter.setBuildPrecendence(2);
This looks brittle. Shouldn't you ask for this widget's precedence and
set the child's to +1?

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode99
user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:99:
elementWriter.setBuildPrecendence(2);
ditto

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode123
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:123:
childFieldWriter.setBuildPrecendence(2);
Again with the magic constant

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode133
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:133:
elementWriter.setBuildPrecendence(2);
ditto

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
File user/src/com/google/gwt/uibinder/rebind/FieldWriter.java (right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java#newcode133
user/src/com/google/gwt/uibinder/rebind/FieldWriter.java:133: * doesn't
scale well. Centralize these values, using enums or constants.
FYI, field Writers already model a dependency chain, see
needs(FieldWriter) above. Would that let us drop the precedence thing?
Should have called this out during Hermes's review, oh well.

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

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


[gwt-contrib] Re: Autoformats a few files before patch (issue1425809)

2011-04-26 Thread jbrosenberg

LGTM

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

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


[gwt-contrib] Phase 1 of GWT Dashboard. This includes an interface in gwt-dev for posting to a dashboard (defa... (issue1427807)

2011-04-26 Thread jhumphries

Reviewers: tobyr,

Description:
Phase 1 of GWT Dashboard. This includes an interface in gwt-dev for
posting to a dashboard (default implementation is a no-op). Added calls
to this interface in a couple of places. Created factory class that can
provide the no-op implementation or a real implementation (based on
system property). Updated unit test for SpeedTracerLogger to include a
test that verifies that it is posting events to dashboard as expected.

Review by: to...@google.com

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

Affected files:
  M dev/core/src/com/google/gwt/dev/shell/OophmSessionHandler.java
  A  
dev/core/src/com/google/gwt/dev/util/log/dashboard/DashboardNotifier.java
  A  
dev/core/src/com/google/gwt/dev/util/log/dashboard/DashboardNotifierFactory.java
  A  
dev/core/src/com/google/gwt/dev/util/log/dashboard/NoOpDashboardNotifier.java
  M  
dev/core/src/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLogger.java
  A  
dev/core/test/com/google/gwt/dev/util/log/dashboard/SpeedTracerLoggerTestMockNotifier.java
  M  
dev/core/test/com/google/gwt/dev/util/log/speedtracer/SpeedTracerLoggerTest.java



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


[gwt-contrib] Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rdcastro

Reviewers: rjrjr, hermes,

Description:
Introduce the Attachable interface, and add support to UiBinder's
HTMLPanel parser.


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

Affected files:
  A  
user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
  A  
user/src/com/google/gwt/uibinder/elementparsers/AttachableInterpreter.java

  M user/src/com/google/gwt/uibinder/elementparsers/InterpreterPipe.java
  M user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java

  M user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java
  M user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  A user/src/com/google/gwt/user/client/ui/Attachable.java
  A user/src/com/google/gwt/user/client/ui/AttachableComposite.java
  A user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java


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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rdcastro

Thanks, guys. Another look?


http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
File
user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java#newcode76
user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java:76:
if (null == customTag) {
On 2011/04/26 17:13:47, rjrjr wrote:

Please check for appropriate constructor with


com.google.gwt.uibinder.rebind.TypeOracleUtils.hasCompatibleConstructor(JClassType,

JType...), and call logger.die if none is found.


Actually, I totally missed this, but supporting custom root elements is
something I still have to add to AttachableHTMLPanel. It's not hard, but
since it's not blocking for 99% of our tests, I'd like to put it
together with the other 2 dozen of TODOs I'm adding with this CL... I
promise I'll get to them. Scout's honor. :-)

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode84
user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:84:
childFieldWriter.setBuildPrecendence(2);
On 2011/04/26 17:13:47, rjrjr wrote:

This looks brittle. Shouldn't you ask for this widget's precedence and

set the

child's to +1?


Done.

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode99
user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:99:
elementWriter.setBuildPrecendence(2);
On 2011/04/26 17:13:47, rjrjr wrote:

ditto


Done.

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
File
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode123
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:123:
childFieldWriter.setBuildPrecendence(2);
On 2011/04/26 17:13:47, rjrjr wrote:

Again with the magic constant


Done.

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode133
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:133:
elementWriter.setBuildPrecendence(2);
On 2011/04/26 17:13:47, rjrjr wrote:

ditto


Done.

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
File user/src/com/google/gwt/uibinder/rebind/FieldWriter.java (right):

http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java#newcode133
user/src/com/google/gwt/uibinder/rebind/FieldWriter.java:133: * doesn't
scale well. Centralize these values, using enums or constants.
On 2011/04/26 17:13:47, rjrjr wrote:

FYI, field Writers already model a dependency chain, see

needs(FieldWriter)

above. Would that let us drop the precedence thing? Should have called

this out

during Hermes's review, oh well.


Hermes is fixing this in a follow-up CL, but I don't think he's actually
using that info. I think he's just creating enums for these constants.

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

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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rdcastro

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

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


[gwt-contrib] [google-web-toolkit] r10071 committed - Introducing ServiceHelper, a inner class of RemoteServiceProxy that...

2011-04-26 Thread codesite-noreply

Revision: 10071
Author:   gwt.mirror...@gmail.com
Date: Tue Apr 26 10:46:07 2011
Log:  Introducing ServiceHelper, a inner class of RemoteServiceProxy  
that

makes ProxyCreator generates less code.

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

Review by: robertvaw...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10071

Modified:
 /trunk/user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java
 /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java

===
---  
/trunk/user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java	 
Mon Mar 21 12:22:19 2011
+++  
/trunk/user/src/com/google/gwt/user/client/rpc/impl/RemoteServiceProxy.java	 
Tue Apr 26 10:46:07 2011

@@ -46,6 +46,63 @@
* The content type to be used in HTTP requests.
*/
   private static final String RPC_CONTENT_TYPE = text/x-gwt-rpc;  
charset=utf-8;

+
+  /**
+   * A helper class that prepares the service to serialize data.
+   */
+  public class ServiceHelper {
+
+private final String fullServiceName;
+private final String methodName;
+private final RpcStatsContext statsContext;
+private SerializationStreamWriter streamWriter;
+
+public ServiceHelper(String serviceName, String methodName) {
+  this.fullServiceName = serviceName + . + methodName;
+  this.methodName = methodName;
+  this.statsContext = new RpcStatsContext();
+}
+
+/**
+ * Finishes the serialization.
+ */
+public Request finish(AsyncCallback callback, ResponseReader  
responseHeader)

+throws SerializationException {
+  String payload = streamWriter.toString();
+  boolean toss = statsContext.isStatsAvailable()
+
statsContext.stats(statsContext.timeStat(fullServiceName,  requestSerialized));
+  return doInvoke(responseHeader, fullServiceName, statsContext,  
payload, callback);

+}
+
+/**
+ * Finishes the serialization and return a RequestBuilder.
+ */
+public RequestBuilder finishForRequestBuilder(AsyncCallback callback,
+ResponseReader responseHeader) throws SerializationException {
+  String payload = streamWriter.toString();
+  boolean toss = statsContext.isStatsAvailable()
+
statsContext.stats(statsContext.timeStat(fullServiceName,  requestSerialized));

+  return doPrepareRequestBuilder(
+  responseHeader, fullServiceName, statsContext, payload,  
callback);

+}
+
+/**
+ * Starts the serialization.
+ */
+public SerializationStreamWriter start(String  
remoteServiceInterfaceName,

+int paramCount) throws SerializationException {
+  boolean toss = statsContext.isStatsAvailable()
+
statsContext.stats(statsContext.timeStat(fullServiceName, begin));

+  streamWriter = createStreamWriter();
+  if (getRpcToken() != null) {
+streamWriter.writeObject(getRpcToken());
+  }
+  streamWriter.writeString(remoteServiceInterfaceName);
+  streamWriter.writeString(methodName);
+  streamWriter.writeInt(paramCount);
+  return streamWriter;
+}
+  }

   /**
* @deprecated use {@link RpcStatsContext}.
===
--- /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java	Tue  
Feb  8 05:06:33 2011
+++ /trunk/user/src/com/google/gwt/user/rebind/rpc/ProxyCreator.java	Tue  
Apr 26 10:46:07 2011

@@ -284,7 +284,7 @@

 // Determine the set of serializable types
 Event event =  
SpeedTracerLogger.start(CompilerEventType.GENERATOR_RPC_STOB);

-
+
 SerializableTypeOracleBuilder typesSentFromBrowserBuilder = new  
SerializableTypeOracleBuilder(

 logger, propertyOracle, context);
 typesSentFromBrowserBuilder.setTypeFilter(blacklistTypeFilter);
@@ -334,7 +334,7 @@
   rpcLog = stringWriter.toString();
 }
 event.end();
-
+
 generateTypeHandlers(logger, context, typesSentFromBrowser,
 typesSentToBrowser);

@@ -514,36 +514,23 @@
 w.println() {);
 w.indent();

-String statsContextName = nameFactory.createName(statsContext);
-generateRpcStatsContext(w, syncMethod, asyncMethod, statsContextName);
-
-String statsMethodExpr = getProxySimpleName() + . +  
syncMethod.getName();

-String tossName = nameFactory.createName(toss);
-w.println(boolean %s = %s.isStatsAvailable()  
 %s.stats(%s.timeStat(\%s\, \begin\));,
-tossName, statsContextName, statsContextName, statsContextName,  
statsMethodExpr);

-w.print(SerializationStreamWriter.class.getSimpleName());
-w.print( );
-String streamWriterName = nameFactory.createName(streamWriter);
-w.println(streamWriterName +  = createStreamWriter(););
-w.println(// createStreamWriter() prepared the stream);
+String helperName = nameFactory.createName(helper);
+String helperClassName =  
RemoteServiceProxy.ServiceHelper.class.getCanonicalName();

+w.println(%s %s = new %s(\%s\, \%s\);,
+ 

[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scheglov

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

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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread Rafael Castro
Please hold reviewing this for a sec, I'm fixing a compile error I
introduced.

On Tue, Apr 26, 2011 at 2:39 PM, rdcas...@google.com wrote:

 Thanks, guys. Another look?




 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
 File

 user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java
 (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java#newcode76

 user/src/com/google/gwt/uibinder/elementparsers/AttachableHTMLPanelParser.java:76:
 if (null == customTag) {
 On 2011/04/26 17:13:47, rjrjr wrote:

 Please check for appropriate constructor with



 com.google.gwt.uibinder.rebind.TypeOracleUtils.hasCompatibleConstructor(JClassType,

 JType...), and call logger.die if none is found.


 Actually, I totally missed this, but supporting custom root elements is
 something I still have to add to AttachableHTMLPanel. It's not hard, but
 since it's not blocking for 99% of our tests, I'd like to put it
 together with the other 2 dozen of TODOs I'm adding with this CL... I
 promise I'll get to them. Scout's honor. :-)



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
 File
 user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
 (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode84
 user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:84:
 childFieldWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 This looks brittle. Shouldn't you ask for this widget's precedence and

 set the

 child's to +1?


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java#newcode99
 user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java:99:
 elementWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 ditto


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
 File

 user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java
 (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode123

 user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:123:
 childFieldWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 Again with the magic constant


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java#newcode133

 user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java:133:
 elementWriter.setBuildPrecendence(2);
 On 2011/04/26 17:13:47, rjrjr wrote:

 ditto


 Done.



 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
 File user/src/com/google/gwt/uibinder/rebind/FieldWriter.java (right):


 http://gwt-code-reviews.appspot.com/1426805/diff/1/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java#newcode133
 user/src/com/google/gwt/uibinder/rebind/FieldWriter.java:133: * doesn't
 scale well. Centralize these values, using enums or constants.
 On 2011/04/26 17:13:47, rjrjr wrote:

 FYI, field Writers already model a dependency chain, see

 needs(FieldWriter)

 above. Would that let us drop the precedence thing? Should have called

 this out

 during Hermes's review, oh well.


 Hermes is fixing this in a follow-up CL, but I don't think he's actually
 using that info. I think he's just creating enums for these constants.


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


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

[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scheglov

Actually after initial cache filling all these units are used. I see
preparing new TypeData only for changed units, when I modify them and
hit Refresh in DevMode browser.

I've added lazy TypeData into CompiledClass and filling TypeData
information instead of cache. I'm not sure however if adding TypeData
into CompiledClass is perfect, it seems that we add information from one
layer into other layer.


http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
File dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
(right):

http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode249
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:249: new
ReferenceMap(AbstractReferenceMap.HARD, AbstractReferenceMap.SOFT);
On 2011/04/26 15:30:36, scottb wrote:

Needs to be synchronized?

This code was removed.

http://gwt-code-reviews.appspot.com/1420809/diff/1/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode467
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:467:
MapString, Object values = Maps.newHashMap(annotData.getValues());

What's the motivation here?

This methods updates this annotation values map, so makes shared cached
state invalid. So, we want to update copy instead.

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

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


[gwt-contrib] Fixing a bug with ScrollImplTrident where it fires a synthetic scroll event even if the browser ... (issue1426806)

2011-04-26 Thread jlabanca

Reviewers: rchandia,

Description:
Fixing a bug with ScrollImplTrident where it fires a synthetic scroll
event even if the browser fires a native scroll event when an element is
resized.  We now delay firing the synthetic scroll event until the
browser has had a chance to fire a native scroll event. It appears that
RC versions of IE fires the native event, but final versions do not. All
other browser fire the native event, so IE may fix this in the future.


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

Affected files:
  M user/src/com/google/gwt/user/client/ui/ScrollImpl.java


Index: user/src/com/google/gwt/user/client/ui/ScrollImpl.java
===
--- user/src/com/google/gwt/user/client/ui/ScrollImpl.java  (revision 10071)
+++ user/src/com/google/gwt/user/client/ui/ScrollImpl.java  (working copy)
@@ -49,13 +49,17 @@
   // Detect if the scrollable element or the container within it  
changes

   // size, either of which could affect the scroll position.
   var resizeHandler = $entry(function() {
-// Trigger a synthetic scroll event the scroll position changes.
-if (scrollableElem.scrollTop != scrollableElem.__lastScrollTop ||
-scrollableElem.scrollLeft != scrollableElem.__lastScrollLeft) {
-  scrollHandler(); // Update scroll positions.
-   
@com.google.gwt.user.client.ui.ScrollImpl.ScrollImplTrident::triggerScrollEvent(Lcom/google/gwt/dom/client/Element;)

-(scrollableElem);
-}
+// Give the browser a chance to fire a native scroll event before
+// synthesizing one.
+setTimeout($entry(function() {
+  // Trigger a synthetic scroll event if the scroll position  
changes.

+  if (scrollableElem.scrollTop != scrollableElem.__lastScrollTop ||
+  scrollableElem.scrollLeft !=  
scrollableElem.__lastScrollLeft) {

+scrollHandler(); // Update scroll positions.
+ 
@com.google.gwt.user.client.ui.ScrollImpl.ScrollImplTrident::triggerScrollEvent(Lcom/google/gwt/dom/client/Element;)

+  (scrollableElem);
+  }
+}), 1);
   });
   scrollable.attachEvent('onresize', resizeHandler);
   container.attachEvent('onresize', resizeHandler);


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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rjrjr

LGTM with yet another TODO

Also, the very next patch will need to be an integration test.


http://gwt-code-reviews.appspot.com/1426805/diff/6001/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
File user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/6001/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java#newcode124
user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java:124:
public void setStyleName(String styleName) {
Are you sure this is the funnel point for widget style operations?
Looking at UIObject, seems like you need to override all the methods
there that call the static setStyleName and setStylePrimaryName methods.

Really, there are going to be a lot of such wrappers needed. I suspect
that attachable support is going to find its way into UIObject. Okay to
TODO for now, I know you're trying to get to critical mass to start
measuring things, but the TODO list is getting long.

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

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


[gwt-contrib] [google-web-toolkit] r10072 committed - Autoformats a few files before patch...

2011-04-26 Thread codesite-noreply

Revision: 10072
Author:   gwt.mirror...@gmail.com
Date: Tue Apr 26 10:55:15 2011
Log:  Autoformats a few files before patch

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

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

Modified:
  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java

 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java
 /trunk/dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java

===
---  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java	 
Thu Apr 14 07:13:39 2011
+++  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java	 
Tue Apr 26 10:55:15 2011

@@ -189,14 +189,14 @@
   return false;
 }
 TreeLogger branch =
-CompilationProblemReporter.reportErrors(logger, unit.getProblems(),
-unit.getResourceLocation(), unit.isError(), new  
SourceFetcher() {

-
-  public String getSource() {
-return unit.getSource();
-  }
-
-}, unit.getTypeName(), suppressErrors);
+CompilationProblemReporter.reportErrors(logger,  
unit.getProblems(), unit

+.getResourceLocation(), unit.isError(), new SourceFetcher() {
+
+  public String getSource() {
+return unit.getSource();
+  }
+
+}, unit.getTypeName(), suppressErrors);
 return branch != null;
   }

===
---  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java	 
Tue Apr 19 07:13:00 2011
+++  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java	 
Tue Apr 26 10:55:15 2011

@@ -146,7 +146,7 @@
 private final MapString, CompiledClass allValidClasses = new  
HashMapString, CompiledClass();


 private final GwtAstBuilder astBuilder = new GwtAstBuilder();
-
+
 private final boolean suppressErrors;

 private transient LinkedBlockingQueueCompilationUnitBuilder  
buildQueue;

@@ -300,13 +300,12 @@
   logger = logger.branch(TreeLogger.DEBUG, Validating newly compiled  
units);

   int errorCount = 0;
   for (CompilationUnit unit : resultUnits) {
-if (CompilationProblemReporter.reportErrors(logger, unit,   
suppressErrors)) {
+if (CompilationProblemReporter.reportErrors(logger, unit,  
suppressErrors)) {

   errorCount++;
 }
   }
   if (suppressErrors  errorCount  0  
 !logger.isLoggable(TreeLogger.TRACE)) {

-logger.log(TreeLogger.INFO, Ignored  + errorCount +  unit
-+ (errorCount  1 ? s : )
+logger.log(TreeLogger.INFO, Ignored  + errorCount +  unit +  
(errorCount  1 ? s : )
 +  with compilation errors in first pass.  Specify -logLevel  
DEBUG to see all errors);

   }
   return resultUnits;
@@ -320,12 +319,12 @@
   }

   public static CompilationState buildFrom(TreeLogger logger,  
SetResource resources,

-  AdditionalTypeProviderDelegate delegate) {
+  AdditionalTypeProviderDelegate delegate) {
 return buildFrom(logger, resources, delegate, false);
   }
-
+
   public static CompilationState buildFrom(TreeLogger logger,  
SetResource resources,

-  AdditionalTypeProviderDelegate delegate, boolean suppressErrors) {
+  AdditionalTypeProviderDelegate delegate, boolean suppressErrors) {
 Event event =  
SpeedTracerLogger.start(DevModeEventType.CSB_BUILD_FROM_ORACLE);

 try {
   return instance.doBuildFrom(logger, resources, delegate,  
suppressErrors);

@@ -333,7 +332,6 @@
   event.end();
 }
   }
-

   public static CompilationStateBuilder get() {
 return instance;
@@ -399,7 +397,8 @@
 return new CompilationState(logger, resultUnits, compileMoreLater);
   }

-  public CompilationState doBuildFrom(TreeLogger logger, SetResource  
resources, boolean suppressErrors) {
+  public CompilationState doBuildFrom(TreeLogger logger, SetResource  
resources,

+  boolean suppressErrors) {
 return doBuildFrom(logger, resources, null, suppressErrors);
   }

@@ -409,7 +408,7 @@
* TODO: maybe use a finer brush than to synchronize the whole thing.
*/
   synchronized CollectionCompilationUnit  
doBuildGeneratedTypes(TreeLogger logger,
-  CollectionGeneratedUnit generatedUnits, CompileMoreLater  
compileMoreLater,
+  CollectionGeneratedUnit generatedUnits, CompileMoreLater  
compileMoreLater,

   boolean suppressErrors) {

 // Units we definitely want to build.
===
--- /trunk/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java	Thu Mar  
24 15:47:57 2011
+++ /trunk/dev/core/src/com/google/gwt/dev/javac/CompiledClass.java	Tue Apr  
26 10:55:15 2011

@@ -55,12 +55,12 @@
* @param enclosingClass - outer class
* @param isLocal Is this class a local class? (See the JLS rev 2 section
*  14.3)
-   * 

[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rdcastro

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

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


[gwt-contrib] Additional infrastructure for generating source code outside of a (issue1421805)

2011-04-26 Thread jat

Reviewers: unnurg,

Description:
Additional infrastructure for generating source code outside of a
GWT generator.

Review by: unn...@google.com

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

Affected files:
  A user/src/com/google/gwt/codegen/rebind/GwtCodeGenContext.java
  A user/src/com/google/gwt/codegen/server/AbortablePrintWriter.java
  A user/src/com/google/gwt/codegen/server/CodeGenContext.java
  A user/src/com/google/gwt/codegen/server/CodeGenLogger.java
  A user/src/com/google/gwt/codegen/server/CodeGenUtils.java
  A user/src/com/google/gwt/codegen/server/JavaSourceWriter.java
  A user/src/com/google/gwt/codegen/server/SourceWriter.java
  A user/src/com/google/gwt/codegen/server/SourceWriterBase.java
  A user/src/com/google/gwt/codegen/server/SourceWriterBuilder.java
  A user/src/com/google/gwt/codegen/server/StringSourceWriter.java


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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rdcastro


http://gwt-code-reviews.appspot.com/1426805/diff/6001/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
File user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java
(right):

http://gwt-code-reviews.appspot.com/1426805/diff/6001/user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java#newcode124
user/src/com/google/gwt/user/client/ui/AttachableHTMLPanel.java:124:
public void setStyleName(String styleName) {
On 2011/04/26 17:57:42, rjrjr wrote:

Are you sure this is the funnel point for widget style operations?

Looking at

UIObject, seems like you need to override all the methods there that

call the

static setStyleName and setStylePrimaryName methods.



Really, there are going to be a lot of such wrappers needed. I suspect

that

attachable support is going to find its way into UIObject. Okay to

TODO for now,

I know you're trying to get to critical mass to start measuring

things, but the

TODO list is getting long.


I totally agree. But I think that to move such a disruptive change to
such basic objects we need both a very strong case for the performance
improvements and a very nice, stable API. That's why this is all
scattered around here. Hopefully until the end of the week we'll have
the perf numbers, and I'll address at least a couple of the TODOs I
added. Also, once we have a fairly large set of complicated orkut
widgets implemented on top of this, I think we'll have a good idea of
what the right API is, and we can work on it next week.

At least that's the plan :-)

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

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


[gwt-contrib] This fix a bug in WidgetPlaceholderInterpreter (missing convertField) (issue1420810)

2011-04-26 Thread hermes

Reviewers: rdcastro, rjrjr,

Description:
This fix a bug in WidgetPlaceholderInterpreter (missing convertField)
and create a new FieldWriterType to substitute the ugly
setBuildPrecedence().
It also make LazyDomElement used in more places. This saved a few bytes.


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

Affected files:
  M user/src/com/google/gwt/uibinder/elementparsers/WidgetInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/WidgetPlaceholderInterpreter.java

  M user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java
  M user/src/com/google/gwt/uibinder/rebind/FieldManager.java
  M user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
  A user/src/com/google/gwt/uibinder/rebind/FieldWriterType.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java


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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rdcastro

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

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


[gwt-contrib] Re: EnumOrdinalizer cleanup better interop. (issue1426804)

2011-04-26 Thread jbrosenberg

In looking at EnumOrdinalizer now, I think there is some confusion wrt
the 2nd and 3rd visitors (ReplaceEnumTypesWithInteger 
ReplaceOrdinalFieldAndMethodRefsWithOrdinal).

It seems that RETWI, which extends TypeRemapper, is already doing some
of the assignments (perhaps not completely correctly), that you've added
to ROFAMFWO.

I'm wondering now if the 2 visitors can be merged, or simplified.
Thoughts?

That being said, the current form does appear to working correctly, I've
tested it on several large apps, and in one case, it's afforded an
additional ordinalization opportunity that was previously being hidden
by the extraneous (Enum) casts that are now removed!

I'm ok with going ahead with these mods, and I can revisit/refactor
subsequently, if you want.


http://gwt-code-reviews.appspot.com/1426804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java
File dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java
(right):

http://gwt-code-reviews.appspot.com/1426804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java#newcode448
dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java:448:
Yes, I think this is necessary now, if we can't rely on there being an
upcast to Enum on the args.

http://gwt-code-reviews.appspot.com/1426804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java#newcode776
dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java:776:
I believe this should already be happening in TypeRemapper (which is
extended by ReplaceEnumTypesWithInteger)

http://gwt-code-reviews.appspot.com/1426804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java#newcode786
dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java:786:
I believe this should also already be happening in TypeRemapper (for
endVisit(JVariable,...), which should also cover the case for JLocal and
JParameter.

http://gwt-code-reviews.appspot.com/1426804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java#newcode796
dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java:796:
Already happening in TypeRemapper

http://gwt-code-reviews.appspot.com/1426804/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java#newcode892
dev/core/src/com/google/gwt/dev/jjs/impl/EnumOrdinalizer.java:892:
I'm interested in the call to madeChanges() here, this probably needs to
be added everywhere within TypeRemapper() (assuming you agree with my
above comments, and we don't need this updateVar() method here anymore).

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

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


[gwt-contrib] [google-web-toolkit] r10074 committed - create a tag for the gwt 2.3rc1 release

2011-04-26 Thread codesite-noreply

Revision: 10074
Author:   mrruss...@google.com
Date: Tue Apr 26 11:49:09 2011
Log:  create a tag for the gwt 2.3rc1 release
http://code.google.com/p/google-web-toolkit/source/detail?r=10074

Added:
 /tags/2.3.0-rc1

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


[gwt-contrib] Re: Introduce the Attachable interface, and add support to UiBinder's HTMLPanel parser. (issue1426805)

2011-04-26 Thread rjrjr

LGTM++

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

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


[gwt-contrib] Re: This fix a bug in WidgetPlaceholderInterpreter (missing convertField) (issue1420810)

2011-04-26 Thread rjrjr

LGTM

You and Rafa are on a collision course around the field precedence
thing. Let the race begin!

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

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


[gwt-contrib] [google-web-toolkit] r10075 committed - Fix build break introduced by previous change

2011-04-26 Thread codesite-noreply

Revision: 10075
Author:   gwt.mirror...@gmail.com
Date: Tue Apr 26 12:08:36 2011
Log:  Fix build break introduced by previous change

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

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java

===
---  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java	 
Tue Apr 26 08:02:24 2011
+++  
/trunk/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java	 
Tue Apr 26 12:08:36 2011

@@ -308,7 +308,7 @@
   errorCount++;
 }
   }
-  if (suppressErrors  errorCount  0  
 !logger.isLoggable(TreeLogger.TRACE))
+  if (suppressErrors  errorCount  0  
 !logger.isLoggable(TreeLogger.TRACE)

logger.isLoggable(TreeLogger.INFO)) {
 logger.log(TreeLogger.INFO, Ignored  + errorCount +  unit +  
(errorCount  1 ? s : )
 +  with compilation errors in first pass.  Specify -logLevel  
DEBUG to see all errors);


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


[gwt-contrib] Re: EnumOrdinalizer cleanup better interop. (issue1426804)

2011-04-26 Thread jbrosenberg

Scott, would you mind, for my own edification, outlining how this
improves the valid state of the AST after EnumOrdinalizer runs?
Thanks.

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

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


[gwt-contrib] [google-web-toolkit] r10076 committed - Fixing a bug with ScrollImplTrident where it fires a synthetic scroll ...

2011-04-26 Thread codesite-noreply

Revision: 10076
Author:   jlaba...@google.com
Date: Tue Apr 26 08:38:21 2011
Log:  Fixing a bug with ScrollImplTrident where it fires a synthetic  
scroll event even if the browser fires a native scroll event when an  
element is resized.  We now delay firing the synthetic scroll event until  
the browser has had a chance to fire a native scroll event. It appears that  
RC versions of IE fires the native event, but final versions do not. All  
other browser fire the native event, so IE may fix this in the future.


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

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

Modified:
 /trunk/user/src/com/google/gwt/user/client/ui/ScrollImpl.java

===
--- /trunk/user/src/com/google/gwt/user/client/ui/ScrollImpl.java	Tue Apr  
26 05:06:08 2011
+++ /trunk/user/src/com/google/gwt/user/client/ui/ScrollImpl.java	Tue Apr  
26 08:38:21 2011

@@ -49,13 +49,17 @@
   // Detect if the scrollable element or the container within it  
changes

   // size, either of which could affect the scroll position.
   var resizeHandler = $entry(function() {
-// Trigger a synthetic scroll event the scroll position changes.
-if (scrollableElem.scrollTop != scrollableElem.__lastScrollTop ||
-scrollableElem.scrollLeft != scrollableElem.__lastScrollLeft) {
-  scrollHandler(); // Update scroll positions.
-   
@com.google.gwt.user.client.ui.ScrollImpl.ScrollImplTrident::triggerScrollEvent(Lcom/google/gwt/dom/client/Element;)

-(scrollableElem);
-}
+// Give the browser a chance to fire a native scroll event before
+// synthesizing one.
+setTimeout($entry(function() {
+  // Trigger a synthetic scroll event if the scroll position  
changes.

+  if (scrollableElem.scrollTop != scrollableElem.__lastScrollTop ||
+  scrollableElem.scrollLeft !=  
scrollableElem.__lastScrollLeft) {

+scrollHandler(); // Update scroll positions.
+ 
@com.google.gwt.user.client.ui.ScrollImpl.ScrollImplTrident::triggerScrollEvent(Lcom/google/gwt/dom/client/Element;)

+  (scrollableElem);
+  }
+}), 1);
   });
   scrollable.attachEvent('onresize', resizeHandler);
   container.attachEvent('onresize', resizeHandler);

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


[gwt-contrib] Re: Fixing a bug with ScrollImplTrident where it fires a synthetic scroll event even if the browser ... (issue1426806)

2011-04-26 Thread jlabanca

committed as r10076

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

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


[gwt-contrib] Re: Fixing a bug with ScrollImplTrident where it fires a synthetic scroll event even if the browser ... (issue1426806)

2011-04-26 Thread rchandia

LGTM
On 2011/04/26 19:20:10, jlabanca wrote:

committed as r10076




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

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


[gwt-contrib] [google-web-toolkit] r10077 committed - Include all needed javax.validation classes for the api checker....

2011-04-26 Thread codesite-noreply

Revision: 10077
Author:   ncha...@google.com
Date: Tue Apr 26 09:52:21 2011
Log:  Include all needed javax.validation classes for the api checker.

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

Review by: rchan...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=10077

Modified:
  
/trunk/tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java


===
---  
/trunk/tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java	 
Fri Apr 15 08:00:11 2011
+++  
/trunk/tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java	 
Tue Apr 26 09:52:21 2011

@@ -175,7 +175,9 @@
   }

   /**
-   * Class that specifies a set of {@link CompilationUnit} read from jar  
files.

+   * Class that specifies a set of
+   * {@link com.google.gwt.dev.javac.CompilationUnit CompilationUnit} read  
from

+   * jar files.
*/
   private static class JarFileResources extends Resources {
 private static final String MOCK_PREFIX = /mock/;
@@ -286,7 +288,8 @@
   }

   /**
-   * Abstract internal class that specifies a set of {@link  
CompilationUnit}.

+   * Abstract internal class that specifies a set of
+   * {@link com.google.gwt.dev.javac.CompilationUnit CompilationUnit}.
*/
   private abstract static class Resources {
 protected final TreeLogger logger;
@@ -344,8 +347,9 @@
   }

   /**
-   * Class that specifies a set of {@link CompilationUnit} read from the
-   * file-system.
+   * Class that specifies a set of
+   * {@link com.google.gwt.dev.javac.CompilationUnit CompilationUnit} read  
from

+   * the file-system.
*/
   private static class SourceFileResources extends Resources {
 private final ZipScanner excludeScanner;
@@ -966,10 +970,23 @@
   throws UnableToCompleteException, NotFoundException, IOException {
 SetResource resources = new HashSetResource();
 if (extraSourceJars != null) {
-  Resources extra =
-  new JarFileResources(extraSourceJars, Collections.singleton(),  
new HashSetString(

-  Arrays.asList(javax/validation/Validation.java,
-  javax/validation/constraints/Pattern.java)), logger);
+  Resources extra = new JarFileResources(
+  extraSourceJars,
+  Collections.singleton(),
+  new HashSetString(Arrays.asList(
+  javax/validation/Configuration.java,
+  javax/validation/MessageInterpolator.java,
+  javax/validation/Validation.java,
+  javax/validation/ValidatorContext.java,
+  javax/validation/ValidatorFactory.java,
+  javax/validation/ValidationProviderResolver.java,
+  javax/validation/bootstrap/GenericBootstrap.java,
+  javax/validation/bootstrap/ProviderSpecificBootstrap.java,
+  javax/validation/constraints/Pattern.java,
+  javax/validation/spi/BootstrapState.java,
+  javax/validation/spi/ConfigurationState.java,
+  javax/validation/spi/ValidationProvider.java)),
+  logger);
   SetResource loaded = extra.getResources();
   System.out.println(Found  + loaded.size() +  new resources);
   resources.addAll(loaded);

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


[gwt-contrib] Adding drag and drop support to the mobile web app. The desktop TaskEditView now has a list of t... (issue1420811)

2011-04-26 Thread jlabanca

Reviewers: rice,

Description:
Adding drag and drop support to the mobile web app. The desktop
TaskEditView now has a list of templates.  Users can drag a template
over the edit form to populate the fields.

I found a few holes in the drag and drop API, which are also fixed in
this patch. I added the missing DragStartEvent, DragEvent, and
DragEndEvent, which are part of the HTML5 spec. Also, the native
dragexit event is deprecated and only used by older versions of firefox,
so I switch the DragExitEvent to use the correct event type dragleave.
I modified sinkEvents to handle the new bitless drag event types. I also
added the DataTransfer JSO, which is required to actually use drag and
drop (I didn't implement the entire API until I have more time to test
the other methods in DataTransfer, but the important ones are there).

I updated DragAndDropEventsSinkTest to use a WidgetCreator instead of
duplicating code all over the place. Also, we don't need to test every
subclass of FocusWidget, since FocusWidget itself adds the drag
handlers.

Demo at http://gwt-cloudtasks.appspot.com/.  Note that in IE9, you have
to select text before you can trigger a drag event, and you must drop
directly over the input boxes in the form.  In other browsers, this is
not the case.


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

Affected files:
  A  
samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.css
  M  
samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.java
  M  
samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/client/desktop/DesktopTaskEditView.ui.xml
  M  
samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/client/desktop/MobileWebAppShellDesktop.java
  M  
samples/mobilewebapp/src/com/google/gwt/sample/mobilewebapp/shared/TaskProxyImpl.java

  M user/src/com/google/gwt/dom/client/DOMImpl.java
  M user/src/com/google/gwt/dom/client/DOMImplWebkit.java
  A user/src/com/google/gwt/dom/client/DataTransfer.java
  M user/src/com/google/gwt/dom/client/Element.java
  M user/src/com/google/gwt/dom/client/NativeEvent.java
  A user/src/com/google/gwt/event/dom/client/DragEndEvent.java
  A user/src/com/google/gwt/event/dom/client/DragEndHandler.java
  M user/src/com/google/gwt/event/dom/client/DragEnterEvent.java
  A user/src/com/google/gwt/event/dom/client/DragEvent.java
  A user/src/com/google/gwt/event/dom/client/DragEventBase.java
  M user/src/com/google/gwt/event/dom/client/DragExitEvent.java
  A user/src/com/google/gwt/event/dom/client/DragHandler.java
  M user/src/com/google/gwt/event/dom/client/DragOverEvent.java
  A user/src/com/google/gwt/event/dom/client/DragStartEvent.java
  A user/src/com/google/gwt/event/dom/client/DragStartHandler.java
  M user/src/com/google/gwt/event/dom/client/DropEvent.java
  M user/src/com/google/gwt/event/dom/client/HasAllDragAndDropHandlers.java
  A user/src/com/google/gwt/event/dom/client/HasDragEndHandlers.java
  A user/src/com/google/gwt/event/dom/client/HasDragHandlers.java
  A user/src/com/google/gwt/event/dom/client/HasDragStartHandlers.java
  M user/src/com/google/gwt/user/cellview/client/CellBasedWidgetImpl.java
  M user/src/com/google/gwt/user/client/impl/DOMImplIE9.java
  M user/src/com/google/gwt/user/client/impl/DOMImplMozilla.java
  M user/src/com/google/gwt/user/client/impl/DOMImplStandard.java
  M user/src/com/google/gwt/user/client/ui/FocusPanel.java
  M user/src/com/google/gwt/user/client/ui/FocusWidget.java
  M user/src/com/google/gwt/user/client/ui/HTMLTable.java
  M user/src/com/google/gwt/user/client/ui/Image.java
  M user/src/com/google/gwt/user/client/ui/Label.java
  M user/src/com/google/gwt/user/client/ui/Widget.java
  M user/test/com/google/gwt/user/client/DragAndDropEventsSinkTest.java


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


[gwt-contrib] Re: EnumOrdinalizer cleanup better interop. (issue1426804)

2011-04-26 Thread Scott Blum
Based on your comments, I'm going to rework the patch.  You're right, I was
totally confused about the difference between
ReplaceEnumTypesWithInteger  ReplaceOrdinalFieldAndMethodRefsWithOrdinal.
 I think the JField / JFieldRef replacements in the former are what threw
me.  I'll rework the patch.

By valid state of the AST, I had run into a case in some work I was doing
where you had by analogy the equivalent of EnumType x = 3, and TypeTightener
was needing to clean up after.  But I think now that what I needed to do in
my patch was update TypeRemapper instead.  Lemme rework this and see what
falls out.

On Tue, Apr 26, 2011 at 3:12 PM, jbrosenb...@google.com wrote:

 Scott, would you mind, for my own edification, outlining how this
 improves the valid state of the AST after EnumOrdinalizer runs?
 Thanks.


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


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

[gwt-contrib] [google-web-toolkit] r10078 committed - new directory for 2.3 javadocs

2011-04-26 Thread codesite-noreply

Revision: 10078
Author:   mrruss...@google.com
Date: Tue Apr 26 13:27:11 2011
Log:  new directory for 2.3 javadocs

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

Added:
 /javadoc/2.3

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


[gwt-contrib] Adds some diagnostics to an exception thrown in CompiledClass. (issue1425810)

2011-04-26 Thread zundel

Reviewers: scottb, jbrosenberg, tobyr,

Description:
Adds some diagnostics to an exception thrown in CompiledClass.


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

Affected files:
  M dev/core/src/com/google/gwt/dev/javac/CompilationProblemReporter.java
  M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
  M dev/core/src/com/google/gwt/dev/javac/CompiledClass.java
  M dev/core/src/com/google/gwt/dev/javac/JdtCompiler.java


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


[gwt-contrib] Re: Adds some diagnostics to an exception thrown in CompiledClass. (issue1425810)

2011-04-26 Thread zundel

This patch deserves some explanation:  I saw a case where the
ClassFormatException that was formally caught in CompiledClass was
emitted from the compiler.  Adding some missing source to the source
path fixed the problem.  I was unable to reproduce the problem in a
small example.

I'm proposing this patch because I'm not sure how to prevent the invalid
bytecode from being created in the first place.  Instead, the patch
prints out as much relevant information as possible so that if missing
source is the problem, the developer has a clue of how to fix it.

I am not sure why, but JdtCompiler did not contain any references to
TreeLogger before this point.  I feel there may be a design reason for
that

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

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


[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread zundel


http://gwt-code-reviews.appspot.com/1420809/diff/5001/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
File dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
(right):

http://gwt-code-reviews.appspot.com/1420809/diff/5001/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode626
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:626:
private CollectClassData processClass(TypeData typeData) {
Make this a method on TypeData: getCollectClassData()?

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

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


[gwt-contrib] Re: Adding drag and drop support to the mobile web app. The desktop TaskEditView now has a list of t... (issue1420811)

2011-04-26 Thread Jeff Larsen
Drag n Drop doesn't work in ie8 (expected). Perhaps use deferred binding to 
get rid of the templates portion for all versions of ie9. Otherwise 
those templates are pretty useless. 


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

[gwt-contrib] [google-web-toolkit] r10079 committed - copy the javadocs

2011-04-26 Thread codesite-noreply

Revision: 10079
Author:   mrruss...@google.com
Date: Tue Apr 26 13:57:14 2011
Log:  copy the javadocs


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

Added:
 /javadoc/2.3/2.2

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


[gwt-contrib] Re: Adds cache of CollectClassData to make refresh faster. (issue1420809)

2011-04-26 Thread scottb


http://gwt-code-reviews.appspot.com/1420809/diff/5001/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
File dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java
(right):

http://gwt-code-reviews.appspot.com/1420809/diff/5001/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode464
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:464:
MapString, Object values = Maps.newHashMap(annotData.getValues());
Okay, gotcha.  Please add a comment Make a copy before we mutate the
collection.  Also, please just use new HashMap() to follow the existing
GWT style.  If we think there's unique value in heavily utilizing guava
for this, that should be a larger discussion.

http://gwt-code-reviews.appspot.com/1420809/diff/5001/dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java#newcode626
dev/core/src/com/google/gwt/dev/javac/TypeOracleMediator.java:626:
private CollectClassData processClass(TypeData typeData) {
+1

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

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


  1   2   >