Re: GWT Spring integration - what is the best method in late 2010?

2010-09-17 Thread lalit
Hi Jason,

I agree that both the approaches are same. But I still have a feeling
that gwtDispatch uses Spring MVC infra to do its job. The code that
you have posted above has WebApplicationContext. Also I looked into
gwtDispatch code and it seems it is using Spring MVC infra. The code I
looked into is here
http://code.google.com/p/gwt-dispatch/source/browse/src/main/java/net/customware/gwt/dispatch/server/spring/SpringStandardDispatchServlet.java

Another thing you mentioned in your mail that you do not have to code
two interfaces which looked interesting. If possible can you elaborate
on that? We would like to incorporate that in our approach also if
possible.

thanks,


On Sep 16, 7:15 pm, Jason Hatton jashat...@gmail.com wrote:
 Lalit we are not using Spring MVC.  We am using gwt-dispatch and have
 extended that project's dispatch servlet to get the Spring integration.  We
 then added a custom annotation to pick up the appropriate dispatch action
 handler for a particular GWT-RPC on the server side.  All of our GWT-RPC
 calls go through this servlet so we avoid the overhead and code bloat of
 having to create the standard GWT-RPC interfaces for every new service call
 we want to implement.  I looked over your example again and they are pretty
 similar.  I like your integration approach with Spring but I prefer service
 call handling because we don't have to code the two separate RPC interfaces,
  i.e. the Service and ServiceAsync for every service we want to implement.
  We just create an new dispatch handler apply an annotation to it and we are
 off and running.



 On Wed, Sep 15, 2010 at 11:33 PM, lalit lalit.bh...@gmail.com wrote:
  Deepak - I have used the following structure
    SpringApplicationContext, SpringGwtRemoteServiceServlet ,
  PersonServiceImpl go into the server side code.
   The interfaces PersonService and PersonServiceAsync  become part of
  GWT client side code.

  Regarding wsdl files consumption see the section on JAX-WS here
 http://www.lalitbhatt.com/tiki-index.php?page=JAX-WSespeciall JAX-WS
  client side section. This approach uses JAX-WS approach.

  For data binding you can use JAXB. The details can be seen here
 http://www.lalitbhatt.com/tiki-index.php?page=JAXB. JAX-WS anyway uses
  it internally.

  Also just a disclaimer, the approach I took is as per Spring4GWT
  project so it's there idea.

  Jason- I looked into your approach and conceptually they look similar
  in terms of that you are redirecting the request to Spring MVC
  infrastructure. IMHO the aprroach I took as per Sping4GWT is better as
  one does not have to carry the SpringMVC baggage.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: showing all the elements from SuggestOracle in suggestionBox

2010-09-17 Thread Santosh kumar
ya you are rite !!

Thank you for replying ..!!

On Fri, Sep 10, 2010 at 2:40 PM, ciosbel andrew...@gmail.com wrote:

 I don't suggest you to do that. I think it's quite misleading for the
 user. A better solution should be to show a popup with a message like
 no suggestions found or something like that.
 It's quite simple using 2.1 milestones: extend either
 SuggestBox.DefaultSuggestionDisplay or SuggestBox.SuggestionDisplay
 and override showSuggestions method, checking if suggestions.size() is
 zero and displaying a no suggestions found popup instead of the
 default one.

 If you really want to implement the behavior you mentioned, maybe this
 hint could be useful too, but atm i have no idea on how to do that.

 ciosbel.
 On Sep 8, 1:52 pm, Santosh kumar kopp@gmail.com wrote:
  Hi *ciosbel*,
 
  Thank you for your reply ..!!
 
  As u said, i am using setDefaultSuggestionsFromText method, its working
  fine.. !!! i thought solution would be very difficult...
  Its coool !! thank you once again !!!
 
  setDefaultSuggestionsFromText(Collectionjava.lang.String
 suggestionList)
  using this method, if their is no match found for the key pressed, Here i
 am
  displaying nothing. But after onChange its displaying the
  DefaultSuggestList.
 
  But my thinking is immediate onPress of the key i have to display the
 popup
  DefaultSuggestList if their is no match found for the key pressed.
 
  Please let me know if you know the solution ..!!
 
 
 
  On Wed, Sep 8, 2010 at 3:45 AM, ciosbel andrew...@gmail.com wrote:
   Instead defining your own oracle (which is, indeed, the best
   solution), just use a MultiWordSuggestOracle.
   There you can find methods like:
 
   setDefaultSuggestions(CollectionSuggestOracle.Suggestion
   suggestionList)
   or
   setDefaultSuggestionsFromText(Collectionjava.lang.String
   suggestionList)
 
   You can simply add suggestions to you oracle (oracle.add ...) and then
   use one of the above to set default suggestions.
   Now, using yourSuggestBoxInstance.showSuggestionList(), *all* your
   suggestions will popup.
   Remember that the oracle that provides suggestion and the default set
   you specified using one of the above are two different things, with
   two different purposes. So, if your list of suggestions will change in
   future (i.e. after a clear/add in the oracle) just remember to reset
   the defaults.
 
   If you want to display them *all* on textbox focus...
 
   yourSuggestBoxInstance.getTextBox().addFocusHandler(new FocusHandler()
   {
public void onFocus(FocusEvent event) {
  // showing all default suggestions
  yourSuggestBoxInstance.showSuggestionList();
}
   });
 
   Do note also, that with 2.1 milestones the interface of the suggestbox
   has been slightly changed. In particular you can now define your own
   display for the popup, and use it instead of the default (and a bit
   old) one. The custom popup can be defined by either extending
   SuggestBox.SuggestionDisplay (if you start from zero), or
   SuggestBox.DefaultSuggestionDisplay if you want to start from the
   default one.
 
   Hope it helps.
 
   cios.
   On 7 Set, 12:46, Santosh kumar kopp@gmail.com wrote:
Hi ,
 
I am adding the items to the suggestoracle on onmodule load. Its
 working
fine if the match is found for the key pressed (alphabet) .
But i want to show *all Existing Items* from the suggestoracle when
 their
   is
no match found for the key pressed (alphabet) by the user ???
 
Pls let me know if any one knows the solution ..!!
 
On Fri, Aug 13, 2010 at 7:19 PM, ctasada ctas...@gmail.com wrote:
 You can send me a private message attaching the source of your
 class,
 so I can take a look.
 
 I'm using it in my code without problems.
 
 On Aug 13, 6:33 am, aditya sanas 007aditya.b...@gmail.com wrote:
  Hello,
 
  yes you are right we dont have direct access to SuggestBox
 Popups.
 
  I have already extended SuggestOracle and have overridden method
 
  requestSuggestion(request,callback);
 
  code for the following as follows :
 
  public class StartsWithSuggestOracle extends SuggestOracle
  {
 //...  some other code...
 
  *@Override*
  *public void requestSuggestions(Request request, Callback
   callback) *
  *{ *
  *final List suggestions =
 
 computeItemsFor(request.getQuery().toLowerCase(),request.getLimit());
   *
  *Response response = new Response(suggestions); *
  *callback.onSuggestionsReady(request, response); *
  *} *
 
  }
 
  and the underlined method computeItemsFor(); returns me the
   suggestions
  based upon request so as per my
 
  logic if request contains no character that is an empty string 
 i
   have
  returned all suggestions from oracle object.
 
  so here i m able to get this response correctly but i m nt
 getting
   wht
  should be done next with this response.
 
   

Re: ScrolPanel Question

2010-09-17 Thread Santosh kumar
Hi skippy,

ScrollPanel, its automatically adjust the scroll bars.


ScrollPanel scrollPanel = new ScrollPanel();
scrollPanel.setSize(width, height);
scrollPanel.clear();
RootPanel.get(div-id).clear();
RootPanel.get(div-id).add(scrollPanel);


On Sat, Sep 11, 2010 at 2:03 AM, skippy al.leh...@fisglobal.com wrote:

 I need to ack a scrolPanel if its vertical scrol bar is visible,  If
 so, I need to adjust the width of the table.

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




-- 
Thanks  Regards

*S a n t o s h  k u m a r . k*

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Custom map

2010-09-17 Thread chinese
It seems to be pretty! I'll try and then I'll communicate my results.
Thanks a lot.

Bye!

On 15 Set, 15:44, Mikael Couzic mikaelcou...@gmail.com wrote:
 I heard some guys did pretty crazy stuff with OpenLayers, like Tetris-
 style games. So I guess displaying an image in background and some
 clickable geometries and/or icons on top should be pretty easy.
 BTW, OpenLayers is a web mapping JS library. Check out its GWT wrapper
 (GWT-OpenLayers) if you plan on using it in a GWT project.

 On 14 sep, 22:49, A2Person1978 amarzumkhaw...@gmail.com wrote: If you can 
 turn your custom map on your file system into a KML file,
  you could then create a google map on your application that utilizes
  the KML file.

  On Sep 12, 5:36 am, chinese daniela.ie...@gmail.com wrote:

   Hello everyone!
   I have a question about custom map in GWT.
   In fact, I've to create an application within an interactive map like
   google maps, but the map is uploaded from my file system. For example,
   I have an apartment map and I want to upload it in my application to
   use it for create clickable object on it.
   Is it possible?
   Thank you
   Bye!

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



Re: Can we run selenium tests in GWT dev mode?

2010-09-17 Thread Andrey
That doesn't work. My question is: how should we run selenium in dev
mode?

On Sep 16, 6:13 pm, András Csányi sayusi.a...@gmail.com wrote:
 On 16 September 2010 16:07, Andrey mino...@gmail.com wrote:

  Or we should compile the app first?

 I think you can run the test because dev mode uses the browser.
 Basicly you can see in the browser. But - this is my opinion - this
 way not so effective. You can check that the test are okay or not for
 example, but hard to use in a real testing environment.

 --
 - -
 --  Csanyi Andras (Sayusi Ando)  
 --http://sayusi.hu--http://facebook.com/andras.csanyi
 --  Bízzál Istenben és tartsd szárazon a puskaport!.-- Cromwell

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 available on Google GWT-Homepage :-)

2010-09-17 Thread AlexG
Hi @ all,

On the Google GWT homepage, I found the GWT-Designer, ready to
download.
I just want to inform you, that it seems to be available. It´s
OpenSource now,
so have fun trying it.

Greets Alex

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



Frame border problem in IE8

2010-09-17 Thread HenrikA
Making HTML content blend into your application using Frames worked
well inn all browsers except IE8 (and older ?) where getting rid of
the frame borders turned out to be quite tedious.

We first resolved it by creating our own IFrame widget, but then
resolved it by just extending the Frame class.
The problem is that IE8 requires the frameborder to be set prior to
attachment, and Frame does not have any methods to manipulate this.
The solution:


public class IFrame extends Frame {

public IFrame (){

super(init());
}

public IFrame (String url){
this();
setUrl(url);
}

/**
 *
 */
private static Element init() {
IFrameElement ife = Document.get().createIFrameElement();
ife.setMarginHeight(0);
ife.setMarginWidth(0);
ife.setFrameBorder(0);
ife.setAttribute(width, 100%);
ife.setAttribute(height, 100%);
ife.setAttribute(framespacing,0);
return Element.as(ife);
}
}

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 the same object at the server and client

2010-09-17 Thread Janko
Hi!

I am trying to modify the stockwatcher example (http://code.google.com/
webtoolkit/doc/latest/tutorial/appengine.html#data) that the
getStocks() in StockServiceImpl.java would return a list of Stocks
object defined in com.google.gwt.sample.stockwatcher.server.

I am having problems with using the data object at the client side.

Can you please help me??

What do I need to do?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 available on Google GWT-Homepage :-)

2010-09-17 Thread aditya sanas
Yeah its a great opensource tool launched by Google.
Fun using it.
makes client side's job easier than before.
I think this would be a great answer for all those questions which were
raised in the past about GWT's future.
Google is thinking about GWT and making it more and more easier to use.
Cheers to Google.
--
Aditya


On Fri, Sep 17, 2010 at 2:10 PM, AlexG alexander.gauss.ax...@googlemail.com
 wrote:

 Hi @ all,

 On the Google GWT homepage, I found the GWT-Designer, ready to
 download.
 I just want to inform you, that it seems to be available. It´s
 OpenSource now,
 so have fun trying it.

 Greets Alex

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 available on Google GWT-Homepage :-)

2010-09-17 Thread Jaroslav Záruba
Hopefully it will help making the out-of-the-box widget library a little bit
richer. :)

On Fri, Sep 17, 2010 at 12:45 PM, aditya sanas 007aditya.b...@gmail.comwrote:

 Yeah its a great opensource tool launched by Google.
 Fun using it.
 makes client side's job easier than before.
 I think this would be a great answer for all those questions which were
 raised in the past about GWT's future.
 Google is thinking about GWT and making it more and more easier to use.
 Cheers to Google.
 --
 Aditya


 On Fri, Sep 17, 2010 at 2:10 PM, AlexG alexander.gauss.ax.ag@
 googlemail.com wrote:

 Hi @ all,

 On the Google GWT homepage, I found the GWT-Designer, ready to
 download.
 I just want to inform you, that it seems to be available. It´s
 OpenSource now,
 so have fun trying it.

 Greets Alex

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Frame border problem in IE8

2010-09-17 Thread Thomas Broyer


On Sep 17, 11:13 am, HenrikA henrik.abe...@gmail.com wrote:
 Making HTML content blend into your application using Frames worked
 well inn all browsers except IE8 (and older ?) where getting rid of
 the frame borders turned out to be quite tedious.

 We first resolved it by creating our own IFrame widget, but then
 resolved it by just extending the Frame class.
 The problem is that IE8 requires the frameborder to be set prior to
 attachment, and Frame does not have any methods to manipulate this.
 The solution:

How about the following? wouldn't it work too?

// would work equally well with NamedFrame
Frame f = new Frame(url);

// those 5 lines could be moved into a utility method
ensureBorderLessFrame(Frame)
IFrameElement ife = IFrameElement.as(f.getElement());
ife.setMarginHeight(0);
ife.setMarginWidth(0);
ife.setFrameBorder(0);
ife.setAttribute(framespacing,0);

// size really shouldn't be set by the widget itself
f.setSize(100%, 100%);

// now you can add it to any panel you like:
container.add(f);

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



Re: Using the same object at the server and client

2010-09-17 Thread Janko
PS: I get the did you forget to inherit a required module error..

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



Re: Using the same object at the server and client

2010-09-17 Thread Brett Thomas
I think you need to move the stock class from the .server. package to
.shared. so the client knows about it

On Fri, Sep 17, 2010 at 7:09 AM, Janko janko.sla...@gmail.com wrote:

 PS: I get the did you forget to inherit a required module error..

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



Re: Using the same object at the server and client

2010-09-17 Thread AlexG
Ji Janko,

yes you get this Error Message, if the client doesn´t know
the source-code of the object. As Brett said, move it to the
shared package.

Note: You can´t use persisted classes on the client. But in the
StockWatcher example there nothing is persisted, so moving
your class to the shared package will solve your problem.

Greets Alex

On 17 Sep., 13:09, Janko janko.sla...@gmail.com wrote:
 PS: I get the did you forget to inherit a required module error..

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



Re: Using the same object at the server and client

2010-09-17 Thread Janko
Thank you for the quick response.

I now get the 13:25:23.531 [ERROR] [homework] Line 9: The import
com.google.appengine cannot be resolved
Line 9 is: import com.google.appengine.api.users.User;

I found I need probably inherit it... in what way? what do I need to
do?


On Sep 17, 1:13 pm, Brett Thomas brettptho...@gmail.com wrote:
 I think you need to move the stock class from the .server. package to
 .shared. so the client knows about it







 On Fri, Sep 17, 2010 at 7:09 AM, Janko janko.sla...@gmail.com wrote:
  PS: I get the did you forget to inherit a required module error..

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs 
  cr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Eclipse Project not always updating classes

2010-09-17 Thread AlexG
Hi Samuru,

maybe you have two instances of your App running? This could be one
reason.
Make sure, that you close all instances, then clean your project, and
retry.

The classes in the war/WEB-INF directory are only classes in your
server package.
Maybe they should be re-enhanced??

You can also try, restarting Eclipse, this solved several problems for
me, when
I had similar problems.

I hope this helps a little.

Greets Alex


On 16 Sep., 16:48, Samuru Jackson samurujack...@googlemail.com
wrote:
 Hi,

 I have the problem, that sometimes it happens that my changed code in /
 src/* is not updated in /war/WEB-INF/classes/*

 Even if I delete the affected class in /war/* it puts an old version
 of the class again back into /war/* .

 How can this happen? Is there a cache somewhere around?

 Project - Clean does not work

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 available on Google GWT-Homepage :-)

2010-09-17 Thread aditya sanas
here is the link for the reference -
http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/smartgwt.html
--
Aditya


2010/9/17 Jaroslav Záruba jaroslav.zar...@gmail.com

 Hopefully it will help making the out-of-the-box widget library a little
 bit richer. :)

 On Fri, Sep 17, 2010 at 12:45 PM, aditya sanas 
 007aditya.b...@gmail.comwrote:

 Yeah its a great opensource tool launched by Google.
 Fun using it.
 makes client side's job easier than before.
 I think this would be a great answer for all those questions which were
 raised in the past about GWT's future.
 Google is thinking about GWT and making it more and more easier to use.
 Cheers to Google.
 --
 Aditya


 On Fri, Sep 17, 2010 at 2:10 PM, AlexG alexander.gauss.ax.ag@
 googlemail.com wrote:

 Hi @ all,

 On the Google GWT homepage, I found the GWT-Designer, ready to
 download.
 I just want to inform you, that it seems to be available. It´s
 OpenSource now,
 so have fun trying it.

 Greets Alex

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-toolkit@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 available on Google GWT-Homepage :-)

2010-09-17 Thread Jaroslav Záruba
That's exactly the framework that made me running back to GWT's native
components.

On Fri, Sep 17, 2010 at 1:33 PM, aditya sanas 007aditya.b...@gmail.comwrote:

 here is the link for the reference -

 http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/smartgwt.html
 --
 Aditya


 2010/9/17 Jaroslav Záruba jaroslav.zar...@gmail.com

 Hopefully it will help making the out-of-the-box widget library a little
 bit richer. :)

 On Fri, Sep 17, 2010 at 12:45 PM, aditya sanas 
 007aditya.b...@gmail.comwrote:

 Yeah its a great opensource tool launched by Google.
 Fun using it.
 makes client side's job easier than before.
 I think this would be a great answer for all those questions which were
 raised in the past about GWT's future.
 Google is thinking about GWT and making it more and more easier to use.
 Cheers to Google.
 --
 Aditya


 On Fri, Sep 17, 2010 at 2:10 PM, AlexG alexander.gauss.ax.ag@
 googlemail.com wrote:

 Hi @ all,

 On the Google GWT homepage, I found the GWT-Designer, ready to
 download.
 I just want to inform you, that it seems to be available. It´s
 OpenSource now,
 so have fun trying it.

 Greets Alex

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



Re: Using the same object at the server and client

2010-09-17 Thread Janko
Hi Alex and Thomas.

This is really fast:D
I guess the Stock.java is persisted:
---
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Stock {

  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Long id;
  @Persistent
  private User user;
  @Persistent
  private String symbol;
  @Persistent
  private Date createDate;
---

Alex if I get you right I cannot use this object on the client side?
Is there another way I could move the data to client? Creating a
similar class on the client side is an option, but it is a relatively
bad option, because I would need to code both classes... Any ideas?

Thank you,
janko

On Sep 17, 1:30 pm, Janko janko.sla...@gmail.com wrote:
 Thank you for the quick response.

 I now get the 13:25:23.531 [ERROR] [homework] Line 9: The import
 com.google.appengine cannot be resolved
 Line 9 is: import com.google.appengine.api.users.User;

 I found I need probably inherit it... in what way? what do I need to
 do?

 On Sep 17, 1:13 pm, Brett Thomas brettptho...@gmail.com wrote:







  I think you need to move the stock class from the .server. package to
  .shared. so the client knows about it

  On Fri, Sep 17, 2010 at 7:09 AM, Janko janko.sla...@gmail.com wrote:
   PS: I get the did you forget to inherit a required module error..

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
cr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Using the same object at the server and client

2010-09-17 Thread AlexG
Hi again,

do you have the App-Engine-Library on your classpath?
It seems, that your App is missing this library.

Greets


On 17 Sep., 13:30, Janko janko.sla...@gmail.com wrote:
 Thank you for the quick response.

 I now get the 13:25:23.531 [ERROR] [homework] Line 9: The import
 com.google.appengine cannot be resolved
 Line 9 is: import com.google.appengine.api.users.User;

 I found I need probably inherit it... in what way? what do I need to
 do?

 On Sep 17, 1:13 pm, Brett Thomas brettptho...@gmail.com wrote:

  I think you need to move the stock class from the .server. package to
  .shared. so the client knows about it

  On Fri, Sep 17, 2010 at 7:09 AM, Janko janko.sla...@gmail.com wrote:
   PS: I get the did you forget to inherit a required module error..

   --
   You received this message because you are subscribed to the Google Groups
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
cr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Using the same object at the server and client

2010-09-17 Thread AlexG
Ji Jakob,

yes this is a persisted class. The jdo-annotations, tells
datanucleus to persist this in the datastore.

Yea, I´m sorry but you got me right. I ran into this too, when
I started to work with GWT and GAE.
The solution is quite simple, you already said it.
Make a so called: DataTransferObject for each persisted class.
This is a Design Pattern .. the DTO-Pattern.

And yes, it is not a good solution.

If you have time, and good Java-knowledge you can code a
Code-Generator, that generates the DataTransferObjects from
each persisted class. It´s a good solution if you have many
classes, that need DTO´s. Here you can just maintain the
perissted class und regenerate the DTO.

I foun d a nice solution, for me:
I store the object (in your case DTO) in the datastore.
So my persistet class looks like this:


@PersitenceCapable
class LetterDataBaseObject

@Persistent
Key key;

@Persistent
String myID;

@Persistent(serialized = true)
Letter myLetter

...


I generate a searchString, so I can still query my object.


For the beginning I would simple use the DTO-Pattern.


Greets Alex


P.S.: what about your import error?



On 17 Sep., 13:40, Janko janko.sla...@gmail.com wrote:
 Hi Alex and Thomas.

 This is really fast:D
 I guess the Stock.java is persisted:
 ---
 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class Stock {

   @PrimaryKey
   @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
   private Long id;
   @Persistent
   private User user;
   @Persistent
   private String symbol;
   @Persistent
   private Date createDate;
 ---

 Alex if I get you right I cannot use this object on the client side?
 Is there another way I could move the data to client? Creating a
 similar class on the client side is an option, but it is a relatively
 bad option, because I would need to code both classes... Any ideas?

 Thank you,
 janko

 On Sep 17, 1:30 pm, Janko janko.sla...@gmail.com wrote:

  Thank you for the quick response.

  I now get the 13:25:23.531 [ERROR] [homework] Line 9: The import
  com.google.appengine cannot be resolved
  Line 9 is: import com.google.appengine.api.users.User;

  I found I need probably inherit it... in what way? what do I need to
  do?

  On Sep 17, 1:13 pm, Brett Thomas brettptho...@gmail.com wrote:

   I think you need to move the stock class from the .server. package to
   .shared. so the client knows about it

   On Fri, Sep 17, 2010 at 7:09 AM, Janko janko.sla...@gmail.com wrote:
PS: I get the did you forget to inherit a required module error..

--
You received this message because you are subscribed to the Google 
Groups
Google Web Toolkit group.
To post to this group, send email to 
google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to
google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 and concurrency

2010-09-17 Thread Johannes Lehmann
Hi,

here is something that has been puzzeling me (and that may just be
because I have misunderstood something trivial): I have read that
JavaScript interpreters are usually single threaded. A page on
supported language features seems to imply that for this reason, GWT
doesn't not honor the synchronized keyword and does not provide any
other locking mechanisms. Also of course you can't create more threads
as you would in a normal Java application.

Not that I would want to do that but what I'm wondering is when the
Callbacks of AJAX calls are served. If they are served right away that
would be like introducing another thread and would in some cases
introduce the need for mutexes.

Here is a concrete example: I have a call that, say, fetches a String
Foo. Foo is needed at a few places in my program, so I write a Proxy
method that will cache Foo so it is only fetched once. So on a call of
that method it will check if Foo is in the cache and if not make the
AJAX call (the method will also 'return' Foo via an AsyncCallback).

This implementation will of course still fetch Foo multiple times,
since the method will likely have been called more than once before
the AJAX call returns and can cache the value of Foo. So what I would
like to do is for my Proxy method, to store a list of requests for
example like so:

private ListAsyncCallbackString callbacks = new ...;
private String foo;

public FooProxy {
  MyServiceAsync.getFoo(new AsyncCallback() {
/* On Success, cache the value in foo and notify all callbacks */
  });
}

public void getFoo(AsyncCallbackString callback) {
  if(foo != null) callback.onSuccess(foo);
  else callbacks.add(callback);
}

But if the callback from MyServiceAsync.getFoo can interrupt a call to
getFoo at any time, this is clearly not 'thread safe'. However without
any language support, I don't think it can be made so...

Am I making any false assumptions here? Is there any other obvious way
of achieving the desired effect?

Thanks,

Johannes

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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-maven-plugin: include files from src/main/test for gwt:debug

2010-09-17 Thread Thalles
Thanks, I'll have a look at this.

Bye Henry

On Sep 16, 4:55 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
 On 16 September 2010 06:18, Thalles henry.rotz...@googlemail.com wrote:

  Does anybody have an idea? Thanks in advance!

 http://mojo.codehaus.org/build-helper-maven-plugin/index.htmlis
 probably what you need.

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



Gettting an error when the app starts

2010-09-17 Thread harjit.singh

Hi there,

When I try to run the app which is compiled in Gwt 2.0  in IE 8 I keep
getting this exception quiet a lot. If I run the same app in Firefox,
I don't see the error. Here is a stack trace

08:32:38.251 [ERROR] [gwebtop] Uncaught exception escaped
java.lang.ExceptionInInitializerError: null
at
com.google.gwt.user.client.ui.PopupPanel.setState(PopupPanel.java:
1387)
at com.google.gwt.user.client.ui.PopupPanel.show(PopupPanel.java:
969)
at com.google.gwt.user.client.ui.DialogBox.show(DialogBox.java:
347)
at com.bnpp.gtop.client.Gtop$1.onSuccess(Gtop.java:47)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
216)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:393)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.refle

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 supply bindAddress

2010-09-17 Thread Nairutee
If you are using an Eclipse IDE,

i) you will need to have the latest GWT plugin for Eclipse
http://code.google.com/eclipse/docs/getting_started.html .

ii) In the Run / Debug configurations in the arguments tab you will
need to provide
-bindAddress 0.0.0.0 (0 should be replaced by the ip you wish to bind
to)

If it still doesnt work, delete the existing configuration and create
a new one with the -bindAddress argument included.

Hope that helps

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Complier OutOfMemory issue

2010-09-17 Thread lin.liang
The OutOfMemory exception always happen when the gwt project was
complied. The gwt project has 7 modules, and about 5,700 java files.

I have a look at gwt docs. It said that when the project became
bigger, the complier using the memory more too. However, I have set
the memory to 1.7G, it still report the OutOfMemory exception. Is this
the bug of gwt complier? How can I do to solve this issue?

I have no clue about this so far. Look forward your response. 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Return permutation directly from the server without selection script.

2010-09-17 Thread Helder Suzuki
+1

On Aug 4, 9:17 am, André Moraes andr...@gmail.com wrote:
 Hi,

 I saw the presentation of the GWT team and they talked about sending the
 permutation without sending first the selection script.

 I can read the HTTP headers and find-out what is the browser which is making
 the request, this is the easy part.

 But how can I find-out which file was generated by which permutation in the
 GWT compiler pipeline? I belive that I will need to write a linker to get
 those files, but how?

 Thanks.

 --
 André Moraes
 Analista de Desenvolvimento de Sistemas
 andr...@gmail.comhttp://andredevchannel.blogspot.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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 error - Unable to open file /templates/Composite.jvt from UiBinder

2010-09-17 Thread Eric Clayberg
Anything prior to GWT 2.1M3 does not support the GWT Designer hooks
required to provide WYSIWYG editing of UiBinder components. You need
at least GWT 2.1M3 for visual editing, and even newer to also support
the ui:field attribute and the @UiField annotation.

The missing UiBinder template file is available through a quick update
from the Eclipse Update Manager.

Note that the UiBinder support is GWT Designer is still in beta and
rapidly evolving ;-)

On Sep 16, 5:04 pm, Paul Stockley pstockl...@gmail.com wrote:
 I remember seeing changes being made to the core of GWT to support
 UiBinder editing. That is why you need 2.1M3. Even then I don't think
 it is complete yet

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



Re: GWT and concurrency

2010-09-17 Thread Thomas Broyer


