Need a kind of setHeaderText(String) for DisclosurePanel

2009-12-02 Thread Al Murauski
Hi,

To GWT developers:

Currently, there's no simple way to change header text of a
DisclosurePanel after it is created. It would be great if there a kind
of setHeaderText(String) method would exist.

How do you think?

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: Simple Label+TextBox combo

2009-12-02 Thread philippe
Using br tag isn't a good solution for your problem. It's better using
CSS style to manage the page organization.

For exemple, you can put a nameAndLabel.addStyleClass(xybox); and
style:
.xybox {
  float: left; width: 400px;
}
.xybox label {
  float: left; width: 400px; margin: ..
}
.xybox input {
  float: left; width: 400px;
}

In this case you should including nameAndLabel panel in float: left
panel or position: relative panel.

It is important to separate the content from container.


On 1 déc, 19:55, Yozons Support on Gmail yoz...@gmail.com wrote:
 I have found that using InnerLabel with InnerHTML and a TextBox, I can come
 close to making it cleaner HTML than the overhead of a table just to put a
 label and input field together, with something like:

         FlowPanel nameAndLabel = new FlowPanel();
         InlineLabel label = new InlineLabel(Name);
         TextBox nameField = new TextBox();
         nameField.setValue(Bob);
         nameAndLabel.add(label);
         nameAndLabel.add( new InlineHTML(br/) );
         nameAndLabel.add(nameField);

 But the Label class doesn't actually generate a label tag, so the label is
 not also associated with the TextBox for accessibility (it's just a span).

 The idea of having labeled input fields is so basic, that there must be a
 nicer solution.  I noted that RadioButton does a good job of associating the
 label with the radio button itself.

 Is there something comparable in GWT 2 to make the label/TextBox (or other
 input widgets) go together to produce simple HTML like:

 labelNamebr/input /label

 Thanks for any tips

--

You received 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 force div widgets to be on the same row? (not use table)

2009-12-02 Thread philippe
display: inline works with all browsers

On 2 déc, 08:00, Qiushuang Zhang autumnc...@gmail.com wrote:
 haha, that is an interesting saying
 But don't you guys feel that GWT apps are very slow in loading?
 I suspect it is because there are tons of unnecessary tables...

 On Dec 1, 8:10 am, Jeff Chimene jchim...@gmail.com wrote:

  You can try playing with something like
  div
   div style=float: leftstuff/div
   div style=float: leftmore stuff/div
  /div

  I've done some fairly complex layouts w/o tables. If you search for layout
  omit tables kind of query you should find several  examples from those who
  shun tables as layout canvas. I think alistapart would be a good starting
  point.

  Nevertheless, shunning tables yet still using GWT is like  running down an
  up escalator. Just saying.

  On Mon, Nov 30, 2009 at 5:03 PM, Qiushuang Zhang 
  autumnc...@gmail.comwrote:

   hi experts,

   As you know, a lot of widgets in GWT are implemented by div, such as
   buttons. So, if I try to put some of these widgets together, each of
   them will automatically get into the second row by the nature of div.

   I don't want to use horizontal panel (basically a table) to force them
   into the same row, because I want to minimize the usage of table to
   keep the rendering speed. So I am currently using css:  display:
   inline-block. But it does not work for all browsers.
   So, I am wondering what are you guys using to put these divs into the
   same row?
   Thanks!

   Autumn

   --

   You received 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: Tomcat security + GWT = misery

2009-12-02 Thread Martin Trummer
if I understood the tomcat security-manager right, it would
be no problem to turn it off, if your app runs on your own
dedicated server.
on the other hand, if you host serveral apps that you have no
control over, you should not turn it off.

On 1 Dez., 21:57, bradrover brk...@gmail.com wrote:
 I have a GWT application that makes some server side web service calls
 to a Spring web service on the same machine (Ubuntu 9.04 and Tomcat
 6).

 I've spent countless hours trying to get security to allow these calls
 to go through in my GWT application. Finally, after all of that, I now
 have gwt rpc serialization errors for types I am not even trying to
 serialize:

 SEVERE: Exception while dispatching incoming RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'java.util.PropertyPermission' was not included in the set of types
 which can be serialized by this SerializationPolicy or its Class
 object could not be loaded. For security purposes, this type will not
 be serialized.

 I had already added a similar class to my gwt.rpc file for a previous
 error. Why do I have to do this? At this point I I am tempted to just
 turn off tomcat security. All I want to do is have my GWT application
 be able to make a server side web service call, which works perfectly
 on my local Windows XP machine.

--

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




Re: using 2 or more GWT modules in a single html page

2009-12-02 Thread Prashant
Thanks a lot Sripathi, I'll rethink about my app design.

--

You received 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 force div widgets to be on the same row? (not use table)

2009-12-02 Thread Thomas Broyer


On Dec 2, 8:00 am, Qiushuang Zhang autumnc...@gmail.com wrote:
 haha, that is an interesting saying
 But don't you guys feel that GWT apps are very slow in loading?
 I suspect it is because there are tons of unnecessary tables...

...only if you use those CellPanel-derived widgets. You're free to use
FlowPanel if you like (that's what we've been doing for nearly 2 years
now); but using a few HorizontalPanel shouldn't slow the app
noticeably (as we're doing too in some cases).

But regarding performances in loading, it all depends on what *you* do
onModuleLoad. Are you can build your layout all-in-one-go or
incrementally? (build the top-level container with loading...
placeholders, then in a DeferredCommand, replace a loading...
placeholder with a newly constructed widget, which might itself be
built incrementally using the same method) Are you constructing hidden
widgets or do you lazily initialize everything possible?

Have you profiled your app to know where the bottleneck is? (compile
in -style PRETTY so function names are understandable, or use the -
compileReport if you use GWT 2.0, and then use a profiling tool, such
as FireBug, Safari's Web Inspector, Chrome's Developer Tools, IE8's
Developer Tools, or dynaTrace Ajax Edition for older IE versions)

--

You received 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: Need a kind of setHeaderText(String) for DisclosurePanel

2009-12-02 Thread Thomas Broyer


On Dec 2, 9:34 am, Al Murauski a.murau...@gmail.com wrote:
 Hi,

 To GWT developers:

 Currently, there's no simple way to change header text of a
 DisclosurePanel after it is created. It would be great if there a kind
 of setHeaderText(String) method would exist.

 How do you think?

It already exists, in the form of disclosurePanel.getHeaderTextAccessor
().setText(...)

--

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




Re: Using sounds in GWT

2009-12-02 Thread sbraheem
Try BST Player and register handlers for the PlayerStateEvent event.
Check it out here - http://oss.bramosystems.com/bst-player

On Dec 1, 6:55 pm, Osvaldo osvaldorei...@hotmail.com wrote:
 I wanted to play in my site some .wav songs. When some one want to
 listen this song I get the bytes in DB e create some file .wav and use
 the GWT-Voice to play it, but I need to delete this file after it is
 load to the application and using .wav and GWT-Voice I can't know when
 this file is completely loaded. Can anyone help me?

--

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




Re: Google Web Toolkit 2.0 RC2 Now Available

2009-12-02 Thread Célio
yay! cheers, you guys rock!

(eagerly waiting for RC2 to be published on maven repo1)


On 25 nov, 18:52, John LaBanca jlaba...@google.com wrote:
 Hi everyone,

 We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
 Eclipse 1.2 RC2 are now available for you to try.

 Download the GWT 2.0 SDK RC2 
 here:http://code.google.com/p/google-web-toolkit/downloads/list?can=1q=gw...

 The full documentation is still a work in progress, but you can find
 instructions for using the updated SDK and Eclipse plugin 
 here:http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

 We've resolved several issues since RC1 and we feel pretty darn good
 about it, but as always, we caution you against using RC2 in production.

 Windows users who have previously installed the Google Web Toolkit Developer
 Plugin for IE will have to uninstall the old version and
 install the new version. This action is required because the file locations
 have changed. The RC1 installer required administrative
 privileges, but the new installer does not. Use the following steps:
 1. Open Control Panel
 2. Select Add/Remove Programs
 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
 4. During your next attempt to use GWT 2.0 development mode in IE, you will
 be prompted to install the GWT Developer Plugin, which will
 download an updated installer that does not require administrative
 privileges

 We are eager to get your feedback, both good and bad, in the Google Web
 Toolkit Developer Forum:http://groups.google.com/group/google-web-toolkit

 If you find specific bugs to report, please do so at the GWT Issue 
 Tracker:http://code.google.com/p/google-web-toolkit/issues

 Cheers,
 John LaBanca, on behalf of the GWT team

--

You received 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 Deployment on Web Hosting Sites

2009-12-02 Thread Kenneth Jacker
Good morning Anuj !

Sorry for the long delay in replyinging ...

 I asked godaddy and this is what they say:

must be on a Java enabled hosting account for servlets to function.
These scripts are written in Java, so without a way to handle these
the scripts cannot run. Unfortunately this means you will have to
upgrade to a Linux Deluxe or Unlimited plan.

Thanks for taking the time to write to them.

 Does this means thats leave alone shared hosting, java servlets won't
 even work on Economy Plan ($4.77) and it needs Delux plan??

Though a little unclear to me, I'm assuming the above is your question
to me/the list.


This page,

 http://www.godaddy.com/Hosting/Legacy.aspx?ci=1234#details

implies that Java is only available on GoDaddy's Deluxe and
Unlimited hosting plans.

I have a hunch, though, that it'd work if all we're doing is uploading
the GWT-generated JavaScript to GoDaddy.  Probably the sever/client
*data* transfers (i.e., files) would need the Java servlets / Tomcat.

Note the above are just my speculations ...

Thanks for writing ... please write again if you learn anything new,

  -Kenneth

--

You received 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: Please Suggest Me Good Book for GWT

2009-12-02 Thread Joe
Well, the books that I know are the following:

- Manning: GWT in Practice

- Manning: GWT in Action

- Google Web Toolkit Solutions: More Cool  Useful Stuff

- Beginning Google Web Toolkit: From Novice To Professional

- O'Reilly: Google Web toolkit For Ajax

The order I've listed the books doesn't really matter, plus there
might be lot more books,
but i belive these will be enough to help you learn, develop, and get
your application
ready for production.

Good luck!
On Dec 1, 5:23 pm, John Armstrong siber...@gmail.com wrote:
 Safari has a few that are great as well.Beginning Google Web Toolkit
 got me up and running in a few hours.

 http://my.safaribooksonline.com/9781430210313

 You read it online so its available globally.
 John-



 On Mon, Nov 30, 2009 at 9:58 PM, Pruthvi Raj pruthvi...@gmail.com wrote:
  Hi,
  I am learning the GWT, So please suggest me good book to start, which is
  availabe in bangalore(India).

  thanks,
  Pruthvi.

  --

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




Why I can't add new labels to created widget?

2009-12-02 Thread Alexander
I have created composite widget that have VerticalPanel. After I
created this widget (after constructor finished and initWidget()
called) I want to add new labels to VerticalPanel (some additional
information arrived via wire) but GWT throws exception like A widget
that has an existing parent widget maynot be added to the detach list

Where the problem is? Is it true that I can't add any new widget after
called initWidget()?

--

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




Where should I put images

2009-12-02 Thread jax
I have a project:   com.example.myapp.ListEditor

Originally I had a folder that contained images in my images in: war/
images

In my code I would reference images like this /images/myimage.jpg

1.  The project was working locally fine.
2.  I uploaded it to the server and navigated to the .html page.  It
worked fine.
3.  I embedded the .html page into a joomla article using a PHP include
() function.  No images were displayed!  I changed my code to
reference the stylesheet using the stylesheet tag in the XML file
but still have the same problem.

Where should I put my images?  I tried com.example.myapp and appended
GWT.getModuleBaseURL() but when I compiled there were no images in the
war directory.

--

You received 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: Please Suggest Me Good Book for GWT

2009-12-02 Thread Alexander
Just read Manning: GWT in Action - something amazing as it showed me so
must pitfalls and strategies! I think you should start with it.

2009/12/2 Joe joechahh...@gmail.com

 Well, the books that I know are the following:

- Manning: GWT in Practice

- Manning: GWT in Action

- Google Web Toolkit Solutions: More Cool  Useful Stuff

- Beginning Google Web Toolkit: From Novice To Professional

- O'Reilly: Google Web toolkit For Ajax

 The order I've listed the books doesn't really matter, plus there
 might be lot more books,
 but i belive these will be enough to help you learn, develop, and get
 your application
 ready for production.

 Good luck!
 On Dec 1, 5:23 pm, John Armstrong siber...@gmail.com wrote:
  Safari has a few that are great as well.Beginning Google Web Toolkit
  got me up and running in a few hours.
 
  http://my.safaribooksonline.com/9781430210313
 
  You read it online so its available globally.
  John-
 
 
 
  On Mon, Nov 30, 2009 at 9:58 PM, Pruthvi Raj pruthvi...@gmail.com
 wrote:
   Hi,
   I am learning the GWT, So please suggest me good book to start, which
 is
   availabe in bangalore(India).
 
   thanks,
   Pruthvi.
 
   --
 
   You received 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.





-- 
Regards,
Alexander

--

You received 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: Please Suggest Me Good Book for GWT

2009-12-02 Thread John V Denley
I found the following very useful:

http://www.pathf.com/blogs/2007/07/36-gwt-tutorial/

lots of free tutorials and examples listed there

--

You received 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.0 - startupUrl field

2009-12-02 Thread Andrey
But what if I have two .html pages:
index.html - the gwt entry page and
error.html - for servlet errors like 404.
Plugin may erroneously choose error.html as a start page.

It is not difficult to set -startupUrl of course, but it would be more
conveinent to have a field for a main page.

On 30 ноя, 21:45, Rajeev Dayal rda...@google.com wrote:
 Previously, specifying the startupURL would cause the Hosted Browser to open
 up and navigate to this address by default. With the new Development Mode,
 the Development Mode debugging session is started by having the user enter
 the URL in their (real) brower's address bar. So, the startupURL is really
 no longer as useful as a first-class launch configuration option.



 On Sat, Nov 28, 2009 at 6:39 AM, Filipe Sousa nat...@gmail.com wrote:
  On Nov 28, 11:03 am, Andrey mino...@gmail.com wrote:
   Hello!

   Why is startupUrl field removed from run configuration in RC2?
   For example, I use a servlet as a main page, GWT plugin obviously
   cannot determine the servlet's url itself and gives me incorrect url
   by default.
   Now I need to set -startupUrl in program arguments.

   It would be better if your return the field back - it was very
   convenient.

   Thanks in advance!

  +1

  --

  You received 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: Where should I put images

2009-12-02 Thread mariyan nenchev
Try image or client bundles

--

You received 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: Why I can't add new labels to created widget?

2009-12-02 Thread Thomas Broyer


On Dec 2, 5:21 am, Alexander the.malk...@gmail.com wrote:
 I have created composite widget that have VerticalPanel. After I
 created this widget (after constructor finished and initWidget()
 called) I want to add new labels to VerticalPanel (some additional
 information arrived via wire) but GWT throws exception like A widget
 that has an existing parent widget maynot be added to the detach list

 Where the problem is?

Are you using the wrap() static method that some widgets have? If
you're not, how are you using RootPanel? (how many? are you using two
RootPanels where one actually is a child of the other in your HTML
page?)

 Is it true that I can't add any new widget after called initWidget()?

No!

--

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




Need help getting panel fade to work properly

2009-12-02 Thread Rob Tanner
In my application, under certain circumstances, I open up a DialogueBox
() in the middle of the screen.  In order to focus attention on the
box, I gray out the surrounding screen using PopupPanel() that should
cover the entire screen.  The panel is black with 60% opacity.  This
works perfectly on Safari and, believe it or not, even with IE.  Where
it fails is Firefox.  In Firefox the gray translucent panel only
covers down to the bottom of the lowest panel visible in the browser.
Here's the code I'm using to set the properties of the popup:

glass = new PopupPanel();
DOM.setStyleAttribute(glass.getElement(), width, 100%);
DOM.setStyleAttribute(glass.getElement(), height, 100%);

DOM.setStyleAttribute(glass.getElement(), backgroundColor,
#000);
DOM.setStyleAttribute(glass.getElement(), opacity, 0.60);
DOM.setStyleAttribute(glass.getElement(), _moz_opacity, 
0.60);
DOM.setStyleAttribute(glass.getElement(), filter,  alpha
(opacity=60));

(I am modeling  a tutorial found at 
http://examples.roughian.com/#Tutorials~Panel_Fade)

I am running GWT 1.7.1 and the problem browser is Firefox 3.5.5.

Any ideas?

Thanks,
Rob

--

You received 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: Controlling desktop windows size and position.

2009-12-02 Thread PatrickJ
I suppose I'm somewhat confused.  What I would like to do is base the
interface on GWT but call some server side process that would interact
with the host OS which would allow me to manipulate other applications
which are running on the host.

For example, I've two networked laptops labelled 1 and 2.  Laptop 2 is
running 4 remote desktop sessions into four virtual, servers which are
hosted on laptop 2.  I would like to have a console on laptop 1
running a web based app (preferably written in GTW) which would allow
me to interact through some server side components running on Laptop
2, which would allow me to control the size and position of the Remote
desktops  e.g. position them in quadrants, maximise 1 an minimise the
rest etc.

The console running on laptop 1 would display a graphical thumbnail of
the applications running on laptop two where I could arrange them
using a mouse.

Maybe I'm expecting too much from GWT however I was of the opinion
that I could use GWT to develop a wide range of web based application.

Thanks in advance.

On Nov 29, 1:26 am, bch...@gmail.com bch...@gmail.com wrote:
 Java is not Javascript.

 On Nov 28, 8:01 pm, Patrick Simons patrickjsim...@gmail.com wrote:



  I'm sure there is a way, I've seen Java applications do this before

  On Mon, Nov 23, 2009 at 10:09 AM, Martin Trummer 
  martin.trum...@24act.atwrote:

   you can't do that with html/javascript, so GWT can't help you

   On 19 Nov., 18:35, PatrickJ patrickjsim...@gmail.com wrote:
Is there and equivalent functional in GWT to VB's FindWindow,
ShowWindow and MoveWindow?

I would like to write a simple GWT application that would list all
applications running on a Windows PC and have the ability to control
the window's position attributes.

Patrick

    --

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

 - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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 in development mode using ejbs deployed on jboss running server

2009-12-02 Thread mariyan nenchev
Hi, how can i configure my gwt app to use ejb deployed on jboss server. The
ejbs are implemented so i do not need to redeploy the whole ear (with the
gwt war inside). Instead i may use some redirection to all requests and use
(only in developnent) Remote Ejb interfaces.

I do not know how to configure the internal GEP server to redirect my ejb
calls to jboss(is it possible?)
Please help.
Here is the stack trace i got:
 [WARN]
Key[type=net.customware.gwt.dispatch.server.service.DispatchServiceServlet,
annotation=[none]]: Exception while executing
myproject.shared.event.InitialRequest: error.system
myproject.util.exceptions.InternalSystemException: error.system
at
myproject.ejb.logic.util.lookup.LookupUtils.lookup(LookupUtils.java:305)
at
myproject.ejb.logic.util.lookup.LookupUtils.lookup(LookupUtils.java:285)
at
myproject.server.handler.InitialHandler.execute(InitialHandler.java:39)
at
myproject.server.handler.InitialHandler.execute(InitialHandler.java:1)
at
net.customware.gwt.dispatch.server.DefaultDispatch.doExecute(DefaultDispatch.java:78)
at
net.customware.gwt.dispatch.server.DefaultDispatch.execute(DefaultDispatch.java:68)
at
net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute(DispatchServiceServlet.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)
at
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:141)
at
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
at
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
at
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
Caused by: javax.naming.NoInitialContextException: Need to specify class
name in environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
at
javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at
myproject.ejb.logic.util.lookup.LookupUtils.lookup(LookupUtils.java:297)
... 39 more
   [WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'myproject.util.exceptions.InternalSystemException' was not included in the
set of types which can be serialized by this SerializationPolicy or its
Class object could not be loaded. For security purposes, this type will not
be serialized.: instance = 

Re: Controlling desktop windows size and position.

2009-12-02 Thread Isaac Truett
Patrick,

GWT can do anything that HTML, JavaScript, and CSS together can do in
a browser. The server in your setup is the entity that will be
interacting with the OS to manipulate other processes. Once you get to
the server, you're really outside the realm of GWT and you're free to
do whatever you want with Java or whatever server-side language you
choose.

So to answer your first question: no, GWT does not have functions
equivalent to VB's FindWindow, ShowWindow and MoveWindow. You'll want
to look for a Java library for that.

Hope that helps.

- Isaac


On Wed, Dec 2, 2009 at 12:41 PM, PatrickJ patrickjsim...@gmail.com wrote:
 I suppose I'm somewhat confused.  What I would like to do is base the
 interface on GWT but call some server side process that would interact
 with the host OS which would allow me to manipulate other applications
 which are running on the host.

 For example, I've two networked laptops labelled 1 and 2.  Laptop 2 is
 running 4 remote desktop sessions into four virtual, servers which are
 hosted on laptop 2.  I would like to have a console on laptop 1
 running a web based app (preferably written in GTW) which would allow
 me to interact through some server side components running on Laptop
 2, which would allow me to control the size and position of the Remote
 desktops  e.g. position them in quadrants, maximise 1 an minimise the
 rest etc.

 The console running on laptop 1 would display a graphical thumbnail of
 the applications running on laptop two where I could arrange them
 using a mouse.

 Maybe I'm expecting too much from GWT however I was of the opinion
 that I could use GWT to develop a wide range of web based application.

 Thanks in advance.

 On Nov 29, 1:26 am, bch...@gmail.com bch...@gmail.com wrote:
 Java is not Javascript.

 On Nov 28, 8:01 pm, Patrick Simons patrickjsim...@gmail.com wrote:



  I'm sure there is a way, I've seen Java applications do this before

  On Mon, Nov 23, 2009 at 10:09 AM, Martin Trummer 
  martin.trum...@24act.atwrote:

   you can't do that with html/javascript, so GWT can't help you

   On 19 Nov., 18:35, PatrickJ patrickjsim...@gmail.com wrote:
Is there and equivalent functional in GWT to VB's FindWindow,
ShowWindow and MoveWindow?

I would like to write a simple GWT application that would list all
applications running on a Windows PC and have the ability to control
the window's position attributes.

Patrick

    --

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

 - Show quoted text -

 --

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




--

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




Re: Tomcat security + GWT = misery

2009-12-02 Thread bradrover
I could probably eventually figure out the correct security needed in
the tomcat policy.d files, via trial and error. However, the GWT
serialization errors are something that is not well explained in the
docs except how to essentially work around it using a white list. I'm
totally guessing at this point, so turning off tomcat java security
manager is what I'm doing. Thanks.

On Dec 2, 5:06 am, Martin Trummer martin.trum...@24act.at wrote:
 if I understood the tomcat security-manager right, it would
 be no problem to turn it off, if your app runs on your own
 dedicated server.
 on the other hand, if you host serveral apps that you have no
 control over, you should not turn it off.

 On 1 Dez., 21:57, bradrover brk...@gmail.com wrote:

  I have a GWT application that makes some server side web service calls
  to a Spring web service on the same machine (Ubuntu 9.04 and Tomcat
  6).

  I've spent countless hours trying to get security to allow these calls
  to go through in my GWT application. Finally, after all of that, I now
  have gwt rpc serialization errors for types I am not even trying to
  serialize:

  SEVERE: Exception while dispatching incoming RPC call
  com.google.gwt.user.client.rpc.SerializationException: Type
  'java.util.PropertyPermission' was not included in the set of types
  which can be serialized by this SerializationPolicy or its Class
  object could not be loaded. For security purposes, this type will not
  be serialized.

  I had already added a similar class to my gwt.rpc file for a previous
  error. Why do I have to do this? At this point I I am tempted to just
  turn off tomcat security. All I want to do is have my GWT application
  be able to make a server side web service call, which works perfectly
  on my local Windows XP machine.

--

You received 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: Need help getting panel fade to work properly

2009-12-02 Thread Yozons Support on Gmail
Not sure when it was released (I'm using 2.0RC2 now), but did you just try
the DialogBog.setGlassEnabled(true) call?

--

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




Trying to build workaround for errorL The import com.google.appengine cannot be resolved

2009-12-02 Thread etsauer
Hi,

I am new to GWT. I was getting an error in my code when trying to use
JDO to store data.

The import com.google.appengine cannot be resolved

The object I am trying to store uses the appengine User object. I
searched around and found this article

http://fredsa.allen-sauer.com/2009/04/1st-look-at-app-engine-using-jdo.html

 with a workaround for using the datastore Key object and tried to
follow that to fix my problem. But now when I try to launch hosted
mode, it just crashes and in the debug tab in Eclipse i get the
following message:

terminated, exit value: 2C:\Program Files (x86)\Java\jre6\bin
\javaw.exe (Dec 2, 2009 12:25:20 PM)

Can anyone tell me what I can do to find out why hosted mode is
terminating?

Thanks,
Eric

--

You received 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: Need help getting panel fade to work properly

2009-12-02 Thread Rob Tanner
I presume you mean DialogueBox and setGlassEnable() must be a 2.0RC2
feature.

On Dec 2, 10:46 am, Yozons Support on Gmail yoz...@gmail.com wrote:
 Not sure when it was released (I'm using 2.0RC2 now), but did you just try
 the DialogBog.setGlassEnabled(true) call?

--

You received 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: Need help getting panel fade to work properly

2009-12-02 Thread Yozons Support on Gmail
Sorry for the typo, but it's DialogBox (and neither DialogBog or DialogueBox
smile).  It is a method on PopupPanel and could very well be 2.0.  If you
are getting started on a new project, I recommend going to 2.0RC2 now
because you'll need to upgrade at some point anyway, and because it's an
RC2, it's fairly stable for development work, and the ability to debug in FF
(or IE if you prefer) directly is a huge win.

--

You received 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: JavaDoc Annotation to Skip Method Compilation

2009-12-02 Thread RShelley
Thanks everyone.  I've voted for this issue and added my own comment.

-Ryan

On Dec 1, 11:40 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 A few people have already done some work on this. See this thread 
 -http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 You may also want to star the 
 issuehttp://code.google.com/p/google-web-toolkit/issues/detail?id=3769. Helps 
 the
 google folks to know how many people want the issue resolved.

 --Sri

 2009/12/2 Yozons Support on Gmail yoz...@gmail.com

  How?  We'd love to do it, but I suspect it's non-trivial, and if it is,
  then I'm sure others would like the ability since it would allow you to pass
  a server object into a client object to set some state without needing the
  method itself be part of the javascript generation.

   --
  You received 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: JavaDoc Annotation to Skip Method Compilation

2009-12-02 Thread Yozons Support on Gmail
Thanks for the tip on the on the issue number.  I confess, I don't really
understand the super-source solution, or even how it actually solves the
problem.

I've resigned myself to know that I'll never be able to build a data-object
for the client and then subclass that for the server side because most of
our server side objects already inherit from other classes and often have
logging components, authentication checks, etc. that would make it pretty
complicated.  Maybe the server-only option is too complicated to implement
sanely, but it sure seemed alluring that the client code would be written in
Java and we'd get some real cross-benefits, but I think it's more myth than
reality regarding how these can be shared/reused, which is a shame when you
consider the various data validations (required/or not, min/max
lengths/values, legal characters, etc.) even for simple data objects end up
being duplicated, one for the client side and the other for the server side.

The one upside of JSP/servlet is that there was no client-side, but now
we're moving back to the days of needing two distinct apps, one written for
the client, and the other written for the server.  I really like GWT, but
wish more of these could somehow have been handled more auto-magically
smile.

--

You received 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: Simple Label+TextBox combo

2009-12-02 Thread Yozons Support on Gmail
Let me digest that since I confess I'm more HTML-oriented than CSS for such
things.

I'm not sure what it means for the nameAndLabel panel in float: left panel
or position: relative panel means.  Is this a type of panel that does this
(AbsolutePanel?) or just a CSS option to give a
HorizontalPanel/VerticalPanel/FlexTable/Grid depending on how I'm laying out
the series of input fields with labels.

Also, not sure how this resolves the label-input field since the Label()
object does not appear to emit a label tag, just a div (or span if
it's InnerLabel), and it's generally hard to assign unique IDs to all my
input fields since my popup window that accepts the data is not restricted
to just one at a time (our users often bring up two as they compare or the
like).  So it's easy to name them, but not id them.  In HTML, I could do
this by putting the input inside the label so they were auto-associated.

I'll give your CSS solution a try and see how that works me as I'm slowly
gaining CSS experience, and wanted to avoid having to do too much in CSS
because GWT resolves many browser-anomalies, so the CSS needs to be basic
enough to work everywhere easily.

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.




DateTimeFormat bug in GWT? or my mistake?

2009-12-02 Thread Chris
Hi

I have a small question about GWT DateTimeFormat. I'm trying to
display a date with the format:

 G (ie. 1AD, 100BC, 3000BC) etc.

so i create my new Date and format it:
Date d = new Date(-156805891175010L);
new DateTimeFormat( G).format(d)

Unfortunately I get 3000AD which is incorrect. I should be 3000BC.
Looking at the date object, I can see it represented as B.C.E.
3000-02-01T00:00:24.990Z which therefore looks alright...

Am I doing something wrong? Is this a bug? Can anyone thing of a work
around?

It seems the DateTimeFormat gets the year right, but it comes to the
Era, it does some crazy comparaison, which I don't really understand:

date.getYear() = - JS_START_YEAR

How is this ever supposed to work?
So for 3000BC, I might get +1100 for Date.getYear() and yet it's in
the BC ERA. Using the comparaison:

-1100 = -1900 so we end up with AD

Cheers
Chris


  private void formatEra(StringBuffer buf, int count, Date date) {
int value = date.getYear() = -JS_START_YEAR ? 1 : 0;
if (count = 4) {
  buf.append(dateTimeConstants.eraNames()[value]);
} else {
  buf.append(dateTimeConstants.eras()[value]);
}
  }

  private void formatYear(StringBuffer buf, int count, Date date) {
int value = date.getYear() + JS_START_YEAR;
if (value  0) {
  value = -value;
}
if (count == 2) {
  zeroPaddingNumber(buf, value % 100, 2);
} else {
  // count != 2
  buf.append(Integer.toString(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.




problems with the eclipse hosted mode ...

2009-12-02 Thread loucat
hi all,

I'm a newbie on GWT :P
i started following the tutorial that google provided (StockWatcher
project).
Everything seems ok except that I just can't see my work running in
hosted mode in the GWT web browser :(
I think I have everything configured well but maybe it isn't so...
I use windows xp, eclipse ganymede, google plugin for eclipse... what
else?
when I arrive at this point:

http://code.google.com/intl/it/webtoolkit/tutorials/1.6/buildui.html#test
(test the layout in hosted mode)

even if the console says: The server is running at http://localhost:8080/;,
anything appear in the gwt browser (just a blank page), while I manage
to see the right thing in the normal browser (firefox).

any suggestion? :)

thanks in advance!

lou

--

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




adding a resource file in Eclipse

2009-12-02 Thread Vontina Alexa
I am going through the GWT tutorial and in the Internationalization
section. I am fairly new to Eclipse and to Java development, so please
excuse me if this question seems trivial. I am at the following
instructions:

  At Enter or select the parent folder, select
  StockWatcher/src/com/google/gwt/sample/stockwatcher/client
  At File name, enter
  StockWatcherConstants_de.properties

What is this 'At Enter' mean - and does someone know of more specific
instructions on how to do this?

Thank you so much!
V-

--

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




mvn gwt:run vs. tomcat path conflict

2009-12-02 Thread Ken Stevens
When I test my gwt app using mvn gwt:run, it puts the application at
the root of the URL, e.g.

http://localhost:/com.foo.bar.App/App.html

However, when I run it in tomcat, if my war is called myproject.war,
then the URL is

http://localhost:8080/myproject/com.foo.bar.App/App.html

When /myproject/ appears in Tomcat but not in mvn gwt:run, it makes
testing a pain because any web navigation links (like Window.open(/
index.html, _self, ); ) will work in mvn gwt:run but break in
tomcat (since tomcat would require the URL to be /myproject/
index.html).

Please help!

Thanks,
Ken

--

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




update widget from inside async callback

2009-12-02 Thread Stephen
Hi,

I'm making an async callback and in the onSuccess function I loop
through a result set.  I would like to update a label or progressbar
after each iteration of the loop.

Right now, the label does not get updated until after the onSuccess
function is finished, and then it immediately shows the last number of
the counter (equal to the size of the results set) so that isn't much
use.

Just wondering if there are any tips on this.

Thanks,
Stephen

--

You received 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: mvn gwt:run vs. tomcat path conflict

2009-12-02 Thread David Durham
On Wed, Dec 2, 2009 at 12:43 PM, Ken Stevens khstev...@gmail.com wrote:

 http://localhost:8080/myproject/com.foo.bar.App/App.html

 When /myproject/ appears in Tomcat but not in mvn gwt:run, it makes
 testing a pain because any web navigation links (like Window.open(/
 index.html, _self, ); ) will work in mvn gwt:run but break in
 tomcat (since tomcat would require the URL to be /myproject/
 index.html).

Think your problem has to do with configuring the gwt mojo.  I use
something like:

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdgwt-maven-plugin/artifactId
configuration
gwtVersion1.7.0/gwtVersion
modulecom.googlecode.gxtforms.demo.Application/module
runTargetindex.html/runTarget
/configuration
executions
execution
goals
goalcompile/goal
/goals
/execution
/executions
/plugin


and gwt:run opens up to:

   http://localhost:/index.html

course I have an index.html in the /war directory with this:

script language=javascript
src=com.googlecode.gxtforms.demo.Application/com.googlecode.gxtforms.demo.Application.nocache.js/script


HTH,
Dave

--

You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: mvn gwt:run vs. tomcat path conflict

2009-12-02 Thread David Durham
 http://localhost:8080/myproject/com.foo.bar.App/App.html

 When /myproject/ appears in Tomcat but not in mvn gwt:run, it makes
 testing a pain because any web navigation links (like Window.open(/
 index.html, _self, ); ) will work in mvn gwt:run but break in
 tomcat (since tomcat would require the URL to be /myproject/
 index.html).

 Think your problem has to do with configuring the gwt mojo.

Also, the gwt mojo has a mailing list.

http://mojo.codehaus.org/gwt-maven-plugin/mail-lists.html

--

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




frustrated with Google Eclipse Plugin and Maven gwt-maven-plugin integration

2009-12-02 Thread bkbonner
Does anyone have this working well and can share a decent archetype
for 2.0 RC2 that works with maven and google eclipse plugin?

Does anyone have google eclipse plugin and maven working well together
and can generate an archetype (it's a simple command) that can be
shared?

Brian

--

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




other maven and google eclipse plugin woes

2009-12-02 Thread bkbonner
GWT Team / gwt-maven-plugin team

It's painful to integrate gwt with maven -- even with the current gwt-
maven-plugin, a preferred build environment by many people.

1.  The GWT snapshots and releases don't appear in a public maven
repository in a timely manner.  Matt Raible has asked about this
repeatedly.  I've posted requests for this as well.  I would hope that
google would use maven too for it's open source stuff to make it
easier to be adopted by the rest of the world.

2.  It's too painful to get a maven project working with the google
eclipse plugin out of the chute.  This doesn't *seem like an edge
case.  I've been fighting this for a while and I'm still trying to get
this to work properly.

I'd like to see two things:

1.  the GWT snapshots and releases appear in a timely manner
2.  a maven 2 archetype for GWT 2.0 that works with the gwt-maven-
plugin out of the chute with the Google Eclipse plugin.  And some
instructions on how to best use it in a development mode.  The current
instructions don't make this easy.

Brian

--

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




Re: update widget from inside async callback

2009-12-02 Thread Eric


On Dec 2, 3:25 pm, Stephen manod...@gmail.com wrote:
 Hi,

 I'm making an async callback and in the onSuccess function I loop
 through a result set.  I would like to update a label or progressbar
 after each iteration of the loop.

Use the IncrementalCommand class.  In your onSuccess method, take
the loop you were writing and place it in a command:

new AsyncCallbackArrayListString() {
public void onFailure(final Throwable t){..}
public void onSuccess(final ArrayListString list) {
 final int size = list.size();
progressBar.setCount(size);  // Defined by you.
DeferredCommand.addCommand(new IncrementalCommand() {
 private int index = 0;
 public boolean execute() {
 handle(list.get(index++));  // Defined by you.
 progressBar.progress();
 return index  size;
}
}
}


 Thanks,
 Stephen

After each element in the list is handled, the progress bar is
updated,
and the command is paused, to resume in a millisecond if there are
still
items to handle.  This also prevents the browser from thinking that
your
application is in an indefinite loop and giving the user the chance to
abort it.

Take a progress bar from any convenient source.

Respectfully,
Eric Jablow

--

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




css file location

2009-12-02 Thread mwaschkowski
Hi,

If I put in the following into my gwt.xml file:

  stylesheet src='Project.css'/

everything work fine when I run the app in hosted mode, but when I
deploy, the app won't use the Project.css in the root of the
application, but instead wants to find the css in:

  http://localhost:8090/project/project/Project.css

When I checked the docs,

  
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModuleXml

it said for a relative url, it'll be equivalent to GWT.getModuleBaseURL
() + Project.css which made sense and I thought it would translate
to:

  http://localhost:8090/project/Project.css

but it doesn't. Am I missing something here, or is something amiss?

Thanks,

Mark

--

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

2009-12-02 Thread Yozons Support on Gmail
Just be sure to put Project.css in the public folder where you gwt.xml file
is (unless it also specifies another location for public).  That will ensure
it is copied to the area where the css injector references it.

--

You received 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: mvn gwt:run vs. tomcat path conflict

2009-12-02 Thread Ken Stevens
David,

Thank you for replying, but your answer does not solve my problem.  To
be clear, I have some non-gwt web pages that I need to navigate to, so
in my application I am navigating between plain old html web pages and
gwt pages (unlike what you described where it appeared your entire web
application lived inside gwt).

The easiest solution to the problem I described would be to find a way
for gwt:run to add a /myproject/ in front of all the pages and gwt
code under war.  I.e. to get gwt:run to behave just like tomcat in the
way that tomcat prefixes all war urls with the name of the war.

I have seen some references to calling gwt:run in a tomcat mode, but
I did not see in any of these examples where a /myproject/ prefix
could be specified.

In all the ways I can think of to resolve this, it will just result in
a /myproject/myproject/ url showing up in tomcat which is of course
not what I want.  I need a url prefix that is just constrained to
gwt:run.

Is there a solution?

Thanks,
Ken

On Dec 2, 4:03 pm, David Durham david.durham...@gmail.com wrote:
 http://localhost:8080/myproject/com.foo.bar.App/App.html

  When /myproject/ appears in Tomcat but not in mvn gwt:run, it makes
  testing a pain because any web navigation links (like Window.open(/
  index.html, _self, ); ) will work in mvn gwt:run but break in
  tomcat (since tomcat would require the URL to be /myproject/
  index.html).

  Think your problem has to do with configuring the gwt mojo.

 Also, the gwt mojo has a mailing list.

 http://mojo.codehaus.org/gwt-maven-plugin/mail-lists.html

--

You received 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: css file location

2009-12-02 Thread mwaschkowski
Thanks for the reply!

I put the css  in the public folder where you gwt.xml file is, but
that didn't help.

Regards,

Mark

On Dec 2, 5:21 pm, Yozons Support on Gmail yoz...@gmail.com wrote:
 Just be sure to put Project.css in the public folder where you gwt.xml file
 is (unless it also specifies another location for public).  That will ensure
 it is copied to the area where the css injector references it.

--

You received 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: frustrated with Google Eclipse Plugin and Maven gwt-maven-plugin integration

2009-12-02 Thread Karthik Abram
I don't have it working with the Google eclipse plugin ... but I did
get it working where compilation is no slower than the Google Eclipse
plugin and debugging is just as fast (using maven compile target and
java app launch config for debugging). I did have to get
gwt-maven-plugin 1.2-SNAPSHOT to get it going. I don't have a
ready-to-share version ... just as yet. Give me a few days and I can
perhaps share the code with you.

On Wed, Dec 2, 2009 at 4:04 PM, bkbonner brian.bon...@paraware.com wrote:
 Does anyone have this working well and can share a decent archetype
 for 2.0 RC2 that works with maven and google eclipse plugin?

 Does anyone have google eclipse plugin and maven working well together
 and can generate an archetype (it's a simple command) that can be
 shared?

 Brian

 --

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




--

You received 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: JSON - When to use JSONParser and when JavaScript object

2009-12-02 Thread Jeff Chimene
Hi Thomas,

I had stumbled upon this solution. However, you have an additional detail I
don't understand: The split between
interface MyModelObject
and
class MyModelObjectImpl extends JavaScriptObject implements MyModelObject

What advantage does this gain? I think it has something to do w/. DI or
testing, but I cannot see why one wouldn't do
void get(AsyncCallbackMyModelObjectImpl callback);

i.e. don't use an interface, just do all templating via the class? Also, I
see you're using @ImplementedBy. How does this differ from
bind(new TypeLiteralSessionReaderTxnSession()
{}).to(MockSessionReader.class);

There is a redundancy in the above that I haven't figured out how to factor
out. Ideally, it should be either
bind(new TypeLiteralReaderTxnSession() {}).to(MockSessionReader.class);
or
bind(new TypeLiteralSessionTxnReader() {}).to(MockSessionReader.class);

Cheers,
jec

On Fri, Nov 27, 2009 at 2:30 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On 27 nov, 16:56, Jeff Chimene jchim...@gmail.com wrote:
  On 11/12/2009 12:45 PM, Thomas Broyer wrote:
 
   And actually, now that I've switched to GWT 2.0, I use interfaces to
   model my objects, with RemoteService/*Async interfaces to model my
   services; and I implement them using JSOs (JSOs can implement
   interfaces under certain conditions in GWT 2.0)
 
  Hi Thomas,
 
  Would you mind expanding on this a little bit? How does one implement a
  JSO interface?

 interface MyModelObject {
   String getFoo();
   void setFoo(String foo);
 }

 class MyModelObjectImpl extends JavaScriptObject implements
 MyModelObject {
   protected MyModelObjectImpl() { }
   public final native String getFoo() /*-{ return this.foo; }-*/;
   public final native void setFoo(String foo) /*-{ this.foo = foo; }-
 */;
 }

 There's really nothing special, but the interface cannot be
 implemented by more than one JSO.

 I then do:
 interface MyService extends RemoteService {
   MyModelObject get();
 }
 @ImplementedBy(MyServiceAsyncImpl.class)
 interface MyServiceAsync {
  void get(AsyncCallbackMyModelObject callback);
 }

 implemented as:
 class MyServiceAsyncImpl implements MyServiceAsync {
   public void get(AsyncCallbackMyModelObject callback) {
  // create a RequestBuilder, and in the
 RequestCallback::onResponceReceived, parse the response
 (JsonUtils.unsafeEval for instance) into a MyModelObjectImpl and pass
 it to the callback.onSuccess()
   }
 }

 --

 You received 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: Simple Label+TextBox combo

2009-12-02 Thread Yozons Support on Gmail
Okay, the CSS is really nice since I can control the width so easily.  It
works creat, so thanks for the tip.

Is there no Label-like widget that emits a label tag in GWT?  I see that
the RadioButton does it.

It seems very easy for me to make a Composite widget that is composed of
these two objects since I use them repeatedly.

Is there a way to override the HTML emitted (or the DOM updates done) for
the Label so I could use a label tag, and then perhaps use the auto-unique
id feature if the TextBox field is not otherwise set with an id so that the
label would point to it and the textbox would use it?  How hard is this to
do?  Is the process to try to copy a Widget like RadioButton as my new
object that emits the label tags for my input field, or is there a more
GWT-approved way to create such a widget for my needs?

--

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




What does Unknown argument: -style mean?

2009-12-02 Thread Rob Tanner
In order to solve another problem, it was recommended that I switch to
GWT 2.0RC2 (I was running 1.7.1).  I downloaded both the toolkit and
the Eclipse plugin and followed the instruction, including a fresh
Eclipse install.  I tried running my application and got the Unknown
argument: -style error.  So just to be safe a created a new
application using 2.0RC2 and copy all my java files over.  I try
running that and same error.  Here's a bit more detail:

Unknown argument: -style
Google Web Toolkit 2.0.0-rc2
DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
level] [-gen dir] [-codeServerPort port-number | auto] [-server
servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-
workDir dir] module[s]


-style is not something that I added to the app's run configuration
so I'm at a loss here.  Any ideas?

-- Rob

--

You received 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: css file location

2009-12-02 Thread Yozons Support on Gmail
So, let's say your project base is com.company.gwt.

Your project GWT file should be located in:

src/com/company/gwt/mymodule.gwt.xml

and your CSS is located

src/com/company/gwt/public/Project.css

and your GWT file contains:

stylesheet src=Project.css/

and your HTML base page has no attempt to include the stylesheet itself.
And you should have no public tag in your gwt.xml, otherwise you can put
it the folder it specifies instead of the default 'public'.

You should see that when you save the Project.css, a copy should be
automatically put into your war area like:

war/com.company.gwt/Project.css

Of course, if your gwt.xml has a module rename-to='mymodule'/, then this
would be:

war/mymodule/Project.css

That should work unless I'm missing something and presume your code is
otherwise compiling correctly and reporting no errors, 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: What does Unknown argument: -style mean?

2009-12-02 Thread Yozons Support on Gmail
It really sounds like your project is not using the 2.0RC2 compiler.  Double
check the eclipse project properties for the Google-Web Toolkit.  Then
check the Java Build Path shows under the Libraries tab your GWT SDK that's
also 2.0RC2.  Not sure otherwise...

--

You received 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: What does Unknown argument: -style mean?

2009-12-02 Thread Rob Tanner
I think I already checked more than once, but checking again never
hurts.  Everything points to 2.0RC2.


On Dec 2, 3:36 pm, Yozons Support on Gmail yoz...@gmail.com wrote:
 It really sounds like your project is not using the 2.0RC2 compiler.  Double
 check the eclipse project properties for the Google-Web Toolkit.  Then
 check the Java Build Path shows under the Libraries tab your GWT SDK that's
 also 2.0RC2.  Not sure otherwise...

--

You received 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: JSON - When to use JSONParser and when JavaScript object

2009-12-02 Thread Thomas Broyer


On 2 déc, 23:52, Jeff Chimene jchim...@gmail.com wrote:
 Hi Thomas,

 I had stumbled upon this solution. However, you have an additional detail I
 don't understand: The split between
 interface MyModelObject
 and
 class MyModelObjectImpl extends JavaScriptObject implements MyModelObject

 What advantage does this gain? I think it has something to do w/. DI or
 testing, but I cannot see why one wouldn't do
 void get(AsyncCallbackMyModelObjectImpl callback);

 i.e. don't use an interface, just do all templating via the class?

If I'd do this, then I'd be breaking the assumption that my RPC
interface could be implemented as a real GWT-RPC, because I'd be
exposing an implementation detail (MyModelObjectImpl extends
JavaScriptObject, which means it cannot be used on the server side, so
this cannot be GWT-RPC but only an attempt at making something looking
like GWT-RPC).

The idea is that if I want to use GWT-RPC instead of my own
implementation, it won't break the code using the service.

 Also, I
 see you're using @ImplementedBy. How does this differ from
 bind(new TypeLiteralSessionReaderTxnSession()
 {}).to(MockSessionReader.class);

It's equivalent to bind(MyServiceAsync.class).to
(MyServiceAsyncImpl.class) *except* that:
 - because it's not explicit it's a by default binding  (aka JIT
binding), which means that:
   - it doesn't require a GIN module (my app is composed of several
GWT modules, so I'd have my application-level GIN module –injector
actually– to inherit the GIN modules of all inherited GWT module)
   - it can be overridden by an explicit binding in a GIN module (we
build sample apps to allow manual testing of the whole MVP –
including the real view that'll be used in the app–, with sample
service implementations that don't do any network call but instead
return sample data that ideally cover all special cases that we could
find in the real later; without the need to have the data in a
database)
 - it's easier to maintain than an explicit binding in a GIN
module ;-)

 There is a redundancy in the above that I haven't figured out how to factor
 out. Ideally, it should be either
 bind(new TypeLiteralReaderTxnSession() {}).to(MockSessionReader.class);
 or
 bind(new TypeLiteralSessionTxnReader() {}).to(MockSessionReader.class);

I'm sorry, I don't understand: what are reader and session here?
why is this using TypeLiteral?

The @ImplementedBy is on the MyServiceAsync interface, not the
AsyncCallback. The AsyncCallback is never injected by DI, I cannot see
a use case for it (would you DI your event handlers?), it's generally
implemented as an anonymous nested class, which also means it's
explicitly instantiated where it's defined, i.e. in the presenters.

--

You received 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: adding a resource file in Eclipse

2009-12-02 Thread Thomas Broyer


On 2 déc, 18:45, Vontina Alexa vont...@gmail.com wrote:
 I am going through the GWT tutorial and in the Internationalization
 section. I am fairly new to Eclipse and to Java development, so please
 excuse me if this question seems trivial. I am at the following
 instructions:

       At Enter or select the parent folder, select
       StockWatcher/src/com/google/gwt/sample/stockwatcher/client
       At File name, enter
       StockWatcherConstants_de.properties

 What is this 'At Enter' mean - and does someone know of more specific
 instructions on how to do this?

It reads better with quotes:
   At Enter or select the parent folder, select ...
   At File name, enter ...
i.e. in the field labelled Enter or select the parent folder,
select...

It this clearer?

--

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

2009-12-02 Thread FKereki
Personally, I'm authoring a book on GWT 2.0 for Addison Wesley; I
expect the Rough Cut to be available on Safari Books Online early next
year.

--

You received 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: update widget from inside async callback

2009-12-02 Thread Stephen
here is how my onSuccess function looks, in this example I'm simply
wanting to update a label's text during each loop iteration.  How
would this look like using the incremental command class?  Would
everything here go inside the incrementalcommand? Thanks!

public void onSuccess(MarkerDataSetMarkerData markerData) {
if (markerData != null) {
String numMarkers = 
Integer.toString(markerData.size());
int counter = 0;
lblProgress.setText(0 out of  + 
numMarkers);

pathset.getMapWrapper().setAllMarkers(markerData);
for (IteratorMarkerData iter = 
markerData.iterator();
iter.hasNext();) {
counter++;

lblProgress.setText(Integer.toString(counter) +  out of  +
numMarkers); // this is the label I want to update
MarkerData data = iter.next();
genericMarker.add(new 
SoundMarker(pathset.getMap(),data, true));

}
}

}




On Dec 2, 4:30 pm, Eric erjab...@gmail.com wrote:
 On Dec 2, 3:25 pm, Stephen manod...@gmail.com wrote: Hi,

  I'm making an async callback and in the onSuccess function I loop
  through a result set.  I would like to update a label or progressbar
  after each iteration of the loop.

 Use the IncrementalCommand class.  In your onSuccess method, take
 the loop you were writing and place it in a command:

 new AsyncCallbackArrayListString() {
     public void onFailure(final Throwable t){..}
     public void onSuccess(final ArrayListString list) {
          final int size = list.size();
         progressBar.setCount(size);  // Defined by you.
         DeferredCommand.addCommand(new IncrementalCommand() {
              private int index = 0;
              public boolean execute() {
                  handle(list.get(index++));  // Defined by you.
                  progressBar.progress();
                  return index  size;
         }
     }

 }

  Thanks,
  Stephen

 After each element in the list is handled, the progress bar is
 updated,
 and the command is paused, to resume in a millisecond if there are
 still
 items to handle.  This also prevents the browser from thinking that
 your
 application is in an indefinite loop and giving the user the chance to
 abort it.

 Take a progress bar from any convenient source.

 Respectfully,
 Eric Jablow

--

You received 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: DateTimeFormat bug in GWT? or my mistake?

2009-12-02 Thread Thomas Broyer

On 2 déc, 21:32, Chris christopher.burr...@gmail.com wrote:
 Hi

 I have a small question about GWT DateTimeFormat. I'm trying to
 display a date with the format:

  G (ie. 1AD, 100BC, 3000BC) etc.

 so i create my new Date and format it:
 Date d = new Date(-156805891175010L);
 new DateTimeFormat( G).format(d)

 Unfortunately I get 3000AD which is incorrect. I should be 3000BC.
 Looking at the date object, I can see it represented as B.C.E.
 3000-02-01T00:00:24.990Z which therefore looks alright...

 Am I doing something wrong? Is this a bug? Can anyone thing of a work
 around?

 It seems the DateTimeFormat gets the year right, but it comes to the
 Era, it does some crazy comparaison, which I don't really understand:

 date.getYear() = - JS_START_YEAR

 How is this ever supposed to work?
 So for 3000BC, I might get +1100 for Date.getYear() and yet it's in
 the BC ERA. Using the comparaison:

 -1100 = -1900 so we end up with AD

For 3000BC, getYear() returns -3000 - 1900 = -4900 (verified in
Chrome, IE8, FF3.5 and Opera 10.10).
-4900  -1900, so 'value' should be 0 in formatEra, so era should be
BC

(note: date.getYear() = -JS_START_YEAR is equivalent to date.getYear
() + JS_START_YEAR = 0, which is adjusting the date from Java's 1900
is 0 to 1900 really is 1900, but involves a bit less computations)

But it seems browsers are not very good when dealing with dates far in
the past (tested Chrome 3, FF3.5, IE8 and Opera 10.10):
 - IE8's toJSON() has a leading 0 in front of the minus sign
(0-2999-01-08T00:00:24Z)
 - IE8 and Opera's getYear() return -2999 instead of -4899
(fortunately, GWT uses getFullYear() which is OK in all four tested
browsers)
 - Chrome and FF3.5 are unable to parse negative years from strings
(new Date(d.toString()) is an invalid date, Date.parse(d.toString())
returns null)
 - Opera mistakenly ignores years before 1000 when parsing strings,
and substitutes the current year (new Date(Thu, Jan 08 -2999 00:00:24
GMT).toUTCString() returns Thu, Jan 08 2009 00:00:24 GMT)
 - IE8 uses the B.C. annotation to denote negative years in toString
() and toUTCString(), and it will only parse years as negative if
using this notation too (-2000 will be parsed as 2000, whereas
2000 BC will be parsed as 2000 B.C.)

--

You received 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: Simple Label+TextBox combo

2009-12-02 Thread Open eSignForms
I have tried to create my own LabelTextBox by subclassing TextBox, but
I'm not sure how to trick the widget so that when it's added, say to a
VerticalPanel, it actually adds my own span element that contains the
label element and the TextBox.getElement() (an InputElement) so that
they all go together.

I can create the span and put the elements inside, but when I add my
widget, only the TextBox's InputElement is actually in the DOM, so
clearly I'm not doing it right using:

SpanElement spanElem;
LabelElement labelElem;
InputElement inputElem;

public LabelTextBox(String labelText, boolean labelIsHtml, String
className)
{
super(); // creates the TextBox

inputElem = getElement().cast();

spanElem = Document.get().createSpanElement();
spanElem.setClassName(className);

labelElem = Document.get().createLabelElement();
if ( labelIsHtml )
labelElem.setInnerHTML(labelText);
else
labelElem.setInnerText(labelText);

String uid = DOM.createUniqueId();
setId(uid);

spanElem.appendChild(labelElem);
spanElem.appendChild(inputElem);
}

public void setId(String id)
{
labelElem.setHtmlFor(id);
inputElem.setId(id);
}

--

You received 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: JSON - When to use JSONParser and when JavaScript object

2009-12-02 Thread Jeff Chimene
On Wed, Dec 2, 2009 at 4:48 PM, Thomas Broyer t.bro...@gmail.com wrote:



 On 2 déc, 23:52, Jeff Chimene jchim...@gmail.com wrote:
  Hi Thomas,
 
  I had stumbled upon this solution. However, you have an additional detail
 I
  don't understand: The split between
  interface MyModelObject
  and
  class MyModelObjectImpl extends JavaScriptObject implements MyModelObject
 
  What advantage does this gain? I think it has something to do w/. DI or
  testing, but I cannot see why one wouldn't do
  void get(AsyncCallbackMyModelObjectImpl callback);
 
  i.e. don't use an interface, just do all templating via the class?

 If I'd do this, then I'd be breaking the assumption that my RPC
 interface could be implemented as a real GWT-RPC, because I'd be
 exposing an implementation detail (MyModelObjectImpl extends
 JavaScriptObject, which means it cannot be used on the server side, so
 this cannot be GWT-RPC but only an attempt at making something looking
 like GWT-RPC).

 The idea is that if I want to use GWT-RPC instead of my own
 implementation, it won't break the code using the service.


OK. I keep forgetting about Java RPC.



  Also, I
  see you're using @ImplementedBy. How does this differ from
  bind(new TypeLiteralSessionReaderTxnSession()
  {}).to(MockSessionReader.class);

 It's equivalent to bind(MyServiceAsync.class).to
 (MyServiceAsyncImpl.class) *except* that:
  - because it's not explicit it's a by default binding  (aka JIT
 binding), which means that:
   - it doesn't require a GIN module (my app is composed of several
 GWT modules, so I'd have my application-level GIN module –injector
 actually– to inherit the GIN modules of all inherited GWT module)
   - it can be overridden by an explicit binding in a GIN module (we
 build sample apps to allow manual testing of the whole MVP –
 including the real view that'll be used in the app–, with sample
 service implementations that don't do any network call but instead
 return sample data that ideally cover all special cases that we could
 find in the real later; without the need to have the data in a
 database)
  - it's easier to maintain than an explicit binding in a GIN
 module ;-)


OK, I think I get that line of reasoning. I've committed to two GIN modules.
However, I do like the JIT binding aspect.



  There is a redundancy in the above that I haven't figured out how to
 factor
  out. Ideally, it should be either
  bind(new TypeLiteralReaderTxnSession()
 {}).to(MockSessionReader.class);
  or
  bind(new TypeLiteralSessionTxnReader()
 {}).to(MockSessionReader.class);

 I'm sorry, I don't understand: what are reader and session here?
 why is this using TypeLiteral?


The goal with TypeLiteral is to color an interface so that I can have one
interface describing all HTTP GET requests (ReaderTxn), and another
interface describing all HTTP PUT requests (WriterTxn). The color should
give GIN the information it needs to bind the implementation based on the
data type (aka color)

bind(new TypeLiteralReaderTxnSession() {}).to(MockSessionReader.class);
bind(new TypeLiteralReaderTxnAuthorization()
{}).to(MockAuthorizationReader.class);

I tried something like

public interface ReaderTxn? {
   public getSession (String sessionId);

  public getAuthorization (String username, String password);
}

But, as you know, the Session handler must implement the Authorization get()
and vice versa.

So now I just bury each of the above get() methods  in an implementation of
the data-type specific interface. An extension of the abstract Transaction
class handles the rest of the HTTP machinery:

public class AuthenticateReader extends Transaction implements
AuthenticateReaderTxn

This is probably clear as mud.

Anyway, I'm back to SessionReaderTxn and AuthorizationReaderTxn, i.e.
hard-coding the data type in the class name. The Type Literal is a holdover
from an earlier attempt to have a one routine handle multiple types.


 The @ImplementedBy is on the MyServiceAsync interface, not the
 AsyncCallback. The AsyncCallback is never injected by DI, I cannot see
 a use case for it (would you DI your event handlers?), it's generally
 implemented as an anonymous nested class, which also means it's
 explicitly instantiated where it's defined, i.e. in the presenters.


I see what you're doing (in the hazy sense of recognizing an image rippling
in a fun-house mirror).  I'll have to try this with one of the members of
the model package


 --

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

Is it possible to seamlessly display an ajax spinner for every GWT RPC call?

2009-12-02 Thread tin
Hi everyone,

I have a GWT application that uses RPC calls heavily. I would like to
display a spinner icon whenever a call is in progress. It is easy
enough to display the icon, but I want to do it seamlessly in one
place so I don't have to explicitly hide and show the icon for each
call.

I guess I am looking for something similar to jQuery's ajaxStart and
ajaxStop events.

Has anyone done something like this before?

Cheers,

Tin

--

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




Why Label widget chose to use div instead of label?

2009-12-02 Thread Open eSignForms
Does anybody know the history as to why GWT's Label widget uses a
div instead of a label tag?

The label tag allows the label to be tied to another element, such as
the input tag, for accessibility, yet that seems lost with the Label
widget.

Seems like Label was a misnomer and should have been called Text to
parallel HTML.

As for myself, I essentially copied the GWT Label widget source to
make my own Label that creates a label instead.  It's below if
anybody cares.  I removed all of the deprecated stuff from GWT Label
since it's a new class.  And I don't set the default style to be gwt-
Label since that would surely match more than expected and use esf-
Label just for keeping it in sync.  And because it's a label tag, the
label can also be HTML or Text.

package com.esignforms.open.gwt.client.widget;

import com.google.gwt.dom.client.Document;
import com.google.gwt.dom.client.Element;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.HasAllMouseHandlers;
import com.google.gwt.event.dom.client.HasClickHandlers;
import com.google.gwt.event.dom.client.MouseDownEvent;
import com.google.gwt.event.dom.client.MouseDownHandler;
import com.google.gwt.event.dom.client.MouseMoveEvent;
import com.google.gwt.event.dom.client.MouseMoveHandler;
import com.google.gwt.event.dom.client.MouseOutEvent;
import com.google.gwt.event.dom.client.MouseOutHandler;
import com.google.gwt.event.dom.client.MouseOverEvent;
import com.google.gwt.event.dom.client.MouseOverHandler;
import com.google.gwt.event.dom.client.MouseUpEvent;
import com.google.gwt.event.dom.client.MouseUpHandler;
import com.google.gwt.event.dom.client.MouseWheelEvent;
import com.google.gwt.event.dom.client.MouseWheelHandler;
import com.google.gwt.event.shared.HandlerRegistration;
import com.google.gwt.i18n.client.BidiUtils;
import com.google.gwt.i18n.client.HasDirection;
import com.google.gwt.user.client.ui.HasHorizontalAlignment;
import com.google.gwt.user.client.ui.HasText;
import com.google.gwt.user.client.ui.HasWordWrap;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;

/**
 * A widget that creates a lt;labelgt; tag.  This code was based on
the Google com.google.gwt.user.client.ui.Label widget that
 * creates a DIV/SPAN, with all of the deprecated code removed.
 */
public class Label
extends Widget
implements HasHorizontalAlignment, HasText, HasWordWrap,
HasDirection, HasClickHandlers, HasAllMouseHandlers
{

  /**
   * Creates a Label widget that wraps an existing lt;divgt; or
lt;spangt;
   * element.
   *
   * This element must already be attached to the document. If the
element is
   * removed from the document, you must call
   * {...@link RootPanel#detachNow(Widget)}.
   *
   * @param element the element to be wrapped
   */
  public static Label wrap(Element element)
  {
// Assert that the element is attached.
assert Document.get().getBody().isOrHasChild(element);

Label label = new Label(element);

// Mark it attached and remember it for cleanup.
label.onAttach();
RootPanel.detachOnWindowClose(label);

return label;
  }

  private HorizontalAlignmentConstant horzAlign;

  /**
   * Creates an empty label.
   */
  public Label() {
setElement(Document.get().createLabelElement());
setStyleName(esf-Label);
  }

  /**
   * Creates a label with the specified text.
   *
   * @param text the new label's text
   */
  public Label(String text) {
this();
setText(text);
  }

  /**
   * Creates a label with the specified text.
   *
   * @param text the new label's text
   * @param wordWrap codefalse/code to disable word wrapping
   */
  public Label(String text, boolean wordWrap) {
this(text);
setWordWrap(wordWrap);
  }

  /**
   * This constructor may be used by subclasses to explicitly use an
existing
   * element. This element must be a lt;labelgt; element.
   *
   * @param element the element to be used
   */
  protected Label(Element element) {
setElement(element);
assert element.getTagName().equalsIgnoreCase(label);
  }

  public HandlerRegistration addClickHandler(ClickHandler handler) {
return addDomHandler(handler, ClickEvent.getType());
  }

  public HandlerRegistration addMouseDownHandler(MouseDownHandler
handler) {
return addDomHandler(handler, MouseDownEvent.getType());
  }

  public HandlerRegistration addMouseMoveHandler(MouseMoveHandler
handler) {
return addDomHandler(handler, MouseMoveEvent.getType());
  }

  public HandlerRegistration addMouseOutHandler(MouseOutHandler
handler) {
return addDomHandler(handler, MouseOutEvent.getType());
  }

  public HandlerRegistration addMouseOverHandler(MouseOverHandler
handler) {
return addDomHandler(handler, MouseOverEvent.getType());
  }

  public HandlerRegistration addMouseUpHandler(MouseUpHandler handler)
{
return addDomHandler(handler, MouseUpEvent.getType());
  }

  public 

Re: Why Label widget chose to use div instead of label?

2009-12-02 Thread Yozons Support on Gmail
I forgot the methods for setting the for attribute id!  I used the
setHtmlFor() method name to match the dom LabelElement class (my own pref
would have been setFor(id)).

  /**
   * Sets the attribute for on the label tag to be the specified id.
   * @param id the String id to use.
   */
  public void setHtmlFor( String id )
  {
  ((LabelElement)getElement().cast()).setHtmlFor(id);
  }

  /**
   * Sets the attribute for on the label tag to be the id of the specified
widget.
   * @param forWidget the Widget that should have an id.  Note that if
forWidget does not have
   * an id, both it and the label for will be set to a unique id.
   */
  public void setHtmlFor( Widget forWidget )
  {
  assert forWidget != null;
  String wid = forWidget.getElement().getId();
  if ( wid == null || .equals(wid) )
  {
  wid = DOM.createUniqueId();
  forWidget.getElement().setId(wid);
  }
  setHtmlFor(wid);
  }

--

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




LabelTextBox creates compact label and input tags

2009-12-02 Thread Open eSignForms
I have created a LabelTextBox widget that emits pretty streamlined
HTML/DOM like the following:

div class=LabelTextBox
label class=esf-Label for=gwt-uid-44ESF Name/label
input id=gwt-uid-44 class=gwt-TextBox required type=text
tabindex=0/
/div

The LabelTextBox uses a FlowPanel which results in the div with the
specified class to style it.

It emits a label tag (using the Label widget I posted earlier) with
the 'for' being the id of the input tag, and if none is set, uses a
unique gwt-generated id.

And it emits a input using a regular TextBox widget.

Then I use CSS styling based on prior recommendation in this list to
allow them to be stacked or otherwise controlled, as well as the
default width of these input fields:

.LabelTextBox {
float: left;
width: 225px;
}
.LabelTextBox label {
 float: left;
 width: 225px;
 margin-left: 1px;
}
.LabelTextBox .gwt-TextBox {
 float: left;
 width: 225px;
}

If anybody is interested, here's the code I wrote for it (and I have a
similar one for LabelTextArea):

package com.esignforms.open.gwt.client.widget;

import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.TextBox;

/**
 * A label and input type=text that essentially is a TextBox,
with an added Label, but one that emits a label tag instead of
 * the GWT Label.
 */
public class LabelTextBox
extends Composite
{
com.esignforms.open.gwt.client.widget.Label label;
TextBox textBox;
FlowPanel panel;

public LabelTextBox(String labelText)
{
this(labelText,false);
}
public LabelTextBox(String labelText, boolean labelIsHtml)
{
this(labelText,labelIsHtml,LabelTextBox);
}
public LabelTextBox(String labelText, boolean labelIsHtml, String
className)
{
label = new com.esignforms.open.gwt.client.widget.Label();
if ( labelIsHtml )
label.setHTML(labelText);
else
label.setText(labelText);

textBox = new TextBox();

panel = new FlowPanel();
panel.setStyleName(className);

String uid = DOM.createUniqueId();
setId(uid);

panel.add(label);
panel.add(textBox);

initWidget(panel);
}

public void setId(String id)
{
label.setHtmlFor(id);
textBox.getElement().setId(id);
}

public com.esignforms.open.gwt.client.widget.Label getLabel()
{
return label;
}

public TextBox getTextBox()
{
return textBox;
}

public boolean isEnabled()
{
return textBox.isEnabled();
}
public void setEnabled(boolean v)
{
textBox.setEnabled(v);
}

public String getValue()
{
return textBox.getValue();
}
public void setValue(String v)
{
textBox.setValue(v);
}

public void addStyleName(String v)
{
textBox.addStyleName(v);
}
}

--

You received 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: Is it possible to seamlessly display an ajax spinner for every GWT RPC call?

2009-12-02 Thread Mohamed Mansour
Why wont you implement a decorator interface that will decorate your
RPC calls? That way you can always hide/show your spinner icon for
each call without affecting your RPC code.

On Dec 2, 9:39 pm, tin tin.pavli...@gmail.com wrote:
 Hi everyone,

 I have a GWT application that uses RPC calls heavily. I would like to
 display a spinner icon whenever a call is in progress. It is easy
 enough to display the icon, but I want to do it seamlessly in one
 place so I don't have to explicitly hide and show the icon for each
 call.

 I guess I am looking for something similar to jQuery's ajaxStart and
 ajaxStop events.

 Has anyone done something like this before?

 Cheers,

 Tin

--

You received 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: Is it possible to seamlessly display an ajax spinner for every GWT RPC call?

2009-12-02 Thread Mohamed Mansour
When I mean decorator, I meant to follow the decorator pattern:
http://en.wikipedia.org/wiki/Decorator_pattern


On Dec 2, 11:53 pm, Mohamed Mansour m0.interact...@gmail.com wrote:
 Why wont you implement a decorator interface that will decorate your
 RPC calls? That way you can always hide/show your spinner icon for
 each call without affecting your RPC code.

 On Dec 2, 9:39 pm, tin tin.pavli...@gmail.com wrote:



  Hi everyone,

  I have a GWT application that uses RPC calls heavily. I would like to
  display a spinner icon whenever a call is in progress. It is easy
  enough to display the icon, but I want to do it seamlessly in one
  place so I don't have to explicitly hide and show the icon for each
  call.

  I guess I am looking for something similar to jQuery's ajaxStart and
  ajaxStop events.

  Has anyone done something like this before?

  Cheers,

  Tin

--

You received 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: Where should I put images

2009-12-02 Thread jax
But how would I do this without using Bundles...surely it can be done.

I tried adding public path=com.example.myapp.listeditor.images/

But my application is unable to see the images

On Dec 2, 10:43 pm, mariyan nenchev nenchev.mari...@gmail.com wrote:
 Try image or client bundles

--

You received 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 1.7 public folder location

2009-12-02 Thread jax
I am running 1.7 and after some reading online people keep referencing
the public folder.  I don't have a public folder in my project...am
I meant to?  Has GWT changed the public folder?  I only have

com.example.myapp
com.example.myapp.client
com.example.myapp.server

--

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




Re: GWT 1.7 public folder location

2009-12-02 Thread Abdullah Shaikh
Hi Jax,

Even I am using 1.7 and there isn't any public folder, but the application
is working fine, I am new to GWT, I haven't used previous versions, may be
the structure got change in 1.7

Also same thing with 2.0 RC, so I guess it's not an issue.

Thanks,
Abdullah

On Thu, Dec 3, 2009 at 11:31 AM, jax jackma...@gmail.com wrote:

 I am running 1.7 and after some reading online people keep referencing
 the public folder.  I don't have a public folder in my project...am
 I meant to?  Has GWT changed the public folder?  I only have

 com.example.myapp
 com.example.myapp.client
 com.example.myapp.server

 --

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




--

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




Re: [gwt-contrib] GWT RC2: TabPanelLayout -- no supporting CSS?

2009-12-02 Thread BobV
 [...@rjrjr, bobv: Is there some easy way to put plain, unobfuscated CSS rules
 in a .ui.xml file?]

Yes.  Declare those class selectors to be @external in the CSS block.

@external gwt-TabLayoutPanelTabs gwt-TabLayoutPanelTabInner;

Now that ui:style allows users to specify a src attribute as well as
inline styles, we should provide a CSS file that has @external
declarations for all of the gwt- styles.  Alternatively, the @external
syntax could be extended with something like @external gwt-*;

-- 
Bob Vawter
Google Web Toolkit Team

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


Re: [gwt-contrib] GWT RC2: TabPanelLayout -- no supporting CSS?

2009-12-02 Thread Stuart Moffatt
Thanks. Will give @external a try.

Stuart


On Wed, Dec 2, 2009 at 8:59 AM, BobV b...@google.com wrote:
 [...@rjrjr, bobv: Is there some easy way to put plain, unobfuscated CSS rules
 in a .ui.xml file?]

 Yes.  Declare those class selectors to be @external in the CSS block.

 @external gwt-TabLayoutPanelTabs gwt-TabLayoutPanelTabInner;

 Now that ui:style allows users to specify a src attribute as well as
 inline styles, we should provide a CSS file that has @external
 declarations for all of the gwt- styles.  Alternatively, the @external
 syntax could be extended with something like @external gwt-*;

 --
 Bob Vawter
 Google Web Toolkit Team


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


Re: [gwt-contrib] GWT RC2: TabPanelLayout -- no supporting CSS?

2009-12-02 Thread Ray Ryan
The @external mention is just the thing for that CSS page.

On Dec 2, 2009 5:59 AM, BobV b...@google.com wrote:

 [...@rjrjr, bobv: Is there some easy way to put plain, unobfuscated CSS rules
 in a .ui.xml file?]
Yes.  Declare those class selectors to be @external in the CSS block.

@external gwt-TabLayoutPanelTabs gwt-TabLayoutPanelTabInner;

Now that ui:style allows users to specify a src attribute as well as
inline styles, we should provide a CSS file that has @external
declarations for all of the gwt- styles.  Alternatively, the @external
syntax could be extended with something like @external gwt-*;

--
Bob Vawter
Google Web Toolkit Team

--

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

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

Re: [gwt-contrib] GWT RC2: TabPanelLayout -- no supporting CSS?

2009-12-02 Thread Ray Ryan
I don't think we should thaw 2.0 for the externalized CSS file (though it's
tempting), but it would be a good add for the downloads page. Or a tool that
externalizes CSS files, similar to the one that generates java interfaces
from them.

On Dec 2, 2009 5:59 AM, BobV b...@google.com wrote:

 [...@rjrjr, bobv: Is there some easy way to put plain, unobfuscated CSS rules
 in a .ui.xml file?]
Yes.  Declare those class selectors to be @external in the CSS block.

@external gwt-TabLayoutPanelTabs gwt-TabLayoutPanelTabInner;

Now that ui:style allows users to specify a src attribute as well as
inline styles, we should provide a CSS file that has @external
declarations for all of the gwt- styles.  Alternatively, the @external
syntax could be extended with something like @external gwt-*;

--
Bob Vawter
Google Web Toolkit Team

--

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

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

[gwt-contrib] Re: Make UiBinder handle custom subclasses of DialogBox

2009-12-02 Thread Ray Ryan
They can provide a constructor with @UiConstructor on it.

On Wed, Dec 2, 2009 at 6:11 AM, robertvaw...@google.com wrote:

 How can custom subclasses respond to autoHide and modal attributes?


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


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

[gwt-contrib] Re: Pass IE Plugin installer version into build file

2009-12-02 Thread jlabanca
committed as r7230

Did not specify the date on the version per our email conversation.

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

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


[gwt-contrib] [google-web-toolkit] r7230 committed - Updating the build script for the IE dev mode plugin to require a vers...

2009-12-02 Thread codesite-noreply
Revision: 7230
Author: jlaba...@google.com
Date: Wed Dec  2 08:16:54 2009
Log: Updating the build script for the IE dev mode plugin to require a  
version number.  Also adding useful fail messages when Wix is not installed.

Patch by: jlabanca
Review by: scottb


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

Modified:
  /trunk/plugins/ie/installer/build.xml
  /trunk/plugins/ie/installer/installer.wxs.xml

===
--- /trunk/plugins/ie/installer/build.xml   Fri Nov 20 09:49:22 2009
+++ /trunk/plugins/ie/installer/build.xml   Wed Dec  2 08:16:54 2009
@@ -13,6 +13,18 @@
property name=wix.log location=${project.build}/wix.log /
property name=installer.name value=gwt-dev-plugin.msi /

+  !-- Verify that this is a windows system. --
+  fail unless=build.host.iswindows
+   message=Installer can only be built on a Windows system. /
+
+  !-- Verify that wix is installed. --
+  property.ensure name=wix.bin.exists location=${wix.bin}
+   message=You must install Wix (http://wix.sourceforge.net) to build  
the installer. /
+
+  !-- Verify that the version has been specified. --
+  fail unless=installer.version
+   message=You must specify installer.version parameter in the form  
major.minor.build.revision (ex. -Dinstaller.version=0.9.1234.0) /
+
target name=build description=Build the installer
  mkdir dir=${project.build} /

@@ -51,6 +63,7 @@
append=true
arg line=-out ${project.build}/ /
arg line=-dSourceDir=..\\ /
+  arg line=-dversion=${installer.version} /
arg line=${project.build}/oophm.wxs.xml /
arg line=installer.wxs.xml /
  /exec
===
--- /trunk/plugins/ie/installer/installer.wxs.xml   Mon Nov 23 16:38:01 2009
+++ /trunk/plugins/ie/installer/installer.wxs.xml   Wed Dec  2 08:16:54 2009
@@ -4,7 +4,6 @@

!-- Variables. --
?define appName = Google Web Toolkit Developer Plugin for IE ?
-  ?define version = 0.9.7135.0 ?
?define upgradeCode = 9a5e649a-ec63-4c7d-99bf-75adb345e7e5 ?
?define updateRegKey  
= SOFTWARE\Google\Update\Clients\{$(var.upgradeCode)} ?
?define gwtRegKey = SOFTWARE\Google\Google Web Toolkit\Installer ?

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


[gwt-contrib] [google-web-toolkit] r7231 committed - tr...@7230 was merged into this branch...

2009-12-02 Thread codesite-noreply
Revision: 7231
Author: jlaba...@google.com
Date: Wed Dec  2 08:20:40 2009
Log: tr...@7230 was merged into this branch
  Build file for IE plugin now requires a version parameter.
 svn merge --ignore-ancestry -c7230  
https://google-web-toolkit.googlecode.com/svn/trunk/ .

Patch by: jlabanca


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

Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/plugins/ie/installer/build.xml
  /releases/2.0/plugins/ie/installer/installer.wxs.xml

===
--- /releases/2.0/branch-info.txt   Tue Dec  1 22:03:38 2009
+++ /releases/2.0/branch-info.txt   Wed Dec  2 08:20:40 2009
@@ -1152,3 +1152,7 @@
   Fixing TabLayoutPanel tab stacking (float - cssFloat).
  svn merge --ignore-ancestry -c7228  
https://google-web-toolkit.googlecode.com/svn/trunk/ .

+tr...@7230 was merged into this branch
+ Build file for IE plugin now requires a version parameter.
+svn merge --ignore-ancestry -c7230  
https://google-web-toolkit.googlecode.com/svn/trunk/ .
+
===
--- /releases/2.0/plugins/ie/installer/build.xmlFri Nov 20 09:51:31 2009
+++ /releases/2.0/plugins/ie/installer/build.xmlWed Dec  2 08:20:40 2009
@@ -13,6 +13,18 @@
property name=wix.log location=${project.build}/wix.log /
property name=installer.name value=gwt-dev-plugin.msi /

+  !-- Verify that this is a windows system. --
+  fail unless=build.host.iswindows
+   message=Installer can only be built on a Windows system. /
+
+  !-- Verify that wix is installed. --
+  property.ensure name=wix.bin.exists location=${wix.bin}
+   message=You must install Wix (http://wix.sourceforge.net) to build  
the installer. /
+
+  !-- Verify that the version has been specified. --
+  fail unless=installer.version
+   message=You must specify installer.version parameter in the form  
major.minor.build.revision (ex. -Dinstaller.version=0.9.1234.0) /
+
target name=build description=Build the installer
  mkdir dir=${project.build} /

@@ -51,6 +63,7 @@
append=true
arg line=-out ${project.build}/ /
arg line=-dSourceDir=..\\ /
+  arg line=-dversion=${installer.version} /
arg line=${project.build}/oophm.wxs.xml /
arg line=installer.wxs.xml /
  /exec
===
--- /releases/2.0/plugins/ie/installer/installer.wxs.xmlFri Nov 20  
09:51:31 2009
+++ /releases/2.0/plugins/ie/installer/installer.wxs.xmlWed Dec  2  
08:20:40 2009
@@ -4,7 +4,6 @@

!-- Variables. --
?define appName = Google Web Toolkit Developer Plugin for IE ?
-  ?define version = 0.9.2.0 ?
?define upgradeCode = 9a5e649a-ec63-4c7d-99bf-75adb345e7e5 ?
?define updateRegKey  
= SOFTWARE\Google\Update\Clients\{$(var.upgradeCode)} ?
?define gwtRegKey = SOFTWARE\Google\Google Web Toolkit\Installer ?

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


[gwt-contrib] Remove image.onload fix from release notes

2009-12-02 Thread jlabanca
Reviewers: scottb,

Description:
The image.onload fix was reverted from the gwt 2.0 branch because it
caused HtmlUnit errors, but the release notes have not been updated.

Fix:

Update the release notes.

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

Affected files:
   distro-source/core/src/release_notes.html


Index: distro-source/core/src/release_notes.html
===
--- distro-source/core/src/release_notes.html   (revision 7229)
+++ distro-source/core/src/release_notes.html   (working copy)
@@ -129,10 +129,6 @@
h3Fixed Issues/h3
ul
  li
-  Image.onload event does not fire on Internet Explorer when image  
is in cache
-  (a  
href=http://code.google.com/p/google-web-toolkit/issues/detail?id=863;#863/a)
-/li
-li
In UiBinder codelt;ui:stylegt;/code blocks, css class  
names may contain dashes.
  /li
  li


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


[gwt-contrib] Re: Remove image.onload fix from release notes

2009-12-02 Thread Scott Blum
LGTM.  Don't forget to change the status on Issue 863 to reflect its
notfixedness.

On Wed, Dec 2, 2009 at 11:25 AM, jlaba...@google.com wrote:

 Reviewers: scottb,

 Description:
 The image.onload fix was reverted from the gwt 2.0 branch because it
 caused HtmlUnit errors, but the release notes have not been updated.

 Fix:
 
 Update the release notes.

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

 Affected files:
  distro-source/core/src/release_notes.html


 Index: distro-source/core/src/release_notes.html
 ===
 --- distro-source/core/src/release_notes.html   (revision 7229)
 +++ distro-source/core/src/release_notes.html   (working copy)
 @@ -129,10 +129,6 @@
   h3Fixed Issues/h3
   ul
 li
 -  Image.onload event does not fire on Internet Explorer when image
 is in cache
 -  (a href=
 http://code.google.com/p/google-web-toolkit/issues/detail?id=863
 #863/a)
 -/li
 -li
   In UiBinder codelt;ui:stylegt;/code blocks, css class names
 may contain dashes.
 /li
 li




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

[gwt-contrib] Re: Remove image.onload fix from release notes

2009-12-02 Thread John LaBanca
I marked it as FixedNotReleased for NextRelease instead of gwt 2.0 and added
a comment to that effect.

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


On Wed, Dec 2, 2009 at 11:42 AM, Scott Blum sco...@google.com wrote:

 LGTM.  Don't forget to change the status on Issue 863 to reflect its
 notfixedness.

 On Wed, Dec 2, 2009 at 11:25 AM, jlaba...@google.com wrote:

 Reviewers: scottb,

 Description:
 The image.onload fix was reverted from the gwt 2.0 branch because it
 caused HtmlUnit errors, but the release notes have not been updated.

 Fix:
 
 Update the release notes.

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

 Affected files:
  distro-source/core/src/release_notes.html


 Index: distro-source/core/src/release_notes.html
 ===
 --- distro-source/core/src/release_notes.html   (revision 7229)
 +++ distro-source/core/src/release_notes.html   (working copy)
 @@ -129,10 +129,6 @@
   h3Fixed Issues/h3
   ul
 li
 -  Image.onload event does not fire on Internet Explorer when
 image is in cache
 -  (a href=
 http://code.google.com/p/google-web-toolkit/issues/detail?id=863
 #863/a)
 -/li
 -li
   In UiBinder codelt;ui:stylegt;/code blocks, css class
 names may contain dashes.
 /li
 li





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

[gwt-contrib] [google-web-toolkit] r7232 committed - Removing image.onload fix from gwt 2.0 release notes because it was re...

2009-12-02 Thread codesite-noreply
Revision: 7232
Author: jlaba...@google.com
Date: Wed Dec  2 08:45:48 2009
Log: Removing image.onload fix from gwt 2.0 release notes because it was  
reverted.

Patch by: jlabanca
Review by: scottb


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

Modified:
  /trunk/distro-source/core/src/release_notes.html

===
--- /trunk/distro-source/core/src/release_notes.htmlTue Nov 24 20:27:08  
2009
+++ /trunk/distro-source/core/src/release_notes.htmlWed Dec  2 08:45:48  
2009
@@ -129,10 +129,6 @@
h3Fixed Issues/h3
ul
  li
-  Image.onload event does not fire on Internet Explorer when image  
is in cache
-  (a  
href=http://code.google.com/p/google-web-toolkit/issues/detail?id=863;#863/a)
-/li
-li
In UiBinder codelt;ui:stylegt;/code blocks, css class  
names may contain dashes.
  /li
  li

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


Re: [gwt-contrib] Re: Remove image.onload fix from release notes

2009-12-02 Thread John Tamplin
On Wed, Dec 2, 2009 at 11:45 AM, John LaBanca jlaba...@google.com wrote:

 I marked it as FixedNotReleased for NextRelease instead of gwt 2.0 and
 added a comment to that effect.


I thought 2.0 was NextRelease -- shouldn't it be Planned instead?

-- 
John A. Tamplin
Software Engineer (GWT), Google

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

Re: [gwt-contrib] Re: Remove image.onload fix from release notes

2009-12-02 Thread John LaBanca
Moved to Planned

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


On Wed, Dec 2, 2009 at 11:48 AM, John Tamplin j...@google.com wrote:

 On Wed, Dec 2, 2009 at 11:45 AM, John LaBanca jlaba...@google.com wrote:

 I marked it as FixedNotReleased for NextRelease instead of gwt 2.0 and
 added a comment to that effect.


 I thought 2.0 was NextRelease -- shouldn't it be Planned instead?

 --
 John A. Tamplin
 Software Engineer (GWT), Google

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

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

[gwt-contrib] [google-web-toolkit] r7234 committed - Make UiBinder handle custom subclasses of DialogBox...

2009-12-02 Thread codesite-noreply
Revision: 7234
Author: rj...@google.com
Date: Wed Dec  2 10:02:31 2009
Log: Make UiBinder handle custom subclasses of DialogBox

Reviewed by bobv
http://code.google.com/p/google-web-toolkit/source/detail?r=7234

Added:
  /trunk/user/test/com/google/gwt/uibinder/test/client/FooDialog.java
Modified:
  /trunk/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java
  /trunk/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
   
/trunk/user/test/com/google/gwt/uibinder/elementparsers/DialogBoxParserTest.java
   
/trunk/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
  /trunk/user/test/com/google/gwt/uibinder/test/UiJavaResources.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
  /trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
--- /dev/null
+++ /trunk/user/test/com/google/gwt/uibinder/test/client/FooDialog.java Wed  
Dec  2 10:02:31 2009
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+package com.google.gwt.uibinder.test.client;
+
+import com.google.gwt.user.client.ui.DialogBox;
+
+/**
+ * A custom subclass of DialogBox, to prove we can use them.
+ */
+public class FooDialog extends DialogBox {
+  FooDialog() {
+super(false, false);
+  }
+}
===
---  
/trunk/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java 
 
Mon Nov  9 12:42:44 2009
+++  
/trunk/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java 
 
Wed Dec  2 10:02:31 2009
@@ -27,18 +27,15 @@
  public class DialogBoxParser implements ElementParser {
public void parse(XMLElement elem, String fieldName, JClassType type,
UiBinderWriter writer) throws UnableToCompleteException {
-
-String autoHide = elem.consumeBooleanAttribute(autoHide, false);
-String modal = elem.consumeBooleanAttribute(modal, true);
-
+
  String caption = null;
  String body = null;

  for (XMLElement child : elem.consumeChildElements()) {
if (caption.equals(child.getLocalName())) {
  if (caption != null) {
-  writer.die(In %s, may have only one %s:caption,
-  elem, elem.getPrefix());
+  writer.die(In %s, may have only one %s:caption, elem,
+  elem.getPrefix());
  }

  HtmlInterpreter interpreter =  
HtmlInterpreter.newInterpreterForUiObject(
@@ -53,12 +50,11 @@
writer.die(In %s, found non-widget %s, elem, child);
  }
  body = writer.parseElementToField(child);
- }
-}
-
-writer.setFieldInitializerAsConstructor(fieldName,
-writer.getOracle().findType(DialogBox.class.getCanonicalName()),
-autoHide, modal);
+  }
+}
+
+handleConstructorArgs(elem, fieldName, type, writer);
+
  if (caption != null) {
writer.addStatement(%s.setHTML(\%s\);, fieldName, caption);
  }
@@ -66,4 +62,22 @@
writer.addStatement(%s.setWidget(%s);, fieldName, body);
  }
}
-}
+
+  /**
+   * If this is DialogBox (not a subclass), parse constructor args
+   * and generate the constructor call. For subtypes do nothing.
+   */
+  private void handleConstructorArgs(XMLElement elem, String fieldName,
+  JClassType type, UiBinderWriter writer) throws  
UnableToCompleteException {
+boolean custom = !type.equals(writer.getOracle().findType(
+DialogBox.class.getCanonicalName()));
+if (!custom) {
+  String autoHide = elem.consumeBooleanAttribute(autoHide, false);
+  String modal = elem.consumeBooleanAttribute(modal, true);
+
+  writer.setFieldInitializerAsConstructor(fieldName,
+  writer.getOracle().findType(DialogBox.class.getCanonicalName()),
+  autoHide, modal);
+}
+  }
+}
===
--- /trunk/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java Wed Nov 
 
11 22:08:47 2009
+++ /trunk/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java Wed  
Dec  2 10:02:31 2009
@@ -42,6 +42,9 @@
// this will need to become a set
JClassType getAssignableType();

+  /**
+   * @return the custom initializer for this field, or null if it is not  
set
+   */
String getInitializer();

/**
===
---  

[gwt-contrib] Re: Make UiBinder handle custom subclasses of DialogBox

2009-12-02 Thread rjrjr
Committed r7234


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

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


[gwt-contrib] [google-web-toolkit] r7235 committed - Cherry picking trunk c7234 into 2009.11.20 snapshot....

2009-12-02 Thread codesite-noreply
Revision: 7235
Author: sco...@google.com
Date: Wed Dec  2 10:28:11 2009
Log: Cherry picking trunk c7234 into 2009.11.20 snapshot.

- Make UiBinder handle custom subclasses of DialogBox
http://code.google.com/p/google-web-toolkit/source/detail?r=7235

Added:
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/test/client/FooDialog.java
Modified:
   
/branches/snapshot-2009.11.20-r7061/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java
   
/branches/snapshot-2009.11.20-r7061/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/elementparsers/DialogBoxParserTest.java
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/elementparsers/ElementParserTester.java
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/test/UiJavaResources.java
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/test/client/UiBinderTest.java
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.java
   
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

===
--- /dev/null
+++  
/branches/snapshot-2009.11.20-r7061/user/test/com/google/gwt/uibinder/test/client/FooDialog.java
 
Wed Dec  2 10:28:11 2009
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+package com.google.gwt.uibinder.test.client;
+
+import com.google.gwt.user.client.ui.DialogBox;
+
+/**
+ * A custom subclass of DialogBox, to prove we can use them.
+ */
+public class FooDialog extends DialogBox {
+  FooDialog() {
+super(false, false);
+  }
+}
===
---  
/branches/snapshot-2009.11.20-r7061/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java
 
Mon Nov  9 12:42:44 2009
+++  
/branches/snapshot-2009.11.20-r7061/user/src/com/google/gwt/uibinder/elementparsers/DialogBoxParser.java
 
Wed Dec  2 10:28:11 2009
@@ -27,18 +27,15 @@
  public class DialogBoxParser implements ElementParser {
public void parse(XMLElement elem, String fieldName, JClassType type,
UiBinderWriter writer) throws UnableToCompleteException {
-
-String autoHide = elem.consumeBooleanAttribute(autoHide, false);
-String modal = elem.consumeBooleanAttribute(modal, true);
-
+
  String caption = null;
  String body = null;

  for (XMLElement child : elem.consumeChildElements()) {
if (caption.equals(child.getLocalName())) {
  if (caption != null) {
-  writer.die(In %s, may have only one %s:caption,
-  elem, elem.getPrefix());
+  writer.die(In %s, may have only one %s:caption, elem,
+  elem.getPrefix());
  }

  HtmlInterpreter interpreter =  
HtmlInterpreter.newInterpreterForUiObject(
@@ -53,12 +50,11 @@
writer.die(In %s, found non-widget %s, elem, child);
  }
  body = writer.parseElementToField(child);
- }
-}
-
-writer.setFieldInitializerAsConstructor(fieldName,
-writer.getOracle().findType(DialogBox.class.getCanonicalName()),
-autoHide, modal);
+  }
+}
+
+handleConstructorArgs(elem, fieldName, type, writer);
+
  if (caption != null) {
writer.addStatement(%s.setHTML(\%s\);, fieldName, caption);
  }
@@ -66,4 +62,22 @@
writer.addStatement(%s.setWidget(%s);, fieldName, body);
  }
}
-}
+
+  /**
+   * If this is DialogBox (not a subclass), parse constructor args
+   * and generate the constructor call. For subtypes do nothing.
+   */
+  private void handleConstructorArgs(XMLElement elem, String fieldName,
+  JClassType type, UiBinderWriter writer) throws  
UnableToCompleteException {
+boolean custom = !type.equals(writer.getOracle().findType(
+DialogBox.class.getCanonicalName()));
+if (!custom) {
+  String autoHide = elem.consumeBooleanAttribute(autoHide, false);
+  String modal = elem.consumeBooleanAttribute(modal, true);
+
+  writer.setFieldInitializerAsConstructor(fieldName,
+  writer.getOracle().findType(DialogBox.class.getCanonicalName()),
+  autoHide, modal);
+}
+  }
+}
===
---  
/branches/snapshot-2009.11.20-r7061/user/src/com/google/gwt/uibinder/rebind/FieldWriter.java
 

[gwt-contrib] [google-web-toolkit] r7236 committed - Fixes pseudo-memory-leak caused by adding a new window resize handler...

2009-12-02 Thread codesite-noreply
Revision: 7236
Author: j...@google.com
Date: Wed Dec  2 11:27:43 2009
Log: Fixes pseudo-memory-leak caused by adding a new window resize handler
every time a popup is shown, but not removing it. This was causing
particularly bad behavior on IE, where a translucent glass element
allocates a significant amount of memory.
Review by: jlabanca (desk check)
http://code.google.com/p/google-web-toolkit/source/detail?r=7236

Modified:
  /trunk/user/src/com/google/gwt/user/client/ui/PopupPanel.java

===
--- /trunk/user/src/com/google/gwt/user/client/ui/PopupPanel.java   Tue Dec 
  
1 16:25:52 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/PopupPanel.java   Wed Dec 
  
2 11:27:43 2009
@@ -145,6 +145,8 @@
   */
  private boolean glassShowing;

+private HandlerRegistration resizeRegistration;
+
  /**
   * Create a new {...@link ResizeAnimation}.
   *
@@ -276,14 +278,19 @@
  if (curPanel.isGlassEnabled) {
Document.get().getBody().appendChild(curPanel.glass);
impl.onShow(curPanel.glass);
-  glassShowing = true;
-
-  Window.addResizeHandler(curPanel.glassResizer);
+
+  resizeRegistration =  
Window.addResizeHandler(curPanel.glassResizer);
curPanel.glassResizer.onResize(null);
+
+  glassShowing = true;
  }
} else if (glassShowing) {
  Document.get().getBody().removeChild(curPanel.glass);
  impl.onHide(curPanel.glass);
+
+resizeRegistration.removeHandler();
+resizeRegistration = null;
+
  glassShowing = false;
}
  }

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


[gwt-contrib] [google-web-toolkit] r7237 committed - Merging /trunk c7236 into this branch.

2009-12-02 Thread codesite-noreply
Revision: 7237
Author: j...@google.com
Date: Wed Dec  2 11:33:05 2009
Log: Merging /trunk c7236 into this branch.

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

Modified:
  /releases/2.0/branch-info.txt
  /releases/2.0/user/src/com/google/gwt/user/client/ui/PopupPanel.java

===
--- /releases/2.0/branch-info.txt   Wed Dec  2 08:47:36 2009
+++ /releases/2.0/branch-info.txt   Wed Dec  2 11:33:05 2009
@@ -1160,3 +1160,11 @@
   Removing image.onload fix from release notes.
  svn merge --ignore-ancestry -c7232  
https://google-web-toolkit.googlecode.com/svn/trunk/ .

+tr...@7236 was merged into this branch
+ Fixes pseudo-memory-leak caused by adding a new window resize handler  
every
+ time a popup is shown, but not removing it. This was causing particularly  
bad
+ behavior on IE, where a translucent glass element allocates a significant
+ amount of memory.
+svn merge --ignore-ancestry -c7236  
https://google-web-toolkit.googlecode.com/svn/trunk/ .
+
+
===
--- /releases/2.0/user/src/com/google/gwt/user/client/ui/PopupPanel.java
 
Tue Dec  1 21:26:37 2009
+++ /releases/2.0/user/src/com/google/gwt/user/client/ui/PopupPanel.java
 
Wed Dec  2 11:33:05 2009
@@ -145,6 +145,8 @@
   */
  private boolean glassShowing;

+private HandlerRegistration resizeRegistration;
+
  /**
   * Create a new {...@link ResizeAnimation}.
   *
@@ -276,14 +278,19 @@
  if (curPanel.isGlassEnabled) {
Document.get().getBody().appendChild(curPanel.glass);
impl.onShow(curPanel.glass);
-  glassShowing = true;
-
-  Window.addResizeHandler(curPanel.glassResizer);
+
+  resizeRegistration =  
Window.addResizeHandler(curPanel.glassResizer);
curPanel.glassResizer.onResize(null);
+
+  glassShowing = true;
  }
} else if (glassShowing) {
  Document.get().getBody().removeChild(curPanel.glass);
  impl.onHide(curPanel.glass);
+
+resizeRegistration.removeHandler();
+resizeRegistration = null;
+
  glassShowing = false;
}
  }

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


[gwt-contrib] Re: Provide better exceptions for bad values in an RPC stream (not for 2.0)

2009-12-02 Thread jat

http://gwt-code-reviews.appspot.com/118802/diff/1/3
File
user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
(right):

http://gwt-code-reviews.appspot.com/118802/diff/1/3#newcode819
Line 819: return new NumberFormatException(Expected type ' + type + '
but received  +
On 2009/12/02 20:25:39, Dan Rice wrote:
 It's a subclass of IllegalArgumentException, which gets wrapped in a
 SerializationException in:


com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(String)

 which in turn is caught in:

 com.google.gwt.user.server.rpc.RPC.decodeRequest(String, Class?,
 SerializationPolicyProvider)

 and re-thrown as an IncompatibleRemoteServiceException.

Right, but that IRSE will just have a generic message, and not anything
from the actual server-side exception, right?

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

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


[gwt-contrib] Re: Provide better exceptions for bad values in an RPC stream (not for 2.0)

2009-12-02 Thread rice

http://gwt-code-reviews.appspot.com/118802/diff/1/3
File
user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
(right):

http://gwt-code-reviews.appspot.com/118802/diff/1/3#newcode819
Line 819: return new NumberFormatException(Expected type ' + type + '
but received  +
It's a subclass of IllegalArgumentException, which gets wrapped in a
SerializationException in:

com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(String)

which in turn is caught in:

com.google.gwt.user.server.rpc.RPC.decodeRequest(String, Class?,
SerializationPolicyProvider)

and re-thrown as an IncompatibleRemoteServiceException.

On 2009/12/02 20:19:10, jat wrote:
 Since NFE is a RuntimeException that is not declared on the RPC method
(at least
 likely not), this will not get sent back to the client, right?  How
will this
 help the developer figure out what is going on?

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

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


[gwt-contrib] Re: Provide better exceptions for bad values in an RPC stream (not for 2.0)

2009-12-02 Thread rice

http://gwt-code-reviews.appspot.com/118802/diff/1/3
File
user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
(right):

http://gwt-code-reviews.appspot.com/118802/diff/1/3#newcode819
Line 819: return new NumberFormatException(Expected type ' + type + '
but received  +
It's thrown as:

try {
} catch (SerializationException ex) {
 throw new IncompatibleRemoteServiceException(ex.getMessage(), ex);
}

so the message does get propagated.  It's not ideal -- I would be
interested in a follow-on patch that would add information on the class
and field where the failure occurred, but that would require more
thought.

On 2009/12/02 20:31:49, jat wrote:
 On 2009/12/02 20:25:39, Dan Rice wrote:
  It's a subclass of IllegalArgumentException, which gets wrapped in a
  SerializationException in:
 
 

com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.deserialize(String)
 
  which in turn is caught in:
 
  com.google.gwt.user.server.rpc.RPC.decodeRequest(String, Class?,
  SerializationPolicyProvider)
 
  and re-thrown as an IncompatibleRemoteServiceException.

 Right, but that IRSE will just have a generic message, and not
anything from the
 actual server-side exception, right?


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

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


[gwt-contrib] Re: Provide better exceptions for bad values in an RPC stream (not for 2.0)

2009-12-02 Thread jat
Ok, LGTM

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

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


[gwt-contrib] [google-web-toolkit] r7238 committed - Make RPC failures due to bad numerical values clearer (external issue ...

2009-12-02 Thread codesite-noreply
Revision: 7238
Author: r...@google.com
Date: Wed Dec  2 13:26:39 2009
Log: Make RPC failures due to bad numerical values clearer (external issue  
4263).

Review by: jat


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

Modified:
   
/trunk/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
  /trunk/user/test/com/google/gwt/user/server/rpc/RPCTest.java

===
---  
/trunk/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
 
Thu Oct 22 12:08:44 2009
+++  
/trunk/user/src/com/google/gwt/user/server/rpc/impl/ServerSerializationStreamReader.java
 
Wed Dec  2 13:26:39 2009
@@ -457,12 +457,18 @@
}

public byte readByte() throws SerializationException {
-return Byte.parseByte(extract());
+String value = extract();
+try {
+  return Byte.parseByte(value);
+} catch (NumberFormatException e) {
+  throw getNumberFormatException(value, byte,
+  Byte.MIN_VALUE, Byte.MAX_VALUE);
+}
}

public char readChar() throws SerializationException {
  // just use an int, it's more foolproof
-return (char) Integer.parseInt(extract());
+return (char) readInt();
}

public double readDouble() throws SerializationException {
@@ -474,7 +480,13 @@
}

public int readInt() throws SerializationException {
-return Integer.parseInt(extract());
+String value = extract();
+try {
+  return Integer.parseInt(value);
+} catch (NumberFormatException e) {
+  throw getNumberFormatException(value, int,
+  Integer.MIN_VALUE, Integer.MAX_VALUE);
+}
}

public long readLong() throws SerializationException {
@@ -484,7 +496,13 @@
}

public short readShort() throws SerializationException {
-return Short.parseShort(extract());
+String value = extract();
+try {
+  return Short.parseShort(value);
+} catch (NumberFormatException e) {
+  throw getNumberFormatException(value, short,
+  Short.MIN_VALUE, Short.MAX_VALUE);
+}
}

public String readString() throws SerializationException {
@@ -771,6 +789,36 @@
throw new SerializationException(Too few tokens in RPC request, e);
  }
}
+
+  /**
+   * Returns a suitable NumberFormatException with an explanatory message
+   * when a numerical value cannot be parsed according to its expected
+   * type.
+   *
+   * @param value the value as read from the RPC stream
+   * @param type the name of the expected type
+   * @param minValue the smallest valid value for the expected type
+   * @param maxValue the largest valid value for the expected type
+   * @return a NumberFormatException with an explanatory message
+   */
+  private NumberFormatException getNumberFormatException(String value,
+  String type, double minValue, double maxValue) {
+String message = a non-numerical value;
+try {
+  // Check the field contents in order to produce a more comprehensible
+  // error message
+  double d = Double.parseDouble(value);
+  if (d  minValue || d  maxValue) {
+message = an out-of-range value;
+  } else if (d != Math.floor(d)) {
+message = a fractional value;
+  }
+} catch (NumberFormatException e2) {
+}
+
+return new NumberFormatException(Expected type ' + type + ' but  
received  +
+message + :  + value);
+  }

/**
 * Returns a Map from a field name to the setter method for that field,  
for a
===
--- /trunk/user/test/com/google/gwt/user/server/rpc/RPCTest.javaMon Sep 
21  
04:48:07 2009
+++ /trunk/user/test/com/google/gwt/user/server/rpc/RPCTest.javaWed Dec 
 2  
13:26:39 2009
@@ -18,6 +18,7 @@
  import static  
com.google.gwt.user.client.rpc.impl.AbstractSerializationStream.RPC_SEPARATOR_CHAR;

  import com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException;
+import com.google.gwt.user.client.rpc.IsSerializable;
  import com.google.gwt.user.client.rpc.RemoteService;
  import com.google.gwt.user.client.rpc.SerializableException;
  import com.google.gwt.user.client.rpc.SerializationException;
@@ -67,6 +68,24 @@
private static interface B {
  void method1();
}
+
+  /**
+   * Test error message for an out=of-range int value.
+   *
+   * @see RPCTest#testDecodeBadIntegerValue()
+   */
+  private static class Wrapper implements IsSerializable {
+byte value1;
+char value2;
+short value3;
+int value4;
+public Wrapper() { }
+  }
+
+  @SuppressWarnings(rpc-validation)
+  private static interface WrapperIF extends RemoteService {
+void method1(Wrapper w);
+  }

private static final String VALID_ENCODED_REQUEST = 
+ AbstractSerializationStream.SERIALIZATION_STREAM_VERSION
@@ -164,6 +183,90 @@
1\u + // interface name
2\u + // method name
0\u; // param count
+
+  /**
+   * Tests that out-of-range or 

[gwt-contrib] [google-web-toolkit] r7240 committed - Sorting a test file.

2009-12-02 Thread codesite-noreply
Revision: 7240
Author: sp...@google.com
Date: Wed Dec  2 14:22:51 2009
Log: Sorting a test file.

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

Modified:
   
/trunk/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java

===
---  
/trunk/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java   
 
Wed Dec  2 14:20:27 2009
+++  
/trunk/user/test/com/google/gwt/user/client/rpc/RemoteServiceServletTest.java   
 
Wed Dec  2 14:22:51 2009
@@ -125,6 +125,29 @@
}
  });
}
+
+  /**
+   * Verify behavior when the RPC method throws a RuntimeException  
declared on
+   * the RemoteService interface.
+   */
+  public void testDeclaredRuntimeException() {
+RemoteServiceServletTestServiceAsync service = getAsyncService();
+
+delayTestFinishForRpc();
+
+service.throwDeclaredRuntimeException(new AsyncCallbackVoid() {
+
+  public void onFailure(Throwable caught) {
+assertTrue(caught instanceof NullPointerException);
+assertEquals(expected, caught.getMessage());
+finishTest();
+  }
+
+  public void onSuccess(Void result) {
+fail();
+  }
+});
+  }

public void testManualSend() throws RequestException {
  RemoteServiceServletTestServiceAsync service = getAsyncService();
@@ -166,6 +189,15 @@
}
  });
}
+
+  /**
+   * Test that the policy strong name is available from browser-side Java  
code.
+   */
+  public void testPolicyStrongName() {
+String policy = ((ServiceDefTarget)  
getAsyncService()).getSerializationPolicyName();
+assertNotNull(policy);
+assertTrue(!policy.isEmpty());
+  }

/**
 * Ensure that each doFoo method is called.
@@ -206,38 +238,6 @@
  });
  assertTrue(req.isPending());
}
-
-  /**
-   * Verify behavior when the RPC method throws a RuntimeException  
declared on
-   * the RemoteService interface.
-   */
-  public void testDeclaredRuntimeException() {
-RemoteServiceServletTestServiceAsync service = getAsyncService();
-
-delayTestFinishForRpc();
-
-service.throwDeclaredRuntimeException(new AsyncCallbackVoid() {
-
-  public void onFailure(Throwable caught) {
-assertTrue(caught instanceof NullPointerException);
-assertEquals(expected, caught.getMessage());
-finishTest();
-  }
-
-  public void onSuccess(Void result) {
-fail();
-  }
-});
-  }
-
-  /**
-   * Test that the policy strong name is available from browser-side Java  
code.
-   */
-  public void testPolicyStrongName() {
-String policy = ((ServiceDefTarget)  
getAsyncService()).getSerializationPolicyName();
-assertNotNull(policy);
-assertTrue(!policy.isEmpty());
-  }

/**
 * Verify behavior when the RPC method throws an unknown RuntimeException

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


[gwt-contrib] [google-web-toolkit] r7241 committed - Have the policy name of RpcServiceProxy be the same as...

2009-12-02 Thread codesite-noreply
Revision: 7241
Author: sp...@google.com
Date: Wed Dec  2 15:06:59 2009
Log: Have the policy name of RpcServiceProxy be the same as
the permutation's strong name.

Review by: bobv

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

Modified:
  /trunk/user/src/com/google/gwt/rpc/client/impl/RpcServiceProxy.java

===
--- /trunk/user/src/com/google/gwt/rpc/client/impl/RpcServiceProxy.java Wed  
Dec  2 14:20:27 2009
+++ /trunk/user/src/com/google/gwt/rpc/client/impl/RpcServiceProxy.java Wed  
Dec  2 15:06:59 2009
@@ -15,6 +15,7 @@
   */
  package com.google.gwt.rpc.client.impl;

+import com.google.gwt.core.client.GWT;
  import com.google.gwt.http.client.RequestCallback;
  import com.google.gwt.user.client.rpc.AsyncCallback;
  import com.google.gwt.user.client.rpc.SerializationException;
@@ -31,7 +32,8 @@

protected RpcServiceProxy(String moduleBaseURL,
String remoteServiceRelativePath, TypeOverrides typeOverrides) {
-super(moduleBaseURL, remoteServiceRelativePath, (unused), null);
+super(moduleBaseURL, remoteServiceRelativePath,
+GWT.getPermutationStrongName(), null);
  this.typeOverrides = typeOverrides;
}

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