Canvas dynamical size?

2013-01-18 Thread membersound
Hi,

how can I size a Canvas dynamically? I have a DockLayoutPanel, and a Canvas 
inside 
the g:center element.
I use canvas.setSize(100%, 100%) to make it fill the whole center area.

BUT how can I setCoordinateSpaceHeight() and width? How do I know the size 
of the canvas inside the center element?

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



Canvas dynamical size?

2013-01-18 Thread Thomas Broyer
Wrap it in a Composite implementing RequiresResize and do your resizing stuff 
in the onResize() method.

-- 
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/-/IsNVMJDjQlcJ.
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 issues on Chrome 24

2013-01-18 Thread Jean-Marc
thanks for the answer!

-- 
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/-/5ZdGQfMN44IJ.
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: Canvas dynamical size?

2013-01-18 Thread membersound
I alread though about extending ResizeComposite as a Wrapper for the 
canvas. But it gives me the following error:
java.lang.AssertionError: LayoutComposite requires that its wrapped widget 
implement RequiresResize


Else if I use:
 extends Composite implements RequiresResize {
@Override
public void onResize() {
System.out.println(on resize);
}
}

then nothing happens if I resize the browser. No sysout.


2nd problem: how do I know the correct setCoordinateSpaceHeight() that I 
have to set? Where can I get it from? I know Window.getClientHeight() but 
this would give me the whole window size. I just need the one for the 
canvas, or rather the size of the g:center area where the canvas should 
take 100% of the size...

Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/iJN18dIhlSQJ.
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: Canvas dynamical size?

2013-01-18 Thread Thomas Broyer
getWidth() / getHeight() ?
Panels in a DockLayoutPanel (or any layout panel) are always resized to the 
layer dimensions, so you shouldn't even need the 100% CSS rules. The idea 
would be to get the external dimensions of the widget and apply them as 
the coordinate-space dimensions of the canvas.

On Friday, January 18, 2013 2:11:55 PM UTC+1, membersound wrote:

 I alread though about extending ResizeComposite as a Wrapper for the 
 canvas. But it gives me the following error:
 java.lang.AssertionError: LayoutComposite requires that its wrapped widget 
 implement RequiresResize


 Else if I use:
  extends Composite implements RequiresResize {
 @Override
 public void onResize() {
 System.out.println(on resize);
 }
 }

 then nothing happens if I resize the browser. No sysout.


 2nd problem: how do I know the correct setCoordinateSpaceHeight() that I 
 have to set? Where can I get it from? I know Window.getClientHeight() but 
 this would give me the whole window size. I just need the one for the 
 canvas, or rather the size of the g:center area where the canvas should 
 take 100% of the size...

 Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Qj031sUs25wJ.
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: Canvas dynamical size?

2013-01-18 Thread membersound
OK so assuming I have a wrapper class for the canvas that is placed in the 
center element, I can get the size of the center-panel by:
this.getElement().getParentElement().getClientWidth();

I don't know if this is the proper way, but at least it works.


BUT again I could not get the RequiresResize to work.
What I succeeded is to attach a ResizeHandler to the whole browser window 
like:
Window.addResizeHandler(new ResizeHanlder() {...});

This works, but is this a good idea to attach something to the whole 
window? Should I be able to just attach a resize handler to the canvas 
element (or its wrapper)?

-- 
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/-/z8LfNEqL3vYJ.
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: Canvas dynamical size?

2013-01-18 Thread Thomas Broyer


On Friday, January 18, 2013 2:57:17 PM UTC+1, membersound wrote:

 OK so assuming I have a wrapper class for the canvas that is placed in the 
 center element, I can get the size of the center-panel by:
 this.getElement().getParentElement().getClientWidth();

 I don't know if this is the proper way, but at least it works.


 BUT again I could not get the RequiresResize to work.


Can you share your code? (the whole widget hierarchy up to the 
RootLayoutPanel)
The Showcase sample uses DockLayoutPanel and it seems to Just Work™ 
(there's an inner DockLayoutPanel nested in the outer DockLayoutPanel, and 
it seems to correctly resize its inner layers)

-- 
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/-/61ikWPVE-fAJ.
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 directly make CSS reference to image resources?

2013-01-18 Thread membersound
How do I have to make reference to images under src/main/resources/icons?

In my css (placed under src/main/webapp):

.my-class {
background: url(../resources/icons/image.gif);
}


I'm constantly getting [WARN] 404 - GET 
/resources/icons/validation_error_icon.gif (127.0.0.1) 1427 bytes.

-- 
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/-/0BgPq75vKfwJ.
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: Canvas dynamical size?

2013-01-18 Thread membersound
Could you give me the link of your working example?

My layout looks like this (stripped down to the canvas concerning elements):

g:SplitLayoutPanel
 g:center
  g:DockLayoutPanel
   g:center
g:SplitLayoutPanel
 g:center
  g:DockLayoutPanel
   g:center
c:Canvas

-- 
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/-/x8pHItXXwawJ.
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: RequestFactory - persist method that returns the saved Entity.

