Re: IntelliJ

2009-12-05 Thread Alexander
There is a demo from Jetbrains itself.
http://www.jetbrains.com/idea/features/gwt.html

I believe its enough to
understand how configure and run simple application in IDEA. What about
Maven integration - its not so hard just read about
http://mojo.codehaus.org/gwt-maven-plugin/

Debugger works out of the box. What problem do u have?

2009/12/6 wil.pannell 

> This follows up a prior post:  can someone with experience post a
> sample that uses GWT with IntelliJ, maybe even with Maven?
>
> There are very few examples available on the web.  I would like
> particularly to see how the hosted mode debugger can be consistently
> configured.
>
> --
>
> 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.
>
>
>


-- 
Regards,
Alexander

--

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: mozilla-hosted-browser.conf and Gentoo Linux

2009-12-05 Thread Jeff Chimene
On Sat, Dec 5, 2009 at 5:20 PM, Mary-Anne Wolf  wrote:

> I have been puzzling over your post for days.
> Thank-you, but I still do not understand.
>
> I am running GWT 1.5.3, which is <2.0 as you had guessed.
>
> I am trying to run it within Eclipse using a .launch file.
> I have an existing .launch file which is filled with Windows-specific
> pointers to libraries,  I have created a second .launch file
> which copies the first and substitutes in Linux equivalents.
> It is this second file which I am trying to use on Gentoo Linux,
> and which seems to be referencing mozilla-hosted-browser.conf.
>
> When I open the .html file using a browser from within Eclipse,
>
Don't do this when using GWT on Linux. This might be OK on Windows GWT, I
don't know. The hosted mode browser (FireFox) starts automaticatlly when you
start hosted mode.


> which I assume must be Xulrunner, without running .launch,
> I get a blank page, so I must assume that the .launch is
> setting up some essential things the plain HTML is not.
>

 If you want to see how hosted mode debugging works on Linux, please try the
StockWatcher tutorial. Considering your skill level, running that tutorial
will be a no-brainer.

>
> This is what the .launch contains:
>

I don't see a reference to mozill-hosted-browser.conf. It may be that the
reference is contained somewhere else in the 1.5 GWT development
environment. I don't know.

At this point, I'd really recommend getting the StockWatcher tutorial
running in your Gentoo environment. That will give you a feeling of
accomplishment and will provide a solid foundation to understand how to port
your app to Linux from Windows.

--

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.




IntelliJ

2009-12-05 Thread wil.pannell
This follows up a prior post:  can someone with experience post a
sample that uses GWT with IntelliJ, maybe even with Maven?

There are very few examples available on the web.  I would like
particularly to see how the hosted mode debugger can be consistently
configured.

--

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.




DockLayoutPanel inside custom DecoratorPanel

2009-12-05 Thread Will
I am trying to create a custom DecoratorPanel that will work with
DockLayoutPanel as the child widget.  I tried a normal DecoratorPanel
and found that only Widgets in the North section of the
DockLayoutPanel actually render.  I used FireBug to determine that the
rest of the widgets are added to the DOM but are simply not rendering
on the screen.
I have also tried extending DecoratorPanel and implementing
RequiresResize, ProvidesResize but that didn't help.  When I
implemented the two interfaces my onResize was as follows:
public void onResize() {
if(getWidget() instanceof RequiresResize){
((RequiresResize)getWidget()).onResize();
}
}
The if logic executes (I verified with a System.out.println) however
the North section is still the only part that renders.  The
DecoratorPanel is added to the DOM with:
RootLayoutPanel.get().add(myPanel);
I am going to test with other LayoutPanels and see if this problem is
unique to DockLayoutPanel but I was curious if anyone else has
encountered this or has any suggestions for how I might resolve the
dilemma.

--

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: Query on Google Web Toolkit (GWT)

2009-12-05 Thread Chris Ramsdale
Google has no intention of dropping support for GWT. Instead we will
continue to add features and functionality, much like we are doing with the
2.0 release of GWT. There's no reason to worry that the toolkit that you
have invested in will be deprecated.

Thanks,
Chris

On Fri, Dec 4, 2009 at 12:53 PM, Nilesh  wrote:

> Hi Everyone,
>
> I am working with one of the reputed software companies in India.
> Recently I heard from one of my friends that google would stop
> supporting GWT and start promoting Smart GWT. In our product
> technology stack we have GWT and some other applications. if google
> stops supporting GWT, what would the steps users would need to migrate
> to Smart GWT?
>
> can somebody answer my questions please?
>
> Thanks
> Nilesh
>
> --
>
> 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: geocoder.LatLng don't work

2009-12-05 Thread Eric Ayers
geocoder.getLatLng() is an asynchronous method.  Your callbacks from
geocoder.getLatLng() will not going to have a chance to get called before
your method "getAddress()" returns.

On Sat, Dec 5, 2009 at 1:12 PM, Andrea  wrote:

> Hy. I have some problem with the geocoder class.
> The method under return a empty lista otherwise if I put the
> Window.alert("") the method return the correct result.
> There is nobody that can help me? I want that the Arraylist return the
> correct result without use Window.alert
> Thanks Andrea
>
> public ArrayList getAddress(String address[]){
>geocoder.reset();
>lista.clear();
> for (int i = 0; i < address.length; i++) {
> app=address[i];
>
>geocoder.getLatLng(app, new LatLngCallback(){
>  public void onFailure(){
>  Window.alert(app + " not exist");
>  }
>  public void onSuccess(LatLng point){
> lista.add(point);
> map.addOverlay(new Marker(point));
> map.setCenter(point);
>  }
>});
> }
> lista.trimToSize();
>// Window.alert("");
>
> return lista;
> }
>
> --
>
> 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.
>
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

--

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




Re: Development Mode Firefox 64bit Linux Issue

2009-12-05 Thread Chris White
Chris

Im having the same problems, Im on debian so my Im technically running
iceweasel which is the free software version of firefox, It may be
complaining because it doesnt realise that iceweasel = firefox (Wave
does) or it may be, and that it does have the plugin installed or it
may be another issue. I really dont want to have to put non-free
software on my system like Chrome or Firefox to get GWT, do you know
of a work round, are the other chaps also on Debian?

Versions:
Iceweasel 3.0.6
Debian 5.0
Linux 64-bit
Eclipse 3.5
GWT 2 RC2

Thanks

Chris

On Dec 1, 5:28 pm, Chris Ramsdale  wrote:
> Are you using the missing plugin page to download the plugin? Also, what
> version of Firefox are you running, and on which Linux distro?
>
> - Chris
>
> On Wed, Nov 25, 2009 at 4:08 PM, andreit  wrote:
> > Same here, I am on Firefox 64bit Linux too. It fails to recognize that
> > plugin already has been installed.
> > Today I've updated plugin to to a latest version
> > 0.9.7135.20091123192202, but still facing the same issue.
>
> > On Nov 25, 10:16 am, alexmat  wrote:
> > > Dev mode starts up fine. Point firefox at the url, download and
> > > install plugin. Restart... and it asks me to install the plugin again.
> > > It is already installed though. Anyone else seeing this?
>
> > > Any advice?
>
> > --
>
> > 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.




geocoder.LatLng don't work

2009-12-05 Thread Andrea
Hy. I have some problem with the geocoder class.
The method under return a empty lista otherwise if I put the
Window.alert("") the method return the correct result.
There is nobody that can help me? I want that the Arraylist return the
correct result without use Window.alert
Thanks Andrea

public ArrayList getAddress(String address[]){
geocoder.reset();
lista.clear();
 for (int i = 0; i < address.length; i++) {
 app=address[i];

geocoder.getLatLng(app, new LatLngCallback(){
  public void onFailure(){
  Window.alert(app + " not exist");
  }
  public void onSuccess(LatLng point){
 lista.add(point);
 map.addOverlay(new Marker(point));
 map.setCenter(point);
  }
});
 }
 lista.trimToSize();
// Window.alert("");

 return lista;
 }

--

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




Cache control for host page?

2009-12-05 Thread shawnjohnson
We are trying to resolve a caching issue we are having when we deploy
our GWT app.  Currently our servers don't really set any cache control
headers, not even expires.

I've only seen one opinion on this issue - they say to set cache-
control headers for the host page and nocache.js files to no-cache
(http://seewah.blogspot.com/2009/02/gwt-tips-2-nocachejs-getting-
cached-in.html).

Our GWT app really lives in one .html file - the host page, so if
someone were using the app when we deployed a new WAR their browser
wouldn't really know it.  To me it seems that we'd want to have
clients cache for at least a while?

Is there a best practice on this?

--

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.




Query on Google Web Toolkit (GWT)

2009-12-05 Thread Nilesh
Hi Everyone,

I am working with one of the reputed software companies in India.
Recently I heard from one of my friends that google would stop
supporting GWT and start promoting Smart GWT. In our product
technology stack we have GWT and some other applications. if google
stops supporting GWT, what would the steps users would need to migrate
to Smart GWT?

can somebody answer my questions please?

Thanks
Nilesh

--

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.




Embedding a gadget into a UIObject/Panel within GWT

2009-12-05 Thread mmedvinsky
Hi All,

I am having difficulty embedding gadget script tag with a UIObject in
GWT.  Has anyone done this?  It seems obvious at first but I can not
get it to wor for some reason.

What I would like to do is to use GWT as a layout container for
gadgets and that means adding a gadget to a container, such as
Panel.

For example: this gadget.

http://www.gmodules.com/ig/ifr?url=http://
www.webblossoms.com/gge.xml&synd=open&w=300&h=330&title=Web+Blossoms+Flowers&border=%23ff%7C3px%2C1px+solid+%2399&output=js\">

Renders fine in the browser if I include it as a script tag directly
into the page, however, it does not work from within GWT.

I tried setting innerHTML, creating manual elements, etc.  Nothing
works.

Thank you for you 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: mozilla-hosted-browser.conf and Gentoo Linux

2009-12-05 Thread Mary-Anne Wolf
I have been puzzling over your post for days.
Thank-you, but I still do not understand.

I am running GWT 1.5.3, which is <2.0 as you had guessed.

I am trying to run it within Eclipse using a .launch file.
I have an existing .launch file which is filled with Windows-specific
pointers to libraries,  I have created a second .launch file
which copies the first and substitutes in Linux equivalents.
It is this second file which I am trying to use on Gentoo Linux,
and which seems to be referencing mozilla-hosted-browser.conf.

When I open the .html file using a browser from within Eclipse,
which I assume must be Xulrunner, without running .launch,
I get a blank page, so I must assume that the .launch is
setting up some essential things the plain HTML is not.

This is what the .launch contains:












"/>


"/>


"/>




"/>


"/>








While I know that using GWTShell is no longer as common in later
versions of GWT, I think it is still recommended in 1.5.3.

Mary-Anne

--

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 Eclipse Plugin: Compilation failed

2009-12-05 Thread mig

Ok, i was running JRE 1.6.0_04 which for some reasons hangs hotspot.
With JRE 1.6.0_17 and i don't have the issue anymore.

--

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: Has any one written new annotations for GWT Client side ?

2009-12-05 Thread Jamie Gennis
> Can you provide more information on the generator side and how can i
> accomplish this ?

It's not really well documented as far as I know, so the best place to get
information is by reading the source code of GWT and other libraries that
implement generators.  The basic idea is that in your .gwt.xml file you
specify an interface and a
Generatorclass.
 When the GWT compiler comes across a GWT.create(Foo.class) call
where Foo.class extends the interface you specified, it calls your Generator
class to create the implementation of that interface.  Your Generator class
can then generate the Java code for the implementation of the interface, and
an instance of that generated class will be returned by the GWT.create()
call.

This is how GWT's RPC interfaces work (see
RemoteService.gwt.xml
 and 
ServiceInterfaceProxyGenerator)
as well as many other GWT features (localization, UI binder, client
bundles).  You can also define a class that gets invoked at the GWT
compiler's link phase, but I don't think you'd need to do this just for
JSON marshaling.

Jamie

On Sat, Dec 5, 2009 at 7:10 AM, keyboard_samurai  wrote:

> Thanks for the reply ...
>
> Can you provide more information on the generator side and how can i
> accomplish this ?
>
> I would definitely look into the lovely json rpc code. Any directions
> on this would be greatly appreciated.
>
> Thank you !
>
> Cheers!
>
> On Dec 4, 9:43 pm, Jamie Gennis  wrote:
> > Annotations in client code can be used during GWT's rebind phase of the
> > compilation, but they are not accessible at runtime on the client side.
>  GWT
> > doesn't support much of Java's reflection functionality on the client
> side
> > in order to keep the compiled Javascript code smaller.
> >
> > You can write a custom generator, which can be called to create
> > implementation code for specific interfaces during the rebind phase, to
> > generate your marshaling code at compile-time.  This is the approach
> taken
> > by lovely-gwt-jsonrpc ,
> for
> > example, and is how all of GWT's built-in RPC functionality works.  You
> may
> > be able to leverage some or all of the work in that project to accomplish
> > what you're trying to do.
> >
> > Jamie
> >
> >
> >
> > On Thu, Dec 3, 2009 at 7:21 PM, keyboard_samurai 
> wrote:
> > > Hi,
> >
> > > I am a newbie to GWT. Need to know if GWT can support custom
> > > annotations on client side ?. The reason for custom annotations is i
> > > would be communicating with the backend service through json and not
> > > gwt rpc and i wouldnt like each developer to write the same piece of
> > > code. So i was planning to annotated my entity classes which can be
> > > used for marshalling and unmarshalling json response.
> >
> > > Please do let me know if this can be done in GWT.
> >
> > > Thanks in advance
> >
> > > cheers!
> >
> > > --
> >
> > > 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 cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




My app works once deployed, but not in hosted mode.

2009-12-05 Thread bcr666
I see the blank page in the hosted browser, and if I right click and
view source, the html is good. The hosted browser is not showing any
of the things I put on it though.

html file









  










Web Application Starter Project







  

  
  
  
  
  
  





  



java file

import com.google.gwt.core.client.*;
import com.google.gwt.user.client.ui.*;

/**
 * Entry point classes define onModuleLoad().
 */
public class BackOfficeServices implements EntryPoint {
  private VerticalPanel mainPanel = new VerticalPanel();
  private DockPanel titleAndToolPanel = new DockPanel();
  private ListBox toolListBox = new ListBox();
  private Label titleLabel = new Label("Back Office Services");

  /**
   * This is the entry point method.
   */
  public void onModuleLoad() {
toolListBox.addItem("Back Office Object 1");
toolListBox.addItem("Back Office Object 2");

titleAndToolPanel.add(titleLabel, DockPanel.WEST);
titleAndToolPanel.add(toolListBox, DockPanel.EAST);

mainPanel.add(titleAndToolPanel);
// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel.get("backOfficeServices").add(mainPanel);
  }
}

--

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: Full GWT Website with MS SQL Server 2008

2009-12-05 Thread julien.dram...@gmail.com
Nice web site but do you think about the search engines ??
I'm not sure that the site is optimized for google search...

On 5 déc, 11:13, Joe  wrote:
> Well, You're right Sathya,
>
> it is taking time, this is because the website contains lots of
> tables,
> horizontalpanel, htmlpanel, verticalpanel, etc ...
>
> TextBoxes on the other hand do not take long, what takes long is
> every dropdown, this is a customized widget built from scratch,
> this too needs to be optimized.
>
> The website has lot of images that load at startup, the website
> doesn't take benefit yet of the powerful GWT technique, ImageBundle.
>
> So you have lot of HTTP round trips. The listboxes, dropdowns,
> are loading their data on startup upon creation, this too, can be
> optimized
> by loading data on demand, which means on click on the drop down
> arrow.
>
> as for the structure, I am working on a new layout which is div + css,
> no tables.
>
> As soon as things get finished, i'll be posting them!
>
> Regards,
>
> Joe
> On Dec 4, 5:28 am, sathya  wrote:
>
> > Good one.But it is taking time to loak all images and text boxes.I
> > feel you can make it still fast as user doesnt feel to wait to load
> > everything
>
> > On Dec 3, 3:55 pm, Joe  wrote:
>
> > > Hi Mariyan,
>
> > > Thank's for your post, well, first, this is not a tab panel,
> > > unfortunately.
>
> > > The home page was designed in dreamweaver(HTML page) than the whole
> > > objects, I mean textboxes, images, listboxes, etc are removed, and
> > > replaced byt gwt widgets.
>
> > > So you go like:
> > > HTMLPanel homepage = new HTMLPanel("here you put your html code
> > > without the html widgets, but with IDs");
> > > then your create your widgets with styles width, etc ... then you
> > > call:
> > > homepage.add(widget, "corresponding id in the html code");
>
> > > Hope this was helpful :)
>
> > > On Dec 3, 12:23 pm, mariyan nenchev  wrote:
>
> > > > Hi,
> > > > great, keep going.
> > > > There is one thing i need to know, how did you customize this tab 
> > > > panel. I
> > > > was trying to do the same tab bars but no success with decorated panel. 
> > > > You
> > > > may show sample code :)
> > > > Regards.- 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.




Problem with JSON in Stockwatcher Sample

2009-12-05 Thread TalkinJive
Hi,

I'm new with GWT. I'm trying JSON with Stockwatcher application (with
servlet, overlay type and RequestBuilder). I've fixed the coma problem
in the JsonStockData servlet.

When I add or remove an item, method refreshWatchList call
JsonStockData servlet and everything is OK.
BUT when the timer call refreshWatchList, the servlet is not called
and the Response is always the same. So the prices don't change. No
exception is throwed !

I've found the same problem here :
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/33b64e07a9b13aba/362d25fe6524c07b?lnk=gst&q=JSON+bug#362d25fe6524c07b

Have I done an error ?
Is there a bug in Stockwatcher JSON tutorial ?
or a bug in GWT ?
Could you help me to fix that please ?

Gérald.

--

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: Has any one written new annotations for GWT Client side ?

2009-12-05 Thread keyboard_samurai
Thanks for the reply ...

Can you provide more information on the generator side and how can i
accomplish this ?

I would definitely look into the lovely json rpc code. Any directions
on this would be greatly appreciated.

Thank you !

Cheers!

On Dec 4, 9:43 pm, Jamie Gennis  wrote:
> Annotations in client code can be used during GWT's rebind phase of the
> compilation, but they are not accessible at runtime on the client side.  GWT
> doesn't support much of Java's reflection functionality on the client side
> in order to keep the compiled Javascript code smaller.
>
> You can write a custom generator, which can be called to create
> implementation code for specific interfaces during the rebind phase, to
> generate your marshaling code at compile-time.  This is the approach taken
> by lovely-gwt-jsonrpc , for
> example, and is how all of GWT's built-in RPC functionality works.  You may
> be able to leverage some or all of the work in that project to accomplish
> what you're trying to do.
>
> Jamie
>
>
>
> On Thu, Dec 3, 2009 at 7:21 PM, keyboard_samurai  wrote:
> > Hi,
>
> > I am a newbie to GWT. Need to know if GWT can support custom
> > annotations on client side ?. The reason for custom annotations is i
> > would be communicating with the backend service through json and not
> > gwt rpc and i wouldnt like each developer to write the same piece of
> > code. So i was planning to annotated my entity classes which can be
> > used for marshalling and unmarshalling json response.
>
> > Please do let me know if this can be done in GWT.
>
> > Thanks in advance
>
> > cheers!
>
> > --
>
> > 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 > cr...@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: Can anyone over here help me out in sending the email from gwt application

2009-12-05 Thread Jeff Chimene
Another technique is to create a mailto url (www.ietf.org/rfc/rfc2368.txt ).
Clicking such a link will launch the user's smtp client.


On Fri, Dec 4, 2009 at 1:42 AM, gwtfanb0y wrote:

> The way you have to go to solve your problem:
>
> 1. Build a nice GUI where the user can insert all the data (recipient,
> subject, body..) needed for sending an email
> 2. Connect this form via RPC to the server-package
> 3. Use libs like javax.mail to send the email
> 4. Return a success/failure message to the client to show the result
> of this action
>
>
> On 3 Dez., 21:17, Darpan Mhatre  wrote:
> > Can anyone over here help me out in sending the email from gwt
> > application??
> > The small snippet will be helpful.
>
> --
>
> 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.




SplitLayoutPanel - Is there a way to set splitter position programmatically?

2009-12-05 Thread shiang
Hi all,

Do you know is there any workaround solutions to set the splitter
position programmatically of a SplitLayoutPanel?
(example: HoriozontalSplitPanel has the setPosition() method but
SplitLayoutPanel does not have).

Thank you,
Shiang

--

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: Full GWT Website with MS SQL Server 2008

2009-12-05 Thread Joe
Well, You're right Sathya,

it is taking time, this is because the website contains lots of
tables,
horizontalpanel, htmlpanel, verticalpanel, etc ...

TextBoxes on the other hand do not take long, what takes long is
every dropdown, this is a customized widget built from scratch,
this too needs to be optimized.

The website has lot of images that load at startup, the website
doesn't take benefit yet of the powerful GWT technique, ImageBundle.

So you have lot of HTTP round trips. The listboxes, dropdowns,
are loading their data on startup upon creation, this too, can be
optimized
by loading data on demand, which means on click on the drop down
arrow.

as for the structure, I am working on a new layout which is div + css,
no tables.

As soon as things get finished, i'll be posting them!

Regards,

Joe
On Dec 4, 5:28 am, sathya  wrote:
> Good one.But it is taking time to loak all images and text boxes.I
> feel you can make it still fast as user doesnt feel to wait to load
> everything
>
> On Dec 3, 3:55 pm, Joe  wrote:
>
>
>
> > Hi Mariyan,
>
> > Thank's for your post, well, first, this is not a tab panel,
> > unfortunately.
>
> > The home page was designed in dreamweaver(HTML page) than the whole
> > objects, I mean textboxes, images, listboxes, etc are removed, and
> > replaced byt gwt widgets.
>
> > So you go like:
> > HTMLPanel homepage = new HTMLPanel("here you put your html code
> > without the html widgets, but with IDs");
> > then your create your widgets with styles width, etc ... then you
> > call:
> > homepage.add(widget, "corresponding id in the html code");
>
> > Hope this was helpful :)
>
> > On Dec 3, 12:23 pm, mariyan nenchev  wrote:
>
> > > Hi,
> > > great, keep going.
> > > There is one thing i need to know, how did you customize this tab panel. I
> > > was trying to do the same tab bars but no success with decorated panel. 
> > > You
> > > may show sample code :)
> > > Regards.- 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.




Re: listbox that contains widgets instead of just text..

2009-12-05 Thread Joe
Hi Jaimon,

There's a widget i have created long time ago, it's a listbox
functionality,
but where i have control on all css and styles and design of it. As
you know, the normal listbox of gwt depends on your browser look and
feel.

But the idea is simple: You need to have a textbox  with image(drop
down arrow).

Then, when you click on the image, a popup will appear below it.

The popup can contain a scrollpanel with a vertical panel.

The vertical panel can conatin any widget you want, a label, an
image,
a textbox, etc ...

Hope this will be helpful, let me know if you need any help.

Good luck,

Joe

On Dec 5, 11:00 am, Miroslav Genov  wrote:
> Ops. My mistake, wrong answer of the right question :).
>  Sorry about that.
>
>  So I think that you could define your own custom widget that is using
> several existing widgets that are looking similar to that you wanna
> build.
>  You could extend the Composite widget and to combine other several
> widgets together on it. Here is some example that would make the things
> more clear (note that code is not compiled and may contains some
> mistakes):
>
>  public class MyListBox extends Composite {
>    private Button showListButton = new Button("");
>    private MyListBoxListItemsView items = new MyListBoxListItemsView();
>
>    private HorizontalPanel container = new HorizontalPanel();
>
>    public MyListBox(MyObject[] items) {
>      initWidget(container);
>      showListButton.setStyleName("myListBoxButton"); // set background
> image and etc
>      this.items.addAll(items);
>
>      showListButton.addClickHandler(new ClickHandler() {
>         public void onClick(ClickEvent e) {
>          if (!items.showed()) {
>            items.showList();
>          } else {
>            items.hideList(); // second button click have to hide list
> items
>          }
>
>         }
>      })
>      container.add(items);
>      container.add(showListButton);    
>    }
>  }
>  and so on.
>
>  Hope this will help you to solve your issue.
>
>  Also You can look at the showcase 
> example:http://gwt.google.com/samples/Showcase/Showcase.html
> You could use Basic Popup for showing and hiding list items to the
> user.(i.e in my example:showListButton could show and hide the Basic
> Popup widget with rendered items)
>
>  Another option would be using of existing js widget and binding them
> through JSNI, but I think that it's a little bit harder then using GWT's
> widget library.
>
> Regards,
>   Miroslav
>
>
>
> On Fri, 2009-12-04 at 20:48 -0800, Jaimon wrote:
> > hi, thanks for the help :-) really learned something.
> > but my problem is more UI related, i would like to have something that
> > looks like dropdown and inside there are widgets.
> > sorry if my question was not clear..
>
> > me
>
> > On Nov 20, 7:44 am, Miroslav Genov  wrote:
> > > Hello,
> > >  You could use MVP to make things much easier and to make client code to
> > > use only objects instead of primitive widgets such as listbox.
>
> > >  Here is some example that could make things more clear:
>
> > >  // this class should be used by your code
> > >  class CustomerListBox {
> > >     interface Display {
> > >       void addListBoxItem(String item);
> > >       void removeListBoxItem(Integer index);
> > >       //.
> > >       Integer getSelectedItemIndex();
> > >     }
>
> > >     private final Display display;
> > >     private final List customers = new ArrayList();
>
> > >     public CustomerListBox(Display display) {
> > >         this.display = display;
> > >     }
>
> > >     public void addCustomer(Customer customer) {
> > >       display.addListBoxItem(customer.getCustomerName());
> > >       customers.add(customer);
> > >     }
>
> > >     public Customer getSelectedCustomer() {
> > >        return customer.get(display.getSelectedItemIndex());
> > >     }
>
> > >     public void go(HasWidgets parent) {
> > >        parent.add((Widget)display);
> > >     }
> > >  }
>
> > >  class CustomerListBoxDisplay extends Composite implements
> > > CustomerListBox.Display {
> > >      private ListBox listBox = new ListBox();
>
> > >      public CustomerListBoxDisplay() {
> > >        initWidget(listBox);
> > >      }
>
> > >      public Integer getSelectedItemIndex() {
> > >         return listBox.getSelectedIndex();
> > >      }
> > >      // and etc
>
> > >  }
>
> > > CustomerListBox customerListBox = new CustomerListBox(new
> > > CustomerListBoxDisplay());
>
> > > customerListBox.addCustomer(new Customer("1"));
> > > customerListBox.addCustomer(new Customer("2"));
>
> > > Customer selectedCustomer = customerListBox.getSelectedCustomer();
> > > and etc
>
> > > Hope this would help.
>
> > > Regards,
> > >   Miroslav
>
> > > On Thu, 2009-11-19 at 14:05 -0800, Jaimon wrote:
> > > > hi,
>
> > > > i have need to create a listbox/drop down that create something other
> > > > then just plain text,
> > > > can some one show me how to do it? or tell me if it is possible to do
> > > > it?
>
> > > > regards
> > > > Me

Re: GWT 2.0 books

2009-12-05 Thread philippe
a good book for French readers, is being prepared here :
http://www.dng-consulting.com/blogs/index.php/2009/12/04/programmation-gwt-2-bientaocirc-t-en-lib-1?blog=1

On 4 déc, 04:05, Nian Zhang  wrote:
> I expect too.
>
> On Dec 3, 8:30 am, FKereki  wrote:
>
>
>
> > Personally, I'm authoring a book on GWT 2.0 for Addison Wesley; I
> > expect the Rough Cut to be available on Safari Books Online early next
> > year.

