CssResource problem with specific webkit CSS instructions
I'im using CssResource. When i try to add a specific webkit instruction (-webkit- transform:translateX(0)), the compiler returns the following error: 00:37:18.859 [WARN] [mobilegwtnative] Line 2 column 59: encountered "-". Was expecting one of: "}" ";" Is there a workarround ? Any idea to solve my pb ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to define CssResource/CSS file for -webkit-border-image:url(img.png) ?
Hello, I know how to use CssResource an ImageResource to set a background image: @sprite .test { gwt-image:"image"; } How to configure the css file or the CssResource file to manage the - webkit-border-image:url(img.png) property ? Do i need to use @sprite as well ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem adding WebKit keyFrame animation in CSS ResourceBundle file
I would like to add this keyFrame animation in my CSS file managed by a ResourceBundle. I have added a '\' 'in front of the @-webkit-keyframes element BUT the compiler does not like the from element (...olumn 9: encountered "{". Was expecting one of: ":" ) \...@-webkit-keyframes diagonal-slide { from { left: 0; top: 0; } to { left: 100px; top: 100px; } } any idea ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem managing clickEvent on iPhone
I'm working on an iPhone web application. I have used a GWT button with the following CSS: .gwt-Button { margin: 0; padding: 3px 5px; text-decoration: none; font-size: small; cursor: pointer; cursor: hand; background: url("images/hborder.png") repeat-x 0px -27px; border: 1px outset #ccc; } .gwt-Button:active { border: 1px inset #ccc; } When i click on the button, the CSS is not applied... It seems that the :active is not natively supported by the iPhone browser. Some javascript "tricks" are available at: - http://cubiq.org/remove-onclick-delay-on-webkit-for-iphone/9 -http://rakaz.nl/2009/10/iphone-webapps-101-make-your-buttons-feel- native.html What is the GWT solution ? Is there something available ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to define CssResource/CSS file for -webkit-border-image:url(img.png) ?
Thomas, Thank you for your support, it helps me a lot !! I have done a brief note to explain the use of ClientBundle to design a CSS3 rounded button. The tuto is available here: http://fvisticot.blogspot.com/2009/12/rounded-button-css3-and-gwt20.html On 27 déc, 16:46, Thomas Broyer wrote: > On 26 déc, 00:43, fvisticot wrote: > > > Hello, > > I know how to use CssResource an ImageResource to set a background > > image: > > > @sprite .test { > > gwt-image:"image"; > > > } > > > How to configure the css file or the CssResource file to manage the - > > webkit-border-image:url(img.png) property ? > > Do i need to use @sprite as well ? > > @sprite will use a background-image, width and height. > If you want to use a border-image, you'll have to instead use a > DataResource and @url, though it won't generate the border > "dimensions", you'll have to "hard-code" them. > > interface Resources extends ClientBundle { > �...@source("image.png") > DataResource image(); > > } > > @url imageUrl image; > .test { > border-image: imageUrl 27 round stretch; > > } > > You might be able to have the dimension "generated by the compiler" > with the following trick, though I didn't test it *and* didn't check > whether it generates a overhead or not: > // Two references to the same image, one DataResource for the data and > one ImageResource for the dimensions > interface Resources extends ClientBundle { > �...@source("image.png") > DataResource imageData(); > > ImageResource image(); > > } > > @url imageUrl imageData; > .test { > border-image: imageUrl value("image.getWidth") value > ("image.getHeight") round stretch; > > } > > (well, the above obviously is wrong wrt dimensions, but you get it, > right? ;-) ) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: MVP Article... Source Code?
+1 On 29 déc, 20:51, Yaakov wrote: > Yes, +1 here! Great article, but please post the source code. > > Thanks, > Yaakov. > > On Dec 29, 1:00 pm, jpnet wrote: > > > > > I really like this > > article:http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architectur... > > > However, it's almost useless without the entire source package. Are > > there any plans to post the source code? > > > Thanks, > > > JP -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DOMImpl for iPhone: How to do ?
I would like to manage the iPhone touchstart touchmove... events with a clean solution. It seems that i need to create my own DOMImpl for the iPhone and link this new DOMImpl to the iPhone userAgent. Do i need to recompile the GWT sources for that ? It seems that i can not override the DOMImplSafari...so it seems that a re-compilation is required... I there a document/tuto with the differents mandatory steps to create a new DOMImpl ? Is there a list of class to implement when adding a new DOMImpl ? (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...) Is there allready a DOMImplIphone implementation (GoogleWave is available on the iPhonepearhaps are they using a dedicated implementation) ?? Fred. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: DOMImpl for iPhone: How to do ?
Hello, I have worked on the pb and i have made some progress !!! 1. I have overloaded the DOMImpl class. The new overloaded class must be in a package named com.google.gwt.user.client.impl 2. I have created dedicated events (extending DomEvent) 3. I have created dedicated handlers (extending EventHandler) 4. I have created dedicated HasHandlers 5. In my module file i have added: 6. I have created a new Widget implementing the public HandlerRegistration addHandler(Handler handler) { return addDomHandler(handler, Event.getType()); } 7. My application create the new widget and call the addHandler... ... and it works perfectly... Hope it can help... On 31 déc, 01:28, DaveC wrote: > It seems I'm trying to do the same > thinghttp://groups.google.com/group/google-web-toolkit/browse_thread/threa.. > and have come up against the same barriers. > > If I find the answer I'll let you know. > > Cheers, > Dave > > On Dec 30, 10:23 pm, fvisticot wrote: > > > > > I would like to manage the iPhone touchstart touchmove... events with > > a clean solution. > > It seems that i need to create my own DOMImpl for the iPhone and link > > this new DOMImpl to the iPhone userAgent. > > > Do i need to recompile the GWT sources for that ? > > It seems that i can not override the DOMImplSafari...so it seems that > > a re-compilation is required... > > > I there a document/tuto with the differents mandatory steps to create > > a new DOMImpl ? > > Is there a list of class to implement when adding a new DOMImpl ? > > (DOMImpl, UserAgent.gwt.xml, Creating new DomEvent...) > > > Is there allready a DOMImplIphone implementation (GoogleWave is > > available on the iPhonepearhaps are they using a dedicated > > implementation) ?? > > > Fred. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
addDomHandler method is protected, how to add DomHandler without overriding widget ?
My objective is allow moving, rotating and resizing any GWT widget with fingers... I have successfully created and instanciated a new DOMImplIphone to manage touch and gesture events. I have overrided a widget (button or panel) to add dedicated add<>Handler method. Those methods are calling the addDomHandler method. I can now successfully move, resize and rotate this specific overrided widget ! Now, i would like to have a "generic widget wrapper" that allow resizing the wrapped widget. Idea was to create a WidgetWrapper(Widget widget) and add in this wrapped all the methods to set handlers. My pb is that the addDomHandler is protected... so i can not wrap my widget !! Any solution to avoid overriding all the widgets that i want to move/ resize ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: addDomHandler method is protected, how to add DomHandler without overriding widget ?
Thank you for your answer but it is not exactly what i woulk like... The events should be the new events i have created and registered with my DomImpl. (TouchStartEvent, TouchEndEvent)..and not HasMoveEvent, HasResizeEvents... What i would like to do: It seems that i really need to do the widget.addDomHandler call... public class TouchWidgetWrapper extends SimplePanel (or Composite) { protected Widget widget; public TouchWidgetWrapper(Widget widget) { add(widget); this.widget = widget; this.setStyleName("noSelect"); } public HandlerRegistration addTouchStartHandler(TouchStartHandler handler) { return widget.addDomHandler(handler, TouchStartEvent.getType ()); //not possible addDomHandler is protected)... } public HandlerRegistration addTouchMoveHandler(TouchMoveHandler handler) { return widget.addDomHandler(handler, TouchMoveEvent.getType()); } public HandlerRegistration addTouchEndHandler(TouchEndHandler handler) { return widget.addDomHandler(handler, TouchEndEvent.getType()); } public HandlerRegistration addTouchCancelHandler(TouchCancelHandler handler) { return widget.addDomHandler(handler, TouchCancelEvent.getType()); } public HandlerRegistration addGestureStartHandler(GestureStartHandler handler) { return widget.addDomHandler(handler, GestureStartEvent.getType ()); } public HandlerRegistration addGestureEndHandler(GestureEndHandler handler) { return addDomHandler(handler, GestureEndEvent.getType()); } public HandlerRegistration addGestureChangeHandler (GestureChangeHandler handler) { return widget.addDomHandler(handler, GestureChangeEvent.getType ()); } } //TouchStartEvent: public class TouchStartEvent extends DomEvent { private static final Type TYPE = new Type("touchstart", new TouchStartEvent()); public static Type getType() { return TYPE; } protected TouchStartEvent() { } @Override public final Type getAssociatedType() { return TYPE; } @Override protected void dispatch(TouchStartHandler handler) { handler.onTouchStart(this); } } //TouchStartHandler: public interface TouchStartHandler extends EventHandler { void onTouchStart(TouchStartEvent event); } HasTouchStartHandlers: public interface HasTouchStartHandlers extends HasHandlers { public HandlerRegistration addTouchStartHandler(TouchStartHandler handler); } On 2 jan, 00:49, Thomas Broyer wrote: > On Jan 1, 10:08 pm, fvisticot wrote: > > > > > > > My objective is allow moving, rotating and resizing any GWT widget > > with fingers... > > > I have successfully created and instanciated a new DOMImplIphone to > > manage touch and gesture events. > > I have overrided a widget (button or panel) to add dedicated > > add<>Handler method. Those methods are calling the addDomHandler > > method. > > I can now successfully move, resize and rotate this specific overrided > > widget ! > > > Now, i would like to have a "generic widget wrapper" that allow > > resizing the wrapped widget. > > Idea was to create a WidgetWrapper(Widget widget) and add in this > > wrapped all the methods to set handlers. > > > My pb is that the addDomHandler is protected... so i can not wrap my > > widget !! > > > Any solution to avoid overriding all the widgets that i want to move/ > > resize ? > > public class WidgetWrapper extends Composite implements HasMoveEvents, > HasResizeEvents { > public WidgetWrapper(Widget widget) { > initWidget(widget); > } > > ... > > ;-) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
ImageResource: How to resize ?
I have an ImageResource used in an Image widget with an image size 800x600. I would like to resize this image dynamicaly. The pb seems to be that the image is part of the CSS background property...so when i resize or set the size of the image, only the viewport is modified, the image is not rescaled.. How to fill the image src attribute with the imageResourceData and not use the CSS background property ? Fred. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: ImageResource: How to resize ?
Thank you thomas, your help is very usefull !!! Complete solution is available on my blog: http://fvisticot.blogspot.com/2010/01/scalable-image-with-gwt20-and.html On 2 jan, 17:55, Thomas Broyer wrote: > On Jan 2, 4:31 pm, fvisticot wrote: > > > I have an ImageResource used in an Image widget with an image size > > 800x600. > > I would like to resize this image dynamicaly. > > The pb seems to be that the image is part of the CSS background > > property...so when i resize or set the size of the image, only the > > viewport is modified, the image is not rescaled.. > > > How to fill the image src attribute with the imageResourceData and not > > use the CSS background property ? > > Use a DataResource and its getUrl() instead of an ImageResource. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: how to use CssResource.obfuscationPrefix to have semi-obfuscated css class name
Hello, Did you try this (in your app module): On 6 jan, 16:07, emerix wrote: > Hi, > I found on this > pagehttp://code.google.com/intl/fr-FR/webtoolkit/doc/latest/DevGuideClien... > that you can use the property CssResource.obfuscationPrefix to choose > how to obfuscate your css selectors. > However I don't know if it is possible to use it to have a custom > obfuscation. > During the development phase, I'm using firebug to adjust padding, > margin... of my widgets and it became quite difficult with the > obsucated css class names... > > What I would like is a way to have .G1qdtwdtK-MyWidgetName instead > of .G1qdtwdtK for a css class named .MyWidgetName > > Is that feasible ? > > thanks ! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem adding WebKit keyFrame animation in CSS ResourceBundle file
Nobody can help me to include this webkit animation in the ResourceBundle... Is it a bug ? Any help is welcome Fred. On 28 déc 2009, 01:26, fvisticot wrote: > I would like to add this keyFrame animation in my CSS file managed by > a ResourceBundle. > > I have added a '\' 'in front of the @-webkit-keyframes element > BUT the compiler does not like the from element (...olumn 9: > encountered "{". Was expecting one of: ":" ) > > \...@-webkit-keyframes diagonal-slide { > > from { > left: 0; > top: 0; > } > > to { > left: 100px; > top: 100px; > } > > } > > any idea ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem adding WebKit keyFrame animation in CSS ResourceBundle file
Please help me, i really would like to know the solution !!! On 17 jan, 22:26, fvisticot wrote: > Nobody can help me to include this webkit animation in the > ResourceBundle... > Is it a bug ? > > Any help is welcome > > Fred. > > On 28 déc 2009, 01:26, fvisticot wrote: > > > > > I would like to add this keyFrame animation in my CSS file managed by > > a ResourceBundle. > > > I have added a '\' 'in front of the @-webkit-keyframes element > > BUT the compiler does not like the from element (...olumn 9: > > encountered "{". Was expecting one of: ":" ) > > > \...@-webkit-keyframes diagonal-slide { > > > from { > > left: 0; > > top: 0; > > } > > > to { > > left: 100px; > > top: 100px; > > } > > > } > > > any idea ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Saving Pojo object to binary format (writeObject from outputStream)
My client application is retrieving Pojo from the server. This Pojo implements Serializable and there is no pb to display this object on the browser. I would like to persist the Pojo in the Gears browser database. For doing that, i need to: 1. serialize my Pojo in Binary How to do that ?? (I wanted to use writeObject method from an outputStream BUT ByteArrayOutputStream is not available with GWT ???) 2. store the binary data in the Gears database. 3. when needed, read the data, unserialize with readObject... Is there a solution to serialize/unserialize a POJO ? How to retrieve the Binary data ?? --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
GWT1.6 RPC service with List in return: Serialization pb
I'm using an RPC service witch return a List. I have an error: Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'com.myclass.MyBean' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. This pb is referenced in the issue: Issue 1569: Serialization white list missing types It seems that the compilier does not include the MyBean class because the signature is using an Object type. How to specify that MyBean must be used during the compilation ? For a workaround, i have specified a dummy class using my MyBean class.. Is there an other solution ? How to specify the different classes that can be used in the 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: GWT Serialization with CustomFieldSerializer fails because of SerializationPolicy
I have the same issue with an RPC service witch return a List... The compiler does not find the type of elements that could be included in the list... As a workarround i'm obliged to create dummy methods using the classes that could be included in the list... I would like to know how to extend the SerializationPolicy (whiteList...) ?? perhaps can we use annotations like @gwt.typeArgs On 14 avr, 16:36, Daniel Kurka wrote: > For data transport we use a simple java class containing a Map Object> This map is transient and we serialize it with a custom field > serializer. This works fine for most situations. > > For every service gwt has a list of classes which can be Serialized > (whitelist). If my understanding is right this list is generated by the > compiler at compile time by analizing the members of a class. > > But we can have classes (which ARE serializable) inside our transient map, > but gwt will not serialize this classes because of the SerializationPolicy > (these classes could not be found by the compiler at compile time). > > Is there any way to extend the white list of SerializationPolicy.java ? > > If I add all classes as private members to my class the members are found > and the class can be serialized, but this is anoying and we cant do this for > all classes (we dynamically decide which classes we need to transfer) > > Anyone got any expierence with that? > > Maybe open an issue about this? --~--~-~--~~~---~--~~ You received 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: GWT1.6 RPC service with List in return: Serialization pb
Thank you for your response. The Objects contained in the List are all Serializable. So i will try to use List ... and the compiler will take time to find all Serializable objects !!! This List can only contain Object defined in an external jar file (aproximatively 150 differents objects ) but as i explain later, i can not modify those serializable objects... I can not mark my Object with a DTO interface because those objects are part of an external jar file. Perhaps can i try to implement your solution by generating a proxy on top of my objects... (i will try).. Regards, Fred On 15 avr, 02:32, "Dean S. Jones" wrote: > GWT needs to know ALL the types that CAN be serialized to the UI at > compile time. It looks at the RPC parameters and return types, > traces their roots and possible sub-classes, and makes sure the proper > serializers/deserializers are present. > > First tho, I ask, what good is a List ??? Say this worked... > what would you do with the List in the UI? > > Second, ONLY Serializable types can be used with RPC, so the Minimum > that makes ANY sense is List. This may work, but the > compiler would then take a large amount of time finding ALL > Serializable classes... bad. > > Still, you can then get almost anything in your List... so what do you > do in the client??? Iterate and check instanceof on each item??? > > IF I had to do this, I would create a "marker interface", > > public interface DTO extends Serializable > { > > } > > and make any class that could be used in the UI implement DTO. the > make it List > > the compiler would then only generate serializers for anything marked > DTO, and be much more efficient. > > STILL, On the client you don't know exactly what you have in the List, > and any solution to that problem will > be slow and error prone. --~--~-~--~~~---~--~~ You received 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 Serialization with CustomFieldSerializer fails because of SerializationPolicy
I have exactly the same issue with post: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/1b7e3851b943b130/2aa2077f4e6c90e1#2aa2077f4e6c90e1 I have used the Serializable solution but my code/library contains a lot of Serializable classes as well... I really would like to avoid this solution... Is it not possible: 1. to implement the SerializationPolicy and add the class that are Serializable. 2. define annotations in the RPC service with allowed Serializable objects. Fred On Apr 15, 9:30 pm, Daniel Kurka wrote: > The problem is that the compiler will create the code for al objects in the > classpath that implement serialiazable (which are more ore less 1+). > This results in enormous compile time and huge javascript... > > absolutely not doable > > any more suggestions? > > 2009/4/15 Salvador Diaz > > > > > > > > perhaps can we use annotations like @gwt.typeArgs > > > Those are deprecated, you should really avoid using them > > > > > a simple java class containing a Map > > > Can't you just use a Map ? If the map is going > > to be travelling through RPCs you really shouldn't be putting objects > > that don't implement Serializable into it. > > > Cheers, > > > Salvador > > > > > For every service gwt has a list of classes which can be Serialized > > > > (whitelist). If my understanding is right this list is generated by the > > > > compiler at compile time by analizing the members of a class. > > > > > But we can have classes (which ARE serializable) inside our transient > > map, > > > > but gwt will not serialize this classes because of the > > SerializationPolicy > > > > (these classes could not be found by the compiler at compile time). > > > > > Is there any way to extend the white list of SerializationPolicy.java ? > > > > > If I add all classes as private members to my class the members are > > found > > > > and the class can be serialized, but this is anoying and we cant do > > this for > > > > all classes (we dynamically decide which classes we need to transfer) > > > > > Anyone got any expierence with that? > > > > > Maybe open an issue about this?- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-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 Serialization with CustomFieldSerializer fails because of SerializationPolicy
+1, a way to specify Object to serialize would be fine !!! On Apr 17, 10:20 pm, Daniel Kurka wrote: > this is exactly what i was thinking. > we need a way to specify the classes that are okay to serialiaze with the > service > > 2009/4/17 Vitali Lovich > > > > > Hasn't been accepted - just opened. Anyone can open issues against GWT. > > > That being said, I think there could be room for improvement. For > > instance, if you specify a serializable interface or serializable abstract > > class, you should be allowed to enumerate all the various types that can > > possibly go across the wire in an annotation so as to provide more > > contextual information that the compiler simply doesn't otherwise have > > access to at compile time. > > > @Transfers({A.class, B.class, C.class, D.class}) > > Serializable foo(Serializable[] x); > > > etc. which limits the compiler to only look at A, B, C, & D when it comes > > across trying to compile this RPC function. > > > This would solve a lot of issues & make the expressiveness much more > > powerful. > > > On Fri, Apr 17, 2009 at 3:18 AM, Salvador Diaz > > wrote: > > >> Frankly I don't see how that issue could be accepted, the fact that > >> you have to mark all your serializable objects as Serializable or > >> IsSerializable has been there from the beginning. It's related to the > >> way the compiler has to know at compile time what objects are allowed > >> to travel through RPCs and how they should be serialized. You simply > >> cannot expect it to magically detect the types that will be added to > >> your map. > > >> On Apr 16, 10:14 pm, kurka.dan...@googlemail.com wrote: > >> > I added my concerns to this issue in the gwt issue tracker: > > >> >http://code.google.com/p/google-web-toolkit/issues/detail?id=3521 --~--~-~--~~~---~--~~ You received 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 -~--~~~~--~~--~--~---
External Javascript inclusion pb...
I'm using an external library to build my GUI. This external library is doing some initialization at startup and is accessing HTML DOM tree. This DOM tree is not contructed when initialization occurs because it is the application who is in charge to construct this DOM tree... How to specify that this external javascript library should be read and interpreted after my application has created the DOM tree ? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.