Why this code can't get the event??

2011-08-12 Thread yourenzhuce
I want to add a div on TextBox, when textbox's value is empty, the div
will be show.
It look good, but it can't receive the event. the EventHandler does
not take effect.

What's the problem??

The code is:

public static HTML insertLabelUpon(final ValueBoxBase widget) {
final HTML label = new HTML();
label.setStyleName(PlugInLabel);

Element parent = widget.getElement().getParentElement();
if (parent == null) return null;
Element div = DOM.createDiv();
widget.removeFromParent();
parent.appendChild(div);
div.appendChild(widget.getElement());
div.appendChild(label.getElement());

div.getStyle().setProperty(position, relative);
DOM.setStyleAttribute(label.getElement(), position, 
absolute);

label.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
widget.setFocus(true);
}
});
widget.addFocusHandler(new FocusHandler() {
@Override
public void onFocus(FocusEvent event) {
label.setVisible(false);
}
});
widget.addBlurHandler(new BlurHandler() {
@Override
public void onBlur(BlurEvent event) {
Object value = widget.getValue();
if(value != null  value != ) {
label.setVisible(false);
} else {
label.setVisible(true);
}
}
});

return label;
}


the CSS:

.PlugInLabel {
position: absolute;
font: 11px tahoma,arial,verdana,sans-serif !important;
left: 5px !important;
color: #99;
}


-- 
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: CSS compiler + ie gradients = strange behaviour

2011-08-12 Thread Peter Willert
Hey Jeff,

thanks for your fast reply!

Am Donnerstag, 11. August 2011 19:12:14 UTC+2 schrieb Jeff Larsen:

 How about you check out http://css3pie.com/


We know about solutions like that, but we don't like to inject any new 
dependencies into our project.

Unless there are workarounds, we think it should work like we've implemented 
that stuff. Otherwise:  
a) we've done anything wrong, or
b) we found a gwt css compiler bug 

Are there any other hints? :)

Thanks,
Peter

-- 
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/-/uoVogPiruyEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Create Canvas widget from CanvasElement

2011-08-12 Thread karim33
Hi Julian,

I work with GWT 2.3 and i just see in the documentation :
(http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/
gwt/dom/client/CanvasElement.html)

constructor
protected CanvasElement()

It means that you can derive your own class for CanvasElement.
Adding it in a GWT container works for me.

I agree with you : I don't understand why there is also a Canvas
class, and why the constructor is private ?

In my opinion, Google is perfectionnist, and has provided a cross-
browser test class to check if canvas is supported by client
browser, in order to let the developper to test and take a decision if
there is no browser support. May be that's why thi class exists. I
don't think it's a bug as Thomas says.

Regards

Karim Duran


On 11 août, 22:06, Julian julian.lett...@gmail.com wrote:
 I want to wrap a CanvasElement (canvas in HTML) in an Canvas widget.

 Many widgets (e.g. Label) have a static method SomeWidget.wrap(Element) for
 wrapping an existing DOM element.
 I imagine Canvas does not feature such a method because not all browser
 support canvas and therefore the user should be forced to go
 through createIfSupported().

 Unfortunately the constructor in Canvas is private, which means that Canvas
 can not be subclassed. (There isn't any constructor available in the derived
 class.)

 Code snippets of createIfSupported and the constructor in Canvas:

   public static Canvas createIfSupported() {
     // check if canvas is supported; if it is not supported: return null
     return new Canvas(element);
   }

   private Canvas(CanvasElement element) {
     setElement(element);
   }

 I ended up copying the Canvas class and making the constructor public.

 Is there a better way to do this?
 If not, what is the reasoning behind it (besides that it might not be
 supported)?

 I am using version 2.4.0.rc1.

 Thanks,
 Julian

-- 
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: Why this code can't get the event??

2011-08-12 Thread Ivan Pulleyn
I notice that you are removing the widget from it's parent. That doesn't
seem correct.

On Fri, Aug 12, 2011 at 12:55 PM, yourenzhuce yourenzh...@gmail.com wrote:

 I want to add a div on TextBox, when textbox's value is empty, the div
 will be show.
 It look good, but it can't receive the event. the EventHandler does
 not take effect.

 What's the problem??

 The code is:
 
public static HTML insertLabelUpon(final ValueBoxBase widget) {
final HTML label = new HTML();
label.setStyleName(PlugInLabel);

Element parent = widget.getElement().getParentElement();
if (parent == null) return null;
Element div = DOM.createDiv();
widget.removeFromParent();
parent.appendChild(div);
div.appendChild(widget.getElement());
div.appendChild(label.getElement());

div.getStyle().setProperty(position, relative);
DOM.setStyleAttribute(label.getElement(), position,
 absolute);

label.addClickHandler(new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
widget.setFocus(true);
}
});
widget.addFocusHandler(new FocusHandler() {
@Override
public void onFocus(FocusEvent event) {
label.setVisible(false);
}
});
widget.addBlurHandler(new BlurHandler() {
@Override
public void onBlur(BlurEvent event) {
Object value = widget.getValue();
if(value != null  value != ) {
label.setVisible(false);
} else {
label.setVisible(true);
}
}
});

return label;
}
 

 the CSS:
 
 .PlugInLabel {
position: absolute;
font: 11px tahoma,arial,verdana,sans-serif !important;
left: 5px !important;
color: #99;
 }
 

 --
 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: Create Canvas widget from CanvasElement

2011-08-12 Thread Julian



 constructor 
 protected CanvasElement() 

 It means that you can derive your own class for CanvasElement. 
 Adding it in a GWT container works for me. 

 I agree with you : I don't understand why there is also a Canvas 
 class, and why the constructor is private ? 


Canvas is a Widget (derives from FocusWidget).
CanvasElement is just a wrapper around the DOM element canvas (derives 
com.google.gwt.dom.client.Element).
To be precise, CanvasElement is not even a wrapper it is a JavaScriptObject 
which means that you can not create it in Java (by calling a constructor).
Instead, we have to use Document.get().createCanvasElement() which does its 
work by calling a JSNI method.
I want the widget so that I can do all the event handling in Java 
(FocusWidget implements tons of Has*Handlers interfaces). 

-- 
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/-/ivqyX2eFKScJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Remote Logging - Logger Name replaced by logOnServer

2011-08-12 Thread Wooi
Below is the message I got from my apache server...
com.google.gwt.logging.server.RemoteLoggingServiceUtil logOnServer
WARNING: blablabla

I try to check RemoteLoggingServiceUtil, seeing while my logger name
is null it will replaced?

This is my code...
private static Logger log = Logger.getLogger(Test);
log.warning(blablabla);

I expect something like...
com.google.gwt.logging.server.RemoteLoggingServiceUtil Test
WARNING: blablabla

Any advice?

Thank you 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: How to use Mockito for testing Async calls?

2011-08-12 Thread Magno Machado
Code from a @Test method:
ListPesquisaProxy pesquisas = new ArrayListPesquisaProxy();
 Request? request = mock(Request.class);
doReturn(request).when(pesquisaRequest).listAll();
doReturn(pesquisaRequest).when(requestFactory).pesquisaRequest();
doAnswer(RequestFactoryUtils.ok(pesquisas)).when(request).fire(RequestFactoryUtils.anyReceiver());

And here my RequestFactoryUtils.ok:
public static T AnswerT ok(final T result) {
return new AnswerT() {

@Override
public T answer(InvocationOnMock invocation) throws Throwable {
Object[] args = invocation.getArguments();
Object _receiver = args[args.length - 1];
ReceiverT receiver = (ReceiverT)_receiver;
receiver.onSuccess(result);
return null;
}
 };
}

On Thu, Aug 11, 2011 at 6:32 PM, objectuser kevin.k.le...@gmail.com wrote:

 Here's how I do it.
 @Test
 public void testAsync() {
 doAnswer(new AnswerVoid() {

 @Override
 public Void answer(InvocationOnMock invocation) throws
 Throwable {
 AsyncCallbackCommandResult callback =
 (AsyncCallbackCommandResult) invocation.getArguments()[1];
 callback.onSuccess(new CommandResult());
 return null;
 }
 }).when(commandProcessor).execute(any(Command.class),
 any(AsyncCallback.class));

 // invoke something that sends the command ... then verify the
 results
 verify(...)...;
 }

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

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



Re: Why this code can't get the event??

2011-08-12 Thread Jambi
On 12 Aug., 11:07, Ivan Pulleyn ivan.pull...@gmail.com wrote:
 I notice that you are removing the widget from it's parent. That doesn't
 seem correct.

I´m thinking the same. You should probably just hide the widget

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



Securing activities/places etc based on roles

2011-08-12 Thread Craig Greenhalgh
Hi is there an existing framework where I can secure activities or 
places based on a users roles?


Thanks

Craig

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



Running Unit Test Emulating FF3.6

2011-08-12 Thread pedjak
  Hi,

  I would like to run GWT unit tests using HtmlUnit that emulates
FF3.6, but by looking at the code in RunStyleHtmlUnit class, I have
realized that possible HtmlUnit browser emulations are narrowed down
to FF3, I6, and IE7. Is there any particular reason for that?

  Best,

Predrag

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



Do proxy objects necessarily reduce client side entity manipulation to functional programming?

2011-08-12 Thread Nick Siderakis
I want to load a bunch of data to the client, graph it (via Google 
Visualization API), have the user manipulate it (client side only), and 
regraph it...and so on.

I really like the selling points of requestfactory, but I find my self 
between a rock and a hard place.

**When I was using POJOs for domain objects (with GWT-RPC) I could get the 
data on to the client and manipulate it arbitrarily (using 
its mutator methods, which may contain complex logic) and then regraph it. 
 The manipulated data doesn't need to be saved. 

With requestfactory I only see two options:

1. Manipulate the domain proxies on the client functionally, which might 
duplicate behavior that already exists in the server objects.

2. Do the work on the server, which would request a request for each 
manipulation, not a good idea.

I may be misusing requestfactory...

Any ideas?


-- 
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/-/ibjF24LtzssJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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-12 Thread Nick Siderakis
take a look at the code in http://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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/xWnPHCsNlmgJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: appengine connected android project wizard example

2011-08-12 Thread RS
At last.

The version of beta eclipse plugin available now (late july - early
aug 2011) hasn't worked independently.

Workaround is to install 2.3 plugin and then install 2.4 beta plugin
on eclipse indigo (3.7) not helios.
After installing 2.4beta on top on 2.3, it would have auto updated
what it needs to. Avoid the temptation to point to the beta plugin in
eclipse preferences. Also don't uninstall 2.3 plugin.

With this workaround, the appengine connected android code generated
by the wizard works out of the box.

On Aug 10, 12:42 pm, RS rajeshs...@gmail.com wrote:
 in the example problem isn't at c2dm but while registering with the
 appengine
 (C2DMReceiver.java gets success but DeviceRegistrar.java fails to pass
 the info)

 On Aug 8, 12:11 pm, RS rajeshs...@gmail.com wrote:







  Could somebody fromC2DMteam throw some light?
  DoesC2DMassume that everybody uses the new android market client app
  (vending.apk)?

  The new market (which has movies etc) is so far available within the
  US only.
  If this is the reason, could they make sure thatc2dmand the
  'appengine connected android app' skeletal example work with the
  earlier version of market too?

  On Aug 7, 3:19 pm, RS rajeshs...@gmail.com wrote:

   Just many more fresh installs and fresh trials.
   Re-re-re requestedC2DMfor the same id and same/different package.
   (apparently package name filled in that form doesn't really matter)

   Got reply of acceptance. Waited few more days.

   No change.
   Registration from android device invariably fails.

   Waiting for official reply (thatC2DMserver has been set right) or
   GAE plugin update.

   Also tried with an independently written code.

   On Aug 7, 8:06 am, Marcus Franzen franzen.mar...@gmail.com wrote:

I have got the same problem, did you get it working?

On 5 Aug., 00:48, RS rajeshs...@gmail.com wrote:

 GWT plugin for eclipse'sappengineconnectedandroidprojectwizard's
 output example used to work, doesn't work for a freshprojectany
 more.

 Well things do get generated and compile butC2DMregistration fails
 in theandroiddevice/emulator irrespective of live or local server.

 Have spent good time with different machines and fresh eclipse
 installations.

 Any workarounds? Any suggestions to go back to the old state where it
 used to work?

 Regards.
 RS

-- 
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: CellTree and SelectionModel

2011-08-12 Thread tom

Hi,

As a workaround, I've implemented onBrowserEvent() in the Cells I use to 
display my data.

Like here: 
https://groups.google.com/d/topic/google-web-toolkit/mWdBS9kavuc/discussion

Still interested in a clean solution via SelectionModel.

-- 
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/-/5OUp3p9LB1cJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Should DecoratorPanel implement ProvidesResize?

2011-08-12 Thread Francis
Try this 
DecoratorLayoutPanelhttp://www.hkwebentrepreneurs.com/2011/08/gwt-decoratorlayoutpanel.htmlclass

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



Drop files onto Web Page

2011-08-12 Thread Sean
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 view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/SpqdRSR1RKAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 meets iOS: Gwt4Titanium Mobile 1.0 coming soon

2011-08-12 Thread ahmet kara
That is great Alain!

Creating mobile apps for both platforms just with one way and best way
with java. This is what I was looking for.

I hope there will be sample projects with the release :). I am looking
forward to see it.

On 12 Ağustos, 12:28, leandro borbosa leandrob...@googlemail.com
wrote:
 Woah ! This is mind blowing! Really impressive stuff going on the group here
 latelly.
 Google gotta love what people are cming up with :)

 I was looikng for a way to get around Objective C. This sounds  like a good
 solution
 When are you going to release ?

 2011/8/12 Alain Ekambi jazzmatad...@googlemail.com







  Hello folks,

  The next release of our Gwt4 products familly in coming soon.
  We are exited to annouce you the addition  of a new GWT module called  
  *Gwt4Titanium
  Mobile*.
  This module leverages the  Appceletator titanium platform and enables  to
  write *native mobile applications for iOS and Android*

  This means that using a GWT API one will be able to write on code and
  deploy to Android and iOs.
  Below is a sample code of the API

  /**
   * Entry point classes define codeonModuleLoad()/code.
   */
  public class TiMobile implements EntryPoint {

    public void onModuleLoad() {

      AlertDialog alertDialog = UI.createAlertDialog();

      alterDialog.setTitle(Gwt4Titanium Mobile 1.0);

      alterDialog.setMessage(Emitron says: Hello, World !);

      JsArrayString buttons = JsArrayString.createArray().cast();

      buttons.push(OK);

      alertDialog.setButtonNames(buttons);

      alertDialog .show();

    }
  }

  and attached  is the result on iPhone, Android and iPad

  [image: ti.png]

  We are really exited about this new capabilities and looking forward  to
  hearing your inputs.

  The gwt4 Team
  --

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

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



  ti.png
 265KGörüntüleİndir

-- 
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 Designer not supported GXT API's

2011-08-12 Thread Ramaprasad Reddy
 Hi,

I have used Eclipse as a IDE (3.4.2) to develop the GWT Application
using GWT(2.2.0) and GXT(2.2.4) libraries and installed GWT Designer
plug-in in eclipse IDE , the designer plug-in installed successfully.
I have tried to open GWT Entry point class (onModuleLoad) in the
designer view but its closing eclipse IDE instead of opening entry
point class in the designer view. I imported GXT LayoutContainer class
in GWT Entry point class. As per the product documentation GWT
designer supports GXT API's
Could you please let me know if you have any documents which describes
how to design pages with GXT widgets using GWT designer.

Your help is much appreciated.

Eagerly waiting for your reply.

Thanks
Ram

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



Updating a celllist from a JSONP call

2011-08-12 Thread Paul Browne
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.



Load Testing Tool for GWT

2011-08-12 Thread Benoit Cantais
Hi,

Is there any easy way to make parameterizable load test for GWT ? I
tried to use JMeter and Grinder. But when i get the generated script
of my test, both of these tools gave me an unreadable request. The
scripts works fine but it doesn't appear to be easily reusable with
different parameters.

Result with grinder :

/* Understandable code */

result = request101.POST('URL_path',
  '5|0|15|http://URLPATH/|AAE01B9BA413A1202D73415F6358B8FA|
net.customware.gwt.dispatch.client.service.DispatchService|execute|
net.customware.gwt.dispatch.shared.Action|...
962170901|...|2|',
  ( NVPair('Content-Type', 'text/x-gwt-rpc; charset=utf-8'), ))

/* Understandable code */

I am not able to find how to put the variables in this result.

For example, i am actually trying to test a login page.

I need two parameters : The login and the password. I would like to
make load test with login/password coming from a .csv (for example)
file, to test what happen when 100 people try to login in
simultaneously.


Thank you for your help. Sorry for my english.

Benoit


-- 
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: Standalone zip download of GWT Designer

2011-08-12 Thread DMcC
Does anyone have the latest standalone links?

On Jul 6, 3:23 am, Eric Clayberg - Instantiations clayb...@gmail.com
wrote:
 The problem is that you are looking at an old post about a prior
 release.

 The current release is v2.3.2 rather than v2.3.1.

 On Jul 5, 1:44 am, Eckhard Rimkus rimkus.eckh...@googlemail.com
 wrote:







  Dear Eric

  when trying to download thiszip-File, I receive only an error
  message. What is my problem?

  Best regards

  Eckhard

  On 16 Jun., 22:47, Eric Clayberg clayb...@google.com wrote:

   For Eclipse 3.6...

  http://dl.google.com/eclipse/inst/d2gwt/latest/3.6/GWTDesigner_v2.3.1...

   On Jun 14, 5:29 pm, beluga enalp...@yahoo.com wrote:

Hi -

I don't get through the corporate firewall with eclipse updater but I
can transfer azipfile if I get hold of it. Does anyone know how to
get hold of theGWTDesignerstandalonezip? Ideally the beta, since
I'm struggling with the type not found bug in the currentGWTrelease.

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.



Widget Calendario

2011-08-12 Thread jose felix estevez
buenas amigo estoy en busqueda de algun widget  que me cumpla con la
funcion de desplegar un calendario con la fecha.

-- 
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: Widget Calendario

2011-08-12 Thread Hilario Perez Corona
Please, use english on this group.

-- 
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/-/DWodS_-Xr_oJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Widget Calendario

2011-08-12 Thread jose felix estevez
sorry but I have responded in Spanish, in this group.

2011/8/12 Hilario Perez Corona hpcor...@gmail.com

 Please, use english on this group.

 --
 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/-/DWodS_-Xr_oJ.

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




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

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



Re: Widget Calendario

2011-08-12 Thread Juan Pablo Gardella
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/datepicker/client/DatePicker.html

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

 sorry but I have responded in Spanish, in this group.


 2011/8/12 Hilario Perez Corona hpcor...@gmail.com

 Please, use english on this group.

 --
 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/-/DWodS_-Xr_oJ.

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




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


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


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



Re: Load Testing Tool for GWT

2011-08-12 Thread Jeff Chimene
On 08/12/2011 07:48 AM, Benoit Cantais wrote:
 Hi,
 
 Is there any easy way to make parameterizable load test for GWT ? I
 tried to use JMeter and Grinder. But when i get the generated script
 of my test, both of these tools gave me an unreadable request. The
 scripts works fine but it doesn't appear to be easily reusable with
 different parameters.
 
 Result with grinder :
 
 /* Understandable code */
 
 result = request101.POST('URL_path',
   '5|0|15|http://URLPATH/|AAE01B9BA413A1202D73415F6358B8FA|
 net.customware.gwt.dispatch.client.service.DispatchService|execute|
 net.customware.gwt.dispatch.shared.Action|...
 962170901|...|2|',
   ( NVPair('Content-Type', 'text/x-gwt-rpc; charset=utf-8'), ))
 
 /* Understandable code */
 
 I am not able to find how to put the variables in this result.

Any language that has a nice regex parser could take this string apart
and reassemble it with the contents of a .csv

I'd put my marker on Perl, but when you know that language. every
problem looks like a nail.


 
 For example, i am actually trying to test a login page.
 
 I need two parameters : The login and the password. I would like to
 make load test with login/password coming from a .csv (for example)
 file, to test what happen when 100 people try to login in
 simultaneously.
 
 
 Thank you for your help. Sorry for my english.
 
 Benoit
 
 

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

2011-08-12 Thread Matthias Rauer
Yes, you are right,there are some classes you cannot use on client
side. But in this case I ll get another compile exception.

The other team member haven't these problems, that I have :-( They use
Windows 7 64-bit.


On 11 Aug., 15:44, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 At first, I think you can't use File classes in GWT (client side).

 2011/8/11 Matthias Rauer rauer1...@googlemail.com Hello,

  I am getting compile errors. Looks like caching or synchronize
  problems.
     [java] Caused by: javax.imageio.IIOException: Can't create cache
  file!
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
      [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
      [java]     ... 35 more
      [java] Caused by: java.io.FileNotFoundException: Z:
  \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die Datei
  zugreifen, da sie von einem anderen Prozess verwendet wird)
      [java]     at java.io.RandomAccessFile.open(Native Method)
      [java]     at java.io.RandomAccessFile.init(RandomAccessFile.java:
  212)
      [java]     at

  javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput­Stream.java:
  73)
      [java]     at

  com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
  50)
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
      [java]     ... 36 more

  ---

  C:\...\build\build.xml:459: IOException in C:\...\build\tmp\web\WEB-INF
  \config\coreReportInvoiceConfig.xml - java.io.FileNotFoundException:C:
  \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der
  Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen
  Prozess verwendet wird)
  in english: process cannot access file, another process uses this file

  ---
  same exception again... but different file

      [java] Caused by: javax.imageio.IIOException: Can't create cache
  file!
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
      [java]     at javax.imageio.ImageIO.write(ImageIO.java:1558)
      [java]     ... 35 more
      [java] Caused by: java.io.FileNotFoundException: Z:
  \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die Datei
  zugreifen, da sie von einem anderen Prozess verwendet wird)
      [java]     at java.io.RandomAccessFile.open(Native Method)
      [java]     at java.io.RandomAccessFile.init(RandomAccessFile.java:
  212)
      [java]     at

  javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput­Stream.java:
  73)
      [java]     at

  com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
  50)
      [java]     at
  javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
      [java]     ... 36 more
  ---

  If I compile again and again, I got different exceptions, like these:

  I already changed the extra and workDir to an RamDisk, deleted these
  directories before compiling, Deleted these directories before the
  build, but got same errors again. I also changed number of workers to
  1.

  Any suggestions?

  Greetings,
  Matthias

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



how to access the real session?

2011-08-12 Thread Dennis Haupt
i tried to save an attribute via an async servlet call to get it later from
another page. i did it like this:

class x extends remoteserviceservlet
...
final Object attribute =
getThreadLocalRequest().getSession().getAttribute(variableName);


but this doesn't work. the result seems to depend on a mysterious something.
i suspect it being the thread itself. if i store something on page a, it's
not visible in page b's session. if i return to page a, it's there again.
sometimes. how can i save attributes in a way that stores them in the real
session across all pages?

is the session i get via getThreadLocalRequest() depending in the current
thread? if yes how to get the actual session?

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

2011-08-12 Thread Magno Machado
Isn't there any other process that may be blocking the folder/files?

On Fri, Aug 12, 2011 at 1:53 PM, Matthias Rauer rauer1...@googlemail.comwrote:

 Yes, you are right,there are some classes you cannot use on client
 side. But in this case I ll get another compile exception.

 The other team member haven't these problems, that I have :-( They use
 Windows 7 64-bit.


 On 11 Aug., 15:44, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  At first, I think you can't use File classes in GWT (client side).
 
  2011/8/11 Matthias Rauer rauer1...@googlemail.com Hello,
 
   I am getting compile errors. Looks like caching or synchronize
   problems.
  [java] Caused by: javax.imageio.IIOException: Can't create cache
   file!
   [java] at
   javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
   [java] at javax.imageio.ImageIO.write(ImageIO.java:1558)
   [java] ... 35 more
   [java] Caused by: java.io.FileNotFoundException: Z:
   \imageio2197704682044189508.tmp (Der Prozess kann nicht auf die Datei
   zugreifen, da sie von einem anderen Prozess verwendet wird)
   [java] at java.io.RandomAccessFile.open(Native Method)
   [java] at
 java.io.RandomAccessFile.init(RandomAccessFile.java:
   212)
   [java] at
 
  
 javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput­Stream.java:
   73)
   [java] at
 
  
 com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
   50)
   [java] at
   javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
   [java] ... 36 more
 
   ---
 
   C:\...\build\build.xml:459: IOException in C:\...\build\tmp\web\WEB-INF
   \config\coreReportInvoiceConfig.xml - java.io.FileNotFoundException:C:
   \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der
   Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen
   Prozess verwendet wird)
   in english: process cannot access file, another process uses this file
 
   ---
   same exception again... but different file
 
   [java] Caused by: javax.imageio.IIOException: Can't create cache
   file!
   [java] at
   javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397)
   [java] at javax.imageio.ImageIO.write(ImageIO.java:1558)
   [java] ... 35 more
   [java] Caused by: java.io.FileNotFoundException: Z:
   \imageio5137244568657246113.tmp (Der Prozess kann nicht auf die Datei
   zugreifen, da sie von einem anderen Prozess verwendet wird)
   [java] at java.io.RandomAccessFile.open(Native Method)
   [java] at
 java.io.RandomAccessFile.init(RandomAccessFile.java:
   212)
   [java] at
 
  
 javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput­Stream.java:
   73)
   [java] at
 
  
 com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:
   50)
   [java] at
   javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393)
   [java] ... 36 more
   ---
 
   If I compile again and again, I got different exceptions, like these:
 
   I already changed the extra and workDir to an RamDisk, deleted these
   directories before compiling, Deleted these directories before the
   build, but got same errors again. I also changed number of workers to
   1.
 
   Any suggestions?
 
   Greetings,
   Matthias
 
   --
   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.




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



Re: GWT Compiler Errors

2011-08-12 Thread Dennis Haupt
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

drive full?

Am 12.08.2011 20:38, schrieb Magno Machado:
 Isn't there any other process that may be blocking the folder/files?
 
 On Fri, Aug 12, 2011 at 1:53 PM, Matthias Rauer 
 rauer1...@googlemail.com mailto:rauer1...@googlemail.com wrote:
 
 Yes, you are right,there are some classes you cannot use on client 
 side. But in this case I ll get another compile exception.
 
 The other team member haven't these problems, that I have :-( They
 use Windows 7 64-bit.
 
 
 On 11 Aug., 15:44, Juan Pablo Gardella gardellajuanpa...@gmail.com 
 mailto:gardellajuanpa...@gmail.com wrote:
 At first, I think you can't use File classes in GWT (client side).
 
 2011/8/11 Matthias Rauer rauer1...@googlemail.com
 mailto:rauer1...@googlemail.com Hello,
 
 I am getting compile errors. Looks like caching or synchronize 
 problems. [java] Caused by: javax.imageio.IIOException: Can't
 create cache file! [java] at 
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) 
 [java] at javax.imageio.ImageIO.write(ImageIO.java:1558) 
 [java] ... 35 more [java] Caused by:
 java.io.FileNotFoundException: Z: \imageio2197704682044189508.tmp
 (Der Prozess kann nicht auf die
 Datei
 zugreifen, da sie von einem anderen Prozess verwendet wird) 
 [java] at java.io.RandomAccessFile.open(Native Method) [java]
 at
 java.io.RandomAccessFile.init(RandomAccessFile.java:
 212) [java] at
 
 
 javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput­Stream.java:

 
 73)
 [java] at
 
 
 com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:

 
 50)
 [java] at 
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393) 
 [java] ... 36 more
 
 ---
 
 C:\...\build\build.xml:459: IOException in
 C:\...\build\tmp\web\WEB-INF
 \config\coreReportInvoiceConfig.xml -
 java.io.FileNotFoundException:C:
 \...build\tmp\web\WEB-INF\config\rep1473609419171320889.tmp (Der 
 Prozess kann nicht auf die Datei zugreifen, da sie von einem
 anderen Prozess verwendet wird) in english: process cannot access
 file, another process uses
 this file
 
 --- same exception again... but different file
 
 [java] Caused by: javax.imageio.IIOException: Can't create cache 
 file! [java] at 
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:397) 
 [java] at javax.imageio.ImageIO.write(ImageIO.java:1558) 
 [java] ... 35 more [java] Caused by:
 java.io.FileNotFoundException: Z: \imageio5137244568657246113.tmp
 (Der Prozess kann nicht auf die
 Datei
 zugreifen, da sie von einem anderen Prozess verwendet wird) 
 [java] at java.io.RandomAccessFile.open(Native Method) [java]
 at
 java.io.RandomAccessFile.init(RandomAccessFile.java:
 212) [java] at
 
 
 javax.imageio.stream.FileCacheImageOutputStream.init(FileCacheImageOutput­Stream.java:

 
 73)
 [java] at
 
 
 com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInst­ance(OutputStreamImageOutputStreamSpi.java:

 
 50)
 [java] at 
 javax.imageio.ImageIO.createImageOutputStream(ImageIO.java:393) 
 [java] ... 36 more ---
 
 If I compile again and again, I got different exceptions, like
 these:
 
 I already changed the extra and workDir to an RamDisk, deleted
 these directories before compiling, Deleted these directories
 before the build, but got same errors again. I also changed
 number of
 workers to
 1.
 
 Any suggestions?
 
 Greetings, Matthias
 
 -- 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 
 mailto:google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com
 mailto:google-web-toolkit%2bunsubscr...@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 
 mailto:google-web-toolkit@googlegroups.com. To unsubscribe from
 this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com 
 mailto:google-web-toolkit%2bunsubscr...@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.


- -- 
Mit freundlichen Grüßen,

Dennis Haupt

Singleton instance in RPC AsynCall with two or more RPCs

2011-08-12 Thread Miguel Ruiz Rodriguez
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.



CellTable

2011-08-12 Thread jose felix estevez
good friends, I am trying to put together a fileupdater celltable with
an idea.

-- 
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 Designer: some panels showing up blank

2011-08-12 Thread Eric Clayberg
There are two issues here. The first appears to be a issue with WebKit not 
properly rendering CaptionPanels all the time. GWT Designer uses WebKit for 
all widget rendering and simply shows you what WebKit generates (for better 
or worse). We are looking in to possible work arounds as we have had to work 
around numerous WebKit problems like this in the past.

As to the second problem with the VerticalPanel, I tried your examples and 
it worked just fine on my end. I suspect this may be a known issue with 
physical display size as described 
herehttps://bugs.eclipse.org/bugs/show_bug.cgi?id=352153. How 
big is your physical display? We usually see the sort of 
truncation/clipping you describe when part of the panel is outside the 
bounds that would fit on the physical display. This is a know OS limitation. 
Using a larger display (either physical or virtual) can solve the problem. 
An even better approach would be to break the panel up into smaller sub 
panels that are each small enough to fit within the physical screen 
boundaries.

-- 
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/-/g3d3LmK16LUJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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 Designer not supported GXT API's

2011-08-12 Thread Eric Clayberg
The only GWT Designer GXT docs are 
herehttp://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html.
 
Note that GXT is only supported for GWT Java classes and not UiBinder files.

If you are having a problem, you should post a complete test case and 
associated stack traces and/or log files.

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



Image from resource in SafeHtmlTemplate

2011-08-12 Thread Micah Caldwell
I have an image from a ClientBundle resource:
final String myImageUrl = new 
Image(Resources.sSingleton.GetMyImage()).getUrl();

I also have a SafeHtmlTemplates interface:
public interface MyTemplates extends SafeHtmlTemplates {
@Template(img src='{1}'/)
SafeHtml GenerateCellHtml(String imageUrl);
}

When I call MyTemplates.GenerateCellHtml an exception is thrown because the 
URL output by Image.getUrl(), when the image comes from a resource, does not 
have one of the supported protocols (http, https, ftp, etc.).

Is it possible to use SafeHtmlTemplates with an Image sourced from a 
ClientBundle?  Am I stuck manually building the HTML string in the middle of 
my Java code using SafeHTMLBuilder?

-- 
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/-/XZnb_u4238EJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Image from resource in SafeHtmlTemplate

2011-08-12 Thread Micah Caldwell
For the curious, this is what is returned by Image.getUrl():


Implementing Cut, Copy Paste in a page having 70 odd widgets

2011-08-12 Thread Vemuri Karthik
Hi,

I am trying to implement the cut, copy and paste functionality for a
page that has around 70 widgets including text boxes, list boxes,
labels, containers, panels and so on. The cut, copy and paste buttons
are part of these. When a User selects text in some text box in the
page and clicks on copy, the text box loses focus and the copy button
now has it. I need the text to call a method that has some Javascript
call in it like:

$wnd.window.clipboardData.setData(Text,text);

In order for me to do that I need text from the text box and because
the copy button now has it, I do not know where it has been selected
from.

Can anyone let me know if they have done anything similar before using
GWT?

-- 
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: Is it ever possible for an asynchronous service method's callback to get called without yielding to the browser's event loop?

2011-08-12 Thread Karthik Reddy
See the example under *Non-Blocking / Asynchronous:*  and it gives a clear 
example addressing Tad's question:

http://quickleft.com/blog/142

-- 
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/-/0bs5XTEIFt4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: TreeItem child widgets do not have onAttach called

2011-08-12 Thread lkcl


On Aug 11, 12:34 am, Jim Douglas jdou...@basis.com wrote:
 Have you considered using this version of TreeItem, which takes a
 Widget?

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)

 that's the exact [equivalent] class being used, and it's the exact
same class [equivalent] that we've made a 6-line patch to, in order to
fix the bug that has been found [in the exact corresponding equivalent
pyjamas codebase, pyjamas/library/gwt/ui/TreeItem.py].

 The TreeItem isn't itself a Widget, but it can contain a Widget, and
 that contained Widget (think of it as a tree item renderer) can manage
 its own events.

 that's the point, jim: it *doesn't* manage its own events, because
onAttach is never called on the widgets that are added to the
TreeItem.

 thus, anything that's added to TreeItem is completely isolated, as
far as events are concerned.  no onClick, no onDoubleClick, no
onMouseMove, no onMouseUp - nothing.

 i apologise - i realise that it's quite difficult to appreciate that
the pyjamas codebase is the same - functionally - as GWT, to the point
where it's possible to refer developers to the GWT online
documentation rather than have to write our own.

 it's virtually identical to that of GWT, so much so that we can
actually use language translator tools (automatic and semi-automatic)
to port GWT java to pyjamas python.

 but, yes, you've correctly identified the gwt UI class that will have
the exact same bug that was discovered by a pyjamas user.

 and, therefore, _because_ the code is effectively identical, there is
the exact same bug in GWT.

 what the user did was to take the code for onAttach and onDetach in
pyjamas/library/gwt/ui/Panel.py and cut/paste it into TreeItem.py.

 thus, correspondingly, to fix this bug in GWT, you (GWT developers)
need to take the exact same code that is in the gwt/ui/Panel.java
onAttach and onDetach functions, cut/paste it into gwt/ui/
TreeItem.java and the bug is fixed.

@begin namespace GWT's client/ui widgets on all widgets below
 but first, you need to realise that there _is_ a bug :)  for that,
you'll need to look at the example test-case provided by the pyjamas
user, and port it to GWT.  it's actually very simple: add a CheckBox
to a TreeItem; add the TreeItem to a Tree; add the Tree to a
RootPanel.  add a click handler to the CheckBox, which prints hello
world or something.
@end namespace

 click on the checkbox. you'll find that absolutely *nothing* happens.

 that's the bug.

 does that make sense?

 l.

-- 
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: TreeItem child widgets do not have onAttach called

2011-08-12 Thread lkcl


On Aug 11, 12:34 am, Jim Douglas jdou...@basis.com wrote:
 Have you considered using this version of TreeItem, which takes a
 Widget?

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)
 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/g...)

 okay.  right.  i didn't notice the 2nd link was to TreeItem.setWidget
(groups.google.com hid the text *sigh*).

 that calls tree.adopt.  i just went through the code, down to
Tree.java.  Tree.adopt calls setWidget (the base version).  setWidget
then calls onAttach.

 soo... actually... yeah, that might do the trick.  it's... klunky (as
in, it's non-standard behaviour) and thus is going to catch users
out.  i.e. if you _don't_ call that setWidget function, you're
stuffed.

 let me investigate further ok?

 l.

-- 
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 meets iOS: Gwt4Titanium Mobile 1.0 coming soon

2011-08-12 Thread Kathiravan Tamilvanan
Do you have a beta. Would love to give it a try :-)

-- 
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/-/ZkK5XGA1zAMJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email 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: Implementing Cut, Copy Paste in a page having 70 odd widgets

2011-08-12 Thread mP
Suggestion: what about registering a lost focus listener that sets
some global variable when it loses fcous. Your cut/copy/paste buttons
could thencheck the glboal to figure out the last target the user
actually had.

On Aug 13, 7:40 am, Vemuri Karthik karthik...@gmail.com wrote:
 Hi,

 I am trying to implement the cut, copy and paste functionality for a
 page that has around 70 widgets including text boxes, list boxes,
 labels, containers, panels and so on. The cut, copy and paste buttons
 are part of these. When a User selects text in some text box in the
 page and clicks on copy, the text box loses focus and the copy button
 now has it. I need the text to call a method that has some Javascript
 call in it like:

 $wnd.window.clipboardData.setData(Text,text);

 In order for me to do that I need text from the text box and because
 the copy button now has it, I do not know where it has been selected
 from.

 Can anyone let me know if they have done anything similar before using
 GWT?

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



Detect *only* when browser is closing (WindowCloseListener)

2011-08-12 Thread Jose María Zaragoza

Hi:

I would like to detect *only* when browser is closing

About WindowCloseListener documentation, events are fired after the
browser window closes or navigates to a different site.
And I dont want to do anything when go to another site

How I can to know this ?

Thanks and regards

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



DataGrid GWT 2.4 RC1

2011-08-12 Thread News Club
Hi:

I want to try the DataGrid in 2.4 RC1 release. I took the CellTable example
and slightly modified it to use DataGrid. I could compile fine but nothing
gets displayed in the browser and no exceptions. I don't know why it is not
working.

Appreciate your help. Thanks.

NR

public class DataGridExample implements EntryPoint {
  private static class Contact {
private final String address;
private final Date birthday;
private final String name;

public Contact(String name, Date birthday, String address) {
  this.name = name;
  this.birthday = birthday;
  this.address = address;
}
  }

  private static final ListContact CONTACTS = Arrays.asList(
  new Contact(John, new Date(80, 4, 12), 123 Fourth Avenue),
  new Contact(Joe, new Date(85, 2, 22), 22 Lance Ln),
  new Contact(George, new Date(46, 6, 6), 1600 Pennsylvania
Avenue));

  public void onModuleLoad() {
DataGridContact table = new DataGridContact();
table.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED);

TextColumnContact nameColumn = new TextColumnContact() {
  @Override
  public String getValue(Contact object) {
return object.name;
  }
};
table.addColumn(nameColumn, Name);

DateCell dateCell = new DateCell();
ColumnContact, Date dateColumn = new ColumnContact, Date(dateCell) {
  @Override
  public Date getValue(Contact object) {
return object.birthday;
  }
};
table.addColumn(dateColumn, Birthday);

TextColumnContact addressColumn = new TextColumnContact() {
  @Override
  public String getValue(Contact object) {
return object.address;
  }
};
table.addColumn(addressColumn, Address);

final SingleSelectionModelContact selectionModel = new
SingleSelectionModelContact();
table.setSelectionModel(selectionModel);
selectionModel.addSelectionChangeHandler(new
SelectionChangeEvent.Handler() {
  public void onSelectionChange(SelectionChangeEvent event) {
Contact selected = selectionModel.getSelectedObject();
if (selected != null) {
  Window.alert(You selected:  + selected.name);
}
  }
});

table.setRowCount(CONTACTS.size(), true);

table.setRowData(0, CONTACTS);

RootPanel.get().add(table);
  }
}

-- 
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: Implementing Cut, Copy Paste in a page having 70 odd widgets

2011-08-12 Thread Karthik Vemuri
Yup... Thanks.. That's what I was thinking too... I should use the Blur handler 
now since we no longer use listeners

Regards,
Karthik Vemuri

On Aug 12, 2011, at 6:25 PM, mP miroslav.poko...@gmail.com wrote:

 Suggestion: what about registering a lost focus listener that sets
 some global variable when it loses fcous. Your cut/copy/paste buttons
 could thencheck the glboal to figure out the last target the user
 actually had.
 
 On Aug 13, 7:40 am, Vemuri Karthik karthik...@gmail.com wrote:
 Hi,
 
 I am trying to implement the cut, copy and paste functionality for a
 page that has around 70 widgets including text boxes, list boxes,
 labels, containers, panels and so on. The cut, copy and paste buttons
 are part of these. When a User selects text in some text box in the
 page and clicks on copy, the text box loses focus and the copy button
 now has it. I need the text to call a method that has some Javascript
 call in it like:
 
 $wnd.window.clipboardData.setData(Text,text);
 
 In order for me to do that I need text from the text box and because
 the copy button now has it, I do not know where it has been selected
 from.
 
 Can anyone let me know if they have done anything similar before using
 GWT?
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

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



[gwt-contrib] Adding configuration booleans to CellTable to refresh headers and footers only when needed. Cur... (issue1520803)

2011-08-12 Thread jlabanca

Reviewers: pengzhuang,

Description:
Adding configuration booleans to CellTable to refresh headers and
footers only when needed.  Currently, the headers and footers are
refreshed every time the data is redrawn, even though headers and
footers are often static or do not depend on the data.  Users can now
call #setAutoHeader/FooterRefreshDisabled() to disable this feature.
Headers and footers will still be redrawn when a column is inserted or
removed, but they will not be redrawn on every data update.  Users can
force the headers/footers to redraw synchronously by calling
#redrawHeaders/Footers.


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

Affected files:
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
  M  
samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwDataGrid.java

  M user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
  M  
user/test/com/google/gwt/user/cellview/client/AbstractCellTableTestBase.java



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


[gwt-contrib] [google-web-toolkit] r10522 committed - Adding configuration booleans to CellTable to refresh headers and foot...

2011-08-12 Thread codesite-noreply

Revision: 10522
Author:   gwt.mirror...@gmail.com
Date: Fri Aug 12 10:19:01 2011
Log:  Adding configuration booleans to CellTable to refresh headers and  
footers only when needed.  Currently, the headers and footers are refreshed  
every time the data is redrawn, even though headers and footers are often  
static or do not depend on the data.  Users can now call  
#setAutoHeader/FooterRefreshDisabled() to disable this feature.  Headers  
and footers will still be redrawn when a column is inserted or removed, but  
they will not be redrawn on every data update.  Users can force the  
headers/footers to redraw synchronously by calling #redrawHeaders/Footers.


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

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

Modified:
  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.java
  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java
  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwDataGrid.java

 /trunk/user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java
  
/trunk/user/test/com/google/gwt/user/cellview/client/AbstractCellTableTestBase.java


===
---  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.java	 
Wed Jul 27 04:19:13 2011
+++  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCellTable.java	 
Fri Aug 12 10:19:01 2011

@@ -130,6 +130,10 @@
 ContactDatabase.ContactInfo.KEY_PROVIDER);
 cellTable.setWidth(100%, true);

+// Do not refresh the headers and footers every time the data is  
updated.

+cellTable.setAutoHeaderRefreshDisabled(true);
+cellTable.setAutoFooterRefreshDisabled(true);
+
 // Attach a column sort handler to the ListDataProvider to sort the  
list.

 ListHandlerContactInfo sortHandler = new ListHandlerContactInfo(
 ContactDatabase.get().getDataProvider().getList());
@@ -163,10 +167,12 @@
   protected void asyncOnInitialize(final AsyncCallbackWidget callback) {
 GWT.runAsync(CwCellTable.class, new RunAsyncCallback() {

+  @Override
   public void onFailure(Throwable caught) {
 callback.onFailure(caught);
   }

+  @Override
   public void onSuccess() {
 callback.onSuccess(onInitialize());
   }
@@ -204,12 +210,14 @@
 };
 firstNameColumn.setSortable(true);
 sortHandler.setComparator(firstNameColumn, new  
ComparatorContactInfo() {

+  @Override
   public int compare(ContactInfo o1, ContactInfo o2) {
 return o1.getFirstName().compareTo(o2.getFirstName());
   }
 });
 cellTable.addColumn(firstNameColumn,  
constants.cwCellTableColumnFirstName());
 firstNameColumn.setFieldUpdater(new FieldUpdaterContactInfo,  
String() {

+  @Override
   public void update(int index, ContactInfo object, String value) {
 // Called when the user changes the value.
 object.setFirstName(value);
@@ -228,12 +236,14 @@
 };
 lastNameColumn.setSortable(true);
 sortHandler.setComparator(lastNameColumn, new  
ComparatorContactInfo() {

+  @Override
   public int compare(ContactInfo o1, ContactInfo o2) {
 return o1.getLastName().compareTo(o2.getLastName());
   }
 });
 cellTable.addColumn(lastNameColumn,  
constants.cwCellTableColumnLastName());
 lastNameColumn.setFieldUpdater(new FieldUpdaterContactInfo, String()  
{

+  @Override
   public void update(int index, ContactInfo object, String value) {
 // Called when the user changes the value.
 object.setLastName(value);
@@ -258,6 +268,7 @@
 };
 cellTable.addColumn(categoryColumn,  
constants.cwCellTableColumnCategory());
 categoryColumn.setFieldUpdater(new FieldUpdaterContactInfo, String()  
{

+  @Override
   public void update(int index, ContactInfo object, String value) {
 for (Category category : categories) {
   if (category.getDisplayName().equals(value)) {
@@ -280,6 +291,7 @@
 addressColumn.setSortable(true);
 addressColumn.setDefaultSortAscending(false);
 sortHandler.setComparator(addressColumn, new ComparatorContactInfo()  
{

+  @Override
   public int compare(ContactInfo o1, ContactInfo o2) {
 return o1.getAddress().compareTo(o2.getAddress());
   }
===
---  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java	 
Thu Jul 28 04:03:54 2011
+++  
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/content/cell/CwCustomDataGrid.java	 
Fri Aug 12 10:19:01 2011

@@ -549,12 +549,21 @@

 // Create a DataGrid.

-// Set a key provider that provides a unique key for each contact. If  
key is

-// used to identify contacts when 

[gwt-contrib] Re: Adding configuration booleans to CellTable to refresh headers and footers only when needed. Cur... (issue1520803)

2011-08-12 Thread jlabanca

committed as r10522

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

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


[gwt-contrib] Comment on RequestFactory_2_4 in google-web-toolkit

2011-08-12 Thread codesite-noreply

Comment by mana...@gurumades.com:

Is there any example on how one would use the new RequestBatcher to batch  
multiples operation from diffent type of RequestContext?


For more information:
http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_4

--
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-12 Thread jlabanca

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

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


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

2011-08-12 Thread rchandia

Reviewers: rjrjr, drfibonacci,

Description:
Fixes problem with datanucleus enhancement and Appengine deployment
- Migrated to Objectify
- Prevents gwt-dev.jar and gwt-user.jar from being deployed
- Prevents soycReport files from ending in the App Cache manifest
- Removed unused ant script file


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

Affected files:
  M samples/mobilewebapp/pom.xml
  D  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/Core.gwt.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinker.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/MobileWebApp.gwt.xml
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/EMF.java
  M  
samples/mobilewebapp/src/main/java/com/google/gwt/sample/mobilewebapp/server/domain/Task.java
  M  
samples/mobilewebapp/src/test/java/com/google/gwt/sample/core/linker/SimpleAppCacheLinkerTest.java

  D samples/mobilewebapp/user-build.xml


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


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

2011-08-12 Thread rjrjr

Reviewers: hermes, rchandia,

Description:
Pretty massive refactoring of FieldManager and HtmlTemplates to make
SafeUri work as expected. Similar will be needed for SafeStyles.

Introduces a hook in HtmlInterpreter to specialize parsing of specific
HTML attribute names, which previously were all String, period. And
each assignment of a FieldRef (that is, each call to
FieldReference#addLeftHandType) can now have multiple possible
values. This allows href to accept references to SafeUri or String,
and to prefer the former.

Took this opportunity to improve error reporting related to bad field
references: actual line numbers on type mismatch. Tidied error message
language in general while there. To this end, FieldReferences and
their left hand types now keep track of the XMLElement they came from.

Also simplifies the parsing code in XMLElement, possible now that
bundle attribute parsers are no more.


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

Affected files:
  M user/src/com/google/gwt/uibinder/attributeparsers/AttributeParser.java
  M user/src/com/google/gwt/uibinder/attributeparsers/AttributeParsers.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/BooleanAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/DoubleAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/EnumAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverter.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/HorizontalAlignmentConstantParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/IntAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/IntPairAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/LengthAttributeParser.java
  A  
user/src/com/google/gwt/uibinder/attributeparsers/SafeUriAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/StrictAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/StringAttributeParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/TextAlignConstantParser.java
  M  
user/src/com/google/gwt/uibinder/attributeparsers/VerticalAlignmentConstantParser.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/AttributeMessageInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/ComputedAttributeInterpreter.java

  M user/src/com/google/gwt/uibinder/elementparsers/FieldInterpreter.java
  M user/src/com/google/gwt/uibinder/elementparsers/HtmlInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/HtmlMessageInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/IsRenderableInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/RenderablePanelParser.java

  M user/src/com/google/gwt/uibinder/elementparsers/TextInterpreter.java
  M  
user/src/com/google/gwt/uibinder/elementparsers/UiSafeHtmlInterpreter.java

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

  M user/src/com/google/gwt/uibinder/rebind/AbstractFieldWriter.java
  M user/src/com/google/gwt/uibinder/rebind/FieldManager.java
  M user/src/com/google/gwt/uibinder/rebind/FieldReference.java
  M user/src/com/google/gwt/uibinder/rebind/MonitoredLogger.java
  M user/src/com/google/gwt/uibinder/rebind/MortalLogger.java
  M user/src/com/google/gwt/uibinder/rebind/Tokenator.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
  M user/src/com/google/gwt/uibinder/rebind/XMLAttribute.java
  M user/src/com/google/gwt/uibinder/rebind/XMLElement.java
  D user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplate.java
  D user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplateArgument.java
  A  
user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplateMethodWriter.java

  D user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplates.java
  A user/src/com/google/gwt/uibinder/rebind/model/HtmlTemplatesWriter.java
  M user/test/com/google/gwt/uibinder/LazyWidgetBuilderSuite.java
  M user/test/com/google/gwt/uibinder/UiBinderJreSuite.java
  M user/test/com/google/gwt/uibinder/UiBinderSuite.java
  M  
user/test/com/google/gwt/uibinder/attributeparsers/FieldReferenceConverterTest.java
  M  
user/test/com/google/gwt/uibinder/attributeparsers/HorizontalAlignmentConstantParserTest.java
  M  
user/test/com/google/gwt/uibinder/attributeparsers/HorizontalAlignmentConstantParser_Test.java
  M  
user/test/com/google/gwt/uibinder/attributeparsers/IntAttributeParserTest.java
  M  
user/test/com/google/gwt/uibinder/attributeparsers/IntPairAttributeParserTest.java
  M  
user/test/com/google/gwt/uibinder/attributeparsers/LengthAttributeParserTest.java
  A  
user/test/com/google/gwt/uibinder/attributeparsers/SafeUriAttributeParserTest.java
  M  

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

2011-08-12 Thread zundel

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

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


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

2011-08-12 Thread rjrjr

On 2011/08/12 21:05:01, rchandia wrote:

From an offline note sent by Rodrigo:

This maven project is far from perfect though:
- Gwtc complains that gwt-dev.jar is in the classpath (but this is
necessary to compile the linker)
- The deployed app contains symbol maps (which can't be removed because
gwtc runts too late in the maven phases)
- Contains compiled client class files and the linker classes (but they
are needed for DevMode and gwtc runs too late)

In truth this sample should rather use a multi-project maven structure
(composed of gae, client, server and linker sub-projects), but:
- I did not want to pollute the fixes with a folder reorganization
- It makes the sample harder to use:
  - First it would require a 'mvn install' from the root of the sample
to ensure gae dependencies are reachable (the client, server and linker
projects)
  - Then, to perform any 'mvn {gwt,gae}:xxx' operation it would be
necessary to cd to the gae sub-project

Would it be worthwhile to make this change in structure?

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-12 Thread rjrjr

I think you're right to keep this patch focussed on simply making the
thing work again. Ugly as it is, this might be enough fixing to let us
get 2.4 out the door.

But let's try to corner Dave for a chat on Monday before making that
call, get his read on both the mvn structure and the Objectify usage.


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
Do you still need this entry?

http://gwt-code-reviews.appspot.com/1521803/diff/1/samples/mobilewebapp/pom.xml#newcode73
samples/mobilewebapp/pom.xml:73: /dependency
Are user and dev really provided? I thought GPE backs off and relies on
maven to download them.

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? --
While you're in here, did you try eliminating this and other who is
items?

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

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

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 --
We don't care about AspectJ any more, right? Update this?

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();
populateDatastore uses its own emf. Does the one in findAllTasks
actually see the changes populateDatastore makes -- did you actually see
the samples show up?

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();
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.

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) {
I bet you can delete this.

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

--
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-12 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#newcode367
dev/core/src/com/google/gwt/dev/javac/PersistentUnitCache.java:367: */
Note to self: Before there was a synchronize(unitMap) block around this
loop and I need to put it back.

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

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