Re: GWT RPC NOT working with Tomcat

2011-08-15 Thread Henkie
Thanks for the help!

The problem was in JavaScript and nothing todo with GWT RPC!
It was in JavaScript developed by myself – I found this by way of
elimination.

I could not find an easy way to debug JavaScript even with firebug and
JConsole.


On Aug 12, 9:15 am, Henkie iits.hen...@gmail.com wrote:
 Hi Juan
 No,Tomcatstandalone.
 I'm trying to deploy my app for production.
 I have an ant build script to build the war file.

-- 
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 2.4: RequestFactory versus GWT-RPC

2011-08-15 Thread Michel Jonker
+1

On Jul 18, 9:25 am, Elhanan Maayan elh.mailg...@gmail.com wrote:
 i think google should clarify it's own philosophy in a special article in
 the developer guide, because as of right now , there way too many black
 holes on the subject of transports and frameworks that use them

 GWT-RPC
 JSON
 RequestFactory
 AutoBeans
 XML.

 i know that autobeans and rtf both uses json under, but that would only
 clarify the situation.

 an FAQ and a  table matrix should  be created specifying  how each
 technology is based used AND it's future directions (like for example the
 use GWT-RPC in android, possible break in future version of java etc... ,
 and other platforms compared to other technologies) also some basic
 benchmarks would be usedfull.

 On Mon, Jul 18, 2011 at 10:08 AM, Michel Jonker
 michel.jon...@e-office.comwrote:







  Hi,

  Thanks for this encouragement.
  I am a newby at GWT/App Engine and want to start creating applications
  that follow Google's philiosofy.
  Later (when I am more comfortable) I probably can add my own patterns
  and stuff.

  The main lesson I learned from this discussion is that GWT-RPC comes
  with serialization 'challenges'. Which is not such a problem when you
  work with web applications but is a much bigger issue when you have
  distributed apps (like Android connected to App Engine).

  Thanks for all the replies

  Michel

  On 14 jul, 22:24, Aidan O'Kelly aida...@gmail.com wrote:
   I'm using RequestFactory for a 'non-data-orientated' app and its works
   very nicely.

   Chained method invocation:

   MyServiceRC serviceRequest = appRequestFactory.MyServiceRC();
   serviceRequest.giveMeAString().to(stringReceiver);
   if (needPojo == true)
       serviceRequest.giveMeAPojo().to(pojoReceiver); // Pojo would be a
   ValueProxy for example.

   // Now fire both methods in one RPC request, and do whatever
   processing we want once both completed.
   serviceRequest.fire(processStringAndPojoReceiver);

   A pretty nice way to call server side methods. You are certainly not
   restricted just to persisting and retrieving datastore objects with
   RequestFactory.

   On Thu, Jul 14, 2011 at 10:36 AM, Michel Jonker

   michel.jon...@e-office.com wrote:
Hi,
This is a cross post from the AppEngine group, but since I got no
response there, I want to try this group.

I am trying to figure out the best practise to consume my App Engine
services from both Android and GWT.
Since the services are not that data oriented, I first considered GWT-
RPC.
But given the fact that the GPE 2.4 sample project voor Android comes
with
RequestFactory, I am leaning towards this approach.
I was hoping someone could validate this 'best practise' :
When you have both Android and GWT consumers of your App Engine
service,
apply the RequestFactory pattern.

TIA

Michel Jonker

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

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

-- 
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 Remote Logging - Logger Name replaced by logOnServer

2011-08-15 Thread Wooi
I mean I expect something like this,
net.xxx.client.Abc Test
WARNING: blablabla

and I forgot to mention that this happen when I try to log from client
side.
While I try to log from server side, it work fine.
net.xxx.server.AbcDao Test
WARNING: blablabla

Anyone can help?

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: How to set the selection color of a CellList widget?

2011-08-15 Thread Michael Allan
Hi Rod,

I found I had to disable keyboard selection.
http://zelea.com/project/votorola/a/count/resource/SacSelectionV.java

   sacListV.setKeyboardSelectionPolicy(
 HasKeyboardSelectionPolicy.KeyboardSelectionPolicy.
  // BOUND_TO_SELECTION );
   causes odd coloured (yellow) background to appear on first click
 DISABLED );

Otherwise I had no problem with yellow.  My selections are blue.
Click on the ugly, maroon coloured button at top left.  See the popup:
http://zelea.com/y/vw/xf/#c=DVs=G!p!sandbox

-- 
Michael Allan

Toronto, +1 416-699-9528
http://zelea.com/


Rod Trendy wrote:
 Hello everyone,
 
 I can't help it anymore. I am really stuck on the CellList. Creating
 and working with a CellList is quite simple, but I can't change the
 style of the CellList.
 
 I search the internet via Google but I couldn't find any results that
 'really' helped me out. I just want to be able to change the
 background color of a selected cell, but whatever I try the color
 won't change from yellow to blue. All I've got so far is changing the
 whole background of the celllist into blue (including the cells which
 are not selected) but that's getting me nowhere.
 
 Please, can anyone help me out? I really would like to have a step by
 step guide for this problem. I am exhausted :(
 
 Regards, Rod

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



Re: How to set the selection color of a CellList widget?

2011-08-15 Thread Michael Allan
PS - I should have mentioned that we're not inheriting any theme
module: http://zelea.com/project/votorola/a/xf/Entry.gwt.xml

Rod Trendy wrote:
 I can't help it anymore. I am really stuck on the CellList. Creating
 and working with a CellList is quite simple, but I can't change the
 style of the CellList.
 
 ...

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



GWT 2.4: DataGrid with custom CellTableBuilder

2011-08-15 Thread Tolwi
Loking at http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid - 
CellTableBuilder is greate feature, but can anyone suggest me how to make 
friend fields aditable?? 
There is no problem to render child row the same way as parent row: 
just utility.renderCell(td, utility.createContext(2), dataGrid.getColumn(2), 
rowValue);
insted of
  if (isFriend) {
td.text(rowValue.getFirstName());
  } else {
utility.renderCell(td, utility.createContext(2), 
dataGrid.getColumn(2), rowValue);
  }
But in this case I have a problem with field updater - update(..) is always 
called with parent object as agrument.

So how to determine the actual row object??

-- 
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/-/ylCVMUW16tIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 HTTP does not support chunked Transfer-Encoding ?

2011-08-15 Thread OrNOt
Hello,
 The question seems asked before but  never have a clear answer.
Anybody has
ideas?

If support, how to decode it ?


Thanks in advance.
OrNot

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



should ActivityMapper always return default activity

2011-08-15 Thread Abdullah Shaikh
Hi All,

I have 5 activitymappers for all the directions of DockLayoutPanel,
and they all return appropriate Activities for DefaultPlace.

My query is, I have a menu (hyperlinks) on the West side, whenever
user clicks on the hyperlink, a place is activitated, for example,
SetContentOnCenterPlace, not this SetContentOnCenterPlace is handled
by the CenterActivityMapper, but what about the other ActivityMapper's
, they dont handle this place and return null and becoz of this all
the other panels (except center) turns blank.

So do I need to handle SetContentOnCenterPlace in all the
ActivityMappers ? or will it be good, if the ActivityMapper doest
match a Place then it should always return a default Activity ?


Thanks

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



Re: Updating a celllist from a JSONP call

2011-08-15 Thread Paul Browne
Intestingly, If I add a Timer that delays for 1ms before calling
cellList.setRowData(result) it all works

I will live with this, dont like it but it seems to work




On Aug 12, 1:41 pm, Paul Browne paul...@hotmail.com wrote:
 Hi,

 I have have a celllist in a UIBinder,  when I use JSON to get some
 data from a remote server it does not seem to update the celllist with
 the data that I have set in cellList.setRowData until I start moving
 the mouse for a bit (sometimes not at all if i dont move the mouse for
 about 20 seconds), This problem does not seems to happen if I get the
 data any other way i.e. load it from code rather that remote server.

 I have tried to cut the code down as small as possiable, (statusText
 is a label on screen).
 I can see that statusText stays Set Data so I know the results have
 been returned back, but the screen does not update.

 -
 initWidget(uiBinder.createAndBindUi(this));

 statusText.setText(Getting results);

 TaskFactory taskFactory = new TaskFactory();
 taskFactory.GetTasks(new AsyncCallbackArrayListTaskModel() {

         @Override
         public void onFailure(Throwable caught) {}

         @Override
         public void onSuccess(ArrayListTaskModel result) {
                 cellList.setRowData(result);
                 statusText.setText(Set Data);

 }});

 

 Taskfactory in the code is based on the JSONP code that is the main
 GWT page, I can put the debugger on the line and see that the array
 returned contains all the data I expect

 Any ideas?

 Cheers

 Paul

-- 
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: should ActivityMapper always return default activity

2011-08-15 Thread Jens
In general you have to handle SetContentOnCenterPlace in all ActivityMappers 
and in case of the west activity mapper return a new menu activity again (or 
a cached one). I do not know your places but maybe a FilteredActivityMapper 
can also help (it can be used to map one place to another so that your 
ActivityMapper returns a different activity).

But I found it easier to not use Activities/Mappers for areas that are 
static and always visible, such as menus. I would put the menu 
directly  (g:HyperLink targetHistoryToken=/g:HyperLink) into 
the west area of the DockLayoutPanel and let the AppPresenter or whatever 
you use to manage the outer app listen for PlaceChangeEvents so you are able 
to highlight the corresponding menu item for a given place.

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



JUnit test and deferred binding.

2011-08-15 Thread Adolfo Panizo Touzon
Hi,

One question. How can I get the GeneratorContext when I´m using deferred
binding for make a JUnit test ??

something like:



*testXXXGenerator (GeneratorContext context){*

*.*

*}*


Any example?

Thanks for your time.
-- 
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.



display file icon in GWT grid

2011-08-15 Thread nurit guthrie
Hi,

In my application I need to display icons of files next to the file
name. I want to dynamically decide upon the icon, based on the file
extension (I do not have a fixed set of icons stored).

In java, there is a way to get file's icon using
JFileChooser.getIcon(). However, the image I display in the Grid is
AbstractImagePrototype (which is created using ImageResource).
Is there a way to convert javax.swing.Icon to
AbstractImagePrototype?

Is there any other way to display file-icons according to the file
extension in GWT? (I use a Gxt grid).

Thanks,
Nurit

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



Activities and Places and Layouts (again)

2011-08-15 Thread Mike Dee
Getting started with Activities and Places.  I'd like to use a
DockLayoutPanel to comprise the entire view (page).  When I try, it
doesn't work.

Note I'm using HelloMVP is a starting point and that in the EntryPoint
a SimplePanel is set up as the default Panel.  I've tried adding a
DockLayoutPanel to that.  I also tried first adding a VerticalPanel
and then a DockLayoutPanel based on some suggestions here.

The DockLayoutPanel simply doesn't display.  This was also mentioned
in this message from last Oct: http://tinyurl.com/3z8mn4v.  The
resolution there was to adjust the positioning styles to be absolute.
However, they appear to already be absolute.

I've played around with setting the width and height of the parent
(SimplePanel) panel to 100%.  I've changed RootPanel to
RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
this would be something that is commonly done OR am I heading down the
wrong path?

Any ideas?
Mike

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



GWT 2.3 XSRF Invalid RPC token (Session cookie is not set or empty! Unable to generate XSRF cookie)

2011-08-15 Thread Алексей Заряев
I try to implement XSRF on gwt project, but get error:

[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.google.gwt.user.client.rpc.XsrfToken
com.google.gwt.user.client.rpc.XsrfTokenService.getNewXsrfToken()'
threw an unexpected exception:
com.google.gwt.user.client.rpc.RpcTokenException: Invalid RPC token
(Session cookie is not set or empty! Unable to generate XSRF cookie)
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
385)

[ERROR] 500 - POST /gorod/xsrf (127.0.0.1) 57 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/
20100101 Firefox/4.0.1
  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8
  Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3
  Accept-Encoding: gzip, deflate
  Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7
  Keep-Alive: 115
  Connection: keep-alive
  Cache-Control: no-cache
  Referer: http://127.0.0.1:/Gorod.html?gwt.codesvr=127.0.0.1:9997
  X-GWT-Permutation: HostedMode
  X-GWT-Module-Base: http://127.0.0.1:/gorod/
  Content-Type: text/x-gwt-rpc; charset=utf-8
  Content-Length: 142
  Pragma: no-cache
   Response headers
  Content-Type: text/plain

I have gwt-dev.jar on my WEB-INF/lib and classpath.

-- 
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: DataGrid on a hidden tab

2011-08-15 Thread J.Ganesan
Is this not the expected behaviour of TabLayouPanel, the content of a
hidden tab should not be rendered ?

J.Ganesan
www.DataStoreGwt.com

On Aug 15, 3:32 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 Hi,

 I am using a DataGrid on a TabLayouPanel. As long as the the DataGrid
 is on the viewable tab it gets rendered. As soon as it is on the
 hidden tab it does not.

 What am I doing wrong?

 brgds,

 Papick

-- 
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: Singleton instance in RPC AsynCall with two or more RPCs

2011-08-15 Thread J.Ganesan
I have encountered this problem  quite a few times. I would create
another class GreetingLoginServiceAsync, if possible extending
GreetingServiceAsync and creating a static method
getInstanceOfGreetingLoginServiceAsync().

J.Ganesan
www.DataStoreGwt.com

On Aug 13, 12:14 am, Miguel Ruiz Rodriguez myguelr...@gmail.com
wrote:
 Hi everybody,

 I´m using a solution that use a Singleton pattern to create and
 AsynCall class with the followin code.

 public interface GreetingServiceAsync
 {

     /**
      * Utility class to get the RPC Async interface from client-side
 code
      */
     public static final class Util
     {
         private static GreetingServiceAsync instance;

         public static final GreetingServiceAsync getInstance()
         {
             if ( instance == null )
             {
                 instance = (GreetingServiceAsync)
 GWT.create( GreetingService.class );
                 ServiceDefTarget target = (ServiceDefTarget) instance;
                 target.setServiceEntryPoint( GWT.getModuleBaseURL() +
 greet );
             }
             return instance;
         }

         private Util()
         {
             // Utility class should not be instanciated
         }
     }

     public void greetSongMostPopular(Integer size,
 AsyncCallbackArrayListString asyncCallback);

 }

 So I had to add a new atribute with another Service
 (GreetingLoginServiceAsync), so what could I do? Must I set an input
 to getInstanceMethod with the name of the rpc service that I want
 create? Are there any best alternative to do this?

 Thanks in advance.

-- 
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: DataGrid on a hidden tab

2011-08-15 Thread P.G.Taboada
Well, not really, as I am not using lazy panels.

But that is not the point: the should get rendered once the tab gets
selected. To work around it, I did add the grid to a split panel in
the tab. Now I have to move the slider to make the grid appear. Ok, it
is not a workaround. ;)

Btw, split panels don't do whell on an iPad... ;)

On Aug 15, 12:26 pm, J.Ganesan j.gane...@datastoregwt.com wrote:
 Is this not the expected behaviour of TabLayouPanel, the content of a
 hidden tab should not be rendered ?

 J.Ganesanwww.DataStoreGwt.com

 On Aug 15, 3:32 am, P.G.Taboada pgtabo...@googlemail.com wrote:







  Hi,

  I am using a DataGrid on a TabLayouPanel. As long as the the DataGrid
  is on the viewable tab it gets rendered. As soon as it is on the
  hidden tab it does not.

  What am I doing wrong?

  brgds,

  Papick

-- 
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: Drop files onto Web Page

2011-08-15 Thread J.Ganesan
Try
http://code.google.com/p/gwt-fileapi/
http://code.google.com/p/lib-gwt-file/

J.Ganesan
www.DataStoreGwt.com


On Aug 12, 9:11 pm, Sean slough...@gmail.com wrote:
 I've seen a few topics on this, but most are a few years old at this point.
 I was wondering if there are any ways to drop a file onto the webpage from a
 folder (Windows in this case) and have it upload or prepare to upload much
 like how GMail does it. I've seen a few ways to fake it, I was wondering
 if in the past couple of years if it became easier?

-- 
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: file upload once again

2011-08-15 Thread J.Ganesan
Try
http://code.google.com/p/gwt-fileapi/
http://code.google.com/p/lib-gwt-file/

There is a way to drag and drop the files for uploading.

J.Ganesan
www.DataStoreGwt.com

On Aug 12, 6:13 pm, Nick Siderakis nix...@gmail.com wrote:
 take a look at the code inhttp://code.google.com/p/upload4gwt/, its not a
 polished library (yet), but its still usable.  also the links might provide
 some useful resources.

 hope it helps :D

-- 
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: Alternative to DTO's

2011-08-15 Thread J.Ganesan
Give DataStoreGwt a try. It does exactly what you require. It helps
you to persist client-side objects to Google App Engine directly and
retrieve them. No mediator like JDO or RequestFactory is required.

J.Ganesan
www.DataStoreGwt.com


On Aug 12, 1:57 am, J D narusakur...@gmail.com wrote:
 Hi,

 I was wondering if there is an alternative to using DTO's to send
 persistent objects from server to client and vice versa that is
 compatible with Google App Engine. The objects are persisted through
 JDO. I would appreciate it if you could provide some suggestions.
 Thank you.

 J D

-- 
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: Drop files onto Web Page

2011-08-15 Thread Sean
Thank you for the suggestions!

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



Best/Correct way to attach events to an element

2011-08-15 Thread DaveC
Hi,

I've got some generated HTML that I'm trying to hook into using GWT to
listen to events. At the moment I've this:

public class LightWeightUiObject extends UIObject {

public LightWeightUiObject(Element element) {

setElement(element);

sinkEvents(Event.ONTOUCHSTART);
sinkEvents(Event.ONTOUCHMOVE);
sinkEvents(Event.ONTOUCHEND);
}

}

Is this the best/correct way of doing this?
(What I'm trying to do is avoid using Widgets as this dramtically
increases the size of my compiled app)

Cheers,
Dave

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



Access ServerFailure exception in RequestTransport ?

2011-08-15 Thread Mihail Lesikov
Hi,
In my aplicaiton I have loading bar that is managed with events via the 
event bus.
I'm using requestFactory framework.
When a request is sent, the loading bar should become visible, and when the 
response is received it should be hidden or if there is any system error it 
should be visualized as a specified message.
I have custom implementation of the RequestTransport :

public class AppRequestTransport extends DefaultRequestTransport {
...
// counts exactly how much requests are sent,
// if the response is received after the other request has been sent,
// the loading bar should not be hide
private int requestCounter = 0;
...

@Override
public void send(String payload, RequestTransport.TransportReceiver 
receiver) {
eventBus.fireEvent(new ShowLoadingBar(true));
requestCounter++;
}

...

@Override
protected RequestCallback createRequestCallback(final TransportReceiver 
receiver) {
return new RequestCallback() {

public void onError(Request request, Throwable exception) {

eventBus.fireEvent(new ShowLoadingBar(true, System Error));

receiver.onTransportFailure(new ServerFailure(exception.getMessage()));

requestCounter = 0;

}

public void onResponseReceived(Request request, Response response) {
try {
if (Response.SC_UNAUTHORIZED == response.getStatusCode()) {

String message = UNAUTORIZED USER +   + response.getStatusCode();

eventBus.fireEvent(new ShowLoginDialogEvent());

receiver.onTransportFailure(new ServerFailure(message, null, null, false));

requestCounter = 0;

} else if (Response.SC_OK == response.getStatusCode()) {

String text = response.getText();

// HERE I can't understand what is actually the result of server i there an 
Exception thrown or a
// proper result. That information is available in the Receiver. I need to 
know that here, because if there is an unexpected exception thrown
//from the server it is converted to a ServerFailure object and is passed to 
the Receiver, so I have every time to check exactly what
//server failure I receive.

receiver.onTransportSuccess(text);

} else {

String message = SERVER_ERROR +   + response.getStatusCode() +  + 
response.getText();
receiver.onTransportFailure(new ServerFailure(message));

requestCounter = 0;
}
} finally {
hideLoadingBar();
}

}
};
}

private void hideLoadingBar() {
requestCounter--;
if (requestCounter = 0) {
requestCounter = 0;
eventBus.fireEvent(new LoadingBarEvent(false));
}
}

I have and my own wrapper of the Receiver class:

public abstract class MyReceiverZ extends ReceiverZ {
private EventBus eventBus;

public MyReceiver(EventBus eventBus){

// paseing the event bus every time to the constructor of the Receiver
this.eventBus = eventbus;
}
...
@Override
public void onFailure(ServerFailure error) {

if (eventBus != null) {
handleError(error);
}

if (error.isFatal()) {
GWT.log(ServerFailure:  + error.getStackTraceString());
super.onFailure(error);
}
}

}

Is there a way to handle the result of the request in the RequestContext, so 
I could manage the loading bar only form there?
If there is no way in the RequestTrasport, is there any other place?

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



Dynamically editing list of ValueProxies with ListEditor

2011-08-15 Thread Mihail Lesikov
I have a list of phoneNumbers(ValueProxy) for a specified contact that I 
need to edit dynamically(add new/remove/change) using ListEditor.

When I try to remove one of the phoneNumbers :

listEditor.getList().remove(phoneNumber); // phone number is the last proxy 
in the list

1) as a result, the first element in the list is always removed
2) when flush is called on the contactEditor(parent editor that contacs the 
driver), no values are filled in the list of phoneNumbersProxies

Other thing that i noticed is that every valueProxy.hashCode() is the same 
as others from that type.

-- 
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/-/7bRgY7GUe3YJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Activities and Places and Layouts (again)

2011-08-15 Thread P.G.Taboada
You need rootlayoutpanel, the host page should be in standards mode
( see doctype declaration).

Then you should look if all the panels being used implement provides
resize/ requires resize. That is the way resize events get propagated
to child elements in gwt.

On Aug 15, 8:00 am, Mike Dee mdichiapp...@gmail.com wrote:
 Getting started with Activities and Places.  I'd like to use a
 DockLayoutPanel to comprise the entire view (page).  When I try, it
 doesn't work.

 Note I'm using HelloMVP is a starting point and that in the EntryPoint
 a SimplePanel is set up as the default Panel.  I've tried adding a
 DockLayoutPanel to that.  I also tried first adding a VerticalPanel
 and then a DockLayoutPanel based on some suggestions here.

 The DockLayoutPanel simply doesn't display.  This was also mentioned
 in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
 resolution there was to adjust the positioning styles to be absolute.
 However, they appear to already be absolute.

 I've played around with setting the width and height of the parent
 (SimplePanel) panel to 100%.  I've changed RootPanel to
 RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
 this would be something that is commonly done OR am I heading down the
 wrong path?

 Any ideas?
 Mike

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



upload file with GWT (MVP pattern)

2011-08-15 Thread GWT and Web Services
i want to add upload file on my application, i implemented it like you
did, but it doesnt work, when i debug i found that items is null.

PS: i use MVP pattern , so is there another way to implement upload
file.

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



Eclipse, Maven, GWT: Multiple modules in a single Eclipse project

2011-08-15 Thread Mike
Hi, we have an existing web application (JSF, Seam on JBoss) and are
reimplementing portions of it in GWT.  These portions will be separate
GWT modules, each with their own entry point.  The application is
currently a single Eclipse project with Maven handling dependency
management and the GWT compile (gwt-maven-plugin).  We have a couple
GWT modules implemented so far and have had little trouble getting all
the different tools working together.

Now, we are looking to set up another, no entry-point, module from
which all the other modules will inherit.  This modules will hold
shared code and resources.  Ideally, we would like this shared module
to be in the same project.  So far, our attempts to set up such a
module have been fruitless.  GWT compiles do not produce artifacts for
the shared module or any for modules that inherit from it.  Also, dev
mode will not load the JS file for any module that inherits from the
shared module.  It seems like the approach we are taking would be
relatively common, so I am assuming we have not set up the project
correctly.  Does anyone have any insights or know of any resources
that would be helpful?  Thanks.

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



Re: HTTP Persistent Connection in Jetty

2011-08-15 Thread Kevin Jordan
Are you referring to Comet and/or Websockets?  For both of those, it's
part of the servlet you're connecting to.  Websockets will require a
Jetty 7 version though.

On Aug 14, 7:45 pm, Gator Bait vivsz...@gmail.com wrote:
 Hi,

 I'm new to GWT.

 I'm using GWT 2.3 and the embedded Jetty server instance(not sure what
 version of Jetty).

 Will someone point me to an example of how Jetty should be configured
 to support persistent HTTP connections?  From my reading, don't think
 there is a jetty.xml file to configure.  Should Jetty be set up from
 com.google.gwt.dev.shell.jetty.JettyLauncher class?  If so, could you
 provide an example?

 Thanks for your time!

 Gator Bait

-- 
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 2.2.0 RequestFactory + Spring 3.0.x Integration (SOLVED) - NEW LINK

2011-08-15 Thread Ido
Works like charm, thanks a lot for the post!

-- 
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/-/C6JsuJVunwYJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Activities and Places and Layouts (again)

2011-08-15 Thread Mike Dee
I replaced RootPanel with RootLayoutPanel.

Here is the EntryPoint from HelloMVP:

 private SimplePanel appWidget = new SimplePanel();
 ...
 RootPanel.get().add( appWidget );
 activityManager.setDisplay( appWidget );

I replaced RootPanel with RootLayoutPanel:

 private SimplePanel appWidget = new SimplePanel();
 ...
 RootLayoutPanel.get().add( appWidget );
 activityManager.setDisplay( appWidget );

Maybe I'm a little too naive in thinking that would do much.

Also, when I look at the page source generated, it appears a DOCTYPE
is already there.  Here is the page source generated by the GWT app
(HelloMVP).

 !doctype html
 !-- The DOCTYPE declaration above will set the--
 !-- browser's rendering engine into   --
 !-- Standards Mode. Replacing this declaration  --
 !-- with a Quirks Mode doctype may lead to some --
 !-- differences in layout.--

If I create a simple GWT app (not Activities  Places) and plop a
DockLayoutPanel in the RootPanel, it just works.  Fills the page
nicely without having to add any onResize handlers.  Is there a reason
why adding handlers would be needed in an Activities  Places
framework (such as that provided by HelloMVP)?  I'd like to understand
that a bit more.



On Aug 15, 4:44 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 You need rootlayoutpanel, the host page should be in standards mode
 ( see doctype declaration).

 Then you should look if all the panels being used implement provides
 resize/ requires resize. That is the way resize events get propagated
 to child elements in gwt.

 On Aug 15, 8:00 am, Mike Dee mdichiapp...@gmail.com wrote:







  Getting started with Activities and Places.  I'd like to use a
  DockLayoutPanel to comprise the entire view (page).  When I try, it
  doesn't work.

  Note I'm using HelloMVP is a starting point and that in the EntryPoint
  a SimplePanel is set up as the default Panel.  I've tried adding a
  DockLayoutPanel to that.  I also tried first adding a VerticalPanel
  and then a DockLayoutPanel based on some suggestions here.

  The DockLayoutPanel simply doesn't display.  This was also mentioned
  in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
  resolution there was to adjust the positioning styles to be absolute.
  However, they appear to already be absolute.

  I've played around with setting the width and height of the parent
  (SimplePanel) panel to 100%.  I've changed RootPanel to
  RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
  this would be something that is commonly done OR am I heading down the
  wrong path?

  Any ideas?
  Mike

-- 
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: Dynamically editing list of ValueProxies with ListEditor

2011-08-15 Thread Miroslav Genov
What version of GWT  you are using  ?

What happens if you try something like:

PhoneNumber p1 = request.create(PhoneNumber.class);
PhoneNumber p2 = request.create(PhoneNumber.class);

p1.setValue(234234234);
p2.setValue(12312);

p1.equals(p2) 

?

-- 
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/-/ienKaIPryj4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: DataGrid GWT 2.4 RC1

2011-08-15 Thread Jeff Larsen


DockPanel mainPanel = new DockPanel(); 


DockPanel isn't a LayoutPanel. Try DockLayoutPanel. 

-- 
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/-/pOFbaNTz6q4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: HTTP Persistent Connection in Jetty

2011-08-15 Thread Gator Bait
Hi Kevin,

Thanks for the reply.

Didn't think Comet was a good choice because of issues regarding
second level domains and cross-site scripting vulnerabilities:

http://en.wikipedia.org/wiki/Comet_%28programming%29

Not familiar with Websockets.

What I want to do is this: have my servlet push data to my user
interface widget reusing the HTTP connection.  Not sure what version
of Jetty is used in GWT 2.3 (ultimate goal is to deploy on Tomcat 6,
but, wanted to get something working in the hosted environment
first).

From your response, sounds like this is controlled from the servlet
code and not Jetty.
Will you point me to an example?

Many thanks,
Gator Bait


On Aug 15, 8:22 am, Kevin Jordan ke...@kjordan.net wrote:
 Are you referring to Comet and/or Websockets?  For both of those, it's
 part of the servlet you're connecting to.  Websockets will require aJetty7 
 version though.

 On Aug 14, 7:45 pm, Gator Bait vivsz...@gmail.com wrote:

  Hi,

  I'm new to GWT.

  I'm using GWT 2.3 and the embeddedJettyserver instance(not sure what
  version ofJetty).

  Will someone point me to an example of howJettyshould be configured
  to support persistentHTTPconnections?  From my reading, don't think
  there is ajetty.xml file to configure.  ShouldJettybe set up from
  com.google.gwt.dev.shell.jetty.JettyLauncher class?  If so, could you
  provide an example?

  Thanks for your time!

  Gator Bait

-- 
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: Eclipse, Maven, GWT: Multiple modules in a single Eclipse project

2011-08-15 Thread Mike
As always, the answer becomes apparently minutes after asking the
question:  it turns out you need to explicitly list your modules in
the pom file's configuration of the gwt-maven-plugin plugin.  This
allows you to specify an order, ensuring that the shared module is
compiled first.

On Aug 15, 10:07 am, Mike mreynolds0...@gmail.com wrote:
 Hi, we have an existing web application (JSF, Seam on JBoss) and are
 reimplementing portions of it in GWT.  These portions will be separate
 GWT modules, each with their own entry point.  The application is
 currently a single Eclipse project with Maven handling dependency
 management and the GWT compile (gwt-maven-plugin).  We have a couple
 GWT modules implemented so far and have had little trouble getting all
 the different tools working together.

 Now, we are looking to set up another, no entry-point, module from
 which all the other modules will inherit.  This modules will hold
 shared code and resources.  Ideally, we would like this shared module
 to be in the same project.  So far, our attempts to set up such a
 module have been fruitless.  GWT compiles do not produce artifacts for
 the shared module or any for modules that inherit from it.  Also, dev
 mode will not load the JS file for any module that inherits from the
 shared module.  It seems like the approach we are taking would be
 relatively common, so I am assuming we have not set up the project
 correctly.  Does anyone have any insights or know of any resources
 that would be helpful?  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.



Aw: Re: Activities and Places and Layouts (again)

2011-08-15 Thread Jens
I think you should use 

SimpleLayoutPanel appWidget = new SimpleLayoutPanel();
RootLayoutPanel.get().add(appWidget);

Now you should be able to add a DockLayoutPanel to the appWidget inside an 
activities start method.

But do you really want a DockLayoutPanel just for one Place/Activity or do 
you want a DockLayoutPanel thats always present and you want to change the 
center area based on the current place (and use west for a menu or 
something)? If so you should do something like:

DockLayoutPanel appFrame = new DockLayoutPanel();
SimpleLayoutPanel content = new SimpleLayoutPanel();
//FlowPanel menu = new FlowPanel();
//menu.add(new HyperLink(abc));
//appFrame.addWest(menu);
appFrame.add(content)
RootLayoutPanel.get().add(appFrame);
activityManager.setDisplay(content);


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



Re: problem

2011-08-15 Thread Juan Pablo Gardella
Simple add jsr303 api and
implementationhttp://stackoverflow.com/questions/1384968/is-there-an-implementation-of-jsr-303-bean-validation-availableto
the classpath.

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

 I just migrated to version 2.3
 and when I'm creating a Panel
 I get the following error:
 ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/EditorDriver.java'.
 ERROR: Line 20: The import javax.validation.ConstraintViolation cannot
 be resolved.
 ERROR: Line 97: ConstraintViolation cannot be resolved to a type.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/Configuration.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'.
   ERROR: Errors in
 'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'.
 DEBUG: Rebinding com.google.gwt.core.client.impl.SchedulerImpl.
 ERROR: Line 28: Name clash: The method
 setConstraintViolations(IterableConstraintViolation?) of type
 BaseEditorDriverT,E has the same erasure as
 setConstraintViolations(IterableConstraintViolation?) of type
 EditorDriverT but does not override it.
 ERROR: Line 31: The import javax.validation.ConstraintViolation cannot
 be resolved.
 ERROR: Line 67: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 25: The import javax.validation.ConstraintViolation cannot
 be resolved.
 ERROR: Line 40: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 43: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 44: Missing code implementation in the compiler.
 ERROR: Line 49: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 49: Missing code implementation in the compiler.
 ERROR: Line 70: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 72: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 73: ConstraintViolation? cannot be resolved to a type.
 ERROR: Line 77: ConstraintViolationcapture#2-of ? cannot be resolved
 to a type.
 ERROR: Line 81: ConstraintViolationcapture#3-of ? cannot be resolved
 to a type.
 ERROR: Line 89: ConstraintViolationcapture#4-of ? cannot be resolved
 to a type.
 ERROR: Line 93: ConstraintViolationcapture#5-of ? cannot be resolved
 to a type.
 ERROR: Line 98: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 26: The import javax.validation.ConstraintViolation cannot
 be resolved.
 ERROR: Line 35: The type MockSimpleBeanEditorDriverT,E must implement
 the inherited abstract method
 EditorDriverT.setConstraintViolations(IterableConstraintViolation?).
 ERROR: Line 107: Name clash: The method
 setConstraintViolations(IterableConstraintViolation?) of type
 MockSimpleBeanEditorDriverT,E has the same erasure as
 setConstraintViolations(IterableConstraintViolation?) of type
 EditorDriverT but does not override it.
 ERROR: Line 108: ConstraintViolation cannot be resolved to a type.
 ERROR: Line 93: TraversableResolver cannot be resolved to a type.
 ERROR: Line 105: ConstraintValidatorFactory cannot be resolved to a
 type.
 ERROR: Line 182: TraversableResolver cannot be resolved to a type.
 ERROR: Line 182: No source code is available for type
 TraversableResolver; did you forget to inherit a required module?.
 ERROR: Line 194: ConstraintValidatorFactory cannot be resolved to a
 type.
 ERROR: Line 194: No source code is available for type
 ConstraintValidatorFactory; did you forget to inherit a required module?.
 ERROR: Line 202: ValidatorFactory cannot be resolved to a type.
 ERROR: Line 202: No source code is available for type ValidatorFactory;
 did you forget to inherit a required module?.
 

problem

2011-08-15 Thread jose felix estevez
I just migrated to version 2.3
and when I'm creating a Panel
I get the following error:
ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/EditorDriver.java'.
ERROR: Line 20: The import javax.validation.ConstraintViolation cannot
be resolved.
ERROR: Line 97: ConstraintViolation cannot be resolved to a type.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/AbstractSimpleBeanEditorDriver.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/BaseEditorDriver.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/impl/SimpleViolation.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/com/google/gwt/editor/client/testing/MockSimpleBeanEditorDriver.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/Configuration.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/ConstraintViolationException_CustomFieldSerializer.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/MessageInterpolator.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/constraints/Pattern.java'.
  ERROR: Errors in
'jar:file:/C:/Repositorio/com/google/gwt/gwt-user/2.3.0/gwt-user-2.3.0.jar!/javax/validation/super/javax/validation/spi/ConfigurationState.java'.
DEBUG: Rebinding com.google.gwt.core.client.impl.SchedulerImpl.
ERROR: Line 28: Name clash: The method
setConstraintViolations(IterableConstraintViolation?) of type
BaseEditorDriverT,E has the same erasure as
setConstraintViolations(IterableConstraintViolation?) of type
EditorDriverT but does not override it.
ERROR: Line 31: The import javax.validation.ConstraintViolation cannot
be resolved.
ERROR: Line 67: ConstraintViolation cannot be resolved to a type.
ERROR: Line 25: The import javax.validation.ConstraintViolation cannot
be resolved.
ERROR: Line 40: ConstraintViolation cannot be resolved to a type.
ERROR: Line 43: ConstraintViolation cannot be resolved to a type.
ERROR: Line 44: Missing code implementation in the compiler.
ERROR: Line 49: ConstraintViolation cannot be resolved to a type.
ERROR: Line 49: Missing code implementation in the compiler.
ERROR: Line 70: ConstraintViolation cannot be resolved to a type.
ERROR: Line 72: ConstraintViolation cannot be resolved to a type.
ERROR: Line 73: ConstraintViolation? cannot be resolved to a type.
ERROR: Line 77: ConstraintViolationcapture#2-of ? cannot be resolved
to a type.
ERROR: Line 81: ConstraintViolationcapture#3-of ? cannot be resolved
to a type.
ERROR: Line 89: ConstraintViolationcapture#4-of ? cannot be resolved
to a type.
ERROR: Line 93: ConstraintViolationcapture#5-of ? cannot be resolved
to a type.
ERROR: Line 98: ConstraintViolation cannot be resolved to a type.
ERROR: Line 26: The import javax.validation.ConstraintViolation cannot
be resolved.
ERROR: Line 35: The type MockSimpleBeanEditorDriverT,E must implement
the inherited abstract method
EditorDriverT.setConstraintViolations(IterableConstraintViolation?).
ERROR: Line 107: Name clash: The method
setConstraintViolations(IterableConstraintViolation?) of type
MockSimpleBeanEditorDriverT,E has the same erasure as
setConstraintViolations(IterableConstraintViolation?) of type
EditorDriverT but does not override it.
ERROR: Line 108: ConstraintViolation cannot be resolved to a type.
ERROR: Line 93: TraversableResolver cannot be resolved to a type.
ERROR: Line 105: ConstraintValidatorFactory cannot be resolved to a
type.
ERROR: Line 182: TraversableResolver cannot be resolved to a type.
ERROR: Line 182: No source code is available for type
TraversableResolver; did you forget to inherit a required module?.
ERROR: Line 194: ConstraintValidatorFactory cannot be resolved to a
type.
ERROR: Line 194: No source code is available for type
ConstraintValidatorFactory; did you forget to inherit a required module?.
ERROR: Line 202: ValidatorFactory cannot be resolved to a type.
ERROR: Line 202: No source code is available for type ValidatorFactory;
did you forget to inherit a required module?.
ERROR: Line 30: ConstraintViolationException cannot be resolved to a
type.
ERROR: Line 34: ConstraintViolationException cannot be resolved to a
type.
ERROR: Line 34: No source code is available for type
ConstraintViolationException; did you forget to inherit a required module?.
ERROR: 

Re: CellTable custom footer

2011-08-15 Thread Mark Wengranowski
Anyone?

On Aug 9, 1:05 pm, Mark Wengranowski m...@greatlittlebox.com wrote:
 Hi Everyone,

 I'm trying to add a footer to my CellTable and am having a hard time
 finding information on creating a footer that would update dynamically
 based on the cells in that column.

 i.e. I want the last row in my cell table to have a total footer.

 Adding static text is easy as you just pass an extra argument to the
 constructor:
        cellTable.addColumn(qty, Qty,Integer.toString(totalQty));

 Thats not what want though.

 If i don't set totalQty to a value before adding the column to the
 CellTable then it shows up as 0. If i try using the funtion
 CellTable.redrawFooters() it does not update the footer with the
 updated variable value for totalQty.

 I see in the documentation that footers are supposed to update
 automatically when set up as a type Header.

 I can' t find any source examples so if anyone could point me in the
 right direction or post an example that would be great.

 Thanks,
 -Mark

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



Number Of Permutations Question

2011-08-15 Thread Alfredo Quiroga-Villamil
Hello group:

Prior to GWT 2.3.0 I was able to limit the number of permutations generated
by GWT by specifying the property user.agent. The generated JS had no
references in it to the actual agent or anything related to it. When I use
GWT 2.3.0 now to compile I see a few lines in the generated JS that
reference User Agent. For example:

= Generated JS output in pretty mode =

function $getRuntimeValue(){

  var ua = navigator.userAgent.toLowerCase();

 ...

= Generated JS output in pretty mode =

I would like to use GWT to compile the Java code to JS and have it so that:

1. It only generates one version of the JS with no references to a browser
in this case. It worked like that prior to GWT 2.3.0.

2. Furthermore I would like to also be able to use Constants and not have
multiple permutations but just one.

I've for now found a way to accomplish number 2 I think by modifying the
I18N.gwt.xml default value for the locale and setting it to the one I want.

Can someone recommend a way if possible to use GWT to compile to JS with
just one permutation in GWT 2.3.0 without generating references to the UA in
the generated JS?

Thank you in advance for the help.

Alfredo

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

2011-08-15 Thread otth2oskier
Trying to run GWT compiler on project from within Eclipse. The
compiler hangs with no console output. If I run it with the -LogLevel
ALL flag, it outputs Checking for updates and then hangs.

Currently running GWT 2.2.0, JDK 1.6.0_22, Eclipse 3.4

Note I got the same problem with GWT 2.2.1 and 2.3 and Eclipse 3.5

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



Remove Warning: You are installing software that contains unsigned content when installing GAE Plugin for Eclipse

2011-08-15 Thread long pham ngoc
Please unsubscribe me from the Group because I can not install GAE Plugin
for Eclipse before deploying GAE application.
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: Number Of Permutations Question

2011-08-15 Thread Alfredo Quiroga-Villamil
Hi Magno, appreciate the response.

Yes looking for a way to remove that check at run time if possible. It
didn't do that prior to GWT 2.3.0. I've checked the generated JS and it
starts to do that after 2.3.0.

Regarding constants, I can't do what you are suggesting because it'll do
more than one permutation if I do it in my file. The only way I've found to
really force it is to just do it out of I18N.gwt.xml. If I do it in my
x.gwt.xml file it does the locale I specify and the default as well (2
permutations). So I need to limit it to just one permutation.

Ideas and any help are really appreciated.

Thank you,

Alfredo

On Mon, Aug 15, 2011 at 12:38 PM, Magno Machado magn...@gmail.com wrote:

 I don't know why, but GWT check for the user agent at runtime to assert it
 is the corresponding user agent for that given permutation. I don't think
 you can change that.

 Regarding i18n, afaik you can restrict the number of locales on your
 *.gwt.xml file as you did for user agent, there's no need to edit gwt's
 I18N.gwt.xml file

 On Mon, Aug 15, 2011 at 1:30 PM, Alfredo Quiroga-Villamil 
 laww...@gmail.com wrote:

 Hello group:

 Prior to GWT 2.3.0 I was able to limit the number of permutations
 generated by GWT by specifying the property user.agent. The generated JS had
 no references in it to the actual agent or anything related to it. When I
 use GWT 2.3.0 now to compile I see a few lines in the generated JS that
 reference User Agent. For example:

 = Generated JS output in pretty mode =

 function $getRuntimeValue(){

   var ua = navigator.userAgent.toLowerCase();

  ...

 = Generated JS output in pretty mode =

 I would like to use GWT to compile the Java code to JS and have it so
 that:

 1. It only generates one version of the JS with no references to a browser
 in this case. It worked like that prior to GWT 2.3.0.

 2. Furthermore I would like to also be able to use Constants and not have
 multiple permutations but just one.

 I've for now found a way to accomplish number 2 I think by modifying the
 I18N.gwt.xml default value for the locale and setting it to the one I want.

 Can someone recommend a way if possible to use GWT to compile to JS with
 just one permutation in GWT 2.3.0 without generating references to the UA in
 the generated JS?

 Thank you in advance for the help.

 Alfredo

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




 --
 Magno Machado Paulo
 http://blog.magnomachado.com.br
 http://code.google.com/p/emballo/

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




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

-- 
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: Updating a celllist from a JSONP call

2011-08-15 Thread Jeff Chimene
On 08/15/2011 03:33 AM, Paul Browne wrote:
 Intestingly, If I add a Timer that delays for 1ms before calling
 cellList.setRowData(result) it all works
 
 I will live with this, dont like it but it seems to work

Sorry, I missed the issue the first go-round.

Rather than a fixed delay, I recommend the following:

taskFactory.GetTasks(new AsyncCallbackArrayListTaskModel() {

 @Override
 public void onFailure(Throwable caught) {}

 @Override
 public void onSuccess(ArrayListTaskModel result) {
   Scheduler.get().scheduleDeferred(new ScheduledCommand() {
 @Override
 public void execute() {
   cellList.setRowData(result);
   statusText.setText(Set Data);
  }
 }});

 
 
 
 
 On Aug 12, 1:41 pm, Paul Browne paul...@hotmail.com wrote:
 Hi,

 I have have a celllist in a UIBinder,  when I use JSON to get some
 data from a remote server it does not seem to update the celllist with
 the data that I have set in cellList.setRowData until I start moving
 the mouse for a bit (sometimes not at all if i dont move the mouse for
 about 20 seconds), This problem does not seems to happen if I get the
 data any other way i.e. load it from code rather that remote server.

 I have tried to cut the code down as small as possiable, (statusText
 is a label on screen).
 I can see that statusText stays Set Data so I know the results have
 been returned back, but the screen does not update.

 -
 initWidget(uiBinder.createAndBindUi(this));

 statusText.setText(Getting results);

 TaskFactory taskFactory = new TaskFactory();
 taskFactory.GetTasks(new AsyncCallbackArrayListTaskModel() {

 @Override
 public void onFailure(Throwable caught) {}

 @Override
 public void onSuccess(ArrayListTaskModel result) {
 cellList.setRowData(result);
 statusText.setText(Set Data);

 }});

 

 Taskfactory in the code is based on the JSONP code that is the main
 GWT page, I can put the debugger on the line and see that the array
 returned contains all the data I expect

 Any ideas?

 Cheers

 Paul
 

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



UI Binder Button Problem

2011-08-15 Thread walker1c
Can anyone tell me what I'm doing wrong here?  g:Image gets an image
URL, but g:upFace just gets a text input field.

ButtonPanel.ui.xml
---
ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui

ui:with field='img' type='test.client.Images'/

g:HTMLPanel ui:field='htmlPanel'
h3Button panel/h3
The image:
g:Image resource={img.saveButton} /
hr /
The button:
g:PushButton ui:field=button
g:upFace image={img.saveButton} /
/g:PushButton
/g:HTMLPanel
/ui:UiBinder

ButtonPanel.java

public class ButtonPanel extends Composite
{
interface MyUiBinder extends UiBinderWidget, ButtonPanel {}
private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

@UiField PushButton button;

public ButtonPanel()
{
initWidget(uiBinder.createAndBindUi(this));
}
}

Resulting HTML (part)
---
h3Button panel/h3
The image:
img class=gwt-Image border=0 style=width: 20px; height: 20px;
background: url(data:image/
png;base64,iVBORw0KGgoNSUhEUgAAABQUCAYAAACNiR0NAAABCUlEQVR42mP4DwX79+//
X19fTxZevnw5zJj/DN+/f/9vZKr1X9dM4L9PGgNZ2MqT77+0nMj/+/fv/
2cAmQ4SmHmGgSIcXsLyPycv9T9DdFzI//h6BooNLJ7J8N/S1gC7gdb
+DP8NHbFjFQMIBqkh2kCQRlwuARnGwAChqWpgUhMJBsK8BcPI3hWTgxhIkpdhrgBhkAEwcZhhJHsZl4HI4mQbCDMUXYwiA91iGf4HZFHRQJBhFBkIikH0mEbHJMUy1bPe4DIwJS3uf3Ql5QbmTWL47+Rq8Z/
h/Pnz/5U1+f937yTfsP79DP9t/Tn/9/Z1/2cAFds9vW3/
RcT4UJIFKZiXnxNcuIJKfwBn9ylqL8bV6QBJRU5ErkJggg==) no-repeat 0px
0px src=http://127.0.0.1:/gwttest/clear.cache.gif;
onload=this.__gwtLastUnhandledEvent=load;
hr
The button:
div class=gwt-PushButton tabindex=0 role=button
input type=text tabindex=-1 style=opacity: 0; height: 1px;
width: 1px; z-index: -1; overflow: hidden; position: absolute;
/div

-- 
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 508 - Alternative text on gwt-tree expand/collapse image

2011-08-15 Thread andrew
Running into the same kinds of issues almost a year after this post (using 
GWT 2.0.4)...
Need to set alt text and need to discern both tree selection and hierarchy 
with CSS turned off. 

This can be made more elegant but here is the strategy (some GWT Tree 
assumptions are made here)...
We are adding and OpenHandler and CloseHandler to the Tree. 
Each handler checks if the TreeItem has children then it has an expand or 
collapse (+/-) child image (may want to consider whether or not you have 
leaf images).

For each TreeItem with children,  item, whose img alt or title attributes 
you want to set, access its img tags:
NodeListcom.google.gwt.dom.client.Element imgs =  
item.getElement().getElementsByTagName(img);

access the first Element in this set because this is the +/- img and set the 
attributes you want:
com.google.gwt.dom.client.Element elem = imgs.getItem(0);
elem.setAttribute(alt, ...);
elem.setAttribute(title, ...);

Our selected strategy is to append to the beginning of the selected 
TreeItem's text a selected character (ex. right-facing triangle). 

Still working on a solution to showing tree depth with CSS off.

-- 
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/-/pEPcIV0iNEQJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Activities and Places and Layouts (again)

2011-08-15 Thread Mike Dee
Jens,

I am doing as you suggest.  onModuleLoad() creates the SimplePanel and
the View implementation adds a DockLayoutPanel.  Basically, I copied
the HelloMVP example.

You bring up an interesting issue.  Do I really want a DockLayoutPanel
for just one activity/place.

In this case I do.  I would think that this is a common thing to do,
particularly for mobile apps because of the small screens.  I believe
Activities  Places comes from Android.

What I really want is an app with say 3 places, let's call them A, B,
and C.  Each place is associated with its own activity and presenter
and view.  A's view could have a DockLayoutPanel, B's could have a
Tabbed panel, and C could have something else.  I would expect the
presenter would handle all events in each place/view.

Think of an online store, for example.  A could be the search for
items, B could be the checkout cart, and C could be user account
settings.  All completely different places with completely different
page layouts.

Mike



On Aug 15, 8:29 am, Jens jens.nehlme...@gmail.com wrote:
 I think you should use

 SimpleLayoutPanel appWidget = new SimpleLayoutPanel();
 RootLayoutPanel.get().add(appWidget);

 Now you should be able to add a DockLayoutPanel to the appWidget inside an
 activities start method.

 But do you really want a DockLayoutPanel just for one Place/Activity or do
 you want a DockLayoutPanel thats always present and you want to change the
 center area based on the current place (and use west for a menu or
 something)? If so you should do something like:

 DockLayoutPanel appFrame = new DockLayoutPanel();
 SimpleLayoutPanel content = new SimpleLayoutPanel();
 //FlowPanel menu = new FlowPanel();
 //menu.add(new HyperLink(abc));
 //appFrame.addWest(menu);
 appFrame.add(content)
 RootLayoutPanel.get().add(appFrame);
 activityManager.setDisplay(content);

 -- J.

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



Re: Activities and Places and Layouts (again)

2011-08-15 Thread Mike Dee
Dave,

I never thought about adding the DockLayout in the activity's start()
method.  I am using the HelloMVP sample and they add widgets to the
view in the view's implementation (HelloViewImpl).

When the activity (associated with the view) is activated (at a later
point), HelloViewImpl creates its view (adding widgets).  I simply
added a DockLayoutPanel and called initWidget() in the view's
constructor.  I believe that sets the SimplePanel's child to the
DockLayoutPanel.

I can see evidence of a DockLayoutPanel in Firebug.  I can see the DIV
tags with the text of the labels I put in each position (north, south,
etc).  However, on the page I only see the north cell.  I've set the
SimplePanel's width/height to 100% as well as the DockLayoutPanel's
width and height to 100%.

Thanks,
Mike


On Aug 15, 9:01 am, DaveC david.andrew.chap...@gmail.com wrote:
 Hi Mike,

 I'm trying to understand your issue...

 I'm assuming that DockLayoutPanel is in an Activity and that you're
 adding it to the SimplePanel using panel.setWidget() in the start
 method...? (I don't want to teach you to suck eggs - but you can use
 Firebug (or similar) to check the DOM of your page and make sure the
 DockLayoutPanel is actually being added).

 If so, it sounds like you just need to force the DockLayoutPanel to be
 100% the height of it's container:

 dlp.setHeight(100%);

 If not I can give you a basic structure that at least works for me...

 Cheers,
 Dave

 On Aug 15, 3:51 pm, Mike Dee mdichiapp...@gmail.com wrote:







  I replaced RootPanel with RootLayoutPanel.

  Here is the EntryPoint from HelloMVP:

   private SimplePanel appWidget = new SimplePanel();
   ...
   RootPanel.get().add( appWidget );
   activityManager.setDisplay( appWidget );

  I replaced RootPanel with RootLayoutPanel:

   private SimplePanel appWidget = new SimplePanel();
   ...
   RootLayoutPanel.get().add( appWidget );
   activityManager.setDisplay( appWidget );

  Maybe I'm a little too naive in thinking that would do much.

  Also, when I look at the page source generated, it appears a DOCTYPE
  is already there.  Here is the page source generated by the GWT app
  (HelloMVP).

   !doctype html
   !-- The DOCTYPE declaration above will set the    --
   !-- browser's rendering engine into               --
   !-- Standards Mode. Replacing this declaration  --
   !-- with a Quirks Mode doctype may lead to some --
   !-- differences in layout.                        --

  If I create a simple GWT app (not Activities  Places) and plop a
  DockLayoutPanel in the RootPanel, it just works.  Fills the page
  nicely without having to add any onResize handlers.  Is there a reason
  why adding handlers would be needed in an Activities  Places
  framework (such as that provided by HelloMVP)?  I'd like to understand
  that a bit more.

  On Aug 15, 4:44 am, P.G.Taboada pgtabo...@googlemail.com wrote:

   You need rootlayoutpanel, the host page should be in standards mode
   ( see doctype declaration).

   Then you should look if all the panels being used implement provides
   resize/ requires resize. That is the way resize events get propagated
   to child elements in gwt.

   On Aug 15, 8:00 am, Mike Dee mdichiapp...@gmail.com wrote:

Getting started with Activities and Places.  I'd like to use a
DockLayoutPanel to comprise the entire view (page).  When I try, it
doesn't work.

Note I'm using HelloMVP is a starting point and that in the EntryPoint
a SimplePanel is set up as the default Panel.  I've tried adding a
DockLayoutPanel to that.  I also tried first adding a VerticalPanel
and then a DockLayoutPanel based on some suggestions here.

The DockLayoutPanel simply doesn't display.  This was also mentioned
in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
resolution there was to adjust the positioning styles to be absolute.
However, they appear to already be absolute.

I've played around with setting the width and height of the parent
(SimplePanel) panel to 100%.  I've changed RootPanel to
RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
this would be something that is commonly done OR am I heading down the
wrong path?

Any ideas?
Mike

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

2011-08-15 Thread otth2oskier
There appears to be a deadlock:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\xxjstack 1220
2011-08-15 13:50:55
Full thread dump Java HotSpot(TM) Client VM (17.1-b03 mixed mode,
sharing):

GWT Update Checker daemon prio=6 tid=0x03131400 nid=0x15e0 waiting
for monitor entry [0x0327d000]
   java.lang.Thread.State: BLOCKED (on object monitor)
at
sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:188)
- waiting to lock 0x1d434438 (a sun.misc.Launcher
$AppClassLoader)
at sun.security.jca.ProviderList.getProvider(ProviderList.java:
215)
at sun.security.jca.ProviderList.getService(ProviderList.java:
313)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:
140)
at
java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:
148)
at sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:244)
at sun.security.pkcs.PKCS7.parse(PKCS7.java:141)
at sun.security.pkcs.PKCS7.parse(PKCS7.java:110)
at sun.security.pkcs.PKCS7.init(PKCS7.java:92)
at
sun.security.util.SignatureFileVerifier.init(SignatureFileVerifier.java:
80)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:
267)
at java.util.jar.JarVerifier.update(JarVerifier.java:199)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:323)
at java.util.jar.JarFile.getInputStream(JarFile.java:388)
- locked 0x12c07c58 (a java.util.jar.JarFile)
at sun.misc.JarIndex.getJarIndex(JarIndex.java:120)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:
608)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath
$JarLoader.ensureOpen(URLClassPath.java:599)
at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:
583)
at sun.misc.URLClassPath$3.run(URLClassPath.java:333)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:322)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:299)
- locked 0x1d434500 (a sun.misc.URLClassPath)
at sun.misc.URLClassPath.access$000(URLClassPath.java:60)
at sun.misc.URLClassPath$1.next(URLClassPath.java:195)
at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:
206)
at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader$3.next(URLClassLoader.java:413)
at java.net.URLClassLoader
$3.hasMoreElements(URLClassLoader.java:438)
at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:
27)
at
sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:
36)
at sun.misc.Service$LazyIterator.hasNext(Service.java:255)
at java.util.prefs.Preferences.factory1(Preferences.java:263)
at java.util.prefs.Preferences.access$000(Preferences.java:
208)
at java.util.prefs.Preferences$2.run(Preferences.java:255)
at java.util.prefs.Preferences$2.run(Preferences.java:253)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.prefs.Preferences.factory(Preferences.java:252)
at java.util.prefs.Preferences.clinit(Preferences.java:210)
at
com.google.gwt.dev.shell.CheckForUpdates.check(CheckForUpdates.java:
263)
at com.google.gwt.dev.shell.CheckForUpdates
$1.call(CheckForUpdates.java:124)
at com.google.gwt.dev.shell.CheckForUpdates
$1.call(CheckForUpdates.java:120)
at java.util.concurrent.FutureTask
$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.lang.Thread.run(Thread.java:662)

Low Memory Detector daemon prio=6 tid=0x00a4bc00 nid=0x16c0 runnable
[0x]
   java.lang.Thread.State: RUNNABLE

CompilerThread0 daemon prio=10 tid=0x00a49000 nid=0x79c waiting on
condition [0x]
   java.lang.Thread.State: RUNNABLE

Attach Listener daemon prio=10 tid=0x00a44400 nid=0x177c waiting on
condition [0x]
   java.lang.Thread.State: RUNNABLE

Signal Dispatcher daemon prio=10 tid=0x00a43000 nid=0x17bc runnable
[0x]
   java.lang.Thread.State: RUNNABLE

Finalizer daemon prio=8 tid=0x00a3e000 nid=0x92c in Object.wait()
[0x02e9f000]
   java.lang.Thread.State: WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
- waiting on 0x1d4343a0 (a java.lang.ref.ReferenceQueue
$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:
118)
- locked 0x1d4343a0 (a java.lang.ref.ReferenceQueue$Lock)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:
134)
at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:
159)

Reference Handler daemon prio=10 tid=0x00a39400 nid=0x1678 in
Object.wait() [0x02e4f000]
   

Re: DataGrid GWT 2.4 RC1

2011-08-15 Thread NR

Thank you all. Adding the DataGrid directly to a LayoutPanel works.

On Aug 15, 8:02 am, Jeff Larsen larse...@gmail.com wrote:
 DockPanel mainPanel = new DockPanel();

 DockPanel isn't a LayoutPanel. Try DockLayoutPanel.

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

2011-08-15 Thread otth2oskier
Added -XdisableUpdateCheck to command line and it no longer hangs.

