Re: Place, history url does not change

2011-10-21 Thread Rikard Hultén
1. The PlaceController is created once in the client factory, so it should 
be singleton

2. Not sure what you mean by bind? I look up activity from place in the 
ActivityMapper just as in the example

3. Rest assured I do have two activities, implementing the presenter 
interface from each view interface. I don't have the code on this computer 
so I can't post any code, but it is very simple activities where one has a 
link (Anchor widget) that kicks of the other. It just occurred to me I 
should debug the activity to see what place is passed in, since the place 
tokenizers aren't called.

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



can we control what element will build in widget?

2011-10-21 Thread wahaha
for example,the Label widget will be compiled as a div element in
browser.
can we control what kind of element will be compiled in browser?
this is to say,if we are defining a widget,then can we control the
element's kind by the source code?

i hope you can understand my poor english.

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



Recreating the CellList Showcase example with Editors

2011-10-21 Thread Maiku
Hello,

I have a case for a dialog that operates very similar to the CellList
example included in the Showcase. That is, I need to have the ability
to add items to a list, select them, and display a form (within the
same dialog) for the selected item.

I was trying to set it up with an implementation combination of
HasDataEditor and ValueAwareEditor but even if I get the value from
the CellList's SelectionModel I don't get how I can set the values on
an editor that is dynamically displayed. (I thought maybe of using
another RequestFactoryEditorDriver on the inner editor but this
doesn't seem to work...)

Then during my searches I found some very small amount of information
on ValuePicker. However, I cannot grasp from the code or sparse
documentation whether ValuePicker (as the name implies) is made for
picking an option out of a preset list (like selecting an enum value)
or for getting the value from a dynamic list for use in a separate
editor?

Can anyone provide any clues as to whether ValuePicker is what I
should be using or if there is some way to achieve the concept of a
form displaying the value of item selected from a list?

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



Re: Right-align numbers?

2011-10-21 Thread Sudhakar Abraham
Create a CSS file (mystyles.css), put it side by side with your module
html
file, and include the CSS file using link/.  Change the property in
css file text-align:right.

//In module html file

link type=text/css rel=stylesheet href=mystyles.css


S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine





On Oct 21, 12:09 am, Christopher Piggott cpigg...@gmail.com wrote:
 I need to right-align numbers and it doesn't work as I thought:

 NumberFormat fmt = NumberFormat.getFormat(0);

 String value = fmt.format(10);

 What I expected was    10

 How should it work?

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



Re: @ExtraTypes examples?

2011-10-21 Thread Tiago
I've opened the following issue concerning this stack overflow:
http://code.google.com/p/google-web-toolkit/issues/detail?id=6912

On Sep 21, 5:23 pm, Tiago cave...@gmail.com wrote:
 Hello Thomas!

 On Sep 21, 3:26 pm, Thomas Broyer t.bro...@gmail.com wrote:

  @ExtraTypes({ EntityARevisionProxy.class, EntityBRevisionProxy.class })
  @ProxyFor(Revision.class)
  interface RevisionProxy extends EntityProxy { }

 Thank you again for your answer. But I tried this. I either have a
 stack overflow on GWT, when I add @ProxyFor(Revision.class) to
 EntityARevisionProxy, or I have an error from GWT complaining that
 EntityARevisionProxy has no @ProxyFor annotation if I don't.

  Pro tip: when in doubt, have a look at the unit tests for the feature in the
  SVN repository.

 I'll take a look, thanks!

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



The new GMail layout

2011-10-21 Thread Jaroslav Záruba
Hello

Once again I wonder if/why Google doesn't use GWT on its own projects...? 
Looking at the ?leaked? video of the new GMail layout we see the window 
being resized http://youtu.be/aF2I8c3fNQs?hd=1t=20s, and the layout 
redraws/resizes *after* the window resizing is done. This doesn't look like 
GWT to me, where the new panels resize themselves instantly as you move the 
mouse. Am I mistaken? If the layout is written in GWT why do we see that 
slow resizing there?

Regards
  J. Záruba

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



Re: The new GMail layout

2011-10-21 Thread Alain Ekambi
Was nt  GMail created before GWT ?
GWT is beeig used in a lot of other google projects.

2011/10/21 Jaroslav Záruba jaroslav.zar...@gmail.com

 Hello

 Once again I wonder if/why Google doesn't use GWT on its own projects...?
 Looking at the ?leaked? video of the new GMail layout we see the window
 being resized http://youtu.be/aF2I8c3fNQs?hd=1t=20s, and the layout
 redraws/resizes *after* the window resizing is done. This doesn't look like
 GWT to me, where the new panels resize themselves instantly as you move the
 mouse. Am I mistaken? If the layout is written in GWT why do we see that
 slow resizing there?

 Regards
   J. Záruba

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




-- 

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

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



Re: The new GMail layout

2011-10-21 Thread Gal Dolber
Gmail does not use gwt but http://code.google.com/closure/

Don't use GWT because Google made it and use it in some projects.. decide by
yourself if is a good fit for your needs or not.
I didn't use Closure, but I'm sure its a great project. If you're not sure
with gwt you should definitely try Closure or some other alternative.

And finally, you can easily make those kind of adaptive panels using layout
panels with percentage sizes, or controlling the resize programmatically.

Regards

2011/10/21 Jaroslav Záruba jaroslav.zar...@gmail.com

 Hello

 Once again I wonder if/why Google doesn't use GWT on its own projects...?
 Looking at the ?leaked? video of the new GMail layout we see the window
 being resized http://youtu.be/aF2I8c3fNQs?hd=1t=20s, and the layout
 redraws/resizes *after* the window resizing is done. This doesn't look like
 GWT to me, where the new panels resize themselves instantly as you move the
 mouse. Am I mistaken? If the layout is written in GWT why do we see that
 slow resizing there?

 Regards
   J. Záruba

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

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



Re: The new GMail layout

2011-10-21 Thread Jaroslav Záruba
Resizing panels programatically is what causes that kind of delays. GWT
introduced the new panel layouts to get rid exactly of that, so the resizing
is done natively by browser, as you probably know.
I don't need to decide about GWT, I love it! :)

Thanks for that Closure info guys, I didn't know that,

On Fri, Oct 21, 2011 at 10:24 AM, Gal Dolber gal.dol...@gmail.com wrote:

 Gmail does not use gwt but http://code.google.com/closure/

 Don't use GWT because Google made it and use it in some projects.. decide
 by yourself if is a good fit for your needs or not.
 I didn't use Closure, but I'm sure its a great project. If you're not sure
 with gwt you should definitely try Closure or some other alternative.

 And finally, you can easily make those kind of adaptive panels using layout
 panels with percentage sizes, or controlling the resize programmatically.

 Regards

 2011/10/21 Jaroslav Záruba jaroslav.zar...@gmail.com

 Hello

 Once again I wonder if/why Google doesn't use GWT on its own projects...?
 Looking at the ?leaked? video of the new GMail layout we see the window
 being resized http://youtu.be/aF2I8c3fNQs?hd=1t=20s, and the layout
 redraws/resizes *after* the window resizing is done. This doesn't look like
 GWT to me, where the new panels resize themselves instantly as you move the
 mouse. Am I mistaken? If the layout is written in GWT why do we see that
 slow resizing there?

 Regards
   J. Záruba

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




 --
 Guit: Elegant, beautiful, modular and *production ready* gwt applications.

 http://code.google.com/p/guit/




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


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



Re: Lost with CssResource

2011-10-21 Thread Prakash M
1) @external rule can be used if you want to have both programmatic
access as well as access by class name in your app.

For ex: Consider this UIBinder fragment.

HTMLPanel stylename={ css.someStyle}
div class=.someStyle'/div
/HTMLPanel

Where someStyle is defined in CSS resource
When you compile this, someStyle is obfuscated in to say something
like 'GABEFS1F'.  In this case innerdiv div wont be able to find
.someStyle' , cos its been obfuscated.
In order to avoid this,@external rule is used.

It comes  handy when you try to port some legacy app, where css class
names are already hardcoded in to HTML pages.

2) Assume that you have legacy app with hundreds of styles. Now you
started porting some widgets to GWT. And you realize that you dont
want programmatic access to all the styles. But GWT will throw you
error , if you dont define String accessor methods for all
styles(hundreds). Thats where @NotStrict rule comes in to picture,
telling GWT not to worry about Styles which dont have accessor
methods.

Note: Its not necessary that styles to be defined only in separate CSS
file. With UiBinder, you can define styles local to your widget and
not worry abt name collision ( Obfuscation of style names will take
care of this)

Hope this helps.

-prakash m.

















2011/10/21 Mike Dee mdichiapp...@gmail.com:
 #1
 At:
 http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#CssResourceCookbook

 It says:
 External and legacy scopes
 In many cases, newly-developed CSS will need to be combined with
 external or legacy CSS. The @external at-rule can be used to suppress
 selector obfuscation while still allowing programmatic access to the
 selector name.

 Question: Why would anyone ever want obfuscation on?  If I have a CSS
 selector .myheader wouldn't I always want to refer to it as:
 MyResources.INSTANCE.css().myheader()?

 #2
 At:
 http://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.html#Selector_obfuscation_details

 It says:
 Strict scoping
 In the normal case, any class selectors that do not match String
 accessor functions is an error. This behavior can be disabled by
 adding a @NotStrict annotation to the CSS accessor method. Enabling
 @NotStrict behavior is only recommended for applications that are
 transitioning from external CSS files to CssResource.

 Even with CssResource isn't all the CSS stored in a separate CSS file?

 So far, CSS with GWT is a mystery to 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-toolkit@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.



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



Re: why does the HTML widget do not have a name attribute?

2011-10-21 Thread Thomas Broyer
Let me rephrase: why do you want it to have a name? what would you use it 
for? what problem are you trying to solve?

(and this is a general comment as to all your questions here; you're sort-of 
spamming the group with questions which you obviously didn't even try to 
answer by yourself; state the problem you're trying to solve, what you tried 
and didn't work, what you found that didn't match; when you show people that 
you put a minimum of effort, then they'll be inclined to answer, possibly 
after doing some research themselves)

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



Re: Place, history url does not change

2011-10-21 Thread Thomas Broyer


On Thursday, October 20, 2011 8:40:12 PM UTC+2, Rikard Hultén wrote:

 The Tokenizers never get hit no, which is interesting but I don't know how 
 where to continue searching...

 Not sure what you mean by DefaultHistorian?


That 
one: 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryHandler.DefaultHistorian.html
Which is one used when you don't explicitly give an Historian to your 
PlaceHistoryHandler: 
http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/place/shared/PlaceHistoryHandler.html#PlaceHistoryHandler(com.google.gwt.place.shared.PlaceHistoryMapper)

In the AppPlaceHistoryMapper interface I just enumerate my tokenizers from 
 the places in the @WithTokenizers, just like in the 
 activites-places-article.

 From what I can read it is the PlaceController that is responsible for 
 updating the URL, and as the event gets fired on the same event bus as is 
 passed in to it I can't understand why it does, in fact, not update the URL.


No.
The PlaceController fires events on the bus, and the PlaceHistoryHandler 
listens to them to call its Historian (after converting the place to a token 
using the PlaceHistoryMapper), which is responsible for updating the URL. 
The Historian will also listen to the URL changing (such as using the back 
button of your browser) and PlaceHistoryHandler will map the token to a 
place (still using the PlaceHistoryMapper) and call goTo on the 
PlaceController.

HTH

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



Re: Fitting Activities and Places in current architecture

2011-10-21 Thread sridhar vennela
Hi Rohan,

Thank you for your response. Can i leave current browser intractions as it
is and create new browser intractions for Activites and Places?

Sai




On Thu, Oct 20, 2011 at 9:52 PM, Rohan Aggarwal 
rohanaggarwal999...@gmail.com wrote:


 I am sure Sampath, might be u handled earlier browser history based
 HistoryToken and Fragement.  But with Acitivites an dPlace you to have write
 lot of boilerplate code, which makes sense in future but now depends on
 timeline of ur app u have to decide.

 But ya definitely you need to rewrite atleat the browser interactions.



 On Fri, Oct 21, 2011 at 6:09 AM, sampath sai vsampath@gmail.comwrote:

 Hi ,
 Right now I have app without any gwt activities and places. Can add
 activity and places in current application? Or do I need rewrite
 entire application? Please help.
 If yes, I can mix and match, best approaches.


 Thanks,
 Sai

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


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


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



Re: Recreating the CellList Showcase example with Editors

2011-10-21 Thread Thomas Broyer


On Friday, October 21, 2011 8:32:51 AM UTC+2, Maiku wrote:

 Hello, 

 I have a case for a dialog that operates very similar to the CellList 
 example included in the Showcase. That is, I need to have the ability 
 to add items to a list, select them, and display a form (within the 
 same dialog) for the selected item. 

 I was trying to set it up with an implementation combination of 
 HasDataEditor and ValueAwareEditor but even if I get the value from 
 the CellList's SelectionModel I don't get how I can set the values on 
 an editor that is dynamically displayed. (I thought maybe of using 
 another RequestFactoryEditorDriver on the inner editor but this 
 doesn't seem to work...)


That's how you should do it: a distinct RequestFactoryEditorDriver.
We're doing just that, so I can guarantee that it works (or can be made to 
work).

You'd maybe want to also implement HasRequestContext so you can pass the 
same RequestContext to the child RequestFactoryEditorDriver that you use 
in the parent one.

Then during my searches I found some very small amount of information 
 on ValuePicker. However, I cannot grasp from the code or sparse 
 documentation whether ValuePicker (as the name implies) is made for 
 picking an option out of a preset list (like selecting an enum value) 
 or for getting the value from a dynamic list for use in a separate 
 editor?


The former.

But that (probably, you'd have to try it) doesn't preclude the latter usage; 
you wouldn't use the ValuePicker as an editor by itself though, just as a 
widget around a CellList (that CellList would be be used with an 
HasDataEditor to populate it dynamically).

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



Re: why does the HTML widget do not have a name attribute?

2011-10-21 Thread wahaha
it is very simple reason.i want add a name attribute to the Lable
tag,and then write css rules for the tag in ui.xml

On Oct 21, 5:27 pm, Thomas Broyer t.bro...@gmail.com wrote:
 Let me rephrase: why do you want it to have a name? what would you use it
 for? what problem are you trying to solve?

 (and this is a general comment as to all your questions here; you're sort-of
 spamming the group with questions which you obviously didn't even try to
 answer by yourself; state the problem you're trying to solve, what you tried
 and didn't work, what you found that didn't match; when you show people that
 you put a minimum of effort, then they'll be inclined to answer, possibly
 after doing some research themselves)

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



Re: the style write in ui.xml does not work

2011-10-21 Thread wahaha
ok,thanks ,i found it

`
If you have class names in your css file that are not legal Java
identifiers, you can use the @ClassName annotation on the accessor
method:

interface MyCss extends CssResource {
  @ClassName(some-other-name)
  String someOtherName();
}
`
On Oct 14, 8:06 am, Colin Alworth niloc...@gmail.com wrote:
 The @ClassName annotation can be used if you have class names in your css
 file that are not legal Java identifiers

 fromhttp://code.google.com/webtoolkit/doc/latest/DevGuideClientBundle.htm...

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



Re: Dart and GWT

2011-10-21 Thread Dimitrijević Ivan
Thank you for your responses.
It is good to here that GWT will continue to evolving.

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



RPC problem?

2011-10-21 Thread Brito
 RPC that is working fine in host mode but fails in web mode
and I don't know what to do to troubleshoot it. On the client, I get a
message box that says Failure:
com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details.

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



Re: RPC problem?

2011-10-21 Thread Thomas Broyer
Have you looked at your server logs? What's the status code? (use Firebug or 
whatever to see what the server responds: 404 → the 
RemoteServiceRelativePath is wrong and/or you have an issue in how you 
deployed your app; 500 → there was another error on the server, maybe you 
reached a non-RPC servlet; 405 → you reached something that doesn't accept 
POSTs, so it's not your RPC servlet)

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



Re: RPC problem?

2011-10-21 Thread Sean
I also recommend creating a Serialized Exception, and have ALL your RPCs do 
adequate error handling and throw these Serialized Exceptions for display on 
your page. This has made RPC debugging 3000x better. 

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



Re: RPC problem?

2011-10-21 Thread András Csányi
On 21 October 2011 13:56, Sean slough...@gmail.com wrote:
 I also recommend creating a Serialized Exception, and have ALL your RPCs do
 adequate error handling and throw these Serialized Exceptions for display on
 your page. This has made RPC debugging 3000x better.

Sean, it sounds really good, but I'm very new at GWT and java as well.
So, would you so kind to provide a simple example which is usable?

Many thanks in advance!

-- 
- -
--  Csanyi Andras (Sayusi Ando)  -- http://sayusi.hu --
http://facebook.com/andras.csanyi
--  Trust in God and keep your gunpowder dry! - Cromwell

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



GWT RPC call gives 400 AUTHENTICATION.FAILED error code

2011-10-21 Thread sudhish nair
Hi All,

 I am facing a problem with my RPC call. the situation is as
follows

When i click on the link it initiates a RPC call to the remote servlet
but before the whole processing gets complete i closed the browser.
Then again i open the browser and accessed the same link, and the
response shows me 400 AUTHENTICATION.FAILED error code. i am using
CHROME latest version browser (14.0.835.202 (Official Build 103287)
m). On further debugging i found out that the second request never
initiates a server call but simply resumed from the
onResponseReceived() method. Due to this we are not able to see the
page that are requested. this issue is only with CHROME browser latest
version.

Hope i will get a quick answer.

Thanks

Sudhish Nair

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



When i setup the GWT i had this Error ? how can i solve it ?

2011-10-21 Thread Musab
Error
No repository found containing:
osgi.bundle,com.google.gdt.eclipse.designer.hosted.lib,2.4.2.

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



show [ERROR] Element may only contain a single child element in gwt 2.4.

2011-10-21 Thread David Fernando

I got error when I compile the project. Please give your suggestion.

g:DockLayoutPanel ui:field=dock
g:north size=25
 g:FlowPanel
   g:Button ui:field=saveLogin/ g:Button
 /g:FlowPanel
/g:north
g:center
   g:VerticalPanelui:field=panel1
   g:Button ui:field=button1sample1/
g:Button
g:Button ui:field=button2sample2/
g:Button
   /g:VerticalPanel
  g:VerticalPanel ui:field=panel2
g:TextArea ui:field=textArea /
  /g:VerticalPanel
/g:center
/g:DockLayoutPanel
/ui:UiBinder

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



Re: When i setup the GWT i had this Error ? how can i solve it ?

2011-10-21 Thread Eric Clayberg (Google)
That usually means that you had a communication interruption. Waiting 5 
minutes, restarting Eclipse, and trying it again will almost always solve 
the problem. If it dos not, you should also turn off any firewall you have 
turned on.

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



Re: show [ERROR] Element may only contain a single child element in gwt 2.4.

2011-10-21 Thread Paul Robinson

You asked the same question a week ago in a different thread, and got replies 
telling you what the problem was and how to fix it.
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a8863eb6d54f51ca/d086173896d48974


On 21/10/11 12:44, David Fernando wrote:

I got error when I compile the project. Please give your suggestion.

g:DockLayoutPanel ui:field=dock
 g:north size=25
  g:FlowPanel
g:Button ui:field=saveLogin/ g:Button
  /g:FlowPanel
 /g:north
 g:center
g:VerticalPanelui:field=panel1
g:Button ui:field=button1sample1/
g:Button
 g:Button ui:field=button2sample2/
g:Button
/g:VerticalPanel
   g:VerticalPanel ui:field=panel2
 g:TextArea ui:field=textArea /
   /g:VerticalPanel
 /g:center
 /g:DockLayoutPanel
/ui:UiBinder



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



Re: RPC problem?

2011-10-21 Thread Sudhakar Abraham
Your tomcat mapping may be incorrect as it cannot find the url mapping
for the RemoteServiceServlet you are calling. See the error on
Apache Software Foundation\Apache Tomcat 6.0.18\logs\catalina.
2011-01-21.log directory. Check your StatusCode  of Http response.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine


On Oct 21, 3:50 pm, Brito britoscho...@gmail.com wrote:
  RPC that is working fine in host mode but fails in web mode
 and I don't know what to do to troubleshoot it. On the client, I get a
 message box that says Failure:
 com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
 the server; see server log for details.

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



Re: show [ERROR] Element may only contain a single child element in gwt 2.4.

2011-10-21 Thread Sudhakar Abraham
The DockLayoutPanel of g:center/g:center element having only one
Child. So wrap your panel1, panel2 inside panel3.  Try the below code.

S. Abraham
www.DataStoreGwt.com
Persist objects directly in Google App Engine

g:DockLayoutPanel ui:field=dock
 g:north size=25
 g:FlowPanel
   g:Button ui:field=saveLogin/ g:Button
 /g:FlowPanel
 /g:north
 g:center
   g:VerticalPanelui:field=panel3
  g:VerticalPanelui:field=panel1
  g:Button ui:field=button1sample1/g:Button
  g:Button ui:field=button2sample2/g:Button
  /g:VerticalPanel
  g:VerticalPanel ui:field=panel2
  g:TextArea ui:field=textArea /
  /g:VerticalPanel
  /g:VerticalPanel
/g:center
 /g:DockLayoutPanel
/ui:UiBinder

On Oct 21, 4:44 pm, David Fernando fernando33...@gmail.com wrote:
 I got error when I compile the project. Please give your suggestion.

 g:DockLayoutPanel ui:field=dock
                 g:north size=25
                      g:FlowPanel
                            g:Button ui:field=saveLogin/ g:Button
                      /g:FlowPanel
                 /g:north
                 g:center
                    g:VerticalPanelui:field=panel1
                                g:Button ui:field=button1sample1/
 g:Button
                                 g:Button ui:field=button2sample2/
 g:Button
                    /g:VerticalPanel
                   g:VerticalPanel ui:field=panel2
                                 g:TextArea ui:field=textArea /
                   /g:VerticalPanel
                 /g:center
         /g:DockLayoutPanel
 /ui:UiBinder

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



GWT and SSO with windows account

2011-10-21 Thread Foermchen82
Hi everybody,

I want to implement a SSO solution for my GWT application. The user
should be automaticly logged in with the windows account.

What I have to do? Can anyone give me an example or a documentation?

Kind regards,

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



Re: GWT and SSO with windows account

2011-10-21 Thread Juan Pablo Gardella
Check
http://stackoverflow.com/questions/545667/how-to-use-windows-login-for-single-sign-on-and-for-active-directory-entries-for


2011/10/21 Foermchen82 juergen.f...@gmx.de

 Hi everybody,

 I want to implement a SSO solution for my GWT application. The user
 should be automaticly logged in with the windows account.

 What I have to do? Can anyone give me an example or a documentation?

 Kind regards,

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



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



How to make button inactive state once it is clicked.

2011-10-21 Thread suresh babu
Hi,

I am using GWT for creating simple form with button, when ever I click this
button it calls RPC,
mean while prior to onSuccess of this RPC I am showing loading Image.

But the Issue is that the user click's this button very frequently again and
again, and RPC got called multiple times,
so how to avoid the user by not clicking this button multiple times, atleast
he should not
click until the rpc got completed.

can somebody throw some light on this,  Any help would be greatly
appreciated .

Regards
Suresh Babu G

http://www.accountingguru.in/

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



Re: @ExtraTypes examples?

2011-10-21 Thread Kevin Jordan
More on the issue with a fix I had to make:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/1387f28687571bf7/bfc53339a05f5d00?lnk=gstq=kjordan#bfc53339a05f5d00

The problem is that when it goes to examine the subclass in the
@ExtraTypes when it's set on a super type, the subclass ends up
examining itself in an infinite loop unless you keep track of which
ones in an overriden generator.

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



Re: GWT and SSO with windows account

2011-10-21 Thread Foermchen82
I think this article shows the solution for a java application. but I
have a GWT web application.

On 21 Okt., 14:53, Juan Pablo Gardella gardellajuanpa...@gmail.com
wrote:
 Checkhttp://stackoverflow.com/questions/545667/how-to-use-windows-login-fo...

 2011/10/21 Foermchen82 juergen.f...@gmx.de







  Hi everybody,

  I want to implement a SSO solution for my GWT application. The user
  should be automaticly logged in with the windows account.

  What I have to do? Can anyone give me an example or a documentation?

  Kind regards,

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

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



Re: How to make button inactive state once it is clicked.

2011-10-21 Thread Thad
In the button's ClickHandler's onClick(), call
button.setEnabled(false);

In the image's LoadHandler's onLoad(), call button.setEnabled(true);

On Oct 21, 9:17 am, suresh babu sureshgbab...@gmail.com wrote:
 Hi,

 I am using GWT for creating simple form with button, when ever I click this
 button it calls RPC,
 mean while prior to onSuccess of this RPC I am showing loading Image.

 But the Issue is that the user click's this button very frequently again and
 again, and RPC got called multiple times,
 so how to avoid the user by not clicking this button multiple times, atleast
 he should not
 click until the rpc got completed.

 can somebody throw some light on this,  Any help would be greatly
 appreciated .

 Regards
 Suresh Babu G

 http://www.accountingguru.in/

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



Re: GWT and SSO with windows account

2011-10-21 Thread Juan Pablo Gardella
GWT compile to javascript. So in javascrpt i think you can not do this. But
you can use Java, if you have java in backend.

2011/10/21 Foermchen82 juergen.f...@gmx.de

 I think this article shows the solution for a java application. but I
 have a GWT web application.

 On 21 Okt., 14:53, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
  Checkhttp://
 stackoverflow.com/questions/545667/how-to-use-windows-login-fo...
 
  2011/10/21 Foermchen82 juergen.f...@gmx.de
 
 
 
 
 
 
 
   Hi everybody,
 
   I want to implement a SSO solution for my GWT application. The user
   should be automaticly logged in with the windows account.
 
   What I have to do? Can anyone give me an example or a documentation?
 
   Kind regards,
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



How to test multiple interfaces of a widget in MVP ?

2011-10-21 Thread Leonel Gayard
Hi,

I'm following the MVP pattern as described in the tutorials and in to Ray 
Ryan's talk in Google IO 2009.

I hit an issue when it comes to testing a widget that implements more than 
one interface.

Suppose you have a view for displaying, say, contact information; the view 
has a checkbox, indicating whether the user has a mobile phone and a text 
field, with his phone number.

When the checkbox is unchecked, the text field is disabled.

Now, according to Google's guidelines for MVP, I would create the following 
interface. Instead of Checkbox, the return type is HasValueBoolean; the 
nice thing about lighter-weight return types is that they can easily be 
mocked and run as fast JUnit tests in the JRE.

interface ContactView {
HasValueBoolean getHasMobilePhone();

??? getMobilePhoneNumber();
}

Now, what should be the return type of method getMobilePhoneNumber() ? This 
return type should define both getValue() and setEnabled(boolean), and 
should be one that class TextField implements. HasValueString and 
HasEnabled are candidates, but each lacks the methods in the other, and I 
can only use one of them as a return type.

Have you faced the same problem ? How did you solve it ?

Thanks,
Leonel

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



include dependent project in gwt project war file / creating war files

2011-10-21 Thread cri
I have two GWT projects that both use classes in a dependent eclipse
java project.

In DEV mode I can get the GWT projects to include classes from the
dependent project by adding the dependent project to the eclipse build
path of my GWT projects.

However, when I create my war file by jar-ing up the war directory the
classes from the dependent projects don't get included.

What would be the recommended way to accomplish this?

With eclipse Dynamic Web Projects this is pretty easy. I can add the
dependent project to the web application deployment path. Then when I
use the export/WAR file command, the generated war file will contain
my dependent project as a jar file in the war file lib directory.

Does GWT have any similar functionality?

Is it possible to add Dynamic Web Project functionality to an
existing GWT project?

Other folks must be having the same need.

Thanks for any help!

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



Re: large celltable pagination question

2011-10-21 Thread Uemit
No, CellTable will only render the visible part. 
Fetching 500 rows from the server should take too long either.
I assume that the slowness is not related to the rendering in the CellTable 
but probably due to fetching and parsing of the 500 rows because you don't 
see any difference when you render 5 rows or 500. 
So it clearly must be something else. 

There are 3 possible bottlenecks:


   1. Fetching the data from the backend: if you use JSON and don't transfer 
   many fields then 500 rows shouldn't be a big issue (you can verfiy it by 
   using Firebug and checking the payload size)
   2. Parsing the fetched data: Again with JSON it should be fast enough to 
   parse 500 rows (not sure about XML)
   3. Rendering the data in a CellTable: if there is no performance 
   difference between 500 rows and 5 rows then the bottleneck must lie in one 
   of the previous areas.


I have no performance problems fetching around 2000 rows and displaying 50 
of them (using SimplePager). 


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



Re: GWT and SSO with windows account

2011-10-21 Thread Ed
I use ldap authentication on the server, not from the client.
Client authenticates to server which in turn calls the ldap request
and passes the auth tokens back to the client.

E

On Fri, Oct 21, 2011 at 10:39 AM, Juan Pablo Gardella
gardellajuanpa...@gmail.com wrote:
 GWT compile to javascript. So in javascrpt i think you can not do this. But
 you can use Java, if you have java in backend.

 2011/10/21 Foermchen82 juergen.f...@gmx.de

 I think this article shows the solution for a java application. but I
 have a GWT web application.

 On 21 Okt., 14:53, Juan Pablo Gardella gardellajuanpa...@gmail.com
 wrote:
 
  Checkhttp://stackoverflow.com/questions/545667/how-to-use-windows-login-fo...
 
  2011/10/21 Foermchen82 juergen.f...@gmx.de
 
 
 
 
 
 
 
   Hi everybody,
 
   I want to implement a SSO solution for my GWT application. The user
   should be automaticly logged in with the windows account.
 
   What I have to do? Can anyone give me an example or a documentation?
 
   Kind regards,
 
   --
   You received this message because you are subscribed to the Google
   Groups
   Google Web Toolkit group.
   To post to this group, send email to
   google-web-toolkit@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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


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


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



Re: How to test multiple interfaces of a widget in MVP ?

2011-10-21 Thread Thomas Broyer
The solution is to move to the part 2 article and follow the advice here: 
do not use HasXxxHandlers/HasValue/etc. interfaces but make up your own 
Presenter interface, single point of interaction from the view to the 
presenter (the view then pushes to the presenter, rather than the presenter 
pulling from the view).
Have a look at 
http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html 
too 
in how to organize your MVP (responsibilities of each part)

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



Re: include dependent project in gwt project war file / creating war files

2011-10-21 Thread cri
I think I figured it out. I didn't know about this eclipse capability.
You can add the Dynamic Web Project facet to a GWT project then
pretty much problem solved.

On Oct 21, 10:17 am, cri chuck.irvine...@gmail.com wrote:
 I have two GWT projects that both use classes in a dependent eclipse
 java project.

 In DEV mode I can get the GWT projects to include classes from the
 dependent project by adding the dependent project to the eclipse build
 path of my GWT projects.

 However, when I create my war file by jar-ing up the war directory the
 classes from the dependent projects don't get included.

 What would be the recommended way to accomplish this?

 With eclipse Dynamic Web Projects this is pretty easy. I can add the
 dependent project to the web application deployment path. Then when I
 use the export/WAR file command, the generated war file will contain
 my dependent project as a jar file in the war file lib directory.

 Does GWT have any similar functionality?

 Is it possible to add Dynamic Web Project functionality to an
 existing GWT project?

 Other folks must be having the same need.

 Thanks for any help!

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



what should be the high level architecture for building a multiplayer game like tictactoe

2011-10-21 Thread Bahata
Hi
I am very much new to GWT . I wanted to know about high level
architecture for developing a turn based multiplayer game using GWT
where I want to keep all the processing logic in client side and only
want the session management, player choosing and communicating of
player's moves to move to server side.

Say implementing the board game checkers is my objective.

I had already done that in swing but want to make it web based, and to
avoid javascript . The implementation had used many different java
design pattern implementations like observer observable interfaces etc
which would be
difficult to move to javascript.

Though the question might seem to come from a lazy person asking too
many things without exploring, would really be benefited if some one
helps.

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



DatePicker - different styles for different instances?

2011-10-21 Thread King_V
All,

Ok, I've used DatePicker, NOT with DateBox, to show a calendar and
allow selection.  No problem.

In order to get my own styles for some of the components, my own
project's .css has a few of the DatePicker css components in it.

First question:  What is .gwt-DatePicker used for?  What parts of the
DatePicker does it apply to?  What properties can be set there?

Second question: Far more important to me.  How do I get different
DatePicker looks?  I have .datePickerDay, .datePickerWeekendLabel, and
a few others in my own .css file.  I do NOT have .gwt-DatePicker in
it.  Most of my DatePickers are just fine, but there are one or two
places where I want it to look completely different - different
colors, different font sizes for the days in the month, the days of
the week across the top, and the month and year name, and so on.

How do I add/set styles for these without changing how the other
DatePickers look?

Thanks in advance.

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



[ERROR] [cimsapplication] - Line 113: No source code is available for type org.gwtcmis.model.restatom.AtomEntry; did you forget to inherit a required module?

2011-10-21 Thread Prat2511
Hi I am new to GWT

i was trying to run gwtcmis-sample. link : -
http://code.google.com/p/gwt-cmis/wiki/GwtCMISClientSample
i add all the jar file which is necessary for running this project in
lib.

when I run this Project
its show many error
[ERROR] [cimsapplication] - Line 113: No source code is available for
type org.gwtcmis.model.restatom.AtomEntry; did you forget to inherit a
required module?
[ERROR] [cimsapplication] - Line 130: No source code is available for
type org.gwtcmis.model.EnumBaseObjectTypeIds; did you forget to
inherit a required module?
..

when i try to inherit this in xml file  like this.

inherits name='com.gwt.model.restatom.AtomEntry'/
  inherits name='com.gwt.model.EnumBaseObjectTypeIds'/

i cant see the url 
http://127.0.0.1:/CIMSApplication.html?gwt.codesvr=127.0.0.1:9997
to run the Project.

but when i remove all the inherit from XML except   inherits
name='com.google.gwt.user.User'/
i can c the URL. but many errors like i mentioned above.

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



Re: How to test multiple interfaces of a widget in MVP ?

2011-10-21 Thread Patrick Julien
Make multiple methods, both returning the same value

interface ContactView {
HasValueBoolean getHasMobilePhone();

HasEnabled getMobilePhoneNumberEnabled();

HasValueString getMobilePhoneNumber();
}

in the implementation, both methods return the same TextField

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



Re: How to make button inactive state once it is clicked.

2011-10-21 Thread TreKing
On Fri, Oct 21, 2011 at 8:17 AM, suresh babu sureshgbab...@gmail.comwrote:

 mean while prior to onSuccess of this RPC I am showing loading Image.


Prior to onSuccess, also disable the button ...

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

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



Re: large celltable pagination question

2011-10-21 Thread Grant Rettke
http://googlewebtoolkit.blogspot.com/2008/11/profiling-gwt-application-performance.html

On Fri, Oct 21, 2011 at 10:32 AM, Uemit uemit.se...@gmail.com wrote:
 No, CellTable will only render the visible part.
 Fetching 500 rows from the server should take too long either.
 I assume that the slowness is not related to the rendering in the CellTable
 but probably due to fetching and parsing of the 500 rows because you don't
 see any difference when you render 5 rows or 500.
 So it clearly must be something else.
 There are 3 possible bottlenecks:

 Fetching the data from the backend: if you use JSON and don't transfer many
 fields then 500 rows shouldn't be a big issue (you can verfiy it by using
 Firebug and checking the payload size)
 Parsing the fetched data: Again with JSON it should be fast enough to parse
 500 rows (not sure about XML)
 Rendering the data in a CellTable: if there is no performance difference
 between 500 rows and 5 rows then the bottleneck must lie in one of the
 previous areas.

 I have no performance problems fetching around 2000 rows and displaying 50
 of them (using SimplePager).

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




-- 
http://www.wisdomandwonder.com/
ACM, AMA, COG, IEEE

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



Re: Serialization Alternatives

2011-10-21 Thread Bruno Sandivilli
Anyone?

2011/10/18 Bruno Sandivilli bruno.sandivi...@gmail.com

 Hi, i'm serializing my objects with GSON, but i'm thinking in make a
 pattern in my solution, so i'm trying to understand how the GWT-RPC
 Serializtion works. Anyone have a good explication? Or some code
 demonstrating it? Thanks

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



Re: large celltable pagination question

2011-10-21 Thread misty periard
Thanks very much for the info. It looks like my bottleneck is number 2.

On Fri, Oct 21, 2011 at 11:32 AM, Uemit uemit.se...@gmail.com wrote:

 No, CellTable will only render the visible part.
 Fetching 500 rows from the server should take too long either.
 I assume that the slowness is not related to the rendering in the CellTable
 but probably due to fetching and parsing of the 500 rows because you don't
 see any difference when you render 5 rows or 500.
 So it clearly must be something else.

 There are 3 possible bottlenecks:


1. Fetching the data from the backend: if you use JSON and don't
transfer many fields then 500 rows shouldn't be a big issue (you can verfiy
it by using Firebug and checking the payload size)
2. Parsing the fetched data: Again with JSON it should be fast enough
to parse 500 rows (not sure about XML)
3. Rendering the data in a CellTable: if there is no performance
difference between 500 rows and 5 rows then the bottleneck must lie in one
of the previous areas.


 I have no performance problems fetching around 2000 rows and displaying 50
 of them (using SimplePager).


  --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/4F6zBx7p3BkJ.

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


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



[gwt-visualization-api] Export chart to image

2011-10-21 Thread Renato Beserra
Hi guys,

My team is working on an application that uses Google Image Chart api to
generate a few charts. We are finishing a new analysis component and the
number of generated charts will increase a lot. So, we'd like to use a more
sofisticated solution. The new google visualization api appeared to be
perfect for us. But we noticed there is not a feature to export the SVG
chart as an image which is necessary for us.

We could continue to use the Image Chart Api to provide the export feature,
but the problem is that it seems to be deprecated. If we make the same call
to a ImageLineChart and to a LineChart, for example, we see that the labels
of the Image Chart are overlapped. Therefore, it doesn't seem smart to use
both apis.

So, I would like to know if there is a workaround for this problem.

I would also be thankful for suggestions of other non-flash solutions for
charts, that can be easily exported.

Thanks in advance.

[]'s



-- 
Renato Beserra Sousa

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



Hyperlinks in a celltable column

2011-10-21 Thread Ravi
How to get hyperlinks in a celltable column ??

I mean in plain html we could do something like below (I want exact
same result in gwt) -

table
  tr
 td
 a href=something click me /a
/td
/tr
/table

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



Re: GWT Designer fails under Eclipse 3.7 with latest update

2011-10-21 Thread Philippe Rostaing-Tayard
YES IT WORKS 
On my Debian Squeeze.

Thank you very much.

2011/10/20 Eric Clayberg (Google) clayb...@google.com

 Please update to the latest GWT Designer build.

 We have also added support for Ubuntu 11.10.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-web-toolkit/-/yEfH8bIeo48J.

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


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



Re: Place, history url does not change

2011-10-21 Thread Rikard Hultén
Thank you very much Thomas, when breaking on tokenForPlace in 
PlaceHistoryHandler I saw that it did not find a place for my token, 
although it was the correct token-string. Turned out I had declared the same 
tokenizer twice in my AppPlaceHistoryMapper (the places are called 
TaskListPlace and TaskListListPlace hehe).

I also did not expect the default place to get an empty history token, threw 
me off a bit.

Anyway, got it working by fixing the AppPlaceHistoryMapper. 

Thanks everybody!

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



Is there element.getComputedStyle()?

2011-10-21 Thread Brandon Donnelson
Does anybody know how I could get computed style on an element? Like what is 
the computed fontSize?

Brandon Donnelson
http://gwt-examples.googlecode.com

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



Re: Extract CSS Attributes from external CSS file

2011-10-21 Thread Brandon Donnelson
getStyleProperty worked good for me.

Thanks,
Brandon

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



Re: Serialization Exception for Integer !?!?

2011-10-21 Thread Kevin Jordan
What's actually getting serialized here?  It looks like it's also
inside a map and that it's also an array of ints inside the map.

On Oct 20, 4:21 pm, Eben Haber e...@haber.net wrote:
 Hi,

 Due to hardware problems, I set up a new server (RedHat) running
 TomCat for deploying my GWT apps.

 I installed Tomcat 5.5 (which I had before), installed a known-
 working .war file, and am getting the following exception when it
 runs.

 How can it be that it doesn't know how to serialize integer?  I
 imagine I have a configuration problem, but what?

 Thanks,

 -Eben Haber

 Oct 20, 2011 1:38:58 PM org.apache.catalina.core.ApplicationContext
 log
 SEVERE: Exception while dispatching incoming RPC call
 Throwable occurred:
 com.google.gwt.user.client.rpc.SerializationException: Type '[I' 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 =
 [I@34053405
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 ze(ServerSerializationStreamWriter.java:
 615)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
 Object(AbstractSerializationStreamWriter.java:
 126)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 zeValue(ServerSerializationStreamWriter.java:
 535)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 zeClass(ServerSerializationStreamWriter.java:
 705)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 zeImpl(ServerSerializationStreamWriter.java:
 744)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 ze(ServerSerializationStreamWriter.java:
 617)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
 Object(AbstractSerializationStreamWriter.java:
 126)
         at
 com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase 
 .serialize(Map_CustomFieldSerializerBase.java:
 51)
         at
 com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer 
 .serialize(HashMap_CustomFieldSerializer.java:
 40)
         at
 com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer 
 .serializeInstance(HashMap_CustomFieldSerializer.java:
 50)
         at
 com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer 
 .serializeInstance(HashMap_CustomFieldSerializer.java:
 28)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 zeImpl(ServerSerializationStreamWriter.java:
 736)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 ze(ServerSerializationStreamWriter.java:
 617)
         at
 com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write 
 Object(AbstractSerializationStreamWriter.java:
 126)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
 $ValueWriter$8.write(ServerSerializationStreamWriter.java:153)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 zeValue(ServerSerializationStreamWriter.java:
 535)
         at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali 
 zeClass(ServerSerializationStreamWriter.java:
 705)
 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to make button inactive state once it is clicked.

2011-10-21 Thread suresh babu
Any other technic other than disable and enable button.

On Fri, Oct 21, 2011 at 7:23 PM, TreKing treking...@gmail.com wrote:

 On Fri, Oct 21, 2011 at 8:17 AM, suresh babu sureshgbab...@gmail.comwrote:

 mean while prior to onSuccess of this RPC I am showing loading Image.


 Prior to onSuccess, also disable the button ...


 -
 TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
 transit tracking app for Android-powered devices


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




-- 
Regards
Suresh Babu G

http://www.accountingguru.in/

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



[gwt-contrib] Re: Keeps LazyPanelParser from breaking existing templates that use (issue1577804)

2011-10-21 Thread rchandia

LGTM

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

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


[gwt-contrib] Again restore r10697 now that LazyPanel support is more robust. (issue1579803)

2011-10-21 Thread rjrjr

Reviewers: rchandia,

Description:
Again restore r10697 now that LazyPanel support is more robust.

*** Original change description ***

Change default of UiBinder.useLazyWidgetBuilders to true, in
preparation for deleting the old code.


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

Affected files:
  M user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
  M user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
  M user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java


Index: user/src/com/google/gwt/uibinder/UiBinder.gwt.xml
===
--- user/src/com/google/gwt/uibinder/UiBinder.gwt.xml   (revision 10719)
+++ user/src/com/google/gwt/uibinder/UiBinder.gwt.xml   (working copy)
@@ -27,11 +27,11 @@
   define-configuration-property name=UiBinder.useSafeHtmlTemplates  
is-multi-valued=false/
   set-configuration-property name=UiBinder.useSafeHtmlTemplates  
value=true/


-  !-- UiBinder can be configured to use a new strategy that enables a  
faster
-   rendering mode and make some widgets lazily created. This is still  
experimental

-   but should be the default option in a soon future. --
+  !-- Set this property to false to revert to the old code gen strategy,
+and lose features like support for LazyPanel and forward references.  
This

+property will soon disappear. --
   define-configuration-property name=UiBinder.useLazyWidgetBuilders  
is-multi-valued=false/
-  set-configuration-property name=UiBinder.useLazyWidgetBuilders  
value=false/
+  set-configuration-property name=UiBinder.useLazyWidgetBuilders  
value=true/


   generate-with class=com.google.gwt.uibinder.rebind.UiBinderGenerator
 when-type-assignable  
class=com.google.gwt.uibinder.client.UiRenderer/

Index: user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	 
(revision 10719)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderGenerator.java	(working  
copy)

@@ -52,6 +52,7 @@
   private static final String LAZY_WIDGET_BUILDERS_PROPERTY  
= UiBinder.useLazyWidgetBuilders;


   private static boolean gaveSafeHtmlWarning;
+  private static boolean gaveLazyBuildersWarning;

   /**
* Given a UiBinder interface, return the path to its ui.xml file,  
suitable

@@ -212,7 +213,14 @@
   }

   private Boolean useLazyWidgetBuilders(MortalLogger logger,  
PropertyOracle propertyOracle) {
-return extractConfigProperty(logger, propertyOracle,  
LAZY_WIDGET_BUILDERS_PROPERTY, false);
+Boolean rtn = extractConfigProperty(logger, propertyOracle,  
LAZY_WIDGET_BUILDERS_PROPERTY, false);

+if (!gaveLazyBuildersWarning  !rtn) {
+  logger.warn(Configuration property %s is false. Deprecated code  
generation is in play.  +

+  This property will soon become a no-op.,
+  LAZY_WIDGET_BUILDERS_PROPERTY);
+  gaveLazyBuildersWarning = true;
+}
+return rtn;
   }

   private Boolean useSafeHtmlTemplates(MortalLogger logger, PropertyOracle  
propertyOracle) {

@@ -221,7 +229,8 @@

 if (!gaveSafeHtmlWarning  !rtn) {
   logger.warn(Configuration property %s is false! UiBinder SafeHtml  
integration is off, 
-  + leaving your users more vulnerable to cross-site scripting  
attacks.,
+  + leaving your users more vulnerable to cross-site scripting  
attacks. This property  +
+  will soon become a no-op, and SafeHtml integration will always  
be on.,

   XSS_SAFE_CONFIG_PROPERTY);
   gaveSafeHtmlWarning = true;
 }
Index: user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java
===
--- user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(revision  
10719)
+++ user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java	(working  
copy)

@@ -1006,7 +1006,7 @@
*/
   public String tokenForSafeUriExpression(XMLElement source, String  
expression) {

 if (!useSafeHtmlTemplates) {
-  return tokenForStringExpression(source, expression + .asString());
+  return tokenForStringExpression(source, expression);
 }

 htmlTemplates.noteUri(expression);


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


[gwt-contrib] Re: Again restore r10697 now that LazyPanel support is more robust. (issue1579803)

2011-10-21 Thread rchandia

LGTM

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

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