On Sep 17, 2:17 pm, Johannes Lehmann
johannes.lehma...@googlemail.com wrote:
 Hi,

 here is something that has been puzzeling me (and that may just be
 because I have misunderstood something trivial): I have read that
 JavaScript interpreters are usually single threaded. A page on
 supported language features seems to imply that for this reason, GWT
 doesn't not honor the synchronized keyword and does not provide any
 other locking mechanisms. Also of course you can't create more threads
 as you would in a normal Java application.

 Not that I would want to do that but what I'm wondering is when the
 Callbacks of AJAX calls are served. If they are served right away that
 would be like introducing another thread and would in some cases
 introduce the need for mutexes.

 Here is a concrete example: I have a call that, say, fetches a String
 Foo. Foo is needed at a few places in my program, so I write a Proxy
 method that will cache Foo so it is only fetched once. So on a call of
 that method it will check if Foo is in the cache and if not make the
 AJAX call (the method will also 'return' Foo via an AsyncCallback).

 This implementation will of course still fetch Foo multiple times,
 since the method will likely have been called more than once before
 the AJAX call returns and can cache the value of Foo. So what I would
 like to do is for my Proxy method, to store a list of requests for
 example like so:

 private ListAsyncCallbackString callbacks = new ...;
 private String foo;

 public FooProxy {
   MyServiceAsync.getFoo(new AsyncCallback() {
     /* On Success, cache the value in foo and notify all callbacks */
   });

 }

 public void getFoo(AsyncCallbackString callback) {
   if(foo != null) callback.onSuccess(foo);
   else callbacks.add(callback);

 }

 But if the callback from MyServiceAsync.getFoo can interrupt a call to
 getFoo at any time, this is clearly not 'thread safe'. However without
 any language support, I don't think it can be made so...

 Am I making any false assumptions here? Is there any other obvious way
 of achieving the desired effect?

JavaScript, in browsers, runs in the UI thread or event-dispatching
thread. Whenever something happens (user clicks an element, timer
fires, XMLHttpRequest response arrives, image loads, etc.) it's posted
to the event queue. The UI thread continuously polls the event queue
for things to do and executes them right away. That's actually a
pretty standard behavior (I couldn't name a single GUI environment/
toolkit that doesn't revolve around an event loop).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Gettting an error when the app starts

2010-09-17 Thread Thomas Broyer


On Sep 17, 2:37 pm, harjit.singh harjit.si...@content-studios.com
wrote:
 Hi there,

 When I try to run the app which is compiled in Gwt 2.0  in IE 8 I keep
 getting this exception quiet a lot. If I run the same app in Firefox,
 I don't see the error. Here is a stack trace

 08:32:38.251 [ERROR] [gwebtop] Uncaught exception escaped
 java.lang.ExceptionInInitializerError: null
     at
 com.google.gwt.user.client.ui.PopupPanel.setState(PopupPanel.java:
 1387)

Could it be issue 4584? (in IE8 it would only happen if IE is *not*
running in IE8 Standards Mode, which you can check in the IE
Developer Tools (just hit F12 on your keyboard))
http://code.google.com/p/google-web-toolkit/issues/detail?id=4584

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



Re: GWT and concurrency

2010-09-17 Thread Johannes Lehmann
OK, that is basically what I assumed. This however seems to create
concurrency issues, which the synchronized keyword was designed to
address. Without any language support such as semaphores or mutexes
and without any guarantees regarding preemption, how could I solve a
problem such as the above?

Thanks,

Johannes

On Sep 17, 3:51 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Sep 17, 2:17 pm, Johannes Lehmann





 johannes.lehma...@googlemail.com wrote:
  Hi,

  here is something that has been puzzeling me (and that may just be
  because I have misunderstood something trivial): I have read that
  JavaScript interpreters are usually single threaded. A page on
  supported language features seems to imply that for this reason, GWT
  doesn't not honor the synchronized keyword and does not provide any
  other locking mechanisms. Also of course you can't create more threads
  as you would in a normal Java application.

  Not that I would want to do that but what I'm wondering is when the
  Callbacks of AJAX calls are served. If they are served right away that
  would be like introducing another thread and would in some cases
  introduce the need for mutexes.

  Here is a concrete example: I have a call that, say, fetches a String
  Foo. Foo is needed at a few places in my program, so I write a Proxy
  method that will cache Foo so it is only fetched once. So on a call of
  that method it will check if Foo is in the cache and if not make the
  AJAX call (the method will also 'return' Foo via an AsyncCallback).

  This implementation will of course still fetch Foo multiple times,
  since the method will likely have been called more than once before
  the AJAX call returns and can cache the value of Foo. So what I would
  like to do is for my Proxy method, to store a list of requests for
  example like so:

  private ListAsyncCallbackString callbacks = new ...;
  private String foo;

  public FooProxy {
    MyServiceAsync.getFoo(new AsyncCallback() {
      /* On Success, cache the value in foo and notify all callbacks */
    });

  }

  public void getFoo(AsyncCallbackString callback) {
    if(foo != null) callback.onSuccess(foo);
    else callbacks.add(callback);

  }

  But if the callback from MyServiceAsync.getFoo can interrupt a call to
  getFoo at any time, this is clearly not 'thread safe'. However without
  any language support, I don't think it can be made so...

  Am I making any false assumptions here? Is there any other obvious way
  of achieving the desired effect?

 JavaScript, in browsers, runs in the UI thread or event-dispatching
 thread. Whenever something happens (user clicks an element, timer
 fires, XMLHttpRequest response arrives, image loads, etc.) it's posted
 to the event queue. The UI thread continuously polls the event queue
 for things to do and executes them right away. That's actually a
 pretty standard behavior (I couldn't name a single GUI environment/
 toolkit that doesn't revolve around an event loop).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Return permutation directly from the server without selection script.

2010-09-17 Thread Etienne Lacazedieu
I wrote such a Linker :

/**
 * This GWT linker creates a properties file which can be used to
resolve Permutation Strong name given UserAgent and locale.
 *
 * @author Etienne Lacazedieu
 *
 */
@LinkerOrder(Order.PRE)
public class StrongNameOracleLinker extends AbstractLinker {
public static final String STRONGNAME_FILE = permutation.properties;

@Override
public String getDescription() {
return PermutationStrongName Oracle linker;
}

@Override
public ArtifactSet link(TreeLogger logger, LinkerContext context,
ArtifactSet artifacts) throws UnableToCompleteException {
artifacts = new ArtifactSet(artifacts);
ByteArrayOutputStream out = new ByteArrayOutputStream();

String permutation = null;
String locale = null;
String userAgent = null;
SelectionProperty selectionProperty = null;

Properties props = new Properties();

for (CompilationResult result :
artifacts.find(CompilationResult.class)) {
permutation = result.getStrongName();

SortedSetSortedMapSelectionProperty, String
propertiesMap = result.getPropertyMap();
for (SortedMapSelectionProperty, String sm : propertiesMap) {
for (Map.EntrySelectionProperty, String e : sm.entrySet()) {
selectionProperty = e.getKey();
if (locale.equals(selectionProperty.getName())) {
locale = e.getValue();
}
if (user.agent.equals(selectionProperty.getName())) {
userAgent = e.getValue();
}
}
}
props.setProperty(userAgent + . + locale, permutation);
}
try {
props.store(out, StrongNameOracle properties file);
} catch (IOException e) { // Should generally not happen
logger.log(TreeLogger.ERROR, Unable to store deRPC data, e);
throw new UnableToCompleteException();
}
SyntheticArtifact a = emitBytes(logger, out.toByteArray(),
STRONGNAME_FILE);
artifacts.add(a);

return artifacts;
}

}



2010/9/17 Helder Suzuki heldersuz...@gmail.com:
 +1

 On Aug 4, 9:17 am, André Moraes andr...@gmail.com wrote:
 Hi,

 I saw the presentation of the GWT team and they talked about sending the
 permutation without sending first the selection script.

 I can read the HTTP headers and find-out what is the browser which is making
 the request, this is the easy part.

 But how can I find-out which file was generated by which permutation in the
 GWT compiler pipeline? I belive that I will need to write a linker to get
 those files, but how?

 Thanks.

 --
 André Moraes
 Analista de Desenvolvimento de Sistemas
 andr...@gmail.comhttp://andredevchannel.blogspot.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-tool...@googlegroups.com.
 To unsubscribe from this group, send email 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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: de-mavenize a project

2010-09-17 Thread Brad
Just grab the GWTUpload jar and add it to your classpath.

On Sep 16, 12:20 pm, John nesre...@gmail.com wrote:
 A few weeks ago I was interested in GWTUpload, and I wanted to install
 it on Eclipse.  I saw the project maintainer had written:

 The project has been mavenized,...

 Well, over the past couple of years, I've seen people rant about how
 great maven is, and I've gone and looked at it.  My eyes glaze over
 after a few minutes.  FOR ME(!) it seems that maven is a lot of
 extra stuff to solve a problem I don't have.  I don't do large
 complicated projects--I'm totally content to push the little red
 suitcase with a C on it.

 I was so motivated to try poking at GWTUpload, I actually installed
 Maven on my Eclipse, and then installed GWTUpload, but when I saw the
 huge mess, I just deleted the entire project.  Doesn't seem reasonable
 to go through all the learning curve to solve a problem I don't have.

 What WOULD be nice though, is if there was a tutorial on how to
 de-mavenize a specifically GWT project (like GWTUpload), step 1, step
 2, step 3.  Could it be that easy?

 Hoping there might be an easy (ie minutes for both comprehending, and
 doing) way, and that I don't get flamed too much for a dumb question.

 John

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Complier OutOfMemory issue

2010-09-17 Thread Chris Conroy
That should be more than enough memory to run your compile. Do you have a
stack trace for the OOME?

FWIW, I have a pending change that should decrease the amount of memory
needed to run a compile or DevMode.

On Fri, Sep 17, 2010 at 7:19 AM, lin.liang birdandfis...@gmail.com wrote:

 The OutOfMemory exception always happen when the gwt project was
 complied. The gwt project has 7 modules, and about 5,700 java files.

 I have a look at gwt docs. It said that when the project became
 bigger, the complier using the memory more too. However, I have set
 the memory to 1.7G, it still report the OutOfMemory exception. Is this
 the bug of gwt complier? How can I do to solve this issue?

 I have no clue about this so far. Look forward your response. 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: de-mavenize a project

2010-09-17 Thread olivier nouguier
Or learn maven ;)

More seriously, you can easy de mavenize aproject, but maven will help
you:


   - mvn dependency:copy-dependencies will copy all dependencies in a folder
   target/dependency

Then you'll just have to add those lib in your build classpath.


   - mvn eclipse:clean eclipse:eclipse will build for you the .classpath
   (among others) file to run in eclipse without m2eclipse.




On Fri, Sep 17, 2010 at 4:47 PM, Brad barbedwire...@gmail.com wrote:

 Just grab the GWTUpload jar and add it to your classpath.

 On Sep 16, 12:20 pm, John nesre...@gmail.com wrote:
  A few weeks ago I was interested in GWTUpload, and I wanted to install
  it on Eclipse.  I saw the project maintainer had written:
 
  The project has been mavenized,...
 
  Well, over the past couple of years, I've seen people rant about how
  great maven is, and I've gone and looked at it.  My eyes glaze over
  after a few minutes.  FOR ME(!) it seems that maven is a lot of
  extra stuff to solve a problem I don't have.  I don't do large
  complicated projects--I'm totally content to push the little red
  suitcase with a C on it.
 
  I was so motivated to try poking at GWTUpload, I actually installed
  Maven on my Eclipse, and then installed GWTUpload, but when I saw the
  huge mess, I just deleted the entire project.  Doesn't seem reasonable
  to go through all the learning curve to solve a problem I don't have.
 
  What WOULD be nice though, is if there was a tutorial on how to
  de-mavenize a specifically GWT project (like GWTUpload), step 1, step
  2, step 3.  Could it be that easy?
 
  Hoping there might be an easy (ie minutes for both comprehending, and
  doing) way, and that I don't get flamed too much for a dumb question.
 
  John

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




-- 
Computers are useless. They can only give you answers.
- Pablo Picasso -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: plugin failed to connect to hosted mode server at 127.0.0.1:9997

2010-09-17 Thread consutes


Hi bouadma abderrazak,

are you found the solution?


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Custom widgets

2010-09-17 Thread Eric Clayberg
Definitely, yes!

Here are some relevant docs...

http://code.google.com/webtoolkit/tools/gwtdesigner/wizards/gwt/composite.html

http://code.google.com/webtoolkit/tools/gwtdesigner/features/custom_composites.html

On Sep 16, 2:20 pm, marius.andreiana marius.andrei...@gmail.com
wrote:
 Hi,

 It it possible to use custom widgets (which extend Composite) in GWT
 Designer, just like the standard GWT widgets?

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



Re: GWT and concurrency

2010-09-17 Thread Thomas Broyer


On Sep 17, 4:13 pm, Johannes Lehmann
johannes.lehma...@googlemail.com wrote:
 OK, that is basically what I assumed. This however seems to create
 concurrency issues, which the synchronized keyword was designed to
 address. Without any language support such as semaphores or mutexes
 and without any guarantees regarding preemption, how could I solve a
 problem such as the above?

Excuse my ignorance about semaphores/mutexes/preemption details, but
how can there be concurrency issues if things never execute
concurrently? (and *your* code will never execute concurrently with
*your* code)

If you really want the gory details:
http://www.whatwg.org/specs/web-apps/current-work/multipage/webappapis.html#event-loops

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Google Releases Instantiations Development Tools, Free Of Charge

2010-09-17 Thread Eric Clayberg
We are working hard on UiBinder support and some preliminary support
is in the current release (requires GWT 2.1M3 or better).

On Sep 16, 1:41 pm, chiappone chiapp...@gmail.com wrote:
 http://googlewebtoolkit.blogspot.com/2010/09/google-relaunches-instan...

 This seems like good news, curious if people have used these tools
 before? Are they helpful do they make use of UiBinder?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Frame border problem in IE8

2010-09-17 Thread HenrikA


On Sep 17, 1:01 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On Sep 17, 11:13 am, HenrikA henrik.abe...@gmail.com wrote:

  Making HTML content blend into your application using Frames worked
  well inn all browsers except IE8 (and older ?) where getting rid of
  the frame borders turned out to be quite tedious.

  We first resolved it by creating our own IFrame widget, but then
  resolved it by just extending the Frame class.
  The problem is that IE8 requires the frameborder to be set prior to
  attachment, and Frame does not have any methods to manipulate this.
  The solution:

 How about the following? wouldn't it work too?

 // would work equally well with NamedFrame
 Frame f = new Frame(url);

 // those 5 lines could be moved into a utility method
 ensureBorderLessFrame(Frame)
 IFrameElement ife = IFrameElement.as(f.getElement());
 ife.setMarginHeight(0);
 ife.setMarginWidth(0);
 ife.setFrameBorder(0);
 ife.setAttribute(framespacing,0);

 // size really shouldn't be set by the widget itself
 f.setSize(100%, 100%);

 // now you can add it to any panel you like:
 container.add(f);

I actually tried that, but it did not work in IE8.
I agree on the setSize() though.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: REST vs SOAP for calls to remote server

2010-09-17 Thread marius.andreiana
On Sep 17, 8:45 am, Sunny sravip...@gmail.com wrote:
 In step 2, on the server, using gwt can I make REST API calls to
 server B in domain B?
Yes.

On server/domain A you have
* gwt compiled files, including project_nocache.js
* assets such as css/images
* container.html which loads domainb.com/project.html in an iframe.

On server/domain B you have
* project.html, which loads domaina.com/project/project_nocache.js
* APIs

Clients can access either domainb.com/project.html or domaina.com/
container.html



 Thanks

 On Sep 16, 9:57 pm, marius.andreiana marius.andrei...@gmail.com
 wrote:



  On Sep 17, 6:27 am, Sunny sravip...@gmail.com wrote: Greetings,
                      I need to fetch data from a remote server which is
   not located in the same domain as the GWT application. My
   understanding is that as per same origin policy I might not be able to
   use REST. Is there a simple workaround or SOAP is the only
   alternative ?

  SOAP still requires your client app to make AJAX calls to server, so
  SOP restrictions would be the same. If the server it's not Java, I
  strongly recommend REST.

  Workarounds:
  1. Use CORShttp://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
  * use a proxy server if you can't modify the http headers of the
  server you are accessing
  * IE8  9 supports this, but via a proprietary XDomain object. So GWT
  has to be modified to use XDomain instead of XHR for IE, or you can
  recommend any other browser, which are standards based, to your users.
  2. Deploy GWT compiled files to the server, if possible. You'd only
  need a .html loaded in an iframe.  The HTML loads the rest of JS/CSS
  from your server.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Development Mode performance with Chrome

2010-09-17 Thread Michael Kelley
Speaking of other browsers, has anyone successfully gotten a GWT
plugin for Firefox 4.0 to work?

On Sep 16, 10:13 am, PhilBeaudoin philippe.beaud...@gmail.com wrote:
 I echo these thoughts. Chrome is easily my favorite browser for
 everything but testing my GWT apps in dev mode.

 On Sep 16, 6:04 am, Sean slough...@gmail.com wrote:



  I'm not sure if this deserves it's own post either, but I can't stand
  using Chrome in dev mode because when Debugging Chrome constantly
  informs me that the plugin has stopped responding and do I want to
  kill it. Is there anyway to say Don't Tell Me Again for the rest of
  this page's session? Or for this address? Something?

  On Sep 15, 8:33 pm, Michael Kelley

  kelley.pixelactive3d@gmail.com wrote:
   I have a WebGL application as well that is very slow in development
   mode.  Serialization takes minutes in development mode while it takes
   seconds in compiled mode.

   On Sep 15, 9:13 am, e...@2010 edwinfsm...@gmail.com wrote:

I would like to echo the sentiment of this request and in a similar
vein (and maybe this deserves a separate post) there is also an issue
with the performance of Chrome in compiled mode in the following
scenario:

I am using WebGL and when creating very large Float32Arrays (of maybe
90,000 elements) it takes an exceptionally long time. I am creating
only a few of these large arrays and it is instantaneous in Firefox
(less than two seconds as I would expect) but takes 8 minutes(!) in
the latest version of Chrome (and all previous versions). One thing
that I observe during these 8 minutes is that the page fault rate
(Windows XP) is about 160,000 page faults per second (for the entire 8
minutes) for the Chrome process and the VMSize is going up and down
all the time (varying from say 40MB to 50MB) instead of growing
monotonically. It certainly seems to be some kind of O(n*n) problem
and maybe even the garbage collector could be running as each element
of the array is allocated? I don't know.

Any ideas?

Thanks, Ed

On Sep 15, 6:34 am, Brian hibr...@gmail.com wrote:

 Can Chrome be made faster in development mode?

 I use Chrome as my default browser as I really like the development
 tools, but it's slow with gwt development mode.  On a table cell,
 there's a click handler.  The click handler displays a popup built
 with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
 takes approx 3 seconds from click to seeing the popup.  With Firefox
 (3.5.11) it's 'almost' instant -- fast enough anyway that it's not a
 performance issue.

 In Web Mode with everything compiled, Chrome is super fast again, no
 issues at all.  The perf loss is only in Dev mode.

 Any ideas?  Should I switch over to the production branch of chrome
 (and thus lose speed tracer)?

 -Brian

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Complier OutOfMemory issue

2010-09-17 Thread jocke eriksson
I had this trouble but my project was very small, but my solution was to
divide my clientbundles to smaller ones. processing lots of images can
consume very much memory.

2010/9/17 Chris Conroy con...@google.com

 That should be more than enough memory to run your compile. Do you have a
 stack trace for the OOME?

 FWIW, I have a pending change that should decrease the amount of memory
 needed to run a compile or DevMode.


 On Fri, Sep 17, 2010 at 7:19 AM, lin.liang birdandfis...@gmail.comwrote:

 The OutOfMemory exception always happen when the gwt project was
 complied. The gwt project has 7 modules, and about 5,700 java files.

 I have a look at gwt docs. It said that when the project became
 bigger, the complier using the memory more too. However, I have set
 the memory to 1.7G, it still report the OutOfMemory exception. Is this
 the bug of gwt complier? How can I do to solve this issue?

 I have no clue about this so far. Look forward your response. 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Custom Widget Creation - use widgets or elements?

2010-09-17 Thread Falcon
Hey all,

I'm creating my own version of a TabPanel that works in standards mode
and doesn't require one of the layout panels so that the content area
can take up just the amount of space needed for the content inside.

I have a panel container (which is a div), tab bar (a ul or ol), and
tab content container (another div).

My question is, would it be better to have all of those be widgets
(i.e. the containers would be HTMLPanels and the tab bar would then
need a custom HTMLList widget that I would write) or Elements (the
containers would be DivElements and the tab bar would be a
UListElement), or would there be a way to mix the two (HTMLPanels with
UListElement just for the tab bar)?

I'm assuming that having all of them be widgets would make sinking
events and selection handling easier, but I thought I would ask those
of you with more experience! 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[ERROR] [gmn] Unable to find 'gmn.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

2010-09-17 Thread ziv
hey everybody,

I am new to gwt programing, and I could really use some help..
I have been writing a GWT application with eclipse. I have a GMN.JAVA that has 
a class that I created. and I keep getting this error, what is the problem 
here?
a little about my hierchy:
GMN/src/com/gmn/ui/client/GMN.java
GMN/src/com/gmn/ui/server/GMNworld.java

my XML file: GMN/src/com/ui/GMN.gwt.xml
 
?xml version=1.0 encoding=UTF-8?
module rename-to='GMN'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/
  
  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --
  

  !-- Specify the app entry point class. --
  entry-point class='com.gmn.ui.client.GMN'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='server'/
  source path='shared'/

/module


HELP!!

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: REST vs SOAP for calls to remote server

2010-09-17 Thread Sunny
Thanks but I need more clarification so let me rephrase my question
which is  server/domain A has its own portal developed using GWT and
server/domain B is not GWT generated code and needs to exposes a API
to do CRUD operations from server/domain A so my question is if the
API on server/domain B is REST then I can make REST calls from server/
domain A ?

OR

Use Cross-Origin Resource Sharing which means serverB/domain B has to
change their HTTP headers.

On Sep 17, 9:21 am, marius.andreiana marius.andrei...@gmail.com
wrote:
 On Sep 17, 8:45 am, Sunny sravip...@gmail.com wrote: In step 2, on the 
 server, using gwt can I make REST API calls to
  server B in domain B?

 Yes.

 On server/domain A you have
 * gwt compiled files, including project_nocache.js
 * assets such as css/images
 * container.html which loads domainb.com/project.html in an iframe.

 On server/domain B you have
 * project.html, which loads domaina.com/project/project_nocache.js
 * APIs

 Clients can access either domainb.com/project.html or domaina.com/
 container.html



  Thanks

  On Sep 16, 9:57 pm, marius.andreiana marius.andrei...@gmail.com
  wrote:

   On Sep 17, 6:27 am, Sunny sravip...@gmail.com wrote: Greetings,
                   I need to fetch data from a remote server which is
not located in the same domain as the GWT application. My
understanding is that as per same origin policy I might not be able to
use REST. Is there a simple workaround or SOAP is the only
alternative ?

   SOAP still requires your client app to make AJAX calls to server, so
   SOP restrictions would be the same. If the server it's not Java, I
   strongly recommend REST.

   Workarounds:
   1. Use CORShttp://en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
   * use a proxy server if you can't modify the http headers of the
   server you are accessing
   * IE8  9 supports this, but via a proprietary XDomain object. So GWT
   has to be modified to use XDomain instead of XHR for IE, or you can
   recommend any other browser, which are standards based, to your users.
   2. Deploy GWT compiled files to the server, if possible. You'd only
   need a .html loaded in an iframe.  The HTML loads the rest of JS/CSS
   from your server.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Development Mode performance with Chrome

2010-09-17 Thread Chris Conroy
FF4 is not yet supported, but it will be soon.

On Fri, Sep 17, 2010 at 12:33 PM, Michael Kelley kelley.pixelactive3d.com@
gmail.com wrote:

 Speaking of other browsers, has anyone successfully gotten a GWT
 plugin for Firefox 4.0 to work?

 On Sep 16, 10:13 am, PhilBeaudoin philippe.beaud...@gmail.com wrote:
  I echo these thoughts. Chrome is easily my favorite browser for
  everything but testing my GWT apps in dev mode.
 
  On Sep 16, 6:04 am, Sean slough...@gmail.com wrote:
 
 
 
   I'm not sure if this deserves it's own post either, but I can't stand
   using Chrome in dev mode because when Debugging Chrome constantly
   informs me that the plugin has stopped responding and do I want to
   kill it. Is there anyway to say Don't Tell Me Again for the rest of
   this page's session? Or for this address? Something?
 
   On Sep 15, 8:33 pm, Michael Kelley
 
   kelley.pixelactive3d@gmail.com wrote:
I have a WebGL application as well that is very slow in development
mode.  Serialization takes minutes in development mode while it takes
seconds in compiled mode.
 
On Sep 15, 9:13 am, e...@2010 edwinfsm...@gmail.com wrote:
 
 I would like to echo the sentiment of this request and in a similar
 vein (and maybe this deserves a separate post) there is also an
 issue
 with the performance of Chrome in compiled mode in the following
 scenario:
 
 I am using WebGL and when creating very large Float32Arrays (of
 maybe
 90,000 elements) it takes an exceptionally long time. I am creating
 only a few of these large arrays and it is instantaneous in Firefox
 (less than two seconds as I would expect) but takes 8 minutes(!) in
 the latest version of Chrome (and all previous versions). One thing
 that I observe during these 8 minutes is that the page fault rate
 (Windows XP) is about 160,000 page faults per second (for the
 entire 8
 minutes) for the Chrome process and the VMSize is going up and down
 all the time (varying from say 40MB to 50MB) instead of growing
 monotonically. It certainly seems to be some kind of O(n*n) problem
 and maybe even the garbage collector could be running as each
 element
 of the array is allocated? I don't know.
 
 Any ideas?
 
 Thanks, Ed
 
 On Sep 15, 6:34 am, Brian hibr...@gmail.com wrote:
 
  Can Chrome be made faster in development mode?
 
  I use Chrome as my default browser as I really like the
 development
  tools, but it's slow with gwt development mode.  On a table cell,
  there's a click handler.  The click handler displays a popup
 built
  with UIBinder.  In development mode with Chrome (v 7.0.517.5), it
  takes approx 3 seconds from click to seeing the popup.  With
 Firefox
  (3.5.11) it's 'almost' instant -- fast enough anyway that it's
 not a
  performance issue.
 
  In Web Mode with everything compiled, Chrome is super fast again,
 no
  issues at all.  The perf loss is only in Dev mode.
 
  Any ideas?  Should I switch over to the production branch of
 chrome
  (and thus lose speed tracer)?
 
  -Brian

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: REST vs SOAP for calls to remote server

2010-09-17 Thread Jeff Chimene
You're using the term server/domain, perhaps that muddies the waters.

You might want to make the request from the client to server A. Server A
then makes a request of Server B. Server A collects the answer and
forwards/reformats it for the client.

For example, server A is a custom application, server B is a web API exposed
via SOAP. My client application posts a transaction to server A which posts
a SOAP request to server B. Server B acts on the request and responds to
server A. Server A takes the response and returns the it to the client. All
this happens in a sub 10 second time window.

I'm not sure it's worth the overhead to include server B in the mix. There
are reasons to include server B (e.g. mashups), but I don't see that in the
question.

On Fri, Sep 17, 2010 at 1:48 PM, Sunny sravip...@gmail.com wrote:

 Thanks but I need more clarification so let me rephrase my question
 which is  server/domain A has its own portal developed using GWT and
 server/domain B is not GWT generated code and needs to exposes a API
 to do CRUD operations from server/domain A so my question is if the
 API on server/domain B is REST then I can make REST calls from server/
 domain A ?

 OR

 Use Cross-Origin Resource Sharing which means serverB/domain B has to
 change their HTTP headers.

 On Sep 17, 9:21 am, marius.andreiana marius.andrei...@gmail.com
 wrote:
  On Sep 17, 8:45 am, Sunny sravip...@gmail.com wrote: In step 2, on
 the server, using gwt can I make REST API calls to
   server B in domain B?
 
  Yes.
 
  On server/domain A you have
  * gwt compiled files, including project_nocache.js
  * assets such as css/images
  * container.html which loads domainb.com/project.html in an iframe.
 
  On server/domain B you have
  * project.html, which loads domaina.com/project/project_nocache.js
  * APIs
 
  Clients can access either domainb.com/project.html or domaina.com/
  container.html
 
 
 
   Thanks
 
   On Sep 16, 9:57 pm, marius.andreiana marius.andrei...@gmail.com
   wrote:
 
On Sep 17, 6:27 am, Sunny sravip...@gmail.com wrote: Greetings,
I need to fetch data from a remote server which
 is
 not located in the same domain as the GWT application. My
 understanding is that as per same origin policy I might not be able
 to
 use REST. Is there a simple workaround or SOAP is the only
 alternative ?
 
SOAP still requires your client app to make AJAX calls to server, so
SOP restrictions would be the same. If the server it's not Java, I
strongly recommend REST.
 
Workarounds:
1. Use CORShttp://
 en.wikipedia.org/wiki/Cross-Origin_Resource_Sharing
* use a proxy server if you can't modify the http headers of the
server you are accessing
* IE8  9 supports this, but via a proprietary XDomain object. So GWT
has to be modified to use XDomain instead of XHR for IE, or you can
recommend any other browser, which are standards based, to your
 users.
2. Deploy GWT compiled files to the server, if possible. You'd only
need a .html loaded in an iframe.  The HTML loads the rest of JS/CSS
from your server.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Gettting an error when the app starts

2010-09-17 Thread harjit.singh
I don't think the issue is related to 4584. I did try to see and check
the IE8 mode. It was running in IE7 Standars mode. I changed it to IE8
mode and now I get this



java.lang.NoClassDefFoundError: null
at
com.google.gwt.user.client.ui.PopupPanel.setState(PopupPanel.java:
1387)
at com.google.gwt.user.client.ui.PopupPanel.show(PopupPanel.java:
969)
at com.google.gwt.user.client.ui.DialogBox.show(DialogBox.java:
347)
at com.bnpp.gtop.client.LoginDialog$1.onClick(LoginDialog.java:93)


Thanks

- Harjit

On Sep 17, 9:56 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Sep 17, 2:37 pm, harjit.singh harjit.si...@content-studios.com
 wrote:

  Hi there,

  When I try to run the app which is compiled in Gwt 2.0  in IE 8 I keep
  getting this exception quiet a lot. If I run the same app in Firefox,
  I don't see the error. Here is a stack trace

  08:32:38.251 [ERROR] [gwebtop] Uncaught exception escaped
  java.lang.ExceptionInInitializerError: null
      at
  com.google.gwt.user.client.ui.PopupPanel.setState(PopupPanel.java:
  1387)

 Could it be issue 4584? (in IE8 it would only happen if IE is *not*
 running in IE8 Standards Mode, which you can check in the IE
 Developer Tools (just hit F12 on your 
 keyboard))http://code.google.com/p/google-web-toolkit/issues/detail?id=4584

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Custom widgets

2010-09-17 Thread markM
What's the code that it's producing look like though?  That's been the
problem with UI designers in the past
is that the code they output is generally not readable by humans.  I
haven't checked it out yet but maybe this
weekend.

On Sep 16, 2:25 pm, Kasper Hansen kbhdk1...@gmail.com wrote:
 I'm building visual composites right now, using GWT Designer, and
 using them on other panels. It works :-)

 On Thu, Sep 16, 2010 at 8:20 PM, marius.andreianamarius.andrei...@gmail.com 
 wrote:
  Hi,

  It it possible to use custom widgets (which extend Composite) in GWT
  Designer, just like the standard GWT widgets?

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



Reverse proxy problem once again

2010-09-17 Thread pete
Hallo,

I've looked around several hours to solve this problem, but I just
can't figure it out (even though I find many similar posts and tips
about it). The set up is quite simple, I have my GWT-Module running at
http://localhost:8080/bla and if I address it like this, everything
runs fine.
I furthermore have an Apache2 set up, with the following rule

VirtualHost *:80
ServerAdmin webmas...@localhost
ServerName localhost:80
ProxyPass / http://localhost:8080/bla/
ProxyPassReverse / http://localhost:8080/bla/
/VirtualHost

(mod_proxy, etc. is loaded, proxy is configured in httpd.conf)
So I just want to forward from localhost:80 to localhost:8080/bla,
which shouldn't be such a pain in the a** as one should thing. But the
SOP prevents the RPC mapping, failing to retrieve the
SerializationPolicy. I can load the page, but the first RPC fails with
the usual exception so often explained in various posts.

My question is just, isn't there a way, to fix this simple case
without overriding RemoteServiceServlet? I would really wanna avoid
messing with that, and prefer some other way, maybe via proxy
configuration? Or web.xml? Or module.gwt.xml?
I also found this:
http://code.google.com/p/acris/wiki/SeparateClientAndServer
Would it be worth it to adapt my project with acris to achieve what I
want?
The paths basically need to be as in my setup above...

About any help I would be glad :-)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 error - Unable to open file /templates/Composite.jvt from UiBinder

2010-09-17 Thread marius.andreiana
Thanks Eric!

On Sep 17, 4:41 pm, Eric Clayberg clayb...@google.com wrote:
 Anything prior to GWT 2.1M3 does not support the GWT Designer hooks
 required to provide WYSIWYG editing of UiBinder components. You need
 at least GWT 2.1M3 for visual editing, and even newer to also support
 the ui:field attribute and the @UiField annotation.

 The missing UiBinder template file is available through a quick update
 from the Eclipse Update Manager.

 Note that the UiBinder support is GWT Designer is still in beta and
 rapidly evolving ;-)

 On Sep 16, 5:04 pm, Paul Stockley pstockl...@gmail.com wrote:



  I remember seeing changes being made to the core of GWT to support
  UiBinder editing. That is why you need 2.1M3. Even then I don't think
  it is complete yet

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



EventBus and HandlerManager Classes. Difference?

2010-09-17 Thread Ashton Thomas
I am confused as to when use the abstract class EventBus class that
implements HasHandlers:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/event/shared/EventBus.java

and the class HandlerManager that also implements HasHandlers:
http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/event/shared/HandlerManager.java

I know we have th SimpleEventBus that extends EventBus but I am still
a bit confused. Can anyone do a brain dumb or drop some info?

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



An Updated GWT Designer Tutorial

2010-09-17 Thread Chad Lung

I'm posting this in the GWT Group simply because not everyone is aware
of the GWT Designer forum yet ( 
http://forums.instantiations.com/viewforum.php?f=11
).

I have written an updated version of my prior tutorial using the GWT
Designer, you can find it here:

http://giantflyingsaucer.com/blog/?p=1606

Hopefully this will help out the people whom are new to the GWT
Designer.

Chad Lung

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: An Updated GWT Designer Tutorial

2010-09-17 Thread Jaroslav Záruba
Now when GWT Designer is in Google portfolio, wouldn't it make sense to have
mailing list for it, as all Google products/services have?
I personally find emails way more comfortable compared to forums.

On Fri, Sep 17, 2010 at 9:10 PM, Chad Lung chad.l...@gmail.com wrote:


 I'm posting this in the GWT Group simply because not everyone is aware
 of the GWT Designer forum yet (
 http://forums.instantiations.com/viewforum.php?f=11
 ).

 I have written an updated version of my prior tutorial using the GWT
 Designer, you can find it here:

 http://giantflyingsaucer.com/blog/?p=1606

 Hopefully this will help out the people whom are new to the GWT
 Designer.

 Chad Lung

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: An Updated GWT Designer Tutorial

2010-09-17 Thread Jeff Chimene
Yes. However, there's a lot of stored wisdom at that URL.

Thanks for the pointer.

2010/9/17 Jaroslav Záruba jaroslav.zar...@gmail.com

 Now when GWT Designer is in Google portfolio, wouldn't it make sense to
 have mailing list for it, as all Google products/services have?
 I personally find emails way more comfortable compared to forums.


 On Fri, Sep 17, 2010 at 9:10 PM, Chad Lung chad.l...@gmail.com wrote:


 I'm posting this in the GWT Group simply because not everyone is aware
 of the GWT Designer forum yet (
 http://forums.instantiations.com/viewforum.php?f=11
 ).

 I have written an updated version of my prior tutorial using the GWT
 Designer, you can find it here:

 http://giantflyingsaucer.com/blog/?p=1606

 Hopefully this will help out the people whom are new to the GWT
 Designer.

 Chad Lung

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: plugin failed to connect to hosted mode server at 127.0.0.1:9997

2010-09-17 Thread Rajeev Dayal
Look at your c:\Windows\system32\drivers\etc\hosts file. What do the entries
look like in there?

On Fri, Sep 17, 2010 at 11:20 AM, consutes consu...@hotmail.com wrote:



 Hi bouadma abderrazak,

 are you found the solution?


 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Eclipse Project not always updating classes

2010-09-17 Thread Rajeev Dayal
Can you expand on what you mean? How do you know that it puts the old
classes back there?

On Fri, Sep 17, 2010 at 7:33 AM, AlexG alexander.gauss.ax...@googlemail.com
 wrote:

 Hi Samuru,

 maybe you have two instances of your App running? This could be one
 reason.
 Make sure, that you close all instances, then clean your project, and
 retry.

 The classes in the war/WEB-INF directory are only classes in your
 server package.
 Maybe they should be re-enhanced??

 You can also try, restarting Eclipse, this solved several problems for
 me, when
 I had similar problems.

 I hope this helps a little.

 Greets Alex


 On 16 Sep., 16:48, Samuru Jackson samurujack...@googlemail.com
 wrote:
  Hi,
 
  I have the problem, that sometimes it happens that my changed code in /
  src/* is not updated in /war/WEB-INF/classes/*
 
  Even if I delete the affected class in /war/* it puts an old version
  of the class again back into /war/* .
 
  How can this happen? Is there a cache somewhere around?
 
  Project - Clean does not work

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



Correct way to use code modules

2010-09-17 Thread Greg Dougherty
I have objects from an external package that I need to use both client
side and server side.  I added the package to my eclipse project,
which took care of the server side, and I created a Module.gwt.xml
file to export those classes to the client side.  No problem.

Except for one thing: Every time I go to compile my project, GWT
Compile wants to treat my code module as an entry point module.  Every
time, I remove my code module from the list of entry point modules,
and then everything compiles fine.

This is rather tedious.

I suppose I could create a dummy class that implements EntryPoint, and
add a reference to it to my .gwt.xml file, but what I'd really like to
do is permanently tell GWT Compile that the .gwt.xml file doesn't have
an entry point entry because it doesn't have an EntryPoint.

Is there a way to tell GWT Compile to leave my module alone?

TIA,

Greg

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Correct way to use code modules

2010-09-17 Thread Jaroslav Záruba
On Fri, Sep 17, 2010 at 10:01 PM, Greg Dougherty dougherty.greg...@mayo.edu
 wrote:

 I have objects from an external package that I need to use both client
 side and server side.  I added the package to my eclipse project,
 which took care of the server side, and I created a Module.gwt.xml
 file to export those classes to the client side.  No problem.

 Except for one thing: Every time I go to compile my project, GWT
 Compile wants to treat my code module as an entry point module.  Every
 time, I remove my code module from the list of entry point modules,
 and then everything compiles fine.


probably a stupid question: is that module listed in the project properties
under Project - Properties - Google - Web Toolkit - Entry Point Modules?



 This is rather tedious.

 I suppose I could create a dummy class that implements EntryPoint, and
 add a reference to it to my .gwt.xml file, but what I'd really like to
 do is permanently tell GWT Compile that the .gwt.xml file doesn't have
 an entry point entry because it doesn't have an EntryPoint.

 Is there a way to tell GWT Compile to leave my module alone?

 TIA,

 Greg

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



Re: EventBus and HandlerManager Classes. Difference?

2010-09-17 Thread Thomas Broyer

On Sep 17, 9:05 pm, Ashton Thomas ash...@acrinta.com wrote:
 I am confused as to when use the abstract class EventBus class that
 implements 
 HasHandlers:http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...

 and the class HandlerManager that also implements 
 HasHandlers:http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...

 I know we have th SimpleEventBus that extends EventBus but I am still
 a bit confused. Can anyone do a brain dumb or drop some info?

Basically, HandlerManager is only to be used within widgets (and it is
an internal part of Widget, backing the addHandler and addDomHandler
methods; so you shouldn't have to use it directly, probably the reason
it's marked @Deprecated).

If you need an event bus to make you apps components communicate with
each others, then you should use EventBus, which SimpleEventBus is an
implementation.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: Correct way to use code modules

2010-09-17 Thread Greg Dougherty
That would be the answer.  Yes, it was (I had no idea that Property
existed), no, it isn't any longer, and now GWT doesn't try to compile
it as such.

Thank you!

Greg

On Sep 17, 3:11 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote:
 On Fri, Sep 17, 2010 at 10:01 PM, Greg Dougherty dougherty.greg...@mayo.edu

  wrote:
  I have objects from an external package that I need to use both client
  side and server side.  I added the package to my eclipse project,
  which took care of the server side, and I created a Module.gwt.xml
  file to export those classes to the client side.  No problem.

  Except for one thing: Every time I go to compile my project, GWT
  Compile wants to treat my code module as an entry point module.  Every
  time, I remove my code module from the list of entry point modules,
  and then everything compiles fine.

 probably a stupid question: is that module listed in the project properties
 under Project - Properties - Google - Web Toolkit - Entry Point Modules?



  This is rather tedious.

  I suppose I could create a dummy class that implements EntryPoint, and
  add a reference to it to my .gwt.xml file, but what I'd really like to
  do is permanently tell GWT Compile that the .gwt.xml file doesn't have
  an entry point entry because it doesn't have an EntryPoint.

  Is there a way to tell GWT Compile to leave my module alone?

  TIA,

  Greg

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=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-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: de-mavenize a project

2010-09-17 Thread John
On Fri, Sep 17, 2010 at 11:06 AM, olivier nouguier
olivier.nougu...@gmail.com wrote:
 Or learn maven ;)

There are s many interesting things to learn, rails, groovy,
python, and on and on.  It's hard to justify taking time to learn
something that solves problems you don't have.


 More seriously, you can easy de mavenize aproject, but maven will help
 you:

 mvn dependency:copy-dependencies will copy all dependencies in a folder
 target/dependency

 Then you'll just have to add those lib in your build classpath.

 mvn eclipse:clean eclipse:eclipse will build for you the .classpath (among
 others) file to run in eclipse without m2eclipse.

I had to re-install the project (but maven was still installed).  So
Maven didn't install into my Eclipse workspace--I don't know why, but
it did not give me that choice.  Normally there is a little checkbox
(in non-maven imports) to import into Eclipse workspace.

Since it stuck everything arbitrarily into my home directory, I found
out that maven wasn't in my path, so I couldn't try what you
suggested.  But thanks, I do appreciate the reply.  I guess I could
set paths and whatever, to get the the NEXT problem, but it's probably
not worth spending more time on it.  I'm happy to use the standard GWT
fileuploader widget--I was just curious, because GWTUploader does seem
like a nice way to do things.

John

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: de-mavenize a project

2010-09-17 Thread Thomas Broyer


On Sep 18, 12:10 am, John nesre...@gmail.com wrote:
 On Fri, Sep 17, 2010 at 11:06 AM, olivier nouguier

 olivier.nougu...@gmail.com wrote:
  Or learn maven ;)

 There are s many interesting things to learn, rails, groovy,
 python, and on and on.  It's hard to justify taking time to learn
 something that solves problems you don't have.

  More seriously, you can easy de mavenize aproject, but maven will help
  you:

  mvn dependency:copy-dependencies will copy all dependencies in a folder
  target/dependency

  Then you'll just have to add those lib in your build classpath.

  mvn eclipse:clean eclipse:eclipse will build for you the .classpath (among
  others) file to run in eclipse without m2eclipse.

 I had to re-install the project (but maven was still installed).  So
 Maven didn't install into my Eclipse workspace--I don't know why, but
 it did not give me that choice.  Normally there is a little checkbox
 (in non-maven imports) to import into Eclipse workspace.

 Since it stuck everything arbitrarily into my home directory, I found
 out that maven wasn't in my path, so I couldn't try what you
 suggested.  But thanks, I do appreciate the reply.  I guess I could
 set paths and whatever, to get the the NEXT problem, but it's probably
 not worth spending more time on it.  I'm happy to use the standard GWT
 fileuploader widget--I was just curious, because GWTUploader does seem
 like a nice way to do things.

If it's just about *using* GWTUploader, isn't it just a matter of
downloading the JAR (it's in the download section) and putting it in
your classpath/build path? (and probably commons-upload on the server-
side, maybe other dependencies).

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Custom widgets

2010-09-17 Thread Eric Clayberg
The generated code looks great! ;-) It is also highly configurable, so
that you can adapt it to almost any style you want. Here's an example
of all of the code gen options for GWT Designer...

http://code.google.com/webtoolkit/tools/gwtdesigner/preferences/gwt/preferences_code_generation.html

The parser is also very powerful and can parse pretty much any style.
It is also refactoring friendly, so that you can rearrange the
generated code as needed.

-Eric

On Sep 17, 2:42 pm, markM mark.a.mccon...@pfizer.com wrote:
 What's the code that it's producing look like though?  That's been the
 problem with UI designers in the past
 is that the code they output is generally not readable by humans.  I
 haven't checked it out yet but maybe this
 weekend.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: de-mavenize a project

2010-09-17 Thread John
On Fri, Sep 17, 2010 at 4:06 PM, Thomas Broyer t.bro...@gmail.com wrote:
 If it's just about *using* GWTUploader, isn't it just a matter of
 downloading the JAR (it's in the download section) and putting it in
 your classpath/build path? (and probably commons-upload on the server-
 side, maybe other dependencies).

Right, I understand that--I was hoping to just install it like a
regular project so I could tweak the source, etc, if I wanted to.  Not
a big issue, however.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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: GWT Designer for UiBinder?

2010-09-17 Thread Konstantin.Scheglov


 I just noticed that it's there but it fails to load with the error:

 Actually, UiBinder is in the menu but it fails with the error message:

 Unable to open file /templates/Composite.jvt

  Please update GWT Designer, new build already includes templates
required by UiBinder wizards.

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


Re: [gwt-contrib] Re: GWT Designer for UiBinder?

2010-09-17 Thread Patrick Julien
thanks, it works now

On Fri, Sep 17, 2010 at 7:58 AM, Konstantin.Scheglov
konstantin.scheg...@gmail.com wrote:


 I just noticed that it's there but it fails to load with the error:

 Actually, UiBinder is in the menu but it fails with the error message:

 Unable to open file /templates/Composite.jvt

  Please update GWT Designer, new build already includes templates
 required by UiBinder wizards.

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

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


Re: [gwt-contrib] Re: GWT Designer for UiBinder?

2010-09-17 Thread Patrick Julien
What is the property that is needed to enable this on existing view?
It works on a new file but that's it

On Fri, Sep 17, 2010 at 8:43 AM, Patrick Julien pjul...@gmail.com wrote:
 thanks, it works now

 On Fri, Sep 17, 2010 at 7:58 AM, Konstantin.Scheglov
 konstantin.scheg...@gmail.com wrote:


 I just noticed that it's there but it fails to load with the error:

 Actually, UiBinder is in the menu but it fails with the error message:

 Unable to open file /templates/Composite.jvt

  Please update GWT Designer, new build already includes templates
 required by UiBinder wizards.

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


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


[gwt-contrib] Re: Issue ROO-954: Support for transmitting stack traces for sever exceptions. (issue886801)

2010-09-17 Thread bobv


http://gwt-code-reviews.appspot.com/886801/diff/28001/15008
File user/src/com/google/gwt/requestfactory/server/ExceptionHandler.java
(right):

http://gwt-code-reviews.appspot.com/886801/diff/28001/15008#newcode30
user/src/com/google/gwt/requestfactory/server/ExceptionHandler.java:30:
ServerFailure asServerFailure(Throwable throwable);
Rename as to create.  The as verb is usually used when one type is
posing as another (e.g. IsWidget).

http://gwt-code-reviews.appspot.com/886801/diff/28001/15009
File
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
(right):

http://gwt-code-reviews.appspot.com/886801/diff/28001/15009#newcode836
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:836:
exceptionMessage.put(trace, failure.getStackTraceString());
You've written the client-side implementation defensively, so you could
drop null or zero-length strings from the payload.

http://gwt-code-reviews.appspot.com/886801/diff/28001/15012
File user/src/com/google/gwt/requestfactory/shared/Receiver.java
(right):

http://gwt-code-reviews.appspot.com/886801/diff/28001/15012#newcode39
user/src/com/google/gwt/requestfactory/shared/Receiver.java:39: +
((!exceptionType.isEmpty()  !message.isEmpty()) ? :  : )
isEmpty()  is a 1.6-ism.

http://gwt-code-reviews.appspot.com/886801/show

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


[gwt-contrib] Re: GWT Designer for UiBinder?

2010-09-17 Thread Thomas Broyer


On Sep 17, 2:48 pm, Patrick Julien pjul...@gmail.com wrote:
 What is the property that is needed to enable this on existing view?
 It works on a new file but that's it

right-click - open with... - Window Builder editor (from memory)

There's probably a way to enable it by default but I haven't searched.

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


[gwt-contrib] Re: Issue ROO-954: Support for transmitting stack traces for sever exceptions. (issue886801)

2010-09-17 Thread rchandia

http://gwt-code-reviews.appspot.com/886801/show

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


[gwt-contrib] Re: Issue ROO-954: Support for transmitting stack traces for sever exceptions. (issue886801)

2010-09-17 Thread rchandia

Oops! I forgot to add RequestFactoryExceptionHandlerTest to
RequestFactorySuite


http://gwt-code-reviews.appspot.com/886801/diff/28001/15008
File user/src/com/google/gwt/requestfactory/server/ExceptionHandler.java
(right):

http://gwt-code-reviews.appspot.com/886801/diff/28001/15008#newcode30
user/src/com/google/gwt/requestfactory/server/ExceptionHandler.java:30:
ServerFailure asServerFailure(Throwable throwable);
On 2010/09/17 13:10:31, bobv wrote:

Rename as to create.  The as verb is usually used when one type

is posing

as another (e.g. IsWidget).


Done.

http://gwt-code-reviews.appspot.com/886801/diff/28001/15009
File
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
(right):

http://gwt-code-reviews.appspot.com/886801/diff/28001/15009#newcode836
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:836:
exceptionMessage.put(trace, failure.getStackTraceString());
On 2010/09/17 13:10:31, bobv wrote:

You've written the client-side implementation defensively, so you

could drop

null or zero-length strings from the payload.


Done.

http://gwt-code-reviews.appspot.com/886801/diff/28001/15012
File user/src/com/google/gwt/requestfactory/shared/Receiver.java
(right):

http://gwt-code-reviews.appspot.com/886801/diff/28001/15012#newcode39
user/src/com/google/gwt/requestfactory/shared/Receiver.java:39: +
((!exceptionType.isEmpty()  !message.isEmpty()) ? :  : )
On 2010/09/17 13:10:31, bobv wrote:

isEmpty()  is a 1.6-ism.


Done.

http://gwt-code-reviews.appspot.com/886801/show

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


[gwt-contrib] Re: Adds support for List collections. Request methods are now permitted to return (issue893801)

2010-09-17 Thread bobv


http://gwt-code-reviews.appspot.com/893801/diff/1/6
File
user/src/com/google/gwt/requestfactory/client/impl/JsoCollection.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/6#newcode25
user/src/com/google/gwt/requestfactory/client/impl/JsoCollection.java:25:
void setDependencies(DeltaValueStoreJsonImpl dvs,
Javadoc

http://gwt-code-reviews.appspot.com/893801/diff/1/7
File user/src/com/google/gwt/requestfactory/client/impl/JsoList.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/7#newcode38
user/src/com/google/gwt/requestfactory/client/impl/JsoList.java:38:
return @java.util.Date::createFrom(D)(millis);
Formatting.

http://gwt-code-reviews.appspot.com/893801/diff/1/8
File user/src/com/google/gwt/requestfactory/client/impl/JsoSet.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/8#newcode91
user/src/com/google/gwt/requestfactory/client/impl/JsoSet.java:91:
return ((JsArrayString) array).length();
Shouldn't this return list.length()?   It doesn't look like the array
field is ever mutated by this class.

http://gwt-code-reviews.appspot.com/893801/diff/1/9
File user/src/com/google/gwt/requestfactory/client/impl/ProxyImpl.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/9#newcode74
user/src/com/google/gwt/requestfactory/client/impl/ProxyImpl.java:74:
public boolean equals(Object o) {
This is the wrong semantic.  EntityProxy objects represent immutable
snapshots of an entity at a certain point in time.

http://gwt-code-reviews.appspot.com/893801/diff/1/9#newcode125
user/src/com/google/gwt/requestfactory/client/impl/ProxyImpl.java:125:
public int hashCode() {
Remove.

http://gwt-code-reviews.appspot.com/893801/diff/1/10
File
user/src/com/google/gwt/requestfactory/client/impl/ProxyJsoImpl.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/10#newcode373
user/src/com/google/gwt/requestfactory/client/impl/ProxyJsoImpl.java:373:
// todo
Is there any reason not to implement this?

http://gwt-code-reviews.appspot.com/893801/diff/1/11
File
user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/11#newcode645
user/src/com/google/gwt/requestfactory/rebind/RequestFactoryGenerator.java:645:
requestClassName = AbstractJsonValueListRequest.class.getName();
Add a comment demonstrating the code (fragment) being generated.

http://gwt-code-reviews.appspot.com/893801/diff/1/12
File
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/12#newcode354
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:354:
Class? propertyType = property instanceof CollectionProperty ?
((CollectionProperty) property).getLeafType() : property.getType();
Call this variable elementType

http://gwt-code-reviews.appspot.com/893801/diff/1/12#newcode645
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:645:
public MapString, Property? getPropertiesFromRecord(
getPropertiesFromEntity

http://gwt-code-reviews.appspot.com/893801/diff/1/12#newcode880
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:880:
if (aVal == bVal || aVal.equals(bVal)) {
NPE if aVal=null and bVal=Object

http://gwt-code-reviews.appspot.com/893801/diff/1/12#newcode1159
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:1159:
if (cachedEntityLookup.containsKey(propKey)) {
Is this containsKey() here to account for cached null values?  If so,
add a comment to that effect.

Actually, this whole block of if statements is hard to follow without
some kind of explanatory text to accompany it.

http://gwt-code-reviews.appspot.com/893801/diff/1/12#newcode1188
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:1188:
leafType);
idem

http://gwt-code-reviews.appspot.com/893801/diff/1/12#newcode1394
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java:1394:
toReturn.put(field.getName(), fieldType);
Looking how the else block below checks the ProxyFor field, should this
block do the same?

http://gwt-code-reviews.appspot.com/893801/diff/1/13
File
user/src/com/google/gwt/requestfactory/server/ReflectionBasedOperationRegistry.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/13#newcode150
user/src/com/google/gwt/requestfactory/server/ReflectionBasedOperationRegistry.java:150:
return (Class?) ((ParameterizedType) params[0]).getRawType();
Comment why.

http://gwt-code-reviews.appspot.com/893801/diff/1/14
File
user/src/com/google/gwt/requestfactory/shared/impl/CollectionProperty.java
(right):

http://gwt-code-reviews.appspot.com/893801/diff/1/14#newcode27
user/src/com/google/gwt/requestfactory/shared/impl/CollectionProperty.java:27:
* @param C the type of the element the container contains
The meanings of the type params look backwards.  How about C =
Collection and E == element (or L == leaf)?


Re: [gwt-contrib] Re: GWT Designer for UiBinder?

2010-09-17 Thread Patrick Julien
On Fri, Sep 17, 2010 at 9:25 AM, Thomas Broyer t.bro...@gmail.com wrote:


 On Sep 17, 2:48 pm, Patrick Julien pjul...@gmail.com wrote:
 What is the property that is needed to enable this on existing view?
 It works on a new file but that's it

 right-click - open with... - Window Builder editor (from memory)

 There's probably a way to enable it by default but I haven't searched.


No, it was broken, they released 8.0.1 this morning.  Some missing
template files weren't included

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


[gwt-contrib] Re: Make DynaTableRf use a ListEditor for the favorites. (issue888801)

2010-09-17 Thread rjrjr

LGTM

http://gwt-code-reviews.appspot.com/01/show

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


[gwt-contrib] Rename PlaceChangeRequesteEvent to PlaceChangeRequestedEvent (issue894801)

2010-09-17 Thread rice

Reviewers: rjrjr,

Description:
Rename PlaceChangeRequesteEvent to PlaceChangeRequestedEvent


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

Affected files:
  M user/src/com/google/gwt/app/place/ActivityManager.java
  D user/src/com/google/gwt/app/place/PlaceChangeRequesteEvent.java
  A user/src/com/google/gwt/app/place/PlaceChangeRequestedEvent.java
  M user/src/com/google/gwt/app/place/PlaceController.java
  M user/test/com/google/gwt/app/place/ActivityManagerTest.java
  M user/test/com/google/gwt/app/place/PlaceChangeRequestedEventTest.java
  M user/test/com/google/gwt/app/place/PlaceControllerTest.java


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


[gwt-contrib] Re: Rename PlaceChangeRequesteEvent to PlaceChangeRequestedEvent (issue894801)

2010-09-17 Thread rjrjr

no suffix, please. It should be PlaceChangeRequest

On 2010/09/17 16:32:11, rice wrote:




http://gwt-code-reviews.appspot.com/894801/show

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


[gwt-contrib] Re: Rename PlaceChangeRequesteEvent to PlaceChangeRequestedEvent (issue894801)

2010-09-17 Thread דניאל רייס
  Sorry, I took the lead from the pre-existing comment on line 35...

Dan

On Fri, Sep 17, 2010 at 12:36 PM,  rj...@google.com wrote:
 no suffix, please. It should be PlaceChangeRequest

 On 2010/09/17 16:32:11, rice wrote:




 http://gwt-code-reviews.appspot.com/894801/show


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


[gwt-contrib] Re: Get strong permutation from headers rather than serialized log record (issue880802)

2010-09-17 Thread unnurg

http://gwt-code-reviews.appspot.com/880802/show

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


[gwt-contrib] [google-web-toolkit] r8808 committed - Issue ROO-954: Support for transmitting stack traces for sever excepti...

2010-09-17 Thread codesite-noreply

Revision: 8808
Author: rchan...@google.com
Date: Fri Sep 17 05:56:27 2010
Log: Issue ROO-954: Support for transmitting stack traces for sever  
exceptions.


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

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

Added:
  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ServerFailureRecord.java
  
/trunk/user/src/com/google/gwt/requestfactory/server/DefaultExceptionHandler.java

 /trunk/user/src/com/google/gwt/requestfactory/server/ExceptionHandler.java
  
/trunk/user/test/com/google/gwt/requestfactory/RequestFactoryExceptionHandlerTest.gwt.xml
  
/trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryExceptionHandlerTest.java
  
/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryExceptionHandlerServlet.java

Modified:
  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/AbstractRequest.java

 /trunk/user/src/com/google/gwt/requestfactory/client/impl/JsonResults.java
  
/trunk/user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java
  
/trunk/user/src/com/google/gwt/requestfactory/server/RequestFactoryServlet.java

 /trunk/user/src/com/google/gwt/requestfactory/server/RequestProcessor.java
 /trunk/user/src/com/google/gwt/requestfactory/shared/Receiver.java
 /trunk/user/src/com/google/gwt/requestfactory/shared/ServerFailure.java
 /trunk/user/test/com/google/gwt/requestfactory/RequestFactorySuite.java
  
/trunk/user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
  
/trunk/user/test/com/google/gwt/requestfactory/client/impl/SimpleFooProxyProperties.java

 /trunk/user/test/com/google/gwt/requestfactory/server/SimpleFoo.java
 /trunk/user/test/com/google/gwt/requestfactory/shared/SimpleFooProxy.java

===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/ServerFailureRecord.java	 
Fri Sep 17 05:56:27 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.requestfactory.client.impl;
+
+import com.google.gwt.core.client.JavaScriptObject;
+
+/**
+ * Contains details of a server error.
+ */
+public final class ServerFailureRecord extends JavaScriptObject {
+
+  protected ServerFailureRecord() {
+  }
+
+  public native String getMessage() /*-{
+return this.message || ;
+  }-*/;
+
+  public native String getTrace() /*-{
+return this.trace || ;
+  }-*/;
+
+  public native String getType() /*-{
+return this.type || ;
+  }-*/;
+}
===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/requestfactory/server/DefaultExceptionHandler.java	 
Fri Sep 17 05:56:27 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.requestfactory.server;
+
+import com.google.gwt.requestfactory.shared.ServerFailure;
+
+/**
+ * Default implementation for handling exceptions thrown while
+ * processing a request. Suppresses stack traces and the exception
+ * class name.
+ */
+public class DefaultExceptionHandler implements ExceptionHandler {
+  public ServerFailure createServerFailure(Throwable throwable) {
+return new ServerFailure(Server Error:  + throwable.getMessage(),  
null,

+null);
+  }
+}
===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/requestfactory/server/ExceptionHandler.java	 
Fri Sep 17 05:56:27 2010

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

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

[gwt-contrib] Re: Rename PlaceChangeRequesteEvent to PlaceChangeRequestedEvent (issue894801)

2010-09-17 Thread דניאל רייס
  Fixed and re-uploaded.

On Fri, Sep 17, 2010 at 12:36 PM,  rj...@google.com wrote:
 no suffix, please. It should be PlaceChangeRequest

 On 2010/09/17 16:32:11, rice wrote:




 http://gwt-code-reviews.appspot.com/894801/show


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


[gwt-contrib] [google-web-toolkit] r8809 committed - Fix 1.5 compatibility in RequestFactoryExceptionHandlerServlet

2010-09-17 Thread codesite-noreply

Revision: 8809
Author: rj...@google.com
Date: Fri Sep 17 07:07:03 2010
Log: Fix 1.5 compatibility in RequestFactoryExceptionHandlerServlet

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

Modified:
  
/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryExceptionHandlerServlet.java


===
---  
/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryExceptionHandlerServlet.java	 
Fri Sep 17 05:56:27 2010
+++  
/trunk/user/test/com/google/gwt/requestfactory/server/RequestFactoryExceptionHandlerServlet.java	 
Fri Sep 17 07:07:03 2010

@@ -24,7 +24,6 @@
 extends RequestFactoryServlet {
   public RequestFactoryExceptionHandlerServlet() {
 super(new ExceptionHandler() {
-  @Override
   public ServerFailure createServerFailure(Throwable throwable) {
 return new ServerFailure(throwable.getMessage(),
 throwable.getClass().getName(), my stack trace);

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


[gwt-contrib] [google-web-toolkit] r8810 committed - Make DynaTableRf use a ListEditor for the favorites....

2010-09-17 Thread codesite-noreply

Revision: 8810
Author: b...@google.com
Date: Fri Sep 17 07:40:00 2010
Log: Make DynaTableRf use a ListEditor for the favorites.
Fix potential NPE's in AED.Chain.
Widen RequestFactoryEditorDriver's type bound to allow it to drive more  
than just EntityProxy types.

Patch by: bobv
Review by: rjrjr

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

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

Modified:
  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java
  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/NameLabel.java
  
/trunk/user/src/com/google/gwt/editor/client/impl/AbstractEditorDelegate.java
  
/trunk/user/src/com/google/gwt/requestfactory/client/RequestFactoryEditorDriver.java
  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/AbstractRequestFactoryEditorDriver.java
  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/RequestFactoryEditorDelegate.java
  
/trunk/user/src/com/google/gwt/requestfactory/client/testing/MockRequestFactoryEditorDriver.java

 /trunk/user/src/com/google/gwt/user/client/ui/Label.java

===
---  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java	 
Wed Sep 15 06:48:28 2010
+++  
/trunk/samples/dynatablerf/src/com/google/gwt/sample/dynatablerf/client/widgets/FavoritesWidget.java	 
Fri Sep 17 07:40:00 2010

@@ -16,6 +16,8 @@
 package com.google.gwt.sample.dynatablerf.client.widgets;

 import com.google.gwt.core.client.GWT;
+import com.google.gwt.editor.client.adapters.EditorSource;
+import com.google.gwt.editor.client.adapters.ListEditor;
 import com.google.gwt.event.shared.EventBus;
 import com.google.gwt.event.shared.HandlerRegistration;
 import com.google.gwt.requestfactory.client.RequestFactoryEditorDriver;
@@ -34,8 +36,10 @@
 import com.google.gwt.user.client.ui.FlowPanel;
 import com.google.gwt.user.client.ui.Widget;

-import java.util.HashMap;
-import java.util.Map;
+import java.util.ArrayList;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.List;
 import java.util.Set;

 /**
@@ -47,22 +51,48 @@
   interface Binder extends UiBinderWidget, FavoritesWidget {
   }

-  interface Driver extends RequestFactoryEditorDriverPersonProxy,  
NameLabel {

+  interface Driver extends RequestFactoryEditorDriverListPersonProxy, //
+  ListEditorPersonProxy, NameLabel {
   }

   interface Style extends CssResource {
 String favorite();
   }
+
+  /**
+   * This is used by a ListEditor.
+   */
+  private class NameLabelSource extends EditorSourceNameLabel {
+@Override
+public NameLabel create(int index) {
+  NameLabel label = new NameLabel(eventBus);
+  label.setStylePrimaryName(style.favorite());
+  container.insert(label, index);
+  return label;
+}
+
+@Override
+public void dispose(NameLabel subEditor) {
+  subEditor.removeFromParent();
+  subEditor.cancelSubscription();
+}
+
+@Override
+public void setIndex(NameLabel editor, int index) {
+  container.insert(editor, index);
+}
+  }

   @UiField
   FlowPanel container;

   @UiField
   Style style;
+
+  private final ListPersonProxy displayed;
   private final EventBus eventBus;
   private final RequestFactory factory;
   private FavoritesManager manager;
-  private final MapEntityProxyId, NameLabel map = new  
HashMapEntityProxyId, NameLabel();

   private HandlerRegistration subscription;

   public FavoritesWidget(EventBus eventBus, RequestFactory factory,
@@ -70,7 +100,27 @@
 this.eventBus = eventBus;
 this.factory = factory;
 this.manager = manager;
+
+// Create the UI
 initWidget(GWT.Binder create(Binder.class).createAndBindUi(this));
+
+// Create the driver which manages the data-bound widgets
+Driver driver = GWT.Driver create(Driver.class);
+
+// Use a ListEditor that uses our NameLabelSource
+ListEditorPersonProxy, NameLabel editor = ListEditor.of(new  
NameLabelSource());

+
+// Configure the driver
+ListEditorPersonProxy, NameLabel listEditor = editor;
+driver.initialize(eventBus, factory, listEditor);
+
+/*
+ * Notice the backing list is essentially anonymous.
+ */
+driver.display(new ArrayListPersonProxy());
+
+// Modifying this list triggers widget creation and destruction
+displayed = listEditor.getList();
   }

   @Override
@@ -103,21 +153,16 @@
 }

 if (event.isFavorite()) {
-  if (!map.containsKey(person.stableId())) {
-NameLabel label = new NameLabel(eventBus);
-Driver driver = GWT.create(Driver.class);
-driver.initialize(eventBus, factory, label);
-driver.edit(person, null);
-label.setStylePrimaryName(style.favorite());
-
-container.add(label);
-map.put(person.stableId(), label);
-  }
+  displayed.add(person);
 } else {
-  NameLabel toRemove = 

[gwt-contrib] Extract a RequestTransport interface and DefaultRequestTransport implementation from RequestFactory. (issue890802)

2010-09-17 Thread bobv

Reviewers: rjrjr,

Message:
Review requested. Resolves ROO-1417.

Description:
Extract a RequestTransport interface and DefaultRequestTransport
implementation from RequestFactory.
This will allow end-users to have arbitrary control over the way RF
communicates with the server.
Patch by: bobv
Review by: rjrjr


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

Affected files:
  A  
user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java
  M  
user/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java

  A user/src/com/google/gwt/requestfactory/shared/HasRequestTransport.java
  M user/src/com/google/gwt/requestfactory/shared/RequestFactory.java
  A user/src/com/google/gwt/requestfactory/shared/RequestTransport.java
  M  
user/test/com/google/gwt/requestfactory/server/RequestFactoryExceptionHandlerServlet.java



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


Re: [gwt-contrib] Re: Get strong permutation from headers rather than serialized log record (issue880802)

2010-09-17 Thread Ray Ryan
Bob and Unnur, you're on a collision course between this and
http://gwt-code-reviews.appspot.com/890802

On Fri, Sep 17, 2010 at 9:58 AM, unn...@google.com wrote:

 http://gwt-code-reviews.appspot.com/880802/show

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


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

[gwt-contrib] Re: Extract a RequestTransport interface and DefaultRequestTransport implementation from RequestFactory. (issue890802)

2010-09-17 Thread rjrjr


http://gwt-code-reviews.appspot.com/890802/diff/1/2
File
user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java
(right):

http://gwt-code-reviews.appspot.com/890802/diff/1/2#newcode98
user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java:98:
builder.setHeader(pageurl, Location.getHref());
Set the magic permutation header here? Or is that being set elsewhere?

http://gwt-code-reviews.appspot.com/890802/diff/1/4
File
user/src/com/google/gwt/requestfactory/shared/HasRequestTransport.java
(right):

http://gwt-code-reviews.appspot.com/890802/diff/1/4#newcode20
user/src/com/google/gwt/requestfactory/shared/HasRequestTransport.java:20:
* the manner in which requests are sent to the backend.
Why do it via cast? Why not just make RequestFactory extend it? Or make
this part of RF proper?

Perhaps add an overload of RequestFactory#init that accepts an RT?

http://gwt-code-reviews.appspot.com/890802/diff/1/5
File user/src/com/google/gwt/requestfactory/shared/RequestFactory.java
(right):

http://gwt-code-reviews.appspot.com/890802/diff/1/5#newcode91
user/src/com/google/gwt/requestfactory/shared/RequestFactory.java:91: *
DefaultRequestTransport}.
This makes me think that if I call init after calling setTransport I'll
clobber myself.

http://gwt-code-reviews.appspot.com/890802/show

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


[gwt-contrib] Re: Optimize ResourceOracle refresh by doing multiple oracles at the same time (issue887801)

2010-09-17 Thread conroy

http://gwt-code-reviews.appspot.com/887801/show

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


[gwt-contrib] Re: Rename PlaceChangeRequesteEvent to PlaceChangeRequestedEvent (issue894801)

2010-09-17 Thread rjrjr

LGTM

http://gwt-code-reviews.appspot.com/894801/show

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


[gwt-contrib] Re: Extract a RequestTransport interface and DefaultRequestTransport implementation from RequestFactory. (issue890802)

2010-09-17 Thread bobv


http://gwt-code-reviews.appspot.com/890802/diff/1/2
File
user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java
(right):

http://gwt-code-reviews.appspot.com/890802/diff/1/2#newcode98
user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java:98:
builder.setHeader(pageurl, Location.getHref());
On 2010/09/17 18:28:24, rjrjr wrote:

Set the magic permutation header here? Or is that being set elsewhere?


Done.

http://gwt-code-reviews.appspot.com/890802/diff/1/4
File
user/src/com/google/gwt/requestfactory/shared/HasRequestTransport.java
(right):

http://gwt-code-reviews.appspot.com/890802/diff/1/4#newcode20
user/src/com/google/gwt/requestfactory/shared/HasRequestTransport.java:20:
* the manner in which requests are sent to the backend.
On 2010/09/17 18:28:24, rjrjr wrote:

Why do it via cast? Why not just make RequestFactory extend it? Or

make this

part of RF proper?



Perhaps add an overload of RequestFactory#init that accepts an RT?


Done.

http://gwt-code-reviews.appspot.com/890802/diff/1/5
File user/src/com/google/gwt/requestfactory/shared/RequestFactory.java
(right):

http://gwt-code-reviews.appspot.com/890802/diff/1/5#newcode91
user/src/com/google/gwt/requestfactory/shared/RequestFactory.java:91: *
DefaultRequestTransport}.
On 2010/09/17 18:28:24, rjrjr wrote:

This makes me think that if I call init after calling setTransport

I'll clobber

myself.


Done.

http://gwt-code-reviews.appspot.com/890802/show

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


[gwt-contrib] [google-web-toolkit] r8811 committed - Rename PlaceChangeRequesteEvent to PlaceChangeRequestEvent...

2010-09-17 Thread codesite-noreply

Revision: 8811
Author: r...@google.com
Date: Fri Sep 17 09:11:27 2010
Log: Rename PlaceChangeRequesteEvent to PlaceChangeRequestEvent

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

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

Added:
 /trunk/user/src/com/google/gwt/app/place/PlaceChangeRequestEvent.java
 /trunk/user/test/com/google/gwt/app/place/PlaceChangeRequestEventTest.java
Deleted:
 /trunk/user/src/com/google/gwt/app/place/PlaceChangeRequesteEvent.java
  
/trunk/user/test/com/google/gwt/app/place/PlaceChangeRequestedEventTest.java

Modified:
 /trunk/user/src/com/google/gwt/app/place/ActivityManager.java
 /trunk/user/src/com/google/gwt/app/place/PlaceController.java
 /trunk/user/test/com/google/gwt/app/AppJreSuite.java
 /trunk/user/test/com/google/gwt/app/place/ActivityManagerTest.java
 /trunk/user/test/com/google/gwt/app/place/PlaceControllerTest.java

===
--- /dev/null
+++ /trunk/user/src/com/google/gwt/app/place/PlaceChangeRequestEvent.java	 
Fri Sep 17 09:11:27 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.app.place;
+
+import com.google.gwt.event.shared.EventHandler;
+import com.google.gwt.event.shared.GwtEvent;
+
+/**
+ * p
+ * span style=color:redExperimental API: This class is still under  
rapid

+ * development, and is very likely to be deleted. Use it at your own risk.
+ * /span
+ * /p
+ * Event thrown when the user may go to a new place in the app, or tries to
+ * leave it. Receivers can call {...@link #setWarning(String)} request that  
the

+ * user be prompted to confirm the change.
+ */
+public class PlaceChangeRequestEvent extends
+GwtEventPlaceChangeRequestEvent.Handler {
+
+  /**
+   * Implemented by handlers of PlaceChangeRequestEvent.
+   *
+   * @param P the type of the requested Place
+   */
+  public interface Handler extends EventHandler {
+void onPlaceChangeRequest(PlaceChangeRequestEvent event);
+  }
+
+  public static final TypeHandler TYPE = new TypeHandler();
+
+  private String warning;
+
+  private final Place newPlace;
+
+  public PlaceChangeRequestEvent(Place newPlace) {
+this.newPlace = newPlace;
+  }
+
+  @Override
+  public TypeHandler getAssociatedType() {
+return TYPE;
+  }
+
+  /**
+   * @return the place we may navigate to, or null on window close
+   */
+  public Place getNewPlace() {
+return newPlace;
+  }
+
+  /**
+   * @return the warning message to show the user before allowing the place
+   * change, or null if none has been set
+   */
+  public String getWarning() {
+return warning;
+  }
+
+  /**
+   * Set a message to warn the user that it might be unwise to navigate  
away
+   * from the current place, e.g. due to unsaved changes. If the user  
clicks

+   * okay to that message, navigation will be canceled.
+   * p
+   * Calling with a null warning is the same as not calling the method at  
all --

+   * the user will not be prompted.
+   * p
+   * Only the first non-null call to setWarning has any effect. That is,  
once

+   * the warning message has been set it cannot be cleared.
+   */
+  public void setWarning(String warning) {
+if (this.warning == null) {
+  this.warning = warning;
+}
+  }
+
+  @Override
+  protected void dispatch(Handler handler) {
+handler.onPlaceChangeRequest(this);
+  }
+}
===
--- /dev/null
+++  
/trunk/user/test/com/google/gwt/app/place/PlaceChangeRequestEventTest.java	 
Fri Sep 17 09:11:27 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.app.place;
+
+import junit.framework.TestCase;
+
+/**
+ * Eponymous test class.
+ */
+public class PlaceChangeRequestEventTest extends TestCase {
+  private static final String W1 = foo;
+
+  public void 

[gwt-contrib] Re: Optimize ResourceOracle refresh by doing multiple oracles at the same time (issue887801)

2010-09-17 Thread conroy

http://gwt-code-reviews.appspot.com/887801/show

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


[gwt-contrib] Re: Extract a RequestTransport interface and DefaultRequestTransport implementation from RequestFactory. (issue890802)

2010-09-17 Thread rjrjr

LGTM


http://gwt-code-reviews.appspot.com/890802/show

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


[gwt-contrib] Re: Optimize ResourceOracle refresh by doing multiple oracles at the same time (issue887801)

2010-09-17 Thread scottb

LGTM


http://gwt-code-reviews.appspot.com/887801/diff/19001/11
File
dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java
(right):

http://gwt-code-reviews.appspot.com/887801/diff/19001/11#newcode187
dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java:187:
oracles[i + 1] = rest[i];
System.arraycopy(rest, 0, oracles, 1, rest.length);

:)

http://gwt-code-reviews.appspot.com/887801/show

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


[gwt-contrib] [google-web-toolkit] r8812 committed - Extract a RequestTransport interface and DefaultRequestTransport imple...

2010-09-17 Thread codesite-noreply

Revision: 8812
Author: gwt.mirror...@gmail.com
Date: Fri Sep 17 12:21:10 2010
Log: Extract a RequestTransport interface and DefaultRequestTransport  
implementation from RequestFactory.
This will allow end-users to have arbitrary control over the way RF  
communicates with the server.

Patch by: bobv
Review by: rjrjr
Review at http://gwt-code-reviews.appspot.com/890802

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

Added:
  
/trunk/user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java

 /trunk/user/src/com/google/gwt/requestfactory/shared/RequestTransport.java
Modified:
  
/trunk/user/src/com/google/gwt/requestfactory/client/impl/RequestFactoryJsonImpl.java

 /trunk/user/src/com/google/gwt/requestfactory/shared/RequestFactory.java

===
--- /dev/null
+++  
/trunk/user/src/com/google/gwt/requestfactory/client/DefaultRequestTransport.java	 
Fri Sep 17 12:21:10 2010

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

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

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

+ * the License.
+ */
+package com.google.gwt.requestfactory.client;
+
+import static  
com.google.gwt.user.client.rpc.RpcRequestBuilder.STRONG_NAME_HEADER;

+import com.google.gwt.core.client.GWT;
+import com.google.gwt.event.shared.EventBus;
+import com.google.gwt.http.client.Request;
+import com.google.gwt.http.client.RequestBuilder;
+import com.google.gwt.http.client.RequestCallback;
+import com.google.gwt.http.client.RequestException;
+import com.google.gwt.http.client.Response;
+import com.google.gwt.requestfactory.shared.RequestEvent;
+import com.google.gwt.requestfactory.shared.RequestFactory;
+import com.google.gwt.requestfactory.shared.RequestTransport;
+import com.google.gwt.requestfactory.shared.RequestEvent.State;
+import com.google.gwt.user.client.Window.Location;
+
+import java.util.logging.Level;
+import java.util.logging.Logger;
+
+/**
+ * An implementation of {...@link RequestTransport} that uses a
+ * {...@link RequestBuilder}.
+ */
+public class DefaultRequestTransport implements RequestTransport {
+  /*
+   * A separate logger for wire activity, which does not get logged by the
+   * remote log handler, so we avoid infinite loops. All log messages that  
could
+   * happen every time a request is made from the server should be logged  
to

+   * this logger.
+   */
+  private static Logger wireLogger =  
Logger.getLogger(WireActivityLogger);

+  private static final String SERVER_ERROR = Server Error;
+  private final EventBus eventBus;
+  private String requestUrl = GWT.getHostPageBaseURL() +  
RequestFactory.URL;

+
+  /**
+   * Construct a DefaultRequestTransport.
+   *
+   * @param eventBus the same EventBus passed into {...@link  
RequestFactory#init}.

+   */
+  public DefaultRequestTransport(EventBus eventBus) {
+if (eventBus == null) {
+  throw new IllegalArgumentException(eventBus must not be null);
+}
+this.eventBus = eventBus;
+  }
+
+  /**
+   * Returns the current URL used by this transport.
+   */
+  public String getRequestUrl() {
+return requestUrl;
+  }
+
+  public void send(String payload, Receiver receiver) {
+RequestBuilder builder = createRequestBuilder();
+configureRequestBuilder(builder);
+
+builder.setRequestData(payload);
+builder.setCallback(createRequestCallback(receiver));
+
+try {
+  wireLogger.finest(Sending fire request);
+  builder.send();
+  postRequestEvent(State.SENT, null);
+} catch (RequestException e) {
+  wireLogger.log(Level.SEVERE, SERVER_ERROR +  ( + e.getMessage()  
+ ),

+  e);
+}
+  }
+
+  /**
+   * Override the default URL used by this transport.
+   */
+  public void setRequestUrl(String url) {
+this.requestUrl = url;
+  }
+
+  /**
+   * Override to change the headers sent in the HTTP request.
+   */
+  protected void configureRequestBuilder(RequestBuilder builder) {
+builder.setHeader(Content-Type,  
RequestFactory.JSON_CONTENT_TYPE_UTF8);

+builder.setHeader(pageurl, Location.getHref());
+builder.setHeader(STRONG_NAME_HEADER, GWT.getPermutationStrongName());
+  }
+
+  /**
+   * Constructs a RequestBuilder using the {...@link RequestBuilder#POST}  
method

+   * sent to the URL returned from {...@link #getRequestUrl()}.
+   */
+  protected RequestBuilder createRequestBuilder() {
+return new RequestBuilder(RequestBuilder.POST, getRequestUrl());
+  }
+
+  /**
+   * Creates a RequestCallback that maps the HTTP 

[gwt-contrib] [google-web-toolkit] r8813 committed - Re-roll issue 887801. Update the embedded Tomcat server and don't let ...

2010-09-17 Thread codesite-noreply

Revision: 8813
Author: con...@google.com
Date: Fri Sep 17 13:02:11 2010
Log: Re-roll issue 887801. Update the embedded Tomcat server and don't let  
callers accidentally refresh 0 oracles.


*** Original change description ***
Optimize ResourceOracle refresh by doing multiple oracles at the same time

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

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

Modified:
 /trunk/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
 /trunk/dev/core/src/com/google/gwt/dev/resource/impl/ClassPathEntry.java
  
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java
  
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/ResourceOracleImpl.java
  
/trunk/dev/core/src/com/google/gwt/dev/shell/tomcat/EmbeddedTomcatServer.java
  
/trunk/dev/core/test/com/google/gwt/dev/resource/impl/ResourceOracleImplRealClasspathTest.java
  
/trunk/dev/core/test/com/google/gwt/dev/resource/impl/ResourceOracleImplTest.java


===
--- /trunk/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java	Thu Sep 16  
10:01:06 2010
+++ /trunk/dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java	Fri Sep 17  
13:02:11 2010

@@ -340,7 +340,7 @@
 NON_JAVA_RESOURCES, pathPrefix.shouldReroot()));
   }
   lazyResourcesOracle.setPathPrefixes(newPathPrefixes);
-  lazyResourcesOracle.refresh(TreeLogger.NULL);
+  ResourceOracleImpl.refresh(TreeLogger.NULL, lazyResourcesOracle);
 }
 return lazyResourcesOracle;
   }
@@ -402,11 +402,11 @@
 + ');

 // Refresh resource oracles.
-lazyPublicOracle.refresh(logger);
-lazySourceOracle.refresh(logger);
-
-if (lazyResourcesOracle != null) {
-  lazyResourcesOracle.refresh(logger);
+if (lazyResourcesOracle == null) {
+  ResourceOracleImpl.refresh(logger, lazyPublicOracle,  
lazySourceOracle);

+} else {
+  ResourceOracleImpl.refresh(
+  logger, lazyPublicOracle, lazySourceOracle, lazyResourcesOracle);
 }
 moduleDefEvent.end();
   }
@@ -482,13 +482,13 @@
   lazyPublicOracle = new ResourceOracleImpl(branch);
   lazyPublicOracle.setPathPrefixes(publicPrefixSet);
 }
-lazyPublicOracle.refresh(branch);

 // Create the source path.
 branch = Messages.SOURCE_PATH_LOCATIONS.branch(logger, null);
 lazySourceOracle = new ResourceOracleImpl(branch);
 lazySourceOracle.setPathPrefixes(sourcePrefixSet);
-lazySourceOracle.refresh(branch);
+
+ResourceOracleImpl.refresh(logger, lazyPublicOracle, lazySourceOracle);
 if (lazySourceOracle.getResources().isEmpty()) {
   branch.log(TreeLogger.WARN,
   No source path entries; expect subsequent failures, null);
===
---  
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/ClassPathEntry.java	 
Thu Sep 16 10:01:06 2010
+++  
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/ClassPathEntry.java	 
Fri Sep 17 13:02:11 2010

@@ -17,6 +17,8 @@

 import com.google.gwt.core.ext.TreeLogger;

+import java.util.ArrayList;
+import java.util.List;
 import java.util.Map;

 /**
@@ -37,6 +39,22 @@
*/
   public abstract MapAbstractResource, PathPrefix  
findApplicableResources(

   TreeLogger logger, PathPrefixSet pathPrefixSet);
+
+  /**
+   * Finds applicable resources for a list of pathPrefixSets, returning a
+   * distinct answer for each set.
+   *
+   * @see #findApplicableResources(TreeLogger, PathPrefixSet)
+   */
+  public ListMapAbstractResource, PathPrefix findApplicableResources(
+  TreeLogger logger, ListPathPrefixSet pathPrefixSets) {
+ListMapAbstractResource, PathPrefix results = new ArrayList
+MapAbstractResource, PathPrefix(pathPrefixSets.size());
+for (PathPrefixSet pathPrefixSet : pathPrefixSets) {
+  results.add(findApplicableResources(logger, pathPrefixSet));
+}
+return results;
+  }

   /**
* Gets a URL string that describes this class path entry.
===
---  
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java	 
Thu Sep 16 10:01:06 2010
+++  
/trunk/dev/core/src/com/google/gwt/dev/resource/impl/DirectoryClassPathEntry.java	 
Fri Sep 17 13:02:11 2010

@@ -16,10 +16,13 @@
 package com.google.gwt.dev.resource.impl;

 import com.google.gwt.core.ext.TreeLogger;
+import com.google.gwt.dev.util.collect.Lists;
 import com.google.gwt.dev.util.msg.Message1String;

 import java.io.File;
+import java.util.ArrayList;
 import java.util.IdentityHashMap;
+import java.util.List;
 import java.util.Map;

 /**
@@ -28,15 +31,9 @@
 public class DirectoryClassPathEntry extends ClassPathEntry {

   private static class Messages {
-static final Message1String NOT_DESCENDING_INTO_DIR = new  
Message1String(

-TreeLogger.SPAM, Prefix set does not include dir: $0);
-
 static final Message1String DESCENDING_INTO_DIR = new Message1String(
 TreeLogger.SPAM, Descending into dir: $0);

-