On Aug 15, 1:53 pm, otth2oskier wippel.rol...@gmail.com wrote:
 There appears to be a deadlock:

 Microsoft Windows XP [Version 5.1.2600]
 (C) Copyright 1985-2001 Microsoft Corp.

 C:\Documents and Settings\xxjstack 1220
 2011-08-15 13:50:55
 Full thread dump Java HotSpot(TM) Client VM (17.1-b03 mixed mode,
 sharing):

 GWT Update Checker daemon prio=6 tid=0x03131400 nid=0x15e0 waiting
 for monitor entry [0x0327d000]
    java.lang.Thread.State: BLOCKED (on object monitor)
         at
 sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:188)
         - waiting to lock 0x1d434438 (a sun.misc.Launcher
 $AppClassLoader)
         at sun.security.jca.ProviderList.getProvider(ProviderList.java:
 215)
         at sun.security.jca.ProviderList.getService(ProviderList.java:
 313)
         at sun.security.jca.GetInstance.getInstance(GetInstance.java:
 140)
         at
 java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:
 148)
         at sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:244)
         at sun.security.pkcs.PKCS7.parse(PKCS7.java:141)
         at sun.security.pkcs.PKCS7.parse(PKCS7.java:110)
         at sun.security.pkcs.PKCS7.init(PKCS7.java:92)
         at
 sun.security.util.SignatureFileVerifier.init(SignatureFileVerifier.java:
 80)
         at java.util.jar.JarVerifier.processEntry(JarVerifier.java:
 267)
         at java.util.jar.JarVerifier.update(JarVerifier.java:199)
         at java.util.jar.JarFile.initializeVerifier(JarFile.java:323)
         at java.util.jar.JarFile.getInputStream(JarFile.java:388)
         - locked 0x12c07c58 (a java.util.jar.JarFile)
         at sun.misc.JarIndex.getJarIndex(JarIndex.java:120)
         at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:
 608)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath
 $JarLoader.ensureOpen(URLClassPath.java:599)
         at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:
 583)
         at sun.misc.URLClassPath$3.run(URLClassPath.java:333)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:322)
         at sun.misc.URLClassPath.getLoader(URLClassPath.java:299)
         - locked 0x1d434500 (a sun.misc.URLClassPath)
         at sun.misc.URLClassPath.access$000(URLClassPath.java:60)
         at sun.misc.URLClassPath$1.next(URLClassPath.java:195)
         at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:
 206)
         at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader$3.next(URLClassLoader.java:413)
         at java.net.URLClassLoader
 $3.hasMoreElements(URLClassLoader.java:438)
         at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:
 27)
         at
 sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:
 36)
         at sun.misc.Service$LazyIterator.hasNext(Service.java:255)
         at java.util.prefs.Preferences.factory1(Preferences.java:263)
         at java.util.prefs.Preferences.access$000(Preferences.java:
 208)
         at java.util.prefs.Preferences$2.run(Preferences.java:255)
         at java.util.prefs.Preferences$2.run(Preferences.java:253)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.util.prefs.Preferences.factory(Preferences.java:252)
         at java.util.prefs.Preferences.clinit(Preferences.java:210)
         at
 com.google.gwt.dev.shell.CheckForUpdates.check(CheckForUpdates.java:
 263)
         at com.google.gwt.dev.shell.CheckForUpdates
 $1.call(CheckForUpdates.java:124)
         at com.google.gwt.dev.shell.CheckForUpdates
 $1.call(CheckForUpdates.java:120)
         at java.util.concurrent.FutureTask
 $Sync.innerRun(FutureTask.java:303)
         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
         at java.lang.Thread.run(Thread.java:662)

 Low Memory Detector daemon prio=6 tid=0x00a4bc00 nid=0x16c0 runnable
 [0x]
    java.lang.Thread.State: RUNNABLE

 CompilerThread0 daemon prio=10 tid=0x00a49000 nid=0x79c waiting on
 condition [0x]
    java.lang.Thread.State: RUNNABLE

 Attach Listener daemon prio=10 tid=0x00a44400 nid=0x177c waiting on
 condition [0x]
    java.lang.Thread.State: RUNNABLE

 Signal Dispatcher daemon prio=10 tid=0x00a43000 nid=0x17bc runnable
 [0x]
    java.lang.Thread.State: RUNNABLE

 Finalizer daemon prio=8 tid=0x00a3e000 nid=0x92c in Object.wait()
 [0x02e9f000]
    java.lang.Thread.State: WAITING (on object monitor)
         at java.lang.Object.wait(Native Method)
         - waiting on 0x1d4343a0 (a java.lang.ref.ReferenceQueue
 $Lock)
         at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:
 118)
         - locked 0x1d4343a0 (a java.lang.ref.ReferenceQueue$Lock)
         at 

event.getKeyCode not returning correct for key up event

2011-08-15 Thread SG
I am running GWT 2.3 in Standards mode and ran into this issue where
the getKeyCode method on the Event(com.google.gwt.user.client.Event)
object does not return correct values for special characters and also
those for letters seem to be inverted i.e. if I type 'S' I am getting
the code for 's' and vice versa. Any pointers on whats going on and
what I can do to fix. Below is a snippet of code that I am trying to
execute

Event event = DOM.eventGetCurrentEvent(); /* Note I do not have access
to the actual KeyUpEvent, so I need to use this */
char keyUpChar = (char)event.getKeyCode();  /* This returns 57 for the
'(' char which should be 40 and 83 for 's' which should be 115

Thanks!


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



Re: Activities and Places and Layouts (again)

2011-08-15 Thread Mike Dee
Dave,

I think you got it.  Double checked and wasn't setting height to
100%.  Thanks, that seems to have done it.  Thought I was doing that.

Mike


On Aug 15, 9:01 am, DaveC david.andrew.chap...@gmail.com wrote:
 Hi Mike,

 I'm trying to understand your issue...

 I'm assuming that DockLayoutPanel is in an Activity and that you're
 adding it to the SimplePanel using panel.setWidget() in the start
 method...? (I don't want to teach you to suck eggs - but you can use
 Firebug (or similar) to check the DOM of your page and make sure the
 DockLayoutPanel is actually being added).

 If so, it sounds like you just need to force the DockLayoutPanel to be
 100% the height of it's container:

 dlp.setHeight(100%);

 If not I can give you a basic structure that at least works for me...

 Cheers,
 Dave

 On Aug 15, 3:51 pm, Mike Dee mdichiapp...@gmail.com wrote:







  I replaced RootPanel with RootLayoutPanel.

  Here is the EntryPoint from HelloMVP:

   private SimplePanel appWidget = new SimplePanel();
   ...
   RootPanel.get().add( appWidget );
   activityManager.setDisplay( appWidget );

  I replaced RootPanel with RootLayoutPanel:

   private SimplePanel appWidget = new SimplePanel();
   ...
   RootLayoutPanel.get().add( appWidget );
   activityManager.setDisplay( appWidget );

  Maybe I'm a little too naive in thinking that would do much.

  Also, when I look at the page source generated, it appears a DOCTYPE
  is already there.  Here is the page source generated by the GWT app
  (HelloMVP).

   !doctype html
   !-- The DOCTYPE declaration above will set the    --
   !-- browser's rendering engine into               --
   !-- Standards Mode. Replacing this declaration  --
   !-- with a Quirks Mode doctype may lead to some --
   !-- differences in layout.                        --

  If I create a simple GWT app (not Activities  Places) and plop a
  DockLayoutPanel in the RootPanel, it just works.  Fills the page
  nicely without having to add any onResize handlers.  Is there a reason
  why adding handlers would be needed in an Activities  Places
  framework (such as that provided by HelloMVP)?  I'd like to understand
  that a bit more.

  On Aug 15, 4:44 am, P.G.Taboada pgtabo...@googlemail.com wrote:

   You need rootlayoutpanel, the host page should be in standards mode
   ( see doctype declaration).

   Then you should look if all the panels being used implement provides
   resize/ requires resize. That is the way resize events get propagated
   to child elements in gwt.

   On Aug 15, 8:00 am, Mike Dee mdichiapp...@gmail.com wrote:

Getting started with Activities and Places.  I'd like to use a
DockLayoutPanel to comprise the entire view (page).  When I try, it
doesn't work.

Note I'm using HelloMVP is a starting point and that in the EntryPoint
a SimplePanel is set up as the default Panel.  I've tried adding a
DockLayoutPanel to that.  I also tried first adding a VerticalPanel
and then a DockLayoutPanel based on some suggestions here.

The DockLayoutPanel simply doesn't display.  This was also mentioned
in this message from last Oct:http://tinyurl.com/3z8mn4v.  The
resolution there was to adjust the positioning styles to be absolute.
However, they appear to already be absolute.

I've played around with setting the width and height of the parent
(SimplePanel) panel to 100%.  I've changed RootPanel to
RootLayoutPanel in onLoadModule.  Nothing seems to work.  Seems like
this would be something that is commonly done OR am I heading down the
wrong path?

Any ideas?
Mike

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



Using normal Panels and LayoutPanels

2011-08-15 Thread Foermchen82
Hi all,

I want to use the DataGrid of GWT 2.4. But this I have to add to the
RootLayoutPanel.

For a specific layout with other panels I have to use f.e. the
DockLayoutPanel.
But to add Widget to the DockLayoutPanel, I have to apecify the size:

DockLayoutPanel mainPanel = new DockLayoutPanel(Unit.PX);
Label newLabel = new Label(Hallo);
mainPanel.addNorth(newLabel, 100);
mainPanel.add(new DataGrid();
RootLayoutPanel.get().add(mainPanel);

How can I set the size of the north-part only to the required space?
There is no getWitdh() on the Label.

Is there any other way to use the DataGrid on the RootPanel instead of
the RootLayoutPanel?

-- 
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: CellTable custom footer

2011-08-15 Thread John LaBanca
If you pass a Header instance as the footer, it will be updated every time
you push new row data.  You can also refresh footers manually using
CellTable#redrawFooters().

There is also a pending change that allows you to fully customize headers
and footers:
http://gwt-code-reviews.appspot.com/1499808/
John LaBanca | GWT Software Engineer | jlaba...@google.com




On Mon, Aug 15, 2011 at 12:10 PM, Mark Wengranowski m...@greatlittlebox.com
 wrote:

 Anyone?

 On Aug 9, 1:05 pm, Mark Wengranowski m...@greatlittlebox.com wrote:
  Hi Everyone,
 
  I'm trying to add a footer to my CellTable and am having a hard time
  finding information on creating a footer that would update dynamically
  based on the cells in that column.
 
  i.e. I want the last row in my cell table to have a total footer.
 
  Adding static text is easy as you just pass an extra argument to the
  constructor:
 cellTable.addColumn(qty, Qty,Integer.toString(totalQty));
 
  Thats not what want though.
 
  If i don't set totalQty to a value before adding the column to the
  CellTable then it shows up as 0. If i try using the funtion
  CellTable.redrawFooters() it does not update the footer with the
  updated variable value for totalQty.
 
  I see in the documentation that footers are supposed to update
  automatically when set up as a type Header.
 
  I can' t find any source examples so if anyone could point me in the
  right direction or post an example that would be great.
 
  Thanks,
  -Mark

 --
 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: CellTable custom footer

2011-08-15 Thread Mark Wengranowski
Thanks John!

Do you have an example of how i would total all of the cells in a
particular column and set the footer (Header instance)?

On Aug 15, 11:19 am, John LaBanca jlaba...@google.com wrote:
 If you pass a Header instance as the footer, it will be updated every time
 you push new row data.  You can also refresh footers manually using
 CellTable#redrawFooters().

 There is also a pending change that allows you to fully customize headers
 and footers:http://gwt-code-reviews.appspot.com/1499808/
 John LaBanca | GWT Software Engineer | jlaba...@google.com

 On Mon, Aug 15, 2011 at 12:10 PM, Mark Wengranowski m...@greatlittlebox.com



  wrote:
  Anyone?

  On Aug 9, 1:05 pm, Mark Wengranowski m...@greatlittlebox.com wrote:
   Hi Everyone,

   I'm trying to add a footer to my CellTable and am having a hard time
   finding information on creating a footer that would update dynamically
   based on the cells in that column.

   i.e. I want the last row in my cell table to have a total footer.

   Adding static text is easy as you just pass an extra argument to the
   constructor:
          cellTable.addColumn(qty, Qty,Integer.toString(totalQty));

   Thats not what want though.

   If i don't set totalQty to a value before adding the column to the
   CellTable then it shows up as 0. If i try using the funtion
   CellTable.redrawFooters() it does not update the footer with the
   updated variable value for totalQty.

   I see in the documentation that footers are supposed to update
   automatically when set up as a type Header.

   I can' t find any source examples so if anyone could point me in the
   right direction or post an example that would be great.

   Thanks,
   -Mark

  --
  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.- Hide quoted text -

 - Show quoted text -

-- 
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: upload file with GWT (MVP pattern)

2011-08-15 Thread Thad
Did you call setName(String) on the FileUpload object? If you do not,
org.apache.commons.fileupload.servlet.ServletFileUpload won't list
your field in parseRequest(HttpServletRequest).

On Aug 15, 8:47 am, GWT and Web Services loubar.bil...@gmail.com
wrote:
 i want to add upload file on my application, i implemented it like you
 did, but it doesnt work, when i debug i found that items is null.

 PS: i use MVP pattern , so is there another way to implement upload
 file.

-- 
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: CellTable custom footer

2011-08-15 Thread John LaBanca
There is an example in the DataGrid example of Showcase:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwDataGrid.java?r=10228#270

Within the footer getValue() mathod, you can get all of the row data and
extract values and do some math.
John LaBanca | GWT Software Engineer | jlaba...@google.com




On Mon, Aug 15, 2011 at 2:30 PM, Mark Wengranowski
m...@greatlittlebox.comwrote:

 Thanks John!

 Do you have an example of how i would total all of the cells in a
 particular column and set the footer (Header instance)?

 On Aug 15, 11:19 am, John LaBanca jlaba...@google.com wrote:
  If you pass a Header instance as the footer, it will be updated every
 time
  you push new row data.  You can also refresh footers manually using
  CellTable#redrawFooters().
 
  There is also a pending change that allows you to fully customize headers
  and footers:http://gwt-code-reviews.appspot.com/1499808/
  John LaBanca | GWT Software Engineer | jlaba...@google.com
 
  On Mon, Aug 15, 2011 at 12:10 PM, Mark Wengranowski 
 m...@greatlittlebox.com
 
 
 
   wrote:
   Anyone?
 
   On Aug 9, 1:05 pm, Mark Wengranowski m...@greatlittlebox.com wrote:
Hi Everyone,
 
I'm trying to add a footer to my CellTable and am having a hard time
finding information on creating a footer that would update
 dynamically
based on the cells in that column.
 
i.e. I want the last row in my cell table to have a total footer.
 
Adding static text is easy as you just pass an extra argument to the
constructor:
   cellTable.addColumn(qty, Qty,Integer.toString(totalQty));
 
Thats not what want though.
 
If i don't set totalQty to a value before adding the column to the
CellTable then it shows up as 0. If i try using the funtion
CellTable.redrawFooters() it does not update the footer with the
updated variable value for totalQty.
 
I see in the documentation that footers are supposed to update
automatically when set up as a type Header.
 
I can' t find any source examples so if anyone could point me in the
right direction or post an example that would be great.
 
Thanks,
-Mark
 
   --
   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.- Hide quoted
 text -
 
  - Show quoted text -

 --
 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: Number Of Permutations Question

2011-08-15 Thread Alfredo Quiroga-Villamil
Hello group:

I was able to find the solution for the runtime JS that was being generated.
I was able to remove the runtime JS code by adding:

 inherits name=com.google.gwt.user.UserAgent /
set-configuration-property name=user.agent.runtimeWarning value=false/

Hope this helps someone in the future.

Regards,

Alfredo

On Mon, Aug 15, 2011 at 12:30 PM, Alfredo Quiroga-Villamil 
laww...@gmail.com wrote:

 Hello group:

 Prior to GWT 2.3.0 I was able to limit the number of permutations generated
 by GWT by specifying the property user.agent. The generated JS had no
 references in it to the actual agent or anything related to it. When I use
 GWT 2.3.0 now to compile I see a few lines in the generated JS that
 reference User Agent. For example:

 = Generated JS output in pretty mode =

 function $getRuntimeValue(){

   var ua = navigator.userAgent.toLowerCase();

  ...

 = Generated JS output in pretty mode =

 I would like to use GWT to compile the Java code to JS and have it so that:

 1. It only generates one version of the JS with no references to a browser
 in this case. It worked like that prior to GWT 2.3.0.

 2. Furthermore I would like to also be able to use Constants and not have
 multiple permutations but just one.

 I've for now found a way to accomplish number 2 I think by modifying the
 I18N.gwt.xml default value for the locale and setting it to the one I want.

 Can someone recommend a way if possible to use GWT to compile to JS with
 just one permutation in GWT 2.3.0 without generating references to the UA in
 the generated JS?

 Thank you in advance for the help.

 Alfredo




-- 
Alfredo Quiroga-Villamil

AOL/Yahoo/Gmail/MSN IM:  lawwton

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

2011-08-15 Thread Stijn Bienkens
I have exactly the same issue at work.

Using Windows 7 64bit, jdk 6 update 26, gwt 2.3 and eclipse indigo
3.7.
Same deadlock happens when using different versions of java jdk, gwt
and eclipse.

On 15 aug, 20:02, otth2oskier wippel.rol...@gmail.com wrote:
 Added -XdisableUpdateCheck to command line and it no longer hangs.

 On Aug 15, 1:53 pm, otth2oskier wippel.rol...@gmail.com wrote:



  There appears to be a deadlock:

  Microsoft Windows XP [Version 5.1.2600]
  (C) Copyright 1985-2001 Microsoft Corp.

  C:\Documents and Settings\xxjstack 1220
  2011-08-15 13:50:55
  Full thread dump Java HotSpot(TM) Client VM (17.1-b03 mixed mode,
  sharing):

  GWT Update Checker daemon prio=6 tid=0x03131400 nid=0x15e0 waiting
  for monitor entry [0x0327d000]
     java.lang.Thread.State: BLOCKED (on object monitor)
          at
  sun.security.jca.ProviderConfig.getProvider(ProviderConfig.java:188)
          - waiting to lock 0x1d434438 (a sun.misc.Launcher
  $AppClassLoader)
          at sun.security.jca.ProviderList.getProvider(ProviderList.java:
  215)
          at sun.security.jca.ProviderList.getService(ProviderList.java:
  313)
          at sun.security.jca.GetInstance.getInstance(GetInstance.java:
  140)
          at
  java.security.cert.CertificateFactory.getInstance(CertificateFactory.java:
  148)
          at sun.security.pkcs.PKCS7.parseSignedData(PKCS7.java:244)
          at sun.security.pkcs.PKCS7.parse(PKCS7.java:141)
          at sun.security.pkcs.PKCS7.parse(PKCS7.java:110)
          at sun.security.pkcs.PKCS7.init(PKCS7.java:92)
          at
  sun.security.util.SignatureFileVerifier.init(SignatureFileVerifier.java:
  80)
          at java.util.jar.JarVerifier.processEntry(JarVerifier.java:
  267)
          at java.util.jar.JarVerifier.update(JarVerifier.java:199)
          at java.util.jar.JarFile.initializeVerifier(JarFile.java:323)
          at java.util.jar.JarFile.getInputStream(JarFile.java:388)
          - locked 0x12c07c58 (a java.util.jar.JarFile)
          at sun.misc.JarIndex.getJarIndex(JarIndex.java:120)
          at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:
  608)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.misc.URLClassPath
  $JarLoader.ensureOpen(URLClassPath.java:599)
          at sun.misc.URLClassPath$JarLoader.init(URLClassPath.java:
  583)
          at sun.misc.URLClassPath$3.run(URLClassPath.java:333)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.misc.URLClassPath.getLoader(URLClassPath.java:322)
          at sun.misc.URLClassPath.getLoader(URLClassPath.java:299)
          - locked 0x1d434500 (a sun.misc.URLClassPath)
          at sun.misc.URLClassPath.access$000(URLClassPath.java:60)
          at sun.misc.URLClassPath$1.next(URLClassPath.java:195)
          at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:
  206)
          at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader$3.next(URLClassLoader.java:413)
          at java.net.URLClassLoader
  $3.hasMoreElements(URLClassLoader.java:438)
          at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:
  27)
          at
  sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:
  36)
          at sun.misc.Service$LazyIterator.hasNext(Service.java:255)
          at java.util.prefs.Preferences.factory1(Preferences.java:263)
          at java.util.prefs.Preferences.access$000(Preferences.java:
  208)
          at java.util.prefs.Preferences$2.run(Preferences.java:255)
          at java.util.prefs.Preferences$2.run(Preferences.java:253)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.util.prefs.Preferences.factory(Preferences.java:252)
          at java.util.prefs.Preferences.clinit(Preferences.java:210)
          at
  com.google.gwt.dev.shell.CheckForUpdates.check(CheckForUpdates.java:
  263)
          at com.google.gwt.dev.shell.CheckForUpdates
  $1.call(CheckForUpdates.java:124)
          at com.google.gwt.dev.shell.CheckForUpdates
  $1.call(CheckForUpdates.java:120)
          at java.util.concurrent.FutureTask
  $Sync.innerRun(FutureTask.java:303)
          at java.util.concurrent.FutureTask.run(FutureTask.java:138)
          at java.lang.Thread.run(Thread.java:662)

  Low Memory Detector daemon prio=6 tid=0x00a4bc00 nid=0x16c0 runnable
  [0x]
     java.lang.Thread.State: RUNNABLE

  CompilerThread0 daemon prio=10 tid=0x00a49000 nid=0x79c waiting on
  condition [0x]
     java.lang.Thread.State: RUNNABLE

  Attach Listener daemon prio=10 tid=0x00a44400 nid=0x177c waiting on
  condition [0x]
     java.lang.Thread.State: RUNNABLE

  Signal Dispatcher daemon prio=10 tid=0x00a43000 nid=0x17bc runnable
  [0x]
     java.lang.Thread.State: RUNNABLE

  Finalizer daemon prio=8 tid=0x00a3e000 nid=0x92c in 

SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread darkflame
It seems this issue is still present;
http://code.google.com/p/google-web-toolkit/issues/detail?id=1351

Using a SuggestBox in a composite which has had a zIndex value set
means the popup of the suggestions appears behind everything else.
(no Index seems to be set at all on the popup).

So I either need a way to set the suggestions popup index, or some way
to trigger the suggestion box in a way for it to do it automaticaly.
(its being triggered after the composites z-Index is set at the
moment).

-- 
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: display file icon in GWT grid

2011-08-15 Thread Thad
You can write a servlet that gets the icon and returns it as a PNG.
Call that servlet as the Image url (vs using AbstractImagePrototype).

Warnings: (1) this will make a servlet call for each icon you load in
the grid; (2) if JFileChooser.getIcon() needs a DISPLAY, your call may
not succeed. That depends on if the servlet engine has access to the
display (fairly certain on Windows, Mac, and some Linux, but if the
server is running headless or if the servlet engine's user lacks the
permissions, it will fail).

On Aug 15, 1:59 am, nurit guthrie gu.nu...@gmail.com wrote:
 Hi,

 In my application I need to display icons of files next to the file
 name. I want to dynamically decide upon the icon, based on the file
 extension (I do not have a fixed set of icons stored).

 In java, there is a way to get file's icon using
 JFileChooser.getIcon(). However, the image I display in the Grid is
 AbstractImagePrototype (which is created using ImageResource).
 Is there a way to convert javax.swing.Icon to
 AbstractImagePrototype?

 Is there any other way to display file-icons according to the file
 extension in GWT? (I use a Gxt grid).

 Thanks,
 Nurit

-- 
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: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
One of the SuggestBox constructors lets you pass in a custom 
SuggestionDisplay.  You should be able to just extend the 
DefaultSuggestionDisplay, override the decorateSuggestionList method, and 
set the z-index of the widget it makes.

-Ben

-- 
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/-/ZS9bvxltQIMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: SuggestBox popup Z-Index issue (appears behind everything)

2011-08-15 Thread Ben Imp
I suppose you could also use CSS, too.  That would seem to be a bit less 
hacky.

-Ben

-- 
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/-/0xAyuDytVzkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Embed pdf into gwt app

2011-08-15 Thread karim duran
Hi Papick,

In my opinion, the problem is not about your iframe or any GWT container.
Concerning object or embed, i think you should use the standard way
provided by W3C specifications e.g object.

GWT provides cross-browser support for rendering. But don't process
media-type rendering.

Remember that if your browser can find a plugin to display a media-type (PDF
in your case), the media-type will display in your browser as you expect.

If your browser can't find a plugin, it calls the system default application
for this media-type ( Adobe Reader for exemple in your case with PDF ).

But, from the point of view of the user of your application, *you don't have
any control on how his browser will behave*. I mean that when the user
browser meet the object tag, it can display the PDF as you expect because
the Adobe Reader plugin is on the user system; Or it can call the Adobe
Reader desktop application because the plugin is not available for his
browser.

In firefox, you can force the behavior for a media-type. Go to - preference
- application, and search PDF document. You can see many actions the
browser can provide. You can choose the one interesting you.

to know about installed plugins for your browser, just type url
about:plugins.

Regards.

Karim Duran


2011/8/15 P.G.Taboada pgtabo...@googlemail.com

 hello,

 I am tryring to display PDF files in my app. Unfortunately, Firefox
 and Safari are downloading the PDF instead of showing them embedded.

 I tried object and embed and an iframe element, the PDF always
 gets downloaded. When using embed or object it even messes with the
 history, the app get thrown back in history (I am using Places/MVP).

 Did anyone succeed in showing a PDF?

 Brgds,

 Papick

 --
 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: Embed pdf into gwt app

2011-08-15 Thread Ivan Pulleyn
Depending on your requirements, you may find the pdfjs project useful:

http://andreasgal.github.com/pdf.js/

Ivan...

On Tue, Aug 16, 2011 at 5:38 AM, karim duran karim.du...@gmail.com wrote:

 Hi Papick,

 In my opinion, the problem is not about your iframe or any GWT container.
 Concerning object or embed, i think you should use the standard way
 provided by W3C specifications e.g object.

 GWT provides cross-browser support for rendering. But don't process
 media-type rendering.

 Remember that if your browser can find a plugin to display a media-type
 (PDF in your case), the media-type will display in your browser as you
 expect.

 If your browser can't find a plugin, it calls the system default
 application for this media-type ( Adobe Reader for exemple in your case with
 PDF ).

 But, from the point of view of the user of your application, *you don't
 have any control on how his browser will behave*. I mean that when the
 user browser meet the object tag, it can display the PDF as you expect
 because the Adobe Reader plugin is on the user system; Or it can call the
 Adobe Reader desktop application because the plugin is not available for his
 browser.

 In firefox, you can force the behavior for a media-type. Go to -
 preference - application, and search PDF document. You can see many actions
 the browser can provide. You can choose the one interesting you.

 to know about installed plugins for your browser, just type url
 about:plugins.

 Regards.

 Karim Duran


 2011/8/15 P.G.Taboada pgtabo...@googlemail.com

 hello,

 I am tryring to display PDF files in my app. Unfortunately, Firefox
 and Safari are downloading the PDF instead of showing them embedded.

 I tried object and embed and an iframe element, the PDF always
 gets downloaded. When using embed or object it even messes with the
 history, the app get thrown back in history (I am using Places/MVP).

 Did anyone succeed in showing a PDF?

 Brgds,

 Papick

 --
 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: Focus bug with TabLayoutPanel?

2011-08-15 Thread camerojo
There is a workaround - which is to defer the setFocus call:

ie
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand()
{
  public void execute() {
name.setFocus(true);
  }
});


Clearly this is some kind of timing problem.

-- 
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 2.3 XSRF Invalid RPC token (Session cookie is not set or empty! Unable to generate XSRF cookie)

2011-08-15 Thread Алексей Заряев
Thanks for advice Chak,
I have added setCookie, but I have other error now:

 [WARN] gorodServlet: An RpcTokenException was thrown while processing this 
call.
com.google.gwt.user.client.rpc.RpcTokenException: Invalid RPC token (XSRF 
token missing)
at 
com.google.gwt.user.server.rpc.XsrfProtectedServiceServlet.validateXsrfToken(XsrfProtectedServiceServlet.java:104)

-- 
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/-/UnSgtxxZ8FkJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: HTTP Persistent Connection in Jetty

2011-08-15 Thread Kevin Jordan
Well, Comet is a pretty broad term that includes what you want.
Although you can't keep a connection alive forever, unless you use the
hidden iframe technique from your wikipedia link, which is where the
vulnerability comes in.  At the moment, you can use Jetty
Continuations or Servlet 3 to achieve long polling through request
suspending.

Via continuations:
final Continuation continuation =
ContinuationSupport.getContinuation(request);
continuation.setTimeout(35000);
continuation.suspend(response);
//Do processing
continuation.resume();

See more at: 
http://download.eclipse.org/jetty/stable-7/apidocs/org/eclipse/jetty/continuation/Continuation.html

Servlet 3 has a similar API, you suspend and resume or complete the
request:
http://www.jarvana.com/jarvana/view/org/mortbay/jetty/servlet-api/3.0.pre1/servlet-api-3.0.pre1-javadoc.jar!/javax/servlet/ServletRequest.html

On Aug 15, 10:21 am, Gator Bait vivsz...@gmail.com wrote:
 Hi Kevin,

 Thanks for the reply.

 Didn't think Comet was a good choice because of issues regarding
 second level domains and cross-site scripting vulnerabilities:

 http://en.wikipedia.org/wiki/Comet_%28programming%29

 Not familiar with Websockets.

 What I want to do is this: have my servlet push data to my user
 interface widget reusing the HTTP connection.  Not sure what version
 of Jetty is used in GWT 2.3 (ultimate goal is to deploy on Tomcat 6,
 but, wanted to get something working in the hosted environment
 first).

 From your response, sounds like this is controlled from the servlet
 code and not Jetty.
 Will you point me to an example?

 Many thanks,
 Gator Bait

 On Aug 15, 8:22 am, Kevin Jordan ke...@kjordan.net wrote:







  Are you referring to Comet and/or Websockets?  For both of those, it's
  part of the servlet you're connecting to.  Websockets will require aJetty7 
  version though.

  On Aug 14, 7:45 pm, Gator Bait vivsz...@gmail.com wrote:

   Hi,

   I'm new to GWT.

   I'm using GWT 2.3 and the embeddedJettyserver instance(not sure what
   version ofJetty).

   Will someone point me to an example of howJettyshould be configured
   to support persistentHTTPconnections?  From my reading, don't think
   there is ajetty.xml file to configure.  ShouldJettybe set up from
   com.google.gwt.dev.shell.jetty.JettyLauncher class?  If so, could you
   provide an example?

   Thanks for your time!

   Gator Bait

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



Testing RequestFactory in GWT 2.4 RC1

2011-08-15 Thread Dominik Mayer
I tried GWT 2.4 RC1 today. My application does compile and run in a browser, 
but some unit tests don't pass anymore. I get the following Stack Trace:

java.lang.RuntimeException: Did not have deobfuscation data for 
2UqELyqusA0NSi_wPI4ZRpQ$hFw=
at 
com.google.web.bindery.requestfactory.vm.InProcessRequestFactory.getTypeFromToken(InProcessRequestFactory.java:118)
at 
com.google.web.bindery.requestfactory.shared.impl.IdFactory.getId(IdFactory.java:198)
at 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.getId(AbstractRequestContext.java:738)
at 
com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.processReturnOperations(AbstractRequestContext.java:1155)
at [...]

It used to work in GWT 2.3. Any ideas on how to fix this?

-- 
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/-/FEiy-KtWT5MJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 CellTable row height

2011-08-15 Thread Ashok
Hi,

 I'm developing an application using GWT. I'm using celltable to
display dynamic values from database (based on a query). I have
following queries:

Assume: I have set the table height as 100px. I have placed the table
in a scrollpanel.

1. Now, My query returns 20rows, which are more than 100px, I want the
table to resize to fit all the 20rows. which inturn would cause the
scrollpanel to resize, which inturn should resize the parent of the
scrollpanel. First of all, I would like to know if this is possible at
all? If so, how?

I have tried these:
 I thought, by obtaining the tables new and old height, I could resize
by calling setHeight() and for the parent's height, by
getParent().setHeight(). However, I was stupid to think this way as
I'm setting the value of the height for the table to be 100px. As this
is static, it would print the same value for old and new height and
would change nothing.

Any ideas of how to proceed with 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.



Re: GWT CellTable Row Height Problem

2011-08-15 Thread Ashok
Did you guys find a solution??

On Jul 13, 11:08 pm, DanG danielmger...@gmail.com wrote:
 Did you solve this? I'm having the same problem.

-- 
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 Row Height Problem

2011-08-15 Thread Ashok



Its mainly because of the parent that contain the cellTable. Make sure
the height of the parent is not set to any value.

solution: http://stackoverflow.com/questions/7072063/gwt-celltable-resize


On Aug 16, 11:46 am, Ashok uashoksun...@gmail.com wrote:
 Did you guys find a solution??

 On Jul 13, 11:08 pm, DanG danielmger...@gmail.com wrote:







  Did you solve this? I'm having the same problem.

-- 
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: log in tomcat with gwt - j_security_check limitation

2011-08-15 Thread Vitrums
I found this solution very handy. At least it suits my needs quite well. But 
still there's an issue with login.jsp, which might also produce an 
authentication interface for admin tools as an example. And the point is, 
that while an ordinary user gets everything what he needs, some manager with 
sysadmin role will also get this UI for login, which is not correct. And 
it can't be avoided by standard means of tomcat due to the fact, that only 
one login.jsp instance is allowed. And the DTD of web.xml doesn't support 
mapping of url specific context with different login pages =( E.g. there 
easily could be two secure1 and secure2 sections and they've got 
different access constrictions.

Actually I spent a couple of hours to figure out if I can distinguish which 
end-point url was requested within login.jsp code. And I wasn't successful 
to obtain any mean to do that. Wounder why this option is not supported by 
tomcat. Hence one probably may want to recompile tomcat with few additions 
in security code to do one of the following:
1. Whether allow web.xml to have more than one login-config element and 
make it parsed corresponding to this feature
or 2. To send an end-point href as a request header to login.jsp servlet and 
it can be used to build several brunches.

At this point I ran out of ideas. One more thing to mention, is that we 
still need login.jsp to render some handsome interface, because one may try 
to access your secured part directly rather than to ask for Welcome page. It 
became quite handy since browsers track a history and help user to choose a 
url in a combobox below the textbox while he types a domen. That's why we 
must whether redirect user to your sweet login module inside login.jsp, or 
to use login.jsp itself as a destination login url. Last means that we 
should copy/past the body of your Welcome.html and put the directory with 
compiled GWT resources into the root.

Will be greatful, if you give me a solution to maintain url-dependent 
context of login page within one tomcat webapp.

-- 
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/-/F9mbF6kj6B4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Eclipse, Maven, GWT: Multiple modules in a single Eclipse project

2011-08-15 Thread Lwando Mjila
you could also use maven and set up parent poms with dependants as
required,

On Aug 15, 2:07 pm, Mike mreynolds0...@gmail.com wrote:
 Hi, we have an existing web application (JSF, Seam on JBoss) and are
 reimplementing portions of it in GWT.  These portions will be separate
 GWT modules, each with their own entry point.  The application is
 currently a single Eclipse project with Maven handling dependency
 management and the GWT compile (gwt-maven-plugin).  We have a couple
 GWT modules implemented so far and have had little trouble getting all
 the different tools working together.

 Now, we are looking to set up another, no entry-point, module from
 which all the other modules will inherit.  This modules will hold
 shared code and resources.  Ideally, we would like this shared module
 to be in the same project.  So far, our attempts to set up such a
 module have been fruitless.  GWT compiles do not produce artifacts for
 the shared module or any for modules that inherit from it.  Also, dev
 mode will not load the JS file for any module that inherits from the
 shared module.  It seems like the approach we are taking would be
 relatively common, so I am assuming we have not set up the project
 correctly.  Does anyone have any insights or know of any resources
 that would be helpful?  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.



[gwt-contrib] Re: Remove duplicate loop over cached units. (issue1463802)

2011-08-15 Thread zundel


http://gwt-code-reviews.appspot.com/1463802/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
(left):

http://gwt-code-reviews.appspot.com/1463802/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#oldcode204
dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:204:
}
If this was a private method, I'd say it was worth optimizing this.
But the cost of iterating the units to make sure they are in the cache
should be small (agreed?), and it keeps the contract of the method - if
you don't ensure the cachedUnits are in allValidClasses, the method
won't work.

I have half a mind to get rid of setting allValidClasses from the other
two places.

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

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


[gwt-contrib] ClientBundle compilation performance

2011-08-15 Thread Paul Robinson

Hi,

I recently introduced an ImageBundle to my code with 1000 images. Everything 
worked ok, but I then converted it to a ClientBundle and found a couple of 
problems:

(1) It seems that ClientBundle holds files open during the compilation where ImageBundle 
does not. I had to dramatically increase the number of open files I was allowed to have 
so that the GWT compile would work. This is on linux, with GWT 2.3. I was getting a 
Too many open files system error.

(2) I had hoped that GWT would work out that I was only using 5 of the images, 
and so wouldn't do anything with all the others. However, GWT appears to open 
all the image files and do something with the data. The compilation could have 
been faster if it had identified which ones were used first, and only did 
something with them. Is this a bug, or an unfortunate but necessary side-effect 
of the way ClientBundle works?

I've now rewritten my code so that the bundle interface only includes the 
images I actually use.

Item (2) is covered by this issue:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6507

but I couldn't find any open issue for (1). Should I open an issue, or is it 
just the way it has to work?

Thanks,
Paul

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


[gwt-contrib] Re: Fixup class literals across fragments (issue1513803)

2011-08-15 Thread zundel

Please add acleung as a reviewer

On 2011/08/05 21:19:37, stephenh wrote:

http://gwt-code-reviews.appspot.com/1513803/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java

File dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java

(left):


http://gwt-code-reviews.appspot.com/1513803/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#oldcode623

dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:623:

private final

MapJField, JClassLiteral fieldToLiteralOfClass;
We don't need this map as we can walk across the fields in

ClassLiteralHolder,

which TypeOracle can easily give us.



http://gwt-code-reviews.appspot.com/1513803/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java

File dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java

(right):


http://gwt-code-reviews.appspot.com/1513803/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#newcode864

dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:864: }
Besides fixing up strings, a class literal could end up with it's

super class

literal being in a different fragment. (If you want details of how

this can

happen, I have a reproduction.)



E.g. foo_2_classLit = createForClass(package, name, Bar.class);



Would fail if bar_2_classLit ended up in a separate fragment.



This uses the same fixup logic as used else where to pull out

Bar.class and move

it to leftovers if it's not in our fragment or not already there.




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

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


[gwt-contrib] [google-web-toolkit] r10524 committed - Edited wiki page RequestFactory_2_4 through web user interface.

2011-08-15 Thread codesite-noreply

Revision: 10524
Author:   bobv%google@gtempaccount.com
Date: Mon Aug 15 07:40:18 2011
Log:  Edited wiki page RequestFactory_2_4 through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=10524

Modified:
 /wiki/RequestFactory_2_4.wiki

===
--- /wiki/RequestFactory_2_4.wiki   Sat Jun 11 17:16:56 2011
+++ /wiki/RequestFactory_2_4.wiki   Mon Aug 15 07:40:18 2011
@@ -83,3 +83,32 @@
 Any `RequestContext` may have another newly-created `RequestContext`  
appended to it.  Once two `RequestContext` instances are joined, they may  
be used independently of one another until `fire()` is called on any of the  
`RequestContext` instances.


 Building on top of the `append()` facility is the utility class  
`RequestBatcher` which makes it easy to combine all `Request`s made during  
one tick of the event loop into a single HTTP request.  A `RequestBatcher`  
vends an instance of a `RequestContext` and automatically calls `fire()` on  
it before the JavaScript execution returns to the browser (via  
`Scheduler.scheduleFinally()`).  The public `fire()` methods on the  
returned `RequestContext` and its `Request` objects will not trigger an  
HTTP request, although any `Receiver` provided will still be enqueued,  
allowing the `RequestContext` vended by a `RequestBatcher` to be used with  
existing code.

+
+{{{
+public class MyRequestBatcher extends RequestBatcherMyRequestFactory,  
MyRequestContext {

+  // Could be provided to consumers via DI instead
+  public static final MyRequestBatcher INSTANCE = new MyRequestBatcher();
+
+  public MyRequestBatcher() {
+// MyRequestFactory could also be injected
+super(GWT.create(MyRequestFactory.class));
+  }
+
+  @Override
+  protected MyRequestContext createContext(MyRequestFactory factory) {
+return factory.myRequestContext();
+  }
+
+  // Provide batched getter for an additional RequestContext type
+  public OtherRequestContext otherRequestContext() {
+return get().append(getRequestFactory().otherRequestContext());
+  }
+}
+}}}
+{{{
+public void respondToUserAction() {
+  MyRequestContext ctx = MyRequestBatcher.INSTANCE.get();
+  ctx.doUsualThings();
+  // Calling fire() would be a no-op, although fire(ReceiverVoid) will  
enqueue the callback

+}
+}}}

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


[gwt-contrib] Re: Fixup class literals across fragments (issue1513803)

2011-08-15 Thread cromwellian


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

http://gwt-code-reviews.appspot.com/1513803/diff/1/dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java#newcode864
dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java:864: }
On 2011/08/05 21:19:37, stephenh wrote:

Besides fixing up strings, a class literal could end up with it's

super class

literal being in a different fragment. (If you want details of how

this can

happen, I have a reproduction.)



E.g. foo_2_classLit = createForClass(package, name, Bar.class);



Would fail if bar_2_classLit ended up in a separate fragment.



This uses the same fixup logic as used else where to pull out

Bar.class and move

it to leftovers if it's not in our fragment or not already there.


Did you try this against trunk or GWT 2.3/2.4? I made some changes
recently to the way liveness of class literals are calculated that may
or may not have an effect relative to this. Do you have the repo code?

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

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


[gwt-contrib] Re: Fixup class literals across fragments (issue1513803)

2011-08-15 Thread stephen . haberman



Did you try this against trunk or GWT 2.3/2.4? I made some changes

recently to the way liveness of class literals are calculated that may
or may not have an effect relative to this.

If you mean the Roll seed-function optimization forward again commit
[1] (or others before it), yeah, I was hoping that would fix it, but it
did not.

[1]
https://github.com/stephenh/scalagwt-gwt/commit/8b04f896d509bb71e59d2acb92e48e68a154bd1f)


Do you have the repo code?


Yep:

https://github.com/stephenh/scalagwt-sample/commit/6cc1b70ae18c31063f71ce27fc110646c65c73c0

You shouldn't need that whole repo, just the classes in that commit
(Foo, FragmentA, FragmentB, etc.).

There is also some discussion on the scalagwt list about the bug [2].
Note that I misused the L(...) notation in a few places, so read those
parts liberally.

[2]: https://groups.google.com/d/msg/scalagwt/cVuvYEkJ5sU/XbfbOWUW2p8J


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

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


[gwt-contrib] Re: Fixup class literals across fragments (issue1513803)

2011-08-15 Thread stephen . haberman

On 2011/08/15 13:53:06, zundel wrote:

Please add acleung as a reviewer


Done.

(The edit issue form didn't recognize just acleung, so I added
acleung@google.com. Hope that's okay.)

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

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


[gwt-contrib] Re: Remove duplicate loop over cached units. (issue1463802)

2011-08-15 Thread stephen . haberman


http://gwt-code-reviews.appspot.com/1463802/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java
(left):

http://gwt-code-reviews.appspot.com/1463802/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#oldcode204
dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:204:
}

But the cost of iterating the units to make sure they are in the cache

should be small (agreed?), and it keeps the contract of the method

True.



I have half a mind to get rid of setting allValidClasses from the

other two places.

Yeah, I think that's a better fix.

I think those are the only two callers of CompileMoreLater.addValidUnit,
so that could go away too.

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

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


[gwt-contrib] Re: scheglov pointed out a leak in compilation units in dev mode after a refresh (issue1490801)

2011-08-15 Thread zundel


http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java
File dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java
(right):

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode100
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:100: */
On 2011/08/13 22:47:00, jbrosenberg wrote:

what's the rationale for this change?  Couldn't it lead to a larger

backlog of

old files that need to be read in at startup?


Now that the files rotate every time a CompilationStateBuilder pass
finishes, there are more files created, but they are smaller.  The
consolidation pass is not needed that often, and I was finding that a 10
file limit mean that one dev mode session was running purge multiple
times.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode109
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:109: /**
On 2011/08/13 22:47:00, jbrosenberg wrote:

Just thinking aloud here (since I am wondering about this too with my

caching

stuff too)?



What happens if multiple processes are using the cache, if an open

cache file

which is being written to is subsequently read by another process, and

then the

first process adds more to the file, etc., but meanwhile the second

process has

decided to compact things, etc.?  Is this worth worrying about?   Does

it make

sense to instead write new cache info to a temp file, and then only

move it to

it's final file name once it's complete and being closed?  Or should

we have the

concept of cache locking, whereby only one process can ever use a

cache

directory at a time?


The worst thing that could happen: some of the files are corrupt.  In
that case that cache just stops loading the file, deletes it, and moves
on, probably having to re-compile units instead of using them from the
cache.  I don't think the code is going to be able to cache effectively
if multiple processes are sharing the same cache dir, but then again, it
shouldn't break either.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode120
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:120: //
This isn't 100% reliable if multiple processes are in contention
On 2011/08/13 22:47:00, jbrosenberg wrote:

You could change this so the do-while loop above has while
(!newFile.createNewFile()) as it's loop condition, so that you

atomically know

that you've found the next free file name, and that you've also

created it, etc.


Done.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode147
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:147:
ListFile cacheFiles = new ArrayListFile();
On 2011/08/13 22:47:00, jbrosenberg wrote:

need a new line below before the if()


Done.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode164
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:164:
On 2011/08/13 22:47:00, jbrosenberg wrote:

I generally assume ALL_CAP_NAMES to refer to static constants.  Seems

weird for

instance classes with anonymous implementations to use that naming


renamed using camel case

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode231
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:231:
On 2011/08/13 22:47:00, jbrosenberg wrote:

Can we give this a more specific name, like currentCacheFileStream?


Done.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode247
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:247:
On 2011/08/13 22:47:00, jbrosenberg wrote:

extra blank line here


Done.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode265
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:265:
On 2011/08/13 22:47:00, jbrosenberg wrote:

If you only want 1 thread here, consider using
Executors.newSingleThreadPool()
I'm guessing it might be a bit more lightweight, etc...


Done.

http://gwt-code-reviews.appspot.com/1490801/diff/5002/dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java#newcode275
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:275: //
ignore
I read the article, but I don't think its relevant here - the finally()
clause shuts down the thread hard with shutdownNow().

On 2011/08/14 20:04:16, stephenh wrote:

Consider resetting the thread's interrupted state:



Thread.currentThread().interrupt();



http://www.javaspecialists.eu/archive/Issue056.html



[gwt-contrib] Re: Misc TypeOracle cleanup (issue1505805)

2011-08-15 Thread zundel


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

http://gwt-code-reviews.appspot.com/1505805/diff/1/dev/core/src/com/google/gwt/dev/javac/typemodel/TypeParser.java#newcode13
dev/core/src/com/google/gwt/dev/javac/typemodel/TypeParser.java:13:
public class TypeParser {
Are you intending to turn this into an API?  My inclination is to make
the class package protected.

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

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


Re: [gwt-contrib] Re: Fixup class literals across fragments (issue1513803)

2011-08-15 Thread Ray Cromwell
On Mon, Aug 15, 2011 at 9:58 AM,  stephen.haber...@gmail.com wrote:

 If you mean the Roll seed-function optimization forward again commit
 [1] (or others before it), yeah, I was hoping that would fix it, but it
 did not.

It surprises me that CFA doesn't take care of this and that it needs
to be done as a fix up. One of the changes I made to CFA was to rescue
indirectly referenced class literals (Object.getClass()) of
instantiable subtypes of Object, if the getClass() method is live. You
may want to look at the method CFA.maybeRescueClassLiteral().
Basically, as CFA  is visiting class literals, it will either rescue
them immediatelly (if the type is instantiable and getClass() is
live), or it will add them to a list of things to be rescued later
when getClass() is invoked.

The thing is, if B is a subtype of A, and B is rescued, then A is also
rescued. So if B's class literal is rescued, A's should as well. Even
if getClass() is never invoked, and all you do is refer to B.class,
the fact is, the class literal holder will look something like this:

class ClassLiteralHolder {
   static final ClassFoo A_classLit = createForClass(..., null);
   static final ClassFoo B_classLit = createForClass(..., A_classLit);
}

So I'd expect that rescuing B_classLit would rescue A_classLit.   I
added Lex who might be able to shed more light on this. I'm not
opposed to doing it in the fixup, the CodeSplitter is not really a
code base I look at very much, but I wonder if we're not missing a
deeper bug, I would hate to have a never ending stream of 'fixups'
that we have to keep extending. :(


 [1]
 https://github.com/stephenh/scalagwt-gwt/commit/8b04f896d509bb71e59d2acb92e48e68a154bd1f)

 Do you have the repo code?

 Yep:

 https://github.com/stephenh/scalagwt-sample/commit/6cc1b70ae18c31063f71ce27fc110646c65c73c0

 You shouldn't need that whole repo, just the classes in that commit
 (Foo, FragmentA, FragmentB, etc.).

 There is also some discussion on the scalagwt list about the bug [2].
 Note that I misused the L(...) notation in a few places, so read those
 parts liberally.

 [2]: https://groups.google.com/d/msg/scalagwt/cVuvYEkJ5sU/XbfbOWUW2p8J


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

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


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


[gwt-contrib] Re: Misc TypeOracle cleanup (issue1505805)

2011-08-15 Thread stephen . haberman


public class

TypeParser {
Are you intending to turn this into an API?  My inclination is to make

the class package protected.

Oh, no, no plans for an API, just the default that I didn't catch. I
agree, package protected is preferable.



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

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


[gwt-contrib] Re: Pretty massive refactoring of FieldManager and HtmlTemplates to make (issue1522803)

2011-08-15 Thread rjrjr

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

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


[gwt-contrib] Re: Pretty massive refactoring of FieldManager and HtmlTemplates to make (issue1522803)

2011-08-15 Thread rjrjr

I still need to add a test for IsRenderable, but I think this patch is
ready for review.

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

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


[gwt-contrib] Re: Fixup class literals across fragments (issue1513803)

2011-08-15 Thread stephen . haberman



The thing is, if B is a subtype of A, and B is rescued, then A is also
rescued.


Yeah, the rub is that B did not get rescued into FragmentB, it just
ended up there because it was in the set of FragmentA+FragmentB, but not
FragmentA or FragmentB individually, in which case it ends up in
whichever fragment is last.

(This is what the overwriting preexisting entries comment in
CodeSplitter.updateMap is talking about, although I really didn't
understand it the first few times I read it).

And, AFAIK, this would not be a big deal for normal static fields,
because they're only initialized in clinits, which, in theory, would
only be called once both FragmentA+FragmentB were truly loaded, and so
the code was indeed live.

Class literals are special because they're initialized immediately when
the fragment loads (so there isn't a chance for it to wait until the
combination of FragmentA+FragmentB is loaded).


but I wonder if we're not missing a
deeper bug, I would hate to have a
never ending stream of 'fixups'
that we have to keep extending. :(


I agree, I was concerned about that as well, and mused about it on the
scalagwt list. However, after thinking through the rationale above
(class lits being initialized on fragment load), I became fairly
convinced that this isn't masking a deeper bug.

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

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


[gwt-contrib] Re: Adding some extra capabilities to CountingEventBus so that we can reduce the boilerplate involve... (issue1526803)

2011-08-15 Thread skybrian


http://gwt-code-reviews.appspot.com/1526803/diff/1/user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java
File
user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java
(right):

http://gwt-code-reviews.appspot.com/1526803/diff/1/user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java#newcode46
user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java:46:
public H HandlerRegistration addHandler(TypeH type, H handler) {
If we want to count only successful method calls, we should move the
increment() calls to after the wrapped method calls, so the counter
isn't incremented when the wrapped method throws an exception.

In particular, it looks like SimpleEvent bus requires that type is not
null. It might be a good idea to do a null check in this method, so we
don't have to read a lot of other code to figure that out.

http://gwt-code-reviews.appspot.com/1526803/diff/1/user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java#newcode92
user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java:92:
* events may not have been passed to any handlers.
Should clarify whether we're only counting successful calls. Also, what
happens if a handler throws an exception?

(It might be nice to have a counter for errors, but I think that's a
separate CL.)

http://gwt-code-reviews.appspot.com/1526803/diff/1/user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java#newcode118
user/src/com/google/web/bindery/event/shared/testing/CountingEventBus.java:118:
TypeSourcePair(Type? type, Object source) {
It looks like type should not be null (at least in SimpleEventBus) but
source can be null. Maybe put a null check and a comment? I had to read
a fair bit of code to figure that out.

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

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


[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-15 Thread rchandia

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

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


[gwt-contrib] Re: Fixes problem with datanucleus enhancement and Appengine deployment (issue1521803)

2011-08-15 Thread rchandia


http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml
File samples/mobilewebapp/pom.xml (right):

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode34
samples/mobilewebapp/pom.xml:34: idJBoss Repo/id
On 2011/08/12 22:38:29, rjrjr wrote:

Do you still need this entry?


Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode73
samples/mobilewebapp/pom.xml:73: /dependency
On 2011/08/12 22:38:29, rjrjr wrote:

Are user and dev really provided? I thought GPE backs off and relies

on maven to

download them.

GPE does defer to the GWT maven plugin to silently get gwt-dev.jar, but
in this case we want it available to javac to compile the
AppCacheLinker. Of course we do not want it available ar runtime nor to
gwtc (because gwtc gets it in its own way), but Maven is designed to be
coarse grained in this regard. GWTC complains, but this still works.

The scope provided means get it, use it to compile (javac), but not
when packaging nor testing. It should prevent gwt-dev.jar from reaching
the war; but a bug in the maven plugin makes it reach the war
nevertheless so we forcibly delete it later.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode138
samples/mobilewebapp/pom.xml:138: !-- Who is this for? What is it? --
On 2011/08/12 22:38:29, rjrjr wrote:

While you're in here, did you try eliminating this and other who is

items?

Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode174
samples/mobilewebapp/pom.xml:174: !-- TODO: Who is using this? Is it
just cruft from listwidget? --
On 2011/08/12 22:38:29, rjrjr wrote:

ditto


Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode182
samples/mobilewebapp/pom.xml:182: !-- TODO: Who is using this? Just
GAE? Is anyone, really? --
On 2011/08/12 22:38:29, rjrjr wrote:

etc.

Yes, this one is used by App Engine

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode316
samples/mobilewebapp/pom.xml:316: version2.7/version  !--  Note 2.8
does not work with AspectJ aspect path --
On 2011/08/12 22:38:29, rjrjr wrote:

We don't care about AspectJ any more, right? Update this?


Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
File
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
(right):

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java#newcode50
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java:50:
populateDatastore();
On 2011/08/12 22:38:29, rjrjr wrote:

populateDatastore uses its own emf. Does the one in findAllTasks

actually see

the changes populateDatastore makes -- did you actually see the

samples show up?
Done. EMF is now used as a singleton.

The next step will be to use Locators and ServiceLocators to provide a
more entrerprisey sample. In a future patch, though.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java#newcode69
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java:69:
EMF emf = new EMF();
On 2011/08/12 22:38:29, rjrjr wrote:

Is all of this new EMF() stuff safe and idiomatic Objectify? We don't

need to

try to use a single EMF per request or something? Sure feels wrong.


Done.

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java#newcode232
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java:232:
public void setVersion(Integer version) {
On 2011/08/12 22:38:29, rjrjr wrote:

I bet you can delete this.


Done.

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

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


[gwt-contrib] [google-web-toolkit] r10525 committed - Add missing gecko 5 libs for Linux--they were dropped from the origina...

2011-08-15 Thread codesite-noreply

Revision: 10525
Author:   gwt.mirror...@gmail.com
Date: Mon Aug 15 16:11:24 2011
Log:  Add missing gecko 5 libs for Linux--they were dropped from the  
original commit due to size

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

Added:
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libmozalloc.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libnspr4.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libplc4.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libplds4.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libxpcom.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libxpcomglue_s.a
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libxul.so

===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libmozalloc.so	 
Mon Aug 15 16:11:24 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libnspr4.so	Mon  
Aug 15 16:11:24 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libplc4.so	Mon  
Aug 15 16:11:24 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libplds4.so	Mon  
Aug 15 16:11:24 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libxpcom.so	Mon  
Aug 15 16:11:24 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libxpcomglue_s.a	 
Mon Aug 15 16:11:24 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86-gcc3/lib/libxul.so	Mon  
Aug 15 16:11:24 2011

File is too large to display a diff.

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


[gwt-contrib] [google-web-toolkit] r10526 committed - Add missing gecko 5 libs for Linux64--they were dropped from the origi...

2011-08-15 Thread codesite-noreply

Revision: 10526
Author:   gwt.mirror...@gmail.com
Date: Mon Aug 15 16:12:14 2011
Log:  Add missing gecko 5 libs for Linux64--they were dropped from the  
original commit due to size

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

Added:
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libmozalloc.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libnspr4.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libplc4.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libplds4.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libxpcom.so
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libxpcomglue_s.a
 /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libxul.so

===
--- /dev/null   
+++  
/plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libmozalloc.so	 
Mon Aug 15 16:12:14 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libnspr4.so	 
Mon Aug 15 16:12:14 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libplc4.so	 
Mon Aug 15 16:12:14 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libplds4.so	 
Mon Aug 15 16:12:14 2011

Binary file, no diff available.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libxpcom.so	 
Mon Aug 15 16:12:14 2011

Binary file, no diff available.
===
--- /dev/null   
+++  
/plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libxpcomglue_s.a	 
Mon Aug 15 16:12:14 2011

File is too large to display a diff.
===
--- /dev/null   
+++ /plugin-sdks/gecko-sdks/gecko-5.0.0/Linux_x86_64-gcc3/lib/libxul.so	Mon  
Aug 15 16:12:14 2011

File is too large to display a diff.

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


[gwt-contrib] Re: Adding a new CellTableHeaderBuilder API, which allows custom headers and footers in CellTable. C... (issue1499808)

2011-08-15 Thread skybrian


http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
File
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
(right):

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode79
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:79:
* Example file.
Defines a custom table that displays a contact in each row.
This is an example that shows how to completely customize the appearance
of the headers, data rows, and footers in a CellTable.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode143
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:143:
* A custom header builder.
Renders custom headers that ...

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode164
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:164:
public void buildHeader(HelperContactInfo utility) {
s/utility/helper/

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode209
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:209:
* Build a single header.
Renders the header of one column, with the given options.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode211
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:211:
* @param utility the utility used to builder the header
used to build

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode213
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:213:
* @param header the header to buil
the Header to render

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode220
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:220:
private void buildHeader(HelperContactInfo utility, TableRowBuilder
tr, Header? header,
rename utility - helper
rename tr - out.
Maybe reorder first arguments to match renderHeader()

maybe rename to renderOneHeader()?

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode295
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:295:
* A custom version of {@link CellTableBuilder}.
Renders the data rows that display each contact in the table.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode489
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:489:
* A map containing the IDs of {@link ContactInfo} who's friends list is
Contains the contact id for each row in the table where the friends
list is currently expanded.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java#newcode636
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java:636:
* Initialize the column.
Defines the columns in the custom table. Maps the data in the
ContactInfo for each row into the appropriate column in the table, and
defines handlers for each column.

http://gwt-code-reviews.appspot.com/1499808/diff/14004/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java
File user/src/com/google/gwt/user/cellview/client/HeaderCreator.java
(right):

http://gwt-code-reviews.appspot.com/1499808/diff/14004/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode23
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:23: *
Creates the header or footer section of a CellTable.
Creates the DOM elements for the header...

http://gwt-code-reviews.appspot.com/1499808/diff/14004/user/src/com/google/gwt/user/cellview/client/HeaderCreator.java#newcode32
user/src/com/google/gwt/user/cellview/client/HeaderCreator.java:32:
public interface HeaderCreatorT {
Hmm, it seems like it should be HeaderBuilder to be consistent with
TableBuilder?

On the other hand, it doesn't actually create Header objects. Perhaps
HeaderRenderer and RowRenderer