--

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: listbox that contains widgets instead of just text..

2009-12-05 Thread Miroslav Genov
Ops. My mistake, wrong answer of the right question :).
 Sorry about that. 

 So I think that you could define your own custom widget that is using
several existing widgets that are looking similar to that you wanna
build.
 You could extend the Composite widget and to combine other several
widgets together on it. Here is some example that would make the things
more clear (note that code is not compiled and may contains some
mistakes):

 public class MyListBox extends Composite {
   private Button showListButton = new Button("");
   private MyListBoxListItemsView items = new MyListBoxListItemsView();

   private HorizontalPanel container = new HorizontalPanel();
   
   public MyListBox(MyObject[] items) {
 initWidget(container);
 showListButton.setStyleName("myListBoxButton"); // set background
image and etc
 this.items.addAll(items);

 showListButton.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent e) {
 if (!items.showed()) {
   items.showList();
 } else {
   items.hideList(); // second button click have to hide list
items
 }

}
 }) 
 container.add(items);
 container.add(showListButton);
   }
 }
 and so on. 

 Hope this will help you to solve your issue. 

 Also You can look at the showcase example:
http://gwt.google.com/samples/Showcase/Showcase.html 
You could use Basic Popup for showing and hiding list items to the
user.(i.e in my example:showListButton could show and hide the Basic
Popup widget with rendered items) 

 Another option would be using of existing js widget and binding them
through JSNI, but I think that it's a little bit harder then using GWT's
widget library.


  
Regards,
  Miroslav
On Fri, 2009-12-04 at 20:48 -0800, Jaimon wrote:
> hi, thanks for the help :-) really learned something.
> but my problem is more UI related, i would like to have something that
> looks like dropdown and inside there are widgets.
> sorry if my question was not clear..
> 
> me
> 
> On Nov 20, 7:44 am, Miroslav Genov  wrote:
> > Hello,
> >  You could use MVP to make things much easier and to make client code to
> > use only objects instead of primitive widgets such as listbox.
> >
> >  Here is some example that could make things more clear:
> >
> >  // this class should be used by your code
> >  class CustomerListBox {
> > interface Display {
> >   void addListBoxItem(String item);
> >   void removeListBoxItem(Integer index);
> >   //.
> >   Integer getSelectedItemIndex();
> > }
> >
> > private final Display display;
> > private final List customers = new ArrayList();
> >
> > public CustomerListBox(Display display) {
> > this.display = display;
> > }
> >
> > public void addCustomer(Customer customer) {
> >   display.addListBoxItem(customer.getCustomerName());
> >   customers.add(customer);
> > }
> >
> > public Customer getSelectedCustomer() {
> >return customer.get(display.getSelectedItemIndex());
> > }
> >
> > public void go(HasWidgets parent) {
> >parent.add((Widget)display);
> > }
> >  }
> >
> >  class CustomerListBoxDisplay extends Composite implements
> > CustomerListBox.Display {
> >  private ListBox listBox = new ListBox();
> >
> >  public CustomerListBoxDisplay() {
> >initWidget(listBox);
> >  }
> >
> >  public Integer getSelectedItemIndex() {
> > return listBox.getSelectedIndex();
> >  }
> >  // and etc
> >
> >  }
> >
> > CustomerListBox customerListBox = new CustomerListBox(new
> > CustomerListBoxDisplay());
> >
> > customerListBox.addCustomer(new Customer("1"));
> > customerListBox.addCustomer(new Customer("2"));
> >
> > Customer selectedCustomer = customerListBox.getSelectedCustomer();
> > and etc
> >
> > Hope this would help.
> >
> > Regards,
> >   Miroslav
> >
> > On Thu, 2009-11-19 at 14:05 -0800, Jaimon wrote:
> > > hi,
> >
> > > i have need to create a listbox/drop down that create something other
> > > then just plain text,
> > > can some one show me how to do it? or tell me if it is possible to do
> > > it?
> >
> > > regards
> > > 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=.
> 
> --
> 
> 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.
> 
> 


--