Re: GWT 2.5 GA is Here!
On Wednesday, November 7, 2012 1:33:23 AM UTC+1, Brian Slesinsky wrote: In theory, they should be the same or very similar. What differences do you see? Dzmitri is right. It looks like the tag was made from trunk rather than releases/2.5. Compare http://code.google.com/p/google-web-toolkit/source/list?path=/tags/2.5.0/user/src/com/google/gwt/layout/client/LayoutImpl.java with http://code.google.com/p/google-web-toolkit/source/list?path=/releases/2.5/user/src/com/google/gwt/layout/client/LayoutImpl.java -- 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/-/IarP1plALDMJ. 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: Why or why not FlowLayoutPanel?
On Wednesday, November 7, 2012 1:27:49 PM UTC+1, Pedro Lamarão wrote: I've recently saw reason why try to use a custom FlowLayoutPanel, with the minimal definition suggested in ProvidesResize's javadoc, in my applications. Then, I actually looked for a standard one with a doh! sensation, after remembering there is a SimpleLayoutPanel just like SimplePanel. But there is no standard FlowLayoutPanel. Is there strong reason why not? or perhaps this is just for lack of motivation? do people use something like it? FlowPanel doesn't *do* layout its children; this means that one widget changing its size could lead to sibling widgets being resized too, without the FlowPanel being even notified about it (e.g. change some InlineLabel's text and suddenly another InlineLabel wraps, changing its size). I therefore don't think a FlowLayoutPanel is even possible. -- 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/-/4CVtXAv3AB8J. 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: Placement of boot script in body vs. head
On Thursday, November 8, 2012 3:50:47 AM UTC+1, Michael Allan wrote: Hi Matthew, My understanding is that when the browser sees a script tag, it needs to block until the script resource is available before it can resume parsing and displaying the rest of the page's contents. Putting the script tag at the end helps avoid this so the page renders faster. I was thinking along the same lines at first. But then the guide says, You want to put the GWT selection script as early as possible within the body, so that it begins fetching the compiled script before other scripts (because it won't block any other script requests). https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects#DevGuideBootstrap It really depends on your use case and the user experience you want to have during loading. For instance, a very easy way to have a Loading... text on the page: body noscript You must have JavaScript enabled blah blah blah /noscript script document.write(div id='loading'Loading… + /div); /script script src=myapp/myapp.nocache.js/script With the first thing you do in the onModuleLoad is Document.get().getElementById('loading').removeFromParent(); The bootstrap script is as early as possible within the body yet not at the very beginning. Now that HTML has the async script attribute http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.html#attr-script-async, that would be another option if you want to keep your script tags in the header. (Note that there's a semantics difference since scripts might execute out of order depending on caching and network speeds.) Also, it might only work with the xsiframe linker, as the others use document.write() which IIRC could destroy the document when run async. -- 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/-/Im8rwFrNk08J. 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: GXT and Grids
Hi, First: I can see ur doing a test project. Why you dont use the new GXT 3.0.1 version?! Second: I think u didnt add the requerid .java classes inharitance for the compiler add this in the .gwt.xml file inherits name='com.extjs.gxt.ui.GXT'/ inherits name='com.extjs.gxt.charts.Chart'/ inherits name=com.extjs.gxt.themes.Themes/ and try again... also make sure that the gxt.jar file is in the eclipse guild paht and also in the war/web-inf/lib folder... Hope this helps Am Mittwoch, 7. November 2012 13:53:23 UTC+1 schrieb Gnanaprakash Venugopal: Hi Friend, I got the Same error what u got.. have u cleared that error.. if u know how to clear this bug.. pls help... then only i can go to next step. 17:59:13.421 [ERROR] [learning] Uncaught exception escaped java.lang.RuntimeException:* Deferred binding failed for 'com.extjs.gxt.ui.client.widget.grid.GridTemplates' (did you forget to inherit a required module?)* at com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53) at com.google.gwt.core.shared.GWT.create(GWT.java:57) at com.google.gwt.core.client.GWT.create(GWT.java:85) at com.extjs.gxt.ui.client.widget.grid.GridView.initTemplates(GridView.java:1351) at com.extjs.gxt.ui.client.widget.grid.GridView.init(GridView.java:1224) at com.extjs.gxt.ui.client.widget.grid.Grid.onRender(Grid.java:880) at com.extjs.gxt.ui.client.widget.Component.render(Component.java:1022) at com.extjs.gxt.ui.client.widget.Layout.renderComponent(Layout.java:361) at com.extjs.gxt.ui.client.widget.Layout.renderAll(Layout.java:352) at com.extjs.gxt.ui.client.widget.Layout.onLayout(Layout.java:318) at com.extjs.gxt.ui.client.widget.layout.FitLayout.onLayout(FitLayout.java:58) at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:114) at com.extjs.gxt.ui.client.widget.Layout$3.handleEvent(Layout.java:170) at com.extjs.gxt.ui.client.util.DelayedTask$1.run(DelayedTask.java:30) at com.extjs.gxt.ui.client.util.DelayedTask.delay(DelayedTask.java:52) at com.extjs.gxt.ui.client.widget.Layout.onResize(Layout.java:344) at com.extjs.gxt.ui.client.widget.Layout$2.handleEvent(Layout.java:135) at com.extjs.gxt.ui.client.widget.Layout$2.handleEvent(Layout.java:1) at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:178) at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:86) at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:455) at com.extjs.gxt.ui.client.widget.BoxComponent.setSize(BoxComponent.java:617) at com.extjs.gxt.ui.client.widget.BoxComponent.afterRender(BoxComponent.java:685) at com.extjs.gxt.ui.client.widget.ScrollContainer.afterRender(ScrollContainer.java:199) at com.extjs.gxt.ui.client.widget.Component.render(Component.java:1110) at com.extjs.gxt.ui.client.widget.Layout.renderComponent(Layout.java:361) at com.extjs.gxt.ui.client.widget.Layout.renderAll(Layout.java:352) at com.extjs.gxt.ui.client.widget.Layout.onLayout(Layout.java:318) at com.extjs.gxt.ui.client.widget.layout.BorderLayout.onLayout(BorderLayout.java:245) at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:114) at com.extjs.gxt.ui.client.widget.Layout$3.handleEvent(Layout.java:170) at com.extjs.gxt.ui.client.util.DelayedTask$1.run(DelayedTask.java:30) at com.extjs.gxt.ui.client.util.DelayedTask.delay(DelayedTask.java:52) at com.extjs.gxt.ui.client.widget.Layout.onResize(Layout.java:344) at com.extjs.gxt.ui.client.widget.Layout$2.handleEvent(Layout.java:135) at com.extjs.gxt.ui.client.widget.Layout$2.handleEvent(Layout.java:1) at com.extjs.gxt.ui.client.event.BaseObservable.callListener(BaseObservable.java:178) at com.extjs.gxt.ui.client.event.BaseObservable.fireEvent(BaseObservable.java:86) at com.extjs.gxt.ui.client.widget.Component.fireEvent(Component.java:455) at com.extjs.gxt.ui.client.widget.BoxComponent.setSize(BoxComponent.java:522) at com.extjs.gxt.ui.client.widget.Layout.setSize(Layout.java:398) at com.extjs.gxt.ui.client.widget.layout.FitLayout.setItemSize(FitLayout.java:67) at com.extjs.gxt.ui.client.widget.layout.FitLayout.onLayout(FitLayout.java:60) at com.extjs.gxt.ui.client.widget.Layout.layout(Layout.java:114) at com.extjs.gxt.ui.client.widget.Container.doLayout(Container.java:351) at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:443) at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:246) at com.extjs.gxt.ui.client.widget.Container.layout(Container.java:426) at com.extjs.gxt.ui.client.widget.LayoutContainer.layout(LayoutContainer.java:241) at com.test.my.learning.client.mvc.BaseView.reDrawScreen(BaseView.java:47) at
Re: generate and execute javascript at runtime?
the reason i am using the GWT is so that i do NOT have use javascript. so obviously, eval seems like totally harmless to me :) what's wrong with it? 2012/11/7 Joseph Lust lifeofl...@gmail.com True, but *eval() *is one of the Cardinal sins of programming. Think deeply if there is any way around it. But then again, you are the *Hamster of Death*, so you may be prone to sin. Sincerely, Joseph -- 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/-/gJbGP4bKspcJ. 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: rpc serialization problem
Cool! Benjamin hints worked for me. Thanks! Em terça-feira, 4 de agosto de 2009 23h52min57s UTC-3, mike escreveu: I have a simple one-to-many betwen two entities. The parent entity uses List to contain the child entities. I am able to persist these entities in the datastore without problems. However, when reading a root entity at the server, I get: rpc.SerializationException: Type 'org.datanucleus.sco.backed.List' was not included in the set of types which can be serialized... The entities are successfully read from the datastore, but something in Datanucleus doesn't build the List correctly. Has anyone found a workaround for this serialization problem. Thanks GWT 1.7 GAE 1.2.2 -- 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/-/1CKD38ViDsoJ. 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: Access newly Opened window in gwt
The 'screen', 'window.open()', 'myWindow.document' and 'document.write()' will have to be done in JSNI. For the screen, maybe you need $wnd.screen (seems unlikely though). Easiest would be to do them all in one method: public native Document openWin() /*-{ var myWindow=window.open('','','width='+screen.width+',height='+screen.height+',left='+screen.width); myWindow.document.write(pThis is 'myWindow'/p); myWindow.document.write(span id='span'/span); myWindow.document.close(); return myWindow.document; }-*/; And then: Document doc = openWin(); doc.getElementById(span).setInnerText(something); I believe your issue with left=screen.width is due to Firefox; does it work in pure JS? Also, keep in mind that you won't be able to use widgets in that other window (it might work, but it has good chances to fail at some point) On Thursday, November 8, 2012 11:47:14 AM UTC+1, Sarjith wrote: I am trying to achieve something like below through GWT (below code is javascript). function openWin() { var myWindow=window.open('','','width='+screen.width+',height='+screen.height+',left='+screen.width); myWindow.document.write(pThis is 'myWindow'/p); myWindow.document.write(span id='span'/span); myWindow.document.close(); myWindow.document.getElementById('span').innerText = 'something';} How can I achieve this in gwt, when i try this javascript code itself, inside my gwt project, left='+screen.widthis not seems to be working in FF and myWindow.document.getElementById('span').innerText = 'something'; is not seems to be working in chrome. correcting them in javascript is also fine for me, as long as it works perfect for both FF and chrome. Regarding using the PopupPanel of gwt, that also wouldnt help me. As far as I know, PopupPanel can't be poped out of the page. In my scenario, the new window should be opened in my secondory display (which can be achieved with current js code. using code 'width='+screen.width+',height='+screen.height+',left='+screen.width. (If I am wrong please guide me to know about such property of PopupPanel. -- Sarjith -- 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/-/9EsT36oEnAMJ. 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: Setting a style for a single cell of a celltable
Rike255 rgroten@... writes: So I have a skeleton that looks like this: TextColumnStatusRpcBean statusColumn = new TextColumnStatusRpcBean() { at Override public String getCellStyleNames(Context context, StatusRpcBean object) { return ???; } at Override public String getValue(StatusRpcBean object) { return String.valueOf(object.getStatus()); } }; Problem is, I really don't know what I'm looking at, I'm searching around trying to find an explanation of what's happening here but no luck yet. What is the Context? Lets say each cell in this statusColumn will hold one of two strings Available and Busy and I want to make all the Busy cells red (with a style), how do I override getCellStyleNames to do something like that? Thanks again, Ryan The same problem occurred to me and by lot of search and trial and error things I got the following solution. At first it was annoying since I'm also new to GWT. Since your are using CellTable create a custom cell by overriding the render method of AbractCell. This way each time the table render you will be able to customize the render logic. AbstractCell cell = new AbstractCellString() { @Override public void render(com.google.gwt.cell.client.Cell.Context context, String value, SafeHtmlBuilder sb) { if (value == null) { return; } String style = style='color: + (Double.parseDouble(value) 0 ? red :green) + '; sb.appendHtmlConstant(span + style + + value + /span); } }; Then create the required column by using this cell. ColumnColumnRecordType, String orderValueColumn = new ColumnColumnRecordType, String(cell) { @Override public String getValue(ColumnRecordType record) { return String.valueOf(record.getMyValue()); } }; Now you can add the Column to CellTable. Hope this help you or future guys. -- 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: Scrolling on iPad
I am seeing this issue as well, would like to know a solution if there is one. On Friday, November 2, 2012 2:14:49 AM UTC-5, Mike Dee wrote: I have an app with a DataGrid on it and a vertical Scrollbar. Works as expected - when more data is available then fits within grid, vertical scrollbar allows user to scroll down. On iPad, however, the scrollbar is not visible. Strangely, scrolling still works. It's just that the scrollbar doesn't appear and thus most users won't know that they can scroll. How can I make the scrollbar appear? -- 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/-/9JDC2JTB2lYJ. 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: ListDataProvider and VM use up memory
Exactly for that reason there are server-side caches. Just set up a second level cache (ehcache, etc) and that should solve your scaling issue. If you use Spring as a backend technology it's a couple of configuration lines to add second level cache for Apart from caching there is the question if it really makes sense to transmit 10.000 records to the client. Mostly your users will just search in this huge list. The advantage of transmitting everything at once is that you can search exclusively on the client and you won't need any request to the server. However serializiation and de-serialization of 10.000 records will take some time and it will also increase memory consumption on your browser. You can also go a hybrid approach. Transfer around 2.000 rows using a AsyncDataProvider and once your search criteria is that specific that you have all the records at the client side you can do client side filtering (but programming-wise that's a little bit more involved) On Wednesday, November 7, 2012 10:00:59 AM UTC+1, tong123123 wrote: for using LIstDataProvider, if the search result contains many records and many users use similar criteria to search simultaneously, it will use up the memory of the server JVM easily, is this correct? So for searching record with large result, we should use celltable with pager and data provided by AsyncDataProvider so can break down the search result in server into smaller size, is this correct? For example, if the search criteria return 10,000 record at once time using ListDataProvider and if 500 ppls search using same criteria simultaneously, the server JVM memory will use up. So if using AsyncDataProvider, each time the search result is smaller (from onRangeChange) and so the chance of used up the memory in the server JVM is decrease, is this correct? -- 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/-/Ol1vgB5r9FAJ. 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: Testing RESTful services using GWTTestCase
Starting from version 1.6 it will no longer work http://google-web-toolkit.googlecode.com/svn/trunk/distro-source/core/src/doc/helpInfo/servletMappings.html среда, 1 декабря 2010 г., 10:57:34 UTC+2 пользователь ra написал: On Mon, Nov 29, 2010 at 5:14 PM, Raphael André Bauer raphael.a...@gmail.com javascript: wrote: Hi folks, what I want to do are two simple things: 1. Mock a RESTFul Api using a servlet. 2. Use that mock inside a GWTTestCase that retrieves data from that servlet and does some meaningful testing. I am running here into a lot of problems where the servlet is not started from the GWTTestCase, where the web.xml is not loaded and so on. Using a different server is not working either, because of the same origin policy of the built-in jetty. I stumbled across some nice posts from Alex Moffat: http://development.lombardi.com/?p=15 But I guess this information is outdated because of the tomcat references. So. My question is: Does anybody use GWTTestCase to test GWT modules against a real RESTFul web service (mocked as described above - but running on the server). Or is this not a intended use case? I solved it 99%. Check out also discussion ( http://groups.google.com/group/google-web-toolkit/browse_thread/thread/aab1eac5909c3437 ). The way to go is to use a gwt.xml for your GWTTestCase with a servlet definition. servlet class=yourServletClass path=/test.json/ You can then test against that servlet simply by calling GWT.getModuleBaseURL() + /test.json This is a cool solution how to test my API. If anybody knows a solution how to map my test.json into the root of my server I would be totally happy. But it's also cool the way it is now. Cheers, Raphael -- 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/-/N23x-T0E0N4J. 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.
Increasing Client-side Storage
So i read the Client-side Storage introduction article. I do have a question. The company I'm doing my work experience is having trouble with the Client-side storage of all browsers as the size limits are met. We're developing an app which requires offline capability and uses lots and lots of data on the mobile device. Is there a way to automatically increase the maximum size, or set it to unlimited size, for the application? Or is there a way to achieve this with user confirmation? Our problem is that the application crashes when the limit is hit, which happens during synchronization, so not all of the required user data is yet present. Thx 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/-/jMdEP4alVWwJ. 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: SuperDevMode stuck on compiling
On Wednesday, July 11, 2012 5:46:16 PM UTC+2, Chris Gamache wrote: I am using Ext-Js LGPL via GWT-Ext, and they have indeed modified the Array prototype. Not much I can do about that. I'm stuck there. I hacked in the modification, and it will get through to compile now. Is there already an issue in the tracker for the xsiframe generator bug/bad practice? On Wednesday, July 11, 2012 10:02:57 AM UTC-4, Thomas Broyer wrote: On Wednesday, July 11, 2012 3:27:13 PM UTC+2, Chris Gamache wrote: Stopped on that line above when propName == 'remove' here's the call stack: console.trace() (anonymous function) (anonymous function) evaluate InjectedScript._evaluateOn InjectedScript._evaluateAndWrap InjectedScript.evaluateOnCallFrame computePropValue mymodule.nocache.js:326 mymodule.__getPropMap mymodule.nocache.js:389 getBindingParameters dev_mode_on.js:324 compile dev_mode_on.js:388 runBookmarklet dev_mode_on.js:414 (anonymous function) dev_mode_on.js:427 (anonymous function) Are you using any third-party lib? One that would manipulate the Array.prototype? There's a small bug in the xsiframe linker generated script, rather a bad practice than a bug actually: using an Array as if it were an Object first, and using a for…in on it without checking hasOwnProperty; and when combined with the other bad practice of augmenting prototypes, it breaks! Not really a bug in the generated script, just that it can break relatively easily if there are bugs/bad practices elsewhere. I just tried it in Chrome dev tools' console: var values = []; values['foo'] = 'foo'; values['bar'] = 'bar'; for (var key in values) { console.log(key); } The above should print foo and bar. Now, add the following and then start the for loop again: Array.prototype.remove = function() { console.log(remove); } (using Array.prototype here, because 'values' is an array; would be true with Obejct.prototype if 'values' had been initialized with {}) It'll now print foo, bar, remove. Should be relatively easy to hack around it: locate __getPropMap in your nocache.js and change the for-loop to add the following if: for (key in values) { if (values.hasOwnProperty(key)) { ... } } Hi ! I exactly have the same problem. Do you have a fix ? 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/-/wRoC8yYTn0kJ. 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 can I add context menu to RichTextArea?
Did you find a solution. I am using GWT 2.5 and so far it seems like it is not possible On Monday, November 2, 2009 8:26:57 AM UTC+1, Taimuri wrote: Folks, I am trying to add a context menu to my RichTextArea using pure GWT. There are other derivative APIs like smartGWT or GWT-Ex are providing this feature, but I am least interested in other APIs. Can someone help me how can I add context menu in RichTextArea using GWT? -- Warm Regards, Taimur Mirza -- 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/-/M6FkgL_dWM4J. 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: generate and execute javascript at runtime?
It is just a good way to create a security hole and allow for malicious code execution. And it also prevent compiler optimizations since the compiler cannot divine what you're going to run. However, your use case is likely a valid one for eval since you're wrapping a JS lib. Sincerely, Joseph -- 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/-/2VEGbAuYsLcJ. 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: Increasing Client-side Storage
Sounds like a likely browser defect. Limit of 5MB per app per browser. According to the HTML5 spechttp://www.w3.org/TR/2009/WD-webstorage-20091222/#the-storage-interface, this limit can be increased by the user when needed; however, only a few browsers support this So it really depends on the browser, as my understanding is that the user is prompted to allow greater storage. Clearly you cannot just set it infinite or a malicious page could crash someone's harddrive. What browsers are you using this on and do all of them generate the error? Sincerely, Joseph -- 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/-/vmPjcQISjHIJ. 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: Is there anything different about internationalizing a Dialog?
Do you have your html host page set to UTF-8 using the meta tag in the header? meta charset=utf-8 Sincerely, Joseph -- 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/-/uuQW5WUU1OQJ. 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: Increasing Client-side Storage
Actually the limit is 2500 characters in many browsers as they store the data in mult-byte format. Unless the browser supports it, there is no way of increasing this. What browser/versions are you using? On Thursday, November 8, 2012 12:32:04 PM UTC-5, Joseph Lust wrote: Sounds like a likely browser defect. Limit of 5MB per app per browser. According to the HTML5 spechttp://www.w3.org/TR/2009/WD-webstorage-20091222/#the-storage-interface, this limit can be increased by the user when needed; however, only a few browsers support this So it really depends on the browser, as my understanding is that the user is prompted to allow greater storage. Clearly you cannot just set it infinite or a malicious page could crash someone's harddrive. What browsers are you using this on and do all of them generate the error? Sincerely, Joseph -- 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/-/bS05NJqzER0J. 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: Increasing Client-side Storage
I had been using FF last year, though I was only storing about 250K of serialized character data. Perhaps take a look at the source of the Kindle Chrome app. It stores the book content offline. They must handle this somehow. Sincerely, Joseph -- 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/-/lo4IUW16agYJ. 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: Roadmap GWT?
Any chance you could post that to the Steering Committee forum? Joe -- 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/-/1W8tvJ66LFcJ. 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: Increasing Client-side Storage
If you are developing for mobile devices you could try with Phonegaphttp://phonegap.com/ (aka Apache Cordova http://incubator.apache.org/cordova/). They have a filehttp://docs.phonegap.com/en/2.2.0/cordova_file_file.md.html#Fileand a storagehttp://docs.phonegap.com/en/2.2.0/cordova_storage_storage.md.html#StorageAPI. I believe these support large ammounts of data. Also checkout gwt-phonegap https://code.google.com/p/gwt-phonegap/. Hope this helps. On Thursday, November 8, 2012 12:00:47 PM UTC+1, Nukeface wrote: So i read the Client-side Storage introduction article. I do have a question. The company I'm doing my work experience is having trouble with the Client-side storage of all browsers as the size limits are met. We're developing an app which requires offline capability and uses lots and lots of data on the mobile device. Is there a way to automatically increase the maximum size, or set it to unlimited size, for the application? Or is there a way to achieve this with user confirmation? Our problem is that the application crashes when the limit is hit, which happens during synchronization, so not all of the required user data is yet present. Thx 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/-/vL9mJi4UXTEJ. 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: Roadmap GWT?
On Thursday, November 8, 2012 7:51:08 PM UTC+1, Joseph Lust wrote: Any chance you could post that to the Steering Committee forum? Assuming you're asking me to do it, for the record; it's no news: see https://groups.google.com/d/topic/gwt-steering/AfMwY3nzcps/discussion and https://groups.google.com/d/topic/gwt-steering/2T0uXwtXIAk/discussion -- 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/-/uenk-K6DXlAJ. 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: Increasing Client-side Storage
Currently the only browser I know of that allows the user to set the size of local storage is safari . But in general I do not recommend using local storage for data heavy storing. Think of it rather as advanced cookies. The best use case is if you want to serialize the state of your views to json ,so that you can quickly recover it when the user revisits your app. Local storage is absolutely NOT recommended for storing sensitive data, it is unsafe. If you need to persist a lot of data on a fat client I suggest taking a look the HTML file api. It gives you a sandboxed space on the clients machine with unlimited storage. The downside is, that it is a HTML 5 feature, so no older browser. Good luck, Oliver -- 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: MVP with multiple EntryPoints
Hi Joseph: Thanks a lot, it was an interesting answer. Beyond GWT, I'm courious about how are you managing dinamyc ORM extensions, i.e. if you are using JPA, how are you merging domain classes from several OSGi bundles. Best regards. - Cristian El miércoles, 12 de septiembre de 2012 15:30:37 UTC-3, Joseph Lust escribió: Christian, My team has spent the last month porting our large GWT application over to OSGi. Allow me to share: We too need to load many GWT entry points and show a consolidated home page showing the currently available modules. However, rather than using Activities and Places to get the browser to see the modules, we dynamically registered a new context on the OSGi native container. We also used the module *rename-to* option to map com.longpkg.module.client.Module to /module. A new GWT module is deployed as a service bundle (the backend Java) and the GWT css/img/js as a fragment. When a new GWT module is deployed, the service registers itself and also an ApplicationInfo object. The ApplicationInfo object has information such as the context name, like * module_b*. This context is registered as a servlet to serve up the GWT static content and the RPC servlets are registered below it (* /module_b/myRpcServlet*). Finally, the home page calls a servlet to get the list of current registered modules by returning all registered ApplicationInfo objects and draws them to the page. The OSGi beauty if of course that by turning modules on/off, the links automatically appear/disappear from the home page. And, if a user attempts a link to an unregistered context (i.e. removed) then they just get forwarded back to the landing page. Sing out with any other OSGi GWT issues, I thought we were the only people out there doing this. ;) Sincerely, Joseph -- 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/-/XCqFdNr41ZoJ. 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: ListDataProvider and VM use up memory
Sorry, what is server-side caches and second level cache? On Fri, Nov 9, 2012 at 12:50 AM, Ümit Seren uemit.se...@gmail.com wrote: Exactly for that reason there are server-side caches. Just set up a second level cache (ehcache, etc) and that should solve your scaling issue. If you use Spring as a backend technology it's a couple of configuration lines to add second level cache for Apart from caching there is the question if it really makes sense to transmit 10.000 records to the client. Mostly your users will just search in this huge list. The advantage of transmitting everything at once is that you can search exclusively on the client and you won't need any request to the server. However serializiation and de-serialization of 10.000 records will take some time and it will also increase memory consumption on your browser. You can also go a hybrid approach. Transfer around 2.000 rows using a AsyncDataProvider and once your search criteria is that specific that you have all the records at the client side you can do client side filtering (but programming-wise that's a little bit more involved) On Wednesday, November 7, 2012 10:00:59 AM UTC+1, tong123123 wrote: for using LIstDataProvider, if the search result contains many records and many users use similar criteria to search simultaneously, it will use up the memory of the server JVM easily, is this correct? So for searching record with large result, we should use celltable with pager and data provided by AsyncDataProvider so can break down the search result in server into smaller size, is this correct? For example, if the search criteria return 10,000 record at once time using ListDataProvider and if 500 ppls search using same criteria simultaneously, the server JVM memory will use up. So if using AsyncDataProvider, each time the search result is smaller (from onRangeChange) and so the chance of used up the memory in the server JVM is decrease, is this correct? -- 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/-/Ol1vgB5r9FAJ. 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: MVP with multiple EntryPoints
Christian, Sorry I missed your gchat the other day. Most gServices are blocked at my office. Thanks a lot, it was an interesting answer. Beyond GWT, I'm curious about how are you managing dynamic ORM extensions, i.e. if you are using JPA, how are you merging domain classes from several OSGi bundles. We have a totally isolated model to deal with the domain objects. module_B has its own Spring services running in the OSGi container that serves up the dynamic content for module_B and uses its own schema and JNDI connection pool. The static content (compiled GWT) for module_B is served up by the aforementioned fragment attached to the module_B context. This way module_B and module_A can be upgraded completely independently of each other. Of course there are some objects which are shared in the GWT codebase (DTO's). These are in a common library inherited by all the modules that use it. Because we use Maven and versioning, we don't have to update all consumers of the common library and can run multiple versions on multiple modules. There are some shared services that multiple modules use, but these are consumed via JSON and Autobean (have not tried RequestFactory yet) since GWT-RPC is compile dependent for each module. I hope that helps. Sincerely, Joseph -- 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/-/3ABRkvA6SDUJ. 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: Roadmap GWT?
Thanks Thomas. My apologies, I thought that might have been newer news than July. Are the calls/meetings still regular? I had thought they were going to be Hangouts and recorded, but there is little mention of anything on the forum. Sincerely, Joseph -- 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/-/ttJ3jHuh1aQJ. 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.
Security in gwt application.
Hi , We have developed a gwt application. We foundDOM based cross site scripting issue in our .nocahe.js file. Here is the part of the code mentioned in .js file which is vulnerable. Can any body help me in finding , which type of java code will generate this code? Is there any way to do reverse engineering r = h(l.location.href) function h(a) { return d = 0 ? a.substring(0, d + 1) : M r = h(l.location.href) if (y()) { document.write(lc + r + uc) -- 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/-/CX2-nuHcMr0J. 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: what's ReflectionHelper.loadClass(String) does?
It's used by dev mode to load classes dynamically. GWT production code would be unable to use this. On Monday, October 3, 2011 12:27:07 PM UTC-6, Elhanan wrote: hi.. it seems there is some sort of partial reflection support in gwt, but can i use it? is it the same as class.forname? -- 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/-/Zf7sB34ldO0J. 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: Added new public static method to Window.Location: reloadParameterMap. (issue1859804)
http://gwt-code-reviews.appspot.com/1859804/diff/7001/user/src/com/google/gwt/user/client/Window.java File user/src/com/google/gwt/user/client/Window.java (right): http://gwt-code-reviews.appspot.com/1859804/diff/7001/user/src/com/google/gwt/user/client/Window.java#newcode322 user/src/com/google/gwt/user/client/Window.java:322: listParamMap = buildListParamMap(currentQueryString); since the query string has changed, you need to set paramMap to null (or rebuild it). Otherwise, the next time ensureParameterMap is called, it will think that nothing needs to be done. http://gwt-code-reviews.appspot.com/1859804/diff/7001/user/src/com/google/gwt/user/client/Window.java#newcode344 user/src/com/google/gwt/user/client/Window.java:344: cachedQueryString = currentQueryString; since the query string has changed, you need to set listParamMap to null (or rebuild it). I'm not sure why we have two separate variables, actually. Perhaps paramMap can go away and getParameter() could use listParamMap? http://gwt-code-reviews.appspot.com/1859804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Rework StackTraceDeobfuscator to improve symbol map caching. Users can now specify if they want ... (issue1866803)
LGTM http://gwt-code-reviews.appspot.com/1866803/diff/1/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java File user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java (right): http://gwt-code-reviews.appspot.com/1866803/diff/1/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java#newcode245 user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java:245: if (symbolData != null !symbolData.isEmpty()) { FYI: I don't think symbolData can be null anymore, so in theory this if statement can go away. (Not really worth fixing.) http://gwt-code-reviews.appspot.com/1866803/diff/1/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java#newcode353 user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java:353: private boolean currentlyInCache(String strongName, String symbol) { I think this is unused. http://gwt-code-reviews.appspot.com/1866803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Rework StackTraceDeobfuscator to improve symbol map caching. Users can now specify if they want ... (issue1866803)
http://gwt-code-reviews.appspot.com/1866803/diff/1/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java File user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java (right): http://gwt-code-reviews.appspot.com/1866803/diff/1/user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java#newcode245 user/src/com/google/gwt/logging/server/StackTraceDeobfuscator.java:245: if (symbolData != null !symbolData.isEmpty()) { On 2012/11/08 19:46:22, srogoff wrote: It can't be null, but it can still be empty (because of how we store when we can't load the data). Right, but if you split the empty string, you won't get 6 fields so the next if is sufficient. (Again, doesn't matter, just kibitzing.) http://gwt-code-reviews.appspot.com/1866803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Reviewer needed
Hi everyone, I still need a reviewer for: https://gwt-review.googlesource.com/#/c/1130/ -Daniel -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Reviewer needed
On Thu, Nov 8, 2012 at 3:46 PM, Daniel Kurka kurka.dan...@gmail.com wrote: Hi everyone, I still need a reviewer for: https://gwt-review.googlesource.com/#/c/1130/ It looks like you need an approver, but I don't know who that can be. Should everyone who is a committer be setup as a reviewer in Gerrit? Also, in Rietveld the mailing list was copied by default on code reviews, can we setup Gerrit the same way? -- John A. Tamplin -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Reviewer needed
you are right I read someone to approve and to pull this into google infrastructure, while we are still on a pull mirror model. -Daniel 2012/11/8 John A. Tamplin j...@jaet.org On Thu, Nov 8, 2012 at 3:46 PM, Daniel Kurka kurka.dan...@gmail.comwrote: Hi everyone, I still need a reviewer for: https://gwt-review.googlesource.com/#/c/1130/ It looks like you need an approver, but I don't know who that can be. Should everyone who is a committer be setup as a reviewer in Gerrit? Also, in Rietveld the mailing list was copied by default on code reviews, can we setup Gerrit the same way? -- John A. Tamplin -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Reviewer needed
Oops, I thought I already imported that. Apparently not. I'll do that now. On Thu, Nov 8, 2012 at 12:46 PM, Daniel Kurka kurka.dan...@gmail.comwrote: Hi everyone, I still need a reviewer for: https://gwt-review.googlesource.com/#/c/1130/ -Daniel -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Use a fully qualified bean name in the GwtSpecificValidatorCreator (issue1865803)
On 2012/11/06 22:28:54, Nick Chalko wrote: LGTM http://gwt-code-reviews.appspot.com/1865803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors