Re: Using Tomcat Websockets with GWT
You should try using GWT.getHostPageBaseUrl() next time. It might save you the headache of troubleshooting. Its in the client version, not the shared. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
IE Anchor Issue
I'm running into the problem with Anchor widgets trying to reload the browser when clicked... After searching the forums I've seen the various workaround people are using but none seem applicable. Maybe someone has any ideas? What I have is a Composite that implements HasClickHandlers... This Composite basically contains some textual display info and an edit link and are created and added by its parent widget and presented to the user. As a parent creates these composites it adds a click handler to them and to see if the user hits the edit button. Relevant code: public class CategoryPromoLink extends Composite implements HasClickHandlers { ... ... // constructor: CategoryPromoLink(String categoryDirectoryName, String categoryDisplayName, String heading, String annotation, String startTime, int rank) { this.categoryDirectoryName = categoryDirectoryName; this.categoryDisplayName = categoryDisplayName; this.heading = heading; this.annotation = annotation; this.startTime = startTime; this.rank = rank; this.initWidget(this.root); this.display = new InlineLabel(- + (categoryDisplayName.trim().equals() ? [UNKNOWN CATEGORY] : categoryDisplayName)); this.root.add(this.display); Anchor edit = new Anchor((edit)); edit.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { CategoryPromoLink.this.fireEvent(event); } }); this.root.add(edit); } ... ... @Override public HandlerRegistration addClickHandler(ClickHandler handler) { return this.addHandler(handler, ClickEvent.getType()); } } Works fine in all but IE, where when the edit anchor is clicked it tries to reload page (in my case since i'm using GWT Activities with an onMayStop implementation its asking the user if they want to leave or stay on this page). Should i not be using ClickHandlers and/or Anchors this way? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: IE Anchor Issue
Instead of Anchor use a Label/CustomButton that is styled like a link or if you want to keep using Anchor then you have to call event.preventDefault() in your click handler. Take a look at: http://code.google.com/p/google-web-toolkit/issues/detail?id=5280 -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Gwt user agent issue in IE8
Maybe the IE8 you have tested activates compatibility mode for your site? Or it has installed Chrome Frame that maybe causes issues? As long as you have referenced ie8 in the user.agent property (or haven't changed the user.agent property at all) it should work. Not sure what you mean with runtimeWarning. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Stillborn dragstart event
The ClientWebApp sample application in GWT 2.5 contains example drag-and-drop code, as seen below. When I use it, it works great the first time I drag a TaskTemplate. On subsequent drags, event.getDataTransfer() fails because event.dead=true. Halp? public class DesktopTaskEditView extends Composite implements TaskEditView { //... static class TaskTemplateCell extends AbstractCellTaskProxy { //... public TaskTemplateCell() { // Register the kinds of event this cell will manage. super(dragstart); } //... /** * Handles drag-start events inside the element named root. */ @UiHandler({root}) void onDragStart(DragStartEvent event, Element parent, Context context) { // Save the ID of the TaskProxy. DataTransfer dataTransfer = event.getDataTransfer(); dataTransfer.setData(text, String.valueOf(context.getIndex())); // Set the image. dataTransfer.setDragImage(parent, 25, 15); } } //... } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
SuperDevMode and same origin policy
Hi all, I am using super dev mode and i have an issue, i think,, with same origin policy. I have a ClientBundle containing many ImageResource which will be used as WebGL textures. To load those images i do : Image image = new Image(myImageResource.getSafeUri().asString(); RootLayoutPanel.get().add(image); image.setVisible(false); this.img.addLoadHandler(this); this.img.addErrorHandler(this); where this is a class implenting LoadHandler and ErrorHandler. Then in the onLoad method : this.InitializeTexture(this.img.getElement()); RootLayoutPanel.get().remove(this.img); And finally the InitializeTexture : /** * \brief Initializes the gl texture with the loaded image. */ public void InitializeTexture(Element inElement) { // Set current texture object as active this.Bind(WebGLRenderingContext.TEXTURE_2D); // If generating mipmap is requested, parameter the texture filtering to using them and generate mipmaps ... if(this.generateMipmap) { this.gl.texParameteri(WebGLRenderingContext.TEXTURE_2D, WebGLRenderingContext.TEXTURE_MAG_FILTER, WebGLRenderingContext.LINEAR); this.gl.texParameteri(WebGLRenderingContext.TEXTURE_2D, WebGLRenderingContext.TEXTURE_MIN_FILTER, WebGLRenderingContext.LINEAR_MIPMAP_NEAREST); this.gl.generateMipmap(WebGLRenderingContext.TEXTURE_2D); } else // else do not use mipmap { this.gl.texParameteri(WebGLRenderingContext.TEXTURE_2D, WebGLRenderingContext.TEXTURE_MAG_FILTER, WebGLRenderingContext.LINEAR); this.gl.texParameteri(WebGLRenderingContext.TEXTURE_2D, WebGLRenderingContext.TEXTURE_MIN_FILTER, WebGLRenderingContext.LINEAR); } this.gl.texParameteri(WebGLRenderingContext.TEXTURE_2D, WebGLRenderingContext.TEXTURE_WRAP_S, WebGLRenderingContext.CLAMP_TO_EDGE); this.gl.texParameteri(WebGLRenderingContext.TEXTURE_2D, WebGLRenderingContext.TEXTURE_WRAP_T, WebGLRenderingContext.CLAMP_TO_EDGE); // And finaly, set the image pixels data in the texture object. this.gl.texImage2D(WebGLRenderingContext.TEXTURE_2D, 0, WebGLRenderingContext.RGBA, WebGLRenderingContext.RGBA, WebGLRenderingContext.UNSIGNED_BYTE, inElement); // Finaly unbind the texture object this.Unbind(WebGLRenderingContext.TEXTURE_2D); } All is ok in production mode but when i use superdevmode i get under chrome and firefox a security error while calling texImage2D method. Do you think that is a SOP issue ? Any idea to solve it ? I can use superdevmode with chrome using --disable-web-security option but i did not succeed in finding a workaround with firefox ... setting in about:config the option security.fileuri.strict_origin_policy to false does not help. Regards, Harold -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Stillborn dragstart event
I should add that this only happens in dev mode. The compiled JS works fine. On Sun, Mar 3, 2013 at 4:10 PM, Adam Augusta rox...@gmail.com wrote: The ClientWebApp sample application in GWT 2.5 contains example drag-and-drop code, as seen below. When I use it, it works great the first time I drag a TaskTemplate. On subsequent drags, event.getDataTransfer() fails because event.dead=true. Halp? public class DesktopTaskEditView extends Composite implements TaskEditView { //... static class TaskTemplateCell extends AbstractCellTaskProxy { //... public TaskTemplateCell() { // Register the kinds of event this cell will manage. super(dragstart); } //... /** * Handles drag-start events inside the element named root. */ @UiHandler({root}) void onDragStart(DragStartEvent event, Element parent, Context context) { // Save the ID of the TaskProxy. DataTransfer dataTransfer = event.getDataTransfer(); dataTransfer.setData(text, String.valueOf(context.getIndex())); // Set the image. dataTransfer.setDragImage(parent, 25, 15); } } //... } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT RPC future ?
Guys, On the heels of David's post, I was going through my application and noticed some poor RPC performance as well... much poorer than I remember. I went through my code and noticed that I'm using Longs in every object, as that's the default @Id for Objectify on AppEngine. Is there a simple way to get the GWT-RPC to serialized these differently by default? I'd really like to keep everything as is without having to swap out everything, as the Android and AppEngine Servlets are working great. Thanks! E On Tuesday, February 26, 2013 4:55:56 AM UTC-5, stuckagain wrote: People, Just to post some feedback on my problem, I actually found a working solution and I think there is a lesson in here that it warrant me writing back in this thread. I managed to implement my own custom serialisation based on the flickr post. I managed to double the performance and I implemented it so that I don't use recursion to make it possible to move to an incremental approach to avoid stack overflows. But x2 is still too long to be acceptable so I ran it through the IE9 profiler and I noticed that most of the time was actually spent in BigInteger and Long methods... That made me remember the discussion a long time ago that longs are emulated in GWT and we should avoid them unless absolutely needed. I switched to sending a byte array for these id fields and I got a 10x speed increase (and that is with the regular GWT serialisation, not my own version). I did not realize that Longs were that costly (on IE). So, that resolves the performance issue for me. Sure, another round of thinking is needed to avoid sending such large object trees in the first place, but this offers an acceptable solution for now - and since browsers like Chrome and FireFox (and even IE) are becoming much faster I might not even need to further improve it. David On Wednesday, February 13, 2013 5:31:10 PM UTC+1, stuckagain wrote: Thomas, I just read the article on how they improved parsing time in flickr ... really simplistic and a big surprise that the split trick is as fast as native json parsing! Would such an approach be usable for a generic object serialisation/deserialisation approach ? David On Wednesday, February 6, 2013 5:17:33 PM UTC+1, Thomas Broyer wrote: On Wednesday, February 6, 2013 4:37:35 PM UTC+1, stuckagain wrote: Hi, Not sure where to ask this question, but I was wondering if the GWT devs every plan to fix the inefficient GWT-RPC ? The problem happens mostly on IE (all versions), although I assume other browsers might benefit as well since a lot of cpu cycles are wasted on things that should be trivial for a browser. I had to improve multiple GWT apps that all stumble on these 3 problems: - deserialisation is terribly inefficient - it can take many seconds to serialize small sets of data, - on IE I can get slow script warnings - I sometimes get stack over flows with deeply nested structures. For example when I send over a tree of 1 nodes (takes 20ms to create), it takes 5 seconds or more to deserialize. (I can give you a demo app that shows the problem) I only get 2 seconds to impress my users, and I need to do quite a lot of operations besides sending the RPC. I've heared the reactions multiple times: don't send soo much data over, but bytewise this is not soo much. It is highly compressible (just a few K in fact) data. We want to process complex data structures in the client, we don't want to create intermediate data structures to bypass the RPC inefficiencies. There have been multiple attempts from google to write something better (DeRPC whichi is now deprecated, and RequestFactory which is very badly documented so I don't even know if I could reuse this one for generic RPC calls). Indeed RequestFactory can be used for generic RPC. Have a look at http://tbroyer.posterous.com/gwt-211-requestfactory and http://tbroyer.posterous.com/gwt-211-requestfactory-part-ii It's rather old and might be inaccurate in a few places (hasn't been updated for GWT 2.4's use of annotation-processing at compile-time, for instance). Is it not time to start using json as the base format for GWT RPC ? I would even like to help out to get this working! It is really a pitty that somehow RPC is a selling point for GWT but in reality it often becomes the bottleneck of your application. Can't we maybe put GWT RPC on the framework for request factory ? One issue I also have with GWT RPC (but less pressing as the performanceissue) is the fact that it is not very friendly for mixing different client technologies. If it were a simple json REST payload (without obfuscation and lots of secret numbers) then we could easily reuse it everwhere, it would also make it soo much easier for loadtesting. Not a lot of tools support GWT RPC easily. RequestFactory can easily be used in-process within
Re: GWT Application misbehaving on Chrome
That did it - thanks again, as always. On Saturday, March 2, 2013 6:27:16 PM UTC-8, Thomas Broyer wrote: On Sunday, March 3, 2013 3:21:12 AM UTC+1, bloo wrote: Source Maps are still broken in 25 - can anyone confirm this, or am I an idiot? (I keep having to re-install 23 because Chrome will auto-update to 25 whenever I turn my back to it) Update to GWT 2.5.1-rc1 and SourceMaps should work. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Sorting icons needs to right align in DataGrid
Hi, I use sorting in datagridhttp://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwDataGrid. The sorting icons display on left align default. I needs to show it on right. How can I set it on right align? see below image for No column. https://lh3.googleusercontent.com/-G8lwsUJzVb0/UTQs7rA0xgI/AD8/LteqPBD6oI8/s1600/sorting+grid.png Thanks In Advance. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
How to avoid CSS attribute context warning with GWT 2.5's UiRenderer?
I'm trying to port a GWT 2.4 AbstractCell that uses SafeHtmlTemplates to a GWT 2.5 AbstractCell that uses UiRenderer. My problem is that when I set the CSS style directly on a div element, GWT logs the CSS attribute context warning in my logs. Using a String, the Cell works fine albeit with the warning, but my attempts to pass a SafeStyles have failed. In my GWT 2.4 AbstractCell I had a template that used SafeStyles: @SafeHtmlTemplates.Template(div style=\{0}\{1}/div) SafeHtml cell(SafeStyles styles, SafeHtml value); When I try passing a SafeStyles, I get the following error: 17:18:33.582 [ERROR] [my.widgets] java.lang.String required, but {styles} returns com.google.gwt.safecss.shared.SafeStyles: lt;div style='{styles}'gt; (:28) When I use a String, everything works correctly, however I get the expected CSS attribute context warning. 17:16:51.108 [WARN] [my.widgets] Template with variable in CSS attribute context: The template code generator cannot guarantee HTML-safety of the template -- please inspect manually or use SafeStyles to specify arguments in a CSS attribute context Incidentally, I had a similar issue passing an image URL. The logs warned me to use SafeUri, which I did and it worked, so it appears that img recognizes a SafeUri but div won't recognize a SafeStyles. div style={styles} img alt={name} src={image} / /div Enrique -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: A question regarding the Dynamic Host Page's tutorial
There is no place more secure than another to put your CSRF token. If someone - by an XSS attack for example - can read the hosting page, he can as easily read the cookie, the http headers, whatever, and find the XSRF token. BTW, with the XSS, he doesn't need the token anymore to make requests with the user rights =) SSL protects from a man in the middle or a sniffing attack. Without SSL, if someone can sniff your user requests, you just can't hide anything : tokens, session ids, passwords, etc... (ok, you could crypt with JS, but... no) On Sunday, March 3, 2013 2:59:35 AM UTC+1, a.toled...@gmail.com wrote: On Saturday, March 2, 2013 7:57:49 PM UTC+1, Thomas Broyer wrote: On Saturday, March 2, 2013 5:27:12 AM UTC+1, a.toled...@gmail.com wrote: Hello group, I have a question regarding this tutorial. At the end it is illustrated how the servlet/jsp can create a java script variable that contains the email address of the user. This is done in order to save a GWT RPC call that would ask for this value from the browser side to the server when the page loads. I understand the rationale behind this but I wonder if passing the data by a cookie won't be as efficient as the javascript variable but additionally more secured. Why would it be more secure? I'd even say it'd be *less* secure: the cookie will be sent back to the server with every subsequent request! BTW, emitting user info into the HTML page is what Google does (for Groups –which is made with GWT–, but also Reader, GMail or Plus, which are made with the Closure tools) Maybe I'm wrong. What I had in mind is data like an XSRF protection token that the server generates and needs to pass to the client in order for the latter to send it in every RPC request. If I put it in the HTML page I thought it will make the token more accessible to anyone who wants to find it. But actually the cookies are also accessible. I don't know if using SSL would make any difference between these two ways of passing server data (in both the data (html/cookies) is encrypted on the server side and decrypted on the client side). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Problems deploying GWT projects
For days now, I've been doing a lot of googling of the problem that I have. This is somewhat very basic but I am unable to resolve it. Somehow, when I deploy a starter project, my browser displays a network error message. I am using Chrome as my browser and GWT 2.5. It's like trying to connect to the internet. I've been developing locally, without internet connection. Is internet really required when deploying GWT projects locally? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: RPC call with android
I'd been needing something like this for a GAE based project I'm working on. Using the code from the gwt-syncproxy project, I created an Android library and I've got got a dev mode working mock up of an android client using GWT-RPC to the server and using the native android account system to login to GAE. I've still got quite a bit of testing to do, but I've contacted the owner of the gwt-syncproxy project to look at getting this integrated into their project once I finish testing it in a couple of weeks. On Sunday, February 17, 2013 11:47:55 PM UTC-5, Chii wrote: I m expecting that both RequestFactory and gwt-rpc has less overhead than vanilla json (at least, in terms of bandwidth - not sure about cpu requirement differences between them), but if it turns out that neither works on android, then it would suck to have to switch to json. On Friday, February 25, 2011 12:50:03 AM UTC+11, Thomas Lefort wrote: Thanks! I will try the RequestFactory hack, although it seems like there might be a third (and easier?) way with JSON-RPC from the discussions. On Feb 24, 11:28 am, Thomas Broyer t.bro...@gmail.com wrote: GWT SyncProxy http://code.google.com/p/gwt-syncproxy/ allows you to call GWT-RPC services from a Java app, but it apparently does not work on Androidhttp://code.google.com/p/gwt-syncproxy/issues/detail?id=3 . As for RequestFactory, it has built-in support for running in the JVM, and it should work on Android: https://groups.google.com/d/msg/google-web-toolkit-contributors/-AJR5... -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to add dynamic colums to celltable
Juan, Have you figured out a way to include column sorting with this example. I tried to use ListHandler but had no luck . Thanks. On Friday, 24 August 2012 09:30:57 UTC-4, Juan Pablo Gardella wrote: Hi, I show my code where use it. CellTableListString table = new CellTableListString(); ListListString rows = ... for (int column = 0; columna columnCount; column++) { table.addColumn(new IndexedColumn(column), new TextHeader(columnsArray[column])); } final ListDataProviderListString provider = new ListDataProviderListString(rows); for (String[] row: rowsArray) { rows.add(Arrays.asList(row)); } 2012/8/24 lucky lucky.b...@gmail.com javascript: if possible could you please provide me the brief sample example (like in the showcase). Thanks On Fri, Aug 24, 2012 at 6:40 PM, Juan Pablo Gardella gardella...@gmail.com javascript: wrote: See http://stackoverflow.com/questions/7172262/create-gwt-celltable-dynamically 2012/8/24 lucky lucky.b...@gmail.com javascript: Hi, i have a requirement that i need to add dynamic columns to cell table. i Google it but didn't find proper solution. Please provide me some sample to add dynamic columns to cell table Thanks in advance -- 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/-/qBLc060as0IJ. To post to this group, send email to google-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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-we...@googlegroups.comjavascript: . To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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 unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to avoid CSS attribute context warning with GWT 2.5's UiRenderer?
Have you tried this? ui:with field='styles' type='com.google.gwt.safecss.shared.SafeStyles'/ Also you can add a one resource class and just specify the return type correctly in the class (see http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/gwt/uibinder/test/client/UiRendererUi.ui.xml?r=10548). On Mar 4, 2013, at 2:59 AM, Enrique Rodriguez enriqu...@gmail.com wrote: I'm trying to port a GWT 2.4 AbstractCell that uses SafeHtmlTemplates to a GWT 2.5 AbstractCell that uses UiRenderer. My problem is that when I set the CSS style directly on a div element, GWT logs the CSS attribute context warning in my logs. Using a String, the Cell works fine albeit with the warning, but my attempts to pass a SafeStyles have failed. In my GWT 2.4 AbstractCell I had a template that used SafeStyles: @SafeHtmlTemplates.Template(div style=\{0}\{1}/div) SafeHtml cell(SafeStyles styles, SafeHtml value); When I try passing a SafeStyles, I get the following error: 17:18:33.582 [ERROR] [my.widgets] java.lang.String required, but {styles} returns com.google.gwt.safecss.shared.SafeStyles: lt;div style='{styles}'gt; (:28) When I use a String, everything works correctly, however I get the expected CSS attribute context warning. 17:16:51.108 [WARN] [my.widgets] Template with variable in CSS attribute context: The template code generator cannot guarantee HTML-safety of the template -- please inspect manually or use SafeStyles to specify arguments in a CSS attribute context Incidentally, I had a similar issue passing an image URL. The logs warned me to use SafeUri, which I did and it worked, so it appears that img recognizes a SafeUri but div won't recognize a SafeStyles. div style={styles} img alt={name} src={image} / /div Enrique -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.