TabBar

2009-12-27 Thread GumbyGWTBeginner
Does anyone know the requirements of the TAB Images required to make
the tab bar look like what you want?

i.e.

What size the images are meant to be

To me it is not obvious from the Docs.  But of course I am new at this
and am probably not looking in the right places.

I really liked the example of the tab bar on Ian's website (as shown
below) but I could not find any CSS code of the how the images were
used to make it look different.

http://examples.roughian.com/#Panels~TabPanel

Any help would be greatly appreciated.

Thanks Team.
Merry Christmas.

Stephan

--

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.0 port 9997 - testing two apps simultaneously

2009-12-27 Thread Blessed Geek
I am using GWT 2.0 on eclipse plugin.

I need to test two or more applications simultaneously in eclipse.

However, when I start the second app, the GWT Development notification
window says  ... failed to open port 9997  Should I ignore this
error msg?

How should I test two or more apps simultaneously? Is port 9997 hard-
coded as the gwt-hosted server port, so that GWT, by design, croaks
when testing more than one app simultaneously.

This question, I think, should be related to:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a2f72461d234adba/b09860699e79de3a?lnk=gstq=9997#b09860699e79de3a

--

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.0 port 9997 - testing two apps simultaneously

2009-12-27 Thread Paul Grenyer
Go into your project settings and tick the box labelled something like find 
available port or enter a different port for one of your apps.

--Original Message--
From: Blessed Geek
Sender: google-web-toolkit@googlegroups.com
To: Google Web Toolkit
ReplyTo: google-web-toolkit@googlegroups.com
Subject: GWT 2.0  port 9997 - testing two apps simultaneously
Sent: 27 Dec 2009 09:43

I am using GWT 2.0 on eclipse plugin.

I need to test two or more applications simultaneously in eclipse.

However, when I start the second app, the GWT Development notification
window says  ... failed to open port 9997  Should I ignore this
error msg?

How should I test two or more apps simultaneously? Is port 9997 hard-
coded as the gwt-hosted server port, so that GWT, by design, croaks
when testing more than one app simultaneously.

This question, I think, should be related to:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/a2f72461d234adba/b09860699e79de3a?lnk=gstq=9997#b09860699e79de3a

--

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.



--

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.0 port 9997 - testing two apps simultaneously

2009-12-27 Thread Blessed Geek

[ERROR] Unable to bind socket on port 9997 -- is another session
active?
java.net.BindException: Address already in use  at
java.net.PlainSocketImpl.socketBind(Native Method)

--

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.0 port 9997 - testing two apps simultaneously

2009-12-27 Thread Blessed Geek

On Dec 27, 1:47 am, Paul Grenyer paul.gren...@gmail.com wrote:
Go into your project settings and tick the box labelled something like
find available port or enter a different port for one of your apps.


I don't the answer above applies because ...

This is not about the application context port which I set differently
for all my apps: 8090, 8091, 8092, ...
This question is about the gwt-hosted server port which defaults (or
hard-coded) to 9997.

--

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: Twitter Emulation Using GWT

2009-12-27 Thread Nicolas Wetzel
go on the www.awdio.com, I've done this if you want the code i can give you
it

On Fri, Dec 25, 2009 at 3:54 PM, Prashant kv.prs...@gmail.com wrote:

 Hey all,

 I read this wonderful article on Nettuts called Twitter Emulation
 Using MooTools 1.2 and PHP. I love Mootools and am comfortable with
 PHP. I wanted to know how to emulate Twitter as done using PHP and
 Mootools. The scenario is the same.

 A text box is provided for input and a button to submit the text.
 There are click and key handlers provided. Now my query is how can one
 go about adding the text in display. What element could be used? I
 thought of a list box but it doesn't give the Twitter list effect. I
 thought of using HTML and adding any text dynamically but this is
 where everything is coming to a halt. Unable to understand how to go
 about this.

 Any help will be greatly appreciated.

 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-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 port 9997 - testing two apps simultaneously

2009-12-27 Thread Blessed Geek
Never mind!
I found the answer.

Placing
-codeServerPort 9998

in program arguments text box
in arguments tab
of eclipse run configuration

would set the codeServer Port to 9998,
or whichever port I choose.

--

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.




Cache file is 3 MB!!

2009-12-27 Thread moejo
Hi,

My team has been developing an application in GWT and we are
constantly having issues with the size of the GWT cache.html file.
Our current file size is at 3.3 MB which is huge!

Compared to some of the file sizes I've seen in the forums (50kb,
500kb, etc), I'm wondering if maybe there is something we've missed
completely which has resulted in bad performance.  Can anyone assist
in this?

I've already read the forums and i know we can reduce the size of the
file to around 500kb using gunzip, however, I feel this should be used
as a final fix.  What I'm trying to find is the source of the huge
size in the first place so as to avoid it in future.

Has anyone had a huge file like this before, any suggestions?

FYI - we are using GWT 1.7, compiling for all browsers and are using
SmartGWT (solely for the calendar component).  I've removed SmartGWT
to test and retried it, we still ended up with the same file size.

Any help would be appreciated.

--

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: Cache file is 3 MB!!

2009-12-27 Thread Qian Qiao
On Sun, Dec 27, 2009 at 21:13, moejo mahamad.el.tan...@gmail.com wrote:
 Hi,

 My team has been developing an application in GWT and we are
 constantly having issues with the size of the GWT cache.html file.
 Our current file size is at 3.3 MB which is huge!

 Compared to some of the file sizes I've seen in the forums (50kb,
 500kb, etc), I'm wondering if maybe there is something we've missed
 completely which has resulted in bad performance.  Can anyone assist
 in this?

 I've already read the forums and i know we can reduce the size of the
 file to around 500kb using gunzip, however, I feel this should be used
 as a final fix.  What I'm trying to find is the source of the huge
 size in the first place so as to avoid it in future.

 Has anyone had a huge file like this before, any suggestions?

 FYI - we are using GWT 1.7, compiling for all browsers and are using
 SmartGWT (solely for the calendar component).  I've removed SmartGWT
 to test and retried it, we still ended up with the same file size.

 Any help would be appreciated.

You might consider to upgrade to GWT 2.0 to take advantage of the
guided code split feature, it might not reduce the size of you code,
in fact it'll probably make the total size larger, but the user won't
have to download your application all at once, so they'll enjoy a much
faster start up time. Also, with GWT2.0's SYOC feature, you'll see
exact what makes up of your 3.3MB, so you can work on them
accordingly.

Also, this might be trivial, but I thought I might also ask, are you
using obfuscated mode?

-- Joe

-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.

--

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: Cache file is 3 MB!!

2009-12-27 Thread moejo
Hi Joe

Thanks for the info, I'll see what effect upgrading to GWT 2.0 has - I
hadn't heard of the SYOC feature, so that definitely might come in
handy.  Only thing is though, we're very close to go-live so I'm a
little hesitant to upgrade at this time, in case there turns out to be
compatibility issues among other things.

Yeah I've got the flag for obfuscated on for the compiler (even though
i know it's by default).


On Dec 27, 3:21 pm, Qian Qiao qian.q...@gmail.com wrote:
 On Sun, Dec 27, 2009 at 21:13, moejo mahamad.el.tan...@gmail.com wrote:
  Hi,

  My team has been developing an application in GWT and we are
  constantly having issues with the size of the GWT cache.html file.
  Our current file size is at 3.3 MB which is huge!

  Compared to some of the file sizes I've seen in the forums (50kb,
  500kb, etc), I'm wondering if maybe there is something we've missed
  completely which has resulted in bad performance.  Can anyone assist
  in this?

  I've already read the forums and i know we can reduce the size of the
  file to around 500kb using gunzip, however, I feel this should be used
  as a final fix.  What I'm trying to find is the source of the huge
  size in the first place so as to avoid it in future.

  Has anyone had a huge file like this before, any suggestions?

  FYI - we are using GWT 1.7, compiling for all browsers and are using
  SmartGWT (solely for the calendar component).  I've removed SmartGWT
  to test and retried it, we still ended up with the same file size.

  Any help would be appreciated.

 You might consider to upgrade to GWT 2.0 to take advantage of the
 guided code split feature, it might not reduce the size of you code,
 in fact it'll probably make the total size larger, but the user won't
 have to download your application all at once, so they'll enjoy a much
 faster start up time. Also, with GWT2.0's SYOC feature, you'll see
 exact what makes up of your 3.3MB, so you can work on them
 accordingly.

 Also, this might be trivial, but I thought I might also ask, are you
 using obfuscated mode?

 -- Joe

 --
 Two things that are infinite, the universe and my stupidity, and I'm
 not sure about the universe.

--

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: Cache file is 3 MB!!

2009-12-27 Thread Qian Qiao
On Sun, Dec 27, 2009 at 21:27, moejo mahamad.el.tan...@gmail.com wrote:
 Hi Joe

 Thanks for the info, I'll see what effect upgrading to GWT 2.0 has - I
 hadn't heard of the SYOC feature, so that definitely might come in
 handy.  Only thing is though, we're very close to go-live so I'm a
 little hesitant to upgrade at this time, in case there turns out to be
 compatibility issues among other things.

 Yeah I've got the flag for obfuscated on for the compiler (even though
 i know it's by default).


 On Dec 27, 3:21 pm, Qian Qiao qian.q...@gmail.com wrote:
 On Sun, Dec 27, 2009 at 21:13, moejo mahamad.el.tan...@gmail.com wrote:
  Hi,

  My team has been developing an application in GWT and we are
  constantly having issues with the size of the GWT cache.html file.
  Our current file size is at 3.3 MB which is huge!

  Compared to some of the file sizes I've seen in the forums (50kb,
  500kb, etc), I'm wondering if maybe there is something we've missed
  completely which has resulted in bad performance.  Can anyone assist
  in this?

  I've already read the forums and i know we can reduce the size of the
  file to around 500kb using gunzip, however, I feel this should be used
  as a final fix.  What I'm trying to find is the source of the huge
  size in the first place so as to avoid it in future.

  Has anyone had a huge file like this before, any suggestions?

  FYI - we are using GWT 1.7, compiling for all browsers and are using
  SmartGWT (solely for the calendar component).  I've removed SmartGWT
  to test and retried it, we still ended up with the same file size.

  Any help would be appreciated.

 You might consider to upgrade to GWT 2.0 to take advantage of the
 guided code split feature, it might not reduce the size of you code,
 in fact it'll probably make the total size larger, but the user won't
 have to download your application all at once, so they'll enjoy a much
 faster start up time. Also, with GWT2.0's SYOC feature, you'll see
 exact what makes up of your 3.3MB, so you can work on them
 accordingly.

 Also, this might be trivial, but I thought I might also ask, are you
 using obfuscated mode?

 -- Joe


I hadn't got much trouble upgrading to GWT 2.0 myself, but then again,
I can't speak for everybody. One strategy you might consider is: still
use GWT 1.7 when you release, but just compile with 2.0 during testing
to see what the heavy-weight components are, and try to optimize
those.

Personally, I think you should consider 2.0, not only the SOYC
feature, the new development also makes developing and testing much
easier.

-- Joe

-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.
Sent from Los Altos, CA, United States

--

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: Use smartgwt or not

2009-12-27 Thread maku
@Yozons Support

GXT is not a wrapper of ExtJs. So you can not compare the current GXT
version with any of the existing extJS versions.

They try to produce an almost identically looking end product (extjs
vs. GXT). But the way how this is achived is technically different
(and also from a functional point of view)

On 26 Dez., 21:47, Yozons Support on Gmail yoz...@gmail.com wrote:
 We'll investigate GXT as well.  I have to say that the licensing is more
 straightforward with GXT because the free/commercial tiers are not related
 to functionality in GXT versus SGWT.  But if you go want OSS in a commercial
 product (cheap?), you'd need to stick with LGPL of SGWT over the GPL of GXT.

 But once you go commercial licensing, GXT looks more straightforward.

 How is GXT in terms of ease of data source integration with Java backends?

 Not sure too that GXT is on version 2 while ExtJS is version 3.  Does the
 latest GXT include the latest of ExtJS under the hood?  I suppose I can
 check on their web forums for such details.

 But as a GWT developer, it makes sense to look at both if you need more
 robust widgets.

--

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: Possible bug or maybe I don't understand. Window.alert() and onResponseReceived

2009-12-27 Thread Ian Bambury
You can't fire off an async request to the server and expect to be able to
use the result immediately.

Move the code you have after the RPC or RequestBuilder call into the
onSuccess method of the callback.

Ian

http://examples.roughian.com


2009/12/25 MaEcTPo olegik...@gmail.com

 I have a problem.

 I have a variable on my class:
 public ArrayListHashMapString,String statuses = new
 ArrayListHashMapString,String();
 and I have a method, which populates this variable from JSON.

 So, after populating I try to use it, but it is empty. But, If I use
 Window.alert(something) before, I'll receive in this variable what I
 want.

 For example, this part of code write to GWT.log:

 int statusesSize = statuses.size();
 GWT.log(statusesSize:  + statusesSize, null);
 Window.alert( + statusesSize);
 int statusesSize2 = statuses.size();
 GWT.log(statusesSize2:  + statusesSize2, null);

 12:58:25.541 [INFO] [mythirdgwt2] statusesSize: 0
 12:58:49.864 [INFO] [mythirdgwt2] statusesSize2: 4

 Why it happens? How can I fix it?

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Why History.newItem() always calls the onModuleLoad?

2009-12-27 Thread Thomas Broyer


On 24 déc, 06:32, compuroad wilson.ferreira...@gmail.com wrote:
 I thought History.newItem() would only build the history stack.
 However in my App it fires the EntryPoint onModuleLoad, restarting the
 application.

 What am I missing?

Are you only experiencing this behavior in IE? or in other browsers
too?

There's a workaround for some weird behavior in IE that sometimes
reloads the app, and I suspect your call to
History.fireCurrentHistoryState() just after History.newItem(...) to
trigger it.

And actually, I don't understand those two lines: newItem() will fire
the event (unless you already are on the given token, obviously, as it
would then not result in a ValueChange), so why do you need
fireCurrentHistoryState? Can't you, either:
 - call newItem(page, false) to only fire the event from
fireCurrentHistoryState
 - or (I like this better and it is known to work): compare the
current token (History.getToken()) with the value you want to set and
choose whether to call newItem() or fireCurrentHistoryState based on
it?

Well, actually, having built an app this way, I now believe using
history change events as the navigation mean within the app isn't the
best approach. Our new app now fires internal events
(PlaceChangeEvent, to follow the convention settled by Ray Ryan's
talk at Google I/O 2009) which in the end cal newItem(..., false) to
synch the history token with the application's state (and when an
history state change event fires, due to an external action, we
synthesize a PlaceChangeEvent too, so the app can then synch with
the token; it'll result in a newItem(..., false) call in the end,
which will then be a no-op, and all is fine). My 2 c€nts.

--

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 to addStyleName() in UiBinder ?

2009-12-27 Thread Thomas Broyer


On 24 déc, 04:20, vinays vinay.sek...@gmail.com wrote:
 Hi,

 Is there a way to add style to a widget and not set? Currently if I
 write

 g:TextBox styleName=mytextbox /

 what it does is(pseudo) :

 TextBox t = new TextBox();
 t.setStyleName(mytextbox);

 instead what I want is :

 t.addStyleName(mytextbox);

 If there is a solution I would request GWT team to add it in
 documentation -- would be really helpful.

You're right this is undocumented (AFAIK): g:TextBox
addStyleNames=mytextbox /
(note the plural, this is because the attribute value is a list –comma
and/or space separated– of style names)

--

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: Blank Screen in IE8 but Normal in FF3.5

2009-12-27 Thread Thomas Broyer


On 26 déc, 09:32, Nomis nomis...@gmail.com wrote:
 Dear all,

 Just figured it out the problem was caused by using RootLayoutPanel.

 When I put all my content into RootLayoutPanel.get(), they appear only
 in IE but not Firefox.
 If I use RootPanel.get() instead, they appear in both browsers.

 Tho I don't quite understand the reasonale, but the problem is
 solved.  Thanks.

Could it be because you're not in *standards* mode? (but in quirks
mode)

--

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: Blank Screen in IE8 but Normal in FF3.5

2009-12-27 Thread Qian Qiao
On Sat, Dec 26, 2009 at 16:32, Nomis nomis...@gmail.com wrote:
 Dear all,

 Just figured it out the problem was caused by using RootLayoutPanel.

 When I put all my content into RootLayoutPanel.get(), they appear only
 in IE but not Firefox.
 If I use RootPanel.get() instead, they appear in both browsers.

 Tho I don't quite understand the reasonale, but the problem is
 solved.  Thanks.

 Regards,
 Nomis


 On Dec 26, 2:18 pm, Nomis nomis...@gmail.com wrote:
 Hi,

 I am developing a project that contain just a single simple class.  I
 have been working on it with GWT 2.0 and FF3.5.  Today, I just wanna
 try it out in IE8.  After downloading the plugin and solve a problem
 of the plugin (http://code.google.com/p/google-web-toolkit/issues/
 detail?id=4358), I just got a blank screen in IE8

 Please help.

 Thanks,
 Nomis

Have you switched your DOCTYPE to standard mode?

-- Joe


-- 
Two things that are infinite, the universe and my stupidity, and I'm
not sure about the universe.
Sent from Los Altos, CA, United States

--

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 gwt-voices with GWT 2.0?

2009-12-27 Thread amich...@gmail.com
Hello,

Do you need to generate a jar file for gwt-voices first?  If so, how
is this done?  I'm using Eclipse.

Amir

--

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: Use smartgwt or not

2009-12-27 Thread Yozons Support on Gmail
Thanks.  I just read about that, which means it should be even easier to
debug and work with for us Java folks.  I like what I see in GXT so far, but
admittedly very little.  I'm most interested in the DTO issue and if there
are good ways to send HashMaps and the like to avoid creating so many of
them, or whether the benefits of DTOs outweigh it with the stronger and
simpler typing.

--

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: TabBar

2009-12-27 Thread mariyan nenchev
Try using the new TabLayoutPanel it is very easy to customize with your own
images and styles

On Sun, Dec 27, 2009 at 10:40 AM, GumbyGWTBeginner 
stephan.gump...@gmail.com wrote:

 Does anyone know the requirements of the TAB Images required to make
 the tab bar look like what you want?

 i.e.

 What size the images are meant to be

 To me it is not obvious from the Docs.  But of course I am new at this
 and am probably not looking in the right places.

 I really liked the example of the tab bar on Ian's website (as shown
 below) but I could not find any CSS code of the how the images were
 used to make it look different.

 http://examples.roughian.com/#Panels~TabPanelhttp://examples.roughian.com/#Panels%7ETabPanel

 Any help would be greatly appreciated.

 Thanks Team.
 Merry Christmas.

 Stephan

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Use smartgwt or not

2009-12-27 Thread John Armstrong
There are a few strategies for DTO and GXT. Here are two

http://www.extjs.com/helpcenter/index.jsp?topic=/com.extjs.gxt.help/html/tutorials/beanmodel.html

I also did some using Commons::BeanUtils to autopopulate a DTO since I
use Cayenne on the backend and it was not serializing very cleanly.

So far I've found GXT to be pretty good to use although DataGrids have
been, and continue to be, somewhat of a nightmare for me but I'll find
my way through. GXT + Instantions WindowBuilder or GXT have made
things mostly great on my current project.

John

On Sun, Dec 27, 2009 at 11:33 AM, Yozons Support on Gmail
yoz...@gmail.com wrote:
 Thanks.  I just read about that, which means it should be even easier to
 debug and work with for us Java folks.  I like what I see in GXT so far, but
 admittedly very little.  I'm most interested in the DTO issue and if there
 are good ways to send HashMaps and the like to avoid creating so many of
 them, or whether the benefits of DTOs outweigh it with the stronger and
 simpler typing.

 --

 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.


--

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.




Hosted mode stops working for a specific package

2009-12-27 Thread John Armstrong
Odd problem. I've been working on an app for a few weeks and recently
had some disk space issues that caused random eclipse crashing etc.

Now that those are fix my project no longer will launch in Hosted
mode, but only if I am specifically using the package com.pgi.gwt with
an entrypoint of PrintGate.html (my application package and entry
point that worked before I started having trouble).

Any -new- or existing GWT app I create with those parameters gives me
this warning:
[WARN] Confirmation was required to visit untrusted URL:
'http://gwt.google.com/missing-plugin

Any new or existing app -without- these parameters loads up fine.

Any tips? What painfully obvious thing am I missing here and why does
it only exhibit this behavior for this specific package/entry point
combination? Is there a cache somewhere its picking up?

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.




FW: problem compiling gwt 2.0 using ant

2009-12-27 Thread Rodrigue Lagoue Njinthe
Hi!

 

I'm facing a curious problem when compiling my gwt projects to javascript
using ant. The compilations worked perfectly with the previous GWT
versions... The most interessant part of the logging text is the following:

 

Validating newly compiled units

 [java]  Removing units with errors

 [java] [ERROR] Errors in
'jar:file:/home/appdir/.hudson/libraries/gwt/2.0/gwt-user.jar!/com/google/gw
t/user/client/ui/DockLayoutPanel.java'

 [java][ERROR] Line 20: The import
com.google.gwt.dom.client.Style.Unit cannot be resolved

 [java][ERROR] Line 122: Unit cannot be resolved to a
type

 [java][ERROR] Line 132: Unit cannot be resolved to a
type

 [java][ERROR] Line 133: Unit cannot be resolved to a
type

 [java][ERROR] Line 312: Unit cannot be resolved to a
type

 [java][ERROR] Line 313: Unit cannot be resolved to a
type

 [java][ERROR] Line 390: Unit cannot be resolved to a
type

 [java][ERROR] Line 390: Unit cannot be resolved to a
type

 [java][ERROR] Line 391: Unit cannot be resolved to a
type

 [java][ERROR] Line 391: Unit cannot be resolved to a
type

 [java][ERROR] Line 396: Unit cannot be resolved to a
type

 [java][ERROR] Line 396: Unit cannot be resolved to a
type

 [java][ERROR] Line 397: Unit cannot be resolved to a
type

 [java][ERROR] Line 397: Unit cannot be resolved to a
type

 [java][ERROR] Line 402: Unit cannot be resolved to a
type

 [java][ERROR] Line 402: Unit cannot be resolved to a
type

 [java][ERROR] Line 403: Unit cannot be resolved to a
type

 [java][ERROR] Line 403: Unit cannot be resolved to a
type

 [java][ERROR] Line 408: Unit cannot be resolved to a
type

 [java][ERROR] Line 408: Unit cannot be resolved to a
type

 [java][ERROR] Line 409: Unit cannot be resolved to a
type

 [java][ERROR] Line 409: Unit cannot be resolved to a
type

 [java][ERROR] Line 414: Unit cannot be resolved to a
type

 

 

It seems like the gwt compiler doesn't find the class Style.Unit used in
the class DockLayoutPanel, although both classes are present in the same
jar... On my IDE all works perfectly...

 

Any help will appreciated.

 

Here is the ant target for compilation to javascript

 

target name=gwt-compile depends=init description=Normal compilation
and Compile to JavaScript

!-- compile the java classes normally --

javac debug=true debuglevel=${debuglevel}
destdir=war/WEB-INF/classes source=${source} target=${target}

  src path=src /

  classpath refid=SMSGWTUI.classpath /

/javac

!-- compile the client java file to javascript --

java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler

  classpath

pathelement location=src /

path refid=SMSGWTUI.classpath /

  /classpath

  jvmarg value=-Xmx256M /

  arg value=${gwt.module.id} /

/java

  /target

 

 

the java compilation (javac) runs successfully while the gwt compilation
doesn't... Any Ideas?

 

Rodrigue

--

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.




problem compiling gwt 2.0 using ant

2009-12-27 Thread Rodrigue Lagoue Njinthe
 

Hi!

 

I'm facing a curious problem when compiling my gwt projects to javascript
using ant. The compilations worked perfectly with the previous GWT
versions... The most interessant part of the logging text is the following:

 

Validating newly compiled units

 [java]  Removing units with errors

 [java] [ERROR] Errors in
'jar:file:/home/appdir/.hudson/libraries/gwt/2.0/gwt-user.jar!/com/google/gw
t/user/client/ui/DockLayoutPanel.java'

 [java][ERROR] Line 20: The import
com.google.gwt.dom.client.Style.Unit cannot be resolved

 [java][ERROR] Line 122: Unit cannot be resolved to a
type

 [java][ERROR] Line 132: Unit cannot be resolved to a
type

 [java][ERROR] Line 133: Unit cannot be resolved to a
type

 [java][ERROR] Line 312: Unit cannot be resolved to a
type

 [java][ERROR] Line 313: Unit cannot be resolved to a
type

 [java][ERROR] Line 390: Unit cannot be resolved to a
type

 [java][ERROR] Line 390: Unit cannot be resolved to a
type

 [java][ERROR] Line 391: Unit cannot be resolved to a
type

 [java][ERROR] Line 391: Unit cannot be resolved to a
type

 [java][ERROR] Line 396: Unit cannot be resolved to a
type

 [java][ERROR] Line 396: Unit cannot be resolved to a
type

 [java][ERROR] Line 397: Unit cannot be resolved to a
type

 [java][ERROR] Line 397: Unit cannot be resolved to a
type

 [java][ERROR] Line 402: Unit cannot be resolved to a
type

 [java][ERROR] Line 402: Unit cannot be resolved to a
type

 [java][ERROR] Line 403: Unit cannot be resolved to a
type

 [java][ERROR] Line 403: Unit cannot be resolved to a
type

 [java][ERROR] Line 408: Unit cannot be resolved to a
type

 [java][ERROR] Line 408: Unit cannot be resolved to a
type

 [java][ERROR] Line 409: Unit cannot be resolved to a
type

 [java][ERROR] Line 409: Unit cannot be resolved to a
type

 [java][ERROR] Line 414: Unit cannot be resolved to a
type

 

 

It seems like the gwt compiler doesn't find the class Style.Unit used in
the class DockLayoutPanel, although both classes are present in the same
jar... On my IDE all works perfectly...

 

Any help will appreciated.

 

Here is the ant target for compilation to javascript

 

target name=gwt-compile depends=init description=Normal compilation
and Compile to JavaScript

!-- compile the java classes normally --

javac debug=true debuglevel=${debuglevel}
destdir=war/WEB-INF/classes source=${source} target=${target}

  src path=src /

  classpath refid=SMSGWTUI.classpath /

/javac

!-- compile the client java file to javascript --

java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler

  classpath

pathelement location=src /

path refid=SMSGWTUI.classpath /

  /classpath

  jvmarg value=-Xmx256M /

  arg value=${gwt.module.id} /

/java

  /target

 

 

the java compilation (javac) runs successfully while the gwt compilation
doesn't... Any Ideas?

 

Rodrigue

--

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.




Problem adding WebKit keyFrame animation in CSS ResourceBundle file

2009-12-27 Thread fvisticot
I would like to add this keyFrame animation in my CSS  file managed by
a ResourceBundle.

I have added a '\' 'in front of the @-webkit-keyframes element
BUT the compiler does not like the from element (...olumn 9:
encountered {. Was expecting one of: : )

\...@-webkit-keyframes diagonal-slide {

  from {
left: 0;
top: 0;
  }

  to {
left: 100px;
top: 100px;
  }

}

any idea ?

--

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: Use smartgwt or not

2009-12-27 Thread Tom Schindl
Just to mention that there are other Widget-Projects besides SmartGWT
and GXT. I'm working
on a library called QxWT [1] which works similar to SmartGWT by
wrapping an JavaScript-Library.

We are (yet) not at the point where GXT and SmartGWT are but we are
working hard on to get there. For me
and probably others the main interesting things the license all this
work is available which is in this case LGPL and EPL.

In the next few days we are going to release a small bugfix release
and the next release will hold support for
optimizing the native library code by leveraging the tooling support
we get from our upstream library
(scheduled for first 1-2 months 2010).

In alignment with QxWT release in Q1 there's going to be an release of
an MVP-Library which has highlevel support for Databinding
(to fairly any Domain-Technology you can think of by leveraging the
Eclipse-Databinding-Framework) and other well known
Eclipse Technologies like JFace-Viewers.

Tom

[1] http://tomsondev.bestsolution.at/2009/12/17/qxwt-1-0-0-0-released/

On Sun, Dec 27, 2009 at 11:32 PM, John Armstrong siber...@gmail.com wrote:
 There are a few strategies for DTO and GXT. Here are two

 http://www.extjs.com/helpcenter/index.jsp?topic=/com.extjs.gxt.help/html/tutorials/beanmodel.html

 I also did some using Commons::BeanUtils to autopopulate a DTO since I
 use Cayenne on the backend and it was not serializing very cleanly.

 So far I've found GXT to be pretty good to use although DataGrids have
 been, and continue to be, somewhat of a nightmare for me but I'll find
 my way through. GXT + Instantions WindowBuilder or GXT have made
 things mostly great on my current project.

 John

 On Sun, Dec 27, 2009 at 11:33 AM, Yozons Support on Gmail
 yoz...@gmail.com wrote:
 Thanks.  I just read about that, which means it should be even easier to
 debug and work with for us Java folks.  I like what I see in GXT so far, but
 admittedly very little.  I'm most interested in the DTO issue and if there
 are good ways to send HashMaps and the like to avoid creating so many of
 them, or whether the benefits of DTOs outweigh it with the stronger and
 simpler typing.

 --

 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.


 --

 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.




--

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.




close event

2009-12-27 Thread Pablo Martin Gore
Hi
 I have a situation , the cookie is created when the user is login into the
application and we want to remove the cookie when the user press the logout
button or close the browser.

I register the close event like this :

Window.addCloseHandler(new CloseHandlerWindow() {
@Override
public void onClose(CloseEventWindow arg0) {
//clear history token before close the browser
History.newItem();
}
});


But here , the problem is when we press the reload button or F5 , gwt enter
in the event close.
That behaviour is ok ??

--

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.




Invitation to connect on LinkedIn

2009-12-27 Thread Premila Devi Dayalan
LinkedIn


Premila Devi Dayalan requested to add you as a connection on LinkedIn:
--

anoop,

I'd like to add you to my professional network on LinkedIn.

- Premila Devi

Accept invitation from Premila Devi Dayalan
http://www.linkedin.com/e/0KTeTtbYtbm5JbSbinTxnAy06bq_5bwL3KeK8pLeUQ4N5xBBedsR/blk/I1684134135_2/pmpxnSRJrSdvj4R5fnhv9ClRsDgZp6lQs6lzoQ5AomZIpn8_cBYRcP4QcP4Qe3oNiiZRtkdIjzsQt2YTcjoUdzwOdjALrCBxbOYWrSlI/EML_comm_afe/

View invitation from Premila Devi Dayalan
http://www.linkedin.com/e/0KTeTtbYtbm5JbSbinTxnAy06bq_5bwL3KeK8pLeUQ4N5xBBedsR/blk/I1684134135_2/39vdjcNd3cNd3wSckALqnpPbOYWrSlI/svi/
 
--

DID YOU KNOW LinkedIn can help you find the right service providers using 
recommendations from your trusted network? Using LinkedIn Services, you can 
take the risky guesswork out of selecting service providers by reading the 
recommendations of credible, trustworthy members of your network. 
http://www.linkedin.com/e/svp/inv-25/

 
--
(c) 2009, LinkedIn Corporation

--

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: Use smartgwt or not

2009-12-27 Thread Martin Kraus
Great - Yozons is already a confused person incapable of making any decision
by himself for *his* project and now you throw in another variable. I
suspect this might throw him in a further endless loop. Oh, btw there's also
gwt-mosaic and Vaadin. Make sure you evaluate those too and good luck trying
to understand Vaadin's server side GWT rendering - not that I'm suggesting
its good / bad.

Anyone who thinks GXT license / commercial model is straightforward is
either uninformed or disillusioned. I'll just repeat what I've said earlier.

Ext / GXT / Ext GWT have and continue to have a very deceptive licensing
scheme. It's licensed under GPL so you cannot use it commercially unless you
are will to open source you client source code *and* your server side source
code according to their very terms of use - which is very bizarre. Secondly
even if you do end up buying a commercial license at $329 / license, you
still do not have access to the bug fix releases.

The $329 / license really doesn't get you much. Version 2.0 final of ExtGWT
was pretty much demoware with over 100 critical bugs. 4 - 6 months later
several bugs have been fixed but license holders are not
entitled to the latest bug fix release of 2.0.3. You not only need a license
but you need a support subscription to download the latest stable version.

See http://www.extjs.com/products/gxt/download.php
http://www.extjs.com/forum/showthread.php?p=393316#post393316

So the real cost of the license is $629 / license / year. In addition to
this be prepared to pay frequent upgrade fees for no good reason. Users were
required to buy upgrade licenses within less than a year of
the ExtGWT 1.0 release because they did an *internal* refactoring to clean
up the code and not because new features were added to justify the 2.0
release. Ext GWT 2.1 is just out and they are already talking about Ext GWT
3.0 which is essentially clean up of their internal code to support the new
GWT listener API's. What should customers pay an upgrade fee again for
something like this?

A final word of caution - read the terms of their commercial license very
carefully and run it by your legal. It's not your typical commercial license
that you'd expect with a commercial product. They have some really severe
restrictions that might even require you end user / customer to buy a
commercial license of ExtGWT. If after reading their license you still think
its straightforward, then good luck to you.

Martin


On Mon, Dec 28, 2009 at 6:08 AM, Tom Schindl tomson...@gmail.com wrote:

 Just to mention that there are other Widget-Projects besides SmartGWT
 and GXT. I'm working
 on a library called QxWT [1] which works similar to SmartGWT by
 wrapping an JavaScript-Library.

 We are (yet) not at the point where GXT and SmartGWT are but we are
 working hard on to get there. For me
 and probably others the main interesting things the license all this
 work is available which is in this case LGPL and EPL.

 In the next few days we are going to release a small bugfix release
 and the next release will hold support for
 optimizing the native library code by leveraging the tooling support
 we get from our upstream library
 (scheduled for first 1-2 months 2010).

 In alignment with QxWT release in Q1 there's going to be an release of
 an MVP-Library which has highlevel support for Databinding
 (to fairly any Domain-Technology you can think of by leveraging the
 Eclipse-Databinding-Framework) and other well known
 Eclipse Technologies like JFace-Viewers.

 Tom

 [1] http://tomsondev.bestsolution.at/2009/12/17/qxwt-1-0-0-0-released/

 On Sun, Dec 27, 2009 at 11:32 PM, John Armstrong siber...@gmail.com
 wrote:
  There are a few strategies for DTO and GXT. Here are two
 
 
 http://www.extjs.com/helpcenter/index.jsp?topic=/com.extjs.gxt.help/html/tutorials/beanmodel.html
 
  I also did some using Commons::BeanUtils to autopopulate a DTO since I
  use Cayenne on the backend and it was not serializing very cleanly.
 
  So far I've found GXT to be pretty good to use although DataGrids have
  been, and continue to be, somewhat of a nightmare for me but I'll find
  my way through. GXT + Instantions WindowBuilder or GXT have made
  things mostly great on my current project.
 
  John
 
  On Sun, Dec 27, 2009 at 11:33 AM, Yozons Support on Gmail
  yoz...@gmail.com wrote:
  Thanks.  I just read about that, which means it should be even easier to
  debug and work with for us Java folks.  I like what I see in GXT so far,
 but
  admittedly very little.  I'm most interested in the DTO issue and if
 there
  are good ways to send HashMaps and the like to avoid creating so many of
  them, or whether the benefits of DTOs outweigh it with the stronger and
  simpler typing.
 
  --
 
  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
  

Re: GWT 2.0: Plugin failed to connect to hosted mode server

2009-12-27 Thread Chris Ramsdale
I suspect when you were using the ip address rather than localhost, the GWT
Dev Plugin was unable to connect to the GWT code server. As a result it was
not able to load (actually inject) the dynamic portions of your project
(e.g. all of the GWT Java code). This is typically a result of some security
restriction(s) set on your machine.

- Chris

On Tue, Dec 22, 2009 at 2:42 PM, Yuval yuval.metro...@gmail.com wrote:

 Hi Chris

 Yes - using localhost:9997 did solve the problem! Thank you.
 I could create the project before but not debug it - it didn't even
 call the Java code, as I explained it showed only the static HTML.
 Can you explain the difference?

 Thanks
 Yuval

 On Dec 22, 5:50 pm, Chris Ramsdale cramsd...@google.com wrote:
  Yuval,
 
  Can you successfully create, and debug, a new project from Eclipse? Also,
  does it help if you set gwt.codesvr=localhost:9997?
 
  On Tue, Dec 22, 2009 at 5:58 AM, Yuval yuval.metro...@gmail.com wrote:
   Hello everybody,
 
   I am new to GWT and need some help. I have recently downloaded GWT 2.0
   as an Ecplise plugin + SDK.
   Following the Getting started tutorial I have created a new GWT
   application project in Eclipse, StockWatcher. I have made no changes
   to the generated application.
 
   The application was created successfully, so I tried to run it locally
   using Run As - Web Application (with the Google icon). Then I
   copied the suggested URL from Development Mode tab and pasted into the
   browser (Chrome 4 with GWT extension):
  http://localhost:/StockWatcher.html?gwt.codesvr=10.0.0.1:9997
 
   I was expecting to view the default page normally, but it turned out
   that only the static elements of the web page (the headline Web
   Application Starter Project and label Please enter your name:) were
   displayed. After a while, a message box pops up: Plugin failed to
   connect to hosted mode server at 10.0.0.1:9997. When I close it I get
   a blackened screen with:
   GWT Code Server Disconnected
   Most likely, you closed GWT development mode. Or you might have lost
   network connectivity. To fix this, try restarting GWT Development Mode
   and REFRESH this page.
 
   This of course happening each time no matter what I do.
 
   Then I tried to compile the project and go directly to
  http://localhost:/StockWatcher.html, without the gwt.codesvr
   parameter. It did work, but that means that I can only work by
   compiling the code each time I want to test it (and probably can't
   debug).
 
   At first I thought this might be a firewall issue (although i'm not
   sure that accessing localhost should be a firewall concern), but to be
   on the safe side I have opened the ports  and 9997. It didn't
   help.
 
   Any ideas?
 
   Thanks,
   Yuval
 
   --
 
   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%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Use smartgwt or not

2009-12-27 Thread Chris Ramsdale
While the information on this thread has become a bit passionate, it is all
good and relevant information. When building large scale GWT-based apps,
developers typically sketch out the foundation and then immediately start
looking for a good widget add-on. Threads like this can be extremely useful
when deciding which route to go.

That said, I would suggest we take this conversation offline as it has
become a bit personal.

Thanks,
Chris


On Sun, Dec 27, 2009 at 8:59 PM, Martin Kraus martin.krau...@gmail.comwrote:

 Great - Yozons is already a confused person incapable of making any
 decision by himself for *his* project and now you throw in another variable.
 I suspect this might throw him in a further endless loop. Oh, btw there's
 also gwt-mosaic and Vaadin. Make sure you evaluate those too and good luck
 trying to understand Vaadin's server side GWT rendering - not that I'm
 suggesting its good / bad.

 Anyone who thinks GXT license / commercial model is straightforward is
 either uninformed or disillusioned. I'll just repeat what I've said earlier.

 Ext / GXT / Ext GWT have and continue to have a very deceptive licensing
 scheme. It's licensed under GPL so you cannot use it commercially unless you
 are will to open source you client source code *and* your server side source
 code according to their very terms of use - which is very bizarre. Secondly
 even if you do end up buying a commercial license at $329 / license, you
 still do not have access to the bug fix releases.

 The $329 / license really doesn't get you much. Version 2.0 final of ExtGWT
 was pretty much demoware with over 100 critical bugs. 4 - 6 months later
 several bugs have been fixed but license holders are not
 entitled to the latest bug fix release of 2.0.3. You not only need a
 license but you need a support subscription to download the latest stable
 version.

 See http://www.extjs.com/products/gxt/download.php
 http://www.extjs.com/forum/showthread.php?p=393316#post393316

 So the real cost of the license is $629 / license / year. In addition to
 this be prepared to pay frequent upgrade fees for no good reason. Users were
 required to buy upgrade licenses within less than a year of
 the ExtGWT 1.0 release because they did an *internal* refactoring to clean
 up the code and not because new features were added to justify the 2.0
 release. Ext GWT 2.1 is just out and they are already talking about Ext GWT
 3.0 which is essentially clean up of their internal code to support the new
 GWT listener API's. What should customers pay an upgrade fee again for
 something like this?

 A final word of caution - read the terms of their commercial license very
 carefully and run it by your legal. It's not your typical commercial license
 that you'd expect with a commercial product. They have some really severe
 restrictions that might even require you end user / customer to buy a
 commercial license of ExtGWT. If after reading their license you still think
 its straightforward, then good luck to you.

 Martin



 On Mon, Dec 28, 2009 at 6:08 AM, Tom Schindl tomson...@gmail.com wrote:

 Just to mention that there are other Widget-Projects besides SmartGWT
 and GXT. I'm working
 on a library called QxWT [1] which works similar to SmartGWT by
 wrapping an JavaScript-Library.

 We are (yet) not at the point where GXT and SmartGWT are but we are
 working hard on to get there. For me
 and probably others the main interesting things the license all this
 work is available which is in this case LGPL and EPL.

 In the next few days we are going to release a small bugfix release
 and the next release will hold support for
 optimizing the native library code by leveraging the tooling support
 we get from our upstream library
 (scheduled for first 1-2 months 2010).

 In alignment with QxWT release in Q1 there's going to be an release of
 an MVP-Library which has highlevel support for Databinding
 (to fairly any Domain-Technology you can think of by leveraging the
 Eclipse-Databinding-Framework) and other well known
 Eclipse Technologies like JFace-Viewers.

 Tom

 [1] http://tomsondev.bestsolution.at/2009/12/17/qxwt-1-0-0-0-released/

 On Sun, Dec 27, 2009 at 11:32 PM, John Armstrong siber...@gmail.com
 wrote:
  There are a few strategies for DTO and GXT. Here are two
 
 
 http://www.extjs.com/helpcenter/index.jsp?topic=/com.extjs.gxt.help/html/tutorials/beanmodel.html
 
  I also did some using Commons::BeanUtils to autopopulate a DTO since I
  use Cayenne on the backend and it was not serializing very cleanly.
 
  So far I've found GXT to be pretty good to use although DataGrids have
  been, and continue to be, somewhat of a nightmare for me but I'll find
  my way through. GXT + Instantions WindowBuilder or GXT have made
  things mostly great on my current project.
 
  John
 
  On Sun, Dec 27, 2009 at 11:33 AM, Yozons Support on Gmail
  yoz...@gmail.com wrote:
  Thanks.  I just read about that, which means it should be even easier
 to
  debug and work 

Extending existing classes with UIBuilder

2009-12-27 Thread Barney
If I want to extend the functionality of an existing widget using
code, I have the following two options:

1. Extend the class directly.
2. Extend Composite, include an instance of the base class using
initWidget, and forward any required methods.

Each method has its own merits, depending on the exact requirements.

However, using the UIBuilder approach, I can only seem to do the
second method. The problem with the first appears to be that
createAndBindUi requires an existing class to be passed in, but
returns a new Widget, and the only way to incorporate this is by
method 2.

For example, to create a decorator panel with a caption using the
UIBuilder, I can do the following (method 2):

ui:UiBinder xmlns... 
  g:DecoratorPanel
g:HTMLPanel
  divCaption Here/div
/g:HTMLPanel
  /g:DecoratorPanel
/ui:UiBinder

public class MyPanel extends Composite {
  interface Binder extends UiBinderDecoratorPanel, MyPanel {}
  private static final Binder binder = GWT.create(Binder.class);

  public MyPanel() {
initWidget(binder.createAndBindUi(this));
  }
}

But not by extending the class directly.

Actually, this is not strictly true. Given the same ui.xml file, the
following code does exactly what I want:

public class MyPanel extends DecoratorPanel {
  interface Binder extends UiBinderDecoratorPanel, MyPanel {}
  private static final Binder binder = GWT.create(Binder.class);

  public MyPanel() {
replaceElement(binder.createAndBindUi(this).getElement());
  }
}

But to call replaceElement I have to put my class in the
com.google.gwt.user.client.ui package to access the method (which is
declared with package visibility) and ignore the javadoc warning:

This method exists only to support a specific use-case in Image, and
should not be used by other classes.

Which is obviously not an ideal solution.

Is there any reason replaceElement is restricted? Or any other way
to achieve the same result?

Cheers,

Barney



--

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.




Apache Derby+Eclipse+GWT on Mac OSX - ClassNotFoundException

2009-12-27 Thread Oggy
Hi,
I have the following problem:
I am trying to get my app working using Apache Derby, Eclipse and GWT
using Mac OSX.
I have installed the derby plugins for eclipse, and added derby nature
to the project, the jars are in the classpath, but I am still getting
this:

java.lang.ClassNotFoundException:
org.apache.derby.jdbc.EmbeddedDriver .

I am really frustrated by this, tried a lot of stuff but cannot get it
to work. If somone knows anything that could help, I would very much
appreciate it.
Thanks, Oggy.

--

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: RemoteDeathError in GWT 2.0 Developer Mode

2009-12-27 Thread John A. Tamplin
RemoteDeathError is thrown when the connection to the browser is
closed.  Are you changing the URL in your app?  If you change anything
but the hash portion, it will reload the app which will drop the
devmode connection.

You can try increasing the log level with -logLevel SPAM and see what
the last call was before the connection is lost.l

--

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 with Jersey

2009-12-27 Thread Tim M

I am looking into using GWT as my frontend to my RESTFUL backend
implemented with Jersey. Does anyone know of a nice tutorial
explaining how to do this?  Thanks in advance.

Tim

--

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: Why History.newItem() always calls the onModuleLoad?

2009-12-27 Thread John A. Tamplin
A couple of points:
 - you don't need to call History.fireCurrentState() after newItem().
 - you are calling newItem() from within the history change handler

A typical history-enabled app will call fireCurrentState in
onModuleLoad, actions that change history state simply call newItem
with the new state and do nothing else.  The onValueChanged handler
then does the work of actuallly changing to respond to the event, that
way it just works when the user users forward/back, bookmarks a
history state, etc.

--

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: body.onkeyup

2009-12-27 Thread Prakash
Hi,

If you are trying to implement application wide Short/Hot keys to do
some action,
then  you can use
Event.addNativePreviewEventHandler().

Regards,
Prakash M.


On Dec 26, 4:08 pm, Surya surya.i...@gmail.com wrote:
 Hi.

 How do I convert the javascript code window.onkeyup (or onkeyup in
 body tag) to GWT?

 Regards

--

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: Development mode crashes Safari 4.0.4 in OS X 10.4

2009-12-27 Thread John A. Tamplin
Created http://code.google.com/p/google-web-toolkit/issues/detail?id=4413

--

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.




Building an Embed API with GWT

2009-12-27 Thread Andrew J
I'm asking this question as something of a GWT n00b, hoping this will
be easy to solve.

I'm on a project trying to use GWT 2.0 to build an embed API, similar
to Google Maps or wave. The idea is for the API to be used in a
context similar to the following:

code
html
head
  script src=http://greatapi.com/great_api_1-0.js/ !-- ie. the
bootloader widget.noscript.js file from gwt... --
  script
 var widget;
 function loadit() {
 widget = new Widget(Some init params);
 widget.bind(herewego);
 }
 function showit() {
 widget.show();
 }
  /script
/head
body onload=loadit

We'll embed our widget in this div...
div id=herewego/

button onclick=showit()/Show it/button

/body
/html
/code

So far, we've been able to create the relevant objects and methods and
expose them via the org.timepedia.exporter.client.Exporter library to
achieve the effect we want.

So far, so good. However the problem we run into is that the
bootloader (widget.nocache.js) file, which is called and executed
before loadit() method, calls the MD5.cache file, which contains the
'Exportable' annotations, asynchronously, and as such may be loaded
and parsed AFTER the onload event has fired. This means that often the
widget = new Widget() call, initated by the onLoad event, will fail.

Is there any easy way to ensure that objects available are once the
bootstrap has been downloaded and parsed, OR have some kind of
callback provided so that once the MD5.cache file has been
downloaded, we can continue using the API?

Any suggestions appreciated.

--

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: Developer Plugin not working on Firefox 3.5.5 on Linux

2009-12-27 Thread John A. Tamplin
Please add your details to 
http://code.google.com/p/google-web-toolkit/issues/detail?id=4141

--

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.




Java Server-side responses to GWT

2009-12-27 Thread ben
Hello there

I'm programming an GWT app on a Apache Tomcat Server, which means that
I use Java for server-side programming. So far so good.

Now I'm wondering how I can transfer the data I gained on the server-
side with Java to the GWT.

For example, I have got a list of image paths like
www.example.com/test.jpg
www.example.com/test2.jpg
...

I want to use these images in the application, as in I have to
transfer the data (urls) from server-side to client-side.

But in what format can I return the data? I mean an ArrayList would be
convenient, or a JSON String. I tried both, but both didn't work out
for me...

Have you got some advice how I can make that happen?
Or how more specifically how I can solve my problem above?

Problem:
I tried to get the hang of JSON.. I couldn't figure out how one can
actually form a JSON String (tried to do so with gson).

My situation in pseudo-code looks like this:
for() {
toMyJSONString.add(url[i]);
}
return MyJSONString;

Goal would be to have MyJSONString in the JSON format like:
{
url1: www.example.com/test.jpg,
...
}

Would be great if you could shed some light... I'm not used to Java
yet... but I'm raring to learn! :)

In case im not clear enough, please let me know!
Thanks a bunch!

Best regards,
Benjamin

--

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: Grid cell formatting

2009-12-27 Thread Prakash
Hi,
you can use CSS selectors for applying styles for all cells in a
table.


define a style for your table in css

.myStyleForTable{

// Your table specific style.
}

.myStyleForTable td
{
  align: left;
  valign : top;
}

in your GWT code, apply above defined style to your table.

Grid testGrid = new Grid(rows,cols);
testGrid.setStylePrimaryName(myStyleForTable);

In this way you need not to iterate every cell to apply style.
Hope this helps.

Regards,
Prakash M.




On Dec 26, 11:10 pm, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

 On Fri, Dec 25, 2009 at 5:39 PM, Tristan tristan.slomin...@gmail.com wrote:
  I think you would need to create a css style like...

  .table-cell: {
   align: left;
   valign: top;
  }

  but you wold still have to iterate through each one of your cells and
  do addStyleName(table-cell) or something like that. because align
  and valign could be different for td, tr, and tbody...  so you
  just have to specify what you really mean... just a hunch (not an
  expert :) )

 Right! I see. That's a shame. I was hoping to be able to drop my subclass.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.blogspot.com

--

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: Errors/Typos in GWT Docs

2009-12-27 Thread Chris Ramsdale
Marty,

Thanks for the suggestions. We'll incorporate them into our next doc
review/update.

Keep 'em coming.

- Chris

On Wed, Dec 23, 2009 at 5:27 PM, Marty Hall javahac...@gmail.com wrote:

 I have been in Asia the last month doing training, so this is my first
 look at the new (yay!) GWT 2.0 docs. GWT 2.0 looks great, but I did
 notice a few small errors in the docs:

 http://code.google.com/webtoolkit/gettingstarted.html
 =

 A) Under Create your first Web application:
 create a new application called MyApplication should be create a
 new application called MyWebApp. Also, I would suggest also saying
 something like if you use the Eclipse plugin described later in this
 document, you can also do File  New  Web Application Project and
 then interactively specify a package name.

 B) Under Run locally in development mode:
 The sentence Since this is your first time hitting the development
 mode server... is slightly inaccurate since the real issue is if it
 is the first time PER BROWSER. I would suggest something like The
 first time you use a browser with the development mode server, it will
 prompt... Also, I again suggest that you list the Eclipse Plugin
 command for running in development mode (R-click project, Debug As 
 Web Application).

 C) Under Make a few changes:
 In the first paragraph, java files should be Java files. Also, the
 last part of that same sentence (in the case of this Quick Start...)
 does not parse and needs to be reworded. Finally, in the last
 sentence, change the colon after Send to a period.

 D) Under Setting up an IDE:
 Since there is support only for Eclipse, I would change the title to
 Using the Eclipse Plugin or Eclipse Support or some such. Also,
 there should be a comma after IDE in the first sentence. Also, I'd
 insert here a very short summary of what the Eclipse plugin does for
 you. I would think the majority of users would use the plugin, but
 this document somewhat implies that the command line is the normal
 approach and the Eclipse plugin is an afterthought.

 http://code.google.com/webtoolkit/doc/latest/ReleaseNotes.html
 =

 A) Under Bug Fixes:
 Issue 1574: #remoteCookie should be #removeCookie. Issue 3102:
 #removeHandelr should be #removeHandler, and has be should be has
 been. Issue 3903: pages no contain should be something like pages
 no longer contain or pages do not contain.

 B) Under HtmlUnit and Test Cases:
 In second bullet, change continous to continuous.

 C) Under Problems?:
 Add comma after GWT Developer Forum.

 http://code.google.com/eclipse/docs/using_sdks.html
 =

 A) I would be a bit more clear that you should select Web Toolkit
 and point at the new GWT 2.0 installation. For those upgrading from
 GWT 1.7, that is the part you have to change. The current screen shots
 show only the App Engine part, which does not need to change.

 http://code.google.com/webtoolkit/usingeclipse.html
 =

 A) For those upgrading from GWT 1.x, I would make it a bit more clear
 that you have to download GWT 2.0 separately. Previously, downloading
 the Eclipse plugin also gave you GWT, with no separate download
 required.

 B) Under Create a Web Application, change java package to Java
 package.

 C) Under Run locally in Development Mode, this description of when
 you will be prompted for the browser plugin is what I would like to
 see under the same heading in
 http://code.google.com/webtoolkit/gettingstarted.html.

 D) Under Make a Few Changes, change java files to Java files.

 I am very pleased to see GWT 2.0 out. Keep up the great work!

  - Marty
 http://www.coreservlets.com/

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




GWT Noob: Click Handlers and Grid/Flex Table

2009-12-27 Thread spierce7
Alright, so I am trying for the life of me to understand how to do
this. I'm a GWT noob at the moment, and I'm really struggling to
understand how to fully implement clickhandlers in a grid or flex
table to figure out where they are clicking within the grid.
Apparently from what I can see so far is that individual click
handlers for each location in the grid were not meant to be
implemented. Instead it seems that I can implement a single click
handler for the entire grid, and then somehow using getCellForEvent
(ClickHandler handler) I can figure out where was clicked and then
have it react, but I can't seem to figure out how to implement
getCellForEvent() into my code. Here's what I'm using:

private Grid calendarGrid = new Grid(4,4);
private int cellNum;

public void onModuleLoad() {
// Put some values in the grid cells.
for (int row = 0; row  4; ++row) {
  for (int col = 0; col  4; ++col)
calendarGrid.setText(row, col, ( + row + ,  + col + ));
}
calendarGrid.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
getCellForEvent(event);
}
});

RootPanel.get().add(calendarGrid);

}

What I'm ultimately trying to do:
I'm trying to make something very similar to what's here:
http://google.latest.gwt-web-calendar.appspot.com/
I need to make a calendar-ish program but have some unique
functionality. Everything will be easy enough, but I need to have an
in-depth understanding of how to manipulate the events on such a
calendar once I have it made. The reason I bring this up, is because I
currently intend to have the calendar aspect just be one big grid, and
act according to clicks and drags. I'm not sure if this is a very
efficient way though, and I can't figure how I would display multiple
events, but once I get that figured out I need to have the events
dragable. That seems manageable on a grid (I think), I'm just not sure
how I would limit events to parts of a grid space.

So my questions:
1. How would I implement getCellForEvent into my above code?

2. Do you think my current idea of how to implement my program idea is
going to be effective? Is there perhaps another way you feel I should
do it?

3. What way would you recommend I handle events within the calendar?
That seems to be the part that I'm having the most difficulty
conceptualizing at the moment.

Thanks in advance!

~Scott

--

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: MVP Architecture source code?

2009-12-27 Thread Chris Ramsdale
I'll be adding the source for this tutorial asap, and will update everyone
when it's available.

- Chris

On Tue, Dec 22, 2009 at 4:11 PM, Dalla dalla_man...@hotmail.com wrote:

 Don´t know if it´s been there for some time now, but I noticed that a
 section named MVP Architecture has been added to the GWT Tutorial
 section.
 It looks a lot like the best practice example that Ray Ryan used in
 hos GWT Best practice session on Google I/O 2009.
 It there any chance of the community seeing the entire source code of
 this example?

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: gwt 2.0 plugin crashes firefox 3.5 in OS X 10.4

2009-12-27 Thread Chris Ramsdale
Checkout:

http://code.google.com/p/google-web-toolkit/issues/detail?id=4413

If this is the same issue that you are experiencing, start the issue (or the
original issue).

Thanks,
Chris

On Thu, Dec 17, 2009 at 2:59 AM, Par pardeeps...@gmail.com wrote:

 Hi,

 I have just upgraded to gwt 2.0 and added an eclipse plugin for os x
 10.4.11. Running in development mode, i was asked to download gwt-dev
 plugin. After downloading it, the firefox doesn't start and crashes.

 I then started firefox in safe mode and disabled all plugins and
 removed the gwt plugin. The firefox starts normally then.

 To run gwt application, i reverted back to gwt 1.7 (by disabling the
 eclipse gwt 2.0 plugin)  but when i run the application in hosted mode
 in 1.7, I get the following error and gwt hosted mode crashes.

 Let me know if i am missing something.

 dyld: lazy symbol binding failed: Symbol not found: _strerror$UNIX2003
  Referenced from: /Library/Internet
 Plug-Ins/gwt-dev.webplugin/Contents/MacOS/gwt-dev
  Expected in: /usr/lib/libSystem.B.dylib

 dyld: Symbol not found: _strerror$UNIX2003
  Referenced from: /Library/Internet
 Plug-Ins/gwt-dev.webplugin/Contents/MacOS/gwt-dev
  Expected in: /usr/lib/libSystem.B.dylib

  Thanks.
 Pardeep

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Use smartgwt or not

2009-12-27 Thread Yozons Support on Gmail
@Martin - Why would you want to attack me just because I'm evaluating
toolkits?  I understand our application domain just fine, and we've built
multiple applications in JSP technologies that are in our area of expertise
and have been running a profitable software business for 10 years now.
Apparently you have an innate ability to review toolkits and understand all
of their complexity, options and licensing terms quickly and easily.  You
are very blessed indeed.  The fact that it takes me time to review them
shouldn't mean I'm confused.  It is your attitude that has led me to
reconsider sgwt because why buy a product from people who seem to think its
users are not worthy?

In our case, we expect to license both under AGPL and commercial, so GPL
should be fine as all of our code would be similarly available.  When
selling a commercial license of our product, we can do so assuming we've
also purchased a commercial license of the library for our developers.  So
it should not be a huge issue, but we will review it closely (our lawyers
also must be clueless because they also take time to evaluate, and it's
just words).  As to GXT product capabilities, that is something we'll have
to evaluate, fortunately not worrying about your concern for how long it
takes us to do so.

@Tom, I'll take a look.  I've not heard of even qooxdoo before, but a quick
check shows it's got a lot of stuff in there for a 1.0 release.

--

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: Use smartgwt or not

2009-12-27 Thread John Armstrong
@Martin
Regarding the below, can you point to the section that you read this
from @ http://www.extjs.com/store/extjs/license.php ?

Our reading of the license is that its a standard, straightforward,
developer seat + support model + 'no royalty/source release
requirement' which meshes with how most toolkits are licensed (Qt
etc).

Tx
J

 They have some really severe
 restrictions that might even require you end user / customer to buy a
 commercial license of ExtGWT. If after reading their license you still think
 its straightforward, then good luck to 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-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 Incubator update for GWT 2.0?

2009-12-27 Thread Chris Ramsdale
We're currently working on this and will send out an update shortly. In the
meantime, any feedback regarding issues that you are are experiencing with
the GWT Incubator and GWT 2.0 are greatly appreciated.

- Chris

On Fri, Dec 11, 2009 at 1:48 PM, Timmy G t...@paloalto.com wrote:

 Anyone know when we can expect to see the incubator project get
 refreshed for GWT 2.0?

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Error running JUnit with GWT and App Engine

2009-12-27 Thread Sekhar
I'm running a JUnit test that causes a persistent write (JPA) with GWT
and App Engine, and the test is failing with the below error. The No
API environment is registered for this thread' error led me to the GAE
JUnit guidelines (http://code.google.com/appengine/docs/java/howto/
unittesting.html), but they apply for a pure GAE situation. How should
we run test cases with GWT when it involves persistent writes on the
local GAE? The tests that only read from the store are working fine,
as are direct access through the GWT front-end.

junit.framework.AssertionFailedError: Remote test failed at
192.168.1.76 / Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.0.1) Gecko/2008070208 Firefox/3.0.1
com.google.gwt.user.client.rpc.SerializationException:
java.lang.NullPointerException: No API environment is registered for
this thread.
at junit.framework.Assert.fail(Assert.java:197)
at com.allurefx.herdspot.test.client.HerdspotServiceTest$3.onFailure
(HerdspotServiceTest.java:88)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
(RequestCallbackAdapter.java:218)
at com.google.gwt.http.client.Request.fireOnResponseReceived
(Request.java:287)
at com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange
(RequestBuilder.java:396)
at sun.reflect.GeneratedMethodAccessor33.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn
(BrowserChannel.java:1713)
at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript
(BrowserChannelServer.java:165)
at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke
(ModuleSpaceOOPHM.java:120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject
(ModuleSpace.java:264)
at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at com.google.gwt.dev.shell.OophmSessionHandler.invoke
(OophmSessionHandler.java:157)
at com.google.gwt.dev.shell.BrowserChannel.reactToMessages
(BrowserChannel.java:1668)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:401)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

--

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: Stockwatcher -UIBinder

2009-12-27 Thread Chris Ramsdale
While we'll continue to update all code tutorials to use the latest GWT
features, is there a particular UI section within the Stock Watcher tutorial
that you have questions about?

- Chris

On Thu, Dec 10, 2009 at 6:00 AM, johnd johannes.dres...@gmail.com wrote:

 Hi, i have a question regarding the stockwatcher tutorial. Will that
 be updated to use UIBinder
 instead?

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT Noob: Click Handlers and Grid/Flex Table

2009-12-27 Thread spierce7
I finally figured out my own answer to question 1. I had to make an
HTMLTable.Cell object and set it equal to the results of the
getCellForEvent(event), then from there call some functions to get the
cell indexes. I had tried that but forgot to capitalize the C in Cell.
Anyways, I'd still really love input on questions 2 and 3. :-)

On Dec 27, 10:00 pm, spierce7 spier...@gmail.com wrote:
 Alright, so I am trying for the life of me to understand how to do
 this. I'm a GWT noob at the moment, and I'm really struggling to
 understand how to fully implement clickhandlers in a grid or flex
 table to figure out where they are clicking within the grid.
 Apparently from what I can see so far is that individual click
 handlers for each location in the grid were not meant to be
 implemented. Instead it seems that I can implement a single click
 handler for the entire grid, and then somehow using getCellForEvent
 (ClickHandler handler) I can figure out where was clicked and then
 have it react, but I can't seem to figure out how to implement
 getCellForEvent() into my code. Here's what I'm using:

 private Grid calendarGrid = new Grid(4,4);
         private int cellNum;

         public void onModuleLoad() {
                 // Put some values in the grid cells.
             for (int row = 0; row  4; ++row) {
               for (int col = 0; col  4; ++col)
                 calendarGrid.setText(row, col, ( + row + ,  + col + ));
             }
             calendarGrid.addClickHandler(new ClickHandler() {
                 public void onClick(ClickEvent event) {
                         getCellForEvent(event);
                 }
             });

             RootPanel.get().add(calendarGrid);

         }

 What I'm ultimately trying to do:
 I'm trying to make something very similar to what's 
 here:http://google.latest.gwt-web-calendar.appspot.com/
 I need to make a calendar-ish program but have some unique
 functionality. Everything will be easy enough, but I need to have an
 in-depth understanding of how to manipulate the events on such a
 calendar once I have it made. The reason I bring this up, is because I
 currently intend to have the calendar aspect just be one big grid, and
 act according to clicks and drags. I'm not sure if this is a very
 efficient way though, and I can't figure how I would display multiple
 events, but once I get that figured out I need to have the events
 dragable. That seems manageable on a grid (I think), I'm just not sure
 how I would limit events to parts of a grid space.

 So my questions:
 1. How would I implement getCellForEvent into my above code?

 2. Do you think my current idea of how to implement my program idea is
 going to be effective? Is there perhaps another way you feel I should
 do it?

 3. What way would you recommend I handle events within the calendar?
 That seems to be the part that I'm having the most difficulty
 conceptualizing at the moment.

 Thanks in advance!

 ~Scott

--

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: Hosted mode won't work since 2.0 upgrade

2009-12-27 Thread John Armstrong
The only way I was able to deal with this exact problem on my macbook
was to

A) create a new project in a new package space with a new name
B) Copy all of my files into the new project
C) put my entrypoint class code INTO the auto-generated entry point
D) Hand tweak my remote services definitions to match the new class
hierarchy

Voila, back in business.

Something is caching at a lower level then the browser or eclipse.
When I downloaded a new eclipse, installed plugins from update site,
attached it to a new workspace and then tried to create an
autogenerated project using the same package/entry point as my app it
would exhibit the symptoms.

Hopefully someone can get a definitive answer to this issue at some
point but its good to be back in development mode after 3 days of
hell.

John-

On Dec 15, 2:51 pm, Adam S servic.a...@gmail.com wrote:
 Same outcome here. I tried to swtich to GWT2.0, but my app using
 smarGwt
 compononets didn't exacly looked as i inteded so i tried to switch
 back to 1.7.1
 Now my hosted mode tries to connect to some weird site and
  keeps saying :  Unknown module requested 'missingplugin'

 On 14 Gru, 22:17, Mike McLean mike.mclea...@gmail.com wrote:



  Hi All,

  Last week, I installed GWT 2.0, Chrome, Chromium and the SpeedTracer
  plugin on my 10.6 OS X installation. I also updated my Eclipse plugin.

  It was a quick try to see if my current project would keep working on
  2.0 when I'd find the time to upgrade and test properly.

  Ever since the update, I've been unable to start hosted mode ...

  [WARN] Unknown module requested 'missingplugin'; all active GWT
  modules must be specified in the command line arguments

  I've tried removing Chrome and Chromium; I've removed the 2.0 install
  of GWT; I've used TimeMachine to restore my Eclipse installation as
  well as my workspace ... to no avail.

  Where should I be looking? What's going on?

  Thanks.

--

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: body.onkeyup

2009-12-27 Thread Venkatesh Babu
You can even check - DOM.sinkEvents and DOM.setEventListener. This might be
of some help for you if you plan to convert your javascript code into java
code to be used by GWT ...

-Venkatesh



On Sun, Dec 27, 2009 at 11:57 AM, Prakash prakash.masilam...@gmail.comwrote:

 Hi,

 If you are trying to implement application wide Short/Hot keys to do
 some action,
 then  you can use
 Event.addNativePreviewEventHandler().

 Regards,
 Prakash M.


 On Dec 26, 4:08 pm, Surya surya.i...@gmail.com wrote:
  Hi.
 
  How do I convert the javascript code window.onkeyup (or onkeyup in
  body tag) to GWT?
 
  Regards

 --

 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%2bunsubscr...@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 at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Getting RuntimeException in development mode for gwt2.0

2009-12-27 Thread Vikas
It is working fine with gwt-log-2.6.2, but I've upgraded gwt-log with
3.0.0 which is compatible with gwt2.0

On Dec 24, 3:57 pm, Shawn Brown big.coffee.lo...@gmail.com wrote:
  inherits name=com.allen_sauer.gwt.log.gwt-log-ERROR /

 I'm using that with 2.0 fine.  What version do you have.  I've got
 2.6.2 which is I think for gwt 1.7 but ...seems ok.

--

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: MVP + UiBinder, thoughts?

2009-12-27 Thread bcottam
just following up on this.  I've just started using the UiBinder and
love it.  I really like how clean it makes my UI code.  However, I was
kind of struggling with the @UiHandler annotation and how it fit in
with the whole MVP paradigm as well.  Your suggestion Jonas is great
(i.e. reversing the MVP dependency linkage) however, I wonder if a
more decoupled approach may be appropriate.  For instance, I really
like the idea that I can make a UI interface that defines properties
(getName() setName() etc) rather than HTML DOM elements
(getNameTextField() etc.) so I don't want to be putting my UI class in
charge of migrating data from my ui inputs to my presenter.  So, I
thought, perhaps some really simple event driven api might work:

public class MyPresenter implements SaveCancelHandler {
public interface Display {
public String getName();
public void setName(String name);

}

public void saveClicked(ClickEvent event) {

}
public void cancelClicked(ClickEvent event) {

}

}

public class MyPanel extends Composite implements MyPresenter.Display
{
 @UiField TextBox nameBox;
 @UiField Button saveButton;
 @UiField Button cancelButton;

 private SaveCancelHandler handler;

public void setSaveCancelHandler(SaveCancelHandler handler) {
this.handler = handler;
}

 public void setName(String name) {
 nameBox.setText(name);
}
public String getName() {
return nameBox.getText();
}

@UiHandler(saveButton)
public void saveClicked(ClickEvent event) {
 handler.saveClicked(event);
}

@UiHandler()
public void cancelClicked(ClickEvent event) {
handler.cancelClicked(event);
}

}

// this could be a nested class, but this one seems really common:
public interface SaveCancelHandler {
public void saveClicked(ClickEvent event);
public void cancelClicked(ClickEvent event);
}

of course, this could be done with some more elegant events/handler
definitions etc and perhaps a nice HandlerManager so multiple Handlers
could be added to your display.  This eliminates the anonymous class
definitions and leaves both your UI and Presenter with a rather clean
api.  I'm playing around with this pattern now, so I don't know if
there is some pitfall waiting to bite me, but so far it's working well
and I like it *lots* better than this stuff:

getDisplay().addSaveHandler( new ClickHandler() {
 public void onClick(ClickEvent event) {
 saveClicked(event);
 }
});



On Dec 15, 1:41 am, Jonas Huckestein jonas.huckest...@me.com wrote:
  One question .. how does using @UiHandlerin the View code maintain
  MVP? I would like to stick to @UiHandlerannotation, but it seems to
  me that testing will get hurt. My current thinking is going with
  something similar to what Thomas described above.

 I recall having read on the gin list a couple of months ago, that it
 might be useful to reverse the dependency of the view andpresenterin
 MVP. You could inject a presenter class into the class containing
 the @UiHandlerannotations and from the view call methods on thepresenter. I 
 have to figure this out in the next couple of weeks since
 I am not yet sure about a lot of things. For instance, does thepresenterneed 
 to know about the view class or can it be agnostic by
 requiring all data to be passed to its methods? This would remove the
 need to have hundreds of *.Display interfaces and would make testing
 easier since it would not require that much mocking.

 And here is a slightly different question: Does anyone have experience
 with how fast the HTMLUnit tests can run? My feeling is, that the plan
 for GWT might be to move away from hacks like MVP alltogether. I think
 the annotation-style of UI bindings is also well suited to build
 automated tests on mock UIs in the future and my feeling is that
 sticking close to all of UiBinder's features might not be a bad
 idea ...

 In case anyone is interested, I could try to pretty up the framework
 code we currently use for a large GWT 2 application and perhaps post
 it here or soething (I will have to check that with my team though ;))

 Cheers, Jonas

--

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: MVP + UiBinder, thoughts?

2009-12-27 Thread bcottam
oh, not sure why I didn't think of this earlier, the EventBus is a
perfect way to handle this (well, it's pretty good anyway  :)  )
so instead of:
public void setSaveCancelHandler(SaveCancelHandler handler) {
this.handler = handler;
}

you could just do:
SaveCancelEvent event = new SaveCancelEvent();
eventBus.fireEvent(event);

of course this assumes you are fine with making event APIs for your
displays.

and you don't have to have your Display keeping track of instances of
listeners on it.  That, and anyone can listen to your events,
although, usually I would think only your Presenter would be
listening.
cheers
-bryce

On Dec 28, 12:25 am, bcottam bcot...@gmail.com wrote:
 just following up on this.  I've just started using the UiBinder and
 love it.  I really like how clean it makes my UI code.  However, I was
 kind of struggling with the @UiHandler annotation and how it fit in
 with the whole MVP paradigm as well.  Your suggestion Jonas is great
 (i.e. reversing the MVP dependency linkage) however, I wonder if a
 more decoupled approach may be appropriate.  For instance, I really
 like the idea that I can make a UI interface that defines properties
 (getName() setName() etc) rather than HTML DOM elements
 (getNameTextField() etc.) so I don't want to be putting my UI class in
 charge of migrating data from my ui inputs to my presenter.  So, I
 thought, perhaps some really simple event driven api might work:

 public class MyPresenter implements SaveCancelHandler {
     public interface Display {
         public String getName();
         public void setName(String name);
         
     }

     public void saveClicked(ClickEvent event) {
         
     }
     public void cancelClicked(ClickEvent event) {
         
     }

 }

 public class MyPanel extends Composite implements MyPresenter.Display
 {
     �...@uifield TextBox nameBox;
     �...@uifield Button saveButton;
     �...@uifield Button cancelButton;

      private SaveCancelHandler handler;

     public void setSaveCancelHandler(SaveCancelHandler handler) {
         this.handler = handler;
     }

      public void setName(String name) {
          nameBox.setText(name);
     }
     public String getName() {
         return nameBox.getText();
     }

     @UiHandler(saveButton)
     public void saveClicked(ClickEvent event) {
          handler.saveClicked(event);
     }

     @UiHandler()
     public void cancelClicked(ClickEvent event) {
         handler.cancelClicked(event);
     }

 }

 // this could be a nested class, but this one seems really common:
 public interface SaveCancelHandler {
         public void saveClicked(ClickEvent event);
         public void cancelClicked(ClickEvent event);

 }

 of course, this could be done with some more elegant events/handler
 definitions etc and perhaps a nice HandlerManager so multiple Handlers
 could be added to your display.  This eliminates the anonymous class
 definitions and leaves both your UI and Presenter with a rather clean
 api.  I'm playing around with this pattern now, so I don't know if
 there is some pitfall waiting to bite me, but so far it's working well
 and I like it *lots* better than this stuff:

 getDisplay().addSaveHandler( new ClickHandler() {
      public void onClick(ClickEvent event) {
          saveClicked(event);
      }

 });

 On Dec 15, 1:41 am, Jonas Huckestein jonas.huckest...@me.com wrote:

   One question .. how does using @UiHandlerin the View code maintain
   MVP? I would like to stick to @UiHandlerannotation, but it seems to
   me that testing will get hurt. My current thinking is going with
   something similar to what Thomas described above.

  I recall having read on the gin list a couple of months ago, that it
  might be useful to reverse the dependency of the view andpresenterin
  MVP. You could inject a presenter class into the class containing
  the @UiHandlerannotations and from the view call methods on thepresenter. I 
  have to figure this out in the next couple of weeks since
  I am not yet sure about a lot of things. For instance, does 
  thepresenterneed to know about the view class or can it be agnostic by
  requiring all data to be passed to its methods? This would remove the
  need to have hundreds of *.Display interfaces and would make testing
  easier since it would not require that much mocking.

  And here is a slightly different question: Does anyone have experience
  with how fast the HTMLUnit tests can run? My feeling is, that the plan
  for GWT might be to move away from hacks like MVP alltogether. I think
  the annotation-style of UI bindings is also well suited to build
  automated tests on mock UIs in the future and my feeling is that
  sticking close to all of UiBinder's features might not be a bad
  idea ...

  In case anyone is interested, I could try to pretty up the framework
  code we currently use for a large GWT 2 application and perhaps post
  it here or soething (I will have to check that with my team