2013-01-18 Thread bloo
Thanks!

On Thursday, January 17, 2013 6:54:33 PM UTC-5, Thomas Broyer wrote:

 Issue filed at 
 https://code.google.com/p/google-web-toolkit/issues/detail?id=7900

 On Friday, January 18, 2013 12:48:13 AM UTC+1, Thomas Broyer wrote:

 OK, it indeed looks like a bug.

 This code fails with the Unfrozen proxy assertion error:

 delayTestFinish(DELAY_TEST_FINISH);

 SimpleFooRequest context = simpleFooRequest();
 final SimpleFooProxy foo = context.create(SimpleFooProxy.class);
 final SimpleBarProxy bar = context.create(SimpleBarProxy.class);
 foo.setBarField(bar);
 RequestSimpleFooProxy fooReq = 
 context.persistAndReturnSelf().using(foo).with(barField);
 fooReq.fire(new ReceiverSimpleFooProxy() {

   @Override
   public void onSuccess(SimpleFooProxy returned) {
 simpleFooRequest().edit(returned);

 finishTestAndReset();
   }
 });

 The same code without the SimpleBarProxy works.

 I'm currently debugging it. Will file an issue too.

 On Thursday, January 17, 2013 10:54:17 PM UTC+1, bloo wrote:

 So when I comment out the refresh via find(stableId()) after receiving 
 persist()'s response EntityProxy and simply use the response EntityProxy 
 as-is, the error gets thrown when I attempt to re-edit it.

 It's not thrown when checkStreamsNotCrossed processes the parent 
 EntityProxy (called CatalogItemProxy), but one of it's children (which is 
 created at the same time, they have a 1-to-1 relationship with each other) 
 called ProductProxy (path=product). This was unexpected to me.

 Here's the wire data *without* the refresh via find(stableId())

  
 {F:com.plovgh.web.shared.bindery.PlovghServiceRequestFactory,I:[{O:gYfjUQeKypl3aT70L$lmyH$je_Q=,P:[[]]}]}

  {S:[true],I:[null]}

  
 {F:com.plovgh.web.shared.bindery.PlovghInstanceRequestFactory,I:[{O:mZy6R_9WbCm4npb8ui4de53bLjM=,P:[{R:1,C:5,T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=}],R:[product.type,images]}],O:[{O:PERSIST,R:1,C:5,T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,P:{product:{R:1,C:6,T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=},vendor:{S:IjQi,T:NMnlePAPPa8$chg1XXK6I_qmRTc=},defaultQuantity:100,defaultUnit:lb.,name:foo,defaultPrice:10,images:[]}},{O:PERSIST,R:1,C:6,T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,P:{type:{S:IjEi,T:vCoN_GmihaJOTBwUCW2N_JPjlaY=},name:foo}},{O:UPDATE,S:IjEi,T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,V:MC4w}]}

  
 {S:[true],O:[{T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,V:MC4w,P:{product:{T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,S:Ijk0Ig==},id:94,defaultQuantity:100,name:foo,images:[],defaultUnit:lb.,active:true,defaultPrice:10},S:Ijk0Ig==,C:5,O:PERSIST},{T:NMnlePAPPa8$chg1XXK6I_qmRTc=,V:Ni4w,S:IjQi,O:UPDATE},{T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,V:MC4w,P:{name:foo,type:{T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,S:IjEi}},S:Ijk0Ig==,C:6,O:PERSIST},{T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,V:MC4w,P:{name:Other},S:IjEi,O:UPDATE}],I:[{T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,S:Ijk0Ig==}]}


 Here's another persist request with a subsequent refresh:


  
 {F:com.plovgh.web.shared.bindery.PlovghServiceRequestFactory,I:[{O:gYfjUQeKypl3aT70L$lmyH$je_Q=,P:[[]]}]}

  {S:[true],I:[null]}

  
 {F:com.plovgh.web.shared.bindery.PlovghInstanceRequestFactory,I:[{O:mZy6R_9WbCm4npb8ui4de53bLjM=,P:[{R:1,C:1,T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=}],R:[product.type,images]}],O:[{O:PERSIST,R:1,C:1,T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,P:{product:{R:1,C:2,T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=},vendor:{S:IjQi,T:NMnlePAPPa8$chg1XXK6I_qmRTc=},defaultQuantity:100,defaultUnit:lbs.,name:foo,defaultPrice:10,images:[]}},{O:PERSIST,R:1,C:2,T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,P:{type:{S:IjEi,T:vCoN_GmihaJOTBwUCW2N_JPjlaY=},name:foo}},{O:UPDATE,S:IjEi,T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,V:MC4w}]}

  
 {S:[true],O:[{T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,V:MC4w,P:{product:{T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,S:Ijk3Ig==},id:97,defaultQuantity:100,name:foo,images:[],defaultUnit:lbs.,active:true,defaultPrice:10},S:Ijk3Ig==,C:1,O:PERSIST},{T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,V:MC4w,P:{name:foo,type:{T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,S:IjEi}},S:Ijk3Ig==,C:2,O:PERSIST},{T:NMnlePAPPa8$chg1XXK6I_qmRTc=,V:Ni4w,S:IjQi,O:UPDATE},{T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,V:MC4w,P:{name:Other},S:IjEi,O:UPDATE}],I:[{T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,S:Ijk3Ig==}]}

  
 {F:com.plovgh.web.shared.bindery.PlovghInstanceRequestFactory,I:[{O:?,P:[{S:Ijk3Ig==,T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=}],R:[product.type,images]}]}

  
 {S:[true],O:[{T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,V:MC4w,P:{product:{T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,S:Ijk3Ig==},id:97,defaultQuantity:100,name:foo,images:[],defaultUnit:lbs.,active:true,defaultPrice:10.00},S:Ijk3Ig==,O:UPDATE},{T:UCoe6wjm6hP1YdFtuSowpMxJ0ow=,V:MC4w,P:{name:foo,type:{T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,S:IjEi}},S:Ijk3Ig==,O:UPDATE},{T:vCoN_GmihaJOTBwUCW2N_JPjlaY=,V:MC4w,P:{name:Other},S:IjEi,O:UPDATE}],I:[{T:lUUyvXo8bCZWuM6Ew6LR72oN2nQ=,S:Ijk3Ig==}]}



 On Thursday, January 17, 2013 4:24:26 AM UTC-5, Thomas Broyer wrote:

 Just noticed: you're saying you have an Unfrozen bean with null 
 RequestContext assertion error?
 If that's the case (wrt AutoBean has been frozen error as 

TreeGrid or TableGrid?

2013-01-18 Thread Dmitry Tikhomirov
Hi All, 

I need any advice how to do that with GWT.
Its pretty easy with GXT but i cant find out how todo with gwt
Thanks! 

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



RMI to GWT

2013-01-18 Thread Atef Chorfi
I have project developed in java RMI, I want to implement in GWT, give me a 
simple example of transformation RMI to GWT.
Thanks.

-- 
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/-/6qIIVEnL6HAJ.
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 listbox text color, selection

2013-01-18 Thread Nicholas DiMucci
*blows cobwebs off this thread*

Can anyone answer this question? I'm looking to change the font color of 
individual items within a ListBox.

On Thursday, June 12, 2008 3:27:03 PM UTC-4, mbracken wrote:

 how do you set the styles on individual elements? 

 On Jun 12, 9:28 am, jhulford jhulf...@gmail.com wrote: 
  You CAN set styles on individual option elements and it works fine in 
  Firefox and, I think, most other browsers except IE6. 
  
  On Jun 11, 12:14 pm, mbracken levi.brac...@gmail.com wrote: 
  
  
  
   the listbox doesn't provide the level of detail to change the style on 
   an individual element or to make individual items unselectable.   you 
   can set a style for the selected item. 
  
   it sounds like you'll need to extend the listbox and add your own 
   functionality to accomplish what you're trying to do. 
  
   On Jun 11, 12:03 pm, kevinSC kevinshuo.c...@gmail.com wrote: 
  
is there a way to change the text color of individual elements in a 
listbox? also, is there a way to set an element in the listbox NOT 
selectable?- Hide quoted text - 
  
  - Show quoted text -

-- 
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/-/Gbq_F7IB0HUJ.
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: IE10 support in Gwt

2013-01-18 Thread colin
I have a Windows 8 and IE 10, and I can develop GWT apps with no problem, 
except that don't use JDK 1.7.

On Wednesday, January 16, 2013 11:34:10 AM UTC-5, Erik Sapir wrote:

 This will not work for me - i use objects that are not supported by IE 
 earlier than 10

 On Wednesday, January 16, 2013 6:21:10 PM UTC+2, Ed wrote:

 In the meantime, just force IE10 to render it as IEXX, like IE9. Do this 
 by including the following in your web page:
  meta http-equiv=X-UA-Compatible content=IE=7,8,9

 BTW: it's always good to (always) put this in your website, to ensure 
 unpredictable issues when IE comes out with a new version. I had that in 
 the (past) and people started calling me that the website didn't work 
 anymore (IE10)... 
 In this way, you are always in control, and not IE...

 - Ed



-- 
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/-/tcg-7ReKQPcJ.
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: AutoBean with Subclasses

2013-01-18 Thread vb8190
Did you get solution to this problem?

On Tuesday, July 31, 2012 3:20:21 AM UTC-4, rkulisas wrote:

 Hi, 

 I have 4 interfaces:

 public interface Ainterface{
getName()/setName();
getShape()/setShape();
 
 }

 public interface Binterface extends Ainterface{
getWidth()/setWidth();
getHeight()/setHeight();
 ...
 }
 public interface Cinterface extends Ainterface{ 
getRadius()/setRadius();
 ... 
 }
 public interface Dinterface {
Ainterface getA();
void setA(Ainterface a);
 ...
 }

 I have included all interfaces in my AutoBeanFactory.

 Question: when I decode/encode Dinterface, how do I know if Ainterface is 
 extended by Binterface or Cinterface? How does AutoBean support 
 polymorphism? 

 To make it easier, I can add a variable (for ex, shape) in Ainterface to 
 indicate which Binterface or Cinterface I have and then cast Ainterface to 
 Binterface/Cinterface. However, I run into ClassCastException. Should I 
 have separate interfaces; one that consists Binterface and one consists 
 Cinterface? Is there other solution to this problem? 

 Thank you,


-- 
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/-/8WhkOs0iwTAJ.
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: RequestFactory Could not parse payload: payload[0] = N

2013-01-18 Thread El Mentecato Mayor
I should have thought of that, sorry. Unfortunately (fortunately for me), I 
don't see the error anymore. Lots of things changed in the mean time 
(source code and db schema) as this project is under heavy development. 
Yes, I could go back-trace using my repository and maybe make it fail 
again, but time is a scarce commodity, so I choose to continue development.

I did notice one anomaly the day it happened, not sure it's related to the 
issue; I had a copy of a src directory under my WEB-INF folder, (I blame 
eclipse, but who knows, could have been user-error; me), which I deleted. 
I'll make sure to capture the payload if I see this again.


On Wednesday, January 16, 2013 1:47:11 PM UTC-5, Thomas Broyer wrote:

 Would be great if any of you could log the request payload when this error 
 happens.
 In the mean time, we might want to modify the RequestFactoryServlet to log 
 the payload when there's an unrecoverable error, in addition to the 
 exception.
 Could you please open an issue? (if there's none already)

 On Wednesday, January 16, 2013 7:08:44 PM UTC+1, El Mentecato Mayor wrote:

 Just saw this error myself as well, slightly different message:

 Unexpected error: java.lang.RuntimeException: Could not parse payload: 
 payload[0] = I

 using GWT 2.5 and no GAE. Stacktrace is exactly the same though. Don't 
 know why or what it means, just that I get it so far when a specific 
 request is made. Has anybody found out what this means?

 On Monday, January 14, 2013 11:17:27 AM UTC-5, Nick Siderakis wrote:

 Hey Sydney, I've been seeing the same error message recently. Did you 
 figure it out?


 On Saturday, July 28, 2012 3:46:00 PM UTC-4, Sydney wrote:

 After deploying my app on appengine, I get the following exception: 

 com.google.web.bindery.requestfactory.server.RequestFactoryServlet doPost: 
 Unexpected error
 java.lang.RuntimeException: Could not parse payload: payload[0] = N
 at 
 com.google.web.bindery.autobean.vm.impl.JsonSplittable.create(JsonSplittable.java:70)
 at 
 com.google.web.bindery.autobean.shared.impl.StringQuoter.create(StringQuoter.java:46)
 at 
 com.google.web.bindery.autobean.shared.ValueCodex$Type$7.encode(ValueCodex.java:122)
 at 
 com.google.web.bindery.autobean.shared.ValueCodex.encode(ValueCodex.java:315)
 at 
 com.google.web.bindery.autobean.shared.impl.AutoBeanCodexImpl$ValueCoder.extractSplittable(AutoBeanCodexImpl.java:500)
 at 
 com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.setProperty(AbstractAutoBean.java:277)
 at 
 com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.setProperty(ProxyAutoBean.java:253)
 at 
 com.google.web.bindery.autobean.vm.impl.BeanPropertyContext.set(BeanPropertyContext.java:44)
 at 
 com.google.web.bindery.requestfactory.server.Resolver$PropertyResolver.visitValueProperty(Resolver.java:154)
 at 
 com.google.web.bindery.autobean.vm.impl.ProxyAutoBean.traverseProperties(ProxyAutoBean.java:289)
 at 
 com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166)
 at 
 com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101)
 at 
 com.google.web.bindery.requestfactory.server.Resolver.resolveClientValue(Resolver.java:395)
 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:483)
 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:225)
 at 
 com.google.web.bindery.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:127)
 at 
 com.google.web.bindery.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:133)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)

 Any idea of what the exception means? Thanks



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



ONLINE DOTNET TRAINING

2013-01-18 Thread mytranings
HI,
 PLEASE FIND THE BELOW LINK FOR .NET ONLINE TRAINING AND PROJECT SUPPORT.
http://onlinenettrainings.blogspot.com/
PLEASE FEEL FREE TO CONTACT FOR ANY QUERIES TO BELOW MAIL ID
rudrajayku...@gmail.com
THANK YOU
AJAY KUMAR



-- 
You received 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] Change in gwt[master]: Proxy IDs have to be the same for a given proxy in the respo...

2013-01-18 Thread Thomas Broyer

Thomas Broyer has uploaded a new change for review.

  https://gwt-review.googlesource.com/1770


Change subject: Proxy IDs have to be the same for a given proxy in the  
response payload.

..

Proxy IDs have to be the same for a given proxy in the response payload.

More specifically, IDs of the operation messages have to be the same as
those of the IdMessages for the same proxy, so they're deserialized into
SimpleProxyIds having the same hashCode and comparing equal: if the ID
wasEphemeral, it has to contain both the client and server IDs in all
places, not only in operation messages.

Fixes issue 7900

Change-Id: I6c2ccbcfc67323e9e5cae214b0d101ddfc1a2298
---
M user/src/com/google/web/bindery/requestfactory/server/RequestState.java
M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java

2 files changed, 66 insertions(+), 1 deletion(-)



diff --git  
a/user/src/com/google/web/bindery/requestfactory/server/RequestState.java  
b/user/src/com/google/web/bindery/requestfactory/server/RequestState.java

index 93e7078..c1d698a 100644
---  
a/user/src/com/google/web/bindery/requestfactory/server/RequestState.java
+++  
b/user/src/com/google/web/bindery/requestfactory/server/RequestState.java

@@ -157,7 +157,8 @@
   /**
* EntityCodex support. This method is identical to
* {@link IdFactory#getHistoryToken(SimpleProxyId)} except that it
-   * base64-encodes the server ids.
+   * base64-encodes the server ids and adds client ids for stable ids
+   * that were ephemeral.
* p
* XXX: Merge this with AbstsractRequestContext's implementation
*/
@@ -172,6 +173,9 @@
   ref.setStrength(Strength.EPHEMERAL);
   ref.setClientId(stableId.getClientId());
 } else {
+  if (stableId.wasEphemeral()) {
+ref.setClientId(stableId.getClientId());
+  }

ref.setServerId(SimpleRequestProcessor.toBase64(stableId.getServerId()));

 }
 return AutoBeanCodex.encode(bean);
diff --git  
a/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java  
b/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java

index 90dcd71..caf6670 100644
---  
a/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java
+++  
b/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java

@@ -16,6 +16,7 @@
 package com.google.web.bindery.requestfactory.gwt.client;

 import com.google.web.bindery.autobean.shared.AutoBeanCodex;
+import com.google.web.bindery.autobean.shared.AutoBeanUtils;
 import com.google.web.bindery.requestfactory.shared.EntityProxy;
 import com.google.web.bindery.requestfactory.shared.EntityProxyChange;
 import com.google.web.bindery.requestfactory.shared.EntityProxyId;
@@ -271,6 +272,63 @@
 assertEquals(2, handler.updateEventCount); // two bars persisted.
 assertEquals(4, handler.totalEventCount);
 finishTestAndReset();
