Re: Synchronous Calls with RPC??

2010-05-17 Thread mmoossen
i completely agree with you Oliver!

i said already that i think that sync-rpc is a really bad idea in this
case. which was already addressed in detail by you and others.

my point was against the spirit of the gwt team to do not give the
developer the choice to use sync requests if he wants to.
it is like never letting a child to cross the street alone instead of
teaching him to watch out.

what we need is better developers and the way to achieve that is to do
mistakes and be willing to learn, and not a tool that tells you i do
not allow you to do that because it *might* be a bad idea...

regards,
Michael

On May 16, 9:39 pm, Olivier Monaco olivier.mon...@free.fr wrote:
 Michael,

 I'm totally disagreed with you. When you choose to answer here, you
 choose to give a good one. When you know someone is going the wrong
 way, don't let him going to far. Fighting against problems is not a
 good way to learn, you also need to have references.

 Please, read again the 
 following:http://www.catb.org/~esr/faqs/smart-questions.html#id383614

 If you're going to answer the question at all, give good value. Don't
 suggest kludgy workarounds when somebody is using the wrong tool or
 approach. Suggest good tools. Reframe the question.

 Regards,

 Olivier

 On 16 mai, 08:39, mmoossen mmoos...@gmail.com wrote:



  Hi,

  Despite that i wrote the patch for sync-rpc, I completely agree with
  kozura that in this case sync-rpc would be a bad idea.
  BUT, who cares? if fomba wants to use it, it is up to him, if his
  application is not responsive it is his problem not mine.
  (this reminds me the apple-adobe 
  conflict:http://sixrevisions.com/web-development/issues-with-apples-decision-t...,
  2nd point)

  HTH
  Michael

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: About Date object in GWT

2010-05-17 Thread Sabbir
and how about reading the years, months, day, hour, minutes and
seconds from the date object?



On May 15, 6:13 am, Sabbir leo.sh...@gmail.com wrote:
 the methods inDateobjecat as getTime, getHour, etc are deprecated
 ones.
 And in GWT calendarobjectis not allowed.

 so how do set thedateobjectin GWT???

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: About Date object in GWT

2010-05-17 Thread aditya sanas
Ignore deprecation warning
u have only one option on client side i.e. Date() object from java.util
so user getYear(),getMonth() etc. methods for getting hrs minutes secs and
year
--
Aditya


On Mon, May 17, 2010 at 12:20 PM, Sabbir leo.sh...@gmail.com wrote:

 and how about reading the years, months, day, hour, minutes and
 seconds from the date object?



 On May 15, 6:13 am, Sabbir leo.sh...@gmail.com wrote:
  the methods inDateobjecat as getTime, getHour, etc are deprecated
  ones.
  And in GWT calendarobjectis not allowed.
 
  so how do set thedateobjectin GWT???
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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: Synchronous Calls with RPC??

2010-05-17 Thread Olivier Monaco
Ok, I see what you mean. I'm not sure about adding this feature but
maybe a better documentation about the bad idea of

On 17 mai, 08:37, mmoossen mmoos...@gmail.com wrote:
 i completely agree with you Oliver!

 i said already that i think that sync-rpc is a really bad idea in this
 case. which was already addressed in detail by you and others.

 my point was against the spirit of the gwt team to do not give the
 developer the choice to use sync requests if he wants to.
 it is like never letting a child to cross the street alone instead of
 teaching him to watch out.

 what we need is better developers and the way to achieve that is to do
 mistakes and be willing to learn, and not a tool that tells you i do
 not allow you to do that because it *might* be a bad idea...

 regards,
 Michael

 On May 16, 9:39 pm, Olivier Monaco olivier.mon...@free.fr wrote:



  Michael,

  I'm totally disagreed with you. When you choose to answer here, you
  choose to give a good one. When you know someone is going the wrong
  way, don't let him going to far. Fighting against problems is not a
  good way to learn, you also need to have references.

  Please, read again the 
  following:http://www.catb.org/~esr/faqs/smart-questions.html#id383614

  If you're going to answer the question at all, give good value. Don't
  suggest kludgy workarounds when somebody is using the wrong tool or
  approach. Suggest good tools. Reframe the question.

  Regards,

  Olivier

  On 16 mai, 08:39, mmoossen mmoos...@gmail.com wrote:

   Hi,

   Despite that i wrote the patch for sync-rpc, I completely agree with
   kozura that in this case sync-rpc would be a bad idea.
   BUT, who cares? if fomba wants to use it, it is up to him, if his
   application is not responsive it is his problem not mine.
   (this reminds me the apple-adobe 
   conflict:http://sixrevisions.com/web-development/issues-with-apples-decision-t...,
   2nd point)

   HTH
   Michael

   --
   You received this message because you are subscribed to the Google Groups 
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Synchronous Calls with RPC??

2010-05-17 Thread Olivier Monaco
(Sorry, my message was incomplete)

Ok, I see what you mean. I'm not sure about adding this feature but
maybe a better documentation about the bad idea of using sync
request.

Olivier

On 17 mai, 08:37, mmoossen mmoos...@gmail.com wrote:
 i completely agree with you Oliver!

 i said already that i think that sync-rpc is a really bad idea in this
 case. which was already addressed in detail by you and others.

 my point was against the spirit of the gwt team to do not give the
 developer the choice to use sync requests if he wants to.
 it is like never letting a child to cross the street alone instead of
 teaching him to watch out.

 what we need is better developers and the way to achieve that is to do
 mistakes and be willing to learn, and not a tool that tells you i do
 not allow you to do that because it *might* be a bad idea...

 regards,
 Michael

 On May 16, 9:39 pm, Olivier Monaco olivier.mon...@free.fr wrote:



  Michael,

  I'm totally disagreed with you. When you choose to answer here, you
  choose to give a good one. When you know someone is going the wrong
  way, don't let him going to far. Fighting against problems is not a
  good way to learn, you also need to have references.

  Please, read again the 
  following:http://www.catb.org/~esr/faqs/smart-questions.html#id383614

  If you're going to answer the question at all, give good value. Don't
  suggest kludgy workarounds when somebody is using the wrong tool or
  approach. Suggest good tools. Reframe the question.

  Regards,

  Olivier

  On 16 mai, 08:39, mmoossen mmoos...@gmail.com wrote:

   Hi,

   Despite that i wrote the patch for sync-rpc, I completely agree with
   kozura that in this case sync-rpc would be a bad idea.
   BUT, who cares? if fomba wants to use it, it is up to him, if his
   application is not responsive it is his problem not mine.
   (this reminds me the apple-adobe 
   conflict:http://sixrevisions.com/web-development/issues-with-apples-decision-t...,
   2nd point)

   HTH
   Michael

   --
   You received this message because you are subscribed to the Google Groups 
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Problem with VerticalPanel row height via UiBinder

2010-05-17 Thread Dawid Buchwald
Thanks for your reply!

I admit, I haven't used the Firebug yet - I will give it a try tonight and
see what happens. Problem is that I already used the built-in Chrome HTML
debugger - but I could not tell where this height (16px) would come from. It
seemed like it is somehow generated by GWT, ignoring explicit declaration in
my code.

As for falling back to HTML - the whole point of GWT (and similar utilities)
is to avoid HTML as much as possible to ensure portability and
predictability of resulting webpages. That's why I'm not convinced to this
approach... Obviously, I understand that this is just a small part I would
have to write in HTML and most likely this would work fine - but my concern
is: if I need workaround for something that simple - how often will I have
to do it for more complex issues?

What I can do (and probably this is what is going to happen for me) is to
fall back to not using UIBinder yet and wait for another stable release of
GWT.

Anyway, I will continue my investigation and if I find any solution, I will
post it. In the meantime I will really appreciate any feedback - I'm still
learning this technology and most likely it's caused by my mistake...

Best regards,
Dawid Buchwald

On Mon, May 17, 2010 at 5:40 AM, Tom Davies tgdav...@gmail.com wrote:

 I don't know what's causing your issue -- something like FireBug
 should let you see what the size of your element is, and which styles
 the sizes are coming from.

 There's nothing wrong with using mostly HTML in UiBinder templates --
 unless unless your widget actually needs a reference to a child
 element, I just use HTML.

 --
 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 Sprite adds height attribute in the style class

2010-05-17 Thread Tobias Herrmann

Hi there,

I have to disagree with Thomas. You only need to be aware that the 
@sprite will set these dimensions. You can override this by setting the 
height or width yourself in the CSS rule where the @sprite is used.


Like this:
@sprite div.imageClass{
   gwt-image: yourImage;
   height: auto;
   width: 10px;
}

In this case, no other height and width properties will be set by gwt.

Doing it this way, you can still take advantage of the improved 
performance the gwt sprite mechanism provides.


Greetings, Tobias

Zak schrieb:

Thanks, that clears things up for me (and I hope Vaibhav as well). I
havent made the UiBinder/ClientBundle jump yet, but in reading the
documentation I thought that might be an issue. Good to know
DataResource can fill that need.

On May 16, 5:31 pm, Thomas Broyer t.bro...@gmail.com wrote:
  

On 16 mai, 21:42, Zak zakn...@gmail.com wrote:



Thomas, does this mean that @sprite should only be used when it's okay
for the element to be constrained to the same dimensions (or just
height or width in the case of repeated backgrounds) as the image? For
  

Yes, just as if you used an Image (withou setUrl or an ImageBundle)



example, if we went with Stefan's proposal of overriding the height
rule (let's say height: auto), would the other images in the image
strip become visible?
  

They could (in IE6/7, and/or depending on ClientBundle configuration/
deferred-binding properties)

--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group 
athttp://groups.google.com/group/google-web-toolkit?hl=en.



  


--
You received this message because you are subscribed to the Google Groups Google 
Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Synchronous Calls with RPC??

2010-05-17 Thread Sripathi Krishnan

 I'm not sure about adding this feature but

maybe a better documentation about the bad idea of using sync

request.

http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideGettingUsedToAsyncCalls
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideGettingUsedToAsyncCalls
--Sri


On 17 May 2010 13:19, Olivier Monaco olivier.mon...@free.fr wrote:

 (Sorry, my message was incomplete)

 Ok, I see what you mean. I'm not sure about adding this feature but
 maybe a better documentation about the bad idea of using sync
 request.

 Olivier

 On 17 mai, 08:37, mmoossen mmoos...@gmail.com wrote:
  i completely agree with you Oliver!
 
  i said already that i think that sync-rpc is a really bad idea in this
  case. which was already addressed in detail by you and others.
 
  my point was against the spirit of the gwt team to do not give the
  developer the choice to use sync requests if he wants to.
  it is like never letting a child to cross the street alone instead of
  teaching him to watch out.
 
  what we need is better developers and the way to achieve that is to do
  mistakes and be willing to learn, and not a tool that tells you i do
  not allow you to do that because it *might* be a bad idea...
 
  regards,
  Michael
 
  On May 16, 9:39 pm, Olivier Monaco olivier.mon...@free.fr wrote:
 
 
 
   Michael,
 
   I'm totally disagreed with you. When you choose to answer here, you
   choose to give a good one. When you know someone is going the wrong
   way, don't let him going to far. Fighting against problems is not a
   good way to learn, you also need to have references.
 
   Please, read again the following:
 http://www.catb.org/~esr/faqs/smart-questions.html#id383614
 
   If you're going to answer the question at all, give good value. Don't
   suggest kludgy workarounds when somebody is using the wrong tool or
   approach. Suggest good tools. Reframe the question.
 
   Regards,
 
   Olivier
 
   On 16 mai, 08:39, mmoossen mmoos...@gmail.com wrote:
 
Hi,
 
Despite that i wrote the patch for sync-rpc, I completely agree with
kozura that in this case sync-rpc would be a bad idea.
BUT, who cares? if fomba wants to use it, it is up to him, if his
application is not responsive it is his problem not mine.
(this reminds me the apple-adobe conflict:
 http://sixrevisions.com/web-development/issues-with-apples-decision-t...,
2nd point)
 
HTH
Michael
 
--
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 athttp://
 groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   You received this message because you are subscribed to the Google
 Groups Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
   For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@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 athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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 Formpanel and multipart

2010-05-17 Thread noob_boy
Hi,

I am trying to run the FormPanel example which exists along with the
javadoc. After form submission,  no data is available on the server
side. But, if I remove ENCODING_MULTIPART and set it to URLENCODED, I
get the data for all fields except FIleUpload  field.

Any tips on how to debug this issue?

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.



generator using deferred binding

2010-05-17 Thread Stefan Bachert
Hi,

does anyone tried to generate classes which are using deferred
binding, too?
This means some kind of recursion

Does this works? Are there some limitations?

Stefan Bachert
http://gwtworld.de

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



Classname table in generated JS

2010-05-17 Thread mmoossen
Dear all!

i just found this:
http://degwt.googlecode.com

and i was really surprised to actually find a classname table in the
generated production js code.

i know that the rpc classes and methods are used (which i do not like
very much, but that is another story).

but i do not see any need for a general classname table, i mean every
single class even enums are listed there.
additionally there seems to be also a kind of lookup table for style
names!!?

could somebody please explain to me why this is needed?

i mean all this data is taking about 180Kb of 500Kb of my production
cache files, and i would really like to know what is the idea behind
that...

Thanks
Michael

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



regular expressions

2010-05-17 Thread laurent
hello ,


simple question.i've a problem with regular expression.When i do
NumberFormat num = NumberFormat.getFormat(*.[0-9]) with
Window.alert( num.format(123.14) ) , it don't print. I use the
NumberFormat of GWT.I want that my double begin with 0...n
characters,a dot and a figure between 0 and 9.

thanks for your request

-- 
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: regular expressions

2010-05-17 Thread Tom Davies


On May 17, 9:00 pm, laurent bagno_laur...@hotmail.com wrote:
 hello ,

 simple question.i've a problem with regular expression.When i do
 NumberFormat num = NumberFormat.getFormat(*.[0-9]) with
 Window.alert( num.format(123.14) ) , it don't print. I use the
 NumberFormat of GWT.I want that my double begin with 0...n
 characters,a dot and a figure between 0 and 9.

Have a look at the Javadoc for NumberFormat:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html?overview-summary.html

The patterns are not conventional regular expressions.

NumberFormat patterns are not going to let you strip arbitrary non-
numeric characters from the front of your numbers (which is what you
say you want to do, although not what your example suggests).

What number do you want to get from the string 123.14?

Tom

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



2.0.3 Regression: InlineClientBundleGenerator

2010-05-17 Thread graffle...@gmail.com
I was upgrading from 2.0.0 to 2.0.3 and started getting:

Unable to find recently-generated type
'com.google.gwt.user.client.ui.com_google_gwt_user_client_ui_DisclosurePanel_DefaultImages_default_InlineClientBundleGenerator

when I tried to build my .war file artifact (I'm using Jetbrains
IntelliJ)

I built a distro out of the latest in svn and this seemed to get rid
of the problem above but I then got the following:

The type BigInteger must implement the inherited abstract method
Number.byteValue()
The type BigInteger must implement the inherited abstract method
Number.shortValue()
The type BigDecimal must implement the inherited abstract method
Number.byteValue()
The type BigDecimal must implement the inherited abstract method
Number.shortValue()

which is weird because Number.java in gwt does not declare shortValue
and byteValue to be abstract in the first place.


-- 
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: Classname table in generated JS

2010-05-17 Thread Olivier Monaco
Hi,

Maybe it's about this : 
http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

Olivier

On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
 Dear all!

 i just found this:http://degwt.googlecode.com

 and i was really surprised to actually find a classname table in the
 generated production js code.

 i know that the rpc classes and methods are used (which i do not like
 very much, but that is another story).

 but i do not see any need for a general classname table, i mean every
 single class even enums are listed there.
 additionally there seems to be also a kind of lookup table for style
 names!!?

 could somebody please explain to me why this is needed?

 i mean all this data is taking about 180Kb of 500Kb of my production
 cache files, and i would really like to know what is the idea behind
 that...

 Thanks
 Michael

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT and telnet connections

2010-05-17 Thread Łukasz P .
I'm reading something about GWT-RPC now, and I wonder is it possible
to make all the telnet connections on the server side and send the
responses via GWT-RPC to the client side?

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



Vaadin or GWT designer

2010-05-17 Thread Breno Gomes
Developers,

I have used GWT for a long time for the software, but I never used plugin
for GWT development in Eclipse IDE.

In my searches, two remaining: Vaadin and GWT Designer.

I want to know the experience of you, which of these plugins fits more to a
process of enterprise development?

Very thanks,

Breno Gomes

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



is it technically possible to use other languages with gwt?

2010-05-17 Thread Aljosa Mohorovic
i don't mean right now, only if it's technically possible in some
distant future?
is gwt strictly based on java as a language or jvm?

Aljosa Mohorovic

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



External access to CSS resources

2010-05-17 Thread Itzik Yatom
Hi,

I already use Intensively UIBinder with my GWT projects.
Considering if to use also CSS resource or the regular external CSS
files in my GWT projects.
Since I work with a graphical designer that may need to change the
styling while she gets from me initial results and improve them, she
should have an access to the CSS, change some rules, save the result
and send me fixes.

Can I do it while using CSS resources?

Thanks
Itzik

-- 
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: Classname table in generated JS

2010-05-17 Thread Sripathi Krishnan

 Could somebody please explain to me why this is needed?

AFAIK, this wasn't always the case. Issue
370http://code.google.com/p/google-web-toolkit/issues/detail?id=370
has
some information on why this was introduced. The class name are required so
that you can use the getClass() method on an object.

As Olivier pointed out, there is a way to disable this behavior. All google
websites I have seen disable class names. You can take a look at orkut or
wave for example. I believe it isn't being done by default because it could
break some websites that depend on classnames. If you don't depend on
getClass(), then you could benefit from the optimization that
-XdisableClassMetada provides.

That said, there are other ways to extract out information about classes and
methods. For example, it is possible to extract the complete signature of a
RPC method and reverse engineer the RemoteService interface, such that you
can use a library like
syncproxyhttp://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/to
make RPC calls to any server. So,  treat
-XdisableClassMetada as a way to improve performance, and not as a way to
completely obfuscate all class and method names.

--Sri


On 17 May 2010 18:15, Olivier Monaco olivier.mon...@free.fr wrote:

 Hi,

 Maybe it's about this :
 http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptimization

 Olivier

 On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
  Dear all!
 
  i just found this:http://degwt.googlecode.com
 
  and i was really surprised to actually find a classname table in the
  generated production js code.
 
  i know that the rpc classes and methods are used (which i do not like
  very much, but that is another story).
 
  but i do not see any need for a general classname table, i mean every
  single class even enums are listed there.
  additionally there seems to be also a kind of lookup table for style
  names!!?
 
  could somebody please explain to me why this is needed?
 
  i mean all this data is taking about 180Kb of 500Kb of my production
  cache files, and i would really like to know what is the idea behind
  that...
 
  Thanks
  Michael
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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.



Integrating icefaces into gwt

2010-05-17 Thread fomba collins
Hi, does anyone have an idea on how we can integrate gwt and icefaces projects. 
I want o integrate an icefaces module into my gwt project. Any help??
efsiken
-- 
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: is it technically possible to use other languages with gwt?

2010-05-17 Thread Sripathi Krishnan
On the server side, you are free to use any language you want. Several
people have been successful in using PHP as a backend server.

On the client side, only Java is supported. Since GWT is a java sourcecode
- javascript compiler, it is NOT possible to use other jvm languages. There
has been some interest in creating a scala compiler for GWT. If you are
interested, you can go through this discussion
threadhttp://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/006d4339fb17803e?pli=1,
and this website http://scalagwt.gogoego.com/.  It explains the general
problems with introducing compilers for other languages, and also explains
ways to overcome them.

Besides the scala movement, I don't think there is any other serious work
happening.

--Sri


On 17 May 2010 19:19, Aljosa Mohorovic aljosa.mohoro...@gmail.com wrote:

 i don't mean right now, only if it's technically possible in some
 distant future?
 is gwt strictly based on java as a language or jvm?

 Aljosa Mohorovic

 --
 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: regular expressions

2010-05-17 Thread laurent
i want that maximum one figure after the dot.For example, i've
123.89 , with formatting : 123.8

On 17 mai, 14:19, Tom Davies tgdav...@gmail.com wrote:
 On May 17, 9:00 pm, laurent bagno_laur...@hotmail.com wrote:

  hello ,

  simple question.i've a problem with regular expression.When i do
  NumberFormat num = NumberFormat.getFormat(*.[0-9]) with
  Window.alert( num.format(123.14) ) , it don't print. I use the
  NumberFormat of GWT.I want that my double begin with 0...n
  characters,a dot and a figure between 0 and 9.

 Have a look at the Javadoc for 
 NumberFormat:http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/index.html?o...

 The patterns are not conventional regular expressions.

 NumberFormat patterns are not going to let you strip arbitrary non-
 numeric characters from the front of your numbers (which is what you
 say you want to do, although not what your example suggests).

 What number do you want to get from the string 123.14?

 Tom

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: External access to CSS resources

2010-05-17 Thread laurent
interface GlobalResources extends ClientBundle {
@CssResource.NotStrict
@Source(style.css)
CssResource css();
}

GWT.GlobalResources create(GlobalResources.class).css()
.ensureInjected();

with the css files in the war directory

On 17 mai, 15:57, Itzik Yatom itzik...@hotmail.com wrote:
 Hi,

 I already use Intensively UIBinder with my GWT projects.
 Considering if to use also CSS resource or the regular external CSS
 files in my GWT projects.
 Since I work with a graphical designer that may need to change the
 styling while she gets from me initial results and improve them, she
 should have an access to the CSS, change some rules, save the result
 and send me fixes.

 Can I do it while using CSS resources?

 Thanks
 Itzik

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Extend

2010-05-17 Thread laurent
hello,

is it possible to resize a flextable.For example,if i have a column of
15 px size and i want with my mouse resizable.

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.



resize column of a flextable

2010-05-17 Thread laurent
hello,

is it possible to resize a flextable.For example,if i have a column of
15 px size and i want with my mouse resizable.

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: Integrating icefaces into gwt

2010-05-17 Thread mariyan nenchev
I think you should integrate gwt into your icefaces project :)

-- 
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: is it technically possible to use other languages with gwt?

2010-05-17 Thread mariyan nenchev
You may try pyjamas.You code with python.

-- 
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: regular expressions

2010-05-17 Thread mariyan nenchev
This should do it
public static String format(double value) {
return NumberFormat.getFormat(0.0).format(value);
}

-- 
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 access static variable on remoteService?

2010-05-17 Thread Eric


On May 15, 5:00 pm, BurstUser saurabhjo...@gmail.com wrote:
 Hi all,

 Using GWT, I'm trying to call two methods which exist in a
 RemoteService from my entrypoint class.
 I have two methods within my remoteService servlet, method A and
 method B.

 Method A returns an int and sets an arraylist.
 Method B returns the arraylist, myList.
 I'm assuming that a single callback is associated with a single
 servlet method? Is it possible to access the arraylist, which has been
 set from calling method A, using the callback?

In general, servlets should not hold any static non-constant data at
all.
Many people on many machines will browse to your web application,
and many of them might be executing the same service at once. Also,
you have no control over the threading. The Java container may create
many instances of your class and access them through many threads.
You did declare the list as a static variable, so the number of
objects
does not matter.  However, the threading does.  I supposes you could
use classes in java.util.concurrent, but you don't really want to do
that.

Just imagine what could happen with two users: User 1 calls method A,
and the list is set to list 1. User 2 calls method A, and the list is
set
to list 2. User 1 calls method B, and list 2 is returned, while list 1
would have been correct.

You could have method A return an appropriate key for your database,
and the B service have a method with signature ListItem items(Key
key)
where 'key' is what was returned by the method A. I've used a
specific
class instead of 'int' here.

Respectfully,
Eric Jablow

-- 
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: Synchronous Calls with RPC??

2010-05-17 Thread kozura
Many languages restrict what you can do when that thing is practically
never a good idea given their design model - Java doesn't let you
access pointers so developers can stick their scissors in the
proverbial pointer-arithmetic electrical outlet.  Even your issue had
nothing to do with the async nature of RPC, but rather with an error
popping up, and your solution was to wait for the RPC call to return
before allowing the browser to continue - a hack to solve your issue.
I've yet to see an example where sync is a good choice, much less a
requirement.  Just as the GUI interface reflects the asynchronous
nature of user interaction, so the GWT RPC interface reflects the
unreliable async nature of client-server communication; a synchronous
option simply does not match the model!

Here's where I disagree with the give them the choice argument.  If
GWT were to provide such a feature, new developers would use it (seems
much easier!), design large applications around it in their local dev
environment, and instead of learning from it when the deployed app
runs into problems, would demand new features to try to make that
programming model work.  It's not a smooth slope of ok now lets go
more advanced and switch from sync to async...retrofitting is hard
and ugly!  Instead GWT forces you to understand this issue up front,
when you can do a better clean design that fits the problem.

On May 17, 12:37 am, mmoossen mmoos...@gmail.com wrote:
 i completely agree with you Oliver!

 i said already that i think that sync-rpc is a really bad idea in this
 case. which was already addressed in detail by you and others.

 my point was against the spirit of the gwt team to do not give the
 developer the choice to use sync requests if he wants to.
 it is like never letting a child to cross the street alone instead of
 teaching him to watch out.

 what we need is better developers and the way to achieve that is to do
 mistakes and be willing to learn, and not a tool that tells you i do
 not allow you to do that because it *might* be a bad idea...

 regards,
 Michael


-- 
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 and telnet connections

2010-05-17 Thread kozura
Sure, no reason why not.  Client can just send user input to the
server which forwards it on to the telnet session.  You'd probably
need to implement a form of server push to send any output of the
telnet on to the client when it becomes available; look up server
push and/or Comet.

On May 17, 7:25 am, Łukasz P. bufec...@gmail.com wrote:
 I'm reading something about GWT-RPC now, and I wonder is it possible
 to make all the telnet connections on the server side and send the
 responses via GWT-RPC to the client side?

-- 
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: JPA + HIBERNATE+SPRING+GWT

2010-05-17 Thread aw4y
Hi,
i use JPA + GWT with toplink libraries (http://www.oracle.com/
technology/products/ias/toplink/index.html).
No need to use DTO if your entities are serializable and follow the
RPC requirements.

regards
Stefano

On 16 Mag, 15:19, soma Gurram ssgur...@gmail.com wrote:
 Hi Guys,

 We are in the process of building web application with JPA +
 HIBERNATE+SPRING+GWT. I am having difficulties integrating Hibernate And
 GWT.

 Can any one share there experiences and a best strategy that was successful
   adopted.

 I know that  we can use GILEAD or DOZER (to copy the model to dto ), are
 there any other approaches or libraries.

 Thanks
 Soma G

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Integrating icefaces into gwt

2010-05-17 Thread fomba collins
Do you mean it does not work the other way round?
   

--- On Mon, 5/17/10, mariyan nenchev nenchev.mari...@gmail.com wrote:

From: mariyan nenchev nenchev.mari...@gmail.com
Subject: Re: Integrating icefaces into gwt
To: google-web-toolkit@googlegroups.com
Date: Monday, May 17, 2010, 7:43 AM

I think you should integrate gwt into your icefaces project :)




-- 

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: How to access static variable on remoteService?

2010-05-17 Thread Saurabh
@blessedgeek - thanks for your detailed response!
Could you expand a little on what you mean by persistence repository where
the actual data would reside? Would this be along the lines of storing the
data in the session object?

Thanks!


On Mon, May 17, 2010 at 6:32 AM, Blessed Geek blessedg...@gmail.com wrote:

 Your question concerns the most basic principle of GWT RPC -
 How to pass various data types between server and client.

 I am jumping to unqualified conclusion the reason you chose to define
 the List static is probably because you are hoping that the static
 object could be shared between client and server. Thousands apologies
 if my presumption of your motivation is inaccurate.

 However, if my presumption is right, then you have to understand that
 the very reason RPC exists in GWT is because you cannot share objects
 or variables between client and server through plain old Java class
 visibility rules. The reasons being,
 - the Java code of client side is actually compiled into browser
 native code of Javascript,
 - as well as when two entities are separated by network and have not
 means of sharing memory, RPC is the traditional way to go (Read up on
 ONC-RPC or Microsoft SMB from wikipedia).

 You have to define a pair of matching server-client interfaces. If you
 used Google Plugin for Eclipse, it would help/compel you to ensure the
 pair of interfaces match each other.

 You should first define the server interface, to define what you
 expect the server methods to eat as arguments and then what you expect
 the server methods to return.

 For example, the following server's interface has three methods.
 //Server's interface
 @RemoteServiceRelativePath(bless)
 public interface BlessingService
 extends RemoteService {
  String getBlessing(String name);
  ListString getBlessingNames();
  MapString, String getBlessingMap();
 }

 Then the Google Plugin would hi-lite the missing client's interface
 and methods. You would click on the prompted recommended rectification
 for Eclipse to generate the client interface and methods for you.
 //Client's interface
 public interface BlessingServiceAsync {
  void getBlessing(
  String name,
  AsyncCallbackString callback);

  void getBlessingNames(
  AsyncCallbackListString callback);

  void getBlessingMap(
  AsyncCallbackMapString, String callback);
 }


 Now here would be your servlet code which implements to server's
 interface.

 Notice that you can get the server to return whatever objects to the
 client, as long as the object's class implements serializable.
 Serialization is like a shepherd marshalling a herd of sheep to
 squeeze them single file thro a rope bridge to the other side of the
 ravine. Once on the other side, the sheep gets to be deserialized back
 into their clanish hierarchy.

 I would like to recommend to you to replace the static objects with
 private methods, where the actual data would reside in a persistence
 repository capable of multiple access. Especially if you are doing
 this over GAE or some multi-server cloudish atmosphere.

 // Server code
 public class BlessingServiceServlet
 extends RemoteServiceServlet
 implements BlessingService {

  static public MapString, String blessingMap = doSomething();
  static public ListString blessingNames = listNames();

  public String getBlessing(String name){
return blessing is  + blessingMap.get(name);
  }

  @Override
  public ListString getBlessingNames() {
return blessingNames;
  }

  @Override
  public MapString, String getBlessingMap() {
return blessingMap;
  }
 }


 // Client code
 public class Z
 implements EntryPoint {

  private final BlessingServiceAsync blessingService =
GWT.create(BlessingService.class);

  private void getBlessingFromServer(String blessingName) {
blessingService.getBlessing(
  blessingName,
  new AsyncCallbackString() {
 public void onFailure(Throwable caught) {
   // Treat the RPC error
}

public void onSuccess(String blessing) {
  // Display blessing
}
  });
  }

  private void getBlessingNamesFromServer() {
blessingService.getBlessing(
  new AsyncCallbackListString() {
 public void onFailure(Throwable caught) {
   // Treat the RPC error
}

public void onSuccess(ListString blessingNames) {
  // Display blessing name list
}
  });
  }

  private void getBlessingMapFromServer() {
blessingService.getBlessing(
  new AsyncCallbackMapString, String() {
 public void onFailure(Throwable caught) {
   // Treat the RPC error
}

public void onSuccess(MapString, String blessingNames) {
  // Display blessing map
}
  });
  }
 }

 ~QED ( there might be typos in the examples)

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

Re: MVP, gwt-presenter + UIBinder + Gin

2010-05-17 Thread PhilBeaudoin
I think the key is not to write your views into UiBinder but rather to
use one UiBinder file for each of your views. Then you make your
presenters embed one another in the desired fashion. That's what I
understand from:
http://code.google.com/webtoolkit/articles/mvp-architecture-2.html

Many examples of the gwt-platform project use UiBinder within an MVP
architecture, you might be interested to check them out:
http://code.google.com/p/gwt-platform

Cheers,

   Philippe

On May 16, 2:45 pm, Chris christopher.burr...@gmail.com wrote:
 Hi All

 I'd like to use UIBinder to layout my page which is made of several
 Views. I'm kind of confused as to how to do this...

 For example, I'd like to inject my views straight into the UIBinder
 context, so I extend the xml declaration to be:

 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
         xmlns:g='urn:import:com.google.gwt.user.client.ui'
 xmlns:step=urn:import:com.tyndalehouse.step.web.client.view

 That gives me access to the View, and I can then use something like:
 g:DockLayoutPanel unit='EM'
   g:center
         step:VersionSelectorView ui:field=versionSelector /
   /g:center
   /g:west
 /g:DockLayoutPanel

 where VersionSelectorView is one of my views. At the moment, I'm using
 Gin to inject the Presenter via the constructor, and setting it as a
 field, that is provided:

 @UiField (provided = true)
 VersionSelectorView versionSelector;
 ...

 @Inject
 public StepView(final VersionSelectorPresenter versionSelector) {
 this.versionSelector = versionSelector;

 }

 Now that's all very well... but what if the view above has many many
 composites that I want to use in the UIBinder declarative XML? Also it
 doesn't feel to be like it's best practice to inject the Presenter
 into the View. Surely, it shouldn't know about it all... And I should
 either be injecting is as VersionSelectorPresenter.Display or
 VersionSelectorView.

 However using gwt-dispatch, when I inject it like that, the View is
 provided, but it's not bound to any presenter...

 So basically, I'd like to know what the best practice is/would be?
 Should I be injecting all the providers into the main Presenter (in my
 case StepPresenter), and somehow setting them all onto the view? that
 makes a lot of setters, but at least I get rid of the presenters from
 the Views

 I read somewhere something about injecting providers for lazy
 initialisation. Sounds good, but I'm guessing I've still got lots of
 them to inject...

 Perhaps, that's not how I'm supposed to use UIBinder, but then I still
 seem to have a similar issue with the way to get lots of views
 injected into one Parent View.

 Any ideas anyone?
 Cheers
 Chris

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT execution flow

2010-05-17 Thread Michael W
Sripathi,
Thanks for the comments.
I am not familiar with Google Wave, but I will look at it to see how
Google Wave can solve this problem easier.

Yes, for this round, I do combine 1) and 2) and use Akamai edge
cache.
That will 1) reduce the traffic to our app server, 2) enable the user
to get response quickly from near by Akamai edge server.

I will see the result before approaching combination of the step 3.
Later on, I more like to use Google App engine to serve the user
request.


On May 16, 1:31 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 You are essentially including the content of nocache.js in the host html
 file, and therefore combine (1) and (2) in your original question. This
 works, and as Thomas pointed in this
 posthttp://groups.google.com/group/google-web-toolkit/msg/9676c52a34a064c6,
 its what google wave does.

 But you DON'T want to combine step 3. You lose the ability to set aggressive
 cache headers. Besides, the same URL will return different content based on
 the browser - so you'd have to do some weird Akamai configuration. You can
 set the Vary : User Agent header - but that would give even worse
 performance, because the 6 supported browsers have thousands of user-agent
 variations.

 --Sri

 On 16 May 2010 22:31, Michael W mwang_2...@yahoo.com wrote:



  I provide a work around to load nocache.js on the first request.
  See enhancement of
 http://code.google.com/p/google-web-toolkit/issues/detail?id=4948

  It will satisfy our needs currently as we use Akamai edge server to
  cache .the cache files (user gets cache file from nearest server of
  Akamai )

  On May 8, 1:53 pm, Michael W mwang_2...@yahoo.com wrote:
   Thank for the response of Sripathi  and Chris,

   We have used firebug page speed, YSlow and Chrome Speed Tracer, GWT
   debug panel.

   Few changed already applied and few are in the pipeline

   The actions have been done so far for the performance:
   1. Used Akamai.com content cache implementation to cache the result of
   RPC, images, Jascript and css files, so the user can get content from
   nearest Akamai servers.
   2. Group bunch of third party Javascript(s) into one server call.
   3. Bind several requests into one RPC call (dayContentService.rpc)
   4. Multi thread in server side to fetch result for
   dayContentService.rpc
   5. Changed the execution flow to load/execute GWT module first and
   then load/execure third party Javascript(s)
   6. Applied ClientBundle for the images loaded from GWT module. (you
   can see it from logo, calendar, Find The Hotel images)
   7.  Defer to load Google map key on demand
   8.  Code splitting to reduce home page size.
   9.  Gzip the response.

   Changes in the pipeline:
   1, Like Sripathi point it out, we will add expires header to images
   (most images coming from the result of RPC, so it is hard for us to
   use ClientBundle with GWT)
   2. Add additional image domain for browser to parallel to load images.
   Current we only have image3, we will add image4.

   The website serves the user around the global, the challenge we are
   facing with:
   Most user's response time is fine, but some complain that the site is
   slow.  Some region such as China reports that the page is slow to
   download.

   That is the main reason I start to look at the initial load.

   Chris,
   I am interesting in the 'server-side selection' approach.  Let me know
   if you have any new progress on it.

   I am also thinking to use App engine to load GWT module, so user can
   get initial load from the server near by.  As far as you know, does
   anyone successfully use App engine to load GWT.

   On May 7, 6:47 pm, Chris Conroy con...@google.com wrote:

On Thu, May 6, 2010 at 11:05 PM, Sripathi Krishnan

sripathikrish...@gmail.com wrote:
 Technically, in the very first request, the server already knows
  user
 browsers' type, is that feasible to:
   combine 1), 2) and 3) together or
   combine 1) and 2) together or
   some other consideration

 You are right, this is possible. See this discussion thread -

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 But, before going down that optimization path, there are several
  other
 low-hanging-fruits to speed up your website. I looked at your website
  via
 firebug, and the following issues come to my mind -

 *.cache.xxx file don't have a 'far into the future' expires header.
 Several (30 or so) images get downloaded at startup. None of these
  images
 have aggressive cache settings. You are not using GWTs ImageBundles
  to
 potentially inline these images.
 You have atleast 2 RPC calls at startup (getDayContent and
 getTargettedContent).The response of these calls is known ahead of
  time
 (since they don't depend on any user input), and hence you could
  potentially
 inline their response in the html and then use a Dictionary to read
  it in
 onModuleLoad. Or 

Re: Maven + compileReport

2010-05-17 Thread Brian Reilly
The GWT maven plugin actually generates compile reports by default
when it detects that you're using GWT 2.0:

http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#soyc

The files are dropped in an extra directory for files that aren't
for deployment:

http://mojo.codehaus.org/gwt-maven-plugin/compile-mojo.html#extra

If you don't change the default build directory, that'll put the
compile report someplace like target/extra/module_name/soycReport/
compile-report/.

-Brian

On May 10, 8:09 am, guigui guillaume.le...@gmail.com wrote:
 I use Maven 2, and I want to use the option compileReport.

 But I don't know how to execute with Maven.

 Can you help me ?

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Tutorial Request: Glassfish / Eclipse / GWT - With Hot Deploy

2010-05-17 Thread cretz
Looks like you can deploy as normal (I use ANT's sync after my build)
then just touch a top-level .reload file in your WAR.

On May 15, 1:36 pm, CodeMonkey chriscaspane...@gmail.com wrote:
 Hey guys,

 I'm new to this forum and was wondering if anyone had a good tutorial
 on how to setup a new project in Eclipse that uses Glassfish v3 and
 GWT with Hot Deploy.

 Any links or learning tools would be appreciated.

 Thanks,

 Chris

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Load different html

2010-05-17 Thread cretz
You can do many things here. I personally have a servlet mapped to
index.html that can serve several pages based on several server-side.
This even works well in development mode (need it for my openid
provider). Otherwise, you can make separate modules sharing code or
just use the same module and have something in the page itself
signifying what page it is and have your GWT client-side conditions
operate on that. Then just redirect/link to your files as normal.

On May 16, 6:30 pm, Ho Jimmy jimmyyl...@gmail.com wrote:
 Hi

 When the GWT application is started, an html file is specified and the GWT
 modules are loaded and located according to the div id of that html file. If
 the application needs to go to another state with another html file after
 the user clicking a button or link, how can I redirect the application to
 the second html file and load widgets according to the second html file?

 Thanks
 Jimmy

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JPA + HIBERNATE+SPRING+GWT

2010-05-17 Thread Frederic Conrotte
So you mean with EclipseLink JPA you don't have any serialisation
issue as with Hibernate ?

See this reply from the creator of Gilead as well:
http://sourceforge.net/projects/gilead/forums/forum/868076/topic/3712153

Which version of EclipseLink are you using ?

On 17 mai, 17:12, aw4y noneoft...@gmail.com wrote:
 Hi,
 i use JPA + GWT with toplink libraries (http://www.oracle.com/
 technology/products/ias/toplink/index.html).
 No need to use DTO if your entities are serializable and follow the
 RPC requirements.

 regards
 Stefano

 On 16 Mag, 15:19, soma Gurram ssgur...@gmail.com wrote:



  Hi Guys,

  We are in the process of building web application with JPA +
  HIBERNATE+SPRING+GWT. I am having difficulties integrating Hibernate And
  GWT.

  Can any one share there experiences and a best strategy that was successful
    adopted.

  I know that  we can use GILEAD or DOZER (to copy the model to dto ), are
  there any other approaches or libraries.

  Thanks
  Soma G

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Vaibhav
Thanks much Tobias and all,

height:auto; worked.

Vaibhav.

On May 17, 4:40 am, Tobias Herrmann t.herrm...@alkacon.com wrote:
 Hi there,

 I have to disagree with Thomas. You only need to be aware that the
 @sprite will set these dimensions. You can override this by setting the
 height or width yourself in the CSS rule where the @sprite is used.

 Like this:
 @sprite div.imageClass{
     gwt-image: yourImage;
     height: auto;
     width: 10px;

 }

 In this case, no other height and width properties will be set by gwt.

 Doing it this way, you can still take advantage of the improved
 performance the gwt sprite mechanism provides.

 Greetings, Tobias

 Zak schrieb:



  Thanks, that clears things up for me (and I hope Vaibhav as well). I
  havent made the UiBinder/ClientBundle jump yet, but in reading the
  documentation I thought that might be an issue. Good to know
  DataResource can fill that need.

  On May 16, 5:31 pm, Thomas Broyer t.bro...@gmail.com wrote:

  On 16 mai, 21:42, Zak zakn...@gmail.com wrote:

  Thomas, does this mean that @sprite should only be used when it's okay
  for the element to be constrained to the same dimensions (or just
  height or width in the case of repeated backgrounds) as the image? For

  Yes, just as if you used an Image (withou setUrl or an ImageBundle)

  example, if we went with Stefan's proposal of overriding the height
  rule (let's say height: auto), would the other images in the image
  strip become visible?

  They could (in IE6/7, and/or depending on ClientBundle configuration/
  deferred-binding properties)

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Loading text alongside image inside a ComboBox

2010-05-17 Thread fomba collins
Hello, it may be simple but I don´t know how to do it. I want to put the names 
of countries alongside their flags inside a ComboBox. Can someone help me on 
how to do it?
reggards



  

-- 
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: Loading text alongside image inside a ComboBox

2010-05-17 Thread Jim Douglas
There's no GWT widget called ComboBox.  Possibly you're using some
other widget library (and should ask your question there?)

If you meant the GWT ListBox, then no, it's not possible.

http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/ListBox.html

On May 17, 11:44 am, fomba collins fomba_coll...@yahoo.com wrote:
 Hello, it may be simple but I don´t know how to do it. I want to put the 
 names of countries alongside their flags inside a ComboBox. Can someone help 
 me on how to do it?
 reggards

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Load different html

2010-05-17 Thread Ho Jimmy
Hi Chad

Thank you very much for your reply. Can you please provide some more details
like one or two lines of code? For example,
1 The Entry module load login widgets according to Main.html.
2 After the authentication success, the cookie is sent to the client
browser.
3 A new html file called Profile.html should be the first page to load
widgets after login.
As a result, now the Root.get is referring to Profile.html instead of
Main.html. How can I do this transition?

Thanks
Jimmy


2010/5/17 cretz chad.r...@gmail.com

 You can do many things here. I personally have a servlet mapped to
 index.html that can serve several pages based on several server-side.
 This even works well in development mode (need it for my openid
 provider). Otherwise, you can make separate modules sharing code or
 just use the same module and have something in the page itself
 signifying what page it is and have your GWT client-side conditions
 operate on that. Then just redirect/link to your files as normal.

 On May 16, 6:30 pm, Ho Jimmy jimmyyl...@gmail.com wrote:
  Hi
 
  When the GWT application is started, an html file is specified and the
 GWT
  modules are loaded and located according to the div id of that html file.
 If
  the application needs to go to another state with another html file after
  the user clicking a button or link, how can I redirect the application to
  the second html file and load widgets according to the second html file?
 
  Thanks
  Jimmy
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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: Classname table in generated JS

2010-05-17 Thread mmoossen
hi Olivier, Sri!

Thanks for the feedback, i had briefly read something about that, but
i was expecting that the gwt-compiler is smart enough to check that i
am not using any kind reflection methods, so it can wipe that code as
*usual*... i suppose i was wrong...

and any hint about the second point? i mean the css class name
table...

thanks again
Michael

On May 17, 4:09 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
  Could somebody please explain to me why this is needed?

 AFAIK, this wasn't always the case. Issue
 370http://code.google.com/p/google-web-toolkit/issues/detail?id=370
 has
 some information on why this was introduced. The class name are required so
 that you can use the getClass() method on an object.

 As Olivier pointed out, there is a way to disable this behavior. All google
 websites I have seen disable class names. You can take a look at orkut or
 wave for example. I believe it isn't being done by default because it could
 break some websites that depend on classnames. If you don't depend on
 getClass(), then you could benefit from the optimization that
 -XdisableClassMetada provides.

 That said, there are other ways to extract out information about classes and
 methods. For example, it is possible to extract the complete signature of a
 RPC method and reverse engineer the RemoteService interface, such that you
 can use a library like
 syncproxyhttp://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/to
 make RPC calls to any server. So,  treat
 -XdisableClassMetada as a way to improve performance, and not as a way to
 completely obfuscate all class and method names.

 --Sri

 On 17 May 2010 18:15, Olivier Monaco olivier.mon...@free.fr wrote:



  Hi,

  Maybe it's about this :
 http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptim...

  Olivier

  On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
   Dear all!

   i just found this:http://degwt.googlecode.com

   and i was really surprised to actually find a classname table in the
   generated production js code.

   i know that the rpc classes and methods are used (which i do not like
   very much, but that is another story).

   but i do not see any need for a general classname table, i mean every
   single class even enums are listed there.
   additionally there seems to be also a kind of lookup table for style
   names!!?

   could somebody please explain to me why this is needed?

   i mean all this data is taking about 180Kb of 500Kb of my production
   cache files, and i would really like to know what is the idea behind
   that...

   Thanks
   Michael

   --
   You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com
  .
   To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
   For more options, visit this group athttp://
  groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.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 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Classname table in generated JS

2010-05-17 Thread mmoossen
Hi again!

btw, i checked the synproxy project, which looks interesting but as i
understood it is 100% server-side where to use reflection is ok.

thanks for sharing
Michael

On May 17, 4:09 pm, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
  Could somebody please explain to me why this is needed?

 AFAIK, this wasn't always the case. Issue
 370http://code.google.com/p/google-web-toolkit/issues/detail?id=370
 has
 some information on why this was introduced. The class name are required so
 that you can use the getClass() method on an object.

 As Olivier pointed out, there is a way to disable this behavior. All google
 websites I have seen disable class names. You can take a look at orkut or
 wave for example. I believe it isn't being done by default because it could
 break some websites that depend on classnames. If you don't depend on
 getClass(), then you could benefit from the optimization that
 -XdisableClassMetada provides.

 That said, there are other ways to extract out information about classes and
 methods. For example, it is possible to extract the complete signature of a
 RPC method and reverse engineer the RemoteService interface, such that you
 can use a library like
 syncproxyhttp://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/to
 make RPC calls to any server. So,  treat
 -XdisableClassMetada as a way to improve performance, and not as a way to
 completely obfuscate all class and method names.

 --Sri

 On 17 May 2010 18:15, Olivier Monaco olivier.mon...@free.fr wrote:



  Hi,

  Maybe it's about this :
 http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptim...

  Olivier

  On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
   Dear all!

   i just found this:http://degwt.googlecode.com

   and i was really surprised to actually find a classname table in the
   generated production js code.

   i know that the rpc classes and methods are used (which i do not like
   very much, but that is another story).

   but i do not see any need for a general classname table, i mean every
   single class even enums are listed there.
   additionally there seems to be also a kind of lookup table for style
   names!!?

   could somebody please explain to me why this is needed?

   i mean all this data is taking about 180Kb of 500Kb of my production
   cache files, and i would really like to know what is the idea behind
   that...

   Thanks
   Michael

   --
   You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
   To post to this group, send email to google-web-toolkit@googlegroups.com
  .
   To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
   For more options, visit this group athttp://
  groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.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 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Classname table in generated JS

2010-05-17 Thread Sripathi Krishnan

 ... it is 100% server-side where to use reflection is ok.

Correct. I was only trying to say its worthless to think of obfuscation as a
security measure, because there are several ways to bypass it, syncproxy
being one of them. My point was that this particular feature is a
performance issue and in no way a security issue.

--Sri


On 18 May 2010 01:35, mmoossen mmoos...@gmail.com wrote:

 Hi again!

 btw, i checked the synproxy project, which looks interesting but as i
 understood it is 100% server-side where to use reflection is ok.

 thanks for sharing
 Michael

 On May 17, 4:09 pm, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:
   Could somebody please explain to me why this is needed?
 
  AFAIK, this wasn't always the case. Issue
  370http://code.google.com/p/google-web-toolkit/issues/detail?id=370
  has
  some information on why this was introduced. The class name are required
 so
  that you can use the getClass() method on an object.
 
  As Olivier pointed out, there is a way to disable this behavior. All
 google
  websites I have seen disable class names. You can take a look at orkut or
  wave for example. I believe it isn't being done by default because it
 could
  break some websites that depend on classnames. If you don't depend on
  getClass(), then you could benefit from the optimization that
  -XdisableClassMetada provides.
 
  That said, there are other ways to extract out information about classes
 and
  methods. For example, it is possible to extract the complete signature of
 a
  RPC method and reverse engineer the RemoteService interface, such that
 you
  can use a library like
  syncproxy
 http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/to
  make RPC calls to any server. So,  treat
  -XdisableClassMetada as a way to improve performance, and not as a way to
  completely obfuscate all class and method names.
 
  --Sri
 
  On 17 May 2010 18:15, Olivier Monaco olivier.mon...@free.fr wrote:
 
 
 
   Hi,
 
   Maybe it's about this :
  http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptim.
 ..
 
   Olivier
 
   On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
Dear all!
 
i just found this:http://degwt.googlecode.com
 
and i was really surprised to actually find a classname table in the
generated production js code.
 
i know that the rpc classes and methods are used (which i do not like
very much, but that is another story).
 
but i do not see any need for a general classname table, i mean every
single class even enums are listed there.
additionally there seems to be also a kind of lookup table for style
names!!?
 
could somebody please explain to me why this is needed?
 
i mean all this data is taking about 180Kb of 500Kb of my production
cache files, and i would really like to know what is the idea behind
that...
 
Thanks
Michael
 
--
You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
To post to this group, send email to
 google-web-toolkit@googlegroups.com
   .
To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
For more options, visit this group athttp://
   groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.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-toolkit@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 athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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 

GWT Compiler 2.0 Changes

2010-05-17 Thread Adam
Does anyone know if the GWT 2.0 Compiler has become more strict or
made some breaking changes?  I've recently attempted to update from
GWT 1.7.1 to GWT 2.0.3 and we're getting tons of messages stating is
not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' or
'java.io.Serializable' nor does it have a custom field serializer.
Switching which version of the GWT SDK makes the different between our
several GWT projects compiling in ANT or not.

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



PushButton hover not always removed on mouse out

2010-05-17 Thread ChrisK
I'm using GWT 2.0.3 and using UiBinder am adding a composite to the
RootPanel. The composite contains some PushButtons which I am defining
fully using UiBinder with g:upFace, g:upHoveringFace and g:downFace.

The issue is that it's very easy to fool all of these buttons just
by moving the mouse quickly across them - they stay in the hover state
and even have the gwt-PushButton-up-hovering CSS class attached.

If I replace a button with an Image and add my own code for mouse
over, mouse out and mouse up it works absolutely fine and I'm not able
to fool the fake button. Obviously though I'd like to use the built
in widgets as they provide at lot of added extras such as
accessibility (amongst other things).

Looking at the source code for CustomButton which PushButton extends,
I can't understand line 623-631 (in current trunk but has been there
for a while). I think there are more situations where setHovering
should be set to false but I may be misunderstanding the isOrHasChild/
eventGetTarget methods.

case Event.ONMOUSEOUT:
Element to = DOM.eventGetToElement(event);
if (DOM.isOrHasChild(getElement(), DOM.eventGetTarget(event))
 (to == null || !DOM.isOrHasChild(getElement(), to))) {
  if (isCapturing) {
onClickCancel();
  }
  setHovering(false);
}
break;

-- 
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: Synchronous Calls with RPC??

2010-05-17 Thread mmoossen
i still see many people trying actually to use async calls only
because they do not have any choice and without understanding the idea
(and trying to fit async calls in sync design)..
i think that if beginners could start with sync requests, and see the
problems with them, they will better learn and appreciate async
requests.
for me the best would that GWT gives you the possibility to use sync
calls but of course with big enough warnings. as javadocs like this:
DO not use this unless you REALLY know what you are doing. the
recommended way is to use async calls + a link to a good online
explanation, etc...

and btw thanks to everyone for discussing, i think that discussing
here this kind of issues is just the best for everyone ;)

regards,
Michael

On May 17, 4:55 pm, kozura koz...@gmail.com wrote:
 Many languages restrict what you can do when that thing is practically
 never a good idea given their design model - Java doesn't let you
 access pointers so developers can stick their scissors in the
 proverbial pointer-arithmetic electrical outlet.  Even your issue had
 nothing to do with the async nature of RPC, but rather with an error
 popping up, and your solution was to wait for the RPC call to return
 before allowing the browser to continue - a hack to solve your issue.
 I've yet to see an example where sync is a good choice, much less a
 requirement.  Just as the GUI interface reflects the asynchronous
 nature of user interaction, so the GWT RPC interface reflects the
 unreliable async nature of client-server communication; a synchronous
 option simply does not match the model!

 Here's where I disagree with the give them the choice argument.  If
 GWT were to provide such a feature, new developers would use it (seems
 much easier!), design large applications around it in their local dev
 environment, and instead of learning from it when the deployed app
 runs into problems, would demand new features to try to make that
 programming model work.  It's not a smooth slope of ok now lets go
 more advanced and switch from sync to async...retrofitting is hard
 and ugly!  Instead GWT forces you to understand this issue up front,
 when you can do a better clean design that fits the problem.

 On May 17, 12:37 am, mmoossen mmoos...@gmail.com wrote:



  i completely agree with you Oliver!

  i said already that i think that sync-rpc is a really bad idea in this
  case. which was already addressed in detail by you and others.

  my point was against the spirit of the gwt team to do not give the
  developer the choice to use sync requests if he wants to.
  it is like never letting a child to cross the street alone instead of
  teaching him to watch out.

  what we need is better developers and the way to achieve that is to do
  mistakes and be willing to learn, and not a tool that tells you i do
  not allow you to do that because it *might* be a bad idea...

  regards,
  Michael

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JPA + HIBERNATE+SPRING+GWT

2010-05-17 Thread Frederic Conrotte
After discussion with aw4y EclipseLink weaving was not activated on
his setup using the Toplink agent, therefore no issue couldn't have
happened on the client side.

See this link for more info:
http://wiki.eclipse.org/Introduction_to_Mappings_%28ELUG%29#Indirection.2C_Serialization.2C_and_Detachment

Code weaving is active by default in Hibernate, that's where Gilead is
useful.

On 17 mai, 20:07, Frederic Conrotte frederic.conro...@gmail.com
wrote:
 So you mean with EclipseLink JPA you don't have any serialisation
 issue as with Hibernate ?

 See this reply from the creator of Gilead as 
 well:http://sourceforge.net/projects/gilead/forums/forum/868076/topic/3712153

 Which version of EclipseLink are you using ?

 On 17 mai, 17:12, aw4y noneoft...@gmail.com wrote:



  Hi,
  i use JPA + GWT with toplink libraries (http://www.oracle.com/
  technology/products/ias/toplink/index.html).
  No need to use DTO if your entities are serializable and follow the
  RPC requirements.

  regards
  Stefano

  On 16 Mag, 15:19, soma Gurram ssgur...@gmail.com wrote:

   Hi Guys,

   We are in the process of building web application with JPA +
   HIBERNATE+SPRING+GWT. I am having difficulties integrating Hibernate And
   GWT.

   Can any one share there experiences and a best strategy that was 
   successful
     adopted.

   I know that  we can use GILEAD or DOZER (to copy the model to dto ), are
   there any other approaches or libraries.

   Thanks
   Soma G

   --
   You received this message because you are subscribed to the Google Groups 
   Google Web Toolkit group.
   To post to this group, send email to google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to 
   google-web-toolkit+unsubscr...@googlegroups.com.
   For more options, visit this group 
   athttp://groups.google.com/group/google-web-toolkit?hl=en.

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Load different html

2010-05-17 Thread Frederic Conrotte
Quite interesting indeed.

I personally have a servlet mapped to index.html that can serve several pages 
based on several server-side.
 This even works well in development mode (need it for my openid provider).

Could you give more details on this solution?

On 17 mai, 19:32, cretz chad.r...@gmail.com wrote:
 You can do many things here. I personally have a servlet mapped to
 index.html that can serve several pages based on several server-side.
 This even works well in development mode (need it for my openid
 provider). Otherwise, you can make separate modules sharing code or
 just use the same module and have something in the page itself
 signifying what page it is and have your GWT client-side conditions
 operate on that. Then just redirect/link to your files as normal.

 On May 16, 6:30 pm, Ho Jimmy jimmyyl...@gmail.com wrote:



  Hi

  When the GWT application is started, an html file is specified and the GWT
  modules are loaded and located according to the div id of that html file. If
  the application needs to go to another state with another html file after
  the user clicking a button or link, how can I redirect the application to
  the second html file and load widgets according to the second html file?

  Thanks
  Jimmy

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Handling Browser Events - F5

2010-05-17 Thread Mike S. Matsumoto
How do I know if the browser was reloaded with F5 or ctrl + r on mozilla,
etc etc?



On Mon, May 17, 2010 at 5:26 PM, Sripathi Krishnan 
sripathi.krish...@gmail.com wrote:

 ... it is 100% server-side where to use reflection is ok.

 Correct. I was only trying to say its worthless to think of obfuscation as
 a security measure, because there are several ways to bypass it, syncproxy
 being one of them. My point was that this particular feature is a
 performance issue and in no way a security issue.

 --Sri



 On 18 May 2010 01:35, mmoossen mmoos...@gmail.com wrote:

 Hi again!

 btw, i checked the synproxy project, which looks interesting but as i
 understood it is 100% server-side where to use reflection is ok.

 thanks for sharing
 Michael

 On May 17, 4:09 pm, Sripathi Krishnan sripathi.krish...@gmail.com
 wrote:
   Could somebody please explain to me why this is needed?
 
  AFAIK, this wasn't always the case. Issue
  370http://code.google.com/p/google-web-toolkit/issues/detail?id=370
  has
  some information on why this was introduced. The class name are required
 so
  that you can use the getClass() method on an object.
 
  As Olivier pointed out, there is a way to disable this behavior. All
 google
  websites I have seen disable class names. You can take a look at orkut
 or
  wave for example. I believe it isn't being done by default because it
 could
  break some websites that depend on classnames. If you don't depend on
  getClass(), then you could benefit from the optimization that
  -XdisableClassMetada provides.
 
  That said, there are other ways to extract out information about classes
 and
  methods. For example, it is possible to extract the complete signature
 of a
  RPC method and reverse engineer the RemoteService interface, such that
 you
  can use a library like
  syncproxy
 http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/to
  make RPC calls to any server. So,  treat
  -XdisableClassMetada as a way to improve performance, and not as a way
 to
  completely obfuscate all class and method names.
 
  --Sri
 
  On 17 May 2010 18:15, Olivier Monaco olivier.mon...@free.fr wrote:
 
 
 
   Hi,
 
   Maybe it's about this :
  http://code.google.com/p/google-web-toolkit/wiki/NoClassMetadataOptim.
 ..
 
   Olivier
 
   On 17 mai, 12:18, mmoossen mmoos...@gmail.com wrote:
Dear all!
 
i just found this:http://degwt.googlecode.com
 
and i was really surprised to actually find a classname table in the
generated production js code.
 
i know that the rpc classes and methods are used (which i do not
 like
very much, but that is another story).
 
but i do not see any need for a general classname table, i mean
 every
single class even enums are listed there.
additionally there seems to be also a kind of lookup table for style
names!!?
 
could somebody please explain to me why this is needed?
 
i mean all this data is taking about 180Kb of 500Kb of my production
cache files, and i would really like to know what is the idea behind
that...
 
Thanks
Michael
 
--
You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
To post to this group, send email to
 google-web-toolkit@googlegroups.com
   .
To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 google-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%252bunsubscr...@googlegroups.com
 
   .
For more options, visit this group athttp://
   groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.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 athttp://
 groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 .
 For more options, visit this 

Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Thomas Broyer


On 17 mai, 10:40, Tobias Herrmann t.herrm...@alkacon.com wrote:
 Hi there,

 I have to disagree with Thomas. You only need to be aware that the
 @sprite will set these dimensions. You can override this by setting the
 height or width yourself in the CSS rule where the @sprite is used.

 Like this:
 @sprite div.imageClass{
     gwt-image: yourImage;
     height: auto;
     width: 10px;

 }

 In this case, no other height and width properties will be set by gwt.

 Doing it this way, you can still take advantage of the improved
 performance the gwt sprite mechanism provides.

...but in IE6/7 you might see other images from the sprite
image (other browsers all use data: URLs, unless you tell them to not
inline the resources)

-- 
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, gwt-presenter + UIBinder + Gin

2010-05-17 Thread Tristan
Hey Chris,

Take a look here for one of the ways of doing this: 
http://code.google.com/p/handlebars/

The view composition would be done in bindView() method in the
Presenter (it's in the interface, none of the default presenters
implement it in the package).. it usually looks like:

@Override
public void bindView() {
 
getView().setOneOfMyChildViews(getChildPresenters().get(MyChildPresenter.name).makeView().createAndBind());
}

Haven't seen gwt-platform before. Looks interesting...

On May 17, 10:30 am, PhilBeaudoin philippe.beaud...@gmail.com wrote:
 I think the key is not to write your views into UiBinder but rather to
 use one UiBinder file for each of your views. Then you make your
 presenters embed one another in the desired fashion. That's what I
 understand 
 from:http://code.google.com/webtoolkit/articles/mvp-architecture-2.html

 Many examples of the gwt-platform project use UiBinder within an MVP
 architecture, you might be interested to check them 
 out:http://code.google.com/p/gwt-platform

 Cheers,

    Philippe

 On May 16, 2:45 pm, Chris christopher.burr...@gmail.com wrote:





  Hi All

  I'd like to use UIBinder to layout my page which is made of several
  Views. I'm kind of confused as to how to do this...

  For example, I'd like to inject my views straight into the UIBinder
  context, so I extend the xml declaration to be:

  ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
          xmlns:g='urn:import:com.google.gwt.user.client.ui'
  xmlns:step=urn:import:com.tyndalehouse.step.web.client.view

  That gives me access to the View, and I can then use something like:
  g:DockLayoutPanel unit='EM'
    g:center
          step:VersionSelectorView ui:field=versionSelector /
    /g:center
    /g:west
  /g:DockLayoutPanel

  where VersionSelectorView is one of my views. At the moment, I'm using
  Gin to inject the Presenter via the constructor, and setting it as a
  field, that is provided:

  @UiField (provided = true)
  VersionSelectorView versionSelector;
  ...

  @Inject
  public StepView(final VersionSelectorPresenter versionSelector) {
  this.versionSelector = versionSelector;

  }

  Now that's all very well... but what if the view above has many many
  composites that I want to use in the UIBinder declarative XML? Also it
  doesn't feel to be like it's best practice to inject the Presenter
  into the View. Surely, it shouldn't know about it all... And I should
  either be injecting is as VersionSelectorPresenter.Display or
  VersionSelectorView.

  However using gwt-dispatch, when I inject it like that, the View is
  provided, but it's not bound to any presenter...

  So basically, I'd like to know what the best practice is/would be?
  Should I be injecting all the providers into the main Presenter (in my
  case StepPresenter), and somehow setting them all onto the view? that
  makes a lot of setters, but at least I get rid of the presenters from
  the Views

  I read somewhere something about injecting providers for lazy
  initialisation. Sounds good, but I'm guessing I've still got lots of
  them to inject...

  Perhaps, that's not how I'm supposed to use UIBinder, but then I still
  seem to have a similar issue with the way to get lots of views
  injected into one Parent View.

  Any ideas anyone?
  Cheers
  Chris

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Sprite adds height attribute in the style class

2010-05-17 Thread Zak
Because IE6/7 does not support the background-clip css property

On May 17, 6:28 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 17 mai, 10:40, Tobias Herrmann t.herrm...@alkacon.com wrote:



  Hi there,

  I have to disagree with Thomas. You only need to be aware that the
  @sprite will set these dimensions. You can override this by setting the
  height or width yourself in the CSS rule where the @sprite is used.

  Like this:
  @sprite div.imageClass{
      gwt-image: yourImage;
      height: auto;
      width: 10px;

  }

  In this case, no other height and width properties will be set by gwt.

  Doing it this way, you can still take advantage of the improved
  performance the gwt sprite mechanism provides.

 ...but in IE6/7 you might see other images from the sprite
 image (other browsers all use data: URLs, unless you tell them to not
 inline the resources)

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: regular expressions

2010-05-17 Thread Tom Davies


On May 18, 12:20 am, laurent bagno_laur...@hotmail.com wrote:
 i want that maximum one figure after the dot.For example, i've
 123.89 , with formatting : 123.8

NumberFormat nf = NumberFormat.getFormat(#.0);
String s1 = nf.format(123.45); // 123.5
String s2 = nf.format(123); // 123.0
String s3 = nf.format(0.45); // .5

-- 
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: Tutorial Request: Glassfish / Eclipse / GWT - With Hot Deploy

2010-05-17 Thread CodeMonkey
Hey Cretz,

Thanks for the response.  I kind of have this working.  I created a
Dynamic Web Project in Eclipse, then went into the Project
Properties, and added the Google Web Tool Kit.  After that I noticed
it would hot deploy with the EAR file (WAR inside the EAR) if and ONLY
IF I hit the Complie Button onthe GWT Toolbar.  This really isn't that
ideal.  When working with JSF 2.0 and RichFaces the javascript didn't
need to really compile.  By the nature of design the GWT framework
needs to compile JS code based of of written Java code; which takes a
little bit of time.  However, this is why GWT has it's own
Development Mode.  I can crank up the Development Mode and run real
time with hot deploy on the built in Jetty Server.  Now that being
said; I was wondering if there is a way to run the development mode
ON the Glassfish v3 container without having to click the Compile
button on the Eclipse GWT Toolbar?

Thanks,
Chris


On May 17, 1:27 pm, cretz chad.r...@gmail.com wrote:
 Looks like you can deploy as normal (I use ANT's sync after my build)
 then just touch a top-level .reload file in your WAR.

 On May 15, 1:36 pm, CodeMonkey chriscaspane...@gmail.com wrote:





  Hey guys,

  I'm new to this forum and was wondering if anyone had a good tutorial
  on how to setup a new project in Eclipse that uses Glassfish v3 and
  GWT with Hot Deploy.

  Any links or learning tools would be appreciated.

  Thanks,

  Chris

  --
  You received this message because you are subscribed to the Google Groups 
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-web-toolkit+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-web-toolkit?hl=en.

 --
 You received this message because you are subscribed to the Google Groups 
 Google Web Toolkit group.
 To post to this group, send email to google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com.
 For more options, visit this group 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



[gwt-contrib] TextField does not get keyboard events after using a PopupPanel

2010-05-17 Thread stuckagain
People,

I reported a new issue on GWT in IE (6/7/8) where I no longer get
keyboard events when closing down a PopupPanel by clicking on a
textfiel.

In case somebody is bored and wants to fix it ? I looked through the
code, but I don't quite see where the problem might be coming from.

http://code.google.com/p/google-web-toolkit/issues/detail?id=4938sort=-id%20-typecolspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Stars

David

-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r8166 committed - Add the final GPE bits and sdkbundles to the 2.1.0.M1 update site.

2010-05-17 Thread codesite-noreply

Revision: 8166
Author: jasonpar...@google.com
Date: Mon May 17 06:56:55 2010
Log: Add the final GPE bits and sdkbundles to the 2.1.0.M1 update site.
http://code.google.com/p/google-web-toolkit/source/detail?r=8166

Added:
  
/2.1.0.M1/eclipse/plugin/features/com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.4_1.3.4.v201005161043.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.appengine.eclipse.sdkbundle.1.3.4_1.3.4.v201005161043.jar

Deleted:
  
/2.1.0.M1/eclipse/plugin/features/com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.3_1.3.3.v201005160351.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.appengine.eclipse.sdkbundle.1.3.3_1.3.3.v201005160351.jar

Modified:
  
/2.1.0.M1/eclipse/plugin/features/com.google.gdt.eclipse.suite.e35.feature_1.4.0.m1.jar
  
/2.1.0.M1/eclipse/plugin/features/com.google.gwt.eclipse.sdkbundle.e35.feature.2.1.0_2.1.0.m1.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.appengine.eclipse.core_1.4.0.m1.jar

 /2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.core_1.4.0.m1.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.platform.e35_1.4.0.m1.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.platform.shared_1.4.0.m1.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.platform_1.4.0.m1.jar

 /2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.suite_1.4.0.m1.jar
 /2.1.0.M1/eclipse/plugin/plugins/com.google.gwt.eclipse.core_1.4.0.m1.jar
 /2.1.0.M1/eclipse/plugin/plugins/com.google.gwt.eclipse.oophm_1.4.0.m1.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.m1.jar

 /2.1.0.M1/eclipse/plugin/site.xml
  
/2.1.0.M1/eclipse/plugin/zips/com.google.gdt.eclipse.suite.e35.feature_1.4.0.m1.zip


===
--- /dev/null
+++  
/2.1.0.M1/eclipse/plugin/features/com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.4_1.3.4.v201005161043.jar	 
Mon May 17 06:56:55 2010

@@ -0,0 +1,55 @@
+PK  
+  V°	   META-INF/þÊ  PK  
+  V° }›F^   j   META-INF/MANIFEST.MFóMÌËLK-.Ñ

+K-*ÎÌϳR0Ô3àårÌC q,HLÎHU Š %Íõ y¹œ‹R KRSt *AêÍô â
+ u“ Ì 4‚Kó |3“‹ò‹+‹KRs‹ ó’õ4y¹x¹ PK  
+  V°8Ÿîó›   ¼   feature.xmlµXßsÚ8 ~÷_±ã§^'Ø$inîzInh )=
+...@®Ó§Ž° (•%Ÿ$Cé_ «   2-¹IéCc{÷ÛoW»«•ÎÿüZpXR¥™  ñqÒŽ ŠLæLÌ/â»ÉÛÖoñŸ—ÑùŒ S)  û±üÎd‘Ì¥œsš ²¤bÎ MhÆY©i¢ó/ÓJäø žž%A99NN“WqÀàdJùE| 
í  S–Ðs ðž,	 
Œ» ÁŽxƒ¾M–'íãvûìø×ãö«ÓZ¦TrÉrªZ‚ ´†‚¾È’ø2²Bç9Õ™b¥A¨Ë µÏ`•gál9.oœ7îKÏû §É™ƒLw0Ý«L–kÅæ SÛ¸ª_ÀI»ý{mÒ ó 
+ ÷‚³Œ

+Mkõèz4º
+ô ss ½áu ؃ñèíäcç¶ ÝÞ?½ÁèæCo8 ¿ú x;º
+÷  :0è_õ†ã
+ô‡øêCgÒ 
+£¨S*ÆáäÈñˆ¢ û‹¢ÉbÇ ë0Ó Hä`$¬e   ªÀ ì~ÈT  ä ÆT-Q ^X¹Ø½Ž ùÃé d

+B ¨0xf  f Aè׌– ˜ ̨’3P{ÅÌÂYrÀ§ /§† (  1ko# ĸØÁ˜òuŠ!Íi  ˆœn’45 sa
+
+Ew‚S­AÑ +¦ÐÕé P ='SäÆÉ
+pÅÉ\Q  4½RÌ`q
+ –3³ŠBδQlZ ”ÙÆÈ“B/›Ÿ%R  wÆÐ Çð¦3î  àc ònt7 \ÎÛÎpÒï  ×ðj4ìöí¢áÓ[è ?áê 
�...@14h‚~-•eŽô˜
+ Í1JcJ ¶m²Ú']ÒŒÍX†îˆyEæ æ ËI  P¢$Ó¶²0€Ç5/˜!Æ=?ð%±y‚þ„J¬ƒ¿Ÿ7Sj‘ålF• š Ëé’r‰æì2 
•`f]Gƒ Å×À¥ü Ôhæ™à 1:I +¨0„ÇΟ²R¥ÔT×ÖsŠaÈ
+a_þÞ•fb`\Öé´ ¼Üªî1:ª3{Å8 ’ç è
+BûÒÖ•L
+\ýŠpdŒqG‹âè:Ú ÙÜ
+ ˜S$[   Bb–̘`z  A7Š !  ¹ƒv”s‚¥qhmjŽ¶...@ÿ›«Ñ)-0,O’6   ™X)4
+ê yÜil{
+C#ó*³±9r!ÝdbXÖM  /¨Y  6Í
+tÅ€%`¥f• IMÚ NpÉ Å
+mrÛ K  z 1ÄT   ¹ˆ ZrŠQE ‹oê†âì  *Ù´±è‘– ·½ëÎm·?¼†7wÃî ×
+É»þm·uÓ¹ |Ú´Qß g’s¹²Ù‹ýIåP 
+iº1ø ˜7M*Úï‡6r›m$¤sØžê!]

+GÁ —ô)j,ˆ®=E]Æ]#š)Y  .}ºc^GÑKxO Ycß x˜×uv„gX`ó %Æ
+ÔöÅ ™qLú×uÇ\­V	 
¦ª™’uÕ½·Ð)júÍ/·KÏÙtÛI[FJ®[¤dÉ=QG® 5¾Z¦¼¥*¬˜‚Z‰ÚqÄ v\ÃF/ éŽ0Ïã

+  § «íÙ÷á  T=Nê|µÀ f 0 ±½¥÷ºL±ÒHö  kÞÚB¢dë8ù59³pOÐᤠhO5”í2“/˜‹  ‰¢°
+n çs›§.€? Ø !Ër3lÜ I
+À÷ ˆ9ÐÒ¦šêǃ ÀkD ø ‡LÜ•Âfƒ°é!!
+H-‹ä‚dÿY›Ø%ì6ïwüÆn¿EI @¨ æw“É
+\á®*Ì3†øÞ£7C\ó° ™³÷ŒÑÞ‚–BWÈ3û©ùc
+³gôÇá=æJoðSý Ü;ñ”ü¤
+s³ý°|ß 
+ÆÔó‘5²À jrÕKáGÛC	 
ß;Juïk !é“ßBÏz ‚ $p WMˆ†ë 2G0ýS«Éx ÛÕòMÛ2 Ò˜f¸Ï •»Îq²ãç¾ð½6¼!¸Ý¨®©’‚ ÒS½¢Ê J D Åü^¾ »Cƒs[øCõ Yú3õ”â€Si_!îpäJ

+JÖàg
+mG 2ËUò|1œ Í  
ú?[õ§Öòäø´ æ¼pj x¹õÁŽ8   Âau·¯Ûám[É5hZX ;@ÙÃ\³ Ã...@ï èà »ô#~0Ñè{ÊÖâ=Rúš’ ÞCÆW.bO ˬ

+jìÙÓ.§ Æeh¥; ³   ¡öbŸO’³Ï6-Z›ŒÚå5¾ù  f'¢
+×(m¿ùíáL Ðó D µA}î{Ñ ü ßA§ü3bî ¿„ Æe¼.Ê
+Ä#Ãß  Ç· ’ð°
+´cç¿ ²¥ #¯°‡ÔSÛÿÝ8ž+Xa¸‚Ó]¶oÆÝø «mÉ
+Èŵ  —ƒ kÃRí C†UÆi¥1ç3{º¿áÄØóâ³ 

[gwt-contrib] [google-web-toolkit] r8167 committed - Updating the Report count based on the number of reports in the databa...

2010-05-17 Thread codesite-noreply

Revision: 8167
Author: gwt.mirror...@gmail.com
Date: Mon May 17 08:45:33 2010
Log: Updating the Report count based on the number of reports in the  
database.


http://code.google.com/p/google-web-toolkit/source/detail?r=8167

Modified:
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Report.java


===
---  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Report.java	 
Fri May 14 08:44:01 2010
+++  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/server/domain/Report.java	 
Mon May 17 08:45:33 2010

@@ -36,7 +36,7 @@
   /**
* The total number of reports in the database.
*/
-  private static long REPORT_COUNT = 3750243;
+  private static long REPORT_COUNT = 5080388;

   public static long countReports() {
 EntityManager em = entityManager();

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r8170 committed - set expires header for appEngine, include the Mobile module in Scaffol...

2010-05-17 Thread codesite-noreply

Revision: 8170
Author: amitman...@google.com
Date: Mon May 17 08:54:17 2010
Log: set expires header for appEngine, include the Mobile module in  
ScaffoldCommon


Patch by: amitmanjhi
Review by: jgw (desk review)

http://code.google.com/p/google-web-toolkit/source/detail?r=8170

Modified:
 /branches/2.1/bikeshed/src/com/google/gwt/mobile/Mobile.gwt.xml
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ScaffoldCommon.gwt.xml

 /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml

===
--- /branches/2.1/bikeshed/src/com/google/gwt/mobile/Mobile.gwt.xml	Fri May  
14 08:28:05 2010
+++ /branches/2.1/bikeshed/src/com/google/gwt/mobile/Mobile.gwt.xml	Mon May  
17 08:54:17 2010

@@ -14,4 +14,5 @@

 module
 inherits name=com.google.gwt.user.User/
+source path=client/
 /module
===
---  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ScaffoldCommon.gwt.xml	 
Thu May 13 09:13:58 2010
+++  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/ScaffoldCommon.gwt.xml	 
Mon May 17 08:54:17 2010

@@ -4,6 +4,7 @@
   inherits name='com.google.gwt.app.App' /
   inherits name='com.google.gwt.requestfactory.RequestFactory'/
   inherits name='com.google.gwt.sample.bikeshed.style.Style'/
+  inherits name='com.google.gwt.mobile.Mobile'/
   inherits name='com.google.gwt.user.cellview.CellView'/

   source path='client'/
===
--- /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml	Tue May 11  
21:32:44 2010
+++ /branches/2.1/bikeshed/war/WEB-INF/appengine-web.xml	Mon May 17  
08:54:17 2010

@@ -1,8 +1,12 @@
 ?xml version=1.0 encoding=utf-8?
 appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
applicationgwt-bikeshed/application
-   version11/version
-
+   version23/version
+   static-files
+   include path=**.nocache.* expiration=1s/
+   include path=**.cache.html expiration=365d/
+   include path=** expiration=30d/
+/static-files
!-- Configure java.util.logging --
system-properties
 		property name=java.util.logging.config.file  
value=WEB-INF/logging.properties/


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r8171 committed - Adding new packages to GWT 2.1 Javadoc.

2010-05-17 Thread codesite-noreply

Revision: 8171
Author: jlaba...@google.com
Date: Mon May 17 09:49:11 2010
Log: Adding new packages to GWT 2.1 Javadoc.

http://code.google.com/p/google-web-toolkit/source/detail?r=8171

Modified:
 /branches/2.1/doc/build.xml

===
--- /branches/2.1/doc/build.xml Tue Jan 26 10:25:12 2010
+++ /branches/2.1/doc/build.xml Mon May 17 09:49:11 2010
@@ -10,7 +10,7 @@
   property.ensure name=gwt.dev.jar  
location=${gwt.build.lib}/gwt-dev.jar /


   property name=USER_PKGS
-   
value=com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.core.linker;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.shared;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.benchmarks.client;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.uibinder.client;com.google.gwt.rpc.client;com.google.gwt.rpc.server;com.google.gwt.jsonp.client/
+   
value=com.google.gwt.animation.client;com.google.gwt.benchmarks.client;com.google.gwt.cell.client;com.google.gwt.core.client;com.google.gwt.core.ext;com.google.gwt.core.ext.soyc;com.google.gwt.core.ext.linker;com.google.gwt.core.ext.typeinfo;com.google.gwt.core.linker;com.google.gwt.debug.client;com.google.gwt.dom.client;com.google.gwt.event.dom.client;com.google.gwt.event.logical.shared;com.google.gwt.event.shared;com.google.gwt.http.client;com.google.gwt.i18n.client;com.google.gwt.i18n.shared;com.google.gwt.i18n.client.constants;com.google.gwt.i18n.rebind.format;com.google.gwt.i18n.rebind.keygen;com.google.gwt.json.client;com.google.gwt.junit.client;com.google.gwt.logging.client;com.google.gwt.benchmarks.client;com.google.gwt.resources.client;com.google.gwt.resources.ext;com.google.gwt.user.cellview.client;com.google.gwt.user.client;com.google.gwt.user.client.rpc;com.google.gwt.user.client.ui;com.google.gwt.user.datepicker.client;com.google.gwt.user.server.rpc;com.google.gwt.xml.client;com.google.gwt.uibinder.client;com.google.gwt.rpc.client;com.google.gwt.rpc.server;com.google.gwt.jsonp.client;com.google.gwt.view.client/
   property name=LANG_PKGS  
value=java.lang;java.lang.annotation;java.util;java.io;java.sql /


   !--  Individual classes to include when we don't want to

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r8169 committed - Adds functionality to add/edit Reports in mobile version.

2010-05-17 Thread codesite-noreply

Revision: 8169
Author: gwt.mirror...@gmail.com
Date: Mon May 17 08:10:09 2010
Log: Adds functionality to add/edit Reports in mobile version.

http://code.google.com/p/google-web-toolkit/source/detail?r=8169

Added:
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportEntry.java
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportEntry.ui.xml

Modified:
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpenseTree.java
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/Expenses.java
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/ExpensesMobileShell.java
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileExpenseList.java
  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportList.java


===
--- /dev/null
+++  
/branches/2.1/bikeshed/src/com/google/gwt/sample/expenses/gwt/client/MobileReportEntry.java	 
Mon May 17 08:10:09 2010

@@ -0,0 +1,184 @@
+/*
+ * Copyright 2010 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of

+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,  
WITHOUT

+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under

+ * the License.
+ */
+package com.google.gwt.sample.expenses.gwt.client;
+
+import com.google.gwt.core.client.GWT;
+import com.google.gwt.dom.client.Element;
+import com.google.gwt.requestfactory.shared.Receiver;
+import com.google.gwt.requestfactory.shared.SyncResult;
+import com.google.gwt.sample.expenses.gwt.request.ExpenseRecord;
+import com.google.gwt.sample.expenses.gwt.request.ExpensesRequestFactory;
+import com.google.gwt.sample.expenses.gwt.request.ReportRecord;
+import com.google.gwt.uibinder.client.UiBinder;
+import com.google.gwt.uibinder.client.UiField;
+import com.google.gwt.user.client.ui.Composite;
+import com.google.gwt.user.client.ui.ListBox;
+import com.google.gwt.user.client.ui.TextBox;
+import com.google.gwt.user.client.ui.Widget;
+import com.google.gwt.valuestore.shared.DeltaValueStore;
+
+import java.util.Date;
+import java.util.Map;
+import java.util.Set;
+
+/**
+ * Form to create a new ReportRecord.
+ */
+public class MobileReportEntry extends Composite implements MobilePage {
+
+  /**
+   * TODO: doc.
+   */
+  public interface Listener {
+void onReportUpdated();
+  }
+
+  interface Binder extends UiBinderWidget, MobileReportEntry {
+  }
+
+  private static Binder BINDER = GWT.create(Binder.class);
+
+  @UiField
+  TextBox purposeText, notesText;
+  @UiField
+  ListBox dateYear, dateMonth, dateDay, departmentList;
+  @UiField
+  Element errorText;
+
+  private ReportRecord report;
+  private final ExpensesRequestFactory requestFactory;
+  private final Listener listener;
+  private DeltaValueStore deltas;
+
+  public MobileReportEntry(Listener listener,
+  ExpensesRequestFactory requestFactory) {
+this.listener = listener;
+this.requestFactory = requestFactory;
+initWidget(BINDER.createAndBindUi(this));
+
+for (String department : Expenses.DEPARTMENTS) {
+  departmentList.addItem(department);
+}
+
+populateList(dateYear, 2000, 2010);
+populateList(dateMonth, 1, 12);
+populateList(dateDay, 1, 31);
+  }
+
+  public Widget asWidget() {
+return this;
+  }
+
+  public void create(Long reporterId) {
+deltas = requestFactory.getValueStore().spawnDeltaView();
+
+report = (ReportRecord) deltas.create(ReportRecord.TOKEN);
+deltas.set(ReportRecord.reporterKey, report, reporterId.toString());
+displayReport();
+  }
+
+  public String getPageTitle() {
+return report != null ? report.getPurpose() : ;
+  }
+
+  public boolean needsAddButton() {
+return false;
+  }
+
+  public String needsCustomButton() {
+return Done;
+  }
+
+  public boolean needsRefreshButton() {
+return false;
+  }
+
+  public void onAdd() {
+  }
+
+  @SuppressWarnings(deprecation)
+  public void onCustom() {
+deltas.set(ReportRecord.purpose, report, purposeText.getText());
+deltas.set(ReportRecord.notes, report, notesText.getText());
+deltas.set(ReportRecord.department, report,
+departmentList.getValue(departmentList.getSelectedIndex()));
+
+// TODO(jgw): Use non-deprecated date methods for this.
+Date date = new Date(dateYear.getSelectedIndex() + 100,
+dateMonth.getSelectedIndex(), dateDay.getSelectedIndex() + 1);
+deltas.set(ExpenseRecord.created, report, date);
+
+// TODO: wait throbber
+requestFactory.syncRequest(deltas).to(new ReceiverSetSyncResult() {
+ 

[gwt-contrib] Produces the gwt-bikeshed.jar from the dist target. In GPE, the GWT (issue541801)

2010-05-17 Thread jasonparekh

Reviewers: amitmanjhi,

Description:
Produces the gwt-bikeshed.jar from the dist target.  In GPE, the GWT
container needs to contain gwt-bikeshed.jar now because we need to
precisely set the ordering such that bikeshed appears above user.
Previously, we relied on Maven container supplying the bikeshed, but
the issue of out-of-order bikeshed and user JARs came up (GWT container
must appear above Maven container, meaning the bikeshed always appeared
later than user.)

Review by: amitman...@google.com

Please review this at http://gwt-code-reviews.appspot.com/541801/show

Affected files:
  M /build.xml
  M /distro-source/build.xml


Index: /build.xml
===
--- /build.xml  (revision 8109)
+++ /build.xml  (working copy)
@@ -113,6 +113,10 @@
  call-subproject subproject=tools subtarget=build/
  call-subproject subproject=jni subtarget=build/
  call-subproject subproject=samples subtarget=build/
+
+ !-- TODO: GWT 2.1.0 M1 SDK requires gwt-bikeshed.jar to be included.  
This

+can be removed once bikeshed is merged into other JARs. --
+ call-subproject subproject=bikeshed subtarget=build /
   /target

   target name=checkstyle description=[action] Does static analysis of  
GWT source

Index: /distro-source/build.xml
===
--- /distro-source/build.xml(revision 8109)
+++ /distro-source/build.xml(working copy)
@@ -25,6 +25,7 @@
   zipfileset file=${gwt.build.lib}/gwt-benchmark-viewer.war  
prefix=${project.distname} /
   zipfileset file=${gwt.build.lib}/gwt-soyc-vis.jar  
prefix=${project.distname} /
   zipfileset file=${gwt.build.lib}/gwt-api-checker.jar  
prefix=${project.distname} /
+  zipfileset file=${gwt.build.lib}/gwt-bikeshed.jar  
prefix=${project.distname} /


   !-- jni libs--
   zipfileset dir=${gwt.build.jni}/windows  
prefix=${project.distname} /



--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Produces the gwt-bikeshed.jar from the dist target. In GPE, the GWT (issue541801)

2010-05-17 Thread rdayal

LGTM.

http://gwt-code-reviews.appspot.com/541801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: [gwt-contrib] Re: Produces the gwt-bikeshed.jar from the dist target. In GPE, the GWT (issue541801)

2010-05-17 Thread Amit Manjhi
LGTM

On Mon, May 17, 2010 at 5:06 PM,  rda...@google.com wrote:
 LGTM.

 http://gwt-code-reviews.appspot.com/541801/show

 --
 http://groups.google.com/group/Google-Web-Toolkit-Contributors


-- 
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r8172 committed - Produces the gwt-bikeshed.jar from the dist target. In GPE, the GWT...

2010-05-17 Thread codesite-noreply

Revision: 8172
Author: jasonpar...@google.com
Date: Mon May 17 14:09:33 2010
Log: Produces the gwt-bikeshed.jar from the dist target.  In GPE, the GWT
container needs to contain gwt-bikeshed.jar now because we need to
precisely set the ordering such that bikeshed appears above user.
Previously, we relied on Maven container supplying the bikeshed, but
the issue of out-of-order bikeshed and user JARs came up (GWT container
must appear above Maven container, meaning the bikeshed always appeared
later than user.)

Review at http://gwt-code-reviews.appspot.com/541801

Review by: amitman...@google.com
http://code.google.com/p/google-web-toolkit/source/detail?r=8172

Modified:
 /branches/2.1/build.xml
 /branches/2.1/distro-source/build.xml

===
--- /branches/2.1/build.xml Fri Apr  2 15:29:40 2010
+++ /branches/2.1/build.xml Mon May 17 14:09:33 2010
@@ -113,6 +113,10 @@
  call-subproject subproject=tools subtarget=build/
  call-subproject subproject=jni subtarget=build/
  call-subproject subproject=samples subtarget=build/
+
+ !-- TODO: GWT 2.1.0 M1 SDK requires gwt-bikeshed.jar to be included.  
This

+can be removed once bikeshed is merged into other JARs. --
+ call-subproject subproject=bikeshed subtarget=build /
   /target

   target name=checkstyle description=[action] Does static analysis of  
GWT source

===
--- /branches/2.1/distro-source/build.xml   Fri Oct 30 12:00:05 2009
+++ /branches/2.1/distro-source/build.xml   Mon May 17 14:09:33 2010
@@ -25,6 +25,7 @@
   zipfileset file=${gwt.build.lib}/gwt-benchmark-viewer.war  
prefix=${project.distname} /
   zipfileset file=${gwt.build.lib}/gwt-soyc-vis.jar  
prefix=${project.distname} /
   zipfileset file=${gwt.build.lib}/gwt-api-checker.jar  
prefix=${project.distname} /
+  zipfileset file=${gwt.build.lib}/gwt-bikeshed.jar  
prefix=${project.distname} /


   !-- jni libs--
   zipfileset dir=${gwt.build.jni}/windows  
prefix=${project.distname} /


--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] [google-web-toolkit] r8173 committed - Adds GWT 2.1 r8172 and corresponding GPE to repo/update site.

2010-05-17 Thread codesite-noreply

Revision: 8173
Author: jasonpar...@google.com
Date: Mon May 17 19:36:48 2010
Log: Adds GWT 2.1 r8172 and corresponding GPE to repo/update site.
http://code.google.com/p/google-web-toolkit/source/detail?r=8173

Added:
  
/2.1.0.M1/eclipse/plugin/features/com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.4_1.3.4.v201005172203.jar
  
/2.1.0.M1/eclipse/plugin/features/com.google.gdt.eclipse.suite.e35.feature_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/features/com.google.gwt.eclipse.sdkbundle.e35.feature.2.1.0_2.1.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.appengine.eclipse.core_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.appengine.eclipse.sdkbundle.1.3.4_1.3.4.v201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.core_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.platform.e35_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.platform.shared_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.platform_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gdt.eclipse.suite_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gwt.eclipse.core_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gwt.eclipse.oophm_1.4.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/plugins/com.google.gwt.eclipse.sdkbundle.2.1.0_2.1.0.m1-201005172203.jar
  
/2.1.0.M1/eclipse/plugin/zips/com.google.gdt.eclipse.suite.e35.feature_1.4.0.m1-201005172203.zip

Modified:
 /2.1.0.M1/eclipse/plugin/site.xml
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-bikeshed/2.1.0.M1/gwt-bikeshed-2.1.0.M1.jar
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-bikeshed/2.1.0.M1/gwt-bikeshed-2.1.0.M1.jar.md5
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-bikeshed/2.1.0.M1/gwt-bikeshed-2.1.0.M1.jar.sha1

 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-bikeshed/maven-metadata.xml
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-bikeshed/maven-metadata.xml.md5
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-bikeshed/maven-metadata.xml.sha1
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-dev/2.1.0.M1/gwt-dev-2.1.0.M1.jar
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-dev/2.1.0.M1/gwt-dev-2.1.0.M1.jar.md5
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-dev/2.1.0.M1/gwt-dev-2.1.0.M1.jar.sha1

 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-dev/maven-metadata.xml
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-dev/maven-metadata.xml.md5
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-dev/maven-metadata.xml.sha1
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-servlet/2.1.0.M1/gwt-servlet-2.1.0.M1.jar
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-servlet/2.1.0.M1/gwt-servlet-2.1.0.M1.jar.md5
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-servlet/2.1.0.M1/gwt-servlet-2.1.0.M1.jar.sha1

 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-servlet/maven-metadata.xml
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-servlet/maven-metadata.xml.md5
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-servlet/maven-metadata.xml.sha1
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-soyc-vis/2.1.0.M1/gwt-soyc-vis-2.1.0.M1.jar
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-soyc-vis/2.1.0.M1/gwt-soyc-vis-2.1.0.M1.jar.md5
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-soyc-vis/2.1.0.M1/gwt-soyc-vis-2.1.0.M1.jar.sha1

 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-soyc-vis/maven-metadata.xml
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-soyc-vis/maven-metadata.xml.md5
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-soyc-vis/maven-metadata.xml.sha1
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-user/2.1.0.M1/gwt-user-2.1.0.M1.jar
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-user/2.1.0.M1/gwt-user-2.1.0.M1.jar.md5
  
/2.1.0.M1/gwt/maven/com/google/gwt/gwt-user/2.1.0.M1/gwt-user-2.1.0.M1.jar.sha1

 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-user/maven-metadata.xml
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-user/maven-metadata.xml.md5
 /2.1.0.M1/gwt/maven/com/google/gwt/gwt-user/maven-metadata.xml.sha1

===
--- /dev/null   
+++  
/2.1.0.M1/eclipse/plugin/features/com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.4_1.3.4.v201005172203.jar	 
Mon May 17 19:36:48 2010

Binary file, no diff available.
===
--- /dev/null   
+++  
/2.1.0.M1/eclipse/plugin/features/com.google.gdt.eclipse.suite.e35.feature_1.4.0.m1-201005172203.jar	 
Mon May 17 19:36:48 2010

Binary file, no diff available.
===
--- /dev/null   
+++  
/2.1.0.M1/eclipse/plugin/features/com.google.gwt.eclipse.sdkbundle.e35.feature.2.1.0_2.1.0.m1-201005172203.jar	 
Mon May 17 19:36:48 2010

Binary file, no diff available.
===
--- /dev/null   
+++  
/2.1.0.M1/eclipse/plugin/plugins/com.google.appengine.eclipse.core_1.4.0.m1-201005172203.jar	 
Mon May 17 19:36:48 2010

Binary file, no diff available.
===
--- /dev/null   
+++