Re: GWT Junit Test
You can also write pure JUnit (not GWT JUnit) tests in a separate project and use syncproxy for calling your RPC services synchronously (very desired behavior for testing RPC services). In this tutorial I try to explain, step by step how to do it: http://cancerberonia.blogspot.com/2012/10/testing-gwt-service-classes.html Hope that can help 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/-/yET3Opv3vQgJ. 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: CellTable - hide/show individual columns?
Hi Thomas, ok, but if the user should be able to do this one would have to implement such a functionality? For example, there could be a small dropdown list somewhere at the table header which allows to mark all columns that schould be shown... Magnus -- 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/-/iVcvHC1pcf4J. 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 handle double click/enter key on the row of a datagrid ?
I have a scenario where i am working with a GWT DataGrid on which when the user makes a double-click an event should be raised containing the information about the model bean of the selected selected row. e.g : For a DataGrid containing informations about persons (columns: first name , last name, age) when a double click (or enter key on the currently selected row of the datagrid) is made on one of the rows of the datagrid a MessageBox should appear containing the full name person selected. I've tried for some time to implement this scenario, but I haven't found so far an elegant (and simple) way to implement it. Can anybody assist me on this problem? -- 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/-/sK5NyH3srxcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle double click/enter key on the row of a datagrid ?
My (dirty) workaround was extending AbstractCell class and adding the custom code within: @Override public void onBrowserEvent(final Context context, final Element parent, final C value, final NativeEvent event, final ValueUpdaterC valueUpdater) { HasDataT data = this.column.getTable(); SelectionModel? super T selectionModel = data.getSelectionModel(); if (selectionModel instanceof SingleSelectionModel) { T val = (T) ((SingleSelectionModel? super T) selectionModel).getSelectedObject(); userChoiceHandler.onUserChoice(val); } } method. btw, has anyone an idea why the method getSelectionModel() from HasDataT class returns SelectionModel? super T instead of SelectionModelT ? On Thursday, October 18, 2012 2:01:33 PM UTC+2, Marius Grama wrote: I have a scenario where i am working with a GWT DataGrid on which when the user makes a double-click an event should be raised containing the information about the model bean of the selected selected row. e.g : For a DataGrid containing informations about persons (columns: first name , last name, age) when a double click (or enter key on the currently selected row of the datagrid) is made on one of the rows of the datagrid a MessageBox should appear containing the full name person selected. I've tried for some time to implement this scenario, but I haven't found so far an elegant (and simple) way to implement it. Can anybody assist me on this problem? -- 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/-/JQ33gW88RrwJ. 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: CellTable - hide/show individual columns?
ok, but if the user should be able to do this one would have to implement such a functionality? Yes. -- 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/-/N2fb3vIsIHIJ. 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 - how to fetch object graph
Oh my God! It's disgusting, but it is so! Isn't exist better way to work with nested objects? суббота, 11 декабря 2010 г., 20:10:03 UTC+4 пользователь tshalif написал: I wonder either there is a better way to tell RequestFactory to recursively populate my object graph - I feel a bit silly using this: PojoShamRequest request = PojoShamRequestFactory.Util.get().pojoShamRequest(); request.findPojoSham(777L).with( items.items.items.items.items.items.items.items.items.items.items.items, items.properties, items.items.properties, items.items.items.properties, items.items.items.items.properties, items.items.items.items.items.properties, items.items.items.items.items.items.properties, items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.items.items.items.properties.fire(...); On Nov 24, 9:52 am, mp31415 mp_...@yahoo.com wrote: It seems dot notation works (found inRequestFactoryunit tests). Something along the lines .with(lines.start).with(lines.end). On Nov 23, 10:59 am, mp31415 mp_...@yahoo.com wrote: By defaultRequestFactory(RF) fetches an entity proxy itself(the root) but does not fetch other entity proxies referenced from the root. In order to fetch referenced properties their names must be provided using with() method on the request(context). Is there a syntax to request proxies nested even deeper (referenced from those referenced entities of the first level)? For example, if there are three classes(entities): User, Line, Point: class User { SetLine lines;} class Line { Point start; Point end;} class Point { int x; int y; } How can I fetch User proxy with all its lines and points? Please don't tell me about denormalizing, workarounds like referencing everything directly from User or about upcoming in GWT 2.1.1 value(embedded) objects. The question is about entity graph and the classes above are just an illustration. 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/-/j4hGzxAnXuQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle double click/enter key on the row of a datagrid ?
If you want to do this outside the Datagrid you can use DataGrid.addCellPreviewHandler(). The event contains all the information you need. And it is SelectionModel? super T because its less restrictive. For example you can have a DataGridInteger that holds a more generic SelectionModelNumber. Using generics that are least restrictive while ensuring type safety is a good practice for libraries/toolkits. -- J. Am Donnerstag, 18. Oktober 2012 14:08:41 UTC+2 schrieb Marius Grama: My (dirty) workaround was extending AbstractCell class and adding the custom code within: @Override public void onBrowserEvent(final Context context, final Element parent, final C value, final NativeEvent event, final ValueUpdaterC valueUpdater) { HasDataT data = this.column.getTable(); SelectionModel? super T selectionModel = data.getSelectionModel(); if (selectionModel instanceof SingleSelectionModel) { T val = (T) ((SingleSelectionModel? super T) selectionModel).getSelectedObject(); userChoiceHandler.onUserChoice(val); } } method. btw, has anyone an idea why the method getSelectionModel() from HasDataT class returns SelectionModel? super T instead of SelectionModelT ? On Thursday, October 18, 2012 2:01:33 PM UTC+2, Marius Grama wrote: I have a scenario where i am working with a GWT DataGrid on which when the user makes a double-click an event should be raised containing the information about the model bean of the selected selected row. e.g : For a DataGrid containing informations about persons (columns: first name , last name, age) when a double click (or enter key on the currently selected row of the datagrid) is made on one of the rows of the datagrid a MessageBox should appear containing the full name person selected. I've tried for some time to implement this scenario, but I haven't found so far an elegant (and simple) way to implement it. Can anybody assist me on this problem? -- 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/-/tPs0uJEKLVkJ. 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 - how to fetch object graph
Editor Framework: RequestFactoryEditorDriver.getPaths() is one solution. It gives you all paths needed by your Editor hierarchy. In GWT 2.5 there is a global/wildcard operator *: http://code.google.com/p/google-web-toolkit/issues/detail?id=6697 (but ** is not supported yet). I think thats all you have for now. -- J. Am Donnerstag, 18. Oktober 2012 14:14:24 UTC+2 schrieb Eugene Ivlev: Oh my God! It's disgusting, but it is so! Isn't exist better way to work with nested objects? суббота, 11 декабря 2010 г., 20:10:03 UTC+4 пользователь tshalif написал: I wonder either there is a better way to tell RequestFactory to recursively populate my object graph - I feel a bit silly using this: PojoShamRequest request = PojoShamRequestFactory.Util.get().pojoShamRequest(); request.findPojoSham(777L).with( items.items.items.items.items.items.items.items.items.items.items.items, items.properties, items.items.properties, items.items.items.properties, items.items.items.items.properties, items.items.items.items.items.properties, items.items.items.items.items.items.properties, items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.items.items.properties, items.items.items.items.items.items.items.items.items.items.items.items.properties.fire(...); On Nov 24, 9:52 am, mp31415 mp_...@yahoo.com wrote: It seems dot notation works (found inRequestFactoryunit tests). Something along the lines .with(lines.start).with(lines.end). On Nov 23, 10:59 am, mp31415 mp_...@yahoo.com wrote: By defaultRequestFactory(RF) fetches an entity proxy itself(the root) but does not fetch other entity proxies referenced from the root. In order to fetch referenced properties their names must be provided using with() method on the request(context). Is there a syntax to request proxies nested even deeper (referenced from those referenced entities of the first level)? For example, if there are three classes(entities): User, Line, Point: class User { SetLine lines;} class Line { Point start; Point end;} class Point { int x; int y; } How can I fetch User proxy with all its lines and points? Please don't tell me about denormalizing, workarounds like referencing everything directly from User or about upcoming in GWT 2.1.1 value(embedded) objects. The question is about entity graph and the classes above are just an illustration. 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/-/121HOQKQwwUJ. 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 - how to fetch object graph
AFAIK one thing the with does for you is call the method named, so with(lines) will call getLines(), which I imagine would let you build up any structure, including a recursive one. I haven't tried deeply nested structures, though - please update if you know better. On Tuesday, November 23, 2010 5:59:47 PM UTC+2, mp31415 wrote: By default RequestFactory(RF) fetches an entity proxy itself(the root) but does not fetch other entity proxies referenced from the root. In order to fetch referenced properties their names must be provided using with() method on the request(context). Is there a syntax to request proxies nested even deeper (referenced from those referenced entities of the first level)? For example, if there are three classes(entities): User, Line, Point: class User { SetLine lines; } class Line { Point start; Point end; } class Point { int x; int y; } How can I fetch User proxy with all its lines and points? Please don't tell me about denormalizing, workarounds like referencing everything directly from User or about upcoming in GWT 2.1.1 value(embedded) objects. The question is about entity graph and the classes above are just an illustration. 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/-/oApCEbMh6PcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to handle double click/enter key on the row of a datagrid ?
Thanks Jens for the tip. For anybody interested on the solution I've implemented it in the following manner : addCellPreviewHandler(new CellPreviewEvent.HandlerT() { @Override public void onCellPreview(final CellPreviewEventT event) { // userChoiceHandler is used to notify an item choice within the datagrid. if (userChoiceHandler != null) { NativeEvent nativeEvent = event.getNativeEvent(); String eventType = nativeEvent.getType(); if ((BrowserEvents.KEYDOWN.equals(eventType) nativeEvent.getKeyCode() == KeyCodes.KEY_ENTER) || (BrowserEvents.DBLCLICK.equals(nativeEvent.getType( { T selectedValue = event.getValue(); userChoiceHandler.onUserChoice(selectedValue); } } } }); On Thursday, October 18, 2012 2:27:29 PM UTC+2, Jens wrote: If you want to do this outside the Datagrid you can use DataGrid.addCellPreviewHandler(). The event contains all the information you need. And it is SelectionModel? super T because its less restrictive. For example you can have a DataGridInteger that holds a more generic SelectionModelNumber. Using generics that are least restrictive while ensuring type safety is a good practice for libraries/toolkits. -- J. Am Donnerstag, 18. Oktober 2012 14:08:41 UTC+2 schrieb Marius Grama: My (dirty) workaround was extending AbstractCell class and adding the custom code within: @Override public void onBrowserEvent(final Context context, final Element parent, final C value, final NativeEvent event, final ValueUpdaterC valueUpdater) { HasDataT data = this.column.getTable(); SelectionModel? super T selectionModel = data.getSelectionModel(); if (selectionModel instanceof SingleSelectionModel) { T val = (T) ((SingleSelectionModel? super T) selectionModel).getSelectedObject(); userChoiceHandler.onUserChoice(val); } } method. btw, has anyone an idea why the method getSelectionModel() from HasDataT class returns SelectionModel? super T instead of SelectionModelT ? On Thursday, October 18, 2012 2:01:33 PM UTC+2, Marius Grama wrote: I have a scenario where i am working with a GWT DataGrid on which when the user makes a double-click an event should be raised containing the information about the model bean of the selected selected row. e.g : For a DataGrid containing informations about persons (columns: first name , last name, age) when a double click (or enter key on the currently selected row of the datagrid) is made on one of the rows of the datagrid a MessageBox should appear containing the full name person selected. I've tried for some time to implement this scenario, but I haven't found so far an elegant (and simple) way to implement it. Can anybody assist me on this problem? -- 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/-/SFtn2b-vo_UJ. 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: CellTable - hide/show individual columns?
I can use removeColumnStyleName to hide one column and addColumnStyleName to restore that column. I run into one issue. Once one column is hiding, each row of the result table has a large height (almost double). James On Wednesday, October 17, 2012 11:32:07 AM UTC-4, Thomas Broyer wrote: On Wednesday, October 17, 2012 1:35:56 PM UTC+2, Magnus wrote: Hi, I would like to let my users hide some columns of a CellTable, but they should also be able to show them again. Is there a built-in functionality for this? Is there example code somewhere? Either use CSS (addColumnStyleName/removeColumnStyleName) or simply remove/add the columns themselves (removeColumn, addColumn, insertColumn) -- 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/-/oEnXNSqLmTQJ. 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: INHERITANCE FROM JAR FILE , DOESN'T WORK
Hello, @Magnus In my projects where i do use ant to make the automatic build and export of JAR's i put the source code and compiled files together, without any distinction whatsoever (only file extension). To build and export the jar files with Ant i recommend you to use an Eclipse plugin for the effect like eclipse2ant. @Fabio You should have a project.gwt.xml for each project you are linking to the main project (known as a module). In the main_project.gwt.xml you should inherit each of them. In addition you need to specify in the project.gwt.xml all the translatable code (code to be used in the client side or shared with it). Also you need add the inheritance of other modules inside each modules which requires them. If you are using eclipse just export the source code folder (it should be enough) to the lib path in the main GWT project. You should export the source code too. Best Regards. Quinta-feira, 11 de Outubro de 2012 16:13:53 UTC+1, Fabio escreveu: Hello I have an Eclipse GWT CHART project working fine as long as I let my library project linked in this GWT project. But when I compile my library into a jar file, unlink my library project from the classpath of GWT project, and add the jar into war/web-inf/lib and classpath it I get the following exception: [ERROR] [gwt_mwp_sample] - Line 82: No source code is available for type sim.fab.gwt.client.util.GTable; did you forget to inherit a required module? if I rollback everything. WORKS again why does it happen ? Yet I put the inherits name='sim.fab.gwt.client.util'/ into the GWT project xml is it a BUG ? Thanks in advance Fabio -- 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/-/H-vqoODS058J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and MVP
You should be able to find what you are looking for under Large scale application development and MVP - parts 1 and 2 See : https://developers.google.com/web-toolkit/articles/mvp-architecture I've long since abandoned the notion of hiding my pojos from my views so I guess I'm in MVC denial. On Wednesday, October 17, 2012 5:28:16 PM UTC-4, furious_panda wrote: Hi, I need some help, I did not found examples or forums discussions about these subjects. I want to try to do a GWT application using MVP pattern. But I have some difficulties. In MVP, Presenter have to contain Display interface that specifie what the View must implements and return. *I have two problems when I apply this pattern:* 1 - The View must not have to manipulate Model. Or, how it is possible for a collections of objects? For example, I have model object Person as follows: *public class Person{* *private String firstname;* *private String lastname;* *private Integer age;* *.. * *}* The View must display a collection of Person in Table (Flextable for example) whithout manipulating Model. How it is possible ? This is my presenter, and what I do now: *public class PersonListPresenter extends WidgetPresenterPersonListPresenter .Display { * * public interface Display extends WidgetDisplay{* * public void setData(ListPerson data);* *}* ** *protected void onBind() {* * display.setData(data);* *}* *}* This is my view, and what I do now: *public class SongsView implements PersonListPresenter .Display {* *..* *public void setData(ListPerson data) { * * if(data!=null data.size() 0){* * for (Person person: data) {* * // I display all information about each Person in one row of table * * * * }* *}* *}* *.* *}* *How can I do in MVP for this case ?* 2 - My second problem, is each row of this table must be clickable ? How I can do ? How can I get from display click event for each row ? *public class PersonListPresenter extends WidgetPresenterPersonListPresenter .Display { * * public interface Display extends WidgetDisplay{* * public void setData(ListPerson data);* *}* ** *protected void onBind() {* * display.setData(data);* * // I have to implement the same information for each row but the source information is different.* * // I have to fire an Event containing the Person information that is clicked* * display.get ? * * * * .addClickHandler(new ClickHandler() {* * public void onClick(ClickEvent event) {* * * *}* * }* *}* *}* 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/-/ro6a8GQEM3YJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT and MVP
On Wednesday, October 17, 2012 5:28:16 PM UTC-4, furious_panda wrote: Hi, I need some help, I did not found examples or forums discussions about these subjects. I want to try to do a GWT application using MVP pattern. But I have some difficulties. In MVP, Presenter have to contain Display interface that specifie what the View must implements and return. *I have two problems when I apply this pattern:* 1 - The View must not have to manipulate Model. Or, how it is possible for a collections of objects? For example, I have model object Person as follows: *public class Person{* *private String firstname;* *private String lastname;* *private Integer age;* *.. * *}* The View must display a collection of Person in Table (Flextable for example) whithout manipulating Model. How it is possible ? This is my presenter, and what I do now: *public class PersonListPresenter extends WidgetPresenterPersonListPresenter .Display { * * public interface Display extends WidgetDisplay{* * public void setData(ListPerson data);* *}* ** *protected void onBind() {* * display.setData(data);* *}* *}* This is my view, and what I do now: *public class SongsView implements PersonListPresenter .Display {* *..* *public void setData(ListPerson data) { * * if(data!=null data.size() 0){* * for (Person person: data) {* * // I display all information about each Person in one row of table * * * * }* *}* *}* *.* *}* *How can I do in MVP for this case ?* I have not been hard and fast about hiding POJOs from my my views. After all, a view has to know what to display and I find oodles of getFoo() are a lot work for the return. However I put all updating of my POJOs in my activities. Each time the view need to display something, it gets it from the activity. The activity handles setDirty(true|false). This seem easiest for my mind to grasp. 2 - My second problem, is each row of this table must be clickable ? How I can do ? How can I get from display click event for each row ? *public class PersonListPresenter extends WidgetPresenterPersonListPresenter .Display { * * public interface Display extends WidgetDisplay{* * public void setData(ListPerson data);* *}* ** *protected void onBind() {* * display.setData(data);* * // I have to implement the same information for each row but the source information is different.* * // I have to fire an Event containing the Person information that is clicked* * display.get ? * * * * .addClickHandler(new ClickHandler() {* * public void onClick(ClickEvent event) {* * * *}* * }* *}* *}* Thanks in advance. If your using a FlexTable, look at samples/Mail for how this is done. I've implemented something akin to this *many* times (though now I'm moving larger data sets to cells). -- 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/-/WJsyuTpCL74J. 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 Bean Validation doubts
Hi. I am trying to use GWT Bean Validation but I can't find in the docs wich ones are the supported annotations in client side and server side. For example I've tried to use @Email and it seems doesn't work. So I would like to know if there some list of supported annotations. On the other side I can't figure how can I throw custom ConstraintViolationException(s) in my ServiceImpl. For example I can't have 2 users with the same email. So, in my UserServiceImpl.create() method I would like to throw a ConstraintViolationException if someone tries to register with a email that is already in the database. But I can't figure how to throw a ConstraintViolationException in this case. -- 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/-/fdduXeZxnacJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC call from server to client
Hi, I took a look at most of the libraries, but there is no one that can make my happy, because none of them seems to be lightweight. Atmosphere requires Maven. If I go to Maven someday, I would like to do this on the basis of a free decision, but not as a dependency for the library I am looking for. All the systems mentioned in the context of Comet ( http://cometdaily.com/maturity.html) seem to be big frameworks, with much more functionality than that I am looking for. This also holds for Errai. I am always careful with such decisions. If I always add a complete framework whenever I need a little bit of functionality, my project will explode very soon. What seems to be nice and small and light is the HTML5 support for WebSockets, at least as described here (*): http://code.google.com/p/gwt-ws/ One Servlet declaration, one Handler at the server and one handler at the client. This seems very attractive to me! However, it seems that GWT supports HTML5 but without WebSockets: https://developers.google.com/web-toolkit/doc/latest/DevGuideHtml5?hl=de Is this correct? Why does GWT support HTML5 but not for such an important thing like WebSockets? So if I wanted to use the library above (*): How are these projects below code.google.com organized? Is it always a jar file that one has to put into WEB-INF/lib to use the library? I really hope that I can use this lightweight library (*) very soon and I appreciate any help that gets me started. Magnus -- 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/-/F7EayG9GU_kJ. 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: Issue with TabLayoutPanel in 2.5.0 RC1 RC2
Hopefully you have called uiBinder.createAndBindUi(this) after instantiating your tabPanel_? If not it won't contain any tabs. How/when do you call your render() method? Maybe you have refactored something while migrating to GWT 2.5? -- J. -- 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/-/Wl8FhyhJr0QJ. 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.
FixedWidthGrid Click Event Row
Hello I'm trying to add CLICK ROW EVENT to FixedWidthGrid but I have no any result, dou you have any idea? 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/-/IoSDkJ_47LYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC call from server to client
The problem is that websocket (as any other HTML5 spec) has chages a bit in the last two years making some useful libraries outdated and not definitely working. On Thursday, October 18, 2012 6:56:19 PM UTC+2, Magnus wrote: Hi, I took a look at most of the libraries, but there is no one that can make my happy, because none of them seems to be lightweight. Atmosphere requires Maven. If I go to Maven someday, I would like to do this on the basis of a free decision, but not as a dependency for the library I am looking for. You can always download the jars somewhere and/or use a dependency manager like Apache Ivy (that can be easily integrated with ant) that fetches Maven dependencies and/or build the jar from scratch. Maven is not an obstacle. All the systems mentioned in the context of Comet ( http://cometdaily.com/maturity.html) seem to be big frameworks, with much more functionality than that I am looking for. This also holds for Errai. That article is quite outdated (2009), I suspect there *a lot* more frameworks out there that can make the difference. But if you want to go with websockets as lightweight as possible, both your server and your client (browser) need to support it in the most up-to-date way. I am always careful with such decisions. If I always add a complete framework whenever I need a little bit of functionality, my project will explode very soon. What seems to be nice and small and light is the HTML5 support for WebSockets, at least as described here (*): http://code.google.com/p/gwt-ws/ One Servlet declaration, one Handler at the server and one handler at the client. This seems very attractive to me! Last update is Nov 2010, I guess the websocket specs have changed since then, so I don't think this will ever work. But you can try! However, it seems that GWT supports HTML5 but without WebSockets: https://developers.google.com/web-toolkit/doc/latest/DevGuideHtml5?hl=de Is this correct? Why does GWT support HTML5 but not for such an important thing like WebSockets? Not in GWT, but you can try the GWT Elemental library (for the client) that support all HTML5 specs, just pay attention to the supported browsers. So if I wanted to use the library above (*): How are these projects below code.google.com organized? Is it always a jar file that one has to put into WEB-INF/lib to use the library? You can clone a repository and build from sources or download the jar and place it in the lib folder. I really hope that I can use this lightweight library (*) very soon and I appreciate any help that gets me started. Magnus There is also another library (streaming/long polling tough) I've used some time ago http://code.google.com/p/gwteventservice/ . It adheres somehow to the server-event specifications (that is another way to say server-client communication). Anyway I'd give atmosphere a try. -- 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/-/VY-YjSlPtSsJ. 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 define AutoBeanFactory?
I'm trying to figure out how to use AutoBeanFactory to decode a JSONString, e.g. AutoBeanIPayload autoBean = AutoBeanCodex.decode(myAutoBeanFactory, IPayload.class, jsonValue.stringValue()); IPayload payload = autoBean.as(); What I'm not clear on is how to define myAutoBeanFactory? I understand that's an interface passed to GWT.create(MyAutoBeanFactory.class), but what methods does MyAutoBeanFactory need? My IPayload and its content is defined as: public interface IPayload extends Serializable { IGWTMessage[] getMessages(); void setMessages(IGWTMessage[] messages); } public interface IGWTMessage extends IGWTMessage { IUUIDReference getMessageId(); void setMessageId(IUUIDReference id); } Then there are about a dozen derived interfaces that extend IGWTMessage and then each of those has its concrete implementation class. How can I handle this with AutoBeanFactory/JSON? Btw, this used to be just Serialized and marshaled that way but now I'm trying to use a different approach that requires JSON. Also, if there was a way to just do a regular Java binary serialization that would be fine too as I could then turn that into a Base64 encoded string and send just that via JSON...then do the reverse on the server. (But I haven't yet seen a way to do Java binary serialization in the GWT client.) Thanks, -Dave -- 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/-/5QAmrhzI7gsJ. 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 client side Java object serialization
I have some rather complex data objects that currently get marshaled from client to server and server to client (comet communication). Btw, not complex in quantity of data, or data relationships, but data is arrays of lots of different derived interface/class types. The data used to be just serialized but now it needs to be sent via JSON. Is it possible to perform regular Java object serialization in the GWT client? If so, I could solve this by converting that binary output into Base64 encoded string and send that via the new JSON API and then just reverse that on the server. Is it even possible to do this in GWT? Of course the other approach is to convert the Java object into a full JSON object but given it's complexity I haven't found a way to do that yet (I posted separate newsgroup message on that approach). Either approach would be fine for me, I can worry about performance differences later. -Dave -- 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/-/GfBKkCRHfqgJ. 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.
Replace Jetty with Resin in Eclipse hosted mode
Anyone had success with this? I can add the resin server, but when I try to add the gwt project to it I just get There are no resources that can be added to the server. -- 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/-/TxQqDHpavpoJ. 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 2.5 RC1 Is Here!
Just wondering if the GWT mail example for source maps code is available for download? It seems that I've got the Code server to generate the source mapping files and I enable the source mapping in my chrome browsers. But when I select the JavaScript file in the source view all I see is JavaScript not Java. Just wondering if there is a some sample code to look to make sure I've got everything set up. BTW do I have to set the link between the JS and the Java file by hand, using the sourceMappingURL ? I currently using GWT 2.5 RC2 On Wednesday, June 27, 2012 4:39:07 PM UTC-4, Rajeev Dayal wrote: Hey all, We're excited to announce the GWT 2.5 Release Candidate! Read about it on the GWT Blog http://googlewebtoolkit.blogspot.com/2012/06/gwt-2.html, and download it here http://developers.google.com/web-toolkit/download (bottom of the page). The RC has been uploaded to Maven Central with the version string of 2.5.0-rc1. Please give it a try and let us know your feedback! Also, many thanks to all of you for your contributions. Without your help, we wouldn't have had a GWT 2.5 release at all! -Rajeev, on behalf of the GWT team -- 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/-/DCEtana3TMsJ. 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: keyboard shortcuts
I have just recently discovered the onPreviewNativeEvent() method which allows you to capture key presses without registering a KeyDownHandler. Off the top of my head, I do not recall which widgets specifically support this. I have been using it in my Dialog widgets. You will need to override this method in your implementation. I have not used to for determining combinations of keys (Ctrl+key, function keys, etc.) but it may work. - Matt On Tuesday, October 16, 2012 3:50:28 PM UTC-4, vanessa vanessa wrote: Hi all, I have to implement specefic keyboard shortcuts to my web application. And I want to ask if GWT provide interfaces to deal with such a requirement. If it's the case what are the limits of these shortcuts ? The compatibility with some browsers is an important point. Any help would be greatly appreciated. Thnaks a lot. -- 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/-/JptG18ZfYK8J. 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.
Switch between Standard and StandardRTL base on locale
Dear all, I would like to add the following two inherits in my aaa.gwt.xml inherits name='com.aaa.theme.standard.Standard'/ inherits name='com.aaa.theme.standard.StandardRTL'/ but these two should be added based on condition of the following extend-property name=locale values=en/ extend-property name=locale values=ar / if locale=en I will add inherits name='com.aaa.theme.standard.Standard'/ else if locale=ar I will add inherits name='com.aaa.theme.standard.StandardRTL'/. Does someone has any idea? 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/-/KUruL5sUtJsJ. 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 2.5 RC1 Is Here!
Just wondering if the GWT mail example for source maps code is available for download? It seems that I've got the Code server to generate the source mapping files and I enable the source mapping in my chrome browsers. But when I select the JavaScript file in the source view all I see is JavaScript not Java. Just wondering if there is a some sample code to look to make sure I've got everything set up. BTW do I have to set the link between the JS and the Java file by hand, using the sourceMappingURL ? I currently using GWT 2.5 RC2 -- 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/-/HHtyE0dk3K0J. 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: keyboard shortcuts
You can globally listen for all browser events by using Event.addNativePreviewHandler(). Inside the handler you can globally check for shortcut keys on keydown / keyup events. But be aware that there are inconsistencies between browsers for the return values of NativeEvent.getKeyCode() and NativeEvent.getCharCode() for keyup/keydown/keypress events. GWT does not handle these inconsistencies between browsers because it seems to be quite complex to do it right. -- J. -- 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/-/CwsnhQFrrt8J. 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.
Polymorphic requestfactory example wanted
Hi All, I need a requestfactory, which can transports a MapString, ? extends BaseObject objects. Is there any example to help me to understanding, how can I do it? thx Zamek -- 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/-/UbaxbC2UcIwJ. 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.
Switch between Standard and StandardRTL
Hi all, I am using the following two inheritance in my xml file *inherits name='com.sab2i.theme.standard.StandardRTL'/* *inherits name='com.sab2i.theme.standard.Standard'/* but i would like to inlucde one of theme base on the locale when the page is called. for example if locale =en, i would like to include *inherits name='com.sab2i.theme.standard.Standard'/* if locale=ar i would like to include *inherits name='com.sab2i.theme.standard.StandardRTL'/* Does any one have an idea ? -- 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/-/vZjO8BJWJQEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to make ValueBoxEditorDecorator error message positionate to the right?
I would like to get [ text box ] Error message. But I am getting this: Error message [ text box ] This is my ui.xml: tr tdui:msg description=EmailEmail/ui:msg/td td e:ValueBoxEditorDecorator ui:field=email e:valuebox g:TextBox styleName={resources.style.editField}/ /e:valuebox /e:ValueBoxEditorDecorator /td /tr And this in my style: .editField { display: inline; width: fieldWidth; } .rightAlign { text-align: right; } And I've tried playing with CSS to make the error message positionate to the right of the text box, but I can't figure how can I do it. Is there any way to positionate the error message to the right of the text box? -- 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/-/tEPcsMfbgEcJ. 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 client side Java object serialization
Is it possible to perform regular Java object serialization in the GWT client? Puh, once compiled your Java code is JavaScript code. No JVM available, no reflection available, classes/methods/variable names obfuscated. So your only chance would be a GWT generator that produces serialization code at compile time. This serialization code must correctly produce/consume binary data that satisfies the serialization protocol of Java: http://docs.oracle.com/javase/7/docs/platform/serialization/spec/protocol.html . Not sure if thats possible. My feeling says no, but I also have never read up Java's serialization spec. So maybe my feeling is wrong. Of course the other approach is to convert the Java object into a full JSON object but given it's complexity I haven't found a way to do that yet (I posted separate newsgroup message on that approach). Either approach would be fine for me, I can worry about performance differences later. Thats what I would try. There are - Json Overlay Types - AutoBeans - Frameworks like Piriti (http://code.google.com/p/piriti/) - maybe you can borrow you some code from resty-gwt (http://restygwt.fusesource.org/documentation/restygwt-user-guide.html#JSON_Encoder_Decoders) - you can roll your own solution using GWT's generators at compile time. I'll bet there should exist something that suites your needs. -- J. -- 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/-/6k-Od4I1CwwJ. 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: Replace Jetty with Resin in Eclipse hosted mode
you could run the GWT project with external server; On Friday, October 19, 2012 4:56:19 AM UTC+8, Carl Whalley wrote: Anyone had success with this? I can add the resin server, but when I try to add the gwt project to it I just get There are no resources that can be added to the server. -- 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/-/cHxh7WmvmqMJ. 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: chrome - prompting me to install gwt plugin but already installed
I started seeing this today as well. However, it seems with the new version of chrome you are not allowed to install extensions unless its through the chrome web store ( http://support.google.com/chrome_webstore/bin/answer.py?hl=enanswer=2664769p=crx_warning). But I couldn't find the plugin there! https://chrome.google.com/webstore/search/GWT?hl=en-US Is there another way to get the gwt-dev-plugin.crx to install? On Tuesday, September 18, 2012 8:10:58 PM UTC-7, otosaat wrote: Hi Xavier, I've also encountered the same problem. Would you please share if you have you figured out a solution? Thanks, Otosaat. On Friday, April 27, 2012 3:25:40 AM UTC-4, Xavophonic wrote: Hi, Here is my configuration Google Web Toolkit 2.0.4 on my server Jetty. Chrome version 18.0.1025.162 m Windows XP PS3. Google Web Toolkit Developer Plugin version 1.0.9738. After installed the plugin, I restart Chrome. I come back to my development page. I still have got the message : Development Mode requires the Google Web Toolkit Developer Plugin. I tried the former URLs to an old version of the plugin, but they are broken. Publishing the old version of the plugin in the extention gallery would be helpfull. Could someone help me ? Best regards, Xavier -- 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/-/QkX-CuXzc0EJ. 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.
big Double accessor method and editor binding
Is it possible to use big Double objects for accessor methods in conjunction with a BeanEditor implements EditorBean ? With the code below it works in Eclipse but when deployed to Tomcat I get a NoSuchMethodError (see below) class Bean { Double foo = null; public void setFoo(Double foo) { this.foo = foo; } public Double getFoo() { return foo; } } The BeanEditor uses a home-grown DoubleEditor tied to a TextBox: @UiField @Editor.Ignore public TextBox foo = new TextBox(); public DoubleEditor fooEditor = new DoubleEditor(foo); And the DoubleEditor has a getValue and setValue that is tied to the TextBox: public class DoubleEditor implements LeafValueEditorDouble{ Here's the exception in tomcat's localhost.log: Oct 18, 2012 8:59:07 PM org.apache.catalina.core.ApplicationContext log SEVERE: Exception while dispatching incoming RPC call com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract void foo.client.service.PartService.updateBreakerDef(foo.shared.model.parts.BreakerDef) throws foo.shared.QException' threw an unexpected exception: java.lang.NoSuchMethodError: foo.shared.model.parts.BreakerDef.getRawCost()D at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877) at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675) at java.lang.Thread.run(Thread.java:722) Caused by: java.lang.NoSuchMethodError: foo.shared.model.parts.BreakerDef.getRawCost()D at foo.server.db.BreakerDefDB.update(BreakerDefDB.java:99) at foo.server.PartServiceImpl.updateBreakerDef(PartServiceImpl.java:86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) ... 17 more 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/-/uvjkbPDOw9cJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Initial Gerrit setup for GWT Open Source Project
All, Matthew doesn't mention it above (it's a copy/paste from the mail he sent to us members of the Steering Committee a few days ago) but be prepared to rebase your changes sometime in the near future, as the plugins folder (for instance) will be extracted out into its own repository, meaning the whole repo history will be rewritten. As Matthew said: consider this a beta release. And since I'm writing this, I'd like to publicly thank Google, and more specifically Matthew, for setting up this platform. On Wednesday, October 17, 2012 8:56:02 PM UTC+2, Matthew Dempsky wrote: *Hello GWT Contributors! I wanted to let you know that we've configured a Git and Gerrit server for the GWT Open Source Project at https://gwt.googlesource.com and https://gwt-review.googlesource.com, respectively. It’s pre-populated with a mirror of the Google Code Subversion repository using git-svn, and we'll be keeping them in sync going forward. Consider this a beta release still, but it should currently be possible for registered users to checkout the code and to post comments and vote. Additionally, users that sign the CLA should be able to upload changes of their own. We've also created an invite-only list gwt-mai...@googlegroups.com javascript: whose members will have additional permissions for approving and submitting changes. Ray Cromwell is currently administering this list, so I'll leave it to him to take care of adding people as appropriate. At the moment, the Git repo is effectively just an external mirror like the current Subversion repo. The intent here is to allow the community to start trying out Gerrit instead of Rietveld for reviews, while we [Google] work out the remaining details to switch from our current push-mirroring model to a pull-mirroring model. We intend to also now start accepting patches uploaded to Gerrit (though still through manual import into our internal repository).* * * *Please test it out and give us any feedback you have. Thanks, Matthew Gerrit Crash Course In case you’re not familiar with Gerrit already, here are a few beginner steps to get started with: Going to https://gwt.googlesource.com/https://gwt-review.googlesource.com/,or https://gwt-review.googlesource.com/ you should be able to see the “gwt” project. You should also be able to anonymously check this out by simply running “git clone https://gwt.googlesource.com/gwt”. Further, you should be able to go to https://gwt-review.googlesource.com/and sign in using your Google Account. Once signed in you should be able to comment and code review existing issues like the sample issue I created at https://gwt-review.googlesource.com/#/c/1020/. Finally, to actually create an issue is slightly more involved, but most of the steps only need to be done once: 1. Complete a Contributor Agreement: go to https://gwt-review.googlesource.com, click “Settings” and then “Agreements”, and follow the instructions. If you previously submitted an individual CLA electronically via Google Code, please do so again via Gerrit (sorry!). If you previously submitted a corporate CLA and Gerrit does not reflect this already, please email me privately and I’ll check with Google’s Open Source Program Office to get this resolved. 2. Setup your HTTP Password: Still under Settings, go to “HTTP Password” and click “Obtain Password” and follow the steps to get your HTTP Password and/or to setup your .netrc file. 3. Setup your Gerrit commit-msg hook (optional, but recommended): Gerrit provides a commit hook at https://gwt-review.googlesource.com/tools/hooks/commit-msg to automatically add Change-Id lines to your commits. Download this and add it to your checkout’s .git/hooks directory (e.g., “curl -o .git/hooks/commit-msg https://gwt-review.googlesource.com/tools/hooks/commit-msg chmod +x .git/hooks/commit-msg”). 4. Make a change and commit it locally using git (e.g., edit a file foo and then run “git commit -m ‘my first change’ foo”). 5. Push the commit to Gerrit for review: git push origin HEAD:refs/for/master. Further details can be found in the Git and Gerrit documentations: http://git-scm.com/documentation https://gerrit-review.googlesource.com/Documentation/index.html* -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] GWT 2.5 Final - Next Week
Hi Guys - We are going to be pushing the 2.5 RC2 (plus 1-2 minor cherrypicks) to Final next week - if there are any problems, please let me (unn...@google.com) know before Monday morning. Note that problems includes only regressions - so stuff that worked in 2.4 and is now broken in 2.5. Thanks everyone! - Unnur -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] GWT 2.5 Final - Next Week
Hmmm - I'm not sure that will qualify as a regression - did it work in 2.4 (I thought closure compiler was new in 2.5)? I'll ping our guys that worked on Closure Compiler though and see what the status is - thanks for the heads up! - Unnur On Thu, Oct 18, 2012 at 11:19 AM, Johannes Barop j...@barop.de wrote: I'm still having this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=7475 Am 18.10.2012 um 17:56 schrieb unnurg unn...@google.com: Hi Guys - We are going to be pushing the 2.5 RC2 (plus 1-2 minor cherrypicks) to Final next week - if there are any problems, please let me ( unn...@google.com) know before Monday morning. Note that problems includes only regressions - so stuff that worked in 2.4 and is now broken in 2.5. Thanks everyone! - Unnur -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- DO NOT FORWARD -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] GWT 2.5 Final - Next Week
These came up on the GWT group from guys upgrading to 2.5 RC1/2: RequestFactory (Update from 2.4 to 2.5): https://groups.google.com/forum/#!msg/google-web-toolkit/kYrmJ3gQLRI/ZcjrSIZ_qWYJ TabLayoutPanel (Update from 2.3 to 2.5): https://groups.google.com/forum/#!msg/google-web-toolkit/E2-DcCWhz6U/57a52tcPIaAJ -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] GWT 2.5 Final - Next Week
Hi Johannes - I've confirmed that this is not a regression - just a known issue with the new closure compiler stuff. I've updated the bug accordingly. - Unnur On Thu, Oct 18, 2012 at 11:35 AM, Unnur Gretarsdottir unn...@google.comwrote: Hmmm - I'm not sure that will qualify as a regression - did it work in 2.4 (I thought closure compiler was new in 2.5)? I'll ping our guys that worked on Closure Compiler though and see what the status is - thanks for the heads up! - Unnur On Thu, Oct 18, 2012 at 11:19 AM, Johannes Barop j...@barop.de wrote: I'm still having this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=7475 Am 18.10.2012 um 17:56 schrieb unnurg unn...@google.com: Hi Guys - We are going to be pushing the 2.5 RC2 (plus 1-2 minor cherrypicks) to Final next week - if there are any problems, please let me ( unn...@google.com) know before Monday morning. Note that problems includes only regressions - so stuff that worked in 2.4 and is now broken in 2.5. Thanks everyone! - Unnur -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- DO NOT FORWARD -- DO NOT FORWARD -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] GWT 2.5 Final - Next Week
Hi Jens - It seems like both of those are still being debugged and are potentially unrelated to the 2.5 upgrade. As far as I know, there were few changes to RequestFactory and TabLayoutPanel in 2.5. I added both of those threads to my watchlist however, and if they resolve in the next few days to point to a 2.5 regression we'll see what we can do. Thanks for the heads up! - Unnur On Thu, Oct 18, 2012 at 12:00 PM, Jens jens.nehlme...@gmail.com wrote: These came up on the GWT group from guys upgrading to 2.5 RC1/2: RequestFactory (Update from 2.4 to 2.5): https://groups.google.com/forum/#!msg/google-web-toolkit/kYrmJ3gQLRI/ZcjrSIZ_qWYJ TabLayoutPanel (Update from 2.3 to 2.5): https://groups.google.com/forum/#!msg/google-web-toolkit/E2-DcCWhz6U/57a52tcPIaAJ -- J. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- DO NOT FORWARD -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] GWT 2.5 Final - Next Week
I'm still having this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=7475 Am 18.10.2012 um 17:56 schrieb unnurg unn...@google.com: Hi Guys - We are going to be pushing the 2.5 RC2 (plus 1-2 minor cherrypicks) to Final next week - if there are any problems, please let me (unn...@google.com) know before Monday morning. Note that problems includes only regressions - so stuff that worked in 2.4 and is now broken in 2.5. Thanks everyone! - Unnur -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Replace instances of element.setInnerHTML(safeHtml.asString()) (issue1857803)
Reviewers: skybrian, tbroyer, Description: Replace instances of element.setInnerHTML(safeHtml.asString()) with element.setInnerSafeHtml(safeHtml). Please review this at http://gwt-code-reviews.appspot.com/1857803/ Affected files: M samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidgetView.java M user/src/com/google/gwt/cell/client/AbstractCell.java M user/src/com/google/gwt/cell/client/ImageLoadingCell.java M user/src/com/google/gwt/dom/builder/client/DomBuilderImpl.java M user/src/com/google/gwt/dom/builder/shared/HtmlBuilderImpl.java M user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java M user/src/com/google/gwt/user/cellview/client/AbstractHasData.java M user/src/com/google/gwt/user/cellview/client/CellBrowser.java M user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java M user/src/com/google/gwt/user/cellview/client/CellWidget.java M user/src/com/google/gwt/user/client/ui/RenderablePanel.java M user/src/com/google/gwt/user/client/ui/impl/ClippedImageImpl.java M user/test/com/google/gwt/cell/client/ImageLoadingCellTest.java M user/test/com/google/gwt/uibinder/test/client/UiRendererEventsTest.java M user/test/com/google/gwt/uibinder/test/client/UiRendererTest.java Index: samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidgetView.java === --- samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidgetView.java (revision 11343) +++ samples/showcase/src/com/google/gwt/sample/showcase/client/ContentWidgetView.java (working copy) @@ -56,7 +56,7 @@ } public void setDescription(SafeHtml html) { -descElem.setInnerHTML(html.asString()); +descElem.setInnerSafeHtml(html); } public void setExample(Widget widget) { Index: user/src/com/google/gwt/cell/client/AbstractCell.java === --- user/src/com/google/gwt/cell/client/AbstractCell.java (revision 11343) +++ user/src/com/google/gwt/cell/client/AbstractCell.java (working copy) @@ -135,7 +135,7 @@ public void setValue(Context context, Element parent, C value) { SafeHtmlBuilder sb = new SafeHtmlBuilder(); render(context, value, sb); -parent.setInnerHTML(sb.toSafeHtml().asString()); +parent.setInnerSafeHtml(sb.toSafeHtml()); } /** Index: user/src/com/google/gwt/cell/client/ImageLoadingCell.java === --- user/src/com/google/gwt/cell/client/ImageLoadingCell.java (revision 11343) +++ user/src/com/google/gwt/cell/client/ImageLoadingCell.java (working copy) @@ -195,8 +195,7 @@ imgWrapper.getStyle().setProperty(overflow, auto); } else if (BrowserEvents.ERROR.equals(type) eventOccurredOnImage(event, parent)) { // Replace the loading indicator with an error message. - parent.getFirstChildElement().setInnerHTML( - errorRenderer.render(value).asString()); + parent.getFirstChildElement().setInnerSafeHtml(errorRenderer.render(value)); } } Index: user/src/com/google/gwt/dom/builder/client/DomBuilderImpl.java === --- user/src/com/google/gwt/dom/builder/client/DomBuilderImpl.java (revision 11343) +++ user/src/com/google/gwt/dom/builder/client/DomBuilderImpl.java (working copy) @@ -568,7 +568,7 @@ @Override protected void doHtmlImpl(SafeHtml html) { -getCurrentElement().setInnerHTML(html.asString()); +getCurrentElement().setInnerSafeHtml(html); } @Override Index: user/src/com/google/gwt/dom/builder/shared/HtmlBuilderImpl.java === --- user/src/com/google/gwt/dom/builder/shared/HtmlBuilderImpl.java (revision 11343) +++ user/src/com/google/gwt/dom/builder/shared/HtmlBuilderImpl.java (working copy) @@ -654,7 +654,7 @@ @Override protected Element doFinishImpl() { Element tmp = Document.get().createDivElement(); -tmp.setInnerHTML(asSafeHtml().asString()); +tmp.setInnerSafeHtml(asSafeHtml()); return tmp.getFirstChildElement(); } Index: user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java === --- user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java (revision 11343) +++ user/src/com/google/gwt/user/cellview/client/AbstractCellTable.java (working copy) @@ -475,11 +475,11 @@ */ sectionTag = sectionTag.toLowerCase(); if (tbody.equals(sectionTag)) { -tmpElem.setInnerHTML(template.tbody(rowHtml).asString()); +tmpElem.setInnerSafeHtml(template.tbody(rowHtml)); } else if (thead.equals(sectionTag)) { -tmpElem.setInnerHTML(template.thead(rowHtml).asString()); +tmpElem.setInnerSafeHtml(template.thead(rowHtml)); } else if
[gwt-contrib] Re: Replace instances of element.setInnerHTML(safeHtml.asString()) (issue1857803)
LGTM http://gwt-code-reviews.appspot.com/1857803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Update the DevMode Chrome plugin's Makefile to build a zip file to upload to the Chrome web store. (issue1858803)
Reviewers: mdempsky, Description: Update the DevMode Chrome plugin's Makefile to build a zip file to upload to the Chrome web store. Instead of building a crx file, we build a zip file containing the files to upload. Also, the Chrome web store doesn't allow the key or update URL to be set in the manifest. Please review this at http://gwt-code-reviews.appspot.com/1858803/ Affected files: M plugins/npapi/Makefile M plugins/npapi/manifest-template.json M plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json Index: plugins/npapi/Makefile === --- plugins/npapi/Makefile (revision 11340) +++ plugins/npapi/Makefile (working copy) @@ -54,30 +54,30 @@ OBJ_OUTDIR= build/$(TARGET_PLATFORM) EXTENSION_OUTDIR = prebuilt/gwt-dev-plugin +EXTENSION_FILES = *.html *.js *.png *.txt \ + DevModeOptions/*.gif DevModeOptions/*.js DevModeOptions/*.txt \ + Linux*/*.so WIN*/*.dll Darwin*/*/*/*.plist Darwin*/*/*/*/*.dylib PLATFORM_DIR = $(EXTENSION_OUTDIR)/$(TARGET_PLATFORM) PLATFORM_DIR_SUFFIX ?= -INSTALLER_CRX = prebuilt/gwt-dev-plugin.crx DLL = $(OBJ_OUTDIR)/libGwtDevPlugin$(DLL_SUFFIX) -GWTDEV_CRX_PEM ?= $(CURDIR)/gwt-dev-plugin.pem -CHROME_COMMAND= $(CHROME_PATH) --pack-extension=$(CURDIR)/$(EXTENSION_OUTDIR) --no-message-box --user-data-dir=$(CURDIR)/$(OBJ_OUTDIR)/user-data --pack-extension-key=$(GWTDEV_CRX_PEM) - -#DLLFLAGS += +#DLLFLAGS += VERSION ?= 1.0.$(shell ./getversion) ifeq ($(VERSION), 1.0.) $(error You must specify the version if you are not in an svn checkout) endif -.PHONY: default all crx lib common clean depend install install-platform \ +.PHONY: default all zip lib common clean depend install install-platform \ versioned-files devmodeoptions default:: lib versioned-files devmodeoptions -all:: common lib install-platform crx +all:: common lib install-platform zip lib:: $(OBJ_OUTDIR) $(EXTENSION_OUTDIR) $(DLL) -crx:: $(EXTENSION_OUTDIR) $(INSTALLER_CRX) +zip:: $(EXTENSION_OUTDIR) + (cd $(EXTENSION_OUTDIR); zip ../upload.zip $(EXTENSION_FILES)) linuxplatforms: $(MAKE) lib ARCH=x86 @@ -108,9 +108,6 @@ $(OBJ_OUTDIR):: @mkdir -p $@ - -$(INSTALLER_CRX): $(GWTDEV_CRX_PEM) $(EXTENSION_OUTDIR) versioned-files - $(shell $(CHROME_COMMAND)) versioned-files:: sed -e s/GWT_DEV_PLUGIN_VERSION/$(VERSION)/ manifest-template.json prebuilt/gwt-dev-plugin/manifest.json Index: plugins/npapi/manifest-template.json === --- plugins/npapi/manifest-template.json(revision 11340) +++ plugins/npapi/manifest-template.json(working copy) @@ -4,7 +4,6 @@ manifest_version: 2, description: A plugin to enable debugging with GWT's Development Mode, - update_url: https://dl-ssl.google.com/gwt/plugins/chrome/updates.xml;, icons: { 16: gwt16.png, 32: gwt32.png, @@ -13,7 +12,6 @@ 128: gwt128.png }, - key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDi6RrEy9YllRLM8bGBcIEk5ECAG2z+8ngTz7wwzRAQJpOzDp1Alq8fQFjH0+dzxok4RFLrWKHjxGqvXzWyWyTEo2nY3ScHLN/RoANMs8pl9X6TygRyO+3naqZOtLCrYHfV49JKXnYoFVbY5eBVYxHYY3BHAOKJj9onyAM4UPmMzQIDAQAB, background: { page: background.html }, Index: plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json === --- plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json (revision 11340) +++ plugins/npapi/prebuilt/gwt-dev-plugin/manifest.json (working copy) @@ -4,7 +4,6 @@ manifest_version: 2, description: A plugin to enable debugging with GWT's Development Mode, - update_url: https://dl-ssl.google.com/gwt/plugins/chrome/updates.xml;, icons: { 16: gwt16.png, 32: gwt32.png, @@ -13,7 +12,6 @@ 128: gwt128.png }, - key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDi6RrEy9YllRLM8bGBcIEk5ECAG2z+8ngTz7wwzRAQJpOzDp1Alq8fQFjH0+dzxok4RFLrWKHjxGqvXzWyWyTEo2nY3ScHLN/RoANMs8pl9X6TygRyO+3naqZOtLCrYHfV49JKXnYoFVbY5eBVYxHYY3BHAOKJj9onyAM4UPmMzQIDAQAB, background: { page: background.html }, -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update the DevMode Chrome plugin's Makefile to build a zip file to upload to the Chrome web store. (issue1858803)
LGTM http://gwt-code-reviews.appspot.com/1858803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Update the DevMode Chrome plugin's Makefile to build a zip file to upload to the Chrome web store. (issue1858803)
http://gwt-code-reviews.appspot.com/1858803/diff/1/plugins/npapi/Makefile File plugins/npapi/Makefile (right): http://gwt-code-reviews.appspot.com/1858803/diff/1/plugins/npapi/Makefile#newcode57 plugins/npapi/Makefile:57: EXTENSION_FILES = *.html *.js *.png *.txt \ Oops, I did want to comment that this makes me a little nervous because people might get confused by when the globs are expanded, but I can't think of a better solution off hand and there's nothing technically wrong with this one. http://gwt-code-reviews.appspot.com/1858803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors