Consideration for new Project using SmartGWT.

Hi Guys,

We recently have decided to build a rich web application and considering to use SmartGWt for presentation and if required with it’s server side component as well. We have started working on POC and the first thing we notice that when we make any change to GUI - it takes forever to reload the page in Hosted mode event with “Hello World”. Are we missing something?

Env:

  1. Eclipse 3.4
  2. JDK 1.6
  3. Google GWt plugin
  1. SmartGWT 1.1

Anything special what we should consider before designing our POC?

Thanks in advance.

For people like me who has first encounter with SmartGWt

  1. You don’t need smartgwt-skins.jar in your classpath to start with. smartgwt.jar contains everything to build your initial prototype and if you wana have more skins for your application then you may consider using smartgwt-skins.jar.

  2. SmartGWt performance - I tried to increase memory for GWT and eclipse itself but then eclipse started crashing (v 3.4) which forced me to move on to Netbeans and now everything is working like charm.

Development env summary and required changes:

  1. NetBeans 6.5
  2. JDK 1.6
  3. GWt4 netbeans
  1. SmartGWT 1.1

There is good post (http://forums.smartclient.com/showthread.php?t=3168) regarding SmartGWT setup on netbeans but i think that’s too much what we just need to do it:

  1. Modify gwt.properties as
    gwt.compiler.jvmargs=-Xmx512M
    gwt.shell.jvmargs=-Xmx512M
  2. <script> var isomorphicDir = “<MODULE_NAME>/sc/”; </script>
    That’s it and my Hello World was up and running.

My first day with SmartGWT has started … i will keep posting my exp and apologies if few things sounds very naive.

Cheers!

rathiandi,
What version of GWT are you using? GWT 1.6 hosted mode is slightly slower than GWT 1.5, however the hello world example does come up reasonably fast. Moreover once the hosted mode is up, refreshing it after making code changes is even faster. These tasks should not be taking “forever to reload”. How long in terms of seconds is it taking? Have you specified a max heap size (Xmx) value of 600m for the hosted mode? What are your machine specs?

A few users have also reported that the realtime scan of McAfee / Semantic AV seriously affects the performance. Do you have any of these running? If so can you temporarily disable the antivirus and see if it helps

Hi,

Sorry if I’m hijacking this thread, but I’m having a problem with launching in hosted mode, it takes ages! It only happens on my laptop, when I run anywhere else, its fine. But my laptop is not a bad spec - Dual core pentium, 4 GB Ram, bought it new last november. I set the vm memory parameters right up, but this did not help.

Thanks,
Justin

The startup of hosted mode is very slow in my experience (QuadCore, 3G mem, Heap size set to 512M). GWT shell throws like a thousand “Malformed JSNI reference ‘constructor’; expect subsequent failures” message, which slows things down quite a bit. But after the first boot, refreshing is reasonably fast.

Check that you have an internet connection. For some reasons GWT hosted mode needs a internet connection because it does some calls to google (probably some xsd schemas used for validating XML files)

Thanks you “smartgwt.dev”. The machine i have is corporate machine does not have hardware resource related issues. And we have antivirus running. Anyways, i tried to increase eclipse and GWT memory which made my eclipse crashed but i guess that’s my eclipse installation. I tried Netbeans and it works like a charm and SmartGWt is also running very fast.

Thanks again. O will update my list for other newbies like me…

Btw, do guys have any book or detailed tutorial for SmartGWt?

Hi again,

Yeah it takes about 5 min between launching and bringing up the app in hosted mode. Still takes 5 min if I refresh in hosted mode as well. Internet connection is fine (unless its trying to contact google on some funny ports that I’m blocking?), eclipse memory params have been tweaked, so I’m not sure what the problem is. I could try Netbeans, but I’d like to keep using the eclipse gwt plugin.

Any suggestions are welcome, cheers.

-Justin

Grid related questions.

  1. Grids have a wonderful feature which allow columns to show/hide dynamically. But is it possible to show/hide a subset of columns from a set of columns? For example: Lets say if we have 4 column in our grid i.e “A”, “B” , “C”, and “D” and what i want is to have show/hide option for column A and B on column A and B (we should not have c and D in A,B’s show/hide dropdown) and option for C and D should be in column C and D only.

  2. Is it possible to have a subtree in different column for TreeGrid?

Kindly suggest.

Thanks,

Please create a new thread.

okay. And i was think about my requirement last night and my thoughts are more clear will put those in new thread.

Thanks,