+  }
+});
+  }
+
+  /**
+   * See https://code.google.com/p/google-web-toolkit/issues/detail?id=7900
+   */
+  public void testCreatePersistCascadingAndReturnSelfEditWithReferences() {
+delayTestFinish(DELAY_TEST_FINISH);
+
+SimpleFooRequest context = simpleFooRequest();
+SimpleFooProxy foo = context.create(SimpleFooProxy.class);
+SimpleBarProxy bar = context.create(SimpleBarProxy.class);
+foo.setBarField(bar);
+RequestSimpleFooProxy fooReq =  
context.persistCascadingAndReturnSelf()

+.using(foo).with(barField);
+fooReq.fire(new ReceiverSimpleFooProxy() {
+
+  @Override
+  public void onSuccess(SimpleFooProxy returned) {
+assertTrue(AutoBeanUtils.getAutoBean(returned).isFrozen());
+ 
assertTrue(AutoBeanUtils.getAutoBean(returned.getBarField()).isFrozen());

+
+simpleFooRequest().edit(returned);
+
+finishTestAndReset();
+  }
+});
+  }
+
+  /**
+   * See https://code.google.com/p/google-web-toolkit/issues/detail?id=7900
+   */
+  public void testCreateReferencePersistCascadingAndReturnSelfEdit() {
+delayTestFinish(DELAY_TEST_FINISH);
+
+simpleFooRequest().findSimpleFooById(1L).fire(new  
ReceiverSimpleFooProxy() {

+  @Override
+  public void onSuccess(SimpleFooProxy response) {
+SimpleFooRequest context = simpleFooRequest();
+SimpleFooProxy foo = context.edit(response);
+SimpleBarProxy bar = context.create(SimpleBarProxy.class);
+foo.setBarField(bar);
+RequestSimpleFooProxy fooReq =  
context.persistCascadingAndReturnSelf()

+.using(foo).with(barField);
+fooReq.fire(new ReceiverSimpleFooProxy() {
+
+  @Override
+  public void onSuccess(SimpleFooProxy returned) {
+assertTrue(AutoBeanUtils.getAutoBean(returned).isFrozen());
+ 
assertTrue(AutoBeanUtils.getAutoBean(returned.getBarField()).isFrozen());

+
+

[gwt-contrib] Change in gwt[master]: Proxy IDs have to be the same for a given proxy in the respo...

2013-01-18 Thread Thomas Broyer

Thomas Broyer has posted comments on this change.

Change subject: Proxy IDs have to be the same for a given proxy in the  
response payload.

..


Patch Set 1:

The issue is actually triggered as soon as an entity created within the  
request context is referenced by one of the returned proxies. The reason is  
that the IdMessage used to represent the reference, while conceptually  
equivalent to the OperationMessage for the persisted proxy, is not  
*technically* equivalent: the OperationMessage has a clientId which is  
lacking in the IdMessage, so they deserialize to objects with different  
hashCodes and looking up the object by ID in the map of returned proxies  
thus fail, and we end up creating two proxies, including one that's  
never finalized (created, never populated, makeImmutable never called)


--
To view, visit https://gwt-review.googlesource.com/1770
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I6c2ccbcfc67323e9e5cae214b0d101ddfc1a2298
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Thomas Broyer t.bro...@gmail.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: No

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


[gwt-contrib] Change in gwt[master]: Proxy IDs have to be the same for a given proxy in the respo...

2013-01-18 Thread Thomas Broyer

Thomas Broyer has uploaded a new patch set (#2).

Change subject: Proxy IDs have to be the same for a given proxy in the  
response payload.

..

Proxy IDs have to be the same for a given proxy in the response payload.

More specifically, IDs of the operation messages have to be the same as
those of the IdMessages for the same proxy, so they're deserialized into
SimpleProxyIds having the same hashCode and comparing equal: if the ID
wasEphemeral, it has to contain both the client and server IDs in all
places, not only in operation messages.

Fixes issue 7900

Change-Id: I6c2ccbcfc67323e9e5cae214b0d101ddfc1a2298
---
M user/src/com/google/web/bindery/requestfactory/server/RequestState.java
M  
user/src/com/google/web/bindery/requestfactory/shared/impl/AbstractRequestContext.java
M  
user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryTest.java

3 files changed, 68 insertions(+), 1 deletion(-)


--
To view, visit https://gwt-review.googlesource.com/1770
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I6c2ccbcfc67323e9e5cae214b0d101ddfc1a2298
Gerrit-PatchSet: 2
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Thomas Broyer t.bro...@gmail.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com

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


[gwt-contrib] Re: UiBinder problem on WidgetBasedUi.ui.xml when building GWT from source

2013-01-18 Thread Thomas Broyer
I believe this is a bug in the Google Plugin for Eclipse; you can simply 
ignore it (and/or report it in the GPE issue tracker).

Absolute paths weren't accepted in ui:style until recently in GWT: see 
http://code.google.com/p/google-web-toolkit/issues/detail?id=7230


On Friday, January 18, 2013 6:18:50 PM UTC+1, n.gia...@gmail.com wrote:

 Title says it all. I've set up an Eclipse workspace as explained 
 herehttp://code.google.com/p/google-web-toolkit/source/browse/trunk/eclipse/README.txt.
  
 After building the workspace I get this error:

 Description Resource Path Location Type
 CSS file com/google/gwt/uibinder/test/client/Menu.css is missing 
 WidgetBasedUi.ui.xml 
 /gwt-user/core/test/com/google/gwt/uibinder/test/client line 110 Google 
 Web Toolkit UiBinder Problem

 *And this is the corresponding snippet in WidgetBasedUi.ui.xml*

 ui:style field='myStyle' src='WidgetBasedUi.css 
 com/google/gwt/uibinder/test/client/Menu.css' 
   type='com.google.gwt.uibinder.test.client.WidgetBasedUi.Style' 
   .menuBar { 
 font-family: sans-serif; 
   } 
 /ui:style

 When removing the package prefix from Menu.css, the problem goes away. Any 
 ideas why this is happening?


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

[gwt-contrib] Change in gwt[master]: Fix an infinite loop in RPC deserialization due to type vari...

2013-01-18 Thread Brian Slesinsky

Hello John A. Tamplin, Thomas Broyer,

I'd like you to reexamine a change.  Please visit

https://gwt-review.googlesource.com/1410

to look at the new patch set (#3).

Change subject: Fix an infinite loop in RPC deserialization due to type  
variable cycles.

..

Fix an infinite loop in RPC deserialization due to type variable cycles.

Also, add RPCTypeCheck to a test suite so it actually runs, and fix a test
that now receives AssertionError instead of ArrayIndexOutOfBounds.

Fixes issue 7779.
Based on a patch by ja...@wetheinter.net

Change-Id: I88c2774622d22b982346d1ffe5cf12f5d3c96d92
Review-Link: https://gwt-review.googlesource.com/#/c/1410/
---
M user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java
M user/test/com/google/gwt/user/RpcSuiteNoBrowser.java
M user/test/com/google/gwt/user/server/rpc/RPCTypeCheckTest.java
A user/test/com/google/gwt/user/server/rpc/examples/TypeVariableCycle.java
4 files changed, 174 insertions(+), 15 deletions(-)


--
To view, visit https://gwt-review.googlesource.com/1410
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I88c2774622d22b982346d1ffe5cf12f5d3c96d92
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: James Nelson ja...@wetheinter.net
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: James Nelson ja...@wetheinter.net
Gerrit-Reviewer: John A. Tamplin j...@jaet.org
Gerrit-Reviewer: Matthew Dempsky mdemp...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com

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


[gwt-contrib] Change in gwt[master]: Fix an infinite loop in RPC deserialization due to type vari...

2013-01-18 Thread Brian Slesinsky

Brian Slesinsky has posted comments on this change.

Change subject: Fix an infinite loop in RPC deserialization due to type  
variable cycles.

..


Patch Set 3:

I rewrote SerializabilityUtil.findActualType() to detect cycles and came up  
with a slightly more elaborate test case. Please take a look.


--
To view, visit https://gwt-review.googlesource.com/1410
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I88c2774622d22b982346d1ffe5cf12f5d3c96d92
Gerrit-PatchSet: 3
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: James Nelson ja...@wetheinter.net
Gerrit-Reviewer: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-Reviewer: James Nelson ja...@wetheinter.net
Gerrit-Reviewer: John A. Tamplin j...@jaet.org
Gerrit-Reviewer: Matthew Dempsky mdemp...@google.com
Gerrit-Reviewer: Thomas Broyer t.bro...@gmail.com
Gerrit-HasComments: No

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


[gwt-contrib] Re: Update the cell table builder to allow for rendering the cell attribute somewhere other than the... (issue1879803)

2013-01-18 Thread goktug

On 2013/01/18 20:17:50, arobison wrote:

I like the idea of making the change in

AbstractCellTable#onBrowserEvent2 - it

cuts out a lot of unnecessary stuff and everyone who uses an HTML

table

implementation will get the benefit immediately (without having to

extend a new

table builder).  I'll go ahead and make that update.



Great. Thanks for improving this.


With everything else getting reworked, I don't think my updates for
isKeyboardSelectable will be necessary any more.  That piece was only

necessary

because I moved where the cell attribute was getting rendered in some

cases.  If

you think its still beneficial to add isKeyboardSelectable to the API

then I'll

leave it in, but I no longer have any specific need for it.


Then let's wait until someone else asks for the feature, no need to
change the API right now.



On 2013/01/17 23:46:43, goktug wrote:
 isKeyboardSelectable looks like a good addition to API for

differentiating

 between keyboard navigable and mouse clickable. Although putting it

into

 CellTable is an incompatible change, we can easily fix the only two

usages in

 google3 and I don't expect many direct implementations outside.

Default

 implementation in AbstractCellTableBuilder will be helpful for other

cases.


 For the rest of the changes; I'm not so sure about them.
 Based what I get from change history, the rendering of the cell

attribute in

the
 content part might be related to IE support.
 Perhaps what you can do is in AbstractCellTable#onBrowserEvent2,

instead of

 starting search from 'target', you can start from
'target.getFirstChildElement'
 if target is a TD. That might solve your problem.

 On 2013/01/07 01:21:24, tbroyer wrote:
  Note: this seems to be a fix for issue 7508.
  https://code.google.com/p/google-web-toolkit/issues/detail?id=7508
 
 



http://gwt-code-reviews.appspot.com/1879803/diff/1/user/src/com/google/gwt/user/cellview/client/ExpandedCellTableBuilder.java

  File


user/src/com/google/gwt/user/cellview/client/ExpandedCellTableBuilder.java

  (right):
 
 



http://gwt-code-reviews.appspot.com/1879803/diff/1/user/src/com/google/gwt/user/cellview/client/ExpandedCellTableBuilder.java#newcode2

 


user/src/com/google/gwt/user/cellview/client/ExpandedCellTableBuilder.java:2:

 *
  Copyright 2012 Google Inc.
  Aren't we in 2013 already? ;-)




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

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


[gwt-contrib] Change in gwt[master]: Stop using prefixed API's in AnimationScheduler by default. ...

2013-01-18 Thread Brian Slesinsky

Brian Slesinsky has uploaded a new change for review.

  https://gwt-review.googlesource.com/1780


Change subject: Stop using prefixed API's in AnimationScheduler by default.  
Firefox and Safari will use the Timer-based implementation. For Chrome we  
can use requestAnimationFrame because it's unprefixed starting in Chrome 24.

..

Stop using prefixed API's in AnimationScheduler by default.
Firefox and Safari will use the Timer-based implementation. For Chrome
we can use requestAnimationFrame because it's unprefixed starting in
Chrome 24.

Since Chrome and Safari are in the same permutation, a future version of  
Safari
that adds the unprefixed API will automatically pick up  
requestAnimationFrame

once it's unprefixed. I attempted to avoid depending on any details of the
JavaScript API (it's mostly based on the Mozilla implementation) but can't
predict what the final standard will be, so it still seems risky. Perhaps we
should test specifically for Chrome?

Keep in mind that some apps built with GWT 2.5.1 will be around for a long  
time.


(Not tested yet.)

Change-Id: I3011dceab489871a5864eed1ece47ec850d82425
---
M user/src/com/google/gwt/animation/Animation.gwt.xml
M  
user/src/com/google/gwt/animation/client/AnimationSchedulerImplMozilla.java

A user/src/com/google/gwt/animation/client/AnimationSchedulerImplNative.java
M user/src/com/google/gwt/animation/client/AnimationSchedulerImplWebkit.java
4 files changed, 97 insertions(+), 2 deletions(-)



diff --git a/user/src/com/google/gwt/animation/Animation.gwt.xml  
b/user/src/com/google/gwt/animation/Animation.gwt.xml

index bc2a47c..8e1f752 100644
--- a/user/src/com/google/gwt/animation/Animation.gwt.xml
+++ b/user/src/com/google/gwt/animation/Animation.gwt.xml
@@ -29,14 +29,31 @@
   /replace-with

   !-- Implementation based on mozRequestAnimationFrame --
+  !-- Disabled by default because it uses a prefixed API. --
+!--
   replace-with  
class=com.google.gwt.animation.client.AnimationSchedulerImplMozilla
 when-type-is  
class=com.google.gwt.animation.client.AnimationScheduler/

 when-property-is name=user.agent value=gecko1_8/
   /replace-with
+--

   !-- Implementation based on webkitRequestAnimationFrame --
+  !-- Disabled by default because it uses a prefixed API. --
+!--
   replace-with  
class=com.google.gwt.animation.client.AnimationSchedulerImplWebkit
 when-type-is  
class=com.google.gwt.animation.client.AnimationScheduler/

 when-property-is name=user.agent value=safari/
   /replace-with
+--
+
+!--
+ Implementation based on requestAnimationFrame. Note: as of January  
2013 this is
+ only available for Chrome 24 and above. Safari will fall back to the  
Timer-based

+ implementation, but this may change in a future Safari release.
+ --
+  replace-with  
class=com.google.gwt.animation.client.AnimationSchedulerImplNative
+when-type-is  
class=com.google.gwt.animation.client.AnimationScheduler/

+  when-property-is name=user.agent value=gecko1_8/
+  when-property-is name=user.agent value=safari/
+  /replace-with
 /module
diff --git  
a/user/src/com/google/gwt/animation/client/AnimationSchedulerImplMozilla.java  
b/user/src/com/google/gwt/animation/client/AnimationSchedulerImplMozilla.java

index 157a53e..2f7d0c9 100644
---  
a/user/src/com/google/gwt/animation/client/AnimationSchedulerImplMozilla.java
+++  
b/user/src/com/google/gwt/animation/client/AnimationSchedulerImplMozilla.java

@@ -18,7 +18,7 @@
 import com.google.gwt.dom.client.Element;

 /**
- * Implementation using codemozRequestAnimationFrame/code.
+ * Implementation using codemozRequestAnimationFrame/code. Not  
currently used by default.

  *
  * @see a
  *   
href=https://developer.mozilla.org/en/DOM/window.mozRequestAnimationFrame;
diff --git  
a/user/src/com/google/gwt/animation/client/AnimationSchedulerImplNative.java  
b/user/src/com/google/gwt/animation/client/AnimationSchedulerImplNative.java

new file mode 100644
index 000..d0c4f8f
--- /dev/null
+++  
b/user/src/com/google/gwt/animation/client/AnimationSchedulerImplNative.java

@@ -0,0 +1,78 @@
+/*
+ * Copyright 2011 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.animation.client;
+
+import com.google.gwt.dom.client.Element;
+
+/**
+ * An implementation using the unprefixed  
coderequestAnimationFrame/code.
+ * Since browser support is in flux, 

[gwt-contrib] Change in gwt[master]: Stop using prefixed API's in AnimationScheduler by default. ...

2013-01-18 Thread Goktug Gokdogan

Goktug Gokdogan has posted comments on this change.

Change subject: Stop using prefixed API's in AnimationScheduler by default.  
Firefox and Safari will use the Timer-based implementation. For Chrome we  
can use requestAnimationFrame because it's unprefixed starting in Chrome 24.

..


Patch Set 1:

(3 comments)

I think this is a good idea.
Some comments are inlined.


Commit Message
Line 14: once it's unprefixed. I attempted to avoid depending on any  
details of the
also Firefox shares the same deferred binding in the xml, that means it  
will also pickup once it is unprefixed.




File user/src/com/google/gwt/animation/Animation.gwt.xml
Line 27:   replace-with  
class=com.google.gwt.animation.client.AnimationSchedulerImplTimer
why  is native not the default? If browser supports unprefixed  
requestAnimationFrame, I think we can safely use it; especially as we are  
not relying on any parameters or return values.



Line 41:   !-- Disabled by default because it uses a prefixed API. --
Perhaps we can introduce a use-prefixed property (false by default) to be  
used in this kind of situations?



--
To view, visit https://gwt-review.googlesource.com/1780
To unsubscribe, visit https://gwt-review.googlesource.com/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3011dceab489871a5864eed1ece47ec850d82425
Gerrit-PatchSet: 1
Gerrit-Project: gwt
Gerrit-Branch: master
Gerrit-Owner: Brian Slesinsky skybr...@google.com
Gerrit-Reviewer: Goktug Gokdogan gok...@google.com
Gerrit-HasComments: Yes

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