GWT 2.4.0 - SelectItem does not work when I use application via Android
Hi I have developed a web application in GWT 2.4.0 (SmartGWT 3.0p), but I found a problem when I try to access it via mobile (Android Samsung S2 tablet). Substantially every SelectItem does not work properly. When I open one of them to select a row, I tap on the record but it only remais highlighted and the SelectItem does not close (and the row is not selected). I have observed that if the SelectItem contains many records and the relative scroll bar becomes visible, everything works correctly. Some of you have found similar problems? Thanks -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWT 2.4.0 - SelectItem problem when
Hi I have developed a web application in GWT 2.4.0 (SmartGWT 3.0p), but I found a problem when I try to access it via mobile (Android Samsung S2 tablet). Substantially every SelectItem does not work properly. When I open one of them to select a row, I tap on the record but it only remais highlighted and the SelectItem does not close (and the row is not selected). I have observed that if the SelectItem contains many records and the relative scroll bar becomes visible, everything works correctly. Some of you have found similar problems? Thank -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Convert Bytes from byte[] to data types
I'm making a game that receives data (string names, ints about position, etc.) via websockets, using https://github.com/sksamuel/gwt-websockets, in binary data. Is there a way to convert that data back to String, Int, etc. in GWT? -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Best way to share common css defs in a GWT application with multi-module
I've a GWT application split in multiple modules. I need to share a set of common defs, a color palette for example, between cssresources and uibinder files in different modules. How can I do it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: Best way to share common css defs in a GWT application with multi-module
So if I define a color in common.css like this: @def black #000; I can reuse the black definition in Foo e Bar CssResources? On Monday, July 28, 2014 2:43:35 PM UTC+2, Davide Micheletti wrote: The easiest way to do this is to create a common module that the two modules inherit. You would put the CSS in the parent, and include it from both the child modules. Here is an example. Suppose you have two modules: com.company.apps.foo.Foo and com.company.apps.bar.Bar. These would have the following Java source tree: src/ com/ company/ apps/ foo/ Foo.gwt.xml client/Foo.java public/Foo.html bar/ Bar.gwt.xml client/Bar.java public/Bar.html You want to put company.css somewhere where it is available to both. To do this, you might create a new directory: like src/com/company/apps/public/ and then put your company.css file in there. You would then need to create a GWT module for Foo and Bar to inherit from. Your new tree would look like this: src/ com/ company/ apps/ public/company.css Common.gwt.xml foo/ Foo.gwt.xml client/Foo.java public/Foo.html bar/ Bar.gwt.xml client/Bar.java public/Bar.html Common.gwt.xml would look something like this: module inherits name=com.google.gwt.user.User/ public path=public/ /module Then you would add a line like this to Foo.gwt.xml and Bar.gwt.xml: inherits name=com.company.apps.Common/ This will cause Foo and Bar to inherit all the settings from Common. The particular setting you are interested in will be the 'public' directory from Common, which contains your shared CSS file. Give that a try, and see if it works for you! Hope that helps, - Dan Morrill FROM: https://groups.google.com/forum/#!msg/google-web-toolkit/YMJKAm4pj7I/HBU8dVU48w8J Regards Davide On Mon, Jul 28, 2014 at 1:52 PM, Federico De Faveri defa...@gmail.com javascript: wrote: I've a GWT application split in multiple modules. I need to share a set of common defs, a color palette for example, between cssresources and uibinder files in different modules. How can I do it? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. To post to this group, send email to google-we...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWT showcase site 502 error
Accessing the GWT showcase site I get a 502 error. http://gwt.googleusercontent.com/samples/Showcase/Showcase.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Chrome on Linux no longer supported, really?
Is this permanent? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
GWT ScrollPanel not scrolling when hidden
I have a ScrollPanel and I want to reset his scrolling position when it is hidden. To do so I call the scrollTop method. As I can see it is not working only when the ScrollPanel is hidden. Here a sample code: public void onModuleLoad() { StringBuilder html = new StringBuilder(); for (int i = 0; i1000; i++) html.append(row +i+br); HTMLPanel content = new HTMLPanel(html.toString()); final ScrollPanel scrollPanel = new ScrollPanel(content); scrollPanel.setHeight(200px); RootPanel.get().add(scrollPanel); RootPanel.get().add(new Button(TEST, new ClickHandler() { @Override public void onClick(ClickEvent event) { scrollPanel.scrollToTop(); scrollPanel.setVisible(false); scrollPanel.scrollToBottom(); scrollPanel.setVisible(true); } })); } After clicking the TEST button the ScrollPanel keep is top position. Any idea how to scroll it when hidden? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT ScrollPanel not scrolling when hidden
It will work if I make the panel visible in a different moment/event chain? On Tuesday, March 11, 2014 1:44:50 PM UTC+1, Winston Britto wrote: You can use the below code RootPanel.get().add(new Button(TEST, new ClickHandler() { @Override public void onClick(ClickEvent event) { scrollPanel.scrollToTop(); scrollPanel.setVisible(false); *Scheduler.get().scheduleDeferred(* * new Scheduler.ScheduledCommand() {* * @Override* * public void execute() {* * scrollPanel.scrollToBottom();* * }* * });* scrollPanel.setVisible(true); } })); On Tuesday, March 11, 2014 4:37:50 PM UTC+5:30, Federico De Faveri wrote: I have a ScrollPanel and I want to reset his scrolling position when it is hidden. To do so I call the scrollTop method. As I can see it is not working only when the ScrollPanel is hidden. Here a sample code: public void onModuleLoad() { StringBuilder html = new StringBuilder(); for (int i = 0; i1000; i++) html.append(row +i+br); HTMLPanel content = new HTMLPanel(html.toString()); final ScrollPanel scrollPanel = new ScrollPanel(content); scrollPanel.setHeight(200px); RootPanel.get().add(scrollPanel); RootPanel.get().add(new Button(TEST, new ClickHandler() { @Override public void onClick(ClickEvent event) { scrollPanel.scrollToTop(); scrollPanel.setVisible(false); scrollPanel.scrollToBottom(); scrollPanel.setVisible(true); } })); } After clicking the TEST button the ScrollPanel keep is top position. Any idea how to scroll it when hidden? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Multi-module maven project with GWT entry point and war creation in separate module
HI, It is possible to have a multi-module maven project where the main GWT application is in a module A and the war creation is done in module B? Any example or suggestion how to do that? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid on a hidden tab
Same problem but with a DeckLayoutPanel. On Monday, August 15, 2011 12:32:38 AM UTC+2, P.G.Taboada wrote: Hi, I am using a DataGrid on a TabLayouPanel. As long as the the DataGrid is on the viewable tab it gets rendered. As soon as it is on the hidden tab it does not. What am I doing wrong? brgds, Papick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid on a hidden tab
I'm using GWT 2.5.1. The problem seems related to https://code.google.com/p/google-web-toolkit/issues/detail?id=7188 On Friday, July 12, 2013 11:34:39 AM UTC+2, Thomas Broyer wrote: This was (supposedly) fixed in GWT 2.5.0: https://code.google.com/p/google-web-toolkit/issues/detail?id=7065 Which version of GWT are you using? On Friday, July 12, 2013 11:19:17 AM UTC+2, Federico De Faveri wrote: Same problem but with a DeckLayoutPanel. On Monday, August 15, 2011 12:32:38 AM UTC+2, P.G.Taboada wrote: Hi, I am using a DataGrid on a TabLayouPanel. As long as the the DataGrid is on the viewable tab it gets rendered. As soon as it is on the hidden tab it does not. What am I doing wrong? brgds, Papick -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT Designer - Can't create SWT Browser
The instructions below maybe help you, I used it in a debian squeeze installation: 1-)Disable de options Used webkit for rendering GWT UI (if available) that is in: /Windows/Preferences/WindowsBuilder/GWT/ 2-)Close Eclipse ide 3-)Download and install https://docs.google.com/file/d/0B9KWSpNWygKAYW1yeDhBa2xaRlU/edit# 4-)Restar eclipse WUALA!!! PD: if you can't dowload the file fron the above link, try: https://docs.google.com/file/d/0B_19kwXNeuHcZ0tsNjZRMFRvVnc/edit?usp=sharing or https://mega.co.nz/#!6w4UgQYT!VoLne2JjSEQcA8TymwLERind0TEoqrrCbCI3-qdkjoM -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
gwt-jet
Hello! We've just released a GWT open source library we created to help us with the development of a big project started one year ago. Basically gwt-jet is a fast, flexible and easy way to wrap business objects (any pojo actually) that you want to show at the front-end. The jet classes automatically create the corresponding widget and autopopulate thru reflection the user modified values into the original object. Please, check gwt-jet site http://code.google.com/p/gwt-jet/ for simple and more complex examples. Maybe someone else will find it as useful as we did. Thanks for your time. Federico -- 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.
Which is the default value of optimize compiler flag?
In the GWT compiler documentation http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#DevGuideCompilerOptions I did not found the default value for optimization level -optimize Sets the optimization level used by the compiler. 0=none 9=maximum Which is the default value? -- 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/-/4MgtyJgLt9sJ. 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.
R: Re: Huge data slowing down Celltable
are you sure that the bottleneck is the display of the data?? if you are making rpc calls to get the 8000 data to display the critical poit could be the rpc deserialization. try to create random data on the client to check this. -- 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/-/N2pwek5STm9zVW9K. 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.
R: GWT MVP how to map a Composite Place to its corresponding Activities
One way to go could be to return an instance of CompositeActivity that take the CompositePlace and manage the subplaces internally -- 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: How to call existing javascript functions (without arguments) in GWT?
on your EntryPoint: public void onModuleLoad() { .. test(); } private native void test() /*-{ $wnd.testFunction(); }-*/; or if you want extra time defer it Scheduler.get().scheduleDeferred(new Command() { public void execute() { test(); } }); -- 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] Re: GWT Improvement and Feature List
a form of runtime modularity (separate modules compilations) -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: GWT.runAsync and Command Pattern
yes also i've faced this problem and didn't find any solution i'think the previous issue it's connected with this: http://code.google.com/p/google-web-toolkit/issues/detail?id=2374can=5 On 30 Mag, 15:48, Tristan tristan.slomin...@gmail.com wrote: You might be running into this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4412 The compiler simply doesn't do enough analysis to do code split properly when inheritance is involved, staring the issue may help. Cheers On May 30, 7:38 am, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT.runAsync and Command Pattern
hi julio, the issue you mentioned exists, anyway your ActionService interface should be: T extends Response, V extends RequestT T execute(V req) throws ActionFailedException; on the other hands it's not possible at compile time to predict wich results are connected with wich requests On 30 Mag, 16:13, federico federico.mona...@gmail.com wrote: yes also i've faced this problem and didn't find any solution i'think the previous issue it's connected with this: http://code.google.com/p/google-web-toolkit/issues/detail?id=2374can=5 On 30 Mag, 15:48, Tristan tristan.slomin...@gmail.com wrote: You might be running into this issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=4412 The compiler simply doesn't do enough analysis to do code split properly when inheritance is involved, staring the issue may help. Cheers On May 30, 7:38 am, Julio Faerman jfaer...@gmail.com wrote: Hi, I am trying to split a GWT app that uses the command (action) pattern. The problem is that GWT.create(ActionService.class) causes every subclass of the return and parameter types to be included in the initial fragment. For instance, my action interface is: public interface ActionService extends RemoteService { T extends Response, V extends Request T execute(V req) throws ActionFailedException; } the problem is that module1.SomeRequest and module2.OtherRequest gets included in the initial fragment. Do you see a way around this? Thanks, Julio Faerman -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I prevent from reloading the page when the reload button on browser is clicked?
bad design. refresh is a feature and you should provide bokmarkable refresh-save pages. On 28 Mag, 20:42, Mike J mikej1...@gmail.com wrote: Hi, I ran into a problem about clicking the reload button on a web browser. My app is a stateful GWT app. Users need to be authenticated for login. After login they can surf on various pages. But users sometimes were used to press the reload button on the browser to refresh the page. The reloading process just bring the screen back to a reboot state, with all state info lost. That's not what we expect. The quick solution is, catch the reload event before the browser sends the reload request to the web server and prevent the browser from sending it. I have read the relevant posts in this group and found the useful info that reload event is equivalent to the Window Closing event. So in the following code snippet I can catch the event, Window.addCloseHandler(new CloseHandlerWindow() { public void onClose(CloseEventWindow event) { //prevent browser sending the reload request to the web browser } }); But I don't know how I can stop the browser from sending the reload request to the web server. Thanks for any help, Mike 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt 2.1 M1 and css -moz-border-radius
I all i've downloaded gwt 2.1 m1 to give it a try but i've noticed that all my rouded corners css are gone, and there are some loggings complaining abouut the styles: 16:24:19.843 [DEBUG] [sandboxDeploy] Preparing method css 16:24:19.843 [INFO] [sandboxDeploy] The following problems were detected 16:24:19.843 [WARN] [sandboxDeploy] Line 97 column 33: encountered -. Was expecting one of: } ; IDENT and many mores someone can tell me what this means?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt 2.1 M1 and css -moz-border-radius
On 2.0.3 it was working the problems appear now that i'm trying 2.1 M1 On 22 Mag, 23:05, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Thomas, Isn't this the issue youhttp://code.google.com/p/google-web-toolkit/issues/detail?id=3946are speaking about? I have been following that issue, and I thought they fixed it by modifying the flute source code. I'm still stuck on older version of GWT, so haven't really tried this myself. Does this problem still exist in the latest version? --Sri On 23 May 2010 01:08, Thomas Broyer t.bro...@gmail.com wrote: On 22 mai, 16:48, federico federico.mona...@gmail.com wrote: I all i've downloaded gwt 2.1 m1 to give it a try but i've noticed that all my rouded corners css are gone, and there are some loggings complaining abouut the styles: 16:24:19.843 [DEBUG] [sandboxDeploy] Preparing method css 16:24:19.843 [INFO] [sandboxDeploy] The following problems were detected 16:24:19.843 [WARN] [sandboxDeploy] Line 97 column 33: encountered -. Was expecting one of: } ; IDENT and many mores someone can tell me what this means?? That just like in 2.0.x releases, you have to escape the first dash with a backslash to make the CSS parser( Flute) happy. This is a bug in the (outdated) CSS parser, and there's an open issue on the GWT issue tracker about this. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group athttp://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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: now.. afetr GWT 2.0?
- clean EventBus implementation with transparents server-push events On 19 Dic, 00:29, federico federico.mona...@gmail.com wrote: - runtime modularity to avoid monolitic compilations On 16 Dic, 18:01, Bruce Johnson br...@google.com wrote: Working on a draft one. What do folks here think is important? On Wed, Dec 16, 2009 at 7:42 AM, tfreitas tfrei...@gmail.com wrote: What about roadmap? -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: Slow data loading to a FlexTable
i think for very very large results the real solution it's a flow panel with custom div panels inside and asinchronous load of the results, i mean starting with rendering the initial result part and then in separate calls download and append the rest of the results. On 6 Mar, 08:48, Magius antonio.diaz@gmail.com wrote: I've had the same problem in an application for a customer that uses IE. Finally I've decided to create a paged table to show only a few rows in screen. In this way it's faster to render the table. It's a workaround, not really a solution, but it was acceptable for the customer. On Mar 5, 3:47 pm, eadams harriersoftw...@comcast.net wrote: After searching for additional posts on slow FlexTable performance, I followed someone's suggestion to use Grid instead. A FlexTable wasn't needed as the structure of the displayed lists is not dynamic. The Grid displays a parts list of over 1000 parts in under 3 seconds. The smaller lists (200-300) parts are under 2 seconds. The solution now in place includes: Use Grid instead of FlexTable Build the Grid before adding to the scroll panel or other panel This was only an issue in IE Thanks, Ernie On Mar 5, 3:33 am, Lex alexey.tsiunc...@gmail.com wrote: Hello all, And we are generating the Table HTML on server side, and put it as innerHTML and have performance 1000 rows - 3-4 second in IE. The biggest problem is using components which should handle events and placed in such table, but it seems JSNI is a solution in this case. In our case Links already working. So it seems this is the optimal solution if you need high performance. On Mar 4, 7:36 pm, eadams harriersoftw...@comcast.net wrote: Thanks for the suggestions. Changing the code to add the FlexTable to the scroll panel after loading the data resulted in a good improvement. The 268 row parts list will now load in IE in just over 5 seconds. I tried the setVisible () suggestion as well, but that did not yield much change. The changes yielded an elapsed time of 0.3 seconds in Firefox. On Mar 4, 11:55 am, Lothar Kimmeringer j...@kimmeringer.de wrote: eadams schrieb: The timings showed the first third was in about 1.5 seconds, the next third was in about 4 seconds and the last third in over 6 seconds. This elapsed time is after thedatahas been received from the server (which is also very fast). All of the above is on a Windows Vista client using IE 7. Testing the same code on FireFox 3.0.6, the 268 rows display in under 1 second. Is this a known problem with IE and are there any work arounds? Unfortunately FireFox is not a solution for this issue as the company's only approved browser is IE. It's a rendering issue and not the only one. Try creating a Tree with 100.000 elements and have a look how much fun you have with InternetExplorer and Firefox (Safari is very fast here which makes me jealous). One thing I haven't tried but you might try out is adding the flex-table to the panel after adding all rows. This might speed up things because InternetExplorer seems to redraw the whole table when adding rows (this is not GWT- specific, I had the same effects with other web-frameworks in the Good Old Days(R) as well). Or - if that has no effect - you might play around with setVisible. Regards, Lothar --~--~-~--~~~---~--~~ 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: FF vs IE, when dealing with Lists
+1 for the custom hp solution for the best performance at all i suggest a flow panel with inside a list of flowPanels anc custom css styles On 27 Feb, 06:48, Tóth Imre tothi...@gmail.com wrote: I have another solution for this problem.Into a Vertical panel inserted horisontal panel formatted it with css, and it is faster.. 2009/2/19 milind mpaltanw...@gmail.com Hi Nick, Flex table is pretty slow if you want to display 50+ rows in it at a time based on our experience. The slowness also varies for each browser, only realistic way of getting around this problem is to implement pagination, where you display only 20-30 rows on each page and then provide links on the header to navigate through the pages. This way i am able to manage a display of thousands of records in less than 500 milliseconds across the browsers (FF and chrome faster then IE). The application has many views with this approach displaying simple tabluar data and also hierarchical data structures. For displaying hierarchical data structures i initially went with Tree, but that was pretty slow for large no. of rows, so i simulated tree inside FlexTable using Click listener on (+/-) images. This works like a charm. Regards, Milind On Feb 18, 4:21 pm, Nick nickc...@gmail.com wrote: Ok, Results What I’m finding is that the Grid does beat the FlexTable, but not by much with a small data set. Larger sets seem to widen the gap. My guess for this is that since FlexTable has the ability to add rows (Grid is sized from the start) that it works much like how other resizable constructs work such as Java’s ArrayList. My reasoning for this is that the first time the test is run the speed is very slow on the FlexTable (especially in IE). Repeated test runs after the initial are faster and I think this is because the table was being sized the first time as rows were added, and didn’t need to be resized during the following tests. The other thing I’m finding is that performace varies based on browser. I’m seeing FF run reasonably well. With IE the Grid runs about the same as FF but the FlexTable runs considerably slower. I also tested Opera and was stunned as it blew both others out of the water. My full write up is here with times and a test application you can run in your browser. http://whatwouldnickdo.com/wordpress/401/performance-grid-vs-flextable/ On Feb 18, 2:10 pm, Nick nickc...@gmail.com wrote: Thanks for the response, I think you're correct. And it makes sense that adding rows dynamically would account for the increase in time as the row count is higher. I'm going to run a few tests, and I'll post anything I find to this post. On Feb 18, 3:09 am, Alexey_Tsiunchik alexey.tsiunc...@gmail.com wrote: Hello Nick, Exactly the same issue was in our app. We need to display big lists (100 - 500) records, and FlexTable seems not solution for this. The problem is that FlexTable always checks table bounds (row number, column number) and when you put some value in FlexTable it performs checking for bounds, moreover it not store the colnum and rownum in some variables, but always calculate them dynamically. Moreover it dynamocally adds new rows. Thats why it becomes slower when number of rows increase. We had decided to use Grid rather then FlexTable. We can specify Grid bounds right after creation, and while we put data in cells in the cycle its performance remains the same for different grid size (here I mean speed of adding row). But it also has it's disadvantages. When we need to display another data in the same Grid, and this data has different number of rows, we should call Grod.resize(int, int). And for big grids, this operation is very slow in IE (in our tests resizing grid with 200 rows, 5 columns, takes ~13000 ms in IE). So It seems paging here the only solution. Tuesday, February 17, 2009, 6:40:51 PM, you wrote: Ok, I did some more testing and I was wrong. It's not the inserting and removing from lists that are the bottleneck. I moved the time and log statements around and it had to do with adding to the FlexTable itself. I'm using code like: int row = 1; for (IteratorMyData iter = eventList.iterator(); iter.hasNext(); row+ +) { long sysTime = System.currentTimeMillis(); int column = 0; MyData event = (MyData)iter.next(); table.setText(row, column, event.getNameLast()); column++; table.setText(row, column, event.getNameFirst()); column++; table.setText(row, column, event.getJob()); column++; GWT.log(update time 4: +(System.currentTimeMillis()-sysTime)+ms , null); } Now, you can see I'm logging the time after every row is inserted. The odd
override RemoteServiceServlet.processCall to process custom annotations
Hi i'd like to do the override of RemoteServiceServlet.processCall to insert the code for processing my custom annotations on service invocations. I've noted how the default processCall make use of the RPC class: ... return RPC.invokeAndEncodeResponse(this, rpcRequest.getMethod(), rpcRequest.getParameters(), rpcRequest.getSerializationPolicy ()); ... and expecially the method invokeAndEncodeResponse that i found difficult to reuse due to the fact that it has two distinct responsabilities when maybe it would be better to have splitted this method in two... anyway the problem i have it's this: in my processCall i'd like to have access to catch the exceptions throwed by my service method but invokeAndEncodeResponse don't rethrow an exception occurred during the service invocation, and of course it can't because normally it must encode the exception in the returned payload. On the other sida i'd like very much to reuse the RPC class because it do a lot of interesting things that i don't want to lose, any opinions on this... federico --~--~-~--~~~---~--~~ 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: MVC + RPC architecture
I use PureMvc porting for gwt http://puremvc.org/ and i like it! On 24 Feb, 09:18, Reza Alavi rezaal...@gmail.com wrote: The web address ishttp://apps.sourceforge.net/trac/gwtruts/ --~--~-~--~~~---~--~~ 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: align widgets left and right
you can use 2 nested Horizontal panel and one Horizontal panel as container es: -- | - | | | | || | | -- | -- setting HorizontalAlignment to left on the first nested Hp and to right on the second. then you can add the first 2 of your 3 widget to nested 1 and the thirth to nested 2. On 16 Feb, 09:31, smokey tomok...@gmail.com wrote: What would be the recommended way to align widgets left and right within a fixed size of horizontal box? My specific case is I would like to align three widget putting glue space between the second and the third (like \hbox to \hsize{foo\quad bar\hfil baz} in TeX). I was using the following code as a hack and thought it was working until I realized the buttonB is squished into very narrow button under firefox-3.06 (was working on firefox-2 and Safari). final TextBox textBox = new TextBox(); final Button buttonA = new Button(...); final Button buttonB = new Button(...); final HorizontalPanel headerPanel = new HorizontalPanel(); headerPanel.setWidth(100%); headerPanel.setSpacing(5); headerPanel.add(textBox); headerPanel.add(buttonA); headerPanel.setCellWidth(buttonA, 100%); headerPanel.add(buttonB); What would be a more robust and cleaner way to achieve this? Thank you. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---