Re: How to set backgroundColour.stroke to a chart through Java code

2011-08-02 Thread Ash
Hi,

I have managed to set this using the method setColours().

But it didn't solve the problem... anyone please help..

Thanks,
-ash

On Aug 1, 11:10 am, Ash ashly@gmail.com wrote:
 Hi,

 I have a problem in IE8, that all the charts displays a thin border on
 the top and left of the chart. I have figured out this as an issue in
 IE8 and found the workaround in the following link.

 http://code.google.com/p/google-visualization-api-issues/issues/detai...

 Could someone please help me how to set these values (backgroundColor:
 {stroke:'#00', fill:'#00', strokeWidth: 3}) through the Java
 code for the chart element.

 Thanks,
 -ash.

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



Template embedding in the GWT

2011-08-02 Thread Sanjay Jain India
Hello All
I have template with its css and html.Now I want to get all the look
and features (compatibility) of that template in my gwt application.
I am not getting the right way to do that.
One way which I thought is that for control there will be a .html
file , which will be added to the gwt root panel using frame.I also
don't know it is right way or not.

Please help me out to embed all the look and feature of the template
to the gwt 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.



Re: Template embedding in the GWT

2011-08-02 Thread Subhrajyoti Moitra
copy-paste all the html in some uiBinder ui.xml file.
Change the relevant parts incrementally by replacing the html tags with its
GWT widget counter part.

HTH.

Cheers,
Subhro.

On Tue, Aug 2, 2011 at 1:20 PM, Sanjay Jain India snj...@gmail.com wrote:

 Hello All
 I have template with its css and html.Now I want to get all the look
 and features (compatibility) of that template in my gwt application.
 I am not getting the right way to do that.
 One way which I thought is that for control there will be a .html
 file , which will be added to the gwt root panel using frame.I also
 don't know it is right way or not.

 Please help me out to embed all the look and feature of the template
 to the gwt 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.



-- 
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 Java Interfaces in JSNI

2011-08-02 Thread Thomas Lefort
OK my bad, I called the Java object implementing the interface
directly within the callback function which I think is a mistake. I
stored it to a js variable and used that variable in the js callback
function and that worked.
Thanks Alain for the help.


On Aug 1, 12:04 pm, Thomas Lefort lefortho...@gmail.com wrote:
 Hi Thanks for your answer.

 I have tried and I am getting some weird js error message
 this.setPosition is not a function referring to a random line from
 the html file itself, so it looks like firebug is completely lost.

 My code is:

         public native UniMarkerJSNI addEditableMarker(HasEditableMarker
 hasEditableMarker, double lat, double lng, String mapIconUrl, int
 shiftX, int shiftY) /*-{
                 var callback = function(marker) {
                         var eoLatLng =
 @com.metaaps.webapps.earthimages.shared.domain.EOLatLng::new(DD)
 (marker.getLat(), marker.getLng());
                         alert(test1);

 hasEditableMark...@com.metaaps.webapps.earthimages.shared.domain.implementation.HasEditableMa
  rker::updatePosition(Lcom/
 metaaps/webapps/earthimages/shared/domain/EOLatLng;)(eoLatLng);
                         alert(test2);
                 };
                 var marker = new $wnd.mapsJSNI.uniMarker(lat, lng, mapIconUrl,
 shiftX, shiftY, callback);
                 marker.setDraggable(callback);
                 return marker;
         }-*/;

 alert test1 is triggered no problem.

 alert test2 is never triggered so it seems the problem occurs when
 calling the interface method implementation from the object. My
 interface method implementation is really simple, just assigning the
 value to a field:

         @Override
         public void updatePosition(EOLatLng pos) {
                 this.pos = pos;
         }

 I have no clue as to how to sort this out...

 On Jul 27, 6:09 pm, Alain Ekambi jazzmatad...@googlemail.com wrote:







  Yes it s possible.
  But you might want to  actually call the function in the JSNI in the right
  way.(see bold entry)

  public native void makeUseOfI(I myObjectAorB) /*-{
      var val = myObjectAo...@pkg.I*::*myInterfaceFunction()*();*
      $wnd.whateverFunction(val)

  }-*/;

  2011/7/27 Thomas Lefort lefortho...@gmail.com

   Hi,

   I have the following:

   interface I {
       myInterfaceFunction
   }

   A implements I {
   }

   B implements I {
   }

   I want to pass A or B using interface I to a js code I am writting, ie

   public native void makeUseOfI(I myObjectAorB) /*-{
       var val = myObjectAo...@pkg.I.myInterfaceFunction();
       $wnd.whateverFunction(val)
   }-*/;

   Is this possible?

   Thanks,

   Thomas

   --
   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 
  platformshttp://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 CELLTABLE How to restore old value in cell if validation fails

2011-08-02 Thread Adolfo Panizo Touzon
Dis you try: *object.setValue(object.getValue()); *??

2011/8/2 vaibhav bhalke bhalke.vaib...@gmail.com

 Hi all,

 PFA WebEx recording for Issue.

 I want to used editableNumbercell like intger,decimal etc.. But there is no
 such gwt widget present so I am using editable text cell and using
 validation for numbers when user update value in cell.

 How to avoid cell editing when validation fails.

 if validation fail then editable-text cell value restored to old value.How
 to do that?

 intgerColumn.setFieldUpdater(new FieldUpdaterRecordInfo, String() {

 public void update(int index, RecordInfo object, String value) {

 // Called when the user changes the value.
 if(value.matches((-)?(\\d){1,8})){

 object.setColumnInRecordEdited(true);
 object.setValue(value);

 RecordData.get().refreshDisplays();

 }else{
 Window.alert(Specify valid integer value for parameter);

 // How to rest old value here? currently update value set to 
 cell

 }

 }

 });

 Any help or guidance in this matter would be appreciated.


 --
 Best Regards,
 Vaibhav Bhalke
 About me : http://about.me/vaibhavbhalke

 http://about.me/vaibhavbhalke



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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: Graphical representation of a tree

2011-08-02 Thread ph09
Ok thank you.
Any other suggestions?

On 1 Aug., 18:10, J.Ganesan j.gane...@datastoregwt.com wrote:
 Tryhttp://code.google.com/p/gwt-g2d/. You may have to implement
 picking and translation  for Drag  Drop.

 J.Ganesanwww.DataStoreGwt.com

 On Aug 1, 7:18 pm, ph09 ph.hei...@googlemail.com wrote:







  Hello,

  I want to represent a Tree in a antoher way as the standard graphical
  representation.
  Drag  Drop should be able.
  Like this one:http://s1.directupload.net/file/d/2603/yzo588bb_jpg.htm

  Do you know a good GWT Extension to realize this?
  I have already looked at the Google Web Toolkit Gallery.
  Do you think something like this would solve the 
  problem?http://gwtgallery.appspot.com/about_app?app_id=86

-- 
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: Webcam and gwt

2011-08-02 Thread J.Ganesan
If you need without Flash, watch http://groups.google.com/group/discuss-webrtc
as was suggested by David Chandler elsewhere. That is what I am doing.

J.Ganesan
www.DataStoreGwt.com

On Aug 2, 2:06 am, lionel nimong lnim...@gmail.com wrote:
 Hello everybody

 I'm new with GWT.
 I am looking for a way to implement webcam conversations (video+voice)
 using GWT. So i have 2 questions :
 Is it possible ?
 And how ?

 Thank you in advance =)
 Lionel

-- 
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: Linker and Generator documentation

2011-08-02 Thread bconoly
Well, that is kinda the plan, I was going to use a standard JS eventBus to 
facilitate the communication but I need to ensure that the event makes sense 
to both modules.  If the compiled event is different for each then they 
won't understand what the event is.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/9p2t6scgGK0J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Webcam and gwt

2011-08-02 Thread Alain Ekambi
Looks good. Still faar away from Flash dough.

2011/8/2 J.Ganesan j.gane...@datastoregwt.com

 If you need without Flash, watch
 http://groups.google.com/group/discuss-webrtc
 as was suggested by David Chandler elsewhere. That is what I am doing.

 J.Ganesan
 www.DataStoreGwt.com

 On Aug 2, 2:06 am, lionel nimong lnim...@gmail.com wrote:
  Hello everybody
 
  I'm new with GWT.
  I am looking for a way to implement webcam conversations (video+voice)
  using GWT. So i have 2 questions :
  Is it possible ?
  And how ?
 
  Thank you in advance =)
  Lionel

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



How to Create GWT spread sheet ?

2011-08-02 Thread Mgr
Hai

I am new bee . I don't know how to create gwt spread sheet in my
application. If any one know send sample  working code for me. I hope
u will help me lot.

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



How To display a glasspane with a waiter ?

2011-08-02 Thread Christophe Marchand
Hi,

I would like to display a transparent glasspane with a animated-gif to show 
long time consuming process. Is there any piece of code somewhere that could 
help me ?

Thanks a lot in advance,
Chrsitophe

-- 
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: How To display a glasspane with a waiter ?

2011-08-02 Thread Jens
Take a look at GWT's PopupPanel. PopupPanel supports glasspane and modal 
popups.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/XrdsqBieytUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: MVC + Command Pattern + Code Splitting?

2011-08-02 Thread Jens
I can't really remember gwt-dispatch as I use a custom command pattern and 
no framework..but in general the only thing you can do is to provide 
multiple dispatch services, e.g. one per application module. Each dispatch 
service would then use a different command base interface.

So if you have two app modules mod1, mod2 then you would have

- Mod1DispatchService(Mod1Command command, ...)
- Mod2DispatchServce(Mod2Command command, ...)

Inside mod1 you will always use Mod1DispatchService and commands that extend 
Mod1Command and in mod2 the mod2 counter parts. No cross references! So 
instead of one global generic dispatch service you will have several more 
specific ones. 

If you can't do that with gwt-dispatch then well..you have to live with the 
code size or get rid of gwt-dispatch.

Also make sure you do not use List or any generic interfaces inside your 
commands unless you really need to. This will also increase your code size 
as GWT will generate serializer classes for all implementations of List. 
BTW these generated serializer classes are the problem why you cant code 
split like you want to. The generated dispatch service contains a map with 
all types (all implementations of your base command interface) used in your 
service methods and their corresponding serializer classes. And because of 
that map every command will be in the initial download.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/_SZEn2OdXPEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: MVC + Command Pattern + Code Splitting?

2011-08-02 Thread Gal Dolber
same problem here +1

I have been thinking a lot about this and I don't think there is a simple
solution.
A custom rpc generator with node detection that load all the node's
dependencies inside a GWT.runAsync is the only thing I could think of, but I
didn't try to implement it yet.

In the gwt-dispatch case(or any rpc-command implementation), every action is
a node, so the first time we execute each action we load and register the
action and response dependencies.

On Tue, Aug 2, 2011 at 9:52 AM, Juan Pablo Gardella 
gardellajuanpa...@gmail.com wrote:

 +1


 2011/8/1 gktcs tdotstew...@gmail.com

 Has anyone been able to get complete code splitting working with gwt-
 dispatch or similar command pattern implementation?

 We've got a rather large MVC-based application, and our code splitting
 is done at the Controller level.The code splitting works great--
 neither the Controller nor the View will be loaded unless the
 associated module has been explicitly requested.  We use gwt-dispatch
 (with SecureDispatchAsync) to provide our communication with the
 server.  Everything works great with gwt-dispatch, except that *all*
 of our Request (Action) and Result objects are compiled into the
 initial download, instead of being included in the split point which
 contains the associated Controller and View.

 We're using SecureDispatchAsync in the startup module to load some
 basic startup information, but all of the other Request/Result pairs
 are isolated to their corresponding Controller.  The GWT SOYC report
 shows that all of the Request and Result objects are being included in
 the initial download.  Given the large-ish number of Action/Result
 objects we have, this is adding significant bulk to our initial
 application download size.

 I've read around and asked on the gwt-dispatch group and it seems like
 no one has had to use code splitting and the command pattern; so far,
 the only answers I've been able to find were (a) had to get rid of gwt-
 dispatch/command pattern, (b) just accept the increased size, or (c)
 it could be related to this issue:
 http://code.google.com/p/google-web-toolkit/issues/detail?id=2374.

 Just curious as to what others are doing, or if someone has found a
 way around this problem

 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.


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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Parvez Chauhan wants to chat

2011-08-02 Thread Parvez Chauhan
---

Parvez Chauhan wants to stay in better touch using some of Google's coolest new
products.

If you already have Gmail or Google Talk, visit:
http://mail.google.com/mail/b-9cc6250878-d127585326-5KK6iuAersv9e2Pvv6hITmWizgU
You'll need to click this link to be able to chat with Parvez Chauhan.

To get Gmail - a free email account from Google with over 2,800 megabytes of
storage - and chat with Parvez Chauhan, visit:
http://mail.google.com/mail/a-9cc6250878-d127585326-5KK6iuAersv9e2Pvv6hITmWizgU

Gmail offers:
- Instant messaging right inside Gmail
- Powerful spam protection
- Built-in search for finding your messages and a helpful way of organizing
  emails into conversations
- No pop-up ads or untargeted banners - just text ads and related information
  that are relevant to the content of your messages

All this, and its yours for free. But wait, there's more! By opening a Gmail
account, you also get access to Google Talk, Google's instant messaging
service:

http://www.google.com/talk/

Google Talk offers:
- Web-based chat that you can use anywhere, without a download
- A contact list that's synchronized with your Gmail account
- Free, high quality PC-to-PC voice calls when you download the Google Talk
  client

We're working hard to add new features and make improvements, so we might also
ask for your comments and suggestions periodically. We appreciate your help in
making our products even better!

Thanks,
The Google Team

To learn more about Gmail and Google Talk, visit:
http://mail.google.com/mail/help/about.html
http://www.google.com/talk/about.html

(If clicking the URLs in this message does not work, copy and paste them into
the address bar of your browser).

-- 
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: Web Workers in GWT

2011-08-02 Thread Chris Conroy
Within SpeedTracer take a look at the Breaky Worker infrastructure (used to
validate the schema of records SpeedTracer receives from Chrome):

client/ui/src/com/google/speedtracer/...
breaky/BreakyWorker.gwt.xml
breaky/worker/BreakyWorker.java
client/model/BreakyWorkerHost.java

To get an idea of how all this stuff is wired up. The Worker Host lives in
the normal GWT module side of things, and the BreakyWorker is a
DedicatedWorkerEntryPoint responsible for initializing the worker. Since
it's small, it also handles the handling of messages.

The BreakyWorker.gwt.xml module pulls in  our WebWorker definition and uses
the DedicatedWorkerLinker.

On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 cidyl...@gmail.com wrote:

 Thank you for your input Chris.
 Yes I have been looking at the code included in Speedtracer but
 without documentation (and the fact that I am a novice GWT developer)
 I am having a difficult time figuring out how to the webworker is
 being set up and used in Speedtracer. There seems to be a module for
 the webworker with various classes representing worker entry points
 but I am not sure which would to implement and in what context. In the
 xml files of the modules i did notice an add-linker ... tag which I
 am assuming points to the module that represents the worker. Again, if
 anyone could provide a few basic steps to make a simple web worker
 work in GWT I would greatly appreciate.

 On a general note, I am a bit surprised by the lack of support
 available for web workers in gwt, when there is support for other
 HTML5 features like local storage, canvas etc. Does anyone know why it
 is the case ? Are people not interested in using multi-threading in
 GWT or is GWT not a suitable tool for such an application ?


 On Aug 1, 3:54 pm, Chris Conroy con...@google.com wrote:
  You definitely don't want to use gears.
 
  You can take a look at how SpeedTracer uses WebWorkers via a custom
  DedicatedWebWorker linker:
 http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc...
 
  Note that you cannot reference $doc or $wnd in the webworker.
 
  On Mon, Aug 1, 2011 at 6:37 PM, cidylle0 cidyl...@gmail.com wrote:
   Hi Allahbaksh.
 
   I did run accross the gwt-ns you mentioned but I am having trouble
   running the sample described. Can't seem to set it up right. The
   documentation is very minimal and the project seems to have been
   halted. Can anyone who has used web workers with GWT before help me
   out or point me out to some JAR or tutorial out there ? I found
   something called google Gears that seemed to have been doing something
   very similar (worker pool) but it has recently been deprecated. Any
   help would be appreciated. Thanks.
 
   On Aug 1, 5:02 am, Allahbaksh a.allahba...@gmail.com wrote:
HI,
Check gwt-ns project. I have personally not used it.
Regards,
Allahbaksh
 
On Jul 30, 6:08 am, cidylle0 cidyl...@gmail.com wrote:
 
 Hello,
 
 I am currently playing around with GWT and I would like to
 implement
 some HTML5 features with it like web workers. In the GWT
 documentation
 I see that it supports a couple HTML5 features but no Web Workers.
 Are
 there any libraries out there that would implement web workers in
 GWT ? Or can anybody point me to a simple tutorial ? I would
 appreciate. 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.

 --
 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: Web-/Server Management Tool with GWT

2011-08-02 Thread Ioan Agopian
Hi any,

Pretty big project to start with :).

I think you're looking at it wrong as the main task will be to handle
all the configuration for the server services, and GWT can only
provide the user interface. All the background server work has to
happen on the server, and GWT only runs on the client. First you
should decide what to use on the server side, then decide what to use
for the client.

Also I think you're trying to reimplement the wheel, there are a lot
of projects that already do some of the things you want. You should
check out:
- Zentyal (http://www.zentyal.org/) - nice gui for server management
on Ubuntu
- Sme Server (http://wiki.contribs.org/Main_Page) - same for CentOS
- there are others but these two I have used.
There are a lot on man years spent on developing these projects, and
as they are open source you can contribute / branch them.

Regards,
Ioan


On Jul 30, 11:27 am, any_nickname ad...@myweb24.ch wrote:
 Hi everybody!

 I'm in charge of all the websites and web-plattforms in our company.
 To make my and others life (maybe :-)) easier, I'm planning a kind of
 web- and server management tool with GWT for our company.
 I've read the whole GWT-Docs and at the moment I'm reading Essential
 GWT by Federico Kereki.
 Somehow I have some difficulties getting into the whole GWT-
 stuff... :-)

 Therefore I wanted to ask you, what you think about my plans and if
 you have any suggestions on how to approach this. Also I'm interested
 in suggestions, on how you would split up the modules.
 In addition, there are a few functionalities I'm not even sure, if
 they are possible to implement.

 The tool should do the following:
 - I thought of the following layout:
 -- The tool could be split up into modules.
 -- An overall tool is responsible for user authentication and
 management and for embedding each of the modules. Also the settings
 of each module are configured within the overall tool.

 - The following modules I want to implement:
 -- an already existing project management tool I wrote in PHP (this
 I'm going to translate it into Java/GWT)
 -- a calendar where each user can also share appointments with other
 users
 -- a task-tool (users can also share tasks)
 -- we are using Microsoft Hosted Exchange - do you know, if it is
 possible to make the HEX-Account accessible from within this tool? I
 mean, the user would safe his credentials to the database and then,
 each time, he logs in to the tool, he will be also authenticated to
 HEX and he can access his E-Mails from the tool (without the need of
 loading/authenticating another Website). I know, saving these
 credentials to the database isn't really secure (maybe there are more
 secure ways to do this).
 -- Server Status: in this module I'd like to see different
 information about the (Debian-)server, the tool is running on (like
 CPU load, available memory, running services). And also the
 possibility to start and stop some services (like Mail, FTP, Apache,
 MySQL, etc.). In a future more advanced version, I could also imagine
 registering all our servers and seeing their status.
 -- module to manage one of our plattforms run on TYPO3 (nothing big,
 just making DB-entries for a particular TYPO3-Extension)
 -- Manage FTP-Users (PureFTP-Server)

 The aim of the whole thing is also to provide a system, where a single
 login is needed for all.

 I'm curious about your comments.

 Greets

-- 
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 Timer shop when minimize browser

2011-08-02 Thread Tee
How GWT Timer don't stop when minimize browser?

- I use chrome 12
Thank you very 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.



Does GWT has any framework or class or something for accessibility (especially for client side )

2011-08-02 Thread mmb
Hi Everyone ,
I just started learning GWT  ,is there any kind of framework or API's
for client side accessibility for GWT,i know there is a library for
provider side i.e com.google...ui.accessibility,but i want framework
or class at the client side
thanks in advance for those who reply..

-- 
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 CELLTABLE How to restore old value in cell if validation fails

2011-08-02 Thread Ioan Agopian
Hi Vaibhav,

You can do it like this:
// clear incorrect data
cell.clearViewData(KEY_PROVIDER.getKey(object));
cellTable.redraw();

Where cell is the TextEditCell that you're using for that column.

Regards,
Ioan


On Aug 2, 12:59 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
 Hi all,

 PFA WebEx recording for Issue.

 I want to used editableNumbercell like intger,decimal etc.. But there is no
 such gwt widget present so I am using editable text cell and using
 validation for numbers when user update value in cell.

 How to avoid cell editing when validation fails.

 if validation fail then editable-text cell value restored to old value.How
 to do that?

 intgerColumn.setFieldUpdater(new FieldUpdaterRecordInfo, String() {
         public void update(int index, RecordInfo object, String value) {
             // Called when the user changes the value.
             if(value.matches((-)?(\\d){1,8})){
                 object.setColumnInRecordEdited(true);
                 object.setValue(value);
                 RecordData.get().refreshDisplays();
             }else{
                 Window.alert(Specify valid integer value for parameter);
                 // How to rest old value here? currently update value
 set to cell

             }

         }
     });

 Any help or guidance in this matter would be appreciated.

 --
 Best Regards,
 Vaibhav Bhalke
 About me :http://about.me/vaibhavbhalke

 http://about.me/vaibhavbhalke

  Issue1-How to restore old value in cell (if validation fails).wrf
 203KViewDownload

-- 
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 Browser Support Restriction

2011-08-02 Thread Vijay Sarin
Hi Team,

Can we Restrict Browser Support of GWT Application to a Single One.
For Example, i want my application to be working only on Microsoft
Internet Explorer, and when opened in Mozilla Firefox or Safari or
Chrome, it must show a message Stating that You must need IE6 or
Higher to view this Page or something else like that.

My Suggestion is, when compiling a GWT Application we are Actually
Compiling for Each Various Browsers. That is the Output Stating
Compiling Permutations. So can we restrict this.

I am waiting for all of your valuable replies to move on to the next
section of my GWT Learning.

Thank You

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



Re: GWT CELLTABLE Editable value not persisted when user clicked cell twice or thrice

2011-08-02 Thread Ioan Agopian
Hi,

You have to update the value stored in your dataprovider to the new
value.
If not, when user clicks repeatedly the cell, it will revert to the
old value.


Regards,
Ioan

On Aug 2, 1:01 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
 Hi,

 Editable value not persisted when user clicked cell twice or thrice. Is it
 celltable issue ?

 --
 Best Regards,
 Vaibhav Bhalke
 About me :http://about.me/vaibhavbhalke

 http://about.me/vaibhavbhalke

  Issue-2 Editable value not persisted when user clicked cell twice or 
 thrice.wrf
 82KViewDownload

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



generating dynamic jsp pages instead of html

2011-08-02 Thread Christian Andersson

Hi there.

I know that as of today it is now possible to generate dynamic jsp pages 
instead of html pages using the gwt compiler


I wonder, have anyone looked into doing this in any form.

The reason i'm asking this is that GWT in it's current way do not allow 
for an easy dynamic translation of the pages, I know I can use the 
Dictionary class for this, but for me, it is not flexible enough 
(translation is stil ldone on client side, and i still need to add jsp 
code to find and fetch the translations and encode them into javascript 
objects.)


so, this is the simple Idea I want to do instead.
1: remove all permutations for languages leaving only one permutation 
for languages (default)

2: exchange the extension 0f the output from html to jsp
3: in the generated jsp files, instead of reading the propertyfiles and 
hard coding the language text into the result file, add java/jsp code 
that will read from the propertyfile instead of generating 1 file for 
each language.


so, has anyoen tried anything like that?

/Christian Andersson

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



Fusion Charts

2011-08-02 Thread ravi kiran
HI.. I am using Fusion charts. When binding the data from javascript
of page which consists of master page, ther's no problem in rendering
the page bu the graph is displaying white screen. Could u please help
me on this.

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



GWT contextual gadget in Eclipse

2011-08-02 Thread Sergey Glotov
Hello everyone.
I'm a newcomer in GWT and I can't understand how to create GWT contextual 
gadged, which would be hosted an Google Apps Engine.
The problem is there is no parametr view=card in compiled gwt gadget even 
if I use @ContentType(views={card}) in my java class.
I understand I can edit compiled myclass.gadget.xml in war directory and add 
this parametr but there is a big problem with its lost when publishing at 
google apps engine.
How to solve this problem ?

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



Cannot install Google plugin for Eclipse 3.7 (Indigo)

2011-08-02 Thread Tuan Luu
I used this link http://dl.google.com/eclipse/plugin/3.7
When installing, an error message appeared, is said that
An error occurred while collecting items to be installed
session context was:(profile=epp.package.java,
phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=,
action=).
No repository found containing:
osgi.bundle,org.apache.lucene.highlighter,2.9.1.v20100421-0704
No repository found containing: osgi.bundle,org.apache.lucene.memory,
2.9.1.v20100421-0704
No repository found containing: osgi.bundle,org.apache.lucene.misc,
2.9.1.v20100421-0704
No repository found containing: osgi.bundle,org.apache.lucene.queries,
2.9.1.v20100421-0704
No repository found containing: osgi.bundle,org.apache.lucene.snowball,
2.9.1.v20100421-0704
No repository found containing:
osgi.bundle,org.apache.lucene.spellchecker,2.9.1.v20100421-0704
No repository found containing:
osgi.bundle,org.eclipse.jst.common.project.facet.core,
1.4.200.v201103170302
No repository found containing:
osgi.bundle,org.eclipse.jst.server.core,1.2.202.v20110419
No repository found containing: osgi.bundle,org.eclipse.wst.css.core,
1.1.500.v201104191926
No repository found containing: osgi.bundle,org.eclipse.wst.css.ui,
1.0.600.v201103022054
No repository found containing: osgi.bundle,org.eclipse.wst.html.core,
1.1.500.v201104191551
No repository found containing: osgi.bundle,org.eclipse.wst.jsdt.core,
1.1.100.v201104272153
No repository found containing:
osgi.bundle,org.eclipse.wst.jsdt.manipulation,1.0.300.v201104272153
No repository found containing: osgi.bundle,org.eclipse.wst.jsdt.ui,
1.1.100.v201105041953

and canceled my installation.
I'm using mac os 10.7, eclipse 3.7 for java developer
Thank you.

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



How to add a widget on the CellTable Cell?

2011-08-02 Thread Anuj Garg
Hi,

I want to make an editable grid using the CellTable provided by GWT
2.1.1. I have one custom widget having text box and search button
associated with the text box. I am trying to add this custom widget on
the CellTable cell to make this cell an editable cell.

The custom cell is extending the AbstractEditableCell class provided
by the GWT.

The render(Context context, String value, SafeHtmlBuilder sb) method
of the custom cell for widget is trying to make a Safe html for the
widget and rendering this safe html in to the cell. The widget
displayed on the CellTable, is loosing the events associated with the
search button.

I have already gone through the links written below, but did not get
the solution.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9cfb4a3b5c4af0be/b75305d15a1c32e8?lnk=gstq=celltable+widget#b75305d15a1c32e8


Please let me know, If anybody faced this problem before.

Thanks and Regards,
Anuj Garg,
8860095180

-- 
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: Developing Google gadgets with GWT

2011-08-02 Thread Eric Ayers
You can manually create a gadget spec and use exactly the same
application for both, but your app won't be able to use the gwt-gadget
API, because it bootstraps from a subclass of Gadget, not EntryPoint.
If you use the gwt-gadget library, it substitutes a different primary
linker and automatically creates the gadget.xml file for you, but
doesn't generate a regular web page bootstrap.

I suggest you use two different top level GWT module definitions and
then just inherit the same sub-modules to implement your app.  That
way, you should be able to share a good deal of logic between the two
different ways of accessing your app.

On Sat, Jul 23, 2011 at 2:23 AM, Михаил Марёнов enf...@gmail.com wrote:
 I successfully created gadget using Getting Started with Gadgets and GWT

 I want to know:

 Is it possible to work on gadgets in development mode? I want to change the
 code and see the results. Or i need to compile and publish the gadget every
 time i change code?

 I want my GWT GAE application to be both normal GWT app and a google gadget.
 When user enters http://mygadget.appspot.com/ i want him to see normal GWT
 app. But when user
 accesshttp://mygadget.appspot.com/axogadget/com.axdms.gadget.client.AxObjectGadget.gadget.xml he
 gets the gadget. Is it posible? Or it has to be 2 different GAE
 applications? (Normal GWT app and gadget have different functionality).
 Multiple entry points?

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




-- 
Eric Ayers | Software Engineer | zun...@google.com | +1 404 487 9229

-- 
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: Compile Error - Method Not Implemented

2011-08-02 Thread Jeffrey Chimene

On 8/1/2011 9:12 PM, Nick Apperley wrote:

Had another look at the UI file (LoginPage.ui.xml) and didn't see
anything related to the issue. Below is the contents of that file:

I see nothing there either.

I'd try a few things:
o Simplify the file. Use VerticalPanel or HorizontalPanel or a 
combination of them to replace the g:grid when laying out the labels.


o Focus on getting a clean compilation w/o reference to the ui.xml 
(obviously, it won't run...) Start commenting out the UiField and 
UiHandler annotations one by one. Do not comment out the field references.


o Does the Template Editor do anything interesting when invoked on this 
ui.xml?


o Look at the generated javascript and see if you can find the linkage 
to the Problem Child.


--
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: Template embedding in the GWT

2011-08-02 Thread opn
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideHostPage

look here to see another way of achieving this!
As you can see, you are able to build a static frame around your gwt
app this way, define a slot and add your dynamic gwt stuff there.

hope it helps!

Regards
Alex

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



About GWT opinion in thoughtworks technology radar july 2011

2011-08-02 Thread Emilio Bravo
http://www.thoughtworks.com/articles/technology-radar-july-2011#Platforms

thoughtworks technology radar july 2011, talk negatively about gwt,
these are the 3 reasons:

First, in many ways, JavaScript is more powerful and expressive than
Java, so we suspect that the generation is going in the wrong
direction.
more powerfull for that?

Secondly, it is impossible to hide a complex abstraction difference
like that from event-driven desktop to stateless-web without leaky
abstraction headaches eventually popping up
I can't comment, I do not know the compilation process.

Third, it suffers from the same shortcomings of many elaborate
frameworks, where building simple, aligned applications is quick and
easy, building more sophisticated but not supported functionality is
possible but difficult, and building the level of sophistication
required by any non-trivial application becomes either impossible or
so difficult it isn’t reasonable.
What is meant by functionality not supported?.  Program non-trivial
applications with GWT is easier than directly in javascript

What do you think?

-- 
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 CELLTABLE How to restore old value in cell if validation fails

2011-08-02 Thread Adolfo Panizo Touzon
Thanks!. It´s usefull for me.

2011/8/2 Ioan Agopian ioan.agop...@gmail.com

 Hi Vaibhav,

 You can do it like this:
 // clear incorrect data
 cell.clearViewData(KEY_PROVIDER.getKey(object));
 cellTable.redraw();

 Where cell is the TextEditCell that you're using for that column.

 Regards,
 Ioan


 On Aug 2, 12:59 pm, vaibhav bhalke bhalke.vaib...@gmail.com wrote:
  Hi all,
 
  PFA WebEx recording for Issue.
 
  I want to used editableNumbercell like intger,decimal etc.. But there is
 no
  such gwt widget present so I am using editable text cell and using
  validation for numbers when user update value in cell.
 
  How to avoid cell editing when validation fails.
 
  if validation fail then editable-text cell value restored to old
 value.How
  to do that?
 
  intgerColumn.setFieldUpdater(new FieldUpdaterRecordInfo, String() {
  public void update(int index, RecordInfo object, String value) {
  // Called when the user changes the value.
  if(value.matches((-)?(\\d){1,8})){
  object.setColumnInRecordEdited(true);
  object.setValue(value);
  RecordData.get().refreshDisplays();
  }else{
  Window.alert(Specify valid integer value for
 parameter);
  // How to rest old value here? currently update value
  set to cell
 
  }
 
  }
  });
 
  Any help or guidance in this matter would be appreciated.
 
  --
  Best Regards,
  Vaibhav Bhalke
  About me :http://about.me/vaibhavbhalke
 
  http://about.me/vaibhavbhalke
 
   Issue1-How to restore old value in cell (if validation fails).wrf
  203KViewDownload

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




-- 
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

-- 
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: Extending/embedding DialogBox

2011-08-02 Thread Derek
I generally create custom Dialogs as their own uibinders and then
instantiate them from elsewhere. So I might use the code below, and
display it with new MyDialog().center();

Is this best practice? I'm not sure. I think there are some who hold
to the idea that you should let your dialog's content be its own
UiBinder, but that is not precluded by the strategy below. It's the
way we do things at my organization.

ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
  g:DialogBox modal=true
g:captionDialog!/g:caption
g:HTMLPanel
  g:Button ui:field=closeClose/g:Button
/g:HTMLPanel
  /g:DialogBox
/ui:UiBinder

public class MyDialog {
  private static MyDialogUiBinder uiBinder =
GWT.create(MyDialogUiBinder.class);
  interface MyDialogUiBinder extends UiBinderWidget, MyDialog {}
  DialogBox box;
  public MyDialog() {
box = (DialogBox) uiBinder.createAndBindUi(this);
  }
  public void center() { box.center(); }
  @UiHandler(close) void onClose(ClickEvent event) { box.hide(); }
}

On Aug 1, 10:55 am, Wulfsberg wulfsb...@gmail.com wrote:
 I am a little confused over the best practice use of DialogBox when
 using UIBinders.

 In UIBinder xml, you can include a DialogBox element, and configure it
 using, say, the caption element or text attributes. This seems to hint
 that you can embed a full DialogBox definition, letting a widget carry
 its own DialogBox to pop on demand.
 However, doing so results in the dialog box being shown as part of the
 page on load, and some comments seem to indicate that you're not
 supposed to do this.

 If, on the other hand, you extend DialogBox as its own stand-alone
 widget, you only get to define the *contents* of the dialog box in the
 ui.xml, forcing you to set things like caption and glass pane in the
 Java code, which seems to defy the purpose of a uibinder in the first
 place.

 What am I missing?

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



Re: GWT and API for integrating Facebook widget (like and share)

2011-08-02 Thread Aidan O'Kelly
GwtFb does exactly this, provides a wrapper around the Facebook JS
SDK. Its a good place to start, and for me, it was a useful
little tutorial on using JSNI, as the source code under the sdk
package is very straightforward and easy to understand. (Just look at
FbCore.java )

On Tue, Aug 2, 2011 at 4:29 PM, Diego diego.marcon...@gmail.com wrote:
 . I still do not seem stable libraries for GWT wrapper javascript
 facebook. I decided then to try jsni to use javascript as described on
 the page of the developers of facebook . but it's really
 complicated. No one you've never done such a thing? can show me a
 tutorial?

  thanks

 On 2 Ago, 00:38, Diego diego.marcon...@gmail.com wrote:
 Hi all,

 I am a new to GWT and I started a few days to study this great
 toolkit. I need some advice for implementation in GWT: I should be
 integrated into a web application GWT widgets facebook like and
 share. I found these two libraries:

 1) gwtfb -http://code.google.com/p/gwtfb/
 GWT Wrapper for Facebook JavaScript SDK

 2) facebook4gwt -http://code.google.com/p/facebook4gwt/
 GWT Java wrapper around FB tags and more.

 In your opinion, which certainly have much more experience than me,
 which may be utilized to implement the request? Do you know any other
 library I can do for me?

 Another information, if I can not use the native JavaScript facebook!

 Thanks in advance

 Diego (Venice - Italy)

 --
 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: About GWT opinion in thoughtworks technology radar july 2011

2011-08-02 Thread Michael Allan
Emilio Bravo wrote:
 http://www.thoughtworks.com/articles/technology-radar-july-2011#Platforms
  First, in many ways, JavaScript is more powerful and expressive than
  Java, so we suspect that the generation is going in the wrong
  direction.

 more powerfull for that?

This critique makes no sense, as the two languages are comparable in
expressivity.  Admittedly something is lost in translating from one to
the other, and maybe that's what they want to say.

  Secondly, it is impossible to hide a complex abstraction
  difference like that from event-driven desktop to stateless-web
  without leaky abstraction headaches eventually popping up

 I can't comment, I do not know the compilation process.

The JavaScript engines that GWT targets are not stateless.  There is
no such gross incompatibility between the source and target platforms.
I wonder what they were thinking?
 
  Third, it suffers from the same shortcomings of many elaborate
  frameworks, where building simple, aligned applications is quick
  and easy, building more sophisticated but not supported
  functionality is possible but difficult, and building the level of
  sophistication required by any non-trivial application becomes
  either impossible or so difficult it isn’t reasonable.

 What is meant by functionality not supported?.  Program non-trivial
 applications with GWT is easier than directly in javascript

I have the opposite problem.  I often want to do something that would
be trivial in JavaScript or HTML, but I have to struggle a little to
accomplish the same thing in GWT.  Something as simple as wrapping a
Widget in a div - just for a quick layout test - requires reading the
API docs.  I'm no a GWT expert yet, and I guess that's part of the
problem.  I'm more familiar with CSS, HTML and even JavaScript than I
am with GWT.

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.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.



Browser detection

2011-08-02 Thread Mark
Detecting the browser type

public static native String getUserAgent() /*-{
   return navigator.userAgent.toLowerCase();
}-*/;

and using something like

if(getUserAgent().contains(msie))
{
   // code for ie
} else {
   // code for other browsers
}

will get you what you want.

Possibly better is to compile only for IE by setting the user.agent
property in your .gwt.xml file and have logic in your startup page
that will display a message for unsupported browsers.

-- 
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 Browser Support Restriction

2011-08-02 Thread Mark
Detecting the browser type
public static native String getUserAgent() /*-{
   return navigator.userAgent.toLowerCase();
}-*/;

and using something like
if(getUserAgent().contains(msie))
{
   // code for ie
} else {

   // code for other browsers
}

will get you what you want.
Possibly better is to compile only for IE by setting the user.agent
property in your .gwt.xml file and have logic in your startup page
that will display a message for unsupported browsers.

On Aug 2, 8:41 am, Vijay Sarin sarinv...@gmail.com wrote:
 Hi Team,

 Can we Restrict Browser Support of GWT Application to a Single One.
 For Example, i want my application to be working only on Microsoft
 Internet Explorer, and when opened in Mozilla Firefox or Safari or
 Chrome, it must show a message Stating that You must need IE6 or
 Higher to view this Page or something else like that.

 My Suggestion is, when compiling a GWT Application we are Actually
 Compiling for Each Various Browsers. That is the Output Stating
 Compiling Permutations. So can we restrict this.

 I am waiting for all of your valuable replies to move on to the next
 section of my GWT Learning.

 Thank You

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



Re: Graphical representation of a tree

2011-08-02 Thread ph09
What about this one:
http://code.google.com/p/raphaelgwt/

Has someone any experience??

On 2 Aug., 13:12, ph09 ph.hei...@googlemail.com wrote:
 Ok thank you.
 Any other suggestions?

 On 1 Aug., 18:10, J.Ganesan j.gane...@datastoregwt.com wrote:







  Tryhttp://code.google.com/p/gwt-g2d/. You may have to implement
  picking and translation  for Drag  Drop.

  J.Ganesanwww.DataStoreGwt.com

  On Aug 1, 7:18 pm, ph09 ph.hei...@googlemail.com wrote:

   Hello,

   I want to represent a Tree in a antoher way as the standard graphical
   representation.
   Drag  Drop should be able.
   Like this one:http://s1.directupload.net/file/d/2603/yzo588bb_jpg.htm

   Do you know a good GWT Extension to realize this?
   I have already looked at the Google Web Toolkit Gallery.
   Do you think something like this would solve the 
   problem?http://gwtgallery.appspot.com/about_app?app_id=86

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



LazyPresenters with GXT - Method must be called before the component is rendered

2011-08-02 Thread Kyle Anderson
I keep getting the error: Method must be called before the component
is rendered


I created a presenter ResultsPresenter which gets lazy loaded when the
user clicks the Results button.  The result button call back calls
the eventBus.viewResults event, which calls the onViewResults in the
results presenter, which triggers the RootPanelPresenter to add the
view to the RootPanel.

However, when the RootPresenter tries to add the results widget to the
rootpanel, it gets an error saying Method must be called before the
component is rendered.

I suspect this is due to the fact that I am using GXT because GXT
panels are not rendered until they are added to the root panel, but I
don't know any other way around it.


@Presenter( view = ResultsView.class )
public class ResultsPresenter extends
LazyPresenterResultsPresenter.IResultsView, GridEditorUIEventBus {

public void onViewResults() {
eventBus.addViewResults( view.getViewWidget() );
}
}


IMPORTANT NOTE: everything works perfectly if I add the results widget
to the root panel in the onStart method, and set it to invisible, and
then set it visible when I need it.  However, I feel like I shouldn't
need to do this because I would prefer to not render everything at
startup, and it's also a pain to have the extra code of storing
everything in a datastructure in rootpanelpresenter.

i.e.  THIS WORKS:
public void onViewResults() {
eventBus.showViewResults( );  // set widget to visible
}

public void onStart(){
eventBus.renderViewResults( view.getViewWidget() ); // add 
widget to
root panel, but set invisible
}

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



Re: GWT and Spring

2011-08-02 Thread jose felix estevez
gracias amigo toda ayuda es bien recibida. saludos.

2011/8/1 Juan Pablo Gardella gardellajuanpa...@gmail.com

 Hola José

 Bienvenido a la comunidad. Yo te puedo recomendar que veas el siguiente
 prototipo:

 https://bitbucket.org/gardellajuanpablo/gwt-sample/wiki/Home

 Si bien es un poco avanzado porque tiene varios frameworks, te puede servir
 de guía.

 Saludos,
 Juan

 2011/8/1 jose felix estevez josefel...@gmail.com

 wow gracias amigo por responder tan rapido.

 El 1 de agosto de 2011 19:52, Gal Dolber gal.dol...@gmail.com escribió:

 Buenas, bienvenido!

 No use nunca spring, pero parece haber mucha informacion al respecto,
 este el primer proyecto que aparece:
 http://code.google.com/p/gwtrpc-spring/

 Tambien hay instrucciones en gwt-incubator
 http://code.google.com/p/google-web-toolkit-incubator/wiki/IntegratingWithSpring

 Saludos

 On Mon, Aug 1, 2011 at 12:58 PM, jose felix estevez 
 josefel...@gmail.com wrote:

 buenas amigos soy nuevo en esto de gwt y me gustaria integrar gwt con
 spring alguna ayuda

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt
 applications.

 http://code.google.com/p/guit/




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




 --
 Jose F.Estevez H.
 T.S.U. en Analisis y Diseño de Sistemas
 Consultor Staff I
 Tecnology Consulting Solutions - TCS


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




-- 
Jose F.Estevez H.
T.S.U. en Analisis y Diseño de Sistemas
Consultor Staff I
Tecnology Consulting Solutions - TCS

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

2011-08-02 Thread Sridhar PV
Hi,

Is any one implemented GWT Portlets at Enterprise Level. Could any one
post an example with sequence of steps. Can I use GWT Portlets for
Dash borad customization.

Please help me to implement GWT Portlets in my 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.



Re: Extending/embedding DialogBox

2011-08-02 Thread Brian Reilly
I've found that you can add a visible=false attribute to the g:DialogBox 
tag to keep it from being displayed on page load. However, I think this will 
cause the dialog box UI to be constructed even if it's never displayed.

I'm guessing that the you're not supposed to do this comment you're 
referring to is this comment from the PopupPanel javadocs:

A PopupPanel should not generally be added to other panels; rather, it 
should be shown and hidden using the show() and hide() methods.

Derek's approach is the only way I can think of to use g:DialogBox in a UI 
template without it being automatically added to another panel. However, I 
don't like that approach because the custom dialog box does not actually 
subclass DialogBox. This necessitates having like-named methods that proxy 
to the DialogBox returned from UiBinder, such as center() in Derek's 
example. Unlike cases where it makes sense to subclass Composite to hide the 
root widget's API, the custom dialog box really is a dialog box and should 
inherit the DialogBox API.

What I settled on was to subclass DialogBox and use UiBinder to build the 
widget passed to DialogBox.setWidget(). My hope is that this encourages its 
use from java code instead of a UI template. In reality, my custom dialogs 
are no more opinionated about where they're used than GWT's own DialogBox 
is, which has a nice harmonious feel to it.

-- Brian

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/EuskuIZqfqkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Does GWT has any framework or class or something for accessibility (especially for client side )

2011-08-02 Thread Ben Munge
I'm not sure what you mean exactly. Accessibility is driven much more
by the content and construction of your pages. A framework cannot make
assumptions about accessibility because it doesn't know what your site
is trying to express. If you follow the UI Binder approach, just
construct your elements in the most accessible way that fits your site
(tab indexing, alt comments, descriptive links, etc).

On Aug 2, 12:38 am, mmb birada...@gmail.com wrote:
 Hi Everyone ,
 I just started learning GWT  ,is there any kind of framework or API's
 for client side accessibility for GWT,i know there is a library for
 provider side i.e com.google...ui.accessibility,but i want framework
 or class at the client side
 thanks in advance for those who reply..

-- 
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: Does GWT has any framework or class or something for accessibility (especially for client side )

2011-08-02 Thread Alisson Prestes
ARIA Roles?

Alisson Prestes
www.google.com/profiles/javalisson



On Tue, Aug 2, 2011 at 4:28 PM, Ben Munge ben.mu...@gmail.com wrote:

 I'm not sure what you mean exactly. Accessibility is driven much more
 by the content and construction of your pages. A framework cannot make
 assumptions about accessibility because it doesn't know what your site
 is trying to express. If you follow the UI Binder approach, just
 construct your elements in the most accessible way that fits your site
 (tab indexing, alt comments, descriptive links, etc).

 On Aug 2, 12:38 am, mmb birada...@gmail.com wrote:
  Hi Everyone ,
  I just started learning GWT  ,is there any kind of framework or API's
  for client side accessibility for GWT,i know there is a library for
  provider side i.e com.google...ui.accessibility,but i want framework
  or class at the client side
  thanks in advance for those who reply..

 --
 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: GWT and Spring

2011-08-02 Thread Jeff Larsen
Si estas interesante en usando RequestFactory, es facil usar Spring con 
RequestFactory en 2.4-RC.

Hacer un class se llama SpringServiceLocator

public class SpringServiceLocator implements ServiceLocator {

public Object getInstance(Class? arg0) {
ApplicationContext ctx = WebApplicationContextUtils

.getWebApplicationContext(RequestFactoryServlet.getThreadLocalServletContext());
return ctx.getBean(arg0);
}
}

y usarlos en totas sus RequestContext annotations

@Service(value=MyService.class, locator=SpringServiceLocator.class)
public interface MyRequestContext extends RequestContext{
 
}

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



Querry Wrapper

2011-08-02 Thread ph09
Hi,

can someone explain me how the Querry Wrapper works? Is it made for
Tree's?
If I have got a GWT Tree, would it be able to visualize it in this
way?
https://spreadsheets.google.com/pub?key=rCaVQNfFDMhOM6ENNYeYZ9Q

In the example Code Javascript is used:
http://code.google.com/intl/de-CH/apis/chart/interactive/docs/examples.html

Works it also with java?

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



Re: GWT and Spring

2011-08-02 Thread Juan Pablo Gardella
Thanks Jeff!!

2011/8/2 Jeff Larsen larse...@gmail.com

 Si estas interesante en usando RequestFactory, es facil usar Spring con
 RequestFactory en 2.4-RC.

 Hacer un class se llama SpringServiceLocator

 public class SpringServiceLocator implements ServiceLocator {

 public Object getInstance(Class? arg0) {
 ApplicationContext ctx = WebApplicationContextUtils

 .getWebApplicationContext(RequestFactoryServlet.getThreadLocalServletContext());
 return ctx.getBean(arg0);
 }
 }

 y usarlos en totas sus RequestContext annotations

 @Service(value=MyService.class, locator=SpringServiceLocator.class)
 public interface MyRequestContext extends RequestContext{
  
 }

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/Wm3sEjfoAxMJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email 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.



EventBus in 2.4

2011-08-02 Thread objectuser
I was looking at 2.4.0 RC1 and noticed that I had some deprecation warnings 
with regard to EventBus.

Specifically, PlaceController has deprecated methods using 
com.google.gwt.event.shared.EventBus, favoring instead 
com.google.web.bindery.event.shared.EventBus. However, I have noticed that 
Activity still uses the old location exclusively.  Since both of these are 
part of the places support, it seems like that framework is currently 
inconsistent.

Is this a situation that will continue through the actual release? If so, is 
there a recommended approach as to which one to use in a given situation? 
 I'm guessing we'd just be stuck with the warnings in 2.4.

Thanks.

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



Adding a MouseOverHandler to CellList

2011-08-02 Thread Sébastien Tromp
Hello,

I am trying to adapt the example at
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList to create a
custom list based on the CellList.
One of my needs is to display a tooltip (with additional details) when the
mouse is over each of the cells.

I tried overriding the onBrowserEvent2 method in the cellList, but the
MouseOver is not an event caught by this method (the click is, though).
Registering MouseOverHandler to the list does not solve the issue either.
I tried to handle things at the AbstractCellT level, but the only method I
can use is onBrowserEvent, which leads to no result either.

Would anyone have an idea as to how to do this?
-- 
Sébastien Tromp

-- 
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: Changed handling of quotes in GWT localizable resources?

2011-08-02 Thread googelybear
posted a bug report for this issue, as this makes i18n almost
impossible: http://code.google.com/p/google-web-toolkit/issues/detail?id=6647

On Jul 25, 11:55 am, googelybear googelyb...@gmail.com wrote:
 just found out that this only affects properties loaded via the
 Constants interface. When using ui:msg in uibinder files the old
 trick still works (I guess this goes via MessageFormat). But when
 loading the property programmatically using Constants interface it
 does NOT work (meinaing 2 '' in the source file will also be outputted
 as 2 '').

 On Jul 25, 11:40 am, googelybear googelyb...@gmail.com wrote:







  Hi,

  I am a bit puzzled about this, is no one else facing this issue? How
  did you guys solve it?

  According to the official Message Format javadoc from Oracle (http://
  download.oracle.com/javase/6/docs/api/java/text/MessageFormat.html)
  the old trick with doubling the quotes should still work (quote):
  Within a String, '' represents a single quote. 

  but when I write the following property in my properties file:
  foo = you can''t do this

  the output will be you can''t do this - with 2 single quotes still
  present - instead of one according to the javadoc.

  Is this a gwt bug?

  thanks for any feedback,
  Dennis

  On Jun 25, 3:31 pm,googelybeargoogelyb...@gmail.com wrote:

   Hi,

   I am developing a multi locale app and as described in many posts
   (e.g. [1] or [2]) so far I have always put 2 quotes when I wanted a
   single quote to appear in the output in my language properties files
   (e.g. that''s right will become that's right). This was very
   annoying for translators and often got forgotten, meaning I had to fix
   it manually. But it worked.

   Now I received a bug report from the client stating that all quotes
   are printed twice on the website (which turned out to be true).

   I will now go back and replace all the double quotes with single
   quotes again.

   I don't know in which version of GWT that changed (I suspect 2.2 or
   2.3).

   Did others also experience the same issue? If so, why have we not been
   warned about this change by the GWT team? If not, do you have any idea
   what could have caused this?

   thanks,
   Den

   [1]http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
   [2]http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

-- 
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: Extending/embedding DialogBox

2011-08-02 Thread Aidan O'Kelly
You can actually just change your UiBinder java class to inherit from
DialogBox, and call setWidget(uiBinder.createAndBind(this)) instead of
the regular, initWidget() method of Composite.

Your UiBinder template then just looks like this:

ui:UiBinder ... 
g:HTMLPanel
Stuff.
/g:HTMLPanel
/ui:UiBinder

// To use:
CustomDialog dialog = new CustomDialog();
// etc.





On Tue, Aug 2, 2011 at 8:25 PM, Brian Reilly brian.irei...@gmail.com wrote:
 I've found that you can add a visible=false attribute to the g:DialogBox
 tag to keep it from being displayed on page load. However, I think this will
 cause the dialog box UI to be constructed even if it's never displayed.
 I'm guessing that the you're not supposed to do this comment you're
 referring to is this comment from the PopupPanel javadocs:

 A PopupPanel should not generally be added to other panels; rather, it
 should be shown and hidden using the show() and hide() methods.

 Derek's approach is the only way I can think of to use g:DialogBox in a UI
 template without it being automatically added to another panel. However, I
 don't like that approach because the custom dialog box does not actually
 subclass DialogBox. This necessitates having like-named methods that proxy
 to the DialogBox returned from UiBinder, such as center() in Derek's
 example. Unlike cases where it makes sense to subclass Composite to hide the
 root widget's API, the custom dialog box really is a dialog box and should
 inherit the DialogBox API.

 What I settled on was to subclass DialogBox and use UiBinder to build the
 widget passed to DialogBox.setWidget(). My hope is that this encourages its
 use from java code instead of a UI template. In reality, my custom dialogs
 are no more opinionated about where they're used than GWT's own DialogBox
 is, which has a nice harmonious feel to it.
 -- Brian

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/EuskuIZqfqkJ.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email 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: Linker and Generator documentation

2011-08-02 Thread Y2i
Why not to use a GWT event bus?  You can create an event by extending 
GwtEvent and place it in a small module that the other two modules can link 
to.  How a compiled event can be different if both modules link to the same 
version of the interface module?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/qCQzsuDyt9QJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 a MouseOverHandler to CellList

2011-08-02 Thread Sébastien Tromp
More precisely, I need to add a tooltip to the Cell (not necessarily the
MouseOverHandler).

2011/8/2 Sébastien Tromp sebastien.tr...@gmail.com

 Hello,

 I am trying to adapt the example at
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList to create
 a custom list based on the CellList.
 One of my needs is to display a tooltip (with additional details) when the
 mouse is over each of the cells.

 I tried overriding the onBrowserEvent2 method in the cellList, but the
 MouseOver is not an event caught by this method (the click is, though).
 Registering MouseOverHandler to the list does not solve the issue either.
 I tried to handle things at the AbstractCellT level, but the only method
 I can use is onBrowserEvent, which leads to no result either.

 Would anyone have an idea as to how to do this?
 --
 Sébastien Tromp


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



Re: HOWTO use @proxyevent

2011-08-02 Thread Jeffrey Chimene

On 8/2/2011 12:01 PM, Philippe Beaudoin wrote:
Ah, yeah... I doubt it's related to GWTP (I don't see how it could 
create a browser-specific behavior that wasnt in GWT to begin with), 
but I see your point. Deeper stacks come at a price... Naturally, I 
believe the benefits of GWTP are still greater than the increased 
stack cost, but I may be slightly biased. ;)

(cross-posting on the GWT-USERS group)

And a good thing too

There was just no way I was going to waste time ripping out GWTP based 
on some sub-optimal IE9 behavior.


It turns out that IE9 is not supporting EM css units in a LayoutPanel. I 
could be wrong, but it all Just Works when using PX units. Also, for 
added fun, sometimes percent units are honored and sometimes not.


Thanks for your support!

Cheers,
jec

--
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 a MouseOverHandler to CellList

2011-08-02 Thread Y2i
AbstractCellT.onBrowserEvent() should be called if you call 
super(mouseover) in the constructor of an AbstractCellT subclass.
http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/cell/client/AbstractCell.html#AbstractCell(java.lang.String...)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/mTt7bZn59SAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 menu dinamico

2011-08-02 Thread Fabricio Pizzichillo
Hola Jose.
Aca tenés la lista de widget que hay por defecto
http://code.google.com/intl/en/webtoolkit/doc/latest/RefWidgetGallery.html
Te recomiento visitar la documentacion en ingles ya que la que esta en
español esta desactualizada.

Saludos

2011/8/2 jose felix estevez josefel...@gmail.com

 Buenas amigos estoy en busqueda de algun widget  que  cumpla la
 funcion de  menu.

 --
 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: Web Workers in GWT

2011-08-02 Thread cidylle0
Chris,
Thanks again for your pointers, they have been very helpful. Following
your advice I believe I managed to set up the proper configuration and
I feel I am very close to succeeding. So far I am simply trying to
test the set up by sending a message from the main module to the
worker, and have the worker send back the message then display it in
an alert window. As I attempt to do so with postMessage() methods I
run into an error I cannot seem to correct:

(worker bootstrap error : alert not defined )

Do you have any idea what that error could be ? I have the error
whether i use simple strings or JSON objects in postMessage. I have
ran a couple searches and looked into the wc3 specs but to no avail.
Thank you.

On Aug 2, 10:18 am, Chris Conroy con...@google.com wrote:
 Within SpeedTracer take a look at the Breaky Worker infrastructure (used to
 validate the schema of records SpeedTracer receives from Chrome):

 client/ui/src/com/google/speedtracer/...
 breaky/BreakyWorker.gwt.xml
 breaky/worker/BreakyWorker.java
 client/model/BreakyWorkerHost.java

 To get an idea of how all this stuff is wired up. The Worker Host lives in
 the normal GWT module side of things, and the BreakyWorker is a
 DedicatedWorkerEntryPoint responsible for initializing the worker. Since
 it's small, it also handles the handling of messages.

 The BreakyWorker.gwt.xml module pulls in  our WebWorker definition and uses
 the DedicatedWorkerLinker.







 On Mon, Aug 1, 2011 at 7:58 PM, cidylle0 cidyl...@gmail.com wrote:
  Thank you for your input Chris.
  Yes I have been looking at the code included in Speedtracer but
  without documentation (and the fact that I am a novice GWT developer)
  I am having a difficult time figuring out how to the webworker is
  being set up and used in Speedtracer. There seems to be a module for
  the webworker with various classes representing worker entry points
  but I am not sure which would to implement and in what context. In the
  xml files of the modules i did notice an add-linker ... tag which I
  am assuming points to the module that represents the worker. Again, if
  anyone could provide a few basic steps to make a simple web worker
  work in GWT I would greatly appreciate.

  On a general note, I am a bit surprised by the lack of support
  available for web workers in gwt, when there is support for other
  HTML5 features like local storage, canvas etc. Does anyone know why it
  is the case ? Are people not interested in using multi-threading in
  GWT or is GWT not a suitable tool for such an application ?

  On Aug 1, 3:54 pm, Chris Conroy con...@google.com wrote:
   You definitely don't want to use gears.

   You can take a look at how SpeedTracer uses WebWorkers via a custom
   DedicatedWebWorker linker:
 http://code.google.com/p/speedtracer/source/browse/#svn%2Ftrunk%2Fsrc...

   Note that you cannot reference $doc or $wnd in the webworker.

   On Mon, Aug 1, 2011 at 6:37 PM, cidylle0 cidyl...@gmail.com wrote:
Hi Allahbaksh.

I did run accross the gwt-ns you mentioned but I am having trouble
running the sample described. Can't seem to set it up right. The
documentation is very minimal and the project seems to have been
halted. Can anyone who has used web workers with GWT before help me
out or point me out to some JAR or tutorial out there ? I found
something called google Gears that seemed to have been doing something
very similar (worker pool) but it has recently been deprecated. Any
help would be appreciated. Thanks.

On Aug 1, 5:02 am, Allahbaksh a.allahba...@gmail.com wrote:
 HI,
 Check gwt-ns project. I have personally not used it.
 Regards,
 Allahbaksh

 On Jul 30, 6:08 am, cidylle0 cidyl...@gmail.com wrote:

  Hello,

  I am currently playing around with GWT and I would like to
  implement
  some HTML5 features with it like web workers. In the GWT
  documentation
  I see that it supports a couple HTML5 features but no Web Workers.
  Are
  there any libraries out there that would implement web workers in
  GWT ? Or can anybody point me to a simple tutorial ? I would
  appreciate. 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.

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

Re: EventBus in 2.4

2011-08-02 Thread Y2i
This mess has started with 2.3.

If I simply upgrade my project from 2.2 to 2.3 without migrating from gwt to 
web.bindery, the project compiles but fails at run-time failing to locate a 
proxy when receiving a response from the server.
But upgrading 2.2 to 2.3 with migration from gwt to web.bindery fails to 
compile.

I'm completely ignoring 2.3 for now and may be ignore 2.4 until all the dust 
settles down.

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



Iterate over all objects which are not garbage collected

2011-08-02 Thread Tom Fishman
Our website has memory issues. A typical situation is the event
handler has reference to a window/widget.

Instead of checking those situations case by case, I wonder if java
can iterate/enumerate all objects that is not garbage collected. ( I
care more in java mode than javascript mode now )

By looking at the number of instances per class, I can quickly tell
the problem.

Can we?
-Tom

-- 
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: Iterate over all objects which are not garbage collected

2011-08-02 Thread Y2i
Check out HPROF and TPTP
http://java.sun.com/developer/technicalArticles/Programming/HPROF.html
http://www.eclipse.org/tptp/home/documents/tutorials/profilingtool/profilingexample_32.html

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/TZn45V1PXYYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 project tree setup

2011-08-02 Thread Abi
Hi All,

Any suggestion would appreciate for below, so we can correct
initially.


On Jul 29, 11:46 am, Abi alias@gmail.com wrote:
 We are re-writing our ERP system using Java/GWT/Spring.It is something
 big. We would like to get some suggestion regarding the tree setup.

 1. Application.gwt.xml
 ---

 We have above 70 modules today. But all of it's having only one entry
 point and is Application.gwt.xml.

 But becuase of the same :

 But each module seems we need to specify in main *.gwt.xml

 eg.
 source path='ecommerce/arn/client' /
 source path='ecommerce/arn/shared' /
 source path='ecommerce/bol/client' /
 source path='ecommerce/bol/shared' /
 source path='ecommerce/bkg/client' /
 source path='ecommerce/bkg/shared' /

 Instead of this, Is there any way to specify this source path using
 file globs ?

 for e.g:

 ie,source path='ecommerce/*/{shared,client}' /

 or ie,

 source path='ecommerce/*/shared' /
 source path='ecommerce/*/client' /

 2. This is regarding css file.
 
 Since each time if there is a change in the file, we seems need to
 compile and run using GWT.
 This is fine for a development server and via eclipse.

 But for a very simple change in production server, may be just a font
 issue,seems the entire tree need to compile. So we moved the resources
 filed outside the .war file.

 ie in a folder say

 project/resources/css/bol/bol.css
 project/resources/css/bol/arn.css
 project/resources/images/a.png
 project/resources/images/b.png

 and applied the styles directly in the GWT files. But this found there
 is no 'GWT-Cache' for images. Is there any fix around for this? Means
 images are loading now like a normal website, taking time. We tried
 GWT image pre-load as well, but not a good idea to re-load all the
 images at single shot as there are many.

 What is the best approach here else?

 Please suggest.

-- 
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 do I get PNG image data as a decoded bytearray?

2011-08-02 Thread Xavier
I would like to read a PNG image and have the data accessible to me as
a decoded bytearray. How would I go about doing this?  Any help is
appreciated.

-- 
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 project tree setup

2011-08-02 Thread Juan Pablo Gardella
You can open a Enhacement ticket.

2011/8/2 Abi alias@gmail.com

 Hi All,

 Any suggestion would appreciate for below, so we can correct
 initially.


 On Jul 29, 11:46 am, Abi alias@gmail.com wrote:
  We are re-writing our ERP system using Java/GWT/Spring.It is something
  big. We would like to get some suggestion regarding the tree setup.
 
  1. Application.gwt.xml
  ---
 
  We have above 70 modules today. But all of it's having only one entry
  point and is Application.gwt.xml.
 
  But becuase of the same :
 
  But each module seems we need to specify in main *.gwt.xml
 
  eg.
  source path='ecommerce/arn/client' /
  source path='ecommerce/arn/shared' /
  source path='ecommerce/bol/client' /
  source path='ecommerce/bol/shared' /
  source path='ecommerce/bkg/client' /
  source path='ecommerce/bkg/shared' /
 
  Instead of this, Is there any way to specify this source path using
  file globs ?
 
  for e.g:
 
  ie,source path='ecommerce/*/{shared,client}' /
 
  or ie,
 
  source path='ecommerce/*/shared' /
  source path='ecommerce/*/client' /
 
  2. This is regarding css file.
  
  Since each time if there is a change in the file, we seems need to
  compile and run using GWT.
  This is fine for a development server and via eclipse.
 
  But for a very simple change in production server, may be just a font
  issue,seems the entire tree need to compile. So we moved the resources
  filed outside the .war file.
 
  ie in a folder say
 
  project/resources/css/bol/bol.css
  project/resources/css/bol/arn.css
  project/resources/images/a.png
  project/resources/images/b.png
 
  and applied the styles directly in the GWT files. But this found there
  is no 'GWT-Cache' for images. Is there any fix around for this? Means
  images are loading now like a normal website, taking time. We tried
  GWT image pre-load as well, but not a good idea to re-load all the
  images at single shot as there are many.
 
  What is the best approach here else?
 
  Please suggest.

 --
 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 do I get PNG image data as a decoded bytearray?

2011-08-02 Thread mP
Use the Apache Sanlasan project if you cant load the PNG using java's
built in IOImage.

On Aug 3, 1:03 pm, Xavier xrobl...@gmail.com wrote:
 I would like to read a PNG image and have the data accessible to me as
 a decoded bytearray. How would I go about doing this?  Any help is
 appreciated.

-- 
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 Timer shop when minimize browser

2011-08-02 Thread mP
Why would it, a minimized browser is jsut a browser window thats
really small - nothing has disappeared, exited or been terminated.

On Aug 2, 1:48 pm, Tee lukc...@gmail.com wrote:
 How GWT Timer don't stop when minimize browser?

 - I use chrome 12
 Thank you very 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: EventBus in 2.4

2011-08-02 Thread Y2i
Just tried to migrate from 2.2 to 2.4 RC1.

First, the project didn't compile because of internal compiler errors.  All 
obsoleted RF-related stuff is removed (good), but there is no way to migrate 
to 2.4 as it was possible to 2.3 (for some people) if the project uses RF.
After migrating from gwt to web.bindery the internal compiler error 
disappeared (good).  
After fixing some incompatibilities the project now compiles and the 
application starts. (good)
But it fails to run in exactly the same spot as when moving from 2.2 to 2.3 
migration 
from gwt to web.bindery (bad).  And in 2.2 the application runs fine.

Here is the culprit:

interface P extends EntityProxy { ... }
interface PA extends P { ... }
interface PB extends P { ... }

interface R extends RequestContext {
  RequestLong queryCountOfP(P p);
}

When queryCountOfP() accepts an instance of PA, the callback is called fine.
When queryCountOfP() accepts an instance of PB, the failure occurs:

java.lang.IllegalArgumentException: Unknown proxy type PB

The server receives the call, the argument type of the service method is 
correct (B), but after returning to the client the following method throws 
an exception:
at 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.createProxy(AbstractRequestContext.java:489)

Why does the method fails on PB but not on PA?  Is there anything wrong with 
this usage pattern?

Thanks!

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



Re: How do I get PNG image data as a decoded bytearray?

2011-08-02 Thread BST

By read do you mean upload it from a location on the client side?

For that you need to use a GWT FormPanel and Apche commons ServletFileUpload 
to get the file item then do the usual java io process to convert to a byte 
array.

If this is not what you looking for , please elaborate on the question.

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



Do Beanvalidation(JSR-303) and editor framework play along well ?

2011-08-02 Thread Karthik Reddy
In other words does a call like SimpleBeanEditorDriver.getErrors()  give me 
a list of errors. I am trying this in 2.3 and I do not seem to be able to 
 retrieve the errors via SimpleBeanEditorDriver.getErrors() .


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/-6kbyKDXOp4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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] Template embedding in the GWT

2011-08-02 Thread Sanjay Jain
Hello All
I have template with its css and html.Now I want to get all the look
and features (compatibility) of that template in my gwt application.
I am not getting the right way to do that.
One way which I thought is that for control there will be a .html
file , which will be added to the gwt root panel using frame.I also
don't know it is right way or not.

Please help me out to embed all the look and feature of the template
to the gwt application.

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


[gwt-contrib] Re: Simplify the use of TckCompileTestCase by always using the module named (issue1467811)

2011-08-02 Thread rchandia

LGTM

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

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


[gwt-contrib] Re: Add Provided Field Null Validation (issue1486801)

2011-08-02 Thread rchandia


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

http://gwt-code-reviews.appspot.com/1486801/diff/1/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java#newcode1651
user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java:1651:
niceWriter.write(});
I have been thinking a little more on how to test this. I think what I
outlined for testing would not be appropriate for testing this change. I
outlined something to test that the generator runs through (or errors
out) and may be examine the generated output.

Instead, we want to test run-time behavior for which we already have
tests in place, I think. So disregard my previous post about testing
(and therefore anything to do with UiRenderer).

I think the simpler approach is to add a test to UiBinderTest. In the
test method it should be sufficient to assign null to one of the
provided UiFields and look for the NPE exception. Also add UibinderTest
to LazyWidgetBuilderSuite so the tests  are run again with lazy widgets
enabled.

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

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


[gwt-contrib] Making lazy widgets generation the default option. (issue1499809)

2011-08-02 Thread hermes

Reviewers: rjrjr,

Description:
Making lazy widgets generation the default option.

Review by: rj...@google.com

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

Affected files:
  M user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
  M user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java


Index: user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
===
--- user/src/com/google/gwt/uibinder/UiBinder.gwt.xml   (revision 10484)
+++ user/src/com/google/gwt/uibinder/UiBinder.gwt.xml   (working copy)
@@ -31,7 +31,7 @@
rendering mode and make some widgets lazily created. This is still  
experimental

but should be the default option in a soon future. --
   define-configuration-property name=UiBinder.useLazyWidgetBuilders  
is-multi-valued=false/
-  set-configuration-property name=UiBinder.useLazyWidgetBuilders  
value=false/
+  set-configuration-property name=UiBinder.useLazyWidgetBuilders  
value=true/


   generate-with class=com.google.gwt.uibinder.rebind.UiBinderGenerator
 when-type-assignable  
class=com.google.gwt.uibinder.client.UiRenderer/

Index: user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
(revision 10484)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	(working  
copy)

@@ -50,7 +50,7 @@

   private static final String XSS_SAFE_CONFIG_PROPERTY  
= UiBinder.useSafeHtmlTemplates;
   private static final String LAZY_WIDGET_BUILDERS_PROPERTY  
= UiBinder.useLazyWidgetBuilders;

-
+
   private static boolean gaveSafeHtmlWarning;

   /**
@@ -212,7 +212,7 @@
   }

   private Boolean useLazyWidgetBuilders(MortalLogger logger,  
PropertyOracle propertyOracle) {
-return extractConfigProperty(logger, propertyOracle,  
LAZY_WIDGET_BUILDERS_PROPERTY, false);
+return extractConfigProperty(logger, propertyOracle,  
LAZY_WIDGET_BUILDERS_PROPERTY, true);

   }

   private Boolean useSafeHtmlTemplates(MortalLogger logger, PropertyOracle  
propertyOracle) {



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


[gwt-contrib] Re: Include enclosing class in generated class name (issue1499804)

2011-08-02 Thread rchandia

LGTM

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

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


[gwt-contrib] Re: Remove the pre-GwtAstBuilder compile chain. (issue1465805)

2011-08-02 Thread zundel

LGTM

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

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


[gwt-contrib] Re: Making lazy widgets generation the default option. (issue1499809)

2011-08-02 Thread Ray Ryan
Lets warn gwt-announce that the default will change next Tuesday, and
encourage them to try it out themselves in the meantime. Are you okay
driving that, and with waiting another week?
On Aug 2, 2011 6:33 AM, her...@google.com wrote:
 Reviewers: rjrjr,

 Description:
 Making lazy widgets generation the default option.

 Review by: rj...@google.com

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

 Affected files:
 M user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
 M user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java


 Index: user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
 ===
 --- user/src/com/google/gwt/uibinder/UiBinder.gwt.xml (revision 10484)
 +++ user/src/com/google/gwt/uibinder/UiBinder.gwt.xml (working copy)
 @@ -31,7 +31,7 @@
 rendering mode and make some widgets lazily created. This is still
 experimental
 but should be the default option in a soon future. --
 define-configuration-property name=UiBinder.useLazyWidgetBuilders
 is-multi-valued=false/
 - set-configuration-property name=UiBinder.useLazyWidgetBuilders
 value=false/
 + set-configuration-property name=UiBinder.useLazyWidgetBuilders
 value=true/

 generate-with class=com.google.gwt.uibinder.rebind.UiBinderGenerator
 when-type-assignable
 class=com.google.gwt.uibinder.client.UiRenderer/
 Index: user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
 ===
 --- user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
 (revision 10484)
 +++ user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
(working
 copy)
 @@ -50,7 +50,7 @@

 private static final String XSS_SAFE_CONFIG_PROPERTY
 = UiBinder.useSafeHtmlTemplates;
 private static final String LAZY_WIDGET_BUILDERS_PROPERTY
 = UiBinder.useLazyWidgetBuilders;
 -
 +
 private static boolean gaveSafeHtmlWarning;

 /**
 @@ -212,7 +212,7 @@
 }

 private Boolean useLazyWidgetBuilders(MortalLogger logger,
 PropertyOracle propertyOracle) {
 - return extractConfigProperty(logger, propertyOracle,
 LAZY_WIDGET_BUILDERS_PROPERTY, false);
 + return extractConfigProperty(logger, propertyOracle,
 LAZY_WIDGET_BUILDERS_PROPERTY, true);
 }

 private Boolean useSafeHtmlTemplates(MortalLogger logger, PropertyOracle
 propertyOracle) {



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

[gwt-contrib] Re: Adding a spot for database column name in Column. Allows us to create an updated SQL statement w... (issue1503806)

2011-08-02 Thread jlabanca


http://gwt-code-reviews.appspot.com/1503806/diff/3/user/src/com/google/gwt/user/cellview/client/Column.java
File user/src/com/google/gwt/user/cellview/client/Column.java (right):

http://gwt-code-reviews.appspot.com/1503806/diff/3/user/src/com/google/gwt/user/cellview/client/Column.java#newcode108
user/src/com/google/gwt/user/cellview/client/Column.java:108: public
String getDataStoreName() {
Methods should be alphabetized

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

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


[gwt-contrib] Re: Replace RequestFactoryInterfaceValidator with an annotation-processor-based approach. (issue1503804)

2011-08-02 Thread rjrjr


http://gwt-code-reviews.appspot.com/1503804/diff/1/samples/dynatablerf/build.xml
File samples/dynatablerf/build.xml (right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/samples/dynatablerf/build.xml#newcode8
samples/dynatablerf/build.xml:8: !-- Run the annotation processor --
This is a sample, can you be a bit more verbose? Annotation processor is
an implementation detail.

So really people only need to include this jar if they want compile
time notification of RF errors. Which seems like a pretty big deal,
especially if the rf server will no longer do such validation by
default.

Should we do something to force people to include this jar, like remove
RF from gwt-user? I suppose that's a pretty drastic thing to do to
existing users, although frankly it's tempting. Will they see any kind
of warning if they don't include it ?

I'm actually tempted to be drastic.

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DeobfuscatorBuilder.java
File
user/src/com/google/web/bindery/requestfactory/apt/DeobfuscatorBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DeobfuscatorBuilder.java#newcode38
user/src/com/google/web/bindery/requestfactory/apt/DeobfuscatorBuilder.java:38:
* Visits a RequestFactory to create its associated DeobfuscatorBuilder
type.
Visits an RF to create itself? ...its associated {@link
Deobfuscator}... yes?

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DescriptorBuilder.java
File
user/src/com/google/web/bindery/requestfactory/apt/DescriptorBuilder.java
(right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DescriptorBuilder.java#newcode34
user/src/com/google/web/bindery/requestfactory/apt/DescriptorBuilder.java:34:
* Builds descriptors from TypeMirrors for both simple types and methods.
These descriptors are used by {@link ...}

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/ValidationTool.java
File
user/src/com/google/web/bindery/requestfactory/apt/ValidationTool.java
(right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/ValidationTool.java#newcode52
user/src/com/google/web/bindery/requestfactory/apt/ValidationTool.java:52:
* for use by the ServiceLayer.
Seems like this should either go into more detail on how to invoke /
configure the tool, or point to such docs.

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java
File
user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java
(right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java#newcode27
user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java:27:
* Provides access to payload deobfuscation services.
...for both servers and clients.

Is this the place to mention what GWT clients do instead?

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java#newcode37
user/src/com/google/web/bindery/requestfactory/vm/impl/Deobfuscator.java:37:
* processor as part of the build process.
@link, @see

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/vm/impl/OperationData.java
File
user/src/com/google/web/bindery/requestfactory/vm/impl/OperationData.java
(right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/src/com/google/web/bindery/requestfactory/vm/impl/OperationData.java#newcode52
user/src/com/google/web/bindery/requestfactory/vm/impl/OperationData.java:52:
public Builder setClientMethodDescriptor(String clientMethodDescriptor)
{
nit: usually on a builder these are with*() methods

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/test/com/google/web/bindery/requestfactory/apt/MyRequestFactory.java
File
user/test/com/google/web/bindery/requestfactory/apt/MyRequestFactory.java
(right):

http://gwt-code-reviews.appspot.com/1503804/diff/1/user/test/com/google/web/bindery/requestfactory/apt/MyRequestFactory.java#newcode27
user/test/com/google/web/bindery/requestfactory/apt/MyRequestFactory.java:27:
@Expect(method = contextMustBeAnnotated, args =
ReferencedContextWithoutMapping)
Love @Expect

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

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


[gwt-contrib] [google-web-toolkit] r10485 committed - Eliminates the code for the long deprecated urn:with feature....

2011-08-02 Thread codesite-noreply

Revision: 10485
Author:   rj...@google.com
Date: Mon Aug  1 13:27:49 2011
Log:  Eliminates the code for the long deprecated urn:with feature.

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

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

Deleted:
  
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParser.java
  
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java

Modified:
  
/trunk/user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java

 /trunk/user/src/com/google/gwt/uibinder/elementparsers/GridParser.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/FieldManager.java
  
/trunk/user/src/com/google/gwt/uibinder/rebind/FieldWriterOfGeneratedCssResource.java

 /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/XMLElement.java
 /trunk/user/src/com/google/gwt/uibinder/rebind/XMLElementProviderImpl.java
  
/trunk/user/src/com/google/gwt/uibinder/rebind/messages/PlaceholderInterpreter.java
  
/trunk/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
  
/trunk/user/test/com/google/gwt/uibinder/rebind/AbstractUiBinderWriterTest.java

 /trunk/user/test/com/google/gwt/uibinder/rebind/DesignTimeUtilsTest.java
  
/trunk/user/test/com/google/gwt/uibinder/rebind/UiBinderParserUiWithTest.java

 /trunk/user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/DomBasedUi.ui.xml
 /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
 /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
---  
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParser.java	 
Wed Nov 11 22:08:47 2009

+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright 2008 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the License); you may  
not
- * use this file except in compliance with the License. You may obtain a  
copy of

- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations  
under

- * the License.
- */
-package com.google.gwt.uibinder.attributeparsers;
-
-import com.google.gwt.core.ext.typeinfo.JClassType;
-
-/**
- * Interprets an attribute's contents as a method call on a resource class  
(one

- * tied to an xmnls prefix via a with:// url).
- * @deprecated soon to die, replaced by brace expressions
- */
-@Deprecated
-public class BundleAttributeParser implements AttributeParser {
-
-  private final JClassType bundleClass;
-  private String bundleInstance;
-  private boolean isBundleStatic;
-
-  public BundleAttributeParser(JClassType bundleClass, String  
bundleInstance,

-  boolean isBundleStatic) {
-this.bundleClass = bundleClass;
-this.bundleInstance = bundleInstance;
-this.isBundleStatic = isBundleStatic;
-  }
-
-  public JClassType bundleClass() {
-return bundleClass;
-  }
-
-  public String bundleInstance() {
-return bundleInstance;
-  }
-
-  public String fullBundleClassName() {
-return bundleClass.getPackage().getName() + . +  
bundleClass.getName();

-  }
-
-  public boolean isBundleStatic() {
-return isBundleStatic;
-  }
-
-  public String parse(String attribute) {
-StringBuilder b = new StringBuilder();
-String[] values = attribute.split( );
-boolean first = true;
-for (String value : values) {
-  if (first) {
-first = false;
-  } else {
-b.append( + \ \ + );
-  }
-  b.append(bundleInstance() + . + parenthesizeDots(value) + ());
-}
-return b.toString();
-  }
-
-  private String parenthesizeDots(String value) {
-return value.replaceAll(\\., ().);
-  }
-}
===
---  
/trunk/user/src/com/google/gwt/uibinder/attributeparsers/BundleAttributeParsers.java	 
Mon Jun  7 12:20:31 2010

