Re: Problems with PlaceChangeRequestEvent.setWarning
There's no way to prevent navigation to a hash in a browser (there's no equivalent to onbeforeunload for onhashchange; there isn't for pushState/onpopstate either) so if you navigated using History.newItem() or your browser's history, there's no way you can prevent the URL to change. You should code your app using PlaceController.goTo() for navigation (which means replacing all your Hyperlinks, if any, with Anchors+ClickHandlers), which will then call History.newItem() (and thus update the URL) only if the navigation is not cancelled by the user. -- 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/-/Y1vviOenKbUJ. 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 Performance Issues
If you need to dynamically create a lot of rows based on data; have a look at CellTable, instead of building a Grid or FlexTable and putting widgets in there. It's a total shift in how to approach the problem, but it's designed for rendering performance in mind (to be usable on mobile devices, for instance) -- 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/-/mIFFVgJq8KIJ. 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 uibinder in an abstract parent class
Realize that you are making yourself lazy at the cost of not-lazy code. That is: all will be constructed in the constructor. Try to make a difference between screen and not-screen components/classes. Screen components contain the GWT stuff containing the heavy stuff and should be created as late as possible, that is: only when they appear on the screen. For one component the above will be ok, but it's hard to tell how you will use it in the near future. Even do you you might create the above lazily and only when needed, I would still never put an initWidget() method in my constructor: the constructor should be light weight (general sun rule), and you make the code unit-testable if you don't put this method in the constructor. I use my own SimpleComposite base class that extends from Composite that will automatically create the widget subclass when needed - real lazy loading (I think the SimpleComposite class appears in the issue tracker). - Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Tv8S2xsruZYJ. 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.
Serialization Error.... why??????
Hi, when serializing an ArrayList of the bean below I get the following error Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'xxx.CurrentLevel' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = xxx.CurrentLevel@1d008f5 at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 615) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java: 45) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java: 40) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java: 50) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java: 28) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 736) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 617) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java: 35) Can anyone explain why? It is straightforward with only Integers and Stings. Thank You import java.io.Serializable; public class CurrentLevel implements Serializable{ private static final long serialVersionUID = -7742663738169565261L; private String value; private Integer levelNumber; private String columnName; private String columnFormat; private String columnType; public CurrentLevel() { } public CurrentLevel(String columnName, String columnFormat, String columnType, String value) { setColumnName(columnName); setColumnFormat(columnFormat); setColumnType(columnType); setValue(value); } public CurrentLevel(String columnName, String columnFormat, String columnType, String value,Integer levelNumber) { this(columnName,columnFormat,columnType,value); setLevelNumber(levelNumber); } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public Integer getLevelNumber() { return levelNumber; } public void setLevelNumber(Integer levelNumber) { this.levelNumber = levelNumber; } public String getColumnName() { return columnName; } public void setColumnName(String columnName) { this.columnName = columnName; } public String getColumnFormat() { return columnFormat; } public void setColumnFormat(String columnFormat) { this.columnFormat = columnFormat; } public String getColumnType() { return columnType; } public void setColumnType(String columnType) { this.columnType = columnType; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Serialization Error.... why??????
Thanks for your reply, I am in dev mode with the internal Jetty I deleted all .rpc files, but the problem persists... On Dec 8, 12:07 pm, Jens jens.nehlme...@gmail.com wrote: Seems like your serialization policy file on your server is outdated (thats the hashcode.rpc file in your generated js folder, which should be available to the server and always be up-to-date). Do you use an external server? If so, redeploy your app. If you use the build-in Jetty server you may need to hit the Reload Web Server Button in Eclipse. I mostly see this exception when I modify/create serializable classes and then first redeploy to external server and then reload dev mode. That way I deploy an outdated policy file and when reloading dev mode a new one will be generated and I have to redeploy again. So you should always reload dev mode first and then redeploy. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt uibinder in an abstract parent class
On 8 December 2011 02:18, Ed post2edb...@gmail.com wrote: Even do you you might create the above lazily and only when needed, I would still never put an initWidget() method in my constructor: the constructor should be light weight (general sun rule), and you make the code unit-testable if you don't put this method in the constructor. I use my own SimpleComposite base class that extends from Composite that will automatically create the widget subclass when needed - real lazy loading (I think the SimpleComposite class appears in the issue tracker). It would be great if I didn't have to put initWidget() in the constructor (so that, like you say, unit tests become much easier) but how would that work then? I suppose you have some sort of init() method? How does that get called then? Moreover, in Composite it says All composites must call initWidget() in their constructors.. You have encountered no difficulties not having initWidget() in the constructor? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt uibinder in an abstract parent class
Moreover, in Composite it says All composites must call initWidget() in their constructors. Yes, and you should if you extend directly from Composite, because Composite doesn't contain any lazy loading behavior. But the SimpleComposite contains lazy loading behavior and will automatically ask your subclass to create the widget when required. I have attached the SimpleComposite class, just extends from it and implement the create method.. I use it for years with success in several large gwt projects. To go one step further and make your widget better testable (my other remark above), I use a SimpleIsWidget class that extends from GWT IsWidget interface and can be created outside GWT (instead of classes that extend from Widget like Composite). I contains all the widget presentation logic that can be tested. For details, see this post: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/87030a9ae66fe012/ I you take testing in to account right from the beginning and setup your widget testing-friendly, it will cost you a lot of work afterwards when testing becomes more important (my experience)... - Ed -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. SimpleComposite.java Description: Binary data
Best practice for working with separate GWT modules and their inheritance
Assumed I've a Customer.gwt.xml and a Manager.gwt.xml module. Manager inherits Customer because I want to use Customer's functionality and RF's proxy classes in Manager. Ok, those proxy classes could be also put into a Common.gwt.xml but let's omit this option for the moment. Now the problem is when I call the Manager view/module, I also see the Customer widget in the same view. However I just want to see the Manager widget when I call the Manager view and not the Customer widget which I want to call separately. How should I handle this problem, *how can I inherit functionality of Customer without being forced to explicitly hide Customer's widgets when I call Manager. How can I systematically choose/hide/override/specify the widgets which should be displayed when I call the Manager module.* -- 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/-/mORFQHgR5moJ. 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: Best practice for working with separate GWT modules and their inheritance
You have to make an intermediate gwt.xml for Customer without the entry-point/. Both Customer and Manager would inherit that module, and Customer would be a 4-liner: inherit the CustomerBase module and add the entry-point/. -- 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/-/Tf4Sd1_SlogJ. 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: Best practice for working with separate GWT modules and their inheritance
So I'll have a CustomerBase module (without an entry-point) that is inherited by both Customer *and* Manager (both with their specific entry-points)? -- 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/-/RmtK9_wbd4oJ. 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: Problem with gwt fileUpload in GWT 2.4
Okay, after doing more searching I found you can't do RPC with this widget, so I opted to create a regular httpServlet and that worked. Hope this helps someone! -- 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/-/m3JtPntBkEwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Serialization Error.... why??????
Looks like you don't have a default constructor. I believe you must provide one for GWT to be able to serialize your objects. Maybe you should look at: http://java.sun.com/developer/technicalArticles/Programming/serialization/ and also the GWT developer guide. I find it useful to create unit tests that confirm that objects will serialize properly, because its really easy to overlook something (eg no default constructor, mismatched getter/setter signature, final fields etc etc.) HTH Alan On 12/8/2011 2:47 AM, francescoNemesi wrote: Hi, when serializing an ArrayList of the bean below I get the following error Caused by: com.google.gwt.user.client.rpc.SerializationException: Type 'xxx.CurrentLevel' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = xxx.CurrentLevel@1d008f5 at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 615) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java: 45) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java: 40) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java: 50) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serializeInstance(ArrayList_CustomFieldSerializer.java: 28) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 736) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 617) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.extjs.gxt.ui.client.data.RpcMap_CustomFieldSerializer.serialize(RpcMap_CustomFieldSerializer.java: 35) Can anyone explain why? It is straightforward with only Integers and Stings. Thank You import java.io.Serializable; public class CurrentLevel implements Serializable{ private static final long serialVersionUID = -7742663738169565261L; private String value; private Integer levelNumber; private String columnName; private String columnFormat; private String columnType; public CurrentLevel() { } public CurrentLevel(String columnName, String columnFormat, String columnType, String value) { setColumnName(columnName); setColumnFormat(columnFormat); setColumnType(columnType); setValue(value); } public CurrentLevel(String columnName, String columnFormat, String columnType, String value,Integer levelNumber) { this(columnName,columnFormat,columnType,value); setLevelNumber(levelNumber); } public String getValue() { return value; } public void setValue(String value) { this.value = value; } public Integer getLevelNumber() { return levelNumber; } public void setLevelNumber(Integer levelNumber) { this.levelNumber = levelNumber; } public String getColumnName() { return columnName; } public void setColumnName(String columnName) { this.columnName = columnName; } public String getColumnFormat() { return columnFormat; } public void setColumnFormat(String columnFormat) { this.columnFormat = columnFormat; } public String getColumnType() { return columnType; } public void setColumnType(String columnType) { this.columnType = columnType; } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practice for working with separate GWT modules and their inheritance
Yes, you are effectively creating a library module from your Customer module by omitting the entry-point. Copy everything except the entry-point definition from Customer.gwt.xml to CustomerBase.gwt.xml and then inherit CustomerBase.gwt.xml where you need it. -- 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/-/IzJNtu9DZG8J. 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.
CellTable tabbing not working after change event
From the CellTableExample in the API: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/cellview/client/CellTable.html I customized it slightly to implement tab order. However, tabbing does not work because table.redraw in nameColumn.setFieldUpdater steals focus away. If I don't edit the field and just click on the TextInputCell, tabbing works. If i comment out the table.redraw, tabbing works after I have edited a field but my other fields don't update. After editing a field , a change event is fired in onBrowser method. This eventually calls finishediting which then calls the update method in the column.fieldUpdater. In the update method is where the table.redraw is located I have also tried keeping my list of objects in the ListDataProvider and calling ListDataProvider.refresh but I have the same issue. Question) How can I implement tab order and allow tabbing after editing but still be able to refresh the Celltable grid. I need to redraw/ refresh the grid because after tabbing I need to update data in the other columns. The customization that i needed to do was : 1) Extend TextInputCell and override render methods so that I can set a tabindex by customizing template.input (see below code) 2) In CellTableExample, I disabled KeyboardSelectionPolicy table.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.DISABLED); == inheriting TextInputCell === public class EditableTextCell extends TextInputCell { private static final Logger logger = Logger.getLogger(EditableTextCell.class.getName()); private SimpleTemplate template; protected SafeHtmlRendererString renderer; private boolean inline; interface SimpleTemplate extends SafeHtmlTemplates { @Template(input value=\{0}\ tabindex=\{1}\/input) SafeHtml input( String value,int tabindex); } public EditableTextCell(EventBus eventBus, SafeHtmlRendererString renderer, boolean inline) { super(renderer); this.renderer = renderer; template = GWT.create(SimpleTemplate.class); } public EditableTextCell() { } @Override public void render(Context context, String value, SafeHtmlBuilder sb) { Contact key = (Contact) context .getKey(); String name = key.getName(); // Get the view data. ViewData viewData = getViewData(key); if (viewData != null viewData.getCurrentValue().equals(value)) { clearViewData(key); viewData = null; } String s = (viewData != null) ? viewData.getCurrentValue() : value; if (s != null ) { String style = ; SafeHtml html = renderer.render(s); // Note: template will not treat SafeHtml specially sb.append(template.input( html.asString(), key.getId() )); } else { sb.appendHtmlConstant(input type=\text\ tabindex=\-1\/ input); } } @Override public void onBrowserEvent(Context context, Element parent, String value, NativeEvent event, ValueUpdaterString valueUpdater){ String eventType = event.getType(); logger.fine(onBrowserEvent...+ eventType); super.onBrowserEvent(context,parent, value, event, valueUpdater); } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Service return type best paratice
Hi to all, I have a doubt about the best return type of a RPC service: shortly is better to return an interface or the implementation object? (Set or HashSet?) I think is better use the implementing class due to the fast serialization or permutation, am I wrong? -- 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/-/SbFWi-Eelc8J. 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: Service return type best paratice
You're correct. Best practice for choice of return type in an RPC interface is the exact opposite from what you would normally use in Java. That is, you should be as specific as possible to avoid forcing GWT having to generate serialization code for every implementation of Set or List etc. Paul On 08/12/11 12:50, Filippo De Luca wrote: Hi to all, I have a doubt about the best return type of a RPC service: shortly is better to return an interface or the implementation object? (Set or HashSet?) I think is better use the implementing class due to the fast serialization or permutation, am I wrong? -- 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/-/SbFWi-Eelc8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Best practice for working with separate GWT modules and their inheritance
Thanks again for the clarification! -- 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/-/3HEbjspCCxcJ. 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: LazyPanel and lazy loading
Thanks, I thought that was the case, especially from looking at the code in LazyPanel.java, but the first line of the Javadoc for LazyPanel is a little misleading: Convenience class to help lazy loading. Steve On Dec 8, 2:39 am, -sowdri- sow...@gmail.com wrote: LazyPanel and runAsync() are for different purpose. LazyPanel is just a container for lazy-*initialization *of widgets. As the widget creation involves dom manipulation, which is relatively costly, you could use LazyPanel to defer it, in case you have a really complex widget. runAsync, is used for code splitting, ie to introduce split points. If you look at the simple example with just creation of widget inside the runAsync block, it may look like a better version of LazyPanel, but its not. -sowdri- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with gwt fileUpload in GWT 2.4
Hi James, You can also use Apache commons fileupload library, it's easy to use and to integrate with GWT. http://commons.apache.org/fileupload/ Regards. Karim Duran. 2011/12/8 James Drinkard jdrinka...@gmail.com Okay, after doing more searching I found you can't do RPC with this widget, so I opted to create a regular httpServlet and that worked. Hope this helps someone! -- 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/-/m3JtPntBkEwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mix Fixed and Relative Column Widths in CellTable?
Is anyone using fixed width and relative width columns in Chrome / Mac? I would like to know if this issue that I am having is something that I am doing wrong. -- 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/-/4-TvM2gNydkJ. 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: Mix Fixed and Relative Column Widths in CellTable?
Could you first tell us what doesn't work? There are a whole lot of possibilities between it doesn't compile and it doesn't display like I'd like Also, what are you expecting this ro render? where do you expect the % to be calculated from? and what (do you expect) should happen to the remaining 10%? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZUc6DSZvPPAJ. 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: Mix Fixed and Relative Column Widths in CellTable?
It doesn't display the way that I'd like. I would like that my table has a 100% width so it adjust it size to the container div. Here is a capture: http://www.under-code.com/cap-celltable.png In FF It displays in the way that I want: http://www.under-code.com/cap-ff.png -- 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/-/P4BLZ4IAL54J. 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: DataGrid does not display in a VerticalPanel
DataGrid requires a height to be set in order to display correctly. It either picks the size from its parent widget (e.g. RootLayoutPanel), or you have to set it in your code. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Mix Fixed and Relative Column Widths in CellTable?
Are you sure this is because of the columns sizes? Your CellTable seems to be within another table with no specified width. A quick test in pure HTML shows that Firefox extends the outer table to width:100% while Chrome doesn't (and the inner table then has the minimum size required to show the absolutly-sized columns and the table/cell borders). BTW, I still don't get what you're trying to do: if you mix relative and absolute sizes, you should have at least one column left with no specified width (equivalent to width:auto) so it can take the whole space left; see http://www.w3.org/TR/CSS21/tables.html#fixed-table-layout Here, if your table is 100px wide, 50%=50px and 40%=40px, so the remaining 10% are the 10px taken by the first column. But otherwise (i.e. most of the time), 10% != 10px, so there would be some space left, or not even enough space to give to each column (table-width=90px - 50%=45px and 40%=36px; 10+45+36=91px, wider than the table!). According to CSS, in the first case, the extra space will be distributed (which means your 10px-wide column might now be 15px), and in the second case, the table is wider than originally asked (in my example, it would be 91px wide rather than demanded 90px). -- 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/-/GD6arJ17skoJ. 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 Performance Issues
I'll have to play around with it more. Does it just do paging on the data? A lot of the data we'll be displaying won't be in rows and columns. This was mostly just a test to see how well it would render views under extreme conditions. The cell list could be super useful. 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/-/6XR6pYKIWS4J. 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: Mix Fixed and Relative Column Widths in CellTable?
You are right, I am a total dumb. My CellTable was inside a VerticalPanel. Removing the VerticalPanel now my CellTable is displaying as I want. About what you are saying of having at least one column without width, that was my first attempt, also displaying well in FF but not in Chrome, but again the trouble (now I know) was the VerticalPanel that was wrapping the CellTable. On one side, thanks a lot! On the other side, sorry me about my idiot doubt :) Sometimes I get blinded looking for the solution in only one place and I don't look other pieces of the puzzle. -- 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/-/fiAaF2c40msJ. 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: LazyPanel and lazy loading
Have a look at this topic: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/3cc28ae54f8ba979 It describes SimpleWidget that makes any Widget very lazy, just subclass it. - Ed On Dec 8, 4:17 pm, Steve C st...@steveclaflin.com wrote: Thanks, I thought that was the case, especially from looking at the code in LazyPanel.java, but the first line of the Javadoc for LazyPanel is a little misleading: Convenience class to help lazy loading. Steve On Dec 8, 2:39 am, -sowdri- sow...@gmail.com wrote: LazyPanel and runAsync() are for different purpose. LazyPanel is just a container for lazy-*initialization *of widgets. As the widget creation involves dom manipulation, which is relatively costly, you could use LazyPanel to defer it, in case you have a really complex widget. runAsync, is used for code splitting, ie to introduce split points. If you look at the simple example with just creation of widget inside the runAsync block, it may look like a better version of LazyPanel, but its not. -sowdri- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
CheckBox setValue() not triggering visual checkmark when used as DisclosurePanel header
Hi all, I'm fairly sure this is a bug but I thought I'd ask about it here before I went and created an issue for it. I'm using a CheckBox as the header of a DisclosurePanel, and since I'm already aware that the click handlers for the CheckBox are ignored I have created open and close handlers on the DisclosurePanel to manually set value of the CheckBox. This works splendidly so long as you click on the label of the CheckBox; the item is checked, the panel opens, and you see the new contents. However, if you click on the input element of the CheckBox, the value still changes, and the disclosure panel still opens, but the visual indicator isn't drawn (or in the case of closing, removed). I've attempted to debug it as well as I can, and everything seems to be in place, everything firing as it should and the inputElem.setChecked(value) and .setDefaultChecked(value) are both getting hit (I *believe* they are the methods responsible for drawing, but not 100% sure). Is there something I can do to fix this behaviour? As much as I'd like to leave it as good enough, my users are going to get frustrated by the most obvious interaction not working. Thanks in advance for your help! Here is a code sample: public class CheckBoxBugExample extends Composite{ private VerticalPanel container = new VerticalPanel(); private CheckBox customResponseHeader = new CheckBox(Customize Message); private DisclosurePanel responderDisclosurePanel = new DisclosurePanel(); public CheckBoxBugExample(){ initWidget(container); responderDisclosurePanel.setHeader(customResponseHeader); responderDisclosurePanel.setContent(new HTMLPanel(Hello, world!)); container.add(responderDisclosurePanel); responderDisclosurePanel.addOpenHandler(new OpenHandlerDisclosurePanel() { @Override public void onOpen(OpenEventDisclosurePanel disclosurePanelOpenEvent) { customResponseHeader.setValue(true, true); } }); responderDisclosurePanel.addCloseHandler(new CloseHandlerDisclosurePanel() { @Override public void onClose(CloseEventDisclosurePanel disclosurePanelCloseEvent) { customResponseHeader.setValue(false, true); } }); } } -- 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/-/SFmh9sVdJFwJ. 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.
Doubt about object passed to a constructor in GWT
Hello everyone! In the database I have a table persons with fields: id, first_name, last_name, cod_fs with id PK and a table users (id, username, password, person_id) with id PK and person_id FK REFERENCES persons (id) . I translated this report in my GWT project in models PersonTO and UserTO. The code UserTO is as follows: package com.google.gwt.client.to; import java.io.Serializable; public class UserTO implements Serializable { private int id; private String username; private String password; private PersonTO personTO; public UserTO() { } public UserTO(int id, String username, String password, PersonTO person ) { this.id = id; this.username = username; this.password = password; this.personTO = person; } public PersonTO getPersonTO() { return personTO; } public void setPerson(PersonTO person) { this.personTO = person; } and other getter/setter methods ... The database queries are made within the class UserDAO, but I do not know how to invoke the constructor UserTO properly: package com.google.gwt.server.dao; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import com.google.gwt.client.exceptions.DBException; import com.google.gwt.client.to.PersonTO; import com.google.gwt.client.to.UserTO; public class UserDAO extends BaseDAO { private static String findUserFromCfSQL = SELECT id,username,password,person_id FROM users WHERE person_id = (SELECT id FROM persons WHERE cod_fiscale = ?); public UserTO getUserFromCF(String cod_fiscale) throws DBException { Connection conn = null; PreparedStatement prepStat = null; ResultSet rs = null; UserTO user = null; try { conn = this.getConnection(); prepStat = conn.prepareStatement(findUserFromCfSQL); prepStat.setString(1, cod_fiscale); rs = prepStat.executeQuery(); ** user = new UserTO(rs.getInt(1), rs.getString(2), rs.getString(3), (PersonTO)rs.getObject(4)); *** return user; } catch (SQLException ex) { ex.printStackTrace(); throw new DBException(); } finally { try { prepStat.close(); conn.close(); } catch (SQLException ex) { ex.printStackTrace(); throw new DBException(); } } } } (PersonTO)rs.getObject(4))Of course it is wrong, because in ResultSet at index 4 there is an object of type Integer, but I do not know whether it is right to call for a service that returns the object PersonDAO to pass it through to the constructor new UserTO(...) Someone would know this dilemma? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Insert HTML5 player in GWT
Hello, I would like to play videos in my GWT application, so I want to use HTML5 player. I don't know how integrate in my application. I put the video tag in a HTML widget and javascript files in my main HTML page. But I can't call javascript function in my gwt code. I see the player but nothing happens because the communication between my HTML object and javascript doesn't work. I need some help. Code onModuleLoad: HTML video = new HTML(video id='player1' width='350' height='240' src='myvideo' autoplay='true' type='' controls='controls' / video); HTML page : script type=text/javascript language=javascript src=jquery.js/ script script type=text/javascript language=javascript src=mediaelement.min.js/script script type=text/javascript language=javascript src=mediaelementplayer.min.js/script script type=text/javascript language=javascript src=mediaelement- and-player.min.js/script script type=text/javascript language=javascript src=testjs.js/ script In my testjs.js : function displayPlayer() { $('audio,video').mediaelementplayer({ success: function(player, node) { $('#' + node.id + '-mode').html('mode: ' + player.pluginType); player.addEventListener('canplay', function() {player.setCurrentTime(2); player.play(); } ); } }); } How can I call this function to play my video ? Best. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Doubt about object passed to a constructor in GWT
I think in this specific case I would just join the users and persons table so that the result set contains all information to construct a user with its person. If you want to use a framework take a look at http://www.mybatis.org/ . You can use native sql with MyBatis and it maps resultsets automatically to objects. They also have a generator (eclipse plugin) that generates DAOs for every table. -- 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/-/oPDQ8a9_lpEJ. 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: Doubt about object passed to a constructor in GWT
Maybe I thought about a possible solution: UserPersonDAO create a new class that contains all the queries that involve both objects and UserTO PersonTO. What do you think? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Xerces and GWT Compiler
I have a maven based project that uses the jts library by vividsolutions. jts uses an old version of xerces which is included in the project's war (in WEB-INF/lib/). When I go and compile this project, I get an error from the GWT compiler. If I exclude it during compilation (using scoperuntime/ scope in the pom) everything compiles fine. Perhaps I don't understand how the GWT compiler works under the hood, but I'd expect the compile time class path to be independent from the actual compiler's class path. The problem comes when I want to use the hosted mode in eclipse. When the project starts up with hosted mode, GWT uses the old xerces lib provided by jts and throws an error. If I start the app in hosted mode outside of eclipse using maven (mvn gwt:run) I don't get the error. The problem with this is that I now don't have access to the debugging capabilities of eclipse and it is a bit clunky. There appears to be some class loading issue with the GPE that is using the war's class path for the GWT compiler rather than have the GWT compiler have its own class path that is unaffected by what is used by the project. Has anyone seen this and do you know of any workarounds? Thanks, Brian -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
g:HTMLPanel size
Hi, I can't figure out how to set a background image for the entire screen in uibinder. I tried something like: ui:style .chrisp { width: 100%; height: 100%; background-image: somethinginterestinghere; } /ui:style g:HTMLPanel styleName='{style.chrisp}' div g:HTMLPanel af:MainMenu / /g:HTMLPanel g:HTMLPanel g:FlowPanel ui:field=contentPanel / /g:HTMLPanel /div /g:HTMLPanel what happens is that the gradient only fills the portion of the screen that has something on it, in other words setting the background image sets it in a (currently) 2 centimeter or so part of the screen then just stops. I think what I need to do is get to the REAL body tag somewhere, but I can't figure out how. --Chris -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Doubt about object passed to a constructor in GWT
Do what feels best for you, its just personal preference I think. I prefer to only have one DAO per domain class so if I need both, an user with person and an user without person, I would go with: - UserDAO.findByXyz(int xyz) which delegates to UserDAO.findByXyz(xyz, true) or UserDAO.findByXyz(xyz, false) depending on what you think should be your default case. - UserDAO.findByXyz(int xyz, boolean withPerson) which allows you to not follow the default case if needed. -- 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/-/fTWcxBl1WT8J. 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.
IE8 Stylesheet Limit Workaround (invalid argument number: -2147024809)
I have an application that has 96+- CSS files that are part of the UIBInder xml files. Recently I just noticed that when I open my application in IE8 and IE9 it throws a javascript error : Invalid argument. number : -2147024809. I then read an articcle that mentioned that IE8 has a hard limit on the number of stylesheets you can have in your page of 30 stylesheets. Is there any way to get around this limit without losing the benefit of granular style sheets brought about by UIBinder? Thanks, Melody -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Developer Plugin for Firefox 8
Hmm, I'm having problems. Testing with the Web Application Starter Project from GPE wizard. It renders initial screen (and breakpoints work), but when I press the Send button nothing happens (including clickHandler breakpoints). Works when I use Chrome and IE. Win 7, GPE 2.4r37. Steve -- 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/-/j4jg0j0WtvQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC Problems
Hi, When a click the button login in my app the connection with the mysql database don't works correctly in the first click but in the next clicks works great. Anyone knows that can happens? Regards, Alberto J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RPC Problems
Its very difficult to answer without specific details. -- 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/-/sO2GuDYVkaYJ. 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/Editor AutoBean has been frozen error
Hi, I'm glad I found this thread as I've run into the same pattern. Is the AutoBean hack on onFailure still required, as of 2.4.0? Or is there a more elegant control to be able to reuse the RequestContext and EntityProxy? -- 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/-/-g2XhTX1li8J. 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.
Nice post about GWT
http://blog.oio.de/2011/12/08/future-of-gwt-and-gwt-2-5/ Its not mine, but it worth sharing -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problems with PlaceChangeRequestEvent.setWarning
Thanks for you answer, Thomas. It was indeed a Hyperlink that was causing my problem. I changed it to an Anchor and it's working fine now. I could imagine the PlaceChangeRequestEvent javadoc mentioning these specifics to prevent users from going down the wrong path. Anyway, it works, thanks again. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
javascript with gwt
hi , I want to add some javascript function in my htmlpanel like accordian plane... but htmlpanel not accepting javascript ... can some bdy tell me how to use javascript function in gw portlet?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] while doing compilation getting unexpect element failure
gwtc: [java] Loading module 'com.softwareag.centrasite.bui.login.CentraSiteLogin' [java]Loading inherited module 'com.google.gwt.user.User' [java] Loading inherited module 'com.google.gwt.core.Core' [java] Loading inherited module 'com.google.gwt.core.CompilerParam eters' [java] [ERROR] Line 23: Unexpected element 'define- configuratio n-property' [java] [ERROR] Failure while parsing XML [java] com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) [java] at com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedElement (DefaultSchema.java:80) [java] at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema .java:93) [java] at com.google.gwt.dev.util.xml.Schema.onUnexpectedElement(Schema .java:93) [java] at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.startElemen t(ReflectiveParser.java:186) [java] at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unkn own Source) [java] at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElem ent(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanSta rtElement(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragmen tContentDispatcher.dispatch(Unknown Source) [java] at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDoc ument(Unknown Source) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So urce) [java] at org.apache.xerces.parsers.XML11Configuration.parse(Unknown So urce) [java] at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [java] at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Sou rce) [java] at org.apache.xerces.jaxp.SAXParserImpl $JAXPSAXParser.parse(Unkn own Source) [java] at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.parse(Refle ctiveParser.java:314) [java] at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.access$100( ReflectiveParser.java:48) [java] at com.google.gwt.dev.util.xml.ReflectiveParser.parse(Reflective Parser.java:385) [java] at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLo ader.java:243) [java] at com.google.gwt.dev.cfg.ModuleDefSchema $BodySchema.__inherits_ begin(ModuleDefSchema.java:212) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces sorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet hodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:597) [java] at com.google.gwt.dev.util.xml.HandlerMethod.invokeBegin(Handler Method.java:223) [java] at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.startElemen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add assert for null provided fields, fixes #7024 (issue1602805)
http://gwt-code-reviews.appspot.com/1602805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add assert for null provided fields, fixes #7024 (issue1602805)
http://gwt-code-reviews.appspot.com/1602805/diff/1/user/test/com/google/gwt/uibinder/test/client/UiProvidedNullTest.java File user/test/com/google/gwt/uibinder/test/client/UiProvidedNullTest.java (right): http://gwt-code-reviews.appspot.com/1602805/diff/1/user/test/com/google/gwt/uibinder/test/client/UiProvidedNullTest.java#newcode2 user/test/com/google/gwt/uibinder/test/client/UiProvidedNullTest.java:2: * Copyright 2009 Google Inc. On 2011/12/07 21:43:09, rdayal wrote: update year Done. http://gwt-code-reviews.appspot.com/1602805/diff/1/user/test/com/google/gwt/uibinder/test/client/UiProvidedNullTest.java#newcode21 user/test/com/google/gwt/uibinder/test/client/UiProvidedNullTest.java:21: * Test UiFields(provided = true) give meaningful errors when a field is not initialized. On 2011/12/07 21:43:09, rdayal wrote: Mention that this test is only relevant when assertions are turned on. Done. http://gwt-code-reviews.appspot.com/1602805/diff/1/user/test/com/google/gwt/uibinder/test/client/UiProvidedNullUi.java File user/test/com/google/gwt/uibinder/test/client/UiProvidedNullUi.java (right): http://gwt-code-reviews.appspot.com/1602805/diff/1/user/test/com/google/gwt/uibinder/test/client/UiProvidedNullUi.java#newcode2 user/test/com/google/gwt/uibinder/test/client/UiProvidedNullUi.java:2: * Copyright 2008 Google Inc. On 2011/12/07 21:43:09, rdayal wrote: update year Done. This always gets me :P http://gwt-code-reviews.appspot.com/1602805/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Document a bug in maven-gae-plugin that prevents gae:unpack goal in mobilewebapp from running if... (issue1607803)
On 2011/12/08 03:48:11, drfibonacci wrote: lgtm Submitted as r10782 http://gwt-code-reviews.appspot.com/1607803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
As I understand it, there are two cases where createStyleRuler is called, and attached as a __styleRuler expando: Stepping back and looking at style ruler, I'm wondering why multiple rulers are made (one for parent, one for each child). Could the parent and children just all take turns reusing the parent's __ruler? AFAICT, the ruler is used to calc deco width/height, but any access to those properties first go through measureDecorations, which resets the ruler's properties in a way that makes me think it could be shared. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
So all layout panels leak in IE (all versions) when they're never attached to the document. Turns out that, even if attached but then detached in the same event loop (which is what Dirk's leak test does), this causes a leak, because: * layoutPanel.add(child), schedules a deferred layout command * RootPanel.add(layoutPanel) * LayoutImpl.onAttach * RootPanel.remove(layoutPanel) * layoutPanel.onDetach, clears __layer Next event loop, layout command runs: * LayoutImpl.layout * Sets __layer -- never unset So, I think some tracking of attached/detached is needed, and __layer shouldn't be set if the layout is unattached. Make sense? Not sure if that will have unintended consequences. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Don't allow SafeHtml strings to end in a script or style context. (issue1608803)
LGTM http://gwt-code-reviews.appspot.com/1608803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Avoid bottlenecks by using ConcurrentHashMap instead of a synchronized IdentityHashMap. (issue1609803)
Reviewers: unnurg, Description: Avoid bottlenecks by using ConcurrentHashMap instead of a synchronized IdentityHashMap. Repost from Rietveld issue 1582804 Thanks to Jason Terk for the original patch! Please review this at http://gwt-code-reviews.appspot.com/1609803/ Affected files: M user/src/com/google/gwt/user/server/rpc/impl/SerializabilityUtil.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Avoid bottlenecks by using ConcurrentHashMap instead of a synchronized IdentityHashMap. (issue1609803)
On 2011/12/08 18:50:13, rdayal wrote: LGTM http://gwt-code-reviews.appspot.com/1609803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Add Closure compiler jar to the classpath. (issue1610803)
Reviewers: johnlenz_google.com, Description: Add Closure compiler jar to the classpath. Please review this at http://gwt-code-reviews.appspot.com/1610803/ Affected files: M eclipse/dev/.classpath Index: eclipse/dev/.classpath === --- eclipse/dev/.classpath (revision 10784) +++ eclipse/dev/.classpath (working copy) @@ -41,5 +41,6 @@ classpathentry kind=var path=GWT_TOOLS/lib/protobuf/protobuf-2.2.0/protobuf-java-rebased-2.2.0.jar/ classpathentry kind=var path=GWT_TOOLS/lib/guava/guava-r06/guava-r06-rebased.jar/ classpathentry kind=var path=GWT_TOOLS/lib/jscomp/sourcemap-rebased.jar/ + classpathentry kind=var path=GWT_TOOLS/lib/jscomp/r1649/compiler-rebased.jar/ classpathentry kind=output path=bin/ /classpath -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 6834 Geolocation API Bug (issue1563803)
Hi Daniel, Did you sign the GWT CLA? I was about to submit your patch, but I noticed that you're not on the list.. Rajeev http://gwt-code-reviews.appspot.com/1563803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Issue 6834 Geolocation API Bug (issue1563803)
I did sign it when I started this issue. Should I sign it again On 2011/12/08 20:33:18, rdayal wrote: Hi Daniel, Did you sign the GWT CLA? I was about to submit your patch, but I noticed that you're not on the list.. Rajeev http://gwt-code-reviews.appspot.com/1563803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
So all layout panels leak in IE (all versions) when they're never attached to the document. So, it looks like if instead of setting container.__layer = layer, if I store container - layer in a map, then look it up by container as needed instead of using container.__layer, it doesn't leak. Does that seem like a valid alternative? - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
http://gwt-code-reviews.appspot.com/1601804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
http://gwt-code-reviews.appspot.com/1601804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: Fix leak in LayoutImplIE6 (issue1601804)
Does that seem like a valid alternative? Okay, nevermind that. The latest patch handles both __layer and __styleRuler leaks, even if layout runs before attachment or after detachment. Basically, in those cases, it briefly hooks them up, but pre-emptively cleans them up in finalizeLayout. It can do this (AFAIK) because, being unattached, it doesn't have to worry about any resize events happening that would need them in place. When/if attach actually happens, it puts the layer/style rulers in place more permanently, since we know detach will happen now. Still haven't thought about the resize handlers you mentioned, Thomas. Getting to that, but so far they don't seem to be causing leaks (with the cases Dirk provided anyway). Dirk, I'd appreciate a sanity check; if you could try patch set 4 and let me know if it a) leaks and b) still works as expected, that'd be great. - Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add Closure compiler jar to the classpath. (issue1610803)
On 2011/12/08 20:10:13, rdayal wrote: LGTM http://gwt-code-reviews.appspot.com/1610803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors