Horizontal Scroll Bar Issues with tab panel

2010-11-13 Thread Sanjay Jain
Hello all
I am using Tab Panel (With single tab).
In this Tab Panel I am adding another Tab Panel (With single tab).
In the above Tab Panel I am adding another Tab Panel. (With 15 tab).

And for third  inner most Tab Panel I used auto horizontal tab scroll
true. Like this :

taskTabPanel.setEnableTabScroll(true);


There are 15 tabs in the inner most tab.
Now my problem is that while clicking on the Right Horizontal scroll
button It will work fine for 12 tab. (i.e It will scroll up to 12 tab
correctly),But after 12th tab it is not scrolling properly.
Can any one help me out of this.

Thanks in advance

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



Re: Horizontal Scroll Bar Issues with tab panel

2010-11-13 Thread Sanjay Jain
Hello all
I solved this issue.I am not getting what is th actual problem But
what i did I am describing here.
Width of  inner most Tab Panel (with 15 tab) is set to 100%.
I changed it to in pixel (to 750px).
Now its working fine.

On Nov 13, 3:29 pm, Sanjay Jain snj...@gmail.com wrote:
 Hello all
 I am using Tab Panel (With single tab).
 In this Tab Panel I am adding another Tab Panel (With single tab).
 In the above Tab Panel I am adding another Tab Panel. (With 15 tab).

 And for third  inner most Tab Panel I used auto horizontal tab scroll
 true. Like this :

 taskTabPanel.setEnableTabScroll(true);

 There are 15 tabs in the inner most tab.
 Now my problem is that while clicking on the Right Horizontal scroll
 button It will work fine for 12 tab. (i.e It will scroll up to 12 tab
 correctly),But after 12th tab it is not scrolling properly.
 Can any one help me out of this.

 Thanks in advance

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



How to handle the async callback event to update the GUI

2010-11-13 Thread Leung
Hi

I use the following code to retrieve data and load the data to CatWidget; then, 
update the CategoryContainer.

I use the RPC in the constructor of CatWidget.
It doesnt seem quite right because the instance assignment may faster than 
database retrieval.

How should I modify the code if my concept is incorrect?


public class CategoryContainer extends HorizontalPanel
{
private void init()
{
CatWidget tmpWidget = new CatWidget(1); --Use RPC to retrieve database
catWidgetAry.add(tmpWidget);
//redraw all items in catWidgetAry
this.refresh();
}

}

public class CatWidget
{
CatWidget(int _oid)
{
//Use RPC AsyncCallback to load the Widget from database
}
}

Thanks a lot


  

-- 
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 MVP Development with Activities and Places

2010-11-13 Thread Ashton Thomas
You can find this example: http://gwt.acrinta.com

it is a small sample app that shows how to implement MVP/Gin/etc

It uses AppPlace which other places extends and then
AppPlaceHistoryMapper directly handles all the mapping but you may
want to do something a little more dynamic. This is just one simple
way

on github: https://github.com/ashtonthomas/gwt-seminar

On Nov 12, 10:22 pm, MBKG muabanky...@gmail.com wrote:
 Thanks David.
 My 2 cents:
 If user can go back (URL history) when using BasicPlace?
 Could you give a full small example?
 Thanks in advance.

 On 13 Tháng Mười Một, 00:12, David Chandler drfibona...@google.com
 wrote:

                  @Override
                  public String getToken(Place place) {
                          // BasicPlaces have no state so we can always
                          // return null. By default, GWT creates a
                          // URL containing the class name of the Place
                          // so we don't have to worry about that part.
                          return null;
                  }
          }

  }

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



Eclipse setup, javax.validation missing and jsp syntax highlighting

2010-11-13 Thread sixcorners
I see in the RequestFactory example (http://code.google.com/p/google-
web-toolkit/source/browse/trunk/samples/expenses/src/main/java/com/
google/gwt/#gwt/sample/expenses/shared), the Entity has properties
that have constraint annotations like
javax.validation.constraints.Size. Unfortunately when I try to use
them Eclipse just gives me red lines.. I think the package is missing.
How can I fix this? I'm on Ubuntu Linux with as little changed as is
required to get the Google Web Toolkit Plugin working.

Also .jsp files in my war directory are not getting highlighted and
can only be opened with a Text Editor. Is there a thing from one of
the eclipse software repositories that I need to download? I tried
installing a bunch of Java related stuff but it hasn't helped.

-- 
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: anything like smartgwt but totally compatible with gwt?

2010-11-13 Thread gcstang
Not sure about UIBinder never tried it, however I know if you use
SmartGWT and put GWT panels on it they work.

I've also tried the GWT Code Splitting, GWT Visualizations and GWT Log
and they all work as well.

Hope that helps some.

On Nov 12, 4:27 pm, Sachin Dole sachin.d...@gmail.com wrote:
 but isnt it true that you cant use uibinder with smartgwt? isnt it true that
 if you use smartgwt widgets and put them inside of a gwt panel, things dont
 look as you'd expect them to? we have avoided mixing plain gwt widgets with
 smartgwt widgets because widgets dont show up in the right place or dont
 show up at all. plus, smart gwt's styling mechanism doesnt apply to the gwt
 widgets.

 i guess my interoperability i meant mixing smartgwt and gwt widgets together
 in the same app within each other...

 thanks for your input!

 On Thu, Nov 11, 2010 at 11:48 AM, Dan Billings debil...@gmail.com wrote:
  Yeah I find it fully interoperable.

  On Nov 11, 7:17 am, gcstang gcst...@gmail.com wrote:
   Not sure what you mean by interoperable, if you could give examples it
   would help.

   I've been using SmartGWT for a while on an Admin type tool for our
   commerce suite and so far it has been very useful.

   On Nov 10, 11:29 am, Sachin Dole sachin.d...@gmail.com wrote:

Hey Guys,

At our workplace, we use smartgwt and like it because of the widgets it
provides but hate it cuz its not interoperable with gwt. Is there
  another
library that is 100% interoperable with gwt? Or, has anyone used
  smartgwt in
a manner totally inter-operable with gwt? I know, there are degrees of
interoperability that one can live with, however, i am looking for the
extreme case (100% interoperable).

Thank you folks.
Sachin

  --
  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: Entire Site in GWT?

2010-11-13 Thread Maxim
Hi Mike,

my two cents. We implemented a product which is entire site itself and
even allows others ( if they download and install it) to build kind of
entire site, limited somehow though. Ref. http://www.projectkaiser.com:8080/pk.
This is a project management and issue tracking solution which can
describe itself.

In connection to  GWT isn't web-crawlable. Well, for this we expose
all our pages in static manner.  Try to google, e.g., for: Project
Kaiser: Manual Installation.
Normally you get the following link:
http://www.projectkaiser.com:8080/pk/ps?f=22609

which is a print-friendly version of
http://www.projectkaiser.com:8080/pk/?fileid=22609

Actually rendering code from client is reused in server.

Maxim

-- 
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 change the panel in Activity.start()

2010-11-13 Thread Thomas Broyer


On 13 nov, 05:24, Christian Goudreau goudreau.christ...@gmail.com
wrote:
 Maybe it's a night call, but, when will we have a nice meeting (Google IO
 2011 ?) and talk about this for real ? :D

My employer seems to want to communicate more on our GWT skills (see,
I'm translating my GWT 2.1 articles to French: http://blog.atolcd.com
), so maybe I'll make it to I/O this time (he was OK last year but it
was me who couldn't).
It'd be way cool to have a F2F then, sure!

(otherwise, huh, there's 9 hours between Vancouver and Dijon,France
timezones!)

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



Module can't be loaded when host page has an element with id same as module name

2010-11-13 Thread pash7ka
When I have a div id=test.../div on the host page and have
module rename-to=test in the module xml file, this module can't be
loaded (especialy in IE), because bootstrap code from
module.nocache.js tries to create an iframe with the same id as module
name. Then on the maybeStartModule() it successfully gets the required
element just to find out it's not an iframe and has not contentWindow
property.

I think this should be at least documented, or, better, fixed: id of
the frame should be generated with the algorithm same as with css
class names in UiBinder and/or somehow controlled.

-- 
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 Designer errors on GWT 2.1 project in Eclipse Helios 3.6

2010-11-13 Thread SteveC
We are using GWT 2.1 on Eclipse 3.6 running on Windows XP.  After we
installed GWT Designer into Eclipse, our project started showing
errors in Eclipse relating to classes not being found within our own
code.  When we uninstall GWT Designer from Eclipse, the errors go
away.

There are no actual errors in our code but somehow GWT Designer makes
Eclipse think there are.

How can we make GWT Designer coexist with our GWT 2.1 project and not
have Eclipse 3.6 report errors where there aren't any?

Is this a known issue?  My attempts at searching out the problem have
failed.

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



shared src folder and default constructor

2010-11-13 Thread d...@vide.bz
Hi,

I have seen that a class that is in the shared folder should have
no constructors or a default constructor.

This can create problem for me, because the default constructor
sometime initialize some structures. This initialization then
I think is trashed, because after transfering the object from
server to client, gwt will iniect all the values in the object.

There is a way to handle this?

If I for example have a method init, then i should call it explicity
or using lazy calling in the first method call.

-- 
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: Module can't be loaded when host page has an element with id same as module name

2010-11-13 Thread Thomas Broyer

On 13 nov, 16:30, pash7ka pash...@gmail.com wrote:
 When I have a div id=test.../div on the host page and have
 module rename-to=test in the module xml file, this module can't be
 loaded (especialy in IE), because bootstrap code from
 module.nocache.js tries to create an iframe with the same id as module
 name. Then on the maybeStartModule() it successfully gets the required
 element just to find out it's not an iframe and has not contentWindow
 property.

 I think this should be at least documented, or, better, fixed: id of
 the frame should be generated with the algorithm same as with css
 class names in UiBinder and/or somehow controlled.

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

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



Building with ant + using gwt-maps.jar?

2010-11-13 Thread darkflame
I've been working with GWT for a few years now, but always straight
from eclipse. I never needed to touch the build.xml myself, and I know
nothing of ant. :(

Now I'm trying to compile a rather complex webapp from the command
prompt. (its actualy the google wave simple web client).

ant compile_gwt from the directory works well and it compiles.

However, if I try to modify the source to add a google map widget, the
ant build fails I get a string or errors
ending in package com.google.gwt.maps.client does not exist

In eclipse, it works fine. The jar is added to the build path on the
property's and it compiles.

But running compile_gwt always results in these errors.

I tried altering the build file like;


  target name=compile_gwt depends=compile,proto_gwt_compile
description=GWT compile to JavaScript
java failonerror=true fork=true
classname=com.google.gwt.dev.Compiler
  classpath
  pathelement location=war/WEB-INF/lib/gwt-maps.jar /
pathelement location=proto_gwt_src/
pathelement location=src/
path refid=fedone.classpath/
path refid=fedone.test.classpath/
  /classpath
  jvmarg value=-Xmx256M/
  !-- Additional arguments like -style PRETTY or -logLevel DEBUG
--
  arg line=-style PRETTY/
  arg line=${gwt.args}/
  arg
value=org.waveprotocol.wave.examples.client.webclient.WebClient/
/java
  /target


I added the maps.jar location line (and the file at that location),
but it didnt help.



-- 
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: Cannot found source in GWT Project

2010-11-13 Thread har_shan
Hi Eric,

Is this fixed in GWT designer or should we tweak something to not show
the error. Please advice.

Thanks.

On Nov 2, 10:45 pm, eric73 e...@pentila.com wrote:
 On 25 oct, 14:59, AlexG alexander.gauss.ax...@googlemail.com wrote:









  Okay,

  the problem is solved.

  The problem was theGWTDesigner, the new Enhanced Compilation
  feature.
  I uninstalled theGWTDesginer and the Erros are gone now.

  Greets
  Alex

  On 25 Okt., 15:08, AlexG alexander.gauss.ax...@googlemail.com wrote:

   Thanks for your reply,

   so you can say, it´s a bug in the plugIn?

   I don´t get any Errors when IGWTcompile, I have lots of Errors now
   on several of my Projects, but everything seems to work as intended.
   I think it´s very strange.
   my collegue has the same Errors now too. We don´t know why they
   appear.
   I can only imagine a bug.

   Greets
   Alex

   On 25 Okt., 14:45, bodyboarder20 shieldsja...@gmail.com wrote:

We had the same problem w/ both the recent download of theGWT2.1 SDK
as well as the plugin w/ STS.  The fix was to download the 2.1
snapshot and drop that into the folder for the SDK plugin (you can
find the path inside of the error message you receive when youGWT
compile).

Odd that nobody else reported this We found it on the CellView
package...

On Oct 25, 3:47 am, AlexG alexander.gauss.ax...@googlemail.com
wrote:

 Hi all,

 I am trying the RequestFactory since RC1 release. It seems, that
 everything was working fine, but since
 yesterday, I get strange Erros in only one of my Projects:

 mypackage.MyClass can not be found in source packages. Check the
 inheritance chain from yourmodule; it may not be inheriting a
 requiredmoduleor amodulemay not be adding its source path entries
 properly

 The Error is appearing at the @ProxyFor and the @Service annotation.
 The package, of the classes are:
 server.domain, the packages of the request and proxy
 are: client.request

 I don´t know, why Eclipse is saying, that the source code is missing,
 I means it´s the same Project??

 Strange is to, that the Project is running in DeveleopementMode and I
 deployed it too, and it works withoutt any
 Errors.

 Does anybody have an idea, whats going wrong?

 Thanks, Greets
 Alex

 Thanks a lot !!

 Eric

-- 
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: Saving data on the server

2010-11-13 Thread David Cox
So, i managed to solve my own problem again, but I'm no 100% on how i
did it.

What i did was remove all my functions in the class and then re-added
them with the create getter and setter for private String

Then i made sure that the variable was set using the actual setter
function. ie: this.setTitle(Title).
I also had other function in the class.
Like myfucntion(String title, int counter) or something like that.
Origionaly i have stuff like
this.Title = title.

I had to change these to this.setTitle(title). Even though all the
setTitle function does exaclty: this.title = title.
For some reason this fixes it.

as far as i can tell, the rules for successful xml serialisation as as
such:
1. The each variable you want serialised must have a set command
called that has the same name with a set prefix
2. this function must be called at least once or that particular
variable will not be searilised (once it is called though, you can
then go back to using direct methods like this.Title = title. )
3. each variable MUST also have a public function wiht the same name
and a get prefix.

It took me ages to work this out, and i would love it if someone out
there could explain why.
My only guess is that it does have 1 convenient feature, and that is,
you can actually use this to determine which variables will be seen in
the resulting serialised XML, but you can still work happily with all
the other variables in an object (like counters and states) and not
have them appear in the output.

Nice one. Just wish i found a tutuorial out there that explained this
to me from the start.

Am still interested to hear what others do.

/David

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



Debian Lenny + AMD 64 + Iceweasel + GWT Plugin?

2010-11-13 Thread Magnus
Hi,

on my new Debian system I cannot get the GWT plugin working.

Iceweasel should be Firefox in the 64 bit version. The plugin gets
installed, but after browser restart it asks again...

How can I solve this?

Thanks
Magnus

-- 
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: Saving data on the server

2010-11-13 Thread Brett Thomas
The get and set functions are called getters and setters - they are part of
the javabean specification: http://en.wikipedia.org/wiki/JavaBean

I'm guessing the XML library you are using requires java objects to be
defined as javabeans. I've seen a couple other libraries that do that too -
not sure why they work that way.

For the bigger picture, that all depends on your server setup. If you're
just experimenting, I'd suggest using GWT with Google App Engine, and
storing data via hibernate. Google has a good tutorial for using GWT with
app engine/hibernate. I think a database is almost alwasy easier than
serializing objects to a file.

To your point about changing your data model: I've found that app engine is
really bad for this. There isn't (I don't think) a simple way to delete all
objects of this class out of the box. When I was just experimenting with
app engine, I found it easier to just create new class definitions than
modify existing classes.

Good luck learning GWT!
Brett

On Sat, Nov 13, 2010 at 2:38 PM, David Cox cox.spir...@gmail.com wrote:

 So, i managed to solve my own problem again, but I'm no 100% on how i
 did it.

 What i did was remove all my functions in the class and then re-added
 them with the create getter and setter for private String

 Then i made sure that the variable was set using the actual setter
 function. ie: this.setTitle(Title).
 I also had other function in the class.
 Like myfucntion(String title, int counter) or something like that.
 Origionaly i have stuff like
 this.Title = title.

 I had to change these to this.setTitle(title). Even though all the
 setTitle function does exaclty: this.title = title.
 For some reason this fixes it.

 as far as i can tell, the rules for successful xml serialisation as as
 such:
 1. The each variable you want serialised must have a set command
 called that has the same name with a set prefix
 2. this function must be called at least once or that particular
 variable will not be searilised (once it is called though, you can
 then go back to using direct methods like this.Title = title. )
 3. each variable MUST also have a public function wiht the same name
 and a get prefix.

 It took me ages to work this out, and i would love it if someone out
 there could explain why.
 My only guess is that it does have 1 convenient feature, and that is,
 you can actually use this to determine which variables will be seen in
 the resulting serialised XML, but you can still work happily with all
 the other variables in an object (like counters and states) and not
 have them appear in the output.

 Nice one. Just wish i found a tutuorial out there that explained this
 to me from the start.

 Am still interested to hear what others do.

 /David

 --
 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: UiBinding at run time

2010-11-13 Thread TedM
Cool,  I sent some e-mails out if someone from GWT says its
interesting I'll put it out there.  But, I don't want to commit a lot
of time unless they want it.  I mean maybe they already have this idea
and are building it, or maybe they have a better idea.  So once I get
some feed back from then I'll move forward.

By the way here is a video of me explaining the solution
http://www.youtube.com/watch?v=wDzuS7pnYJE

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



Displaying Loading icon while loading images

2010-11-13 Thread Navdeep
I have images which are big in size so i would like to display the
animated loading gif while the main images are actually being loaded
and once they have been loaded then display the actual image. How can
i do the same?

-- 
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 change the panel in Activity.start()

2010-11-13 Thread PhilBeaudoin
In french, très bien! :)

Yes, let's try to meet at some point. I always enjoy reading your
thoughtful articles and replies. I'm sure there would be a lot of
value in exchanging F2F. In fact, I never even met Christian! There
are also quite a few people on Guice, GIN, MVP4G and GUIT that I'd
like to meet.

Ah, and let's invite Ray Ryan too. ;)

Cheers,

Philippe


On Nov 13, 7:29 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 13 nov, 05:24, Christian Goudreau goudreau.christ...@gmail.com
 wrote:

  Maybe it's a night call, but, when will we have a nice meeting (Google IO
  2011 ?) and talk about this for real ? :D

 My employer seems to want to communicate more on our GWT skills (see,
 I'm translating my GWT 2.1 articles to French:http://blog.atolcd.com
 ), so maybe I'll make it to I/O this time (he was OK last year but it
 was me who couldn't).
 It'd be way cool to have a F2F then, sure!

 (otherwise, huh, there's 9 hours between Vancouver and Dijon,France
 timezones!)

-- 
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: Displaying Loading icon while loading images

2010-11-13 Thread Gaurav Vaish
You can do something like this:

Image tgtImage = new Image(loading.gif);
panel.add(tgtImage);

The code above will show up a Loading... image.

Image finalImage = new Image(huge-image.png);
finalImage.addLoadListener(new LoadListener() {
  ...
  onLoad(Widget w) {
 panel.remove(tgtImage);
 panel.add(w);// w is finalImage
  }
});




--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com


On Nov 14, 8:20 am, Navdeep navdeep.maha...@gmail.com wrote:
 I have images which are big in size so i would like to display the
 animated loading gif while the main images are actually being loaded
 and once they have been loaded then display the actual image. How can
 i do the same?

-- 
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: shared src folder and default constructor

2010-11-13 Thread Gaurav Vaish
Any class that participates in GWT-RPC should have a default
constructor which is invoked during deserialization (on either size -
server and client).

The initialization code in your constructor is never trashed. It may
happen that based on the data transferred, the values would get
overwritten.

If you can post across what are you trying to accomplish, you may get
better suggestions :)


--
Happy Hacking,
Gaurav Vaish
www.mastergaurav.com


On Nov 13, 9:29 pm, d...@vide.bz davide...@gmail.com wrote:
 Hi,

 I have seen that a class that is in the shared folder should have
 no constructors or a default constructor.

 This can create problem for me, because the default constructor
 sometime initialize some structures. This initialization then
 I think is trashed, because after transfering the object from
 server to client, gwt will iniect all the values in the object.

 There is a way to handle this?

 If I for example have a method init, then i should call it explicity
 or using lazy calling in the first method call.

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



[gwt-contrib] Re: Issues 5479, 5507 and 5571 (and a few other editor-related tweaks) (issue1099801)

2010-11-13 Thread t . broyer


http://gwt-code-reviews.appspot.com/1099801/diff/1/8
File user/src/com/google/gwt/user/client/ui/NumberLabel.java (right):

http://gwt-code-reviews.appspot.com/1099801/diff/1/8#newcode34
user/src/com/google/gwt/user/client/ui/NumberLabel.java:34: }
On 2010/11/11 19:06:31, jat wrote:

On 2010/11/11 18:36:23, tbroyer wrote:
 Actually, maybe even DateLabel and NumberLabel aren't needed, as in

many cases

 I guess you'll pass a formatter, which means you'll probably use
 @UiField(provided=true) or a @UiFactory with UiBinder (which

probably defeats

 the idea of those datatype-specialized widgets)
 Or maybe they rather should only have a no-arg ctor, or a

@UiConstructor?

 And/or should the renderer be settable in ValueLabel (which would

allow using

 setters in NumberLabel and DateLabel to easily customize the format

in

 UiBinder without mandating a format, as @UiConstructor would; i.e.
 setPredefinedFormat(PredefinedFormat) and setCustomFormat(String) in
 DateLabel, and crafting an enum for a similar use in NumberLabel)


I finally went ahead and made the renderer mutable, and added convenient
setters in NumberLabel and DateLabel so they're more UiBinder-friendly
(see their JavaDoc).


UiBinder can't supply arbitrary values, such as a DateTimeFormat, can

it?


Yes, but only if they come from the Java world; you cannot express a
DateTimeFormat or NumberFormat in XML.

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

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


[gwt-contrib] Re: Would GWT and/or incubator be interested in Run Time UiBinding

2010-11-13 Thread TedM
If it is helpful here is a video of me exampling how to use the demo.

http://www.youtube.com/watch?v=wDzuS7pnYJE

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