Style sheet occupied all data in Ajax crawling

2010-11-14 Thread Kevin (Yau) Leung
I am trying to use Ajax crawling with Uibinder.  When I tried using
googlebot the fetch the page, I found that the page crawled (the first
100k of page) was purely the style sheet generated by uibinder.  The
funny thing is my style sheet only has 46k but the resulting style
section in the crawled page is 127k.

Since I'm using multi-locale in uibinder, it would give me a lot of
hassle if I use a different set of ui.xml for crawling as it means
maintain a duplicated set of locale properties.  Is there any
suggestion how to overcome it?  I have already invested so much time
in ajaxcrawling and don't want all my effort become futile at this
late stage.

-- 
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.



turn off auto-completion suggestion box on uibinder ui.xml in eclipse

2010-10-20 Thread Kevin (Yau) Leung
I wonder if it's only me having this problem.  Whenever I edit the ui.xml in
eclipse, the auto-completion box comes up and it's extraordinary slow.  Is
there any method to turn it off?

Kevin

-- 
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.



Adding HTML / Label to flowPanel

2010-10-19 Thread Kevin (Yau) Leung
I would like to use a flowPanel to contain a list of tags.  The tag contain
a name and a close button.

However, when I add HTML / Label to flowPanel, it will create a new line
because it's a DIV element.

If the HTML / Label is a span element, there is no new line.  However, I
can't create spanElement on demand.

Does anyone has any suggestion?  Thanks in advance.

-- 
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.



how to remove gwt development plugins from ie?

2010-10-15 Thread Kevin (Yau) Leung
I'm not sure if I have upgrade the gwt plugins of 2.1 into ie9 and now I
can't run hosted mode from ie anymore.  Can someone tell how how to remove
this plugin and install it?  Thanks.

Kevin

-- 
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.



meta http-equiv=X-UA-Compatible content=IE=9 / will crash hosted mode

2010-10-14 Thread Kevin (Yau) Leung
Has anyone tried adding

meta http-equiv=X-UA-Compatible content=IE=9 /

to the app page html?

I would like use the better css implementation of IE9 (e.g. round corner)
and added that piece of meta tag.  It will restart the IE every time i run
hosted mode.  I have both gwt sdk 2.0.3 and  2.1 rc1 installed in different
instance of eclipse and none of that work.

Kevin

-- 
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.



Spring Roo 2.1 M3, not recommended if you haven't tried.

2010-09-25 Thread Kevin (Yau) Leung
I think most gwt developer who watched the demo of Spring Roo in
Google IO video would be interested in giving the expense-tracking
GWT project under 200 keystrokes a try.  However, that 200 keystrokes
took me almost a day to put into debug mode.  (if you also got stuck
and would like too know how to get through, give me a shout)

Anyhow, I got it running.  But there are so many drawbacks that I
encounter.  Maybe there are some other way round, but there are
virtually no documentations.  Isn't spring roo supposed to accelerate
code formation?  But it seems that it's trying to waste as much time
as they can to slow you down.

I have to admit that I don't know much about spring / roo / maven (nor
i'm a java expert).  So please point it out if I made the wrong
claims.

1. Roo generated everything into UIBinder.  i think why most people
invest their time into GWT because it's Java.  We are more familiar
with Swing type of development rather than HTML.  And Uibinder just
turns me off immediately.  I bought a license of GWT Designer before
Google bought the company.  I believe this acquisition implies that
GWT will stick onto Swing type of UI development.  But on Roo project,
GWT Designer is rendered totally useless and what you can see are
window internal errors.

2. I think others have also complained that whenever you made changes
to the domain objects, all your custom changes on the UI will be lost.
 Maybe there are some other ways to get around with it, but there is
no documentation telling me how to do it!!

3. In Ruby On Rails, all the codes you see after scaffolding or raking
are just what you need to see.  But Roo will generate a hell lot of
codes which you don't know where you should touch and where you
shouldn't.  I spent hours watching videos from Google IO trying to
understand what does all those new factories / activities / renderer
mean.  But sorry, i just can't follow all those fancy flowchart.  But
why don't you put them into some documentation so that I can follow
them at my own pace?

4. Seems that the code generator or gwt plugins on STS are still
having some bugs.  Some of the viewbinder doesn't have the
corresponding ui.xml generated.  (maybe there are omitted for good
reasons).  And @UIField are shown missing even they are actually
there.  I think another important reasons of choosing GWT instead of
other framework is because of the error detection mechanism.  You can
root out most silly errors with the IDE because all errors are
underlined in red.  Now you got those red lines in almost all files in
the scaffold.generated source folder.  So you just turn a blind eye to
those?

5. Maybe it's just me.  Annotation is just not my cup of tea.  I don't
know how many of them, their usages or even how to spell them.  And
there are just too many of them with uibinder and roo.

Those scaffolding and data binding in 2.1. looks intriguing. , but
gonna go back to do some real work with GWT 2.0.   I just hope the
release of 2.1 will turn out to be much better documented.

-- 
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.



How to use the ClientLocation class

2010-08-31 Thread Kevin (Yau) Leung
I can't find any example of how to use this class.  Can anyone suggest
how to do it?  Thanks.

http://code.google.com/p/gwt-google-apis/source/browse/trunk/ajaxloader/ajaxloader/src/com/google/gwt/ajaxloader/client/ClientLocation.java?r=1609

-- 
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.



Serializable objects lost during Async call

2010-07-22 Thread Kevin (Yau) Leung
I'm using GWT 2.0.3 and have encountered a problem during async rpc.

I have a serializable class containing a number of other serializable
class.  E.g.

class Parent implements java.io.Serializable {
  private ChildA childA;
  private ChildB childB;
  private ChildC childC;
  private ChildD childD;
..
}

each of the Child classes are also serializable and can be passed over
async rpc without any problem.  However, when I pass this class over
async rpc, no matter it's from server to client or vice versa.  Some
of the child instances will get lost and become null.  It's very
annoying as whenever a new variable is added to that Parent class, a
different combination of child instances will get lost.

I'm using that parent class to maintain the state of the application
when closing and opening the app.  Of coz I can pass each child
instance individually in a single rpc when saving the states to the
server.  But when retrieving the states back from the server, it will
be extremely messy to call 10 different async rpc and check if all
child instances are ready on each and every onSuccess method.

I didn't receive any warning or exception during compile or run time.
 I'm not sure if it's a bug of GWT or it's simply not supported.  Can
anyone suggest what should I do to fix it or get around with it?
Thanks.

Yau

-- 
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.



How to bind the built-in server to another IP?

2010-07-13 Thread Kevin (Yau) Leung
I am developing a facebook app with GWT and it requires us to use an
internet domain name to connect.  But in hosted debug mode, I can only
run the built-in server at 127.0.0.1: and therefore I can never
connect to facebook and debug.

C:\netstat -an | grep 
  TCP127.0.0.1: 0.0.0.0:0  LISTENING

I believe that the jetty.xml of the built-in server is somehow bind to
Set name=Host127.0.0.1/Set so I can't access the server from
other IP.  But I can't find any file named jetty*.xml under eclipse.
 Does anyone having any solution?

Alternatively, I can debug the app at -noserver mode, but i can't
debug the server, right?

-- 
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.