Re: turn off auto-completion suggestion box on uibinder ui.xml in eclipse

2010-10-21 Thread Yau
I found it.

Preferences-XML-Editor-Automatically make suggestions.

On Oct 21, 1:16 pm, Kevin (Yau) Leung kvle...@gmail.com wrote:
 I wonder if it's only me having this problem.  Whenever I edit the ui.xml in
 eclipse, the auto-completion box comes up and it's extraordinary slow.  Is
 there any method to turn it off?

 Kevin

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



How to develop a modular enterprise application using just GWT

2010-10-21 Thread Heidarzadeh
Hi
I want to design and develop a big enterprise application using just
GWT in client side.
I want to break this enterprise application into parts and I call each
of them a module (or bundle or portlet or whatever!) . These modules
might have relation with each other and might call some services that
exists in other modules (in both client and server side) .
The problem is, These modules must be Designed , Developed, Compiled
and Deployed Independently and Dynamically and they will be placed and
shown together in one context on the client  and the dependencies
between modules should be manageable (in both client and server side).
What can I do? What kind of technologies I can use to build an
enterprise application like this?
When you develop an application that is not divided into parts (In the
way that i mentioned) you can easily deploy your application after
building your project, but when you change just one form in your
application you have to build the entire application again, and
deploy  the entire application.
In this application I cannot stop the server to deploy the application
again, I want to change and deploy that part of application that is
needed to be changed not  the entire application!!!
Of course I have searched about the way that I can solve my problem!!!
I have found that I can use OSGI on server side because it provides
modularity at software construction level  and helps me to manage life
cycle of modules  and many other benefits that you know!
And I have found that I can use Gadgets on client side.
What do you think? Are they good choices?
If they are good choices, how can I start? I know that we have
different kinds of implementations of OSGi, like Apache Felix, Eclipse
Equinox and Knopflerfish. Which one is good for this choice?
How GWT and OSGi can be integrated? How can they interact with each
other?
To do this a gadget container is needed on client side!!! I should
develop it myself or I can use other technologies?

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



SuggestBox with huge amount of records

2010-10-21 Thread Florian Rhomberg
Hello!

I need to implement a suggest box. Therefor I found a possibility to create 
that on this page: 
http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.SuggestBox.html
But however I cannot use this code with the oracle because I have more than 
7 datas. Therefore I want to realise this in that way:

After each character the system should send an rpc call to the server where the 
server makes a database query and returns the result which is afterwards 
displayed beneath the textfield.

Can someone help how such a code would look like in gwt?

Thanks,
Florian

-- 
You received 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: Refresh and back button not working

2010-10-21 Thread Vibhuti Gupta
Hello

Thanks for the prompt replies. Using History class I was able to make the
'Back/Forward' browser buttons work. But the 'Refresh' button does not work.
When I click 'Refresh' button the page shows 'GWT Code Server disconnected'.
Any ideas on how can I make the 'Refresh' button of the browser work.

Regards

On Fri, Oct 15, 2010 at 6:06 PM, David Chandler (Google) 
drfibona...@google.com wrote:

 Spot on. When you press Reload, you're just reloading the HTML host
 page and reloading the JS. This is a challenge with all JS apps.
 Fortunately, GWT solves it well with the History object and the
 various MVP frameworks (including Activities and Places in GWT 2.1)
 make it even easier.


 http://code.google.com/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html

 --
 David Chandler
 Developer Programs Engineer, GWT

 On Oct 15, 7:53 am, salk31 s...@redspr.com wrote:
  Have you looked at the History class? GWT gets around the problem you
  are talking about by using #foo stuck on the end of the URL (so will
  work for reload and browser history).
 
  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist...
 
  Works really nicely. I've not played with it yet but higher level
  support in 2.1
 
  On Oct 15, 8:32 am, Vibhuti Gupta guptavibh...@gmail.com wrote:
 
 
 
   Hi
 
   When I refresh any page in my GWT application it loads the login page
 as the
   browser URL does not change. Also clicking back button of the browser
 loads
   the login page. I need a way to load the page i am currently on when
 user
   refreshes the page instead of login page getting loaded.
 
   Anyone has any ideas how to achieve it.
 
   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.



Creating a JSON object in GWT

2010-10-21 Thread Vibhuti Gupta
Hello

I need to create a json object in GWT. I was trying to create a JSON object
using XMLSerializer but it does not work in GWT.
Any ideas on this...

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: SuggestBox with huge amount of records

2010-10-21 Thread ep
why cant u use it? SuggestOracle allows async fetching of data, please
read java doc on this interface
com.google.gwt.user.client.ui.SuggestOracle.Suggestion

On 21 Okt., 09:09, Florian Rhomberg florian.rhomb...@nettania.at
wrote:
 Hello!

 I need to implement a suggest box. Therefor I found a possibility to create 
 that on this 
 page:http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.Suggest...
 But however I cannot use this code with the oracle because I have more than 
 7 datas. Therefore I want to realise this in that way:

 After each character the system should send an rpc call to the server where 
 the server makes a database query and returns the result which is afterwards 
 displayed beneath the textfield.

 Can someone help how such a code would look like in gwt?

 Thanks,
 Florian

-- 
You received 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: Creating a JSON object in GWT

2010-10-21 Thread ep
XMLSerializer is for serializing into XML format... if you want to
JSONize your object you can use overlay types in conjunction with
com.google.gwt.json.client.JSONObject

On 21 Okt., 09:49, Vibhuti Gupta guptavibh...@gmail.com wrote:
 Hello

 I need to create a json object in GWT. I was trying to create a JSON object
 using XMLSerializer but it does not work in GWT.
 Any ideas on this...

 Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: help:Serialize/Deserialize a gwt gui to/from an XML (template)

2010-10-21 Thread MAM
hi,
for the second part of the project (xml--GWT GUI) i found some
solutions (your solution included), but i have no idea how to start
with the first part: (GWT GUI--xml)
in the hope that you have a solution to my problem
Thanks

On 20 oct, 16:44, David Chandler drfibona...@google.com wrote:
 Hi MAM,

 You can use GWT's UiBinder capability to create a view from an XML
 template; however, there is no way I know of to do this at runtime
 because GWT generates the corresponding Javascript at compile time.

 HTH,





 On Wed, Oct 20, 2010 at 11:09 AM, MAM mersni.am...@gmail.com wrote:
  Please, i need some ideas , don't know how to start my project

  On 19 oct, 16:46, MAM mersni.am...@gmail.com wrote:
  Hi, briefly, the tool will be able to serialize a GUI written in GWT
  (in
  input) into XML/JSON (preferably XML) file , and perform the reverse:
  read the created XML file (template) and reconstruct the GUI.
  I'm newbie with GWT , so any idea will be welcome concerning the type
  of tool i can develop  and  tools, tutorials, library that seem
  useful
  need help for the first stage of the project: generating an xml
  template from GUI written in GWT
  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 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 David Chandler
 Developer Programs Engineer, Google Web 
 Toolkithttp://googlewebtoolkit.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.



Google Wave

2010-10-21 Thread gopal bhalala
Hi to all,

I want to create widget like Google wave...

User can minimize and close the panel like Google wave

Please give me suggestion how to create it or any ready made widget like
google wave


Thanks in advance..



Best Regards  Thanking you,
Gopal Dhanjibhai Bhalala

-- 
You received 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 develop a modular enterprise application using just GWT

2010-10-21 Thread dmen
How GWT and OSGi can be integrated?

I don't think they can. GWT binaries run in the browser, not in a
JVM. This also means that, as long your changes do not affect server
side code, you can redeploy the client GWT code without having to stop
the server.

On Oct 21, 9:19 am, Heidarzadeh heidarzad...@gmail.com wrote:
 Hi
 I want to design and develop a big enterprise application using just
 GWT in client side.
 I want to break this enterprise application into parts and I call each
 of them a module (or bundle or portlet or whatever!) . These modules
 might have relation with each other and might call some services that
 exists in other modules (in both client and server side) .
 The problem is, These modules must be Designed , Developed, Compiled
 and Deployed Independently and Dynamically and they will be placed and
 shown together in one context on the client  and the dependencies
 between modules should be manageable (in both client and server side).
 What can I do? What kind of technologies I can use to build an
 enterprise application like this?
 When you develop an application that is not divided into parts (In the
 way that i mentioned) you can easily deploy your application after
 building your project, but when you change just one form in your
 application you have to build the entire application again, and
 deploy  the entire application.
 In this application I cannot stop the server to deploy the application
 again, I want to change and deploy that part of application that is
 needed to be changed not  the entire application!!!
 Of course I have searched about the way that I can solve my problem!!!
 I have found that I can use OSGI on server side because it provides
 modularity at software construction level  and helps me to manage life
 cycle of modules  and many other benefits that you know!
 And I have found that I can use Gadgets on client side.
 What do you think? Are they good choices?
 If they are good choices, how can I start? I know that we have
 different kinds of implementations of OSGi, like Apache Felix, Eclipse
 Equinox and Knopflerfish. Which one is good for this choice?
 How GWT and OSGi can be integrated? How can they interact with each
 other?
 To do this a gadget container is needed on client side!!! I should
 develop it myself or I can use other technologies?

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



History broken after using ClosingHandler

2010-10-21 Thread andreas
Hey,

we encountered a strange problem when using a ClosingHandler(GWT
2.0.3) to display the browser's prompt dialog before leaving our
application. We use this as a temporary workaround before having our
history support wired up completely so that users do not lose data by
accidently leaving the application.

The problem was encountered in Chrome. I just submitted a bug for
Chromium here: http://code.google.com/p/chromium/issues/detail?id=60074.

However we noticed that it also did not work on IE(8) so I decided to
post it here as well just in case it is also a problem with the
generated JavaScript. It works in FF (3.x and 4).

Now the problem:
After clicking back and Stay on this Page the forward button is
enabled and contains the history entries previously shown for the
backwards history. However the browser remained on the current page.
It seems like it stays on the page but internally manipulates the
navigation history as if it would have navigated back, though it did
not.

Has anyone encountered this before? I'm not sure how much JavaScript
is involved in the functionality (though I doubt it's a lot) but if
necessary I could raise an issue for GWT as well.

Regards,

Andreas

-- 
You received 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 develop a modular enterprise application using just GWT

2010-10-21 Thread Heidarzadeh
Thanks for your response.
But I think they can!
I want to deploy BOTH server and client side code together,
independently for each module, not just client side code, or server
side code, for each module.
If I know how to compile one part(module) of my GWT application and
get the java script output one of the problems will be solved!!
I think one of My main problems is in the client side and compiling
GWT application partially and gathering those parts in one context.
If i have a context that can manage dependencies and showing of these
modules my main problem will be solved.

On Oct 21, 11:41 am, dmen dmenou...@gmail.com wrote:
 How GWT and OSGi can be integrated?

 I don't think they can. GWT binaries run in the browser, not in a
 JVM. This also means that, as long your changes do not affect server
 side code, you can redeploy the client GWT code without having to stop
 the server.

 On Oct 21, 9:19 am, Heidarzadeh heidarzad...@gmail.com wrote:

  Hi
  I want to design and develop a big enterprise application using just
  GWT in client side.
  I want to break this enterprise application into parts and I call each
  of them a module (or bundle or portlet or whatever!) . These modules
  might have relation with each other and might call some services that
  exists in other modules (in both client and server side) .
  The problem is, These modules must be Designed , Developed, Compiled
  and Deployed Independently and Dynamically and they will be placed and
  shown together in one context on the client  and the dependencies
  between modules should be manageable (in both client and server side).
  What can I do? What kind of technologies I can use to build an
  enterprise application like this?
  When you develop an application that is not divided into parts (In the
  way that i mentioned) you can easily deploy your application after
  building your project, but when you change just one form in your
  application you have to build the entire application again, and
  deploy  the entire application.
  In this application I cannot stop the server to deploy the application
  again, I want to change and deploy that part of application that is
  needed to be changed not  the entire application!!!
  Of course I have searched about the way that I can solve my problem!!!
  I have found that I can use OSGI on server side because it provides
  modularity at software construction level  and helps me to manage life
  cycle of modules  and many other benefits that you know!
  And I have found that I can use Gadgets on client side.
  What do you think? Are they good choices?
  If they are good choices, how can I start? I know that we have
  different kinds of implementations of OSGi, like Apache Felix, Eclipse
  Equinox and Knopflerfish. Which one is good for this choice?
  How GWT and OSGi can be integrated? How can they interact with each
  other?
  To do this a gadget container is needed on client side!!! I should
  develop it myself or I can use other technologies?



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



Google App Engine Channel API

2010-10-21 Thread monkeyboy
If I am not mistaken on this year's Google I/O there was an
announcement that the channel API from the GAE would be made available
to GWT. I think it was mentioned in the dance dance robot
presentation. Is there any information on the state of this
integration? When could we expect to see this in GWT?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 2.1 hellomvp using GIN

2010-10-21 Thread Sebastian Beigel
Thank you Thomas,

that's what I was thinking -- and I'm playing with a custom code
generator already :)

Just wondering what they mean with the GIN comments in the doc/code...

In my pre-2.1 homegrown framework I use a code-generated presenter
config based on a Ginjector (declaring all the getFooPresenter()
methods annotated with location (place) and security informations). My
presenters were singletons and were started with the actual Place.
That way I could use GIN to (constructor) inject all my dependencies.
I'm not sure if I like this 2.1-design (constructing activities with
the actual place) which means I cannot use GIN to construct them.
Maybe I make my activities extends some AbstractBaseActivity
containing a setPlace(P place) method which is called in the
ActivityMapper...

Sebastian


On Wed, Oct 20, 2010 at 11:22 PM, Thomas Broyer t.bro...@gmail.com wrote:

 On 20 oct, 11:42, Sebastian Beigel sebast...@beigel.de wrote:
 Hi,

 I'm looking at 2.1 (RC1) for the first time right now and I try to
 refactor the hellomvp sample to use GIN.

 Unfortunately, I have some problems with the places - activities
 mapping. The doc says A better way to implement the chain of nested
 ifs would be with a GIN module. and the code is commented Map each
 Place to its corresponding Activity. This would be a great use for
 GIN..

 I agree, but I don't really know how to do this mapping :) Has anyone
 refactored this code to use GIN?

 You just can't actually. What could work is using a Ginjector as the
 factory of a PlaceHistoryMapperWithFactory, but for ActivityMapper
 this is not possible (it could be by adding a code generator using a
 factory of activity factories, similar to the factory of place
 tokenizers (which are kind of factories for places) for
 PlaceHistoryMapperWithFactory).
 I wrote an code generator for ActivityMapper some time ago http://gwt-
 code-reviews.appspot.com/845802/show it won't do what you're asking
 for but could probably be used as a basis for it. But you'd first have
 to decide how to model a factory of activities that would be
 returned by your Ginjector as a factory for
 ActivityMapperWithFactory.

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



Position of the Splitter in the HorizontalSplitPanel

2010-10-21 Thread alexoffspring
Hi all
it is not possible to get the positione of the Splitter into an
HorizontalSplitPanel.

If i try to extend the HorizontalSplitPanel the override the
appropriate method and set it public, Eclipse
warn me it is a deprecated class

Anybody knows a way to solve this?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 develop a modular enterprise application using just GWT

2010-10-21 Thread ep
hi, there is already a similiar topic, read ideas on it
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/e73ced6ba51c3def#

On 21 Okt., 11:22, Heidarzadeh heidarzad...@gmail.com wrote:
 Thanks for your response.
 But I think they can!
 I want to deploy BOTH server and client side code together,
 independently for each module, not just client side code, or server
 side code, for each module.
 If I know how to compile one part(module) of my GWT application and
 get the java script output one of the problems will be solved!!
 I think one of My main problems is in the client side and compiling
 GWT application partially and gathering those parts in one context.
 If i have a context that can manage dependencies and showing of these
 modules my main problem will be solved.

 On Oct 21, 11:41 am, dmen dmenou...@gmail.com wrote:

  How GWT and OSGi can be integrated?

  I don't think they can. GWT binaries run in the browser, not in a
  JVM. This also means that, as long your changes do not affect server
  side code, you can redeploy the client GWT code without having to stop
  the server.

  On Oct 21, 9:19 am, Heidarzadeh heidarzad...@gmail.com wrote:

   Hi
   I want to design and develop a big enterprise application using just
   GWT in client side.
   I want to break this enterprise application into parts and I call each
   of them a module (or bundle or portlet or whatever!) . These modules
   might have relation with each other and might call some services that
   exists in other modules (in both client and server side) .
   The problem is, These modules must be Designed , Developed, Compiled
   and Deployed Independently and Dynamically and they will be placed and
   shown together in one context on the client  and the dependencies
   between modules should be manageable (in both client and server side).
   What can I do? What kind of technologies I can use to build an
   enterprise application like this?
   When you develop an application that is not divided into parts (In the
   way that i mentioned) you can easily deploy your application after
   building your project, but when you change just one form in your
   application you have to build the entire application again, and
   deploy  the entire application.
   In this application I cannot stop the server to deploy the application
   again, I want to change and deploy that part of application that is
   needed to be changed not  the entire application!!!
   Of course I have searched about the way that I can solve my problem!!!
   I have found that I can use OSGI on server side because it provides
   modularity at software construction level  and helps me to manage life
   cycle of modules  and many other benefits that you know!
   And I have found that I can use Gadgets on client side.
   What do you think? Are they good choices?
   If they are good choices, how can I start? I know that we have
   different kinds of implementations of OSGi, like Apache Felix, Eclipse
   Equinox and Knopflerfish. Which one is good for this choice?
   How GWT and OSGi can be integrated? How can they interact with each
   other?
   To do this a gadget container is needed on client side!!! I should
   develop it myself or I can use other technologies?

-- 
You received 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 2.1 hellomvp using GIN

2010-10-21 Thread Richard Allen
There is another thread on the GWT contributors group about this
topic.
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/732e66a858a8ef0b/38a3f36ffc1767a0

-Richard

On Oct 21, 5:59 am, Sebastian Beigel sebast...@beigel.de wrote:
 Thank you Thomas,

 that's what I was thinking -- and I'm playing with a custom code
 generator already :)

 Just wondering what they mean with the GIN comments in the doc/code...

 In my pre-2.1 homegrown framework I use a code-generated presenter
 config based on a Ginjector (declaring all the getFooPresenter()
 methods annotated with location (place) and security informations). My
 presenters were singletons and were started with the actual Place.
 That way I could use GIN to (constructor) inject all my dependencies.
 I'm not sure if I like this 2.1-design (constructing activities with
 the actual place) which means I cannot use GIN to construct them.
 Maybe I make my activities extends some AbstractBaseActivity
 containing a setPlace(P place) method which is called in the
 ActivityMapper...

 Sebastian







 On Wed, Oct 20, 2010 at 11:22 PM, Thomas Broyer t.bro...@gmail.com wrote:

  On 20 oct, 11:42, Sebastian Beigel sebast...@beigel.de wrote:
  Hi,

  I'm looking at 2.1 (RC1) for the first time right now and I try to
  refactor the hellomvp sample to use GIN.

  Unfortunately, I have some problems with the places - activities
  mapping. The doc says A better way to implement the chain of nested
  ifs would be with a GIN module. and the code is commented Map each
  Place to its corresponding Activity. This would be a great use for
  GIN..

  I agree, but I don't really know how to do this mapping :) Has anyone
  refactored this code to use GIN?

  You just can't actually. What could work is using a Ginjector as the
  factory of a PlaceHistoryMapperWithFactory, but for ActivityMapper
  this is not possible (it could be by adding a code generator using a
  factory of activity factories, similar to the factory of place
  tokenizers (which are kind of factories for places) for
  PlaceHistoryMapperWithFactory).
  I wrote an code generator for ActivityMapper some time ago http://gwt-
  code-reviews.appspot.com/845802/show it won't do what you're asking
  for but could probably be used as a basis for it. But you'd first have
  to decide how to model a factory of activities that would be
  returned by your Ginjector as a factory for
  ActivityMapperWithFactory.

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



Re: How to develop a modular enterprise application using just GWT

2010-10-21 Thread Heidarzadeh
Thanks for your response.
That topic is about using Communication of Iframes and Code Splitting
is recommended there.
Actually I'm already using the great feature of Code Splitting but it
does not solve my hole problem. because when ever i want to change one
part(module)* of my application I have to compile the entire
application and deploy it and that's annoying me a lot as i mentioned
because i can not stop the server to deploy the application, instead I
want to deploy that part dynamically.
About Iframes, I don't want to use them because communicating between
Iframes is hard. Have a look at iGoogle, What does it do to load java
script and html dynamically for each gadget?

*NOTE : I don't mean GWT MODULE by module,As i mentioned earlier I
break my application into parts(different packages in client and
server side) and I call them module or portlet or bundle or ... .

In my application I have just one GWT MODULE.
Another idea for my problem is to make one GWT project(or GWT module)
for each part of my application and then to load each module in one
Iframe. but in this way How can I communicate between modules? and I
think again I will have problem with integrating with OSGi and
compiling them independently and adding them in one context in client
side to show them to user. so I can not create one GWT MODULE for each
part of my application.
I want every thing to be dynamic ;) that might be very hard but if any
one could help me and give me a clue I will try to solve the problem
and report it here ;)


On Oct 21, 2:59 pm, ep eplisc...@googlemail.com wrote:
 hi, there is already a similiar topic, read ideas on 
 ithttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 On 21 Okt., 11:22, Heidarzadeh heidarzad...@gmail.com wrote:

  Thanks for your response.
  But I think they can!
  I want to deploy BOTH server and client side code together,
  independently for each module, not just client side code, or server
  side code, for each module.
  If I know how to compile one part(module) of my GWT application and
  get the java script output one of the problems will be solved!!
  I think one of My main problems is in the client side and compiling
  GWT application partially and gathering those parts in one context.
  If i have a context that can manage dependencies and showing of these
  modules my main problem will be solved.

  On Oct 21, 11:41 am, dmen dmenou...@gmail.com wrote:

   How GWT and OSGi can be integrated?

   I don't think they can. GWT binaries run in the browser, not in a
   JVM. This also means that, as long your changes do not affect server
   side code, you can redeploy the client GWT code without having to stop
   the server.

   On Oct 21, 9:19 am, Heidarzadeh heidarzad...@gmail.com wrote:

Hi
I want to design and develop a big enterprise application using just
GWT in client side.
I want to break this enterprise application into parts and I call each
of them a module (or bundle or portlet or whatever!) . These modules
might have relation with each other and might call some services that
exists in other modules (in both client and server side) .
The problem is, These modules must be Designed , Developed, Compiled
and Deployed Independently and Dynamically and they will be placed and
shown together in one context on the client  and the dependencies
between modules should be manageable (in both client and server side).
What can I do? What kind of technologies I can use to build an
enterprise application like this?
When you develop an application that is not divided into parts (In the
way that i mentioned) you can easily deploy your application after
building your project, but when you change just one form in your
application you have to build the entire application again, and
deploy  the entire application.
In this application I cannot stop the server to deploy the application
again, I want to change and deploy that part of application that is
needed to be changed not  the entire application!!!
Of course I have searched about the way that I can solve my problem!!!
I have found that I can use OSGI on server side because it provides
modularity at software construction level  and helps me to manage life
cycle of modules  and many other benefits that you know!
And I have found that I can use Gadgets on client side.
What do you think? Are they good choices?
If they are good choices, how can I start? I know that we have
different kinds of implementations of OSGi, like Apache Felix, Eclipse
Equinox and Knopflerfish. Which one is good for this choice?
How GWT and OSGi can be integrated? How can they interact with each
other?
To do this a gadget container is needed on client side!!! I should
develop it myself or I can use other technologies?



-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.

GWT Help !!!

2010-10-21 Thread alexissua
Hello, Friends.

Im developing a web application, and i need access to the information
INSIDE a Web Site that it came as a result of  a google search (this
information could be for example a text field, or a name, or a price
of some product inside this page) to save it, or manipulate it, later.
So, my question is: will i be able to do this with Google Web Toolkit??

-- 
You received 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 2.1 hellomvp using GIN

2010-10-21 Thread Yuan
can't use gin at ActivityMapper? somehower, on the HelloMVP
AppActivityMapper,
it says

public Activity getActivity(Place place) {
// This is begging for GIN
if (place instanceof HelloPlace)
return new HelloActivity((HelloPlace) place, 
clientFactory);
else if (place instanceof GoodbyePlace)
return new GoodbyeActivity((GoodbyePlace) place, 
clientFactory);

return null;
}

On Oct 20, 3:22 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 20 oct, 11:42, Sebastian Beigel sebast...@beigel.de wrote:

  Hi,

  I'm looking at 2.1 (RC1) for the first time right now and I try to
  refactor the hellomvp sample to use GIN.

  Unfortunately, I have some problems with the places - activities
  mapping. The doc says A better way to implement the chain of nested
  ifs would be with a GIN module. and the code is commented Map each
  Place to its corresponding Activity. This would be a great use for
  GIN..

  I agree, but I don't really know how to do this mapping :) Has anyone
  refactored this code to use GIN?

 You just can't actually. What could work is using a Ginjector as the
 factory of a PlaceHistoryMapperWithFactory, but for ActivityMapper
 this is not possible (it could be by adding a code generator using a
 factory of activity factories, similar to the factory of place
 tokenizers (which are kind of factories for places) for
 PlaceHistoryMapperWithFactory).
 I wrote an code generator for ActivityMapper some time ago http://gwt-
 code-reviews.appspot.com/845802/show it won't do what you're asking
 for but could probably be used as a basis for it. But you'd first have
 to decide how to model a factory of activities that would be
 returned by your Ginjector as a factory for
 ActivityMapperWithFactory.

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



RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Márcio Menezes
Hi!.
Why does everytime I try to send a POST through RequestBuilder class and if
I add some header into it, the method goes as an OPTIONS, instead of post?

Has anyone experienced this? How can I work around it?

Regards,
Marcio

-- 
You received 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: SuggestBox with huge amount of records

2010-10-21 Thread jhulford
It's actually really quite easy.  You just need to create your own
SuggestOracle that overrides the requestSuggestions method and
executes some sort of code to contact your server/database to do the
search (GWT-RPC, REST, simple GET request, etc..) then utilizes the
Callback's onSuggestionsReady passed into the overriden method to
display the results of the server method.

On Oct 21, 3:09 am, Florian Rhomberg florian.rhomb...@nettania.at
wrote:
 Hello!

 I need to implement a suggest box. Therefor I found a possibility to create 
 that on this 
 page:http://www.gwtapps.com/doc/html/com.google.gwt.user.client.ui.Suggest...
 But however I cannot use this code with the oracle because I have more than 
 7 datas. Therefore I want to realise this in that way:

 After each character the system should send an rpc call to the server where 
 the server makes a database query and returns the result which is afterwards 
 displayed beneath the textfield.

 Can someone help how such a code would look like in gwt?

 Thanks,
 Florian

-- 
You received 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: createLoginUrl not working in gwt dev mode (GWT and GAE tutorial)

2010-10-21 Thread BrianP
I've run into the same problem.  I'm running in dev mode at
http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997 but
GWT.getHostPageBaseURL() returns http://127.0.0.1:/ and so I am
redirected there.  Is there any way to detect dev mode and append my
info, or have GWT.getHostPageBaseURL() return a dev mode url?

On Sep 3, 9:13 am, moriones avo...@gmail.com wrote:
 i get more or less the behaviour described in the quoted message (gwt
 2.0.4, appengine 1.3.7)

 when I return from login the application works but i cannot see what i
 send to the console with System.out, i cannot debug,
 I suppose this is because of the wrong urlhttp://127.0.0.1:/

 the system.out worked just one time after i made a 'gwt compile' (but
 the debug still didn't work)



 -- Forwarded message --
 From: Billy billy_turc...@hotmail.com
 Date: 19 Mag, 02:55
 Subject:createLoginUrlnotworkingin gwt dev mode - loses

 gwt.codesvr parameter
 To: Google Web Toolkit

 I have an application using GWT and AppEngine (more or less following
 the StockWatcher tutorial) which I access locally as:

 http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997

 I am creating a login url using:

 userService.createLoginURL(requestUri)

 where requestUri is passed to my server-side login service from my
 entry point as: GWT.getHostPageBaseURL().

 After logging in I am redirected tohttp://127.0.0.1:/

 This loses the dev mode parameter gwt.codesvr and thusly this redirect
 only works after I have a done a GWT compile.

 (This is using GWT SD 2.0.3 and App Engine SDK 1.3.3)

 Is it possible to use thecreateLoginUrlfunctionality while remaining
 in dev mode?

 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: GWT Help !!!

2010-10-21 Thread ep
YES, with some workarounds due to XSS

On 21 Okt., 05:42, alexissua alesca...@gmail.com wrote:
 Hello, Friends.

 Im developing a web application, and i need access to the information
 INSIDE a Web Site that it came as a result of  a google search (this
 information could be for example a text field, or a name, or a price
 of some product inside this page) to save it, or manipulate it, later.
 So, my question is: will i be able to do this with Google Web Toolkit??

-- 
You received 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: Does GWT designer currently work with UIBinder?

2010-10-21 Thread Eric Clayberg
Try the delete operation using the latest GWT Designer 8.1 build...

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

This build should also work better with existing UiBinder content (try
the GWT Mail example).

The provided=true issue is quite complex, and we are investigating
possible solutions. It might require some new dev time hooks into GWT
itself.

On Oct 19, 11:29 am, Jeff Larsen larse...@gmail.com wrote:
 Also, it looks like provided=true fields cause designer to not work. I
 understand why that would be hard, any chance of allowing us to pick
 some kind of stub for those provided=true fields when working in the
 designer?

 On Oct 19, 10:13 am, Jeff Larsen larse...@gmail.com wrote:

  Made a new ui binder file with generated sample content. That opened,
  but then WindowBuilder  crashed when I clicked on the button and hit
  delete.

  winxp 32
  Running on STS 2.5.0-RC1
  GWT 2.1-RC1

-- 
You received 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: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Brett Thomas
POST values should be encoded in the request data string, not the headers.
Not sure why there isn't an addPostValue method too. Here's some code I used
recently:

class CustomPOSTBuilder extends RequestBuilder {

private String request = ;

public CustomPOSTBuilder(String url, RequestCallback callback) {
super(RequestBuilder.POST, url);
this.setHeader(Content-Type, application/x-www-form-urlencoded);

this.setCallback(callback);
}

public void addPost(String key, String value) {
request += key + = + value + ;
}

public void go() {
this.setRequestData(request);
try {
this.send();
}
catch (RequestException r){
System.out.print(r.getMessage());
}
}

}

then send a request by:
CustomPOSTBuilder builder...
builder.addPost(key1, value1);
builder.addPost(key2, value2);
builder.send();


2010/10/21 Márcio Menezes marcio@gmail.com

 Hi!.
 Why does everytime I try to send a POST through RequestBuilder class and if
 I add some header into it, the method goes as an OPTIONS, instead of post?

 Has anyone experienced this? How can I work around it?

 Regards,
 Marcio

 --
 You received 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: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread marius.andreiana
On Oct 21, 4:59 pm, Márcio Menezes marcio@gmail.com wrote:
 Hi!.
 Why does everytime I try to send a POST through RequestBuilder class and if
 I add some header into it, the method goes as an OPTIONS, instead of post?

 Has anyone experienced this? How can I work around it?
See

http://en.wikipedia.org/wiki/Same_origin_policy
https://developer.mozilla.org/En/HTTP_Access_Control

work around by having htmljs served by the same host used to receive
the requests. You can use an iframe on that host, with src pointing to
another if needed.

-- 
You received 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: Refresh and back button not working

2010-10-21 Thread David Chandler
Code server disconnected indicates that the server has stopped. Check
the GWT console and server console to see if an exception is being
thrown.

HTH,

On Thu, Oct 21, 2010 at 3:02 AM, Vibhuti Gupta guptavibh...@gmail.com wrote:
 Hello
 Thanks for the prompt replies. Using History class I was able to make the
 'Back/Forward' browser buttons work. But the 'Refresh' button does not work.
 When I click 'Refresh' button the page shows 'GWT Code Server disconnected'.
 Any ideas on how can I make the 'Refresh' button of the browser work.
 Regards
 On Fri, Oct 15, 2010 at 6:06 PM, David Chandler (Google)
 drfibona...@google.com wrote:

 Spot on. When you press Reload, you're just reloading the HTML host
 page and reloading the JS. This is a challenge with all JS apps.
 Fortunately, GWT solves it well with the History object and the
 various MVP frameworks (including Activities and Places in GWT 2.1)
 make it even easier.


 http://code.google.com/webtoolkit/doc/trunk/DevGuideMvpActivitiesAndPlaces.html

 --
 David Chandler
 Developer Programs Engineer, GWT

 On Oct 15, 7:53 am, salk31 s...@redspr.com wrote:
  Have you looked at the History class? GWT gets around the problem you
  are talking about by using #foo stuck on the end of the URL (so will
  work for reload and browser history).
 
  http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsHist...
 
  Works really nicely. I've not played with it yet but higher level
  support in 2.1
 
  On Oct 15, 8:32 am, Vibhuti Gupta guptavibh...@gmail.com wrote:
 
 
 
   Hi
 
   When I refresh any page in my GWT application it loads the login page
   as the
   browser URL does not change. Also clicking back button of the browser
   loads
   the login page. I need a way to load the page i am currently on when
   user
   refreshes the page instead of login page getting loaded.
 
   Anyone has any ideas how to achieve it.
 
   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.


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




-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.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: createLoginUrl not working in gwt dev mode (GWT and GAE tutorial)

2010-10-21 Thread David Chandler
A possible workaround is to use GWT.isProdMode() and manually append
the codesvr URL.

HTH,

On Thu, Oct 21, 2010 at 10:17 AM, BrianP brifo...@gmail.com wrote:
 I've run into the same problem.  I'm running in dev mode at
 http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997 but
 GWT.getHostPageBaseURL() returns http://127.0.0.1:/ and so I am
 redirected there.  Is there any way to detect dev mode and append my
 info, or have GWT.getHostPageBaseURL() return a dev mode url?

 On Sep 3, 9:13 am, moriones avo...@gmail.com wrote:
 i get more or less the behaviour described in the quoted message (gwt
 2.0.4, appengine 1.3.7)

 when I return from login the application works but i cannot see what i
 send to the console with System.out, i cannot debug,
 I suppose this is because of the wrong urlhttp://127.0.0.1:/

 the system.out worked just one time after i made a 'gwt compile' (but
 the debug still didn't work)



 -- Forwarded message --
 From: Billy billy_turc...@hotmail.com
 Date: 19 Mag, 02:55
 Subject:createLoginUrlnotworkingin gwt dev mode - loses

 gwt.codesvr parameter
 To: Google Web Toolkit

 I have an application using GWT and AppEngine (more or less following
 the StockWatcher tutorial) which I access locally as:

 http://127.0.0.1:/mypage.jsp?gwt.codesvr=127.0.0.1:9997

 I am creating a login url using:

 userService.createLoginURL(requestUri)

 where requestUri is passed to my server-side login service from my
 entry point as: GWT.getHostPageBaseURL().

 After logging in I am redirected tohttp://127.0.0.1:/

 This loses the dev mode parameter gwt.codesvr and thusly this redirect
 only works after I have a done a GWT compile.

 (This is using GWT SD 2.0.3 and App Engine SDK 1.3.3)

 Is it possible to use thecreateLoginUrlfunctionality while remaining
 in dev mode?

 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.





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.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: Change default browser in dev mode

2010-10-21 Thread Chris Conroy
I'm not sure what GWT DevMode gizmo you are referring to. Perhaps this is a
netbeans issue? GWT itself doesn't launch the browser except from GPE
(eclipse) or GWTShell, and GWTShell will only launch it if you hit the
'Launch Browser' button.

Could you post a screenshot of what you're talking about?

On Thu, Oct 21, 2010 at 1:32 AM, magic callow_m...@hicorp.co.jp wrote:

 I am using NetBeans. However the browser is launched by the GWT
 DevMode gizmo which picks the system default browser. So I don't
 understand what Eclipse's Window | Web Browser menu item would have to
 do with it. Please enlighten me.

 On Oct 21, 6:22 am, A. Stevko andy.ste...@gmail.com wrote:
 
  Also, in eclipse, under the menu Window  | Web Browser, you can choose
 which
  browser will open.
 

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



Collection.sort in Linux Chrome 7, negative zero bug

2010-10-21 Thread recun...@gmail.com
When running Collection.sort weird behavior is occurring inside of the
javascript mergeSort function which is generated by GWT. Here is the
GWT generated javascript with some additional console.logs

function sort(x, c){
  mergeSort(x, 0, x.length, c?c:($clinit_2603() , $clinit_2603() ,
NATURAL));
}

function mergeSort(x, fromIndex, toIndex, comp){
  console.log('mergeSort: fromIndex = ' + fromIndex);
  console.log('mergesort: -fromIndex: ' + (-fromIndex));
  var temp_0, a, result;
  temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
  mergeSort_0(temp_0, x, fromIndex, toIndex, -fromIndex, comp);
}

function mergeSort_0(temp_0, array, low, high, ofs, comp){
  console.log('mergeSort_0: ofs = ' + (ofs));
  var length_0, tempHigh, tempLow, tempMid;
  length_0 = high - low;
  if (length_0  7) {
insertionSort(array, low, high, comp);
return;
  }
  tempLow = low + ofs;
  tempHigh = high + ofs;
  tempMid = tempLow + (~~(tempHigh - tempLow)  1);
  mergeSort_0(array, temp_0, tempLow, tempMid, -ofs, comp);
  mergeSort_0(array, temp_0, tempMid, tempHigh, -ofs, comp);
  if (comp.compare(temp_0[tempMid - 1], temp_0[tempMid]) = 0) {
while (low  high) {
  setCheck(array, low++, temp_0[tempLow++]);
}
return;
  }
  merge(temp_0, tempLow, tempMid, tempHigh, array, low, high, comp);
}

When sort is run on an array, the argument ofs of mergeSort_0
mysteriously becomes a large negative number when it is passed -0,
such as -4419.

Output of the console.log calls:

mergeSort: fromIndex = 0
mergeSort: -fromIndex: -4419
mergeSort_0: ofs = -4419
...
...

Now, if the same code is run, with a modified call to mergeSort_0, so
that instead of passing -fromIndex we pass -1*fromIndex ofs properly
becomes 0:

function mergeSort(x, fromIndex, toIndex, comp){
  console.log('mergeSort: fromIndex = ' + fromIndex);
  console.log('mergesort: -fromIndex: ' + (-1*fromIndex));
  var temp_0, a, result;
  temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
  mergeSort_0(temp_0, x, fromIndex, toIndex, -1*fromIndex, comp);
}

Output of the console.log calls:
mergeSort: fromIndex = 0
mergeSort: -fromIndex: 0
mergeSort_0: ofs = 0
...
...

Also note the unmodified GWT code will work (pass -fromIndex to ofs)
if our page is run as
a top level application inside of Chrome. Ofs only becomes -4419 when
it is run inside the Iframe of an another GWT page or inside the popup
which is opened by another GWT page. Also the number is not always
-4419. Sometimes other negative numbers were seen. But once that
number appears once it always appears until the browser is restarted.

This error is not seen on Chrome 6 or Firefox of any version. Untested
on IE.

Test Configurations:
Ubuntu 10.04 32bit and 64bit and 10.10 64bit were tested
Chrome build 7.0.517.41

Thanks,
Bob

-- 
You received 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: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Brett Thomas
Code I posted was for if you aren't using a GWT server

On Thu, Oct 21, 2010 at 11:03 AM, marius.andreiana 
marius.andrei...@gmail.com wrote:

 On Oct 21, 4:59 pm, Márcio Menezes marcio@gmail.com wrote:
  Hi!.
  Why does everytime I try to send a POST through RequestBuilder class and
 if
  I add some header into it, the method goes as an OPTIONS, instead of
 post?
 
  Has anyone experienced this? How can I work around it?
 See

 http://en.wikipedia.org/wiki/Same_origin_policy
 https://developer.mozilla.org/En/HTTP_Access_Control

 work around by having htmljs served by the same host used to receive
 the requests. You can use an iframe on that host, with src pointing to
 another if needed.

 --
 You received 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: Collection.sort in Linux Chrome 7, negative zero bug

2010-10-21 Thread Chris Conroy
This is a known bug in V8. It was fixed here:
http://code.google.com/p/v8/source/detail?r=5631. Which made its way into V8
trunk in version 2.5.1. Chrome DevChannel is still affected AFAIK, though I
would expect an update to 2.5.1 in the next week or two.

On Thu, Oct 21, 2010 at 11:35 AM, recun...@gmail.com recun...@gmail.comwrote:

 When running Collection.sort weird behavior is occurring inside of the
 javascript mergeSort function which is generated by GWT. Here is the
 GWT generated javascript with some additional console.logs

 function sort(x, c){
  mergeSort(x, 0, x.length, c?c:($clinit_2603() , $clinit_2603() ,
 NATURAL));
 }

 function mergeSort(x, fromIndex, toIndex, comp){
  console.log('mergeSort: fromIndex = ' + fromIndex);
  console.log('mergesort: -fromIndex: ' + (-fromIndex));
  var temp_0, a, result;
  temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
 initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
  mergeSort_0(temp_0, x, fromIndex, toIndex, -fromIndex, comp);
 }

 function mergeSort_0(temp_0, array, low, high, ofs, comp){
  console.log('mergeSort_0: ofs = ' + (ofs));
  var length_0, tempHigh, tempLow, tempMid;
  length_0 = high - low;
  if (length_0  7) {
insertionSort(array, low, high, comp);
return;
  }
  tempLow = low + ofs;
  tempHigh = high + ofs;
  tempMid = tempLow + (~~(tempHigh - tempLow)  1);
  mergeSort_0(array, temp_0, tempLow, tempMid, -ofs, comp);
  mergeSort_0(array, temp_0, tempMid, tempHigh, -ofs, comp);
  if (comp.compare(temp_0[tempMid - 1], temp_0[tempMid]) = 0) {
while (low  high) {
  setCheck(array, low++, temp_0[tempLow++]);
}
return;
  }
  merge(temp_0, tempLow, tempMid, tempHigh, array, low, high, comp);
 }

 When sort is run on an array, the argument ofs of mergeSort_0
 mysteriously becomes a large negative number when it is passed -0,
 such as -4419.

 Output of the console.log calls:

 mergeSort: fromIndex = 0
 mergeSort: -fromIndex: -4419
 mergeSort_0: ofs = -4419
 ...
 ...

 Now, if the same code is run, with a modified call to mergeSort_0, so
 that instead of passing -fromIndex we pass -1*fromIndex ofs properly
 becomes 0:

 function mergeSort(x, fromIndex, toIndex, comp){
  console.log('mergeSort: fromIndex = ' + fromIndex);
  console.log('mergesort: -fromIndex: ' + (-1*fromIndex));
  var temp_0, a, result;
  temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
 initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
  mergeSort_0(temp_0, x, fromIndex, toIndex, -1*fromIndex, comp);
 }

 Output of the console.log calls:
 mergeSort: fromIndex = 0
 mergeSort: -fromIndex: 0
 mergeSort_0: ofs = 0
 ...
 ...

 Also note the unmodified GWT code will work (pass -fromIndex to ofs)
 if our page is run as
 a top level application inside of Chrome. Ofs only becomes -4419 when
 it is run inside the Iframe of an another GWT page or inside the popup
 which is opened by another GWT page. Also the number is not always
 -4419. Sometimes other negative numbers were seen. But once that
 number appears once it always appears until the browser is restarted.

 This error is not seen on Chrome 6 or Firefox of any version. Untested
 on IE.

 Test Configurations:
 Ubuntu 10.04 32bit and 64bit and 10.10 64bit were tested
 Chrome build 7.0.517.41

 Thanks,
 Bob

 --
 You received 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: Change default browser in dev mode

2010-10-21 Thread A. Stevko
ahh, so you are using netbeans. of course eclipse tips will not help you.
a quick search of stackoverflow might reveal a solution for you...
http://stackoverflow.com/questions/856108/how-to-change-settings-in-netbeans-6-5-to-run-web-application-in-not-default-brow

On Wed, Oct 20, 2010 at 10:32 PM, magic callow_m...@hicorp.co.jp wrote:

 I am using NetBeans. However the browser is launched by the GWT
 DevMode gizmo which picks the system default browser. So I don't
 understand what Eclipse's Window | Web Browser menu item would have to
 do with it. Please enlighten me.

 On Oct 21, 6:22 am, A. Stevko andy.ste...@gmail.com wrote:
 
  Also, in eclipse, under the menu Window  | Web Browser, you can choose
 which
  browser will open.
 

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



DockLayoutPanel extensible in height

2010-10-21 Thread Patou
Hello,

I want to build a website with GWT, and I begin to use the
DockLayoutPanel.
But this layout use the global screen size, but I want to use the
lenght of the page with a scrolling just in the height and no in the
width.
Is there a way to do this things ?

Thanks for replies

Patrice

-- 
You received 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: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Márcio Menezes
Ok... but it happens with ANY header. Even if I add Content-Type,
application/x-www-form-urlencoded, as you suggested, it sends an OPTIONS
method, instead of POST.


On Thu, Oct 21, 2010 at 4:46 PM, Brett Thomas brettptho...@gmail.comwrote:

 POST values should be encoded in the request data string, not the headers.
 Not sure why there isn't an addPostValue method too. Here's some code I used
 recently:

 class CustomPOSTBuilder extends RequestBuilder {

 private String request = ;

 public CustomPOSTBuilder(String url, RequestCallback callback) {
 super(RequestBuilder.POST, url);
 this.setHeader(Content-Type,
 application/x-www-form-urlencoded);
 this.setCallback(callback);
 }

 public void addPost(String key, String value) {
 request += key + = + value + ;
 }

 public void go() {
 this.setRequestData(request);
 try {
 this.send();
 }
 catch (RequestException r){
 System.out.print(r.getMessage());
 }
 }

 }

 then send a request by:
 CustomPOSTBuilder builder...
 builder.addPost(key1, value1);
 builder.addPost(key2, value2);
 builder.send();


 2010/10/21 Márcio Menezes marcio@gmail.com

 Hi!.
 Why does everytime I try to send a POST through RequestBuilder class and
 if I add some header into it, the method goes as an OPTIONS, instead of
 post?

 Has anyone experienced this? How can I work around it?

 Regards,
 Marcio

 --
 You received 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: RequestBuilder POST + setHeader() = OPTIONS

2010-10-21 Thread Márcio Menezes
BTW... Browser Firefox 3.6

2010/10/21 Márcio Menezes marcio@gmail.com

 Ok... but it happens with ANY header. Even if I add Content-Type,
 application/x-www-form-urlencoded, as you suggested, it sends an OPTIONS
 method, instead of POST.



 On Thu, Oct 21, 2010 at 4:46 PM, Brett Thomas brettptho...@gmail.comwrote:

 POST values should be encoded in the request data string, not the headers.
 Not sure why there isn't an addPostValue method too. Here's some code I used
 recently:

 class CustomPOSTBuilder extends RequestBuilder {

 private String request = ;

 public CustomPOSTBuilder(String url, RequestCallback callback) {
 super(RequestBuilder.POST, url);
 this.setHeader(Content-Type,
 application/x-www-form-urlencoded);
 this.setCallback(callback);
 }

 public void addPost(String key, String value) {
 request += key + = + value + ;
 }

 public void go() {
 this.setRequestData(request);
 try {
 this.send();
 }
 catch (RequestException r){
 System.out.print(r.getMessage());
 }
 }

 }

 then send a request by:
 CustomPOSTBuilder builder...
 builder.addPost(key1, value1);
 builder.addPost(key2, value2);
 builder.send();


 2010/10/21 Márcio Menezes marcio@gmail.com

  Hi!.
 Why does everytime I try to send a POST through RequestBuilder class and
 if I add some header into it, the method goes as an OPTIONS, instead of
 post?

 Has anyone experienced this? How can I work around it?

 Regards,
 Marcio

 --
 You received 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



GWT 2.1 Cell Widgets style

2010-10-21 Thread pjspychala
I've been trying to clean up my styling of the new Data Presentation
Widgets in GWT 2.1. Right now, I am having a hard time changing the
style of the header of a CellTable without going through DOM.

I have tried passing a extended Resources class to the CellTable
constructor with odd results (the default celltable and new resource
get compiled into css)
I have tried overriding the CellTable css but the styles are
obfuscated
I have tried extending the CellTable class but that seems a bit odd
just to change the style of the celltable.

What is the best way to change the cellTableHeader (or anyother) class
style?

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



Compile with different color themes

2010-10-21 Thread Andreas Köberle
Is there a way to get the application compiled with different colors
themes? I want to have a css where I only write:

h1 {color : color1} and the compiler generates different versions
where color1 is replaced by the right hex color value.

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



how to log messages in ABCServiceImpl

2010-10-21 Thread Fahad Baig
I am using GWT 2.0 with intellij 7 . I am working on the StockWatcher
example and tried to log messages in both client and server

The client message is displayed successfully using GWT.log

But on the server side (in my ServiceImpl class) i am not able to find
the message being logged. I had tried

System.out.println( logging in serviceImpl);
GWT.log( logging in serviceImpl);
java.util.Logger

I am not able to see the log in the Development Mode , Jetty tab or
StockWatcher (IE) tab.

Kindly help me out in printing the log either to the development mode
screen or any file etc

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



NS_ERROR_NOT_AVAILABLE in DevMode when not connected to network

2010-10-21 Thread Richard Rattigan
I have a problem I don't understand. If I run my GWT app in DevMode
while I am connected to the network, it seems to work just fine.
However, when I turn off Airport (disconnect from the network on my
Mac), I get the NS_ERROR_NOT_AVAILABLE error. From looking around, it
seems that this is related to Single-Origin Policy violation. The
error occurs during a HTTP request to my server. I'm running with -
noserver.

I can't think of a reason why disconnecting from the network would
introduce this problem. Any ideas?

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



About Integration with Maven

2010-10-21 Thread Pablo G.F
First of all, sorry if this questions are so simple or even
retarded ;)

Two questions, not as much specific as I would like, but here we go:

First, it´s about using Gxt, GWT in a maven project, integrating them
with another frameworks such Spring, Hibernate and so. As far as I
know, it´s all about configuring dependencies on the POM.xml file.
What I´d like to know, if by just adding that dependencies, I can
build a maven project like a standard web application or do I need to
compile/execute some goal/make anything specific for the GXT/GWT code.
As long as I re-read what I´m writting I see i´ts not very clear...let
´s begin again...I mean, if you add any dependency for other
libraries, you just import the packages/classes on your app and
everything works. I don´t know if that's possible with GXT/GWT because
the javascript-generation part.

The second question:

I´m asked to make some project which is not a pure GWT/GXT project;
what I ´m asked to do is just an application where some GXT widgets
are embebbed. My question is, how should I do it (of course i´m not
asking for each step, just a general vision or where I can find
information about that)

Thank you

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 log messages in ABCServiceImpl

2010-10-21 Thread Alexander Cherednichenko
Hi Fahad!

As soon as want to log something in the serverside, you may need to
use a regular serverside logging.
There are several different libs which do help with this.

Jetty could use SLF4J as an impl one, so you could use
org.slf4j.Logger. (see http://www.slf4j.org/manual.html for samples)

For more details, look into here - 
http://docs.codehaus.org/display/JETTY/Debugging

regards,
alex.

On Oct 21, 5:38 pm, Fahad Baig mfahadb...@gmail.com wrote:
 I am using GWT 2.0 with intellij 7 . I am working on the StockWatcher
 example and tried to log messages in both client and server

 The client message is displayed successfully using GWT.log

 But on the server side (in my ServiceImpl class) i am not able to find
 the message being logged. I had tried

 System.out.println( logging in serviceImpl);
 GWT.log( logging in serviceImpl);
 java.util.Logger

 I am not able to see the log in the Development Mode , Jetty tab or
 StockWatcher (IE) tab.

 Kindly help me out in printing the log either to the development mode
 screen or any file etc

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 2.1 Cell Widgets style

2010-10-21 Thread pjspychala
interface TableResources extends CellTable.Resources
{
  @Source({myCellTable.css})
  TableStyle cellTableStyle();
}

interface TableStyle extends CellTable.Style {}

@UiField(provided=true)
CellTableJunk junkCellTable;

CellTable.Resources reso = GWT.create(TableResources.class);
junkCellTable= new CellTableJunk(15, reso);

I forgot the (provided=true) part, this works now.

On Oct 21, 1:06 pm, pjspychala tomatoactiva...@gmail.com wrote:
 I've been trying to clean up my styling of the new Data Presentation
 Widgets in GWT 2.1. Right now, I am having a hard time changing the
 style of the header of a CellTable without going through DOM.

 I have tried passing a extended Resources class to the CellTable
 constructor with odd results (the default celltable and new resource
 get compiled into css)
 I have tried overriding the CellTable css but the styles are
 obfuscated
 I have tried extending the CellTable class but that seems a bit odd
 just to change the style of the celltable.

 What is the best way to change the cellTableHeader (or anyother) class
 style?

-- 
You received 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: Collection.sort in Linux Chrome 7, negative zero bug

2010-10-21 Thread recun...@gmail.com
Great. Thank you for the update. I had a feeling it was in the
javascript engine, but I had problems narrowing it down to a small
test.

Thanks,
Bob

On Oct 21, 11:57 am, Chris Conroy con...@google.com wrote:
 This is a known bug in V8. It was fixed 
 here:http://code.google.com/p/v8/source/detail?r=5631. Which made its way 
 into V8
 trunk in version 2.5.1. Chrome DevChannel is still affected AFAIK, though I
 would expect an update to 2.5.1 in the next week or two.

 On Thu, Oct 21, 2010 at 11:35 AM, recun...@gmail.com 
 recun...@gmail.comwrote:







  When running Collection.sort weird behavior is occurring inside of the
  javascript mergeSort function which is generated by GWT. Here is the
  GWT generated javascript with some additional console.logs

  function sort(x, c){
   mergeSort(x, 0, x.length, c?c:($clinit_2603() , $clinit_2603() ,
  NATURAL));
  }

  function mergeSort(x, fromIndex, toIndex, comp){
   console.log('mergeSort: fromIndex = ' + fromIndex);
   console.log('mergesort: -fromIndex: ' + (-fromIndex));
   var temp_0, a, result;
   temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
  initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
   mergeSort_0(temp_0, x, fromIndex, toIndex, -fromIndex, comp);
  }

  function mergeSort_0(temp_0, array, low, high, ofs, comp){
   console.log('mergeSort_0: ofs = ' + (ofs));
   var length_0, tempHigh, tempLow, tempMid;
   length_0 = high - low;
   if (length_0  7) {
     insertionSort(array, low, high, comp);
     return;
   }
   tempLow = low + ofs;
   tempHigh = high + ofs;
   tempMid = tempLow + (~~(tempHigh - tempLow)  1);
   mergeSort_0(array, temp_0, tempLow, tempMid, -ofs, comp);
   mergeSort_0(array, temp_0, tempMid, tempHigh, -ofs, comp);
   if (comp.compare(temp_0[tempMid - 1], temp_0[tempMid]) = 0) {
     while (low  high) {
       setCheck(array, low++, temp_0[tempLow++]);
     }
     return;
   }
   merge(temp_0, tempLow, tempMid, tempHigh, array, low, high, comp);
  }

  When sort is run on an array, the argument ofs of mergeSort_0
  mysteriously becomes a large negative number when it is passed -0,
  such as -4419.

  Output of the console.log calls:

  mergeSort: fromIndex = 0
  mergeSort: -fromIndex: -4419
  mergeSort_0: ofs = -4419
  ...
  ...

  Now, if the same code is run, with a modified call to mergeSort_0, so
  that instead of passing -fromIndex we pass -1*fromIndex ofs properly
  becomes 0:

  function mergeSort(x, fromIndex, toIndex, comp){
   console.log('mergeSort: fromIndex = ' + fromIndex);
   console.log('mergesort: -fromIndex: ' + (-1*fromIndex));
   var temp_0, a, result;
   temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
  initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
   mergeSort_0(temp_0, x, fromIndex, toIndex, -1*fromIndex, comp);
  }

  Output of the console.log calls:
  mergeSort: fromIndex = 0
  mergeSort: -fromIndex: 0
  mergeSort_0: ofs = 0
  ...
  ...

  Also note the unmodified GWT code will work (pass -fromIndex to ofs)
  if our page is run as
  a top level application inside of Chrome. Ofs only becomes -4419 when
  it is run inside the Iframe of an another GWT page or inside the popup
  which is opened by another GWT page. Also the number is not always
  -4419. Sometimes other negative numbers were seen. But once that
  number appears once it always appears until the browser is restarted.

  This error is not seen on Chrome 6 or Firefox of any version. Untested
  on IE.

  Test Configurations:
  Ubuntu 10.04 32bit and 64bit and 10.10 64bit were tested
  Chrome build 7.0.517.41

  Thanks,
  Bob

  --
  You received 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: Collection.sort in Linux Chrome 7, negative zero bug

2010-10-21 Thread recun...@gmail.com
Great. Thank you for the update. I had a feeling it was in the
javascript engine, but I had problems narrowing it down to a small
test.

Thanks,
Bob

On Oct 21, 11:57 am, Chris Conroy con...@google.com wrote:
 This is a known bug in V8. It was fixed 
 here:http://code.google.com/p/v8/source/detail?r=5631. Which made its way 
 into V8
 trunk in version 2.5.1. Chrome DevChannel is still affected AFAIK, though I
 would expect an update to 2.5.1 in the next week or two.

 On Thu, Oct 21, 2010 at 11:35 AM, recun...@gmail.com 
 recun...@gmail.comwrote:







  When running Collection.sort weird behavior is occurring inside of the
  javascript mergeSort function which is generated by GWT. Here is the
  GWT generated javascript with some additional console.logs

  function sort(x, c){
   mergeSort(x, 0, x.length, c?c:($clinit_2603() , $clinit_2603() ,
  NATURAL));
  }

  function mergeSort(x, fromIndex, toIndex, comp){
   console.log('mergeSort: fromIndex = ' + fromIndex);
   console.log('mergesort: -fromIndex: ' + (-fromIndex));
   var temp_0, a, result;
   temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
  initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
   mergeSort_0(temp_0, x, fromIndex, toIndex, -fromIndex, comp);
  }

  function mergeSort_0(temp_0, array, low, high, ofs, comp){
   console.log('mergeSort_0: ofs = ' + (ofs));
   var length_0, tempHigh, tempLow, tempMid;
   length_0 = high - low;
   if (length_0  7) {
     insertionSort(array, low, high, comp);
     return;
   }
   tempLow = low + ofs;
   tempHigh = high + ofs;
   tempMid = tempLow + (~~(tempHigh - tempLow)  1);
   mergeSort_0(array, temp_0, tempLow, tempMid, -ofs, comp);
   mergeSort_0(array, temp_0, tempMid, tempHigh, -ofs, comp);
   if (comp.compare(temp_0[tempMid - 1], temp_0[tempMid]) = 0) {
     while (low  high) {
       setCheck(array, low++, temp_0[tempLow++]);
     }
     return;
   }
   merge(temp_0, tempLow, tempMid, tempHigh, array, low, high, comp);
  }

  When sort is run on an array, the argument ofs of mergeSort_0
  mysteriously becomes a large negative number when it is passed -0,
  such as -4419.

  Output of the console.log calls:

  mergeSort: fromIndex = 0
  mergeSort: -fromIndex: -4419
  mergeSort_0: ofs = -4419
  ...
  ...

  Now, if the same code is run, with a modified call to mergeSort_0, so
  that instead of passing -fromIndex we pass -1*fromIndex ofs properly
  becomes 0:

  function mergeSort(x, fromIndex, toIndex, comp){
   console.log('mergeSort: fromIndex = ' + fromIndex);
   console.log('mergesort: -fromIndex: ' + (-1*fromIndex));
   var temp_0, a, result;
   temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
  initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
   mergeSort_0(temp_0, x, fromIndex, toIndex, -1*fromIndex, comp);
  }

  Output of the console.log calls:
  mergeSort: fromIndex = 0
  mergeSort: -fromIndex: 0
  mergeSort_0: ofs = 0
  ...
  ...

  Also note the unmodified GWT code will work (pass -fromIndex to ofs)
  if our page is run as
  a top level application inside of Chrome. Ofs only becomes -4419 when
  it is run inside the Iframe of an another GWT page or inside the popup
  which is opened by another GWT page. Also the number is not always
  -4419. Sometimes other negative numbers were seen. But once that
  number appears once it always appears until the browser is restarted.

  This error is not seen on Chrome 6 or Firefox of any version. Untested
  on IE.

  Test Configurations:
  Ubuntu 10.04 32bit and 64bit and 10.10 64bit were tested
  Chrome build 7.0.517.41

  Thanks,
  Bob

  --
  You received 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: Collection.sort in Linux Chrome 7, negative zero bug

2010-10-21 Thread recun...@gmail.com
Great. Thank you for the update. I had a feeling it was in the
javascript engine, but I had problems narrowing it down to a small
test.

Thanks,
Bob

On Oct 21, 11:57 am, Chris Conroy con...@google.com wrote:
 This is a known bug in V8. It was fixed 
 here:http://code.google.com/p/v8/source/detail?r=5631. Which made its way 
 into V8
 trunk in version 2.5.1. Chrome DevChannel is still affected AFAIK, though I
 would expect an update to 2.5.1 in the next week or two.

 On Thu, Oct 21, 2010 at 11:35 AM, recun...@gmail.com 
 recun...@gmail.comwrote:







  When running Collection.sort weird behavior is occurring inside of the
  javascript mergeSort function which is generated by GWT. Here is the
  GWT generated javascript with some additional console.logs

  function sort(x, c){
   mergeSort(x, 0, x.length, c?c:($clinit_2603() , $clinit_2603() ,
  NATURAL));
  }

  function mergeSort(x, fromIndex, toIndex, comp){
   console.log('mergeSort: fromIndex = ' + fromIndex);
   console.log('mergesort: -fromIndex: ' + (-fromIndex));
   var temp_0, a, result;
   temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
  initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
   mergeSort_0(temp_0, x, fromIndex, toIndex, -fromIndex, comp);
  }

  function mergeSort_0(temp_0, array, low, high, ofs, comp){
   console.log('mergeSort_0: ofs = ' + (ofs));
   var length_0, tempHigh, tempLow, tempMid;
   length_0 = high - low;
   if (length_0  7) {
     insertionSort(array, low, high, comp);
     return;
   }
   tempLow = low + ofs;
   tempHigh = high + ofs;
   tempMid = tempLow + (~~(tempHigh - tempLow)  1);
   mergeSort_0(array, temp_0, tempLow, tempMid, -ofs, comp);
   mergeSort_0(array, temp_0, tempMid, tempHigh, -ofs, comp);
   if (comp.compare(temp_0[tempMid - 1], temp_0[tempMid]) = 0) {
     while (low  high) {
       setCheck(array, low++, temp_0[tempLow++]);
     }
     return;
   }
   merge(temp_0, tempLow, tempMid, tempHigh, array, low, high, comp);
  }

  When sort is run on an array, the argument ofs of mergeSort_0
  mysteriously becomes a large negative number when it is passed -0,
  such as -4419.

  Output of the console.log calls:

  mergeSort: fromIndex = 0
  mergeSort: -fromIndex: -4419
  mergeSort_0: ofs = -4419
  ...
  ...

  Now, if the same code is run, with a modified call to mergeSort_0, so
  that instead of passing -fromIndex we pass -1*fromIndex ofs properly
  becomes 0:

  function mergeSort(x, fromIndex, toIndex, comp){
   console.log('mergeSort: fromIndex = ' + fromIndex);
   console.log('mergesort: -fromIndex: ' + (-1*fromIndex));
   var temp_0, a, result;
   temp_0 = (a = x , result = a.slice(fromIndex, toIndex) ,
  initValues(a.arrayClass$, a.typeId$, a.queryId$, result) , result);
   mergeSort_0(temp_0, x, fromIndex, toIndex, -1*fromIndex, comp);
  }

  Output of the console.log calls:
  mergeSort: fromIndex = 0
  mergeSort: -fromIndex: 0
  mergeSort_0: ofs = 0
  ...
  ...

  Also note the unmodified GWT code will work (pass -fromIndex to ofs)
  if our page is run as
  a top level application inside of Chrome. Ofs only becomes -4419 when
  it is run inside the Iframe of an another GWT page or inside the popup
  which is opened by another GWT page. Also the number is not always
  -4419. Sometimes other negative numbers were seen. But once that
  number appears once it always appears until the browser is restarted.

  This error is not seen on Chrome 6 or Firefox of any version. Untested
  on IE.

  Test Configurations:
  Ubuntu 10.04 32bit and 64bit and 10.10 64bit were tested
  Chrome build 7.0.517.41

  Thanks,
  Bob

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



about compilation of java.util even when not included

2010-10-21 Thread Sachin Dole
Hello,

I have a very simple app that i have written solely to learn and understand
the compilation results of a gwt compile. in this app, I have one module,
that simply inserts a new HTML(HelloWorld) in the RootPanel. It does not
call any service. However, there is an RPC servlet which has one method with
signature public String[] getArrayListOfStrings(); No collections or Lists
or anything from java.util is being used. However, in the soyc report i
clearly see java.util being one of the packages that is being compiled.
within that package, all collections such as Hashmap, abstracthashmap,
arraylists and such are being compiled. I dont have any reference to any of
those in my app. So, why does soyc report it as being compiled?

Thanks!
Sachin

-- 
You received 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 2.1 hellomvp using GIN

2010-10-21 Thread David Chandler
Hi Yuan,

Unfortunately, the mere mention of a need for something does not imply
its current availability :-) I wrote the Activities and Places doc and
really should have left GIN out of it for the time being. The root
issue is that GIN does not have a way to createMeA(Foo.class), as such
a method might impede the GWT compiler's ability to do whole program
optimization as it does today.

Thus, the only way to implement ActivityMapper.getActivity() or
PlaceHistoryMapper.getPlace() using GIN would be to return an instance
of an Activity or Place that has previously been instantiated by GIN
and injected into to the mapper class. In other words, each Activity
and Place would have to be a singleton, much like Presenter and Place
are in the gwt-presenter framework. But in GWT 2.1, Activity and Place
are designed to be disposable, not singletons, which leaves us with
the need for if (place instanceof SomePlace) return new
SomePlace()... It seems like it would be possible to create
SomeActivityFactory and SomePlaceFactory classes bound as singletons
in GIN gwt-presenter style, which in turn provide newly-created
instances of SomeActivity and SomePlace, but that requires lots of
boilerplate code...

As for the onerous chain of if statements (which is sounding less
onerous all the while), it could be created at compile time using a
GWT generator, just as GWT's PlaceHistoryMapperGenerator generates a
sub-class of AbstractPlaceHistoryMapper using @WithTokenizers from
your PlaceHistoryMapper interface. The advantage of creating your own
PlaceHistoryMapper base class and generator would be the ability to
pass a ClientFactory or factory-managed objects to newly constructed
Places. That is, the generated code could do

if (token.startsWith(SomePlace))
return new SomePlace(clientFactory, token);
else if (token.startsWith(AnotherPlace))
return new AnotherPlace(clientFactory, token);
...

Hope that helps someone...

The GWT team is working hard to make this easier in a future point release.

/dmc


On Thu, Oct 21, 2010 at 3:09 AM, Yuan yuan.w0...@gmail.com wrote:
 can't use gin at ActivityMapper? somehower, on the HelloMVP
 AppActivityMapper,
 it says

        public Activity getActivity(Place place) {
                // This is begging for GIN
                if (place instanceof HelloPlace)
                        return new HelloActivity((HelloPlace) place, 
 clientFactory);
                else if (place instanceof GoodbyePlace)
                        return new GoodbyeActivity((GoodbyePlace) place, 
 clientFactory);

                return null;
        }

 On Oct 20, 3:22 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 20 oct, 11:42, Sebastian Beigel sebast...@beigel.de wrote:

  Hi,

  I'm looking at 2.1 (RC1) for the first time right now and I try to
  refactor the hellomvp sample to use GIN.

  Unfortunately, I have some problems with the places - activities
  mapping. The doc says A better way to implement the chain of nested
  ifs would be with a GIN module. and the code is commented Map each
  Place to its corresponding Activity. This would be a great use for
  GIN..

  I agree, but I don't really know how to do this mapping :) Has anyone
  refactored this code to use GIN?

 You just can't actually. What could work is using a Ginjector as the
 factory of a PlaceHistoryMapperWithFactory, but for ActivityMapper
 this is not possible (it could be by adding a code generator using a
 factory of activity factories, similar to the factory of place
 tokenizers (which are kind of factories for places) for
 PlaceHistoryMapperWithFactory).
 I wrote an code generator for ActivityMapper some time ago http://gwt-
 code-reviews.appspot.com/845802/show it won't do what you're asking
 for but could probably be used as a basis for it. But you'd first have
 to decide how to model a factory of activities that would be
 returned by your Ginjector as a factory for
 ActivityMapperWithFactory.

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





-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
http://googlewebtoolkit.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 2.1 hellomvp using GIN

2010-10-21 Thread Amir Kashani
I work with Tolga, who started the thread on GWTC. Here's the solution
we came up with based on David's initial suggestion there.

1) We created a base class called ActivityPlace, that has an abstract
getActivty() method:
   public Activity getActivity();

2) Thus, the the getActivity method in ActivityMapper is reduced to
the following:

@Override
public Activity getActivity(Place place) {

if (place instanceof ActivityPlace) {
return ((ActivityPlace) place).getActivity();
}

return null;
}

3) A typical Place then looks like this:

public class TestPlace extends ActivityPlace {

public static class Tokenizer implements
PlaceTokenizerTestPlace {

// Since the place is injectable, we'll let Gin do the
construction.
private final ProviderTestPlace placeProvider;

@Inject
public Tokenizer(ProviderTestPlace placeProvider) {
this.placeProvider = placeProvider;
}

@Override
public String getToken(TestPlace place) {
return null;
}

@Override
public TestPlace getPlace(String token) {
return placeProvider.get();

// If place requires any more work, do it here.
}
}

private ProviderTestActivity activityProvider;

@Inject
public TestPlace(ProviderTestActivity activityProvider) {
this.activityProvider = activityProvider;
}

@Override
public Activity getActivity() {
// Can't inject Place into the constructor, so by
convention, we're using init(Place p) in our Activites to pass the
place in.

return activityProvider.get().init(this);
}

}

4) Then, we create our PlaceHistoryMapperWithFactory:
public interface AppPlaceHistoryMapper extends
PlaceHistoryMapperWithFactoryAppPlaceFactory { // empty }

   Notice there are no Tokenizer annotations here -- they're no longer
needed.

5) And the actual factory looks like this:

  public class AppPlaceFactory {

// A single instance of the tokenizer should work, since they
don't have state.
@Inject
TestPlace.Tokenizer testPlaceTokenizer;

@Inject
ProviderTestPlace test;

public TestPlace.Tokenizer getTestPlaceTokenizer() {
return testPlaceTokenizer;
}

// Not required by the factory, but since TestPlace is GIN
injectable, the constructor might be too complex to construct by hand.
public TestPlace getTest() {
return test.get();
}
  }

  I think others may have made their Ginjector the factory -- we opted
to keep it separate, but it doesn't make much difference.

So, after all that, the process for creating a new Place is simply
create the Place and associated Tokenizer, and add a method inside the
factory to retrieve the Tokenizer (the generator looks for any no-arg
methods that return a Tokenizer).

What gets more complicated and may prove this approach unscalable is
that the Place is tied directly to the Activity. There may be some
scenarios, where PlaceA has a different Activity, depending on the
ActivityManager and the display region. An ActivityMapper could choose
to ignore the Place.getActivty() method, but it might be awkward.

We'd love some feedback on this and to see what other people are
doing.

- Amir

On Oct 21, 12:15 pm, David Chandler drfibona...@google.com wrote:
 Hi Yuan,

 Unfortunately, the mere mention of a need for something does not imply
 its current availability :-) I wrote the Activities and Places doc and
 really should have left GIN out of it for the time being. The root
 issue is that GIN does not have a way to createMeA(Foo.class), as such
 a method might impede the GWT compiler's ability to do whole program
 optimization as it does today.

 Thus, the only way to implement ActivityMapper.getActivity() or
 PlaceHistoryMapper.getPlace() using GIN would be to return an instance
 of an Activity or Place that has previously been instantiated by GIN
 and injected into to the mapper class. In other words, each Activity
 and Place would have to be a singleton, much like Presenter and Place
 are in the gwt-presenter framework. But in GWT 2.1, Activity and Place
 are designed to be disposable, not singletons, which leaves us with
 the need for if (place instanceof SomePlace) return new
 SomePlace()... It seems like it would be possible to create
 SomeActivityFactory and SomePlaceFactory classes bound as singletons
 in GIN gwt-presenter style, which in turn provide newly-created
 instances of SomeActivity and SomePlace, but that requires lots of
 boilerplate code...

 As for the onerous chain of if statements (which is sounding less
 onerous all the while), it could be created at compile time using a
 GWT generator, just as GWT's PlaceHistoryMapperGenerator generates a
 sub-class of AbstractPlaceHistoryMapper using @WithTokenizers from
 your 

BROKEN javax.validation.* added to gwt-servlet-2.1-SNAPSHOT-javadoc.jar

2010-10-21 Thread DataSurfer
The javax.validation package as added to gwt-servlet-2.1.jar broke our
build.

This is causing the following exception in our project when we do mvn
jetty:run

2010-10-19 16:11:50.359::WARN:  Nested in
org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0':
Invocation of init method failed; nested exception is
javax.validation.ValidationException: Unable to find a default
provider:
javax.validation.ValidationException: Unable to find a default
provider
at javax.validation.Validation
$GenericBootstrapImpl.configure(Validation.java:264)
at
org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.afterPropertiesSet(LocalValidatorFactoryBean.java:
161)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
1469)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:
1409)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
519)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
456)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:291)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
288)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
190)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
563)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
872)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
423)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:
442)
at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:
458)
at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:
339)
at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:
306)
at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:
127)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
433)
at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
256)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
616)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
1220)
at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
513)
at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
at
org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebAppContext.java:
110)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
152)
at
org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCollection.java:
156)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
152)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:
130)
at org.mortbay.jetty.Server.doStart(Server.java:222)
at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
39)
at
org.mortbay.jetty.plugin.Jetty6PluginServer.start(Jetty6PluginServer.java:
132)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.startJetty(AbstractJettyMojo.java:
371)
at
org.mortbay.jetty.plugin.AbstractJettyMojo.execute(AbstractJettyMojo.java:
307)
at
org.mortbay.jetty.plugin.AbstractJettyRunMojo.execute(AbstractJettyRunMojo.java:
203)
at org.mortbay.jetty.plugin.Jetty6RunMojo.execute(Jetty6RunMojo.java:
184)
at

Customize CellTables headers

2010-10-21 Thread Rodrigue Lagoue Njinthe
Hi all,

I would like to know if it's possible to customize the style of CellTable's
header. For example headers looking like buttons.

Thanks for any help

Rodrigue

-- 
You received 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: BROKEN javax.validation.* added to gwt-servlet-2.1-SNAPSHOT-javadoc.jar

2010-10-21 Thread DataSurfer
Subject should have been
BROKEN javax.validation.* added to gwt-servlet-2.1-SNAPSHOT.jar

We had actually been using gwt-servlet-2.1-SNAPSHOT.jar quite happily
for a few weeks believing that it would not change till the next
release.

Luckily some of our devs had not yet received the updated snapshot.
When we overwrote our .m2/repos with the stale gwt snapshots the
problem went away.

Is there anyway we can get this stale SNAPSHOT as a realease?

The stale but functioning snapshot has a SHA1 hash of:
4cf77c9b73bef0ce2d5b339b074332eee2386e32
inside
gwt-servlet-2.1-SNAPSHOT.jar.sha1

On Oct 21, 4:37 pm, DataSurfer datasur...@gmail.com wrote:
 The javax.validation package as added to gwt-servlet-2.1.jar broke our
 build.

 This is causing the following exception in our project when we do mvn
 jetty:run

 2010-10-19 16:11:50.359::WARN:  Nested in
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name
 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0' :
 Invocation of init method failed; nested exception is
 javax.validation.ValidationException: Unable to find a default
 provider:
 javax.validation.ValidationException: Unable to find a default
 provider
         at javax.validation.Validation
 $GenericBootstrapImpl.configure(Validation.java:264)
         at
 org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.aft 
 erPropertiesSet(LocalValidatorFactoryBean.java:
 161)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
 1469)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.initializeBean(AbstractAutowireCapableBeanFactory.java:
 1409)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.doCreateBean(AbstractAutowireCapableBeanFactory.java:
 519)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.createBean(AbstractAutowireCapableBeanFactory.java:
 456)
         at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:291)
         at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS 
 ingleton(DefaultSingletonBeanRegistry.java:
 222)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs 
 tractBeanFactory.java:
 288)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr 
 actBeanFactory.java:
 190)
         at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns 
 tantiateSingletons(DefaultListableBeanFactory.java:
 563)
         at
 org.springframework.context.support.AbstractApplicationContext.finishBeanFa 
 ctoryInitialization(AbstractApplicationContext.java:
 872)
         at
 org.springframework.context.support.AbstractApplicationContext.refresh(Abst 
 ractApplicationContext.java:
 423)
         at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex 
 t(FrameworkServlet.java:
 442)
         at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex 
 t(FrameworkServlet.java:
 458)
         at
 org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext( 
 FrameworkServlet.java:
 339)
         at
 org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkS 
 ervlet.java:
 306)
         at
 org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:
 127)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
 433)
         at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 256)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 39)
         at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
 616)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
         at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
 1220)
         at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
 513)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebA 
 ppContext.java:
 110)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 39)
         at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
 152)
         at
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCo 
 llection.java:
 156)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 39)
         at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
 152)
         at
 

Re: EntityProxy + JDO enum handling

2010-10-21 Thread BB
Thank you!

On Oct 20, 2:54 pm, David Chandler (Google) drfibona...@google.com
wrote:
 I filed thishttp://code.google.com/p/google-web-toolkit/issues/detail?id=5448

 /dmc

 On Oct 19, 3:53 pm, David Chandler (Google) drfibona...@google.com
 wrote:







  Hi BB,

  This is the correct way to define an enum type as of 2.1 RC (in the
  EntityProxy, not the entity), and I am able to reproduce the behavior
  with the setter. Please file in the issue 
  tracker:http://code.google.com/p/google-web-toolkit/issues/listandlabel as
  Milestone-2_1_RC1

  Thanks!
  David Chandler
  Developer Programs Engineer, GWThttp://googlewebtoolkit.blogspot.com

  On Oct 18, 5:11 pm, BB buchholz.bast...@googlemail.com wrote:

   Hi,

   I have an enum delcalred in my EntityProxy wich should be stored at
   the backend but if I try to load an Entity from the backend I get this
   error:
   [ERROR] [...] Parameter 0 of method UserProxy.setType does not match
   method de.server.db.User.setType
   [ERROR] [...] Parameter 0 of UserProxy.setType doesn't match method
   de.server.db.User.setType

   Here is the source code:http://gist.github.com/633065

   The problem is with the setType(Type type) method.

   Thanks for your 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: About Integration with Maven

2010-10-21 Thread dmen
There is a plugin for GWT, though I use stock Maven.

pom.xml
dependencies
!--
gwt-user jar is needed for java compile,
gwt compile and gwt debug - not runtime.
--
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-user/artifactId
version2.0.4/version
scopeprovided/scope
/dependency
!--
gwt-dev jar is needed for gwt debug only.
It includes javax standard classes which
cause problems if present in the compile
classpath; hense the runtime scope.
--
dependency
groupIdcom.google.gwt/groupId
artifactIdgwt-dev/artifactId
version2.0.4/version
scoperuntime/scope
/dependency

dependency
groupIdcom.extjs/groupId
artifactIdgxt/artifactId
version2.2.0/version
scopeprovided/scope
/dependency
dependencies
build
plugins
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-antrun-plugin/artifactId
!--
Configuration for gwt development mode.
It doesn't take part into the build-lifecycle 
by default.
You have to fire it, explicitly, from the 
command line:
e.g. mvn compile war:exploded antrun:run
--
configuration
tasks
property name=compile.classpath
refid=maven.compile.classpath /
property name=runtime.classpath
refid=maven.runtime.classpath /
property name=src.dir value=$
{project.build.sourceDirectory} /
property name=war.dir 
value=${project.build.directory}/$
{project.build.finalName} /
property name=gwt.module 
value=your.project.Product /
property name=gwt.page 
value=index.jsp /
ant target=gwt.debug /
/tasks
/configuration
!--
Configuration for gwt compile mode.
--
executions
execution
phaseprepare-package/phase
configuration
tasks
property 
name=compile.classpath
refid=maven.compile.classpath /
property 
name=runtime.classpath
refid=maven.runtime.classpath /
property 
name=src.dir value=$
{project.build.sourceDirectory} /
property 
name=war.dir value=${project.build.directory}/$
{project.build.finalName} /
property 
name=gwt.module value=your.project.Product /
ant 
target=gwt.compile /
/tasks
/configuration
goals
goalrun/goal
/goals
/execution
/executions
/plugin
/plugins
/build
...


build.xml
project name=your.project.Product

path id=gwt.classpath
path path=${runtime.classpath} /
path path=${compile.classpath} /
pathelement location=${src.dir} /
/path

target name=gwt.compile
java classname=com.google.gwt.dev.Compiler fork=true
classpath refid=gwt.classpath /
arg line=-war ${war.dir} ${gwt.module} /
/java
/target

target name=gwt.debug
!-- com.google.gwt.dev.HostedMode for legacy GWT 1.x --
java classname=com.google.gwt.dev.DevMode fork=true
classpath refid=gwt.classpath /
!-- 
http://java.sun.com/javase/technologies/core/toolsapis/jpda/ --

jvmarg value=-
agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=localhost:
8000 /
arg line=-war ${war.dir} -startupUrl ${gwt.page} 
${gwt.module} /

/java
/target


Re: BROKEN javax.validation.* added to gwt-servlet-2.1-SNAPSHOT-javadoc.jar

2010-10-21 Thread David Chandler
Thanks for the heads up. I've updated the ticket and will communicate
further there.

/dmc

On Thu, Oct 21, 2010 at 4:56 PM, DataSurfer datasur...@gmail.com wrote:
 Subject should have been
 BROKEN javax.validation.* added to gwt-servlet-2.1-SNAPSHOT.jar

 We had actually been using gwt-servlet-2.1-SNAPSHOT.jar quite happily
 for a few weeks believing that it would not change till the next
 release.

 Luckily some of our devs had not yet received the updated snapshot.
 When we overwrote our .m2/repos with the stale gwt snapshots the
 problem went away.

 Is there anyway we can get this stale SNAPSHOT as a realease?

 The stale but functioning snapshot has a SHA1 hash of:
 4cf77c9b73bef0ce2d5b339b074332eee2386e32
 inside
 gwt-servlet-2.1-SNAPSHOT.jar.sha1

 On Oct 21, 4:37 pm, DataSurfer datasur...@gmail.com wrote:
 The javax.validation package as added to gwt-servlet-2.1.jar broke our
 build.

 This is causing the following exception in our project when we do mvn
 jetty:run

 2010-10-19 16:11:50.359::WARN:  Nested in
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name
 'org.springframework.validation.beanvalidation.LocalValidatorFactoryBean#0' :
 Invocation of init method failed; nested exception is
 javax.validation.ValidationException: Unable to find a default
 provider:
 javax.validation.ValidationException: Unable to find a default
 provider
         at javax.validation.Validation
 $GenericBootstrapImpl.configure(Validation.java:264)
         at
 org.springframework.validation.beanvalidation.LocalValidatorFactoryBean.aft 
 erPropertiesSet(LocalValidatorFactoryBean.java:
 161)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:
 1469)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.initializeBean(AbstractAutowireCapableBeanFactory.java:
 1409)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.doCreateBean(AbstractAutowireCapableBeanFactory.java:
 519)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactor 
 y.createBean(AbstractAutowireCapableBeanFactory.java:
 456)
         at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:291)
         at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getS 
 ingleton(DefaultSingletonBeanRegistry.java:
 222)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abs 
 tractBeanFactory.java:
 288)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstr 
 actBeanFactory.java:
 190)
         at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preIns 
 tantiateSingletons(DefaultListableBeanFactory.java:
 563)
         at
 org.springframework.context.support.AbstractApplicationContext.finishBeanFa 
 ctoryInitialization(AbstractApplicationContext.java:
 872)
         at
 org.springframework.context.support.AbstractApplicationContext.refresh(Abst 
 ractApplicationContext.java:
 423)
         at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex 
 t(FrameworkServlet.java:
 442)
         at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContex 
 t(FrameworkServlet.java:
 458)
         at
 org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext( 
 FrameworkServlet.java:
 339)
         at
 org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkS 
 ervlet.java:
 306)
         at
 org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:
 127)
         at javax.servlet.GenericServlet.init(GenericServlet.java:241)
         at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
 433)
         at 
 org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 256)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 39)
         at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
 616)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
         at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
 1220)
         at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
 513)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 448)
         at
 org.mortbay.jetty.plugin.Jetty6PluginWebAppContext.doStart(Jetty6PluginWebA 
 ppContext.java:
 110)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 39)
         at
 org.mortbay.jetty.handler.HandlerCollection.doStart(HandlerCollection.java:
 152)
         at
 org.mortbay.jetty.handler.ContextHandlerCollection.doStart(ContextHandlerCo 
 llection.java:
 156)
         at
 

An image directory shared across projects?

2010-10-21 Thread Mike Cantor
Okay here's the story:

1. I have a widget, HelpWidget, in a common jar, common-widgets, and
used by many other web projects
2. The HelpWidget includes an Anchor that points to an html file
help.html, also stored in common-widgets.
3. A ClientBundle is used to make help.html loadable from other web
app projects:


public interface HelpBundle extends ClientBundle {
...
@Source(help.html)
public DataResource helpPage();
}

public class HelpWidget extends Widget {
...
 String url = StylesBundle.INSTANCE.helpPage().getUrl();
 Anchor helpAnchor = new Anchor(Help,url);
...
}

So far so good.  but... help.html has img tags for screenshots with
relative paths like /images/screenshot1.png.  I tried putting the
images folder at the same level help.html but this doesn't work - the
image urls don't resolve.  Also it's already weird to have an html
file along with java files in the package that holds HelpBundle.
Putting a folder with images there seems even odder.

So how can I deliver a directory of images for which such help.html
img hrefs will work no matter which war is making use of HelpWidget?

Many thanks for any suggestions you can provide.  My backup solution
is to just make a new web project that does nothing but contain the
help files.

thanks,
-mike

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



CellList as a dropdown

2010-10-21 Thread craftycoder
I want to a CellList that works like a simple ListBox dropdown.
Meaning, it shows exactly 1 row unless you click the drop down button,
then it shows somenumber of rows of data over the stuff below. Anyone
have any ideas? A scrollPanel just doesn't do what I want it to do.
This seems like an obvious use of this item so I'm sure I'm making
this harder than it needs to be.

-- 
You received 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-Platform - Login/Session Persistence

2010-10-21 Thread bodyboarder20
Hello all

I'm utilizing/learning the GWT-Platform, and I'm curiious if anyone
knows what the best pattern would be for persistenting application
wide data on the client side - and making it available to all of my
presenters MVP has the concept of the appController but what
would be the best thing to use in GWT-P?

Thanks!!

-J

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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.



RequestFactory EntityProxyChange events

2010-10-21 Thread PJ Herring
Hello,

I am using GWT 2.1 RC1 and I have managed to make RPC calls to fetch
Entities, which come back as their respective EntityProxy, but I can
not seem to make an update request fire off a ProxyChangeEvent. Here
is my source:

 */
public class DonorActivity extends AbstractActivity
implements BasicActivity,
EntityProxyChange.Handler {

private static final Logger LOG = Logger.getLogger(donor
activity);

protected DonorDisplay display;
protected PlaceController placeController;
protected final WellRequestFactory requestFactory;

@Inject
public DonorActivity(
DonorDisplay display,
PlaceController placeController,
WellRequestFactory requestFactory) {

this.display = display;
this.placeController = placeController;
this.requestFactory = requestFactory;
}

public void start(AcceptsOneWidget panel, EventBus eventBus) {
LOG.info(Starting);
display.setActivity(this);
panel.setWidget(display);
EntityProxyChange
.registerForProxyType(eventBus, DonorProxy.class, this);

requestFactory.donorRequest().fetchAll().fire(new
ReceiverListDonorProxy() {

public void onSuccess(final ListDonorProxy donors) {
final DonorRequest donorRequest =
requestFactory.donorRequest();
DonorProxy donorEdit =
donorRequest.edit(donors.get(0));
donorEdit.setFirstName(first namade some);
donorRequest.persist(donorEdit).fire();
}

@Override
public void onFailure(ServerFailure error) {
LOG.info(error.getMessage());
}
});
}

public void goTo(Place place) {
placeController.goTo(place);
}

public void onProxyChange(EntityProxyChange event) {
LOG.info(Proxy Donor Change);
}
}

As you can see I'm using GIN to do DI. EventBus is bound to
SimpleEventBus. I can see by using firebug that the RPC requests are
going through and coming back with JSON. For example:

{result:
{id:1,lastName:lastName,email:someem...@email.com,dob:52333920,!
version:3,gender:0,!id:1,isDeleted:0,firstName:first
namade some},sideEffects:{UPDATE:[{!version:4,!
id:org.thewell.shared.proxy.donorpr...@1}]},related:{}}

I can see their is a sideeffect and the version number is changing,
but still no event is firing off.

Also, is there any event automatically fired over the eventBus when a
fetch is run or is that the point of a Receiver?

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



Gin and the Organization of Folders as seen in Roo

2010-10-21 Thread Ashton Thomas
I have a question about how we are configuring the application to use
the Ginjector as used in Roo.

Can someone please explain whey we have the client.managed package and
why it is separated from the client.scaffold.ioc package?

To go a little further, our ScaffoldModule defines @inject configure()
using the EventBus, AppRequetFactory, and PlaceController.

However, the DesktopScaffoldApp takes in more such as the mappers and,
shell, placehistoryfactory.

Clarification/Details on how everything is being configured and
injected would be very helpful. Why don't we have more things in
ScaffoldModule(ioc) and why do we have client.managed separate from
client.scaffold.ioc and how does it work.

Thanks very much in advanced!

-Ashton

-- 
You received 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: about compilation of java.util even when not included

2010-10-21 Thread Didier DURAND
Hi

JavaUtil may be included because 1 of the gwt components that you use
(HTML, RootPanel, etc.) may need id.

To figure it out, you should compile with GWT in detailled mode, then
find out the name of js code for java.util and search it throughout
the entire code of your application to see where it is used

didier

On Oct 21, 8:34 pm, Sachin Dole sachin.d...@gmail.com wrote:
 Hello,

 I have a very simple app that i have written solely to learn and understand
 the compilation results of a gwt compile. in this app, I have one module,
 that simply inserts a new HTML(HelloWorld) in the RootPanel. It does not
 call any service. However, there is an RPC servlet which has one method with
 signature public String[] getArrayListOfStrings(); No collections or Lists
 or anything from java.util is being used. However, in the soyc report i
 clearly see java.util being one of the packages that is being compiled.
 within that package, all collections such as Hashmap, abstracthashmap,
 arraylists and such are being compiled. I dont have any reference to any of
 those in my app. So, why does soyc report it as being compiled?

 Thanks!
 Sachin

-- 
You received 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: Reformulate RPC generated TypeHandlers to create fewer classes. (issue1037801)

2010-10-21 Thread zundel


http://gwt-code-reviews.appspot.com/1037801/diff/1/2
File user/src/com/google/gwt/user/client/rpc/impl/SerializerBase.java
(right):

http://gwt-code-reviews.appspot.com/1037801/diff/1/2#newcode91
user/src/com/google/gwt/user/client/rpc/impl/SerializerBase.java:91:
typeHandler.deserial(stream, instance);
Out of curiosity - why did you change the names to 'serial' and
'deserial'?

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

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


[gwt-contrib] Re: Reformulate RPC generated TypeHandlers to create fewer classes. (issue1037801)

2010-10-21 Thread Scott Blum
Well, I had to pick something that wouldn't conflict with the names of the
established static methods.  My names are pretty lame.  Suggestions?

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

[gwt-contrib] Making Composite implement RequiresResize and ProvidesResize so that it can pass resize informat... (issue1041801)

2010-10-21 Thread jlabanca

Reviewers: sbrubaker,

Description:
Making Composite implement RequiresResize and ProvidesResize so that it
can pass resize information to its child widget. This is useful when
creating a Composite of a LayoutPanel.  In general, a widget should only
ProvideResize if its child widget cannot affect the dimensions of the
parent (ex. the parent is a a scrollable div or a div with a fixed
height and width). Since Composite does not add any elements to the DOM
hierarchy and Composite#onResize() is only called if the parent widget
implements ProvidesResize, it is safe to pass through the resize. That
is, we can implement RequiresResize because it is a no-op unless the
Composite's child implements RequiresResize. We can implement
ProvidesResize because it is a no-op unless the Composite's parent
implements ProvidesResize, which means it is safe to resize the
Composite's child.


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

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


Index: user/src/com/google/gwt/user/client/ui/Composite.java
===
--- user/src/com/google/gwt/user/client/ui/Composite.java   (revision 9129)
+++ user/src/com/google/gwt/user/client/ui/Composite.java   (working copy)
@@ -34,7 +34,8 @@
  * {...@example com.google.gwt.examples.CompositeExample}
  * /p
  */
-public abstract class Composite extends Widget {
+public abstract class Composite extends Widget implements RequiresResize,
+ProvidesResize {

   private Widget widget;

@@ -53,6 +54,12 @@

 // Delegate events to the widget.
 widget.onBrowserEvent(event);
+  }
+
+  public void onResize() {
+if (widget instanceof RequiresResize) {
+  ((RequiresResize) widget).onResize();
+}
   }

   /**


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


[gwt-contrib] Re: Making Composite implement RequiresResize and ProvidesResize so that it can pass resize informat... (issue1041801)

2010-10-21 Thread sbrubaker

LGTM

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

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


Re: [gwt-contrib] Making Composite implement RequiresResize and ProvidesResize so that it can pass resize informat... (issue1041801)

2010-10-21 Thread John LaBanca
The JavaDoc for RequiresResize says that that instanceof check in onResize
if the correct way to to it.  An instanceof check should be very fast, and
almost negligible compared to the cost of actually doing layout.  If
somebody notices a performance regression, its easy enough to use a boolean,
but for now I think this simple implementation is fine.

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Oct 21, 2010 at 12:04 PM, Andi Mullaraj andimulla...@gmail.comwrote:

 I want to remark something but mine is more a question than a suggestion:

 I assume OnResize would have to be quite performant. How expensive is the
 operator instanceof? Is it worth keeping an instance boolean when the child
 is initialized and check against it later? Or would that be seen more like
 'code noise'.

 Thanks,

 Andi Mullaraj



 On Thu, Oct 21, 2010 at 11:46 AM, jlaba...@google.com wrote:

 Reviewers: sbrubaker,

 Description:
 Making Composite implement RequiresResize and ProvidesResize so that it
 can pass resize information to its child widget. This is useful when
 creating a Composite of a LayoutPanel.  In general, a widget should only
 ProvideResize if its child widget cannot affect the dimensions of the
 parent (ex. the parent is a a scrollable div or a div with a fixed
 height and width). Since Composite does not add any elements to the DOM
 hierarchy and Composite#onResize() is only called if the parent widget
 implements ProvidesResize, it is safe to pass through the resize. That
 is, we can implement RequiresResize because it is a no-op unless the
 Composite's child implements RequiresResize. We can implement
 ProvidesResize because it is a no-op unless the Composite's parent
 implements ProvidesResize, which means it is safe to resize the
 Composite's child.


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

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


 Index: user/src/com/google/gwt/user/client/ui/Composite.java
 ===
 --- user/src/com/google/gwt/user/client/ui/Composite.java   (revision
 9129)
 +++ user/src/com/google/gwt/user/client/ui/Composite.java   (working
 copy)
 @@ -34,7 +34,8 @@
  * {...@example com.google.gwt.examples.CompositeExample}
  * /p
  */
 -public abstract class Composite extends Widget {
 +public abstract class Composite extends Widget implements RequiresResize,
 +ProvidesResize {

   private Widget widget;

 @@ -53,6 +54,12 @@

 // Delegate events to the widget.
 widget.onBrowserEvent(event);
 +  }
 +
 +  public void onResize() {
 +if (widget instanceof RequiresResize) {
 +  ((RequiresResize) widget).onResize();
 +}
   }

   /**


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


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

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

[gwt-contrib] First pass of E2eGWTTestCase, an experimental feature for end-to-end testing GWT applications (issue1043801)

2010-10-21 Thread kjin

Reviewers: jat, scottb,

Description:
First pass of E2eGWTTestCase, an experimental feature for end-to-end
testing GWT applications


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

Affected files:
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDefLoader.java
  A dev/core/src/com/google/gwt/dev/cfg/SyntheticModuleDef.java
  M tools/api-checker/config/gwt20_21userApi.conf
  M user/src/com/google/gwt/junit/CompileStrategy.java
  A user/src/com/google/gwt/junit/E2eJUnitShell.java
  M user/src/com/google/gwt/junit/JUnitShell.java
  M user/src/com/google/gwt/junit/ParallelCompileStrategy.java
  M user/src/com/google/gwt/junit/PreCompileStrategy.java
  M user/src/com/google/gwt/junit/SimpleCompileStrategy.java
  A user/src/com/google/gwt/junit/client/E2eGWTTestCase.java
  M user/src/com/google/gwt/junit/client/GWTTestCase.java
  A user/src/com/google/gwt/junit/client/TestService.java
  A user/src/com/google/gwt/junit/client/TestServiceFactory.java
  M user/src/com/google/gwt/junit/client/impl/GWTRunner.java
  A user/src/com/google/gwt/junit/client/impl/TestServiceImpl.java
  A user/src/com/google/gwt/junit/server/ProxyFilter.java
  A  
user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/E2eGWTTestCase.java
  D  
user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/impl/GWTRunner.java

  M user/test/com/google/gwt/junit/CompileStrategyTest.java


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


[gwt-contrib] Re: GWT 2.1 MVP with GIN

2010-10-21 Thread Aigeec
Hey guys,

Thanks David for your thoughts on how it could be implemented.

Perhaps you could provide an example of using the
PlaceHistoryMapperWithFactory.

Regards,

Aodhagán

On Oct 20, 7:02 pm, David david.no...@gmail.com wrote:
 Why not include Gin in GWT 2.1 ? It could maybe be useful inside the
 GWT codebase as well ?







 On Wed, Oct 20, 2010 at 5:32 PM, David Chandler drfibona...@google.com 
 wrote:
  Hmmm, I see my comments about GIN in the ActivityMapper have caught up
  with me. I haven't worked this out fully yet, but was thinking of
  something along the lines of gwt-presenter's a
  href=http://code.google.com/p/gwt-presenter/source/browse/src/main/java/ne...;PresenterPlace/a.
  My thought is to use GIN in place of the ClientFactory, and to write
  ActivityMapper.getActivity() like this:

         public Activity getActivity(Place place) {
                 if (place instanceof ActivityPlace)
                 {
                         return ((ActivityPlace) place).getActivity();
                 }
         }

  where an ActivityPlace would be obtained from a GIN-aware
  PlaceHistoryMapperWithFactory implementation so it can be injected
  with the EventBus, etc.

  On Wed, Oct 20, 2010 at 8:54 AM, Aigeec aodhag...@gmail.com wrote:
  Hey Guys,

  I am also interested in an implementation of GWT 2.1 MVP using GIN.

  I have made some head way with it.

  This has been done mostly by extending the ActivityManager,
  PlaceController and PlaceHistoryHandler classes and overriding their
  constructors to use GIN injection. I don't know if this is the correct
  implementation and if anyone has comments please let me know. But I
  have been able to remove the need for the ClientFactory and use GIN
  injection to instantiate everything but the Activity classes.

  However, I do not know how to tackle the ActivityMapper class.

  As Tolga says how do we replace the nested if statement with a GIN
  module?

  I would much prefer to be able to instantiate the Activity Class this
  way as I am using the SecureDispatchAsync as would like to use DI to
  pass it to the Activity.

  Regards,

  Aigeec

  On Oct 20, 1:31 am, Tolga Tarhan ttar...@gmail.com wrote:
  Folks,

  I'm trying to make GWT 2.1 MVP work nicely with GIN. It looks like this 
  use
  case was specifically considered when
  creating PlaceHistoryMapperWithFactory, but no such thing seems to exist 
  for
  ActivityMapper. There is a passing reference to using Gin in
  DevGuideMvpActivitiesAndPlaces.html , where it says ... ClientFactory is
  used by HelloActivity to obtain a reference to the HelloView as well as 
  the
  EventBus and PlaceController. Any of these could alternatively be injected
  via GIN. and also when it says A better way to implement the chain of
  nested ifs would be with a GIN module, in reference to ActivityMapper.

  The problem, however, is that we cannot both inject application-level
  objects (EventBus, PlaceController, etc) and also pass the Place as
  constructor arguments to the Activity. We could have all of the 
  dependencies
  for every Activity (like all the views) injected into our ActivityMapper 
  and
  pass them thru, but this leaks a lot of details into what should be a very
  simple mapper class. If done incorrectly, it would also cause 
  code-splitting
  issues.

  One way around this is to inject a ProviderMyActivity or
  AsyncProviderMyActivity in the ActivityMapper and then do something like
  myActivityProvider.get().initPlace(place) - which is like the assisted
  injection that's discussed in the Guice docs. I'm wondering if there's a
  more elegant way that was considered?

  Additionally, I'm not sure I understand how to implement the chain of
  nested ifs in a GIN module. This sounds like a great idea, but what did 
  you
  have in mind to make GIN do this for us? We can have GIN differentiate on 
  a
  bunch of things (annotations, generics, interfaces, etc), but I don't know
  how you could replace the if-block with GIN. Could someone point me in the
  right direction here?

  Thanks,
  Tolga

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

  --
  David Chandler
  Developer Programs Engineer, Google Web Toolkit
 http://googlewebtoolkit.blogspot.com/

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

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


[gwt-contrib] Re: Make the following method public in StackTraceDeobfuscator, for reuse by user server side code: (issue1040801)

2010-10-21 Thread unnurg

LGTM

On 2010/10/21 00:38:43, fredsa wrote:




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

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


Re: [gwt-contrib] First pass of E2eGWTTestCase, an experimental feature for end-to-end testing GWT applications (issue1043801)

2010-10-21 Thread BobV
Pointer to a design doc?  What is this used for?

-- 
Bob Vawter
Google Web Toolkit Team

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


[gwt-contrib] Removed unnecessary log message: (issue1046801)

2010-10-21 Thread rchandia

Reviewers: rjrjr,

Description:
Removed unnecessary log message:
WARNING: Record with futureId X not persisted


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

Affected files:
  M user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java


Index:  
user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java

===
--- user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
(revision 9129)
+++ user/src/com/google/gwt/requestfactory/server/JsonRequestProcessor.java	 
(working copy)

@@ -1246,9 +1246,8 @@
 Object newId = getRawPropertyValueFromDatastore(entityInstance,
 Constants.ENTITY_ID_PROPERTY);
 if (newId == null) {
-  log.warning(Record with futureId  + originalEntityKey.encodedId
-  +  not persisted);
-  return null; // no changeRecord for this CREATE.
+  // no changeRecord for this CREATE.
+  return null;
 }

 newId = encodeId(newId);


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


[gwt-contrib] Adds an -XcompilerMetrics flag to the compiler. This will (issue1045801)

2010-10-21 Thread zundel

Reviewers: jbrosenberg, scottb,

Description:
Adds an -XcompilerMetrics flag to the compiler.  This will
create a compilerMetrics.xml file that contains information
about the build, such as the list of incoming java classes,
the list of types that were generated by the compiler,
and details about memory usage and wall clock time.


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

Affected files:
  A  
dev/core/src/com/google/gwt/core/ext/linker/CompilationMetricsArtifact.java

  A dev/core/src/com/google/gwt/core/ext/linker/ModuleMetricsArtifact.java
  A  
dev/core/src/com/google/gwt/core/ext/linker/PrecompilationMetricsArtifact.java

  A dev/core/src/com/google/gwt/core/linker/CompilerMetricsLinker.java
  M dev/core/src/com/google/gwt/dev/Precompile.java
  M dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java
  M dev/core/src/com/google/gwt/dev/jjs/AbstractCompiler.java
  M dev/core/src/com/google/gwt/dev/jjs/JJSOptions.java
  M dev/core/src/com/google/gwt/dev/jjs/JJSOptionsImpl.java
  M dev/core/src/com/google/gwt/dev/jjs/JavaScriptCompiler.java
  M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java
  M dev/core/src/com/google/gwt/dev/jjs/UnifiedAst.java
  M dev/core/src/com/google/gwt/dev/util/Memory.java
  M dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerCompileReport.java
  A dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerCompilerMetrics.java
  M dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerSoyc.java
  A  
dev/core/src/com/google/gwt/dev/util/arg/OptionCompilerMetricsEnabled.java

  M dev/core/src/com/google/gwt/dev/util/arg/OptionSoycEnabled.java
  M user/src/com/google/gwt/core/Core.gwt.xml


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


[gwt-contrib] Re: Making Composite implement RequiresResize and ProvidesResize so that it can pass resize informat... (issue1041801)

2010-10-21 Thread t . broyer

Isn't that duplicating the functionnality of the ResizeComposite?
http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/ResizeComposite.html
Should it then be deprecated? At least it should itself implement
ResizeComposite, as it would now inherit the behavior from Composite
(well, maybe it's worth it, to bypass the instanceof check and the cast)

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

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


[gwt-contrib] Re: Making Composite implement RequiresResize and ProvidesResize so that it can pass resize informat... (issue1041801)

2010-10-21 Thread John LaBanca
Thanks, I missed that.  I'm a little confused though.  It seems that
Composite could just implement RequiresResize without the need for the
assertion, since it fails gracefully.  I'll talk to Joel about it next week
and see if there is a reason why we need the subclass.

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Oct 21, 2010 at 4:26 PM, t.bro...@gmail.com wrote:

 Isn't that duplicating the functionnality of the ResizeComposite?

 http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/ResizeComposite.html
 Should it then be deprecated? At least it should itself implement
 ResizeComposite, as it would now inherit the behavior from Composite
 (well, maybe it's worth it, to bypass the instanceof check and the cast)


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


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

[gwt-contrib] Re: For the xpcom plugin, detect if the system linker is GNU gold. If so, try to use compat-ld instead (issue1008801)

2010-10-21 Thread conroy

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

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


[gwt-contrib] Re: For the xpcom plugin, detect if the system linker is GNU gold. If so, try to use compat-ld instead (issue1008801)

2010-10-21 Thread jat

LGTM


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

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


[gwt-contrib] Re: Public: custom serializer and other code needed to send constraint violations (issue1040802)

2010-10-21 Thread nchalko

On 2010/10/22 00:01:25, Nick Chalko wrote:


This broke the build before, because sample build.xml needed to exclude
**/super/**

All the samples now build.

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

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