+++ /dev/null
@@ -1,150 +0,0 @@
-/*
- * Copyright 2009 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the License); you may  
not
- * use this file except in compliance with the License. You may obtain a  
copy of

- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

- * WARRANTIES OR CONDITIONS OF ANY KIND, either 

[gwt-contrib] [google-web-toolkit] r10486 committed - Simplify the use of TckCompileTestCase by always using the module name...

2011-08-02 Thread codesite-noreply

Revision: 10486
Author:   gwt.mirror...@gmail.com
Date: Tue Aug  2 05:56:59 2011
Log:  Simplify the use of TckCompileTestCase by always using the module  
named

TckTest.gwt.xml.
Add asserts for generator compile time errors.

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

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

Deleted:
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/MustBeApplicableTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/OverriddenAttributesMustMatchInTypeTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/customconstraint/TckCompileTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/groups/GroupSequenceContainingDefaultTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/groups/GroupSequenceWithNoImplicitDefaultGroupTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/validatorresolution/UnexpectedTypeValidatorFactory.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/validation/TckCompileTest.gwt.xml

Modified:
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/ConstraintCompositionCompileTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintdefinition/ConstraintDefinitionsGwtTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/customconstraint/CustomConstraintValidatorCompileTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/groups/DefaultGroupRedefinitionCompileTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/groups/TckTest.gwt.xml
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/validatorresolution/ValidatorResolutionCompileTest.java
  
/trunk/user/test/org/hibernate/jsr303/tck/tests/validation/ValidateCompileTest.java

 /trunk/user/test/org/hibernate/jsr303/tck/util/TckCompileTestCase.java
 /trunk/user/test/org/hibernate/jsr303/tck/util/TckGeneratorTestUtils.java

===
---  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/MustBeApplicableTest.gwt.xml	 
Mon Feb 28 07:12:19 2011

+++ /dev/null
@@ -1,27 +0,0 @@
-?xml version=1.0 encoding=UTF-8?
-!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit  
2.0.1//EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.1/distro-source/core/src/gwt-module.dtd;

-!--
-  Copyright 2010 Google Inc.
-
-  Licensed under the Apache License, Version 2.0 (the License); you may  
not
-  use this file except in compliance with the License. You may obtain a  
copy of

-  the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an AS IS BASIS, WITHOUT
-  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-  License for the specific language governing permissions and limitations  
under

-  the License.
---
-module
-  inherits name=org.hibernate.jsr303.tck.tests.ValidationTck /
-  source path=
-include name=*.java /
-exclude name=*CompileTest.java /
-  /source
-  replace-with  
class=org.hibernate.jsr303.tck.tests.constraints.constraintcomposition.MustBeApplicableValidatorFactory

-when-type-is class=javax.validation.ValidatorFactory/
-  /replace-with
-/module
===
---  
/trunk/user/test/org/hibernate/jsr303/tck/tests/constraints/constraintcomposition/OverriddenAttributesMustMatchInTypeTest.gwt.xml	 
Tue Mar 15 04:56:41 2011

+++ /dev/null
@@ -1,27 +0,0 @@
-?xml version=1.0 encoding=UTF-8?
-!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit  
2.0.1//EN http://google-web-toolkit.googlecode.com/svn/tags/2.0.1/distro-source/core/src/gwt-module.dtd;

-!--
-  Copyright 2010 Google Inc.
-
-  Licensed under the Apache License, Version 2.0 (the License); you may  
not
-  use this file except in compliance with the License. You may obtain a  
copy of

-  the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing, software
-  distributed under the License is distributed on an AS IS BASIS, WITHOUT
-  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
-  License for the specific language governing permissions and limitations  
under

-  the License.
---
-module
-  inherits name=org.hibernate.jsr303.tck.tests.ValidationTck /
-  source path=
-include name=*.java /
-exclude name=*CompileTest.java /
-  /source
-  replace-with  
class=org.hibernate.jsr303.tck.tests.constraints.constraintcomposition.OverriddenAttributesMustMatchInTypeValidatorFactory

-when-type-is class=javax.validation.ValidatorFactory/
-  /replace-with
-/module
===
---  

[gwt-contrib] unit cache with binary annotations

2011-08-02 Thread Stephen Haberman
Hi,

I ran into an odd boundary case with the unit cache today that I
thought I'd report.

I had a class, Foo, using a binary-only annotation, @Bar. Somehow
my classpath was wrong, and so I got a (valid) compilation error
from ecj that Foo couldn't be compiled without Bar.

However, after fixing my classpath issue, the compilation error
didn't go away. After several minutes of ensuring the classpath was,
no really, really right now, I finally realized it's because binary
only annotations are not captured by the CompilationUnit's Dependencies
(being resolved against the valid classes found by the resource oracle,
which won't have binary-only annotations), so I was really seeing
cached compilation errors.

Adding a blank line to Foo kicked off a real compilation and then
all was well.

I don't have any insights on how to recognize this case, nor if
it's worth doing so, given it is likely/hopefully rare.

- Stephen

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


[gwt-contrib] [google-web-toolkit] r10487 committed - Adding a spot for database column name in Column. Allows us to create ...

2011-08-02 Thread codesite-noreply

Revision: 10487
Author:   porte...@google.com
Date: Tue Aug  2 07:46:31 2011
Log:  Adding a spot for database column name in Column. Allows us to  
create an updated SQL statement when the sort column changes, using only  
the Column itself.


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

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

Modified:
 /trunk/user/src/com/google/gwt/user/cellview/client/Column.java

===
--- /trunk/user/src/com/google/gwt/user/cellview/client/Column.java	Wed Jul  
27 04:19:13 2011
+++ /trunk/user/src/com/google/gwt/user/cellview/client/Column.java	Tue  
Aug  2 07:46:31 2011

@@ -50,6 +50,7 @@

   private boolean isDefaultSortAscending = true;
   private boolean isSortable = false;
+  private String dataStoreName = null;
   private HorizontalAlignmentConstant hAlign = null;
   private VerticalAlignmentConstant vAlign = null;

@@ -84,6 +85,13 @@
   public String getCellStyleNames(Context context, T object) {
 return cellStyleNames;
   }
+
+  /**
+   * @return the database name of the column, or null if it's never been  
set

+   */
+  public String getDataStoreName() {
+return dataStoreName;
+  }

   /**
* Returns the {@link FieldUpdater} used for updating values in the  
column.

@@ -100,7 +108,7 @@
   public HorizontalAlignmentConstant getHorizontalAlignment() {
 return hAlign;
   }
-
+
   /**
* Returns the column value from within the underlying data object.
*/
@@ -174,6 +182,15 @@
   public void setCellStyleNames(String styleNames) {
 this.cellStyleNames = styleNames;
   }
+
+  /**
+   * Sets a string that identifies this column in a data query.
+   *
+   * @param name name of the column from the data store's perspective
+   */
+  public void setDataStoreName(String name) {
+this.dataStoreName = name;
+  }

   /**
* Set whether or not the default sort order is ascending.

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


[gwt-contrib] Re: Adding a spot for database column name in Column. Allows us to create an updated SQL statement w... (issue1503806)

2011-08-02 Thread stephen . haberman


http://gwt-code-reviews.appspot.com/1503806/diff/2002/user/src/com/google/gwt/user/cellview/client/Column.java
File user/src/com/google/gwt/user/cellview/client/Column.java (right):

http://gwt-code-reviews.appspot.com/1503806/diff/2002/user/src/com/google/gwt/user/cellview/client/Column.java#newcode53
user/src/com/google/gwt/user/cellview/client/Column.java:53: private
String dataStoreName = null;
I'm late to the review here, but this seems like something you'd put in
a Column subclass that is specific to your app and then in your sort
handler cast to your subclass (off the top of my head).

Not a big deal, I suppose, but just my $0.02.

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

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


[gwt-contrib] Re: Adding a spot for database column name in Column. Allows us to create an updated SQL statement w... (issue1503806)

2011-08-02 Thread Jeff Larsen
I'm inclined to agree with Stephen here. No where else in GWT widgetry is 
there a reference to database related things. I don't think this is a big 
deal either, but it seems like a more application specific thing rather than 
something that belongs inside GWT proper. 

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

Re: [gwt-contrib] unit cache with binary annotations

2011-08-02 Thread Eric Ayers
I see how that could happen.  We don't take annotations into account
in the computing of dependencies in

BytecodeSignatureMaker.CompileDependencyVisitor.

Filed issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6646

-Eric.

On Tue, Aug 2, 2011 at 2:57 PM, Stephen Haberman
stephen.haber...@gmail.com wrote:
 Hi,

 I ran into an odd boundary case with the unit cache today that I
 thought I'd report.

 I had a class, Foo, using a binary-only annotation, @Bar. Somehow
 my classpath was wrong, and so I got a (valid) compilation error
 from ecj that Foo couldn't be compiled without Bar.

 However, after fixing my classpath issue, the compilation error
 didn't go away. After several minutes of ensuring the classpath was,
 no really, really right now, I finally realized it's because binary
 only annotations are not captured by the CompilationUnit's Dependencies
 (being resolved against the valid classes found by the resource oracle,
 which won't have binary-only annotations), so I was really seeing
 cached compilation errors.

 Adding a blank line to Foo kicked off a real compilation and then
 all was well.

 I don't have any insights on how to recognize this case, nor if
 it's worth doing so, given it is likely/hopefully rare.

 - Stephen

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




-- 
Eric Ayers | Software Engineer | zun...@google.com | +1 404 487 9229

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


Re: [gwt-contrib] Re: Adding a spot for database column name in Column. Allows us to create an updated SQL statement w... (issue1503806)

2011-08-02 Thread Ray Ryan
I was biting my tongue on this one, but I guess I'll jump in and agree, this
smells bad.

@jlabanca, is there no hook in Column or maybe Cell.Context where this kind
of app-specific data can be added?

On Tue, Aug 2, 2011 at 12:32 PM, Jeff Larsen larse...@gmail.com wrote:

 I'm inclined to agree with Stephen here. No where else in GWT widgetry is
 there a reference to database related things. I don't think this is a big
 deal either, but it seems like a more application specific thing rather than
 something that belongs inside GWT proper.

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


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

Re: [gwt-contrib] Re: Adding a spot for database column name in Column. Allows us to create an updated SQL statement w... (issue1503806)

2011-08-02 Thread Ray Ryan
It's John L's call, but that's certainly my preference.

On Tue, Aug 2, 2011 at 1:10 PM, John Porter Simons porte...@google.comwrote:

 The other way we (me and dramos@) discussed doing this was, in our
 CellTable subclass, have a map from Column to String to store these database
 column names. I can update to that and revert this if you like.


 On Tue, Aug 2, 2011 at 1:01 PM, Ray Ryan rj...@google.com wrote:

 I was biting my tongue on this one, but I guess I'll jump in and agree,
 this smells bad.

 @jlabanca, is there no hook in Column or maybe Cell.Context where this
 kind of app-specific data can be added?

 On Tue, Aug 2, 2011 at 12:32 PM, Jeff Larsen larse...@gmail.com wrote:

  I'm inclined to agree with Stephen here. No where else in GWT widgetry
 is there a reference to database related things. I don't think this is a big
 deal either, but it seems like a more application specific thing rather than
 something that belongs inside GWT proper.

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





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

[gwt-contrib] Re: Adding a spot for database column name in Column. Allows us to create an updated SQL statement w... (issue1503806)

2011-08-02 Thread jlabanca

This came up before, and here is the rationale.

If you add an app specific data object to Column, you have to add
another parameterized type to Column.  That's more verbose, somewhat
confusing, and it will be Void for most users anyway.  I'm a big fan of
parameterized types because they make the API feels more bulletproof,
but I also think parameterized types can be cumbersome if they aren't
intended to support the most common use cases.

Subclassing Column is good option if you need a lot of app specific
data.  Yes you have to cast it, but who cares if you're in control of
which columns go into your table.  In the original design, we envisioned
people subclassing Column for app specific data.

So, now we're special casing the data store field as a string. But MANY
databases use String names to describe columns, and its just so
convenient to have that field accessible from the Column itself. I've
seen more than a few requests for this feature.  If you are using an SQL
database, this will probably come in handy.  If you don't need it, don't
use it, and the compiler should compile it out.

On 2011/08/02 20:13:12, rjrjr wrote:

It's John L's call, but that's certainly my preference.



On Tue, Aug 2, 2011 at 1:10 PM, John Porter Simons

porte...@google.comwrote:


 The other way we (me and dramos@) discussed doing this was, in our
 CellTable subclass, have a map from Column to String to store these

database

 column names. I can update to that and revert this if you like.


 On Tue, Aug 2, 2011 at 1:01 PM, Ray Ryan mailto:rj...@google.com

wrote:


 I was biting my tongue on this one, but I guess I'll jump in and

agree,

 this smells bad.

 @jlabanca, is there no hook in Column or maybe Cell.Context where

this

 kind of app-specific data can be added?

 On Tue, Aug 2, 2011 at 12:32 PM, Jeff Larsen

mailto:larse...@gmail.com wrote:


  I'm inclined to agree with Stephen here. No where else in GWT

widgetry

 is there a reference to database related things. I don't think

this is a big

 deal either, but it seems like a more application specific thing

rather than

 something that belongs inside GWT proper.

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








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

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


[gwt-contrib] Remove unneeded loop over cached units (issue1503807)

2011-08-02 Thread stephen . haberman

Reviewers: zundel,



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

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


Index: dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
diff --git  
a/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java  
b/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
index  
2aa4957d18420c0313e985a4b8a509ad13573a73..d414a9c559e9e59d24bf154918ca141d1a2e9916  
100644

--- a/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
+++ b/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
@@ -192,15 +192,6 @@ public class CompilationStateBuilder {
 CollectionCompilationUnitBuilder builders,
 MapCompilationUnitBuilder, CompilationUnit cachedUnits,  
EventType eventType,

 boolean suppressErrors) {
-  // Initialize the set of valid classes to the initially cached units.
-  for (CompilationUnit unit : cachedUnits.values()) {
-for (CompiledClass cc : unit.getCompiledClasses()) {
-  // Map by source name.
-  String sourceName = cc.getSourceName();
-  allValidClasses.put(sourceName, cc);
-}
-  }
-
   ArrayListCompilationUnit resultUnits = new  
ArrayListCompilationUnit();

   do {
 // Compile anything that needs to be compiled.


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


[gwt-contrib] Fix: http://code.google.com/p/google-web-toolkit/issues/detail?id=6367 (issue1508802)

2011-08-02 Thread meder

Reviewers: tobyr, jat,

Description:
Fix: http://code.google.com/p/google-web-toolkit/issues/detail?id=6367

Create shared utils package and include it in gwt-dev and gwt-servlet


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

Affected files:
  M dev/core/src/com/google/gwt/dev/ExternalPermutationWorkerFactory.java
  M dev/core/src/com/google/gwt/dev/util/Util.java
  M dev/core/src/com/google/gwt/util/tools/Utility.java
  A dev/core/src/com/google/gwt/util/tools/shared/Md5Utils.java
  A dev/core/src/com/google/gwt/util/tools/shared/StringUtils.java
  A dev/core/src/com/google/gwt/util/tools/shared/package-info.java
  M servlet/build.xml
  M user/src/com/google/gwt/i18n/rebind/keygen/MD5KeyGenerator.java
  M user/src/com/google/gwt/i18n/server/keygen/MD5KeyGenerator.java
  M user/src/com/google/gwt/user/server/rpc/XsrfProtectedServiceServlet.java
  M user/src/com/google/gwt/user/server/rpc/XsrfTokenServiceServlet.java


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


[gwt-contrib] Re: Fix: http://code.google.com/p/google-web-toolkit/issues/detail?id=6367 (issue1508802)

2011-08-02 Thread tobyr

On 2011/08/03 00:22:49, meder wrote:

LGTM

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

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


[gwt-contrib] [google-web-toolkit] r10488 committed - Created wiki page through web user interface.

2011-08-02 Thread codesite-noreply

Revision: 10488
Author:   b...@google.com
Date: Tue Aug  2 17:49:09 2011
Log:  Created wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=10488

Added:
 /wiki/RequestFactoryInterfaceValidation.wiki

===
--- /dev/null
+++ /wiki/RequestFactoryInterfaceValidation.wikiTue Aug  2 17:49:09 2011
@@ -0,0 +1,25 @@
+#summary Provides late validation of RequestFactory interfaces
+
+RequestFactory interfaces must be validated before they can be used by the  
RequestFactory server code or JVM-based clients.  This document explains  
the mechanisms for validating those interfaces.

+
+wiki:toc /
+
+= Overview =
+
+The RequestFactory annotation processor will validate the RequestFactory  
interface declarations and ensure that the mapping of proxy properties and  
context methods to their domain types is valid.  The manner in which the  
errors are reported depends on the method by which the annotation processor  
is invoked.

+
+In addition to validating the interfaces, the annotation processor also  
generates addition Java types which embed pre-computed metadata that is  
required by the RequestFactory server components.  Users of  
`RequestFactorySource` must also run the annotation processor in order to  
provide the client code with obfuscated type token mappings.  In the  
client-only case, the server domain types are not required.

+
+It is necessary for both the shared RequestFactory interfaces and their  
server domain counterparts to be available on the classpath.  In order to  
accomodate different build processes, the va

+
+= Annotation Processor =
+
+== javac builds==
+
+Users using javac 1.6 or later to compile their server projects need only  
to include the `requestfactory-client.jar` on the build classpath.  The  
compiler will automatically load the annotation processor from the JAR file.

+
+== IDE configuration ==
+
+* TODO * add screenshots for how to configure Eclipse.
+
+= !ValidationTool =

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


[gwt-contrib] [google-web-toolkit] r10489 committed - Fix: http://code.google.com/p/google-web-toolkit/issues/detail?id=6367...

2011-08-02 Thread codesite-noreply

Revision: 10489
Author:   gwt.mirror...@gmail.com
Date: Tue Aug  2 20:51:04 2011
Log:  Fix:  
http://code.google.com/p/google-web-toolkit/issues/detail?id=6367


Create shared utils package and include it in gwt-dev and gwt-servlet

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

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

Added:
 /trunk/dev/core/src/com/google/gwt/util/tools/shared
 /trunk/dev/core/src/com/google/gwt/util/tools/shared/Md5Utils.java
 /trunk/dev/core/src/com/google/gwt/util/tools/shared/StringUtils.java
 /trunk/dev/core/src/com/google/gwt/util/tools/shared/package-info.java
Modified:
  
/trunk/dev/core/src/com/google/gwt/dev/ExternalPermutationWorkerFactory.java

 /trunk/dev/core/src/com/google/gwt/dev/util/Util.java
 /trunk/dev/core/src/com/google/gwt/util/tools/Utility.java
 /trunk/servlet/build.xml
 /trunk/user/src/com/google/gwt/i18n/rebind/keygen/MD5KeyGenerator.java
 /trunk/user/src/com/google/gwt/i18n/server/keygen/MD5KeyGenerator.java
  
/trunk/user/src/com/google/gwt/user/server/rpc/XsrfProtectedServiceServlet.java

 /trunk/user/src/com/google/gwt/user/server/rpc/XsrfTokenServiceServlet.java

===
--- /dev/null
+++ /trunk/dev/core/src/com/google/gwt/util/tools/shared/Md5Utils.java	Tue  
Aug  2 20:51:04 2011

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2011 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.util.tools.shared;
+
+import java.security.MessageDigest;
+import java.security.NoSuchAlgorithmException;
+
+/**
+ * Utility class to generate MD5 hashes using per-thread MD5
+ * {@link MessageDigest} instance.
+ */
+public class Md5Utils {
+
+  /**
+   * Per thread MD5 instance.
+   */
+  private static final ThreadLocalMessageDigest perThreadMd5  =
+new ThreadLocalMessageDigest() {
+  @Override
+  protected MessageDigest initialValue() {
+try {
+  return MessageDigest.getInstance(MD5);
+} catch (NoSuchAlgorithmException e) {
+  throw new RuntimeException(MD5 implementation not found, e);
+}
+  };
+  };
+
+  /**
+   * Generate MD5 digest.
+   *
+   * @param input input data to be hashed.
+   * @return MD5 digest.
+   */
+  public static byte[] getMd5Digest(byte[] input) {
+MessageDigest md5 = perThreadMd5.get();
+md5.reset();
+md5.update(input);
+return md5.digest();
+  }
+}
===
--- /dev/null
+++ /trunk/dev/core/src/com/google/gwt/util/tools/shared/StringUtils.java	 
Tue Aug  2 20:51:04 2011

@@ -0,0 +1,54 @@
+/*
+ * Copyright 2006 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.util.tools.shared;
+
+/**
+ * String utility methods.
+ */
+public class StringUtils {
+
+  public static char[] HEX_CHARS = new char[] {
+'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D',
+'E', 'F'};
+
+  /**
+   * A 4-digit hex result.
+   */
+  public static void hex4(char c, StringBuffer sb) {
+sb.append(HEX_CHARS[(c  0xF000)  12]);
+sb.append(HEX_CHARS[(c  0x0F00)  8]);
+sb.append(HEX_CHARS[(c  0x00F0)  4]);
+sb.append(HEX_CHARS[c  0x000F]);
+  }
+
+  /**
+   * Returns a string representation of the byte array as a series of
+   * hexadecimal characters.
+   *
+   * @param bytes byte array to convert
+   * @return a string representation of the byte array as a series of
+   * hexadecimal characters
+   */
+  public static String toHexString(byte[] bytes) {
+char[] hexString = new char[2 * bytes.length];
+int j = 0;
+for (int i = 0; i  bytes.length; i++) {
+  hexString[j++] = HEX_CHARS[(bytes[i]  0xF0)  4];
+  hexString[j++] = HEX_CHARS[bytes[i]  0x0F];
+}
+return new String(hexString);
+  }
+}
===
--- /dev/null
+++ /trunk/dev/core/src/com/google/gwt/util/tools/shared/package-info.java	 
Tue Aug  2 20:51:04