Re: making gwtext's toolbarbutton ICON appear

2009-04-01 Thread Mark RG Itol

Hi guys,

I'm also having the same problem. setIconCls() works on menu items,
though.
The style names I used on the invocations to setIconCls on both the
ToolbarButton and the Item (menu)
are contained in the same css file.
I hope you guys can shed light on this one.

Thanks in advance.

On Feb 17, 4:32 pm, ytbryan  wrote:
> i have this toolbarbutton and its method setIconCls();
>
>    1.     ToolbarButton button_daily_View = new ToolbarButton("Daily
> View");
>    2.       button_daily_View.setIconCls("database-add-icon");
>
> ToolbarButton button_daily_View = new ToolbarButton("Daily View");
> button_daily_View.setIconCls("database-add-icon");
>
> at the css, i have this:
>
>    1. .database-add-icon{
>    2.         background-image:url(images/database_add.png);
>    3.
>    4. }
>
> .database-add-icon{ background-image:url(images/database_add.png); }
>
> but the icon don't appear. I am not sure what went wrong. maybe it's
> not the gwt fault but i cannot pin-point where is the error? can
> someone advise me ? I attached a picture ( circled the point where
> icon supposed to be) THANKS alot!!
>
> picture 
> herehttp://www.quickfilepost.com/download.do?get=ed4f75339f725d64633f905d

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: A thought about GWT project structure

2009-04-01 Thread Miroslav Genov

Hello,

Which means that you are using java as a server side language ?
If yes, what library you are using for json ?

Regards,
  Miroslav

flyingb...@gmail.com wrote:
> Well my gwt project I seperated the client and server side. The main
> thing that is possible if it was one project is passing objects
> stright to the server.
>
> So my project use json to create objects when the client ask for stuff
> from the server.
>
> There might be ways to have the object passing but I not sure how to
> do that.
>
> On Apr 1, 12:27 pm, Ken  wrote:
>   
>> In GWT recommended project structure, client code and server code are
>> placed in one project. I find this structure is not so development-
>> friendly in practice. (GWT 1.6 has some new update to the project
>> structure to make it more like standard WAR project, but client and
>> server code are still in one project.)
>>
>> Client code will be eventually compiled to Javascript and run on web
>> browser. Server code will run on web server. These two parts of code
>> shouldn’t reference to each other. The only connection between them
>> should be the RPC interface (sub-interfaces of RemoteService) and DTOs
>> (the Java objects get transmitted between client and server). Any
>> attempt to let your widget reference to an RPC implementation Servlet
>> or let the Servlet reference to a widget is wrong. However, your Java
>> compiler (not GWT compiler) can not detect this kind of error, as
>> these Java classes are all in the same project, and they are “allowed”
>> to reference to each other. You can’t detect the error either in
>> hosted mode, because client and server code run in same JVM in hosted
>> mode. You only can find out half the issue when you call GWTCompiler
>> (Compiler in GWT 1.6) to translate the client to Javascript. I say
>> half because GWTCompiler only shows you the toxic references from
>> client to server, but not the other way.
>>
>> A solution would be to have three projects instead of one:
>> MyProjectRpc
>> MyProjectGwt
>> MyProjectWeb
>>
>> MyProjectRpc is a GWT module. It only contains RemoteService
>> interfaces and DTOs. It has no UI or widgets.
>> MyProjectGwt is your client module. It inherits MyProjectRpc, and
>> contains widgets. MyProjectGwt’s Java build path includes
>> MyProjectRpc.
>> MyProjectWeb is your server project. It is a standard WAR project.
>> Your RPC implementation servlets go here. Its Java build path includes
>> MyProjectRpc.
>>
>> Therefore, both MyProjectGwt and MyProjectWeb reference to
>> MyProjectRpc only. If your widgets incidentally reference to a
>> servlet, Eclipse (Java compiler) will tell you right away.
>>
>> To make above solution work, you need to configure GWTCompiler to
>> output to MyProjectWeb instead of the default folder www. (-out
>> argument will do the job.) You also need to run your own web server
>> for hosted mode instead of GWT’s internal Tomcat. (Pass –noserver to
>> GWTShell.)
>>
>> There may be better way to do it. Please share your idea for a better
>> project structure. I would appreciate if developers from Google could
>> provide 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-Toolkit@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: What is the easier way to deploy a GWT application to Tomcat using Eclipse?

2009-04-01 Thread alex.d

Ant is definitely worth to take a look at. I'm using it to make my war-
file. After that i have to upload/copy it to webapps-folder -
deploying complete!

On 1 Apr., 19:42, tetsuo  wrote:
> try using the jboss as tools you can download them in eclipse via
> "software update" maybe that link helps 
> youhttp://www.jboss.org/tools/download.html
>
> after the restart of eclipse you can use another view, where you can
> bind the tomcat server and deploy your stuff (hot or not) anyhow, try
> to spend a minute on the ant, it helps you to pack it all together in
> a war file (like eclipse is doing it for you ) but independently from
> the eclipse configs ;) so every can do that for you, if your once
> configured the build.xml
>
> haphe phun
>
> On 1 Apr., 19:36, Fabrício Cabral  wrote:
>
> > Hello all,
>
> > I'm using Eclipse Ganymede (latest), JDK 6 update 13, Tomcat 6.0.18
> > and GWT 1.5.3.
>
> > So, I'm looking for the easier way to deploy a GWT application to Tomcat
> > usint Eclipse IDE. If I use the projectCreator/applicationCreator commands,
> > I can't do the Export -> WAR file, because Eclipse doesn't recognize the
> > project as a Dynamic Web Project.
>
> > I've tryed use the Cypal Studio 1.0 and gwt-tooling plugins but they have
> > several bugs and don't do what I want.
>
> > So, does anyone know what is the easier way to deploy a GWT application
> > to a Tomcat 6 using Eclipse IDE?
>
> > Thanks in advance,
>
> > --fx
>
>
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: PopupPanel Align Right

2009-04-01 Thread alex.d

Well, once set, the position of the popup doesn't change by itself
when the window is resized. Why should it? You have to listen to the
"resize of window"-event and set the position of the popup manually.
Don't remeber the exact code lines - but you'll find plenty of
examples in this user group - just use search ;-)

On 2 Apr., 01:04, WebDude  wrote:
> Is it possible to align a PopupPanel with the right side of the window
> or the right side of a panel?
>
> I know that it could be done by getting the size of the window and
> setting the position of the PopupPanel based on that.  However, if
> window is re-sized, the popup won't move with the re-size.  This would
> be a simple "align: right" style attribute in CSS, but it gets ignored
> every time that I try to use it with a PopupPanel.
>
> 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-Toolkit@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: Help with Byte Array to PDF

2009-04-01 Thread Carl Pritchett

Hi,

You need to not use the embedded tomcat server and point the hosted
mode to your real server (e.g. localhost:8080).

You do this using the -noserver option passed to the GWTShell.

See this reference:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=google-web-toolkit-doc-1-5&t=FAQ_HostedModeNoServer

Regards,
Carl.

On Feb 18, 12:30 pm, koko  wrote:
> Can anyonehelp?
>
> On 2月17日, 下午4时37分, koko  wrote:
>
> > Hi Ginger:
> > Thanks a lot for your kindhelp:)
> > Yeah that's what I really want to do.
> > but there is still a problem, now I am just in development period, how
> > can I write a servlet that can share the session with GWT project ?
> > For now they are using different port and probably different tomcat?
> > Also my textara contains some of the pictures, can I get them in the
> >PDFas well?
> > when I get the content of textarea I just use textarea.gettext();
>
> > Thanks a lot for yourhelp!
>
> > Regards.
>
> > On 2月17日, 上午9时53分, ginger_ninja  wrote:
>
> > > Hi koko,
>
> > > Ian is right, I encountered this exact same problem on the project I'm
> > > currently working on. In your case it sounds like you want to send
> > > some data from a textarea over to the server and put some dynamic
> > > content in thePDF, is that right?
>
> > > The best solution I've found is to separate what you're doing into two
> > > stages. The first stage I call the preparation stage. The preparation
> > > stage involves preparing the data create thePDFfrom and storing it
> > > somewhere temporarily, in my case I used the user's session. Once the
> > > data is prepared and stored away you can safely complete the RPC
> > > call.
>
> > > The second stage is what I call the generation or retrieval stage.
> > > This involves actually generating and retrieving thePDFusing the
> > > data that was previously stored in the session. This stage is
> > > triggered in the onSuccess callback method of the previous RPC call.
> > > Really all that needs to be done inside the onSuccess method is to
> > > open a new window and point the window.location property to the URL of
> > > the servlet you're going to create. Using Ian's technique you can
> > > write a simple servlet like he said, generate thePDFusing the stored
> > > data, and set the content type to application/pdfbefore writing the
> > >bytestream to the servlet's output stream (you can find this inside
> > > the HttpResponse object). This will tell the browser that aPDFis
> > > coming it's way and it will automatically handle it appropriately.
>
> > > Dave
>
> > > On Feb 17, 11:54 am, koko  wrote:
>
> > > > Thanks Ian, I had tried this way, but what how should I post my data
> > > > in textarea to the server side? I encounter like SOP errors, for my
> > > > tomcat runs on port 8080, while GWT on , I also tried to set in
> > > > the same port , won't work, can you teach me how to configure or
> > > > set in detail, I am doing this for my project, thanks for a lot!
> > > > Regards.
>
> > > > On 2月17日, 上午12时34分, Ian Petersen  wrote:
>
> > > > > On Mon, Feb 16, 2009 at 4:05 PM, koko  wrote:
> > > > > > I have a problem with convertingbytearraytopdffile, this will be
> > > > > > processing in the client side.
> > > > > > in my project thePDFfile was constructed by the content in the
> > > > > > textarea which user type in, after user pressPDFbutton it will
> > > > > > trigger RPC call and getbytearrayresponse from server side,
> > > > > > actually it was aPDFfile, I want to shown it to the user and let
> > > > > > them download.
> > > > > > Now after RPCbytearraywas stored in variable called result, what
> > > > > > should I do next? Can anyonehelpme please..
>
> > > > > That approach won't work.  To serve aPDFto the user, write a servlet
> > > > > that spits out thePDF, annotated with the appropriate Content-Type
> > > > > header.  When the user presses thePDFbutton, either open a new
> > > > > window or display an iframe and, in either case, set the URL for the
> > > > > new window to be the address of yourPDF-generating servlet.  If you
> > > > > want to prompt the user to save thePDFto disk rather than displaying
> > > > > it the browser, set the Content-Disposition header appropriately.  (I
> > > > > forget what value you need there, but you should be able to find it
> > > > > with a good search engine.)
>
> > > > > Ian
>
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gwt

2009-04-01 Thread jagadesh

Thank 's Adam

i will work 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-Toolkit@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: Announcing GWT 1.6 RC2

2009-04-01 Thread Дмитрий Николаев

"ant clean" not helped

On 2 апр, 01:07, Scott Blum  wrote:
> 2009/4/1 Дмитрий Николаев 
>
> > $ ant build
> > Buildfile: build.xml
>
> > libs:
>
> > javac:
> >    [javac] Compiling 8 source files to
> > /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/war/WEB-INF/classes
>
> Compiling 8 source files?
>
> Can you do an "ant clean" and see if that fixes it?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@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 template

2009-04-01 Thread asianCoolz

which template library do u folks recommend ?

i found few at http://code.google.com/p/gwt-templates/
http://jawspeak.com/2008/11/29/introducting-jaws-very-simple-gwt-html-template/


which one is more flexible?
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why not use applets?

2009-04-01 Thread Adligo

I have to agree after many years writing applets, web start or
otherwise there just a pain to get installed sometimes (perhaps due to
microsoft perhaps not).  Jnlp will throw different exceptions on
different os's exc.  For example
http://www.adligo.com/#treedemo
Bottom swing link, worked fine on IE, Firefox, WinXp, Mac 10, RH 8 now
on Windows Vista 64 it chokes (IE and FireFox), and I could sort of
care less.  I think GWT is the best way to write thin client java
(javascript).

Google is right 'The Browser is the Platform', 'Java is the best
language'.

Even with some of the kinks in different compliers jvms, lack of
Thread Safe sharable SimpleDateParsers exc.., it is one of the most
readable and commonly understood syntaxes.  Thats probably why C# (the
new microsoft .net language) looks so similar.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: integrate geoIP+google map

2009-04-01 Thread asianCoolz

by the way is the only availble source is maxmind or there are other
free provider?

On Apr 2, 10:11 am, asianCoolz  wrote:
> is there any pre-built library availble for GWT ? or maybe sample?
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Back & Refresh button handling

2009-04-01 Thread Vitali Lovich
Oh, and your requirement seems like premature optimization or you need to
rethink your architecture.

There is no way that keeping track of a session handle should be taking up
any memory on the client side.  You should be using database for your
persistance layer - the database should cache your most frequently used
sessions for you.

The approach I like is I try to keep the server stateless - all the state
goes into the client with the server simply validating & storing/fetching
data & a simple RPC layer for session authorization (which is just a
randomly generated ID stored in the database with information needed for
authorization - the session id gets passed as a cookie although the GWT gods
say to not use cookies for security reasons & instead pass it directly in
the RPC code) & calling the backend.

On Wed, Apr 1, 2009 at 10:09 PM, Vitali Lovich  wrote:

> GWT is javascript.  You can leverage all your Javascript code from the GWT
> framework.  That being said, you're pretty much SOL on notifying the server
> on a page refresh.  I believe, although not 100% sure, that you cannot do
> anything* while the page is closing (which is what happens from the
> perspective of Javascript).
>
> The ONLY one that can detect the client closing is the server through a
> heartbeat (in other words, you can only approximate - and if you're wrong
> you've got to handle it gracefully on the client side by informing them
> their session timed out).
>
> * DOM manipulation & any kind of network communication.
>
> http://www.telerik.com/help/aspnet-ajax/ajxmozillacancelrequest.html
>
>
> On Wed, Apr 1, 2009 at 4:58 PM, bigtruckdriver wrote:
>
>>
>> I do have some server-side cleanup functionality which is basically a
>> session expiry, but this application is going to be needing every
>> advantage it can get in terms of server memory, so I need this close
>> window cleanup to occur as well (even though it's not a guarantee that
>> it will work every time, as Luke mentioned).
>> I think the only solution here is to call some javascript outside GWT
>> that can detect a page refresh.
>>
>> On Mar 27, 3:58 pm, Vitali Lovich  wrote:
>> > The way I solve this is that a timer on the server cleans up sessions
>> > that haven't had activity in a while.
>> >
>> > It's a little bit simpler for me since I have a stateless setup with
>> > the session id simply being used for authentication purposes.
>> >
>> > I think that's the most robust approach - you don't need to maintain
>> > complicated state information in the server.  You simply have a
>> > permissions based approach as to whether or not a user is allowed to
>> > modify global resources & the client-side takes care of state.
>> >
>> > On Fri, Mar 27, 2009 at 4:23 PM, lukehashj 
>> wrote:
>> >
>> > > You can not rely on this event being raised before the browser is
>> > > closed. You can use the onunload="someJavascript()" on your body tag
>> > > and then some JSNI to call your google code.
>> >
>> > > Here's the problem: the event gets raised, and you start doing your
>> > > work. The window gets closed before you finish doing your work, and
>> > > your rpc never completes and the server never knows.
>> >
>> > > I'd say at best you get a 50% success rate with the window close
>> > > events :)
>> >
>> > > -luke
>> >
>> > > On Mar 26, 3:58 pm,bigtruckdriver wrote:
>> > >> I'm in a similar predicament, perhaps you might have an idea of what
>> > >> to do.
>> >
>> > >> When the user closes the browser window, I want the application to
>> > >> logout his/her session automatically so as to free up memory on the
>> > >> server from their session. So I use the onWindowClosed() function to
>> > >> take care of this... But when the page is refreshed, the session gets
>> > >> logged out as well through the same function. This is something I
>> want
>> > >> to stop from happening. Any suggestions?
>> >
>> > >> On Mar 15, 9:26 am, Rohit  wrote:
>> >
>> > >> > Hi
>> > >> > There is no way in GWT to distinguish betweenRefreshbuttonclick and
>> > >> > Window closebuttonclick. But you can trackrefreshbuttonwith a
>> > >> > little trick. You should use a time cookie which will expire after
>> > >> > some time. So whenrefreshbuttonis pressed, in on module load of
>> > >> > entry point , track the value of this cokkie, if this cookie is
>> still
>> > >> > alive, this meansrefreshbuttonis pressed. The time this cookie will
>> > >> > expired should be considered. It should be very little.
>> >
>> > >> > Second for history, you should save your information in Session on
>> > >> > window close and then ifrefreshbuttonis pressed, get your
>> > >> > information from this session.
>> >
>> > >> > Thanks and regards
>> >
>> > >> > Rohit
>> >
>> > >> > On Mar 14, 2:30 am, "levi.bracken"  wrote:
>> >
>> > >> > > You can restore state, but it's a bit more work than just using
>> GWT
>> > >> > > History.  Basically you'll need to come up with some way of
>> modifying
>> > >> > > the url search parameter (stuff

integrate geoIP+google map

2009-04-01 Thread asianCoolz

is there any pre-built library availble for GWT ? or maybe sample?
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Back & Refresh button handling

2009-04-01 Thread Vitali Lovich
GWT is javascript.  You can leverage all your Javascript code from the GWT
framework.  That being said, you're pretty much SOL on notifying the server
on a page refresh.  I believe, although not 100% sure, that you cannot do
anything* while the page is closing (which is what happens from the
perspective of Javascript).

The ONLY one that can detect the client closing is the server through a
heartbeat (in other words, you can only approximate - and if you're wrong
you've got to handle it gracefully on the client side by informing them
their session timed out).

* DOM manipulation & any kind of network communication.

http://www.telerik.com/help/aspnet-ajax/ajxmozillacancelrequest.html

On Wed, Apr 1, 2009 at 4:58 PM, bigtruckdriver wrote:

>
> I do have some server-side cleanup functionality which is basically a
> session expiry, but this application is going to be needing every
> advantage it can get in terms of server memory, so I need this close
> window cleanup to occur as well (even though it's not a guarantee that
> it will work every time, as Luke mentioned).
> I think the only solution here is to call some javascript outside GWT
> that can detect a page refresh.
>
> On Mar 27, 3:58 pm, Vitali Lovich  wrote:
> > The way I solve this is that a timer on the server cleans up sessions
> > that haven't had activity in a while.
> >
> > It's a little bit simpler for me since I have a stateless setup with
> > the session id simply being used for authentication purposes.
> >
> > I think that's the most robust approach - you don't need to maintain
> > complicated state information in the server.  You simply have a
> > permissions based approach as to whether or not a user is allowed to
> > modify global resources & the client-side takes care of state.
> >
> > On Fri, Mar 27, 2009 at 4:23 PM, lukehashj  wrote:
> >
> > > You can not rely on this event being raised before the browser is
> > > closed. You can use the onunload="someJavascript()" on your body tag
> > > and then some JSNI to call your google code.
> >
> > > Here's the problem: the event gets raised, and you start doing your
> > > work. The window gets closed before you finish doing your work, and
> > > your rpc never completes and the server never knows.
> >
> > > I'd say at best you get a 50% success rate with the window close
> > > events :)
> >
> > > -luke
> >
> > > On Mar 26, 3:58 pm,bigtruckdriver wrote:
> > >> I'm in a similar predicament, perhaps you might have an idea of what
> > >> to do.
> >
> > >> When the user closes the browser window, I want the application to
> > >> logout his/her session automatically so as to free up memory on the
> > >> server from their session. So I use the onWindowClosed() function to
> > >> take care of this... But when the page is refreshed, the session gets
> > >> logged out as well through the same function. This is something I want
> > >> to stop from happening. Any suggestions?
> >
> > >> On Mar 15, 9:26 am, Rohit  wrote:
> >
> > >> > Hi
> > >> > There is no way in GWT to distinguish betweenRefreshbuttonclick and
> > >> > Window closebuttonclick. But you can trackrefreshbuttonwith a
> > >> > little trick. You should use a time cookie which will expire after
> > >> > some time. So whenrefreshbuttonis pressed, in on module load of
> > >> > entry point , track the value of this cokkie, if this cookie is
> still
> > >> > alive, this meansrefreshbuttonis pressed. The time this cookie will
> > >> > expired should be considered. It should be very little.
> >
> > >> > Second for history, you should save your information in Session on
> > >> > window close and then ifrefreshbuttonis pressed, get your
> > >> > information from this session.
> >
> > >> > Thanks and regards
> >
> > >> > Rohit
> >
> > >> > On Mar 14, 2:30 am, "levi.bracken"  wrote:
> >
> > >> > > You can restore state, but it's a bit more work than just using
> GWT
> > >> > > History.  Basically you'll need to come up with some way of
> modifying
> > >> > > the url search parameter (stuff after the #) to include some info
> so
> > >> > > that you can bring the userbackinto the same state as they were
> > >> > > before.   For example, if your application has a number of screens
> and
> > >> > > they were on screen foo, which was loading with properties for an
> item
> > >> > > with id 10 then you'd need that information in the Url.
> >
> > >> > > ex:  http://yourApp.com/gwtHostPage.html#screen=foo_id=10
> >
> > >> > > You could also put a conversation id in the url param and then
> keep
> > >> > > the fine details cached on the server, but that makes the
> state/data
> > >> > > more transient. If you go with an option like this though it can
> help
> > >> > > make your pages open and work in other tabs and even make points
> in
> > >> > > your application bookmark'able'.
> >
> > >> > > Now for the easy answer, yes you can just prevent the user from
> > >> > > carelessly clickingrefresh.  Fortunately there isn't a way to trap
> > >> > > somebody on a webp

Re: Define a javax.sql.DataSource in GWT 1.6 RC2

2009-04-01 Thread polbat02

By the way, the error I get is this one:
javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext
(NamingManager.java:645)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:
288)
at javax.naming.InitialContext.getURLOrDefaultInitCtx
(InitialContext.java:325)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.tamariu.server.util.ApartmentConnectionPool.
(ApartmentConnectionPool.java:19)
at com.tamariu.server.util.ApartmentConnectionPool.getInstance
(ApartmentConnectionPool.java:31)
at
com.tamariu.server.util.ApartmentInformationReciever.getAllApartments
(ApartmentInformationReciever.java:56)
at com.tamariu.server.ApartmentListServiceImpl.getApartments
(ApartmentListServiceImpl.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:362)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.RequestLogHandler.handle
(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)

On 2 abr, 02:31, polbat02  wrote:
> My question is simple... how do I define a new DataSource (to connect
> to a DataBase) in Hosted Mode in the new GWT 1.6 RC2??
> I tried with this in a jetty-env.xml file and in a context.xml file:
>         
>                 My DataSource Reference
>                 jdbc/apartments
>                 javax.sql.DataSource
>                 Container
>         
>
>         
>                 
>                 jdbc/apartments
>                 
>                         
>                                  name="driverClassName">com.mysql.jdbc.Driver
>                                  name="factory">org.apache.commons.dbcp.BasicDataSourceFactory
>                                 
>                                         
> jdbc:mysql://**?autoReconnect=true
>                                 
>                                 
>                         
>                 
>         
>
> I also tried with this in a typical tomcat style context.xml file:
> 
> 
>          type="javax.sql.DataSource" />
>         
>                 
>                         factory
>                         org.apache.commons.dbcp.BasicDataSourceFactory
>                         
>                 
>                 
>                         username
>                         ***
>                 
>                 
>                         password
>                         ***
>                 
>                 
>                         driverClassName
>                         com.mysql.jdbc.Driver
>                 
>                 
>                         url
>                         jdbc:mysql://**?autoReconnect=true
>                         
>                 
>         
> 
>
> It was working just fine before updating 

Define a javax.sql.DataSource in GWT 1.6 RC2

2009-04-01 Thread polbat02

My question is simple... how do I define a new DataSource (to connect
to a DataBase) in Hosted Mode in the new GWT 1.6 RC2??
I tried with this in a jetty-env.xml file and in a context.xml file:

My DataSource Reference
jdbc/apartments
javax.sql.DataSource
Container




jdbc/apartments


com.mysql.jdbc.Driver
org.apache.commons.dbcp.BasicDataSourceFactory


jdbc:mysql://**?autoReconnect=true






I also tried with this in a typical tomcat style context.xml file:





factory
org.apache.commons.dbcp.BasicDataSourceFactory



username
***


password
***


driverClassName
com.mysql.jdbc.Driver


url
jdbc:mysql://**?autoReconnect=true





It was working just fine before updating to 1.6 modifying the ROOT.xml
file in the tomcate lite directory.

I would REALLY appreciate any 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-Toolkit@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
-~--~~~~--~~--~--~---



PopupPanel Align Right

2009-04-01 Thread WebDude

Is it possible to align a PopupPanel with the right side of the window
or the right side of a panel?

I know that it could be done by getting the size of the window and
setting the position of the PopupPanel based on that.  However, if
window is re-sized, the popup won't move with the re-size.  This would
be a simple "align: right" style attribute in CSS, but it gets ignored
every time that I try to use it with a PopupPanel.

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-Toolkit@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
-~--~~~~--~~--~--~---



can inlineHTML be used to load static HTML pages?

2009-04-01 Thread myapplicationquestions

can inlineHTML be used to load static HTML pages? I want to harness
the power of HTML designing tools to generate static HTML but use GWT
to load the widget. Please note that there may be some actions defined
in static html.

Basically my application has number of widgets some of which are coded
through GWT but some of them are really snippets of static html but
they too have to be interactive.

Also can i embed some GWT elements within the inlineHTML if i want to?
For example i can have an HTMl like


 some statis text and a logo

 some statis text and a logo



once i load the static html i need to be able to change markerforgwt
with any gwt element. Is that possible in GWT?

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-Toolkit@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: A thought about GWT project structure

2009-04-01 Thread flyingb...@gmail.com

Well my gwt project I seperated the client and server side. The main
thing that is possible if it was one project is passing objects
stright to the server.

So my project use json to create objects when the client ask for stuff
from the server.

There might be ways to have the object passing but I not sure how to
do that.

On Apr 1, 12:27 pm, Ken  wrote:
> In GWT recommended project structure, client code and server code are
> placed in one project. I find this structure is not so development-
> friendly in practice. (GWT 1.6 has some new update to the project
> structure to make it more like standard WAR project, but client and
> server code are still in one project.)
>
> Client code will be eventually compiled to Javascript and run on web
> browser. Server code will run on web server. These two parts of code
> shouldn’t reference to each other. The only connection between them
> should be the RPC interface (sub-interfaces of RemoteService) and DTOs
> (the Java objects get transmitted between client and server). Any
> attempt to let your widget reference to an RPC implementation Servlet
> or let the Servlet reference to a widget is wrong. However, your Java
> compiler (not GWT compiler) can not detect this kind of error, as
> these Java classes are all in the same project, and they are “allowed”
> to reference to each other. You can’t detect the error either in
> hosted mode, because client and server code run in same JVM in hosted
> mode. You only can find out half the issue when you call GWTCompiler
> (Compiler in GWT 1.6) to translate the client to Javascript. I say
> half because GWTCompiler only shows you the toxic references from
> client to server, but not the other way.
>
> A solution would be to have three projects instead of one:
> MyProjectRpc
> MyProjectGwt
> MyProjectWeb
>
> MyProjectRpc is a GWT module. It only contains RemoteService
> interfaces and DTOs. It has no UI or widgets.
> MyProjectGwt is your client module. It inherits MyProjectRpc, and
> contains widgets. MyProjectGwt’s Java build path includes
> MyProjectRpc.
> MyProjectWeb is your server project. It is a standard WAR project.
> Your RPC implementation servlets go here. Its Java build path includes
> MyProjectRpc.
>
> Therefore, both MyProjectGwt and MyProjectWeb reference to
> MyProjectRpc only. If your widgets incidentally reference to a
> servlet, Eclipse (Java compiler) will tell you right away.
>
> To make above solution work, you need to configure GWTCompiler to
> output to MyProjectWeb instead of the default folder www. (-out
> argument will do the job.) You also need to run your own web server
> for hosted mode instead of GWT’s internal Tomcat. (Pass –noserver to
> GWTShell.)
>
> There may be better way to do it. Please share your idea for a better
> project structure. I would appreciate if developers from Google could
> provide 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-Toolkit@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: Announcing GWT 1.6 RC2

2009-04-01 Thread Scott Blum
2009/4/1 Дмитрий Николаев 

> $ ant build
> Buildfile: build.xml
>
> libs:
>
> javac:
>[javac] Compiling 8 source files to
> /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/war/WEB-INF/classes


Compiling 8 source files?

Can you do an "ant clean" and see if that fixes it?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@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: Back & Refresh button handling

2009-04-01 Thread bigtruckdriver

I do have some server-side cleanup functionality which is basically a
session expiry, but this application is going to be needing every
advantage it can get in terms of server memory, so I need this close
window cleanup to occur as well (even though it's not a guarantee that
it will work every time, as Luke mentioned).
I think the only solution here is to call some javascript outside GWT
that can detect a page refresh.

On Mar 27, 3:58 pm, Vitali Lovich  wrote:
> The way I solve this is that a timer on the server cleans up sessions
> that haven't had activity in a while.
>
> It's a little bit simpler for me since I have a stateless setup with
> the session id simply being used for authentication purposes.
>
> I think that's the most robust approach - you don't need to maintain
> complicated state information in the server.  You simply have a
> permissions based approach as to whether or not a user is allowed to
> modify global resources & the client-side takes care of state.
>
> On Fri, Mar 27, 2009 at 4:23 PM, lukehashj  wrote:
>
> > You can not rely on this event being raised before the browser is
> > closed. You can use the onunload="someJavascript()" on your body tag
> > and then some JSNI to call your google code.
>
> > Here's the problem: the event gets raised, and you start doing your
> > work. The window gets closed before you finish doing your work, and
> > your rpc never completes and the server never knows.
>
> > I'd say at best you get a 50% success rate with the window close
> > events :)
>
> > -luke
>
> > On Mar 26, 3:58 pm,bigtruckdriver wrote:
> >> I'm in a similar predicament, perhaps you might have an idea of what
> >> to do.
>
> >> When the user closes the browser window, I want the application to
> >> logout his/her session automatically so as to free up memory on the
> >> server from their session. So I use the onWindowClosed() function to
> >> take care of this... But when the page is refreshed, the session gets
> >> logged out as well through the same function. This is something I want
> >> to stop from happening. Any suggestions?
>
> >> On Mar 15, 9:26 am, Rohit  wrote:
>
> >> > Hi
> >> > There is no way in GWT to distinguish betweenRefreshbuttonclick and
> >> > Window closebuttonclick. But you can trackrefreshbuttonwith a
> >> > little trick. You should use a time cookie which will expire after
> >> > some time. So whenrefreshbuttonis pressed, in on module load of
> >> > entry point , track the value of this cokkie, if this cookie is still
> >> > alive, this meansrefreshbuttonis pressed. The time this cookie will
> >> > expired should be considered. It should be very little.
>
> >> > Second for history, you should save your information in Session on
> >> > window close and then ifrefreshbuttonis pressed, get your
> >> > information from this session.
>
> >> > Thanks and regards
>
> >> > Rohit
>
> >> > On Mar 14, 2:30 am, "levi.bracken"  wrote:
>
> >> > > You can restore state, but it's a bit more work than just using GWT
> >> > > History.  Basically you'll need to come up with some way of modifying
> >> > > the url search parameter (stuff after the #) to include some info so
> >> > > that you can bring the userbackinto the same state as they were
> >> > > before.   For example, if your application has a number of screens and
> >> > > they were on screen foo, which was loading with properties for an item
> >> > > with id 10 then you'd need that information in the Url.
>
> >> > > ex:  http://yourApp.com/gwtHostPage.html#screen=foo_id=10
>
> >> > > You could also put a conversation id in the url param and then keep
> >> > > the fine details cached on the server, but that makes the state/data
> >> > > more transient. If you go with an option like this though it can help
> >> > > make your pages open and work in other tabs and even make points in
> >> > > your application bookmark'able'.
>
> >> > > Now for the easy answer, yes you can just prevent the user from
> >> > > carelessly clickingrefresh.  Fortunately there isn't a way to trap
> >> > > somebody on a webpage (think about how bad the web would be).   But,
> >> > > you can use the WindowCloseListener to present a user with a
> >> > > confirmation before they close the window, navigate to a new page, or
> >> > > hitrefresh.  It'd look something like this (not tested):
>
> >> > > /
> >> > > Window.addWindowCloseListener(
> >> > >   new WindowCloseLisener(){
>
> >> > >     public String onWindowClosing(){
> >> > >       return "Are you sure you want to leave this application?";
> >> > >     }
>
> >> > >     public void onWindowClosed(){
> >> > >         // Cleanup if need be
> >> > >      }});
>
> >> > > 
>
> >> > > On Mar 13, 2:52 pm, dodo  wrote:
>
> >> > > > GWT provides History.onHistoryChange event to handle history but how
> >> > > > can we restore application state when a user clicks onRefreshbutton?
> >> > > > For example the user performed multiple actions on the web s

GWT Programmer Wanted

2009-04-01 Thread mike177

Hello,
We are looking for an exprienced GWT developper with visible
references to work on www.homeprodigy.com. This might develop into a
long term relationship once this project is completed.

Please contact me with expected hourly rate to discuss.

Thanks,
Mike


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 - How do I change the default "war" directory name

2009-04-01 Thread Jan

Thank you very much! That's easier than expected.

Best regards,

Jan.

On Apr 1, 5:36 pm, Jason Essington  wrote:
> use the switch -war WebContent
>
> -jason
>
> On Apr 1, 2009, at 12:46 AM, Jan wrote:
>
>
>
> > Dear GWT community,
>
> > I am considering using GWT 1.6 in a project, but have one major
> > concern: GWT 1.6 no longer places the public files (like the host page
> > or the module XML) in the "public" sub directory of the root package
> > but inside a "war/module" directory.
>
> > As all my projects already exist and e.g. use "WebContent" or "Web"
> > etc. as root for the directory containing all the static content, it
> > would be nice to reuse the existing structure.
>
> > My question is therefore: Is there a way to change the default
> > directory name "war" to something else. I would be surprised if not,
> > but I haven't found any info in the GWT documentation pages. It would
> > be great if someone could help me.
>
> > Thanks in advance,
>
> > Jan.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



A thought about GWT project structure

2009-04-01 Thread Ken

In GWT recommended project structure, client code and server code are
placed in one project. I find this structure is not so development-
friendly in practice. (GWT 1.6 has some new update to the project
structure to make it more like standard WAR project, but client and
server code are still in one project.)

Client code will be eventually compiled to Javascript and run on web
browser. Server code will run on web server. These two parts of code
shouldn’t reference to each other. The only connection between them
should be the RPC interface (sub-interfaces of RemoteService) and DTOs
(the Java objects get transmitted between client and server). Any
attempt to let your widget reference to an RPC implementation Servlet
or let the Servlet reference to a widget is wrong. However, your Java
compiler (not GWT compiler) can not detect this kind of error, as
these Java classes are all in the same project, and they are “allowed”
to reference to each other. You can’t detect the error either in
hosted mode, because client and server code run in same JVM in hosted
mode. You only can find out half the issue when you call GWTCompiler
(Compiler in GWT 1.6) to translate the client to Javascript. I say
half because GWTCompiler only shows you the toxic references from
client to server, but not the other way.

A solution would be to have three projects instead of one:
MyProjectRpc
MyProjectGwt
MyProjectWeb

MyProjectRpc is a GWT module. It only contains RemoteService
interfaces and DTOs. It has no UI or widgets.
MyProjectGwt is your client module. It inherits MyProjectRpc, and
contains widgets. MyProjectGwt’s Java build path includes
MyProjectRpc.
MyProjectWeb is your server project. It is a standard WAR project.
Your RPC implementation servlets go here. Its Java build path includes
MyProjectRpc.

Therefore, both MyProjectGwt and MyProjectWeb reference to
MyProjectRpc only. If your widgets incidentally reference to a
servlet, Eclipse (Java compiler) will tell you right away.

To make above solution work, you need to configure GWTCompiler to
output to MyProjectWeb instead of the default folder www. (-out
argument will do the job.) You also need to run your own web server
for hosted mode instead of GWT’s internal Tomcat. (Pass –noserver to
GWTShell.)

There may be better way to do it. Please share your idea for a better
project structure. I would appreciate if developers from Google could
provide 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-Toolkit@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: IE error can't debug!

2009-04-01 Thread flyingb...@gmail.com

I think my last msg didnt post. I think I figure out the problem. It
has to do with DialogBox.

I had old code that I wasn't using anymore. It should not do anything
though. I not sure why it is causing an error in the program. But it
is caused by the dialogbox i think
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compiling servlet classes

2009-04-01 Thread Sumit Chandel
Hi Mathieu,
Please follow Thomas' advice in his last post. I must have been sleep typing
that night :-)

Cheers,
-Sumit Chandel

On Wed, Apr 1, 2009 at 2:24 AM, Thomas Broyer  wrote:

>
>
>
> On 1 avr, 08:09, "m...@gmail.com"  wrote:
> > Hi Sumit,
> >
> > I didn't forget to include the gwt-servlet.jar in the javac classpath,
> > that's why I'm surprised of this error...
>
> Er, gwt-servlet does *not* include the javax.servlet classes (it's
> meant do be deployed in your servlet container, which already has
> them), use gwt-dev- for compilation and gwt-servlet only for
> deployment (or add your servlet.jar (or whatever its name) in the
> classpath in addition to gwt-servlet when compiling).
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE error can't debug!

2009-04-01 Thread Vitali Lovich
The hosted mode browser is some hacked up version of IE6 AFAIK.  I am going
to say that
even if you compile in DETAILED mode, trying to track down a problem in the
javascript code itself is pretty difficult - probably a waste of time.

Try putting logging statements in your code (either log to some textbox or
to using RPC to a server) to try and trace the execution of your program.
Since it seems its a problem in the event handling, I'd suggesting putting
those trace statements anywhere you have an event handler.

On Wed, Apr 1, 2009 at 1:17 PM, flyingb...@gmail.com
wrote:

>
> But that does not show any errors at all. When I run the hosted mode
> debugger no problems show up. It only happens when I am using IE. Does
> not happen in the debug host mode thing. even though alert box says it
> is internet explorer.
>
>
>
> On Apr 1, 9:59 am, Vitali Lovich  wrote:
> > Not sure what you mean - what debugger?  The proper way of debugging GWT
> is
> > to run it in hosted mode, where it's your Java code that's being
> executed.
> >
> > On Wed, Apr 1, 2009 at 12:55 PM, flyingb...@gmail.com
> > wrote:
> >
> >
> >
> > > When the script debugor editor runs it shows this:
> >
> > > function com_google_gwt_event_shared_HandlerManager_
> >
> > >
> $fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2
> > > (this$static, event){
> > >  var oldSource;
> > >  if (event.com_google_gwt_event_shared_GwtEvent_dead) {
> > >event.revive__();
> > >  }
> > >  oldSource = event.com_google_gwt_event_shared_GwtEvent_source;
> > >  event.com_google_gwt_event_shared_GwtEvent_source = this
> > > $static.com_google_gwt_event_shared_HandlerManager_source;
> > >  try {
> > >++this
> > > $static.com_google_gwt_event_shared_HandlerManager_firingDepth;
> > >com_google_gwt_event_shared_HandlerManager$HandlerRegistry_
> > > $fireEvent__Lcom_google_gwt_event_shared_HandlerManager
> > > $HandlerRegistry_2Lcom_google_gwt_event_shared_GwtEvent_2Z(this
> > > $static.com_google_gwt_event_shared_HandlerManager_registry, event,
> > > this
> > > $static.com_google_gwt_event_shared_HandlerManager_isReverseOrder);
> > >  }
> > >   finally {
> > >--this
> > > $static.com_google_gwt_event_shared_HandlerManager_firingDepth;
> > >if (this
> > > $static.com_google_gwt_event_shared_HandlerManager_firingDepth == 0) {
> > >  com_google_gwt_event_shared_HandlerManager_
> > >
> $handleQueuedAddsAndRemoves__Lcom_google_gwt_event_shared_HandlerManager_2
> > > (this$static);
> > >}
> > >  }
> > >  if (oldSource == null) {
> > >event.com_google_gwt_event_shared_GwtEvent_dead = true;
> > >event.com_google_gwt_event_shared_GwtEvent_source = null;
> > >  }
> > >   else {
> > >event.com_google_gwt_event_shared_GwtEvent_source = oldSource;
> > >  }
> > > }
> >
> > > On Apr 1, 9:50 am, "flyingb...@gmail.com" 
> > > wrote:
> > > > Oh ya, after this error happens, nothing is clickable anymore.
> >
> > > > On Apr 1, 9:48 am, "flyingb...@gmail.com" 
> > > > wrote:
> >
> > > > > When i run the debugger, everything runs fine. however, when I try
> > > > > using ie itself I sometimes get.
> >
> > > > > 540 function
> >
> > >
> com_google_gwt_dom_client_Element_is__Lcom_google_gwt_core_client_JavaScriptObject_2
> > > > > (o){
> > > > > 541   if (o.nodeType) {
> > > > > 542 return o.nodeType == 1;
> > > > > 543   }
> > > > > 544   return false;
> > > > > 545 }
> >
> > > > > Line:541
> > > > > Char: 3
> > > > > Error: Object required
> > > > > Code: 0
> > > > > URL:
> > >http://localhost:8080/instantquoteprogram/F7AE60F70A19094FD6CD8F6548A.
> ..
> >
> > > > > This only happens in IE. Anyone have any clue what might cause this
> > > > > error?
> >
> >
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: What is the easier way to deploy a GWT application to Tomcat using Eclipse?

2009-04-01 Thread tetsuo

try using the jboss as tools you can download them in eclipse via
"software update" maybe that link helps you
http://www.jboss.org/tools/download.html

after the restart of eclipse you can use another view, where you can
bind the tomcat server and deploy your stuff (hot or not) anyhow, try
to spend a minute on the ant, it helps you to pack it all together in
a war file (like eclipse is doing it for you ) but independently from
the eclipse configs ;) so every can do that for you, if your once
configured the build.xml

haphe phun

On 1 Apr., 19:36, Fabrício Cabral  wrote:
> Hello all,
>
> I'm using Eclipse Ganymede (latest), JDK 6 update 13, Tomcat 6.0.18
> and GWT 1.5.3.
>
> So, I'm looking for the easier way to deploy a GWT application to Tomcat
> usint Eclipse IDE. If I use the projectCreator/applicationCreator commands,
> I can't do the Export -> WAR file, because Eclipse doesn't recognize the
> project as a Dynamic Web Project.
>
> I've tryed use the Cypal Studio 1.0 and gwt-tooling plugins but they have
> several bugs and don't do what I want.
>
> So, does anyone know what is the easier way to deploy a GWT application
> to a Tomcat 6 using Eclipse IDE?
>
> Thanks in advance,
>
> --fx
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT + MySQL

2009-04-01 Thread tetsuo

you need at least a server for the transaction between the gui
(browser) and the dbms. some uses apache.tomcat or some other java
servlet/container/application server. some are using php with extjs,
but never let some js on your db. try using json or rpc. if you code
the access codes in plain javascript, every honk can manipulate the
data, so hide them inside the serverpart ;) gwt is in java, if you are
firm with that, try using tomcat (for smaller apps) cause the
clustering is not that funny stuff ... later on you can distribute
that on different server, with ejb or so .. but that needs some more
skills...
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



What is the easier way to deploy a GWT application to Tomcat using Eclipse?

2009-04-01 Thread Fabrício Cabral

Hello all,

I'm using Eclipse Ganymede (latest), JDK 6 update 13, Tomcat 6.0.18
and GWT 1.5.3.

So, I'm looking for the easier way to deploy a GWT application to Tomcat
usint Eclipse IDE. If I use the projectCreator/applicationCreator commands,
I can't do the Export -> WAR file, because Eclipse doesn't recognize the
project as a Dynamic Web Project.

I've tryed use the Cypal Studio 1.0 and gwt-tooling plugins but they have
several bugs and don't do what I want.

So, does anyone know what is the easier way to deploy a GWT application
to a Tomcat 6 using Eclipse IDE?

Thanks in advance,

--fx

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC Serialization

2009-04-01 Thread tetsuo

actually i dont know the differences between isserializable or
serializable, but i catched, that the compilation of the whole program
results errors. so i split up the client and server side in two
workspaces and prepare the interfaces/service in plain for the client
compilation. on the serverpacke i include the js/html stuff, to pack
it into the war file. it works fine in here ;) but it needs some
attention on the classes, which are doing the bridge between both
project parts -.-

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-Toolkit@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: RPC Serialization

2009-04-01 Thread Paul Robinson

Edu wrote:
> GWT is gonna look for serializable classes even outside the client
> package???
> I double checked all my classes in the project and all of them meet
> the needs for serialization. I understand that i have to be as
> specific as possible with RPC but i don't wanna have a bunch of
> services on my project and hove to manually configure them, that's why
> i'm trying to make a generic service.
>
> Thanks for the answer Paul.
>   
There are lots of translatable classes that are serializable that you
are probably using. For example, every collection implementation.

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE error can't debug!

2009-04-01 Thread flyingb...@gmail.com

But that does not show any errors at all. When I run the hosted mode
debugger no problems show up. It only happens when I am using IE. Does
not happen in the debug host mode thing. even though alert box says it
is internet explorer.



On Apr 1, 9:59 am, Vitali Lovich  wrote:
> Not sure what you mean - what debugger?  The proper way of debugging GWT is
> to run it in hosted mode, where it's your Java code that's being executed.
>
> On Wed, Apr 1, 2009 at 12:55 PM, flyingb...@gmail.com
> wrote:
>
>
>
> > When the script debugor editor runs it shows this:
>
> > function com_google_gwt_event_shared_HandlerManager_
>
> > $fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2
> > (this$static, event){
> >  var oldSource;
> >  if (event.com_google_gwt_event_shared_GwtEvent_dead) {
> >    event.revive__();
> >  }
> >  oldSource = event.com_google_gwt_event_shared_GwtEvent_source;
> >  event.com_google_gwt_event_shared_GwtEvent_source = this
> > $static.com_google_gwt_event_shared_HandlerManager_source;
> >  try {
> >    ++this
> > $static.com_google_gwt_event_shared_HandlerManager_firingDepth;
> >    com_google_gwt_event_shared_HandlerManager$HandlerRegistry_
> > $fireEvent__Lcom_google_gwt_event_shared_HandlerManager
> > $HandlerRegistry_2Lcom_google_gwt_event_shared_GwtEvent_2Z(this
> > $static.com_google_gwt_event_shared_HandlerManager_registry, event,
> > this
> > $static.com_google_gwt_event_shared_HandlerManager_isReverseOrder);
> >  }
> >   finally {
> >    --this
> > $static.com_google_gwt_event_shared_HandlerManager_firingDepth;
> >    if (this
> > $static.com_google_gwt_event_shared_HandlerManager_firingDepth == 0) {
> >      com_google_gwt_event_shared_HandlerManager_
> > $handleQueuedAddsAndRemoves__Lcom_google_gwt_event_shared_HandlerManager_2
> > (this$static);
> >    }
> >  }
> >  if (oldSource == null) {
> >    event.com_google_gwt_event_shared_GwtEvent_dead = true;
> >    event.com_google_gwt_event_shared_GwtEvent_source = null;
> >  }
> >   else {
> >    event.com_google_gwt_event_shared_GwtEvent_source = oldSource;
> >  }
> > }
>
> > On Apr 1, 9:50 am, "flyingb...@gmail.com" 
> > wrote:
> > > Oh ya, after this error happens, nothing is clickable anymore.
>
> > > On Apr 1, 9:48 am, "flyingb...@gmail.com" 
> > > wrote:
>
> > > > When i run the debugger, everything runs fine. however, when I try
> > > > using ie itself I sometimes get.
>
> > > > 540 function
>
> > com_google_gwt_dom_client_Element_is__Lcom_google_gwt_core_client_JavaScriptObject_2
> > > > (o){
> > > > 541   if (o.nodeType) {
> > > > 542     return o.nodeType == 1;
> > > > 543   }
> > > > 544   return false;
> > > > 545 }
>
> > > > Line:541
> > > > Char: 3
> > > > Error: Object required
> > > > Code: 0
> > > > URL:
> >http://localhost:8080/instantquoteprogram/F7AE60F70A19094FD6CD8F6548A...
>
> > > > This only happens in IE. Anyone have any clue what might cause this
> > > > error?
>
>
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Gwt

2009-04-01 Thread Adam T

LoadListener (or rather you should use LoadHandler from GWT 1.6
onwards) allows you to handle an onLoad event from widgets that
implement the HasLoadHandlers interface.  For example, if you have an
Image widget, then you can apply a LoadHandler to perform some
functionality once the image has loaded:

Image theImg = new Image("someimage.png");
theImg.addLoadHandler(new LoadHandler(){
public onLoad(LoadEvent event){
   GWT.log("Image loaded",null);
}
});

//Adam

On 1 Apr, 08:23, jagadesh  wrote:
> hi guys ,
>
> what is the use of load listener and how can i use it.
> how can i create a list box which have images as items
>
> Thank u,
> jagadesh
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE error can't debug!

2009-04-01 Thread Vitali Lovich
Not sure what you mean - what debugger?  The proper way of debugging GWT is
to run it in hosted mode, where it's your Java code that's being executed.

On Wed, Apr 1, 2009 at 12:55 PM, flyingb...@gmail.com
wrote:

>
> When the script debugor editor runs it shows this:
>
> function com_google_gwt_event_shared_HandlerManager_
>
> $fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2
> (this$static, event){
>  var oldSource;
>  if (event.com_google_gwt_event_shared_GwtEvent_dead) {
>event.revive__();
>  }
>  oldSource = event.com_google_gwt_event_shared_GwtEvent_source;
>  event.com_google_gwt_event_shared_GwtEvent_source = this
> $static.com_google_gwt_event_shared_HandlerManager_source;
>  try {
>++this
> $static.com_google_gwt_event_shared_HandlerManager_firingDepth;
>com_google_gwt_event_shared_HandlerManager$HandlerRegistry_
> $fireEvent__Lcom_google_gwt_event_shared_HandlerManager
> $HandlerRegistry_2Lcom_google_gwt_event_shared_GwtEvent_2Z(this
> $static.com_google_gwt_event_shared_HandlerManager_registry, event,
> this
> $static.com_google_gwt_event_shared_HandlerManager_isReverseOrder);
>  }
>   finally {
>--this
> $static.com_google_gwt_event_shared_HandlerManager_firingDepth;
>if (this
> $static.com_google_gwt_event_shared_HandlerManager_firingDepth == 0) {
>  com_google_gwt_event_shared_HandlerManager_
> $handleQueuedAddsAndRemoves__Lcom_google_gwt_event_shared_HandlerManager_2
> (this$static);
>}
>  }
>  if (oldSource == null) {
>event.com_google_gwt_event_shared_GwtEvent_dead = true;
>event.com_google_gwt_event_shared_GwtEvent_source = null;
>  }
>   else {
>event.com_google_gwt_event_shared_GwtEvent_source = oldSource;
>  }
> }
>
>
>
> On Apr 1, 9:50 am, "flyingb...@gmail.com" 
> wrote:
> > Oh ya, after this error happens, nothing is clickable anymore.
> >
> > On Apr 1, 9:48 am, "flyingb...@gmail.com" 
> > wrote:
> >
> > > When i run the debugger, everything runs fine. however, when I try
> > > using ie itself I sometimes get.
> >
> > > 540 function
> > >
> com_google_gwt_dom_client_Element_is__Lcom_google_gwt_core_client_JavaScriptObject_2
> > > (o){
> > > 541   if (o.nodeType) {
> > > 542 return o.nodeType == 1;
> > > 543   }
> > > 544   return false;
> > > 545 }
> >
> > > Line:541
> > > Char: 3
> > > Error: Object required
> > > Code: 0
> > > URL:
> http://localhost:8080/instantquoteprogram/F7AE60F70A19094FD6CD8F6548A...
> >
> > > This only happens in IE. Anyone have any clue what might cause this
> > > error?
> >
> >
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE error can't debug!

2009-04-01 Thread flyingb...@gmail.com

When the script debugor editor runs it shows this:

function com_google_gwt_event_shared_HandlerManager_
$fireEvent__Lcom_google_gwt_event_shared_HandlerManager_2Lcom_google_gwt_event_shared_GwtEvent_2
(this$static, event){
  var oldSource;
  if (event.com_google_gwt_event_shared_GwtEvent_dead) {
event.revive__();
  }
  oldSource = event.com_google_gwt_event_shared_GwtEvent_source;
  event.com_google_gwt_event_shared_GwtEvent_source = this
$static.com_google_gwt_event_shared_HandlerManager_source;
  try {
++this
$static.com_google_gwt_event_shared_HandlerManager_firingDepth;
com_google_gwt_event_shared_HandlerManager$HandlerRegistry_
$fireEvent__Lcom_google_gwt_event_shared_HandlerManager
$HandlerRegistry_2Lcom_google_gwt_event_shared_GwtEvent_2Z(this
$static.com_google_gwt_event_shared_HandlerManager_registry, event,
this
$static.com_google_gwt_event_shared_HandlerManager_isReverseOrder);
  }
   finally {
--this
$static.com_google_gwt_event_shared_HandlerManager_firingDepth;
if (this
$static.com_google_gwt_event_shared_HandlerManager_firingDepth == 0) {
  com_google_gwt_event_shared_HandlerManager_
$handleQueuedAddsAndRemoves__Lcom_google_gwt_event_shared_HandlerManager_2
(this$static);
}
  }
  if (oldSource == null) {
event.com_google_gwt_event_shared_GwtEvent_dead = true;
event.com_google_gwt_event_shared_GwtEvent_source = null;
  }
   else {
event.com_google_gwt_event_shared_GwtEvent_source = oldSource;
  }
}



On Apr 1, 9:50 am, "flyingb...@gmail.com" 
wrote:
> Oh ya, after this error happens, nothing is clickable anymore.
>
> On Apr 1, 9:48 am, "flyingb...@gmail.com" 
> wrote:
>
> > When i run the debugger, everything runs fine. however, when I try
> > using ie itself I sometimes get.
>
> > 540 function
> > com_google_gwt_dom_client_Element_is__Lcom_google_gwt_core_client_JavaScriptObject_2
> > (o){
> > 541   if (o.nodeType) {
> > 542     return o.nodeType == 1;
> > 543   }
> > 544   return false;
> > 545 }
>
> > Line:541
> > Char: 3
> > Error: Object required
> > Code: 0
> > URL:http://localhost:8080/instantquoteprogram/F7AE60F70A19094FD6CD8F6548A...
>
> > This only happens in IE. Anyone have any clue what might cause this
> > error?
>
>
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: IE error can't debug!

2009-04-01 Thread flyingb...@gmail.com

Oh ya, after this error happens, nothing is clickable anymore.

On Apr 1, 9:48 am, "flyingb...@gmail.com" 
wrote:
> When i run the debugger, everything runs fine. however, when I try
> using ie itself I sometimes get.
>
> 540 function
> com_google_gwt_dom_client_Element_is__Lcom_google_gwt_core_client_JavaScriptObject_2
> (o){
> 541   if (o.nodeType) {
> 542     return o.nodeType == 1;
> 543   }
> 544   return false;
> 545 }
>
> Line:541
> Char: 3
> Error: Object required
> Code: 0
> URL:http://localhost:8080/instantquoteprogram/F7AE60F70A19094FD6CD8F6548A...
>
> This only happens in IE. Anyone have any clue what might cause this
> error?
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: JavaScriptException -> Type Error: Type mismatch - Please help

2009-04-01 Thread Jason

If anyone knows why this is happening.. please reply..

Thanks!

On Mar 30, 11:47 pm, "bronze...@gmail.com" 
wrote:
> Hi all
>
> A question in regard of the method, createTextNode, in DocumentImpl.
> So I invoked the method, and I happened to come across a case where I
> pass in the a "null" parameter to the method, and it's not pretty.  It
> throws back aJavaScriptExceptionas the following.  I noticed how the
> method invokes the XMLParserImpl's createTextNode method, which in
> terms invokes the JSNI code... So my question is why this method
> doesn't accept the "null" parameter.. i tested it, if I pass in an
> empty string, it will work properly, it just doesn't like the "null"
> parameter...
>
> Please advise if you know what's going on with this.  Thanks so much!
>
> at com.google.gwt.user.client.ui.FocusWidget.onBrowserEvent
> (FocusWidget.java:102)
>     at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1308)
>     at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:
> 1287)
>     at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1255)
>     at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>     at java.lang.reflect.Method.invoke(Unknown Source)
>     at com.google.gwt.dev.shell.MethodAdaptor.invoke
> (MethodAdaptor.java:103)
>     at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> (IDispatchImpl.java:126)
>     at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> (IDispatchProxy.java:155)
>     at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
> (IDispatchImpl.java:294)
>     at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> (IDispatchImpl.java:194)
>     at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> (COMObject.java:117)
>     at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
>     at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:
> 2966)
>     at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
>     at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
>     at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)
> Caused by: com.google.gwt.core.client.JavaScriptException:
> (TypeError): Type mismatch
>  number: -2146828275
>  description: Type mismatch
>     at com.google.gwt.xml.client.impl.XMLParserImpl.createTextNode
> (Native Method)
>     at com.google.gwt.xml.client.impl.DocumentImpl.createTextNode
> (DocumentImpl.java:111)
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



IE error can't debug!

2009-04-01 Thread flyingb...@gmail.com

When i run the debugger, everything runs fine. however, when I try
using ie itself I sometimes get.

540 function
com_google_gwt_dom_client_Element_is__Lcom_google_gwt_core_client_JavaScriptObject_2
(o){
541   if (o.nodeType) {
542 return o.nodeType == 1;
543   }
544   return false;
545 }


Line:541
Char: 3
Error: Object required
Code: 0
URL: 
http://localhost:8080/instantquoteprogram/F7AE60F70A19094FD6CD8F6548AE3E8F.cache.html



This only happens in IE. Anyone have any clue what might cause this
error?
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC Serialization

2009-04-01 Thread Edu

GWT is gonna look for serializable classes even outside the client
package???
I double checked all my classes in the project and all of them meet
the needs for serialization. I understand that i have to be as
specific as possible with RPC but i don't wanna have a bunch of
services on my project and hove to manually configure them, that's why
i'm trying to make a generic service.

Thanks for the answer Paul.

On 1 abr, 13:28, Paul Robinson  wrote:
> Edu wrote:
> > I was using IsSerializable Interface until i read an article on gwt
> > home page saying that i could use the java.io.Serializable interface,
> > since i was using a generic servlett dispatch all my incoming
> > resquest, the java.io.Serializable was much easier to use, so i
> > changed all my classes that needed serialization and after that my
> > services stoped working.
>
> > Here's the piece of code i'm using:
>
> > //Method on the servlet
> > public HashMap getValue(String serviceClass,
> > HashMap params)
> >                    throws DyadException {
> >            try {
> >                    Class clazz = Class.forName(serviceClass);
> >                    DyadService classInstance = 
> > (DyadService)clazz.newInstance();
>
> >                    HashMap ret = 
> > classInstance.getValue(params);
> >                         //it gets here, but after then return call
> > nothing happens
> >                    return ret;
> >            } catch (Exception e) {
> >                    DyadException ex = new DyadException();
> >                    ex.setDetailedError(e.getMessage());
> >                    throw ex;
> >            }
> > }
>
> I don't know what you're problem is, but your change  from
> IsSerializable to Serializable does have a side-effect. When GWT
> compiles your code, it now has to look for all Serializable classes to
> convert to javascript, in case they get used with your code (since your
> API now uses Serializable). When using IsSerializable, this is less of a
> problem because you will only make classes implement IsSerializable that
> will really be transported to the client, but you're probably using all
> sorts of Serializable classes that will never get sent to your client,
> and GWT has to sort through all of them at compile time.
>
> It's generally better to nail your GWT RPC API down to specific classes
> as much as possible. This means using ArrayList instead of List or
> Collection etc for anything a GWT client accesses.
>
> Paul
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server

2009-04-01 Thread dduck

> This means you'd have to put a gwt.xml at some package level
> containing the interface and inherit it from your GwtResults.gwt.xml.
> e.g. in dk/ange/orion/gwt, create Models.gwt.xml file with  path="models" />, and in your GwtResult.gwt.xml add an  name="dk.ange.orion.gwt.Models" />

Thank you very much. That did the trick.

Regards,
  Anders
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: RPC Serialization

2009-04-01 Thread Paul Robinson

Edu wrote:
> I was using IsSerializable Interface until i read an article on gwt
> home page saying that i could use the java.io.Serializable interface,
> since i was using a generic servlett dispatch all my incoming
> resquest, the java.io.Serializable was much easier to use, so i
> changed all my classes that needed serialization and after that my
> services stoped working.
>
> Here's the piece of code i'm using:
>
> //Method on the servlet
> public HashMap getValue(String serviceClass,
> HashMap params)
>   throws DyadException {
>   try {
>   Class clazz = Class.forName(serviceClass);
>   DyadService classInstance = 
> (DyadService)clazz.newInstance();
>
>   HashMap ret = 
> classInstance.getValue(params);
> //it gets here, but after then return call
> nothing happens
>   return ret;
>   } catch (Exception e) {
>   DyadException ex = new DyadException();
>   ex.setDetailedError(e.getMessage());
>   throw ex;
>   }
> }
>
>   
I don't know what you're problem is, but your change  from
IsSerializable to Serializable does have a side-effect. When GWT
compiles your code, it now has to look for all Serializable classes to
convert to javascript, in case they get used with your code (since your
API now uses Serializable). When using IsSerializable, this is less of a
problem because you will only make classes implement IsSerializable that
will really be transported to the client, but you're probably using all
sorts of Serializable classes that will never get sent to your client,
and GWT has to sort through all of them at compile time.

It's generally better to nail your GWT RPC API down to specific classes
as much as possible. This means using ArrayList instead of List or
Collection etc for anything a GWT client accesses.

Paul

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Acces to GWT JavaDoc in Eclipse

2009-04-01 Thread Danny Schimke
Hi Stefan!

You are right: I've removed gwt-servlet from the POM dependencies of the
corresponding project, because I don't need it yet. If I need this I will
create a separate "server/backend"- project which does. And now I have
access to the JavaDoc.

Thank you very much!
-Danny

2009/4/1 Stefan Hübner 

>
> Danny,
>
> maybe this is caused due to both gwt-servlet and gwt-user are on
> classpath? For the former, the Maven Central repo doesn't provide a
> source ball but the latter it does. I've experienced this behaviour
> earlier and the only workaround so far was to attach the sources of
> gwt-user to gwt-servlet as well. This seems a weird thing to do,
> though. To get the sources use "-DdownloadSources -DdownloadJavadocs"
> while invoking "mvn eclipse:eclipse".
>
> Why is gwt-servlet on your classpath in the first place? Maybe because
> it's necessary for RemoteServiceServlet?
>
> Anyways, I would be happy if gwt-servlet sources would be provided too.
>
> -Stefan
>
> Danny Schimke  writes:
>
> > Hi!
> >
> > I created a complete new development environment. I installed Eclipse,
> GWT and
> > startet up my new project. Its is working well, but I have no access to
> the GWT
> > source code. For example I get the following message in tooltip, if my
> mouse moves
> > over an GWT element like DialogBox etc.:
> >
> > "This element neither has attached source nor attached Javadoc and hence
> no Javadoc
> > could be found."
> >
> > The source is attached to of my maven module(s). If I navigate to one
> class there is
> > the source code, but how I get access out from my own sorces?
> >
> > Thanks very much!
> > -Danny
> >
> >
>
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Multi-module application: load module on request

2009-04-01 Thread JK

Hi All,
I’ve read a lot of discussions related to multi-module applications
but I still don’t have a solution for my problem.
In a nutshell I would like to make 2-module application in which one
module is loaded immediately and the second one is loaded when user
requests functionality stored in it.
More detailed, I’m developing a system, which have 2 function areas,
which are mostly independent from each other. Assume each area is
stored in its own module.  Of course they can have some common classes
and functions but these could be easily moved to additional module,
which will be inherited by both modules. So initially the first part
is loaded when application is requested, and the second part should be
loaded when user wants to access it.
Now I have 3 modules: 2 are described above functional modules
(without entry points) and the 3rd one is a kind of organizational
module, which inherits both functional modules and has entry point.
But the problem is that both functional modules are loaded during the
bootstrap (and increase loading time) even when user do not need the
second one.
Does somebody have the same problem? Any thoughts or comments are
really welcome…

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



RPC Serialization

2009-04-01 Thread Edu

I was using IsSerializable Interface until i read an article on gwt
home page saying that i could use the java.io.Serializable interface,
since i was using a generic servlett dispatch all my incoming
resquest, the java.io.Serializable was much easier to use, so i
changed all my classes that needed serialization and after that my
services stoped working.

All my classes are complying with the gwt-rpc serialization rules, no
error is showing up on the console or on the shell, i tried to debug
an found tha my servlet returns the dto back to then client, but gwt
somehow doesn't show any error and my code never reach then
"onSuccess" or "onFailure" method on the client side.

Here's the piece of code i'm using:

//Method on the servlet
public HashMap getValue(String serviceClass,
HashMap params)
throws DyadException {
try {
Class clazz = Class.forName(serviceClass);
DyadService classInstance = 
(DyadService)clazz.newInstance();

HashMap ret = 
classInstance.getValue(params);
//it gets here, but after then return call
nothing happens
return ret;
} catch (Exception e) {
DyadException ex = new DyadException();
ex.setDetailedError(e.getMessage());
throw ex;
}
}



//Class i'm sending to the client
//Used to implement the IsSerializable and worked fine
public class Navigator implements Serializable {

private static final long serialVersionUID = -318059226468181729L;

private Long id;

private Long licenseId;

private String className;

private String name;

private ArrayList submenu;

private String process;

private String cssName;

public String getClassName() {
return className;
}

public void setClassName(String className) {
this.className = className;
}

public String getProcess() {
return process;
}

public void setProcess(String process) {
this.process = process;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public ArrayList getSubmenu() {
if (submenu == null){
setSubmenu(new ArrayList());
}
return submenu;
}

public void setSubmenu(ArrayList submenu) {
this.submenu = submenu;
}

@Override
public boolean equals(Object obj) {
Navigator nav = (Navigator)obj;

return nav.getClassName().equals(this.getClassName()) &&
   nav.getName().equals(this.getName());
}

public String getCssName() {
return cssName;
}

public void setCssName(String cssName) {
this.cssName = cssName;
}

public Long getId() {
return id;
}

public void setId(Long id) {
this.id = id;
}

public Long getLicenseId() {
return licenseId;
}

public void setLicenseId(Long licenseId) {
this.licenseId = licenseId;
}


}

//

At this point i'm stuck, so i would really appreciate some help.
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-Toolkit@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: Announcing GWT 1.6 RC2

2009-04-01 Thread Дмитрий Николаев

Ubuntu 8.10/ java 1.6 u12

Samples DynaTable & Showcase won't compile.

Output for DynaTable:


$ ant build
Buildfile: build.xml

libs:

javac:
[javac] Compiling 8 source files to /home/dima/bin/gwt/gwt-
linux-1.6.3/samples/DynaTable/war/WEB-INF/classes
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DayFilterWidget.java:61: cannot
find symbol
[javac] symbol  : class SchoolCalendarWidget
[javac] location: class
com.google.gwt.sample.dynatable.client.DayFilterWidget
[javac]   private final SchoolCalendarWidget calendar;
[javac] ^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DayFilterWidget.java:67: cannot
find symbol
[javac] symbol  : class SchoolCalendarWidget
[javac] location: class
com.google.gwt.sample.dynatable.client.DayFilterWidget
[javac]   public DayFilterWidget(SchoolCalendarWidget calendar) {
[javac]  ^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTableWidget.java:20:
package com.google.gwt.sample.dynatable.client.DynaTableDataProvider
does not exist
[javac] import
com.google.gwt.sample.dynatable.client.DynaTableDataProvider.RowDataAcceptor;
 
[javac]
^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTableWidget.java:184:
cannot find symbol
[javac] symbol  : class RowDataAcceptor
[javac] location: class
com.google.gwt.sample.dynatable.client.DynaTableWidget
[javac]   private final RowDataAcceptor acceptor = new
RowDataAcceptorImpl();
[javac] ^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTableWidget.java:194:
cannot find symbol
[javac] symbol  : class DynaTableDataProvider
[javac] location: class
com.google.gwt.sample.dynatable.client.DynaTableWidget
[javac]   private final DynaTableDataProvider provider;
[javac] ^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTableWidget.java:198:
cannot find symbol
[javac] symbol  : class DynaTableDataProvider
[javac] location: class
com.google.gwt.sample.dynatable.client.DynaTableWidget
[javac]   public DynaTableWidget(DynaTableDataProvider provider,
String[] columns,
[javac]  ^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTableWidget.java:117:
cannot find symbol
[javac] symbol  : class RowDataAcceptor
[javac] location: class
com.google.gwt.sample.dynatable.client.DynaTableWidget
[javac]   private class RowDataAcceptorImpl implements
RowDataAcceptor {
[javac]^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTable.java:32: cannot find
symbol
[javac] symbol  : class SchoolCalendarWidget
[javac] location: class
com.google.gwt.sample.dynatable.client.DynaTable
[javac]   SchoolCalendarWidget calendar = new
SchoolCalendarWidget(15);
[javac]   ^
[javac] /home/dima/bin/gwt/gwt-linux-1.6.3/samples/DynaTable/src/
com/google/gwt/sample/dynatable/client/DynaTable.java:32: cannot find
symbol
[javac] symbol  : class SchoolCalendarWidget
[javac] location: class
com.google.gwt.sample.dynatable.client.DynaTable
[javac]   SchoolCalendarWidget calendar = new
SchoolCalendarWidget(15);
[javac]   ^
[javac] 9 errors

BUILD 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-Toolkit@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
-~--~~~~--~~--~--~---



Wanted: Ext-GWT (GXT) coder who can hit the ground running

2009-04-01 Thread DaBlick

Spiral Universe is seeking an experienced expert Ext-GWT (GXT)
developer to join our company in developing a cutting-edge school
management, social networking, and education-based RIA.

We are developing hundreds of screens and need someone to join our
existing team and "hit the ground running" implementing our screen
designs.

As a developer for Spiral you will be responsible for the design,
coding and testing of the GWT and Ext-GWT (GXT) based clientside,
including the middleware calls. You will be expected to learn,
understand and adhere to our architectural standards and practices

Our ideal candidate is a self-starter with excellent communication
skills, who is talented, energetic, and innovative and enjoys working
with robust, large scale, high-volume production applications, while
being in a fun startup environment, surrounded by a team of leading
professionals from around the world on a wide variety of projects. He/
she will develop an sense of ownership for their portions of the
application.

Required qualifications include:

- Significant experience with Ext-GWT (GXT)
- Experience with Google Web Toolkit (GWT)
- Expertise in GUI design, layout and implementation
- Expertise with Java software development, design patterns, and
developing scalable, high
availability Java applications.
- Expertise with Hibernate/Spring frameworks

Also valuable: SVN (Subversion), Eclipse IDE, Ant, Firebug, MVC,
Tomcat, PostgreSQL (RDBMS), XML/XSLT, Javascript/AJAX

Located in Harrison, NY (a 30 min train ride from NYC) - we offer a
competitive salary commensurate with experience, plus, a generous host
of benefits which include: Health Insurance, 401K, paid vacation days
and holidays, flexible work hours, on-site cafeteria, opportunities
for international travel and more.

We are an equal opportunity employer.

Please send resume and salary requirements to
blickst...@spiraluniverse.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@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 1.6 - How do I change the default "war" directory name

2009-04-01 Thread Jason Essington

use the switch -war WebContent

-jason

On Apr 1, 2009, at 12:46 AM, Jan wrote:

>
> Dear GWT community,
>
> I am considering using GWT 1.6 in a project, but have one major
> concern: GWT 1.6 no longer places the public files (like the host page
> or the module XML) in the "public" sub directory of the root package
> but inside a "war/module" directory.
>
> As all my projects already exist and e.g. use "WebContent" or "Web"
> etc. as root for the directory containing all the static content, it
> would be nice to reuse the existing structure.
>
> My question is therefore: Is there a way to change the default
> directory name "war" to something else. I would be surprised if not,
> but I haven't found any info in the GWT documentation pages. It would
> be great if someone could help me.
>
> Thanks in advance,
>
> Jan.
>
> >


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Left widget of HorizontalSpliPanel is not visible

2009-04-01 Thread Neo

Thanks Ian. Lets wait.
:)

On Apr 1, 8:01 pm, Ian Bambury  wrote:
> 2009/4/1 Neo 
>
>
>
> > Hi Ian,
> > Thats really sad to hear :(.
> > Any possible workarounds ?
>
> Not really. These widgets (at least the ones I looked at in 1.5, and
> probably 1.6 as well or they'd have fixed it)  set their child widgets up
> while detached, so percentage sizes don't work on the children, and they use
> percentages for themselves, so if you nest them, they *are* the child and
> that is why they get screwed (if I remember correctly - it was nearly a year
> ago now).
>
> There are *some* situations where they will work - for example, setting up a
> SplitPanel in the child area of an *open* DisclosurePanel and then closing
> it works, but you see this actually happening, partly because some browsers
> are like that, but in the others too, because these panels use deferred
> commands.
>
> Even then, if the user closes the DP and the DP is detached from the DOM (as
> might well happen with tabs, or your own menu system) then when you come
> back, it's screwed again.
>
> There may be a way around it, but I haven't found one and the Google guys
> haven't mentioned one.
>
> I think we'll have to wait for V2 and hope that these widgets are rewiritten
> so they work if nested.
>
> Ian
>
> http://examples.roughian.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@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: Left widget of HorizontalSpliPanel is not visible

2009-04-01 Thread Ian Bambury
2009/4/1 Neo 

>
> Hi Ian,
> Thats really sad to hear :(.
> Any possible workarounds ?


Not really. These widgets (at least the ones I looked at in 1.5, and
probably 1.6 as well or they'd have fixed it)  set their child widgets up
while detached, so percentage sizes don't work on the children, and they use
percentages for themselves, so if you nest them, they *are* the child and
that is why they get screwed (if I remember correctly - it was nearly a year
ago now).

There are *some* situations where they will work - for example, setting up a
SplitPanel in the child area of an *open* DisclosurePanel and then closing
it works, but you see this actually happening, partly because some browsers
are like that, but in the others too, because these panels use deferred
commands.

Even then, if the user closes the DP and the DP is detached from the DOM (as
might well happen with tabs, or your own menu system) then when you come
back, it's screwed again.

There may be a way around it, but I haven't found one and the Google guys
haven't mentioned one.

I think we'll have to wait for V2 and hope that these widgets are rewiritten
so they work if nested.

Ian

http://examples.roughian.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@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
-~--~~~~--~~--~--~---



Mouse handler in GWT1.6 issue

2009-04-01 Thread LOKESH KUMAR
Hi,

I am working with GWT with added Plugable features like DND and ENT.
Presently i am facing a problem while using the GWT Listners on the
Label.

As per my Understanding the GWT 1.6 Version has changed the listner
handling style, which is more inline with the JavaScript Standards
(Not fully but to major extent).

I am using a  addClickHandler for listning on the label Widget. This
listner acts differently for me depending on the Mode of launch
( Internet Explorer(IE 6.0), Mozilla and in Hosted Mode of GWT)

The Listners provided by the GWT 1.6 dont have the handle for Single
click of mouse , double Click of the mouse so when i use the
addclickHandler it is able to Caught both the action but behaves
differently for both.

Senario 1:- Single Click of Mouse

executes the block only one (Inner Class is executed only once)

Senario 2:- Double Click of Mouse

Executes the Block 4 times in the Hosted Mode

2 times in the Mozilla

4 times in the Internet Explorer.

As per my need i have to check if the customer has placed a single
click or a double click depending on that i have to vary my business
logic.

So please do give some suggestions on the above query so that i can
know whether the things are right in first place and if yes then how
can i handle it.


Regards
Lokesh Kumar

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Left widget of HorizontalSpliPanel is not visible

2009-04-01 Thread Neo

Hi Ian,
Thats really sad to hear :(.
Any possible workarounds ?

On Apr 1, 7:01 pm, Ian Bambury  wrote:
> Hi,
> It doesn't work. It's worse in the non-IE browsers, you can't even manually
> drag the split.
>
> A lot of the layout kind of widgets with 'moving parts' (Tab, Split,
> Disclosure, StackPanel and the like) simply don't work if nested inside
> another one of these kinds of panels. Google don't seem to think this is too
> much of a problem.
>
> I first tried to get a response from someone back in August last year with
> v1.5 but no-one took any notice - 
> seehttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> I got no answer, and reverted my site back to 1.4.
>
> I tested it when 1.6 came out so I wouldn't waste my time again. It still
> hasn't been fixed.
>
> It now has an issue number since I have actually managed to get a reply from
> a GWT team member - 
> seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=3433
>
> If you look at it, you will see that only one person has starred it (me) so
> the chances of anything happening are slim. For example, issue #25 (Sept
> 2006, 16 stars) has only just made it to 'Fixed, not released'.
>
> Sumit Chandel has said this is not a show-stopper - which I take it means it
> will not be fixed in this release, either.
>
> The bottom line is that you are fd - you can't nest dynamic layout
> panels - your only choices are to build them properly yourself or keep your
> site so simple that you don't need to nest them.
>
> Ian
>
> http://examples.roughian.com
>
> 2009/4/1 Neo 
>
>
>
>
>
> > I have created a DecoratedTabPanel with three tabs. Tab 1 and Tab 3
> > have some basic widgets. In the second tab I have added a
> > HorizontalSpliPanel to the DecoratedTabPanel. On load I want to
> > display the first tab by default.
>
> > I have used the following code to add the HorizontalSpliPanel :
> > horizontalSplitPanel.setSize("500px", "350px");
> > horizontalSplitPanel.setSplitPosition("30%");
> > horizontalSplitPanel.setRightWidget(new HTML("some text goes here");
> > horizontalSplitPanel.setLeftWidget(new HTML("some text goes here");
>
> > 
> > //Add widget for 1st Tab
> > .
>
> > //Add widget for 2nd Tab
> > decoratedTabPanel.add(horizontalSplitPanel, "Some Label");
>
> > //Add widget for 3rd Tab
> > .
>
> > However, when I click the second tab to view the Horizontal Split
> > Panel, the right hand side of the Horizontal Split Panel covers the
> > entire area and the left hand side widget is not visible. I have to
> > manually drag the splitter towards the right to view the contents of
> > the left widget. What I want is to view the left widget and the right
> > widget of the Horizontal Split Panel as per the size I have set.
>
> > Please help.- 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-Toolkit@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: Announcing GWT 1.6 RC2

2009-04-01 Thread Scott Blum
We also cache the results of an earlier phase in the compile, so even if
you're running a single thread, it should be marginally faster than 1.5.

On Wed, Apr 1, 2009 at 4:50 AM, Thomas Broyer  wrote:

>
> On 1 avr, 05:52, "C.H."  wrote:
> > >New Features
> > >...faster compilation...
> >
> > How much faster compilation compare to 1.5?
>
> AFAICT, compiling a given permutation isn't faster than in 1.5 but
> permutations are now compiled in parallel threads.
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem while using -OnClickHandler for Event double click

2009-04-01 Thread Ved

Sorry all,
The message was incomplete.

and i also tried to get the Native Event  by the following code
labelObject.addClickHandler(new ClickHandler(){

public void onClick(ClickEvent event) {


if(event.getNativeEvent().getButton()==Event.BUTTON_RIGHT)
{
}
else if (event.getNativeEvent().getButton()==Event.BUTTON_RIGHT)
{
}

So Kindly Help me in solving the above issue

Thanks & Regards,
Ved Prakash Kamishetty
//Code is not even entering into the if bock.

On Apr 1, 7:20 pm, Ved  wrote:
> Hi,
>
> I am trying to catch a Double click event but unable to catch it on a
> Label
>
> i have tried the by adding the following code to my class
>
> final Label la=new Label("New Label");
>
> la.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK |Event.ONKEYDOWN );
>
> la.onBrowserEvent(new Event ()
> {
>
> public void onBrowserEvent(Event e) {
>
>  switch (DOM.eventGetType(e)) {
>
>  case Event.ONCLICK: {
> System.out.println("IN Click 
> Listner");
> break;
> }
> case Event.ONDBLCLICK:{
> System.out.println("In Double 
> Click Event");
> break;
> }
> case Event.ONFOCUS:{
> System.out.println("In Double 
> Click Event");
> 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-Toolkit@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 while using -OnClickHandler for Event double click

2009-04-01 Thread Ved

Hi,

I am trying to catch a Double click event but unable to catch it on a
Label

i have tried the by adding the following code to my class

final Label la=new Label("New Label");

la.sinkEvents(Event.ONCLICK | Event.ONDBLCLICK |Event.ONKEYDOWN );

la.onBrowserEvent(new Event ()
{

public void onBrowserEvent(Event e) {

 switch (DOM.eventGetType(e)) {

 case Event.ONCLICK: {
System.out.println("IN Click Listner");
break;
}
case Event.ONDBLCLICK:{
System.out.println("In Double 
Click Event");
break;
}
case Event.ONFOCUS:{
System.out.println("In Double 
Click Event");
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-Toolkit@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: DatePicker and keyboard navigation?

2009-04-01 Thread Jason Essington

I had at one point a version of DatePicker that had keyboard  
navigation built in (it'd even skip disabled dates), so it is possible.

-jason

On Mar 31, 2009, at 10:52 PM, nina wrote:

>
> Hello there
>
> Does anyone know if it's possible, or will be a future feature, to
> have keyboard support for the DatePicker widget? It would be nice if
> you could use the tab key to give it focus, arrow keys for navigation
> and enter or space for selection.
>
> Thanks
> Nina
>
> >


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: integrate google map

2009-04-01 Thread Eric Ayers
Try the gwt_maps library @ http://code.google.com/p/gwt-google-apis


On Wed, Apr 1, 2009 at 10:02 AM, asianCoolz  wrote:

>
> is the only way to integrate with google map is using this library
> http://sourceforge.net/projects/gwt/ ? but the project seems no active
> anymore.  which library you folks are using ?
>
>
> >
>


-- 
Eric Z. Ayers - GWT Team - Atlanta, GA USA
http://code.google.com/webtoolkit/

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



integrate google map

2009-04-01 Thread asianCoolz

is the only way to integrate with google map is using this library
http://sourceforge.net/projects/gwt/ ? but the project seems no active
anymore.  which library you folks are using ?


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Left widget of HorizontalSpliPanel is not visible

2009-04-01 Thread Ian Bambury
Hi,
It doesn't work. It's worse in the non-IE browsers, you can't even manually
drag the split.

A lot of the layout kind of widgets with 'moving parts' (Tab, Split,
Disclosure, StackPanel and the like) simply don't work if nested inside
another one of these kinds of panels. Google don't seem to think this is too
much of a problem.

I first tried to get a response from someone back in August last year with
v1.5 but no-one took any notice - see
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/7ca416b698acf0c8/31b434ab6d16cb39

I got no answer, and reverted my site back to 1.4.

I tested it when 1.6 came out so I wouldn't waste my time again. It still
hasn't been fixed.

It now has an issue number since I have actually managed to get a reply from
a GWT team member - see
http://code.google.com/p/google-web-toolkit/issues/detail?id=3433

If you look at it, you will see that only one person has starred it (me) so
the chances of anything happening are slim. For example, issue #25 (Sept
2006, 16 stars) has only just made it to 'Fixed, not released'.

Sumit Chandel has said this is not a show-stopper - which I take it means it
will not be fixed in this release, either.

The bottom line is that you are fd - you can't nest dynamic layout
panels - your only choices are to build them properly yourself or keep your
site so simple that you don't need to nest them.

Ian

http://examples.roughian.com


2009/4/1 Neo 

>
> I have created a DecoratedTabPanel with three tabs. Tab 1 and Tab 3
> have some basic widgets. In the second tab I have added a
> HorizontalSpliPanel to the DecoratedTabPanel. On load I want to
> display the first tab by default.
>
> I have used the following code to add the HorizontalSpliPanel :
> horizontalSplitPanel.setSize("500px", "350px");
> horizontalSplitPanel.setSplitPosition("30%");
> horizontalSplitPanel.setRightWidget(new HTML("some text goes here");
> horizontalSplitPanel.setLeftWidget(new HTML("some text goes here");
>
> 
> //Add widget for 1st Tab
> .
>
> //Add widget for 2nd Tab
> decoratedTabPanel.add(horizontalSplitPanel, "Some Label");
>
> //Add widget for 3rd Tab
> .
>
> However, when I click the second tab to view the Horizontal Split
> Panel, the right hand side of the Horizontal Split Panel covers the
> entire area and the left hand side widget is not visible. I have to
> manually drag the splitter towards the right to view the contents of
> the left widget. What I want is to view the left widget and the right
> widget of the Horizontal Split Panel as per the size I have set.
>
> Please 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-Toolkit@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: Deploying on tomcat

2009-04-01 Thread fatjack1...@googlemail.com

I have managed to fix this problem. It turned out that the MySQL JAR
had been removed.

Thanks for all your help!

Regards,
Jack

On Apr 1, 1:57 pm, Isaac Truett  wrote:
> And what have you done so far to try to solve this problem?
>
> On Wed, Apr 1, 2009 at 8:48 AM, fatjack1...@googlemail.com
>
>  wrote:
>
> > Hi there,
>
> > Thanks for your help. That has fixed my last problem, now I am getting
> > a new one...
>
> > 01-Apr-2009 13:38:15 org.apache.catalina.core.ApplicationContext log
> > SEVERE: Exception while dispatching incoming RPC call
> > com.google.gwt.user.server.rpc.UnexpectedException: Service method
> > 'public abstract com.project.client.ServerSQLData
> > com.project.client.ServerStatusSQLService.getSQLData()' threw an
> > unexpected exception: java.lang.NullPointerException
> >        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> > (RPC.java:360)
> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> > (RPC.java:546)
> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> > (RemoteServiceServlet.java:164)
> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> > (RemoteServiceServlet.java:86)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > (ApplicationFilterChain.java:290)
> >        at org.apache.catalina.core.ApplicationFilterChain.doFilter
> > (ApplicationFilterChain.java:206)
> >        at org.apache.catalina.core.StandardWrapperValve.invoke
> > (StandardWrapperValve.java:233)
> >        at org.apache.catalina.core.StandardContextValve.invoke
> > (StandardContextValve.java:191)
> >        at org.apache.catalina.core.StandardHostValve.invoke
> > (StandardHostValve.java:128)
> >        at org.apache.catalina.valves.ErrorReportValve.invoke
> > (ErrorReportValve.java:102)
> >        at org.apache.catalina.core.StandardEngineValve.invoke
> > (StandardEngineValve.java:109)
> >        at org.apache.catalina.connector.CoyoteAdapter.service
> > (CoyoteAdapter.java:286)
> >        at org.apache.coyote.http11.Http11Processor.process
> > (Http11Processor.java:845)
> >        at org.apache.coyote.http11.Http11Protocol
> > $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >        at 
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> > 447)
> >        at java.lang.Thread.run(Unknown Source)
> > Caused by: java.lang.NullPointerException
> >        at
> > com.project.server.Management.ServerStartupData.setCategoryArrayList
> > (ServerStartupData.java:60)
> >        at com.project.server.Management.ServerSQLServiceImpl.getSQLData
> > (ServerSQLServiceImpl.java:1225)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> >        at java.lang.reflect.Method.invoke(Unknown Source)
> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> > (RPC.java:527)
> >        ... 16 more
> > 01-Apr-2009 13:38:15 org.apache.catalina.core.ApplicationContext log
> > SEVERE: Exception while dispatching incoming RPC call
> > com.google.gwt.user.server.rpc.UnexpectedException: Service method
> > 'public abstract com.project.client.ServerSQLData
> > com.project.client.ServerStatusSQLService.getSQLData()' threw an
> > unexpected exception: java.lang.NullPointerException
> >        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> > (RPC.java:360)
> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> > (RPC.java:546)
> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> > (RemoteServiceServlet.java:164)
> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> > (RemoteServiceServlet.java:86)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> > (ApplicationFilterChain.java:290)
> >        at org.apache.catalina.core.ApplicationFilterChain.doFilter
> > (ApplicationFilterChain.java:206)
> >        at org.apache.catalina.core.StandardWrapperValve.invoke
> > (StandardWrapperValve.java:233)
> >        at org.apache.catalina.core.StandardContextValve.invoke
> > (StandardContextValve.java:191)
> >        at org.apache.catalina.core.StandardHostValve.invoke
> > (StandardHostValve.java:128)
> >        at org.apache.catalina.valves.ErrorReportValve.invoke
> > (ErrorReportValve.java:102)
> >        at org.apache.catalina.core.StandardEngineValve.invoke
> > (StandardEngineValve.java:109)
> >        at org.apache.catalina.connector.CoyoteAdapter.service
> > (CoyoteAdapter.java:286)
> >        at org.a

Re: Deploying on tomcat

2009-04-01 Thread Isaac Truett

And what have you done so far to try to solve this problem?


On Wed, Apr 1, 2009 at 8:48 AM, fatjack1...@googlemail.com
 wrote:
>
> Hi there,
>
> Thanks for your help. That has fixed my last problem, now I am getting
> a new one...
>
> 01-Apr-2009 13:38:15 org.apache.catalina.core.ApplicationContext log
> SEVERE: Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract com.project.client.ServerSQLData
> com.project.client.ServerStatusSQLService.getSQLData()' threw an
> unexpected exception: java.lang.NullPointerException
>        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:360)
>        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:546)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:164)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:290)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
>        at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:233)
>        at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:191)
>        at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:128)
>        at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:102)
>        at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
>        at org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:286)
>        at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:845)
>        at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>        at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NullPointerException
>        at
> com.project.server.Management.ServerStartupData.setCategoryArrayList
> (ServerStartupData.java:60)
>        at com.project.server.Management.ServerSQLServiceImpl.getSQLData
> (ServerSQLServiceImpl.java:1225)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:527)
>        ... 16 more
> 01-Apr-2009 13:38:15 org.apache.catalina.core.ApplicationContext log
> SEVERE: Exception while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract com.project.client.ServerSQLData
> com.project.client.ServerStatusSQLService.getSQLData()' threw an
> unexpected exception: java.lang.NullPointerException
>        at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:360)
>        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:546)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:164)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
> (ApplicationFilterChain.java:290)
>        at org.apache.catalina.core.ApplicationFilterChain.doFilter
> (ApplicationFilterChain.java:206)
>        at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:233)
>        at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:191)
>        at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:128)
>        at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:102)
>        at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
>        at org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:286)
>        at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:845)
>        at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>        at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NullPointerExce

Re: Deploying on tomcat

2009-04-01 Thread fatjack1...@googlemail.com

Hi there,

Thanks for your help. That has fixed my last problem, now I am getting
a new one...

01-Apr-2009 13:38:15 org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.project.client.ServerSQLData
com.project.client.ServerStatusSQLService.getSQLData()' threw an
unexpected exception: java.lang.NullPointerException
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
com.project.server.Management.ServerStartupData.setCategoryArrayList
(ServerStartupData.java:60)
at com.project.server.Management.ServerSQLServiceImpl.getSQLData
(ServerSQLServiceImpl.java:1225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
... 16 more
01-Apr-2009 13:38:15 org.apache.catalina.core.ApplicationContext log
SEVERE: Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.project.client.ServerSQLData
com.project.client.ServerStatusSQLService.getSQLData()' threw an
unexpected exception: java.lang.NullPointerException
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
(RPC.java:360)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:546)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:164)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at
com.project.server.Management.ServerStartupData.setCategoryArrayList
(ServerStartupData.java:60)
at com.project.server.Management.ServerSQLServiceImpl.getSQLData
(ServerSQLServiceImpl.java:1225)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nat

Re: FlexTable : how to get not wrapping text functionality

2009-04-01 Thread Suren

Hi Rudolf,

Ok I agree with that I have the fixed width, but see below what I have
now,

FlexTable f1 = new FlexTable();
f1.setHTML(0, 0, " This is a very long
text");
f1.setBorderWidth(2);
RootPanel.get().add(f1);

Even now its is not working..

Thanks
Suren

On Apr 1, 1:32 pm, rudolf michael  wrote:
> Hello Suren,
> since you have a fixed width on your table then you need to wrap the text
> inside another html tag so it can be wrapped.
> keep the code as it is and try this
> f1.setHTML(0, 0, " This is a very long
> text");
>
>
>
> On Wed, Apr 1, 2009 at 8:23 AM, Suren  wrote:
>
> > Hi Rudolf,
>
> > Thanks for the reply.
>
> > Is there anything to be modified or added in your code posted above.
> > Because as you mentioned, the code is not giving the expected result.
>
> > Here is what I have ...
>
> >   FlexTable f1 = new FlexTable();
> >   f1.setHTML(0, 0, "This is a very long text");
> >   f1.getCellFormatter().setStyleName(0, 0, "felxtabletd");
> >    f1.setBorderWidth(2);
> >   RootPanel.get().add(f1);
>
> > .css file
> > .felxtabletd {
> >       overflow: hidden;
> >       white-space: nowrap;
> >       color: cyan;
> > }
>
> > This is not working for me  :(
>
> > Any thing I am missing out here ...please advise.
>
> > Thanks Suren
>
> > On Mar 31, 12:37 pm, rudolf michael  wrote:
> > > Hello Suren,
> > > Find below the code that should work for you without using set widget
> > inside
> > > a flex table.
> > > FlexTable f1 = new FlexTable();
> > >    f1.setHTML(0, 0, "This is a very long text");
> > >    f1.getCellFormatter().setStyleName(0, 0, "felxtabletd");
> > >    l1.setWidth("20px");
> > >    f1.setWidget(0,0, l1);
> > >    f1.setBorderWidth(2);
> > >    RootPanel.get().add(f1);
>
> > > .css file
> > > .felxtabletd {
> > >        overflow: hidden;
> > >        white-space: nowrap;
> > >        color: cyan;
>
> > > }
>
> > > as you can see above, if you firebug it the css class is now on the td.
> > and
> > > no DIVs anymore inside your flextable.
> > > Usually you should apply the css inheritance in here for the tables and
> > its
> > > TDs but i am not a css expert.
>
> > > On Tue, Mar 31, 2009 at 9:13 AM, Suren  wrote:
>
> > > > Hi All,
>
> > > > Atlast, I did as Rudolf suggested,
>
> > > > here is code below to achieve non wrapping the text in FlexTable using
> > > > a Widget
> > > >    {
>
> > > >    FlexTable f1 = new FlexTable();
> > > >    Label l1 = new Label("This is a very long text");
> > > >    l1.setWidth("20px");
> > > >    f1.setWidget(0,0, l1);
> > > >     f1.setBorderWidth(2);
> > > >    RootPanel.get().add(f1);
>
> > > > }
>
> > > > And in the CSS, I set the style for only Label
>
> > > > .gwt-Label {
> > > >        overflow: hidden;
> > > >        white-space: nowrap;
> > > >        color: cyan;
> > > > }
>
> > > > And this is working absolutely fine.
>
> > > > I would like to know, how I can achieve the same without using widget
> > > > in a FlexTable. I tried the same as Rudolf suggested, but not getting
> > > > the expected result.
>
> > > > Any help would be appreciated
>
> > > > Thanks
> > > > Suren
>
> > > > On Mar 31, 1:40 am, Suren  wrote:
> > > > > Thanks Magius and Rudolf for the reply.
>
> > > > > I should mention that I have a very little exposure to GWT,
>
> > > > > Here, what I have is a simple code using a FlexTable
>
> > > > > [code]
> > > > > import com.google.gwt.core.client.EntryPoint;
> > > > > import com.google.gwt.user.client.ui.FlexTable;
> > > > > import com.google.gwt.user.client.ui.RootPanel;
>
> > > > > public class Thinclient implements EntryPoint {
> > > > >   public void onModuleLoad() {
>
> > > > >     FlexTable f1 = new FlexTable();
> > > > >     f1.getCellFormatter().setWidth(0,0,"2px");
> > > > >     f1.setText(0, 0, "This is a very long text");
> > > > >     f1.setBorderWidth(2);
> > > > >     RootPanel.get().add(f1);
>
> > > > >   }
>
> > > > > }
>
> > > > > [/code]
>
> > > > > I 've tried using widget(Label), HTMLText to achieve the not wrapping
> > > > > functionality.
>
> > > > > But somehow,somewhere, something I am missing with the above
> > suggested
> > > > > implementation and so its getting either wrapped or displayed the
> > full
> > > > > text. I want the text that only fit to the width. Rest can be hidden.
>
> > > > > Kindly advise me to acheive my requirement.
>
> > > > > Thanks
> > > > > Suren
>
> > > > > On Mar 30, 7:53 pm, Magius  wrote:
>
> > > > > > I achieved to avoid the word wrap after a long session with google
> > and
> > > > > > trying different things. And only for IE!
> > > > > > Tables are old elements of HTML with a lot of css-options to
> > render.
>
> > > > > > I did several things, probably some of them are not needed, I
> > expect
> > > > > > to not have forgot anyone.
>
> > > > > > In my widget constructor, I tried and finally commented (my widget
> > > > > > extended FlexTable) :
> > > > > > //              DOM.setStyleAttribute( this.getElement( ),
> > "word-wrap",
> > > > "normal");
> > > > > > //      

Re: 1.62 cannot compile my project

2009-04-01 Thread Isaac Truett

You need to increase stack size (-Xss).



On Wed, Apr 1, 2009 at 3:46 AM, Gilles B  wrote:
>
> I have the same problem, my previous app works fine with GWT 1.53, I
> download the last 1.6 (current is 1.6.3 RC) and remove all warnings
> about Listener,
> I first set xmx to 1024 because 512 was not enought for my
> application. This solve the problem temporarily and I keep on coding.
>
> No if I add some java coding in an existing class the compiled failed
> with the same message, removing these lines solve the problem. These
> lines are not different from my usual code, the same coding is used in
> other classes, the objects used are already used in this class, the
> methods too... may be my project is too big (>300 java classes) ?
>
> [ERROR] Unexpected internal compiler error
> java.lang.StackOverflowError: null
>        at java.lang.ref.ReferenceQueue.poll(ReferenceQueue.java:82)
>        at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java:
> 2234)
>        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:266)
>        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> 1106)
>        at java.io.ObjectOutputStream.defaultWriteFields
> (ObjectOutputStream.java:1509)
>        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> 1474)
>        at java.io.ObjectOutputStream.writeOrdinaryObject
> (ObjectOutputStream.java:1392)
>        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> 1150)
>        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
> 326)
>        at java.util.ArrayList.writeObject(ArrayList.java:570)
>        at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
> to be continued...
>
> On 26 mar, 05:48, Dapeng  wrote:
>> My project started from GWT 1.33 until latest 1.53. All works well.
>> But 1.6RC can not compile. It looks an infinite looping.  I already
>> set xmx to 512M.
>> Exception from here, I ignore thousand lines...
>
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: eclipse is launching forever

2009-04-01 Thread ytbryan

I mean that the elicpse is still at launching stage (launching
2%.) and the hosted browser still didn't show up...

i wonder what is the bottle neck? anybody has a clue or a fix?

On Mar 24, 4:59 pm, "alex.d"  wrote:
> Switch focus between hosted browser and eclipse a few times - this
> should trigger your app to start (that's a quirky solution but it
> works ;-)
>
> hth
>
> On 24 Mrz., 15:20,ytbryan wrote:
>
> > hi all,
>
> > i want to run my gwt app on eclipse. sometimes, after i added some new
> > method and want to launch it.
> > it will take so long to launch.
>
> >  i am thinking that the eclipse is going through those old code/
> > folders which i never edit. does anybody know solution to fix 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-Toolkit@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: Deploying on tomcat

2009-04-01 Thread Isaac Truett

Yes, it's wrong. Your servlet implements the ServerStatusSQLService
interface, so that class has to be deployed with the server classes.



On Wed, Apr 1, 2009 at 5:23 AM, fatjack1...@googlemail.com
 wrote:
>
> I have only placed the server and database packages in the WEB-INF/
> classes folder i.e. I did not place the client package or the public
> package in here. Is this wrong?
>
> Regards,
> Jack
>
> On Apr 1, 9:38 am, Radek Jun  wrote:
>> It is a little bit weird :(. Are you sure that you have all the
>> classes right in the WEB-INF/classes and libraries in WEB-INF/lib ?
>>
>> On Apr 1, 1:41 am, "fatjack1...@googlemail.com"
>>
>>  wrote:
>> > Hi,
>>
>> > I have done this and now get a different error. This has changed from
>> > the other error in that it now says java.lang.ClassNotFoundException:
>> > com.project.client.ServerStatusSQLService. This class is on the client
>> > and so am I right in thinking it should have been compiled by GWT? Can
>> > anyone suggest a reason as to why this would not have worked? FYI this
>> > class extends the com.google.gwt.user.client.rpc.RemoteService
>>
>> > 01-Apr-2009 00:29:59 org.apache.catalina.core.StandardWrapperValve
>> > invoke
>> > SEVERE: Allocate exception for servlet Application-status
>> > java.lang.ClassNotFoundException:
>> > com.project.client.ServerStatusSQLService
>> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
>> > (WebappClassLoader.java:1387)
>> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
>> > (WebappClassLoader.java:1233)
>> >         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> >         at java.lang.ClassLoader.defineClass1(Native Method)
>> >         at java.lang.ClassLoader.defineClass(Unknown Source)
>> >         at java.security.SecureClassLoader.defineClass(Unknown Source)
>> >         at org.apache.catalina.loader.WebappClassLoader.findClassInternal
>> > (WebappClassLoader.java:1847)
>> >         at org.apache.catalina.loader.WebappClassLoader.findClass
>> > (WebappClassLoader.java:890)
>> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
>> > (WebappClassLoader.java:1354)
>> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
>> > (WebappClassLoader.java:1233)
>> >         at org.apache.catalina.core.StandardWrapper.loadServlet
>> > (StandardWrapper.java:1094)
>> >         at org.apache.catalina.core.StandardWrapper.allocate
>> > (StandardWrapper.java:808)
>> >         at org.apache.catalina.core.StandardWrapperValve.invoke
>> > (StandardWrapperValve.java:129)
>> >         at org.apache.catalina.core.StandardContextValve.invoke
>> > (StandardContextValve.java:191)
>> >         at org.apache.catalina.core.StandardHostValve.invoke
>> > (StandardHostValve.java:128)
>> >         at org.apache.catalina.valves.ErrorReportValve.invoke
>> > (ErrorReportValve.java:102)
>> >         at org.apache.catalina.core.StandardEngineValve.invoke
>> > (StandardEngineValve.java:109)
>> >         at org.apache.catalina.connector.CoyoteAdapter.service
>> > (CoyoteAdapter.java:286)
>> >         at org.apache.coyote.http11.Http11Processor.process
>> > (Http11Processor.java:845)
>> >         at org.apache.coyote.http11.Http11Protocol
>> > $Http11ConnectionHandler.process(Http11Protocol.java:583)
>> >         at 
>> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
>> > 447)
>> >         at java.lang.Thread.run(Unknown Source)
>> > 01-Apr-2009 00:29:59 org.apache.catalina.core.StandardWrapperValve
>> > invoke
>> > SEVERE: Allocate exception for servlet Application-status
>> > java.lang.ClassNotFoundException:
>> > com.project.client.ServerStatusSQLService
>> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
>> > (WebappClassLoader.java:1387)
>> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
>> > (WebappClassLoader.java:1233)
>> >         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> >         at java.lang.ClassLoader.defineClass1(Native Method)
>>
>> > On Mar 31, 11:29 pm, Thomas Broyer  wrote:
>>
>> > > On 31 mar, 23:42, "fatjack1...@googlemail.com"
>>
>> > >  wrote:
>> > > > Hi,
>>
>> > > > I have placed my server classes directly in the WEB-INF folder. So the
>> > > > directory reads: WEB-INF\com\project\server
>>
>> > > > Have I placed the server files in the wrong folder?
>>
>> > > Yes, it should be WEB-INF/classes/com/project/server (but people tend
>> > > to JAR the classes and put the jar in WEB-INF/lib)
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: widgets within widgets

2009-04-01 Thread alan m

I hear you. Apologies to list for noob-ishness.

Thanks for your help.

Regards,
Alanj

On Wed, Apr 1, 2009 at 11:38 AM, Paul Robinson  wrote:
>
> alan m wrote:
>> That's it, thanks Paul! I guess using this.button = new MyButton();
>> makes button a property of MyDiv so I can then use button's methods
>> from this class - this.button.addClickListener et.c. Is this
>> conceptually correct? I'm still learning OOP as you can tell! ;-)
>>
>> Much obliged,
>> Alanj
>>
>>
>>
> Sort of. You're just keeping a reference to the instance of MyButton
> that was created so you can do stuff with it later.  It's not the
> *class* that's holding a reference to the instance of MyButton though -
> it's the instance of MyDiv that's keeping a reference to the instance of
> MyButton.
>
> BTW - This is not the best mail list to use for help learning OOP and
> java - though I'm not sure where is!
>
> Paul
>
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Java Objects not Seen in Javascript

2009-04-01 Thread Thomas Broyer



On 1 avr, 04:00, Homeopath1  wrote:
> That is not my problem. The code I have ported to GWT Java does not
> reply on Javascript API's. It is just some fairly basic code. My
> problem is not being able to find the Java objects that I created in
> the compiled JS code.

What are you looking for?

1. if you're compiling in OBF/OBFUSCATED mode (the default), your
FrameworkBase will have been renamed, so you cannot search for
FrameworkBase in the *.cache.* files.

2. if you're willing to use myFramework from hand-written javascript
(outside GWT), then have a look at
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=DevGuideJavaFromJavaScript
(particularly the last section at the bottom of the page)
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: widgets within widgets

2009-04-01 Thread Paul Robinson

alan m wrote:
> That's it, thanks Paul! I guess using this.button = new MyButton();
> makes button a property of MyDiv so I can then use button's methods
> from this class - this.button.addClickListener et.c. Is this
> conceptually correct? I'm still learning OOP as you can tell! ;-)
>
> Much obliged,
> Alanj
>
>
>   
Sort of. You're just keeping a reference to the instance of MyButton
that was created so you can do stuff with it later.  It's not the
*class* that's holding a reference to the instance of MyButton though -
it's the instance of MyDiv that's keeping a reference to the instance of
MyButton.

BTW - This is not the best mail list to use for help learning OOP and
java - though I'm not sure where is!

Paul

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Window.Location.replace() doesn't work in Safari or Chrome or Opera

2009-04-01 Thread Thomas Broyer



On 1 avr, 01:54, Ian Bambury  wrote:
> 2009/3/31 Thomas Broyer 
>
>
>
> > Depends what "original token" is defined to be ;-)
> > if it is History.getToken(), then I'm back to my earlier proposal:
> > propagate a "is default" flag.
>
> I'm happy for you to define 'original token' if you can get it to work.
>
> But I don't need an isDefault flag - I already know that without it.

It would help if I knew how ;-)

But yes, thinking a bit more about it, isDefault wouldn't work. What
would work is a "history initiated" flag.

> How does it work with your definition of 'original token'?

I must have missed something in your app/framework behavior...

The problem is that History.getToken() can be where you come from
(when setMenuByToken is called by the menu) or where you're going to
(in response to history change), so you cannot use an if
(History.getToken().length()==0) to condition the call to
History.newItem(), or you'll never call newItem() (you pointed it
already: the onModuleLoad without hash/anchor propagates down, the
test evaluates to false and newItem isn't called, that's what we want,
but then clicking a menu propagates down to the page and the test
still evaluates to false).

Hence the introduction of the isHistoryInitiated flag.
1. onModuleLoad without hash/anchor: the page is shown with
isHistoryInitiated set to 'true', so in the end, History.newItem isn't
called, that's what we want (URL untouched, no history entry)
2. you click on the "panels" menu which calls setMenuByToken with
isHistoryInitiated==false, the #Panels~Summary page thus call
History.newItem
3. you navigate back to the home using your browser's back button:
onHistoryChange calls setMenuByToken with isHistoryInitiated==true,
the #Home page doesn't call newItem (it does not need to, as the
current history token already matches the displayed page)


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: AJAX app stuck when running Selenium RC

2009-04-01 Thread Stefan Hübner

To proof that Selenium does disrupt application execution I've
modified the application so that it sends messages to the server in
1000ms intervalls. Those messages should get logged in the webserver
log.

Now if I open the deployed application messages appear in the log as
expected. If I then fire up the Selenium tests on the very same
application no such messages end up on the server!

I haven't found any info whether this happened to other people as
well. But I'm asking again: Has anybody had similar issues? And maybe
a solution?

Thanks,
-Stefan

sthueb...@googlemail.com (Stefan Hübner)
writes:

> Hi,
>
> We have a problem with testing a GWT (Google Web Toolkit) based
> application. The application has different dialogs which get
> attached/unattached to the DOM due to user navigation.
>
> Now the problem is, when running Selenium RC test (using the Selenium
> Client Java Driver and Selenium server 1.0-beta-2) the app gets stuck
> while Selenium tests wait for elements to become present. We use
> isElementPresent() via the provided Wait class as recommended in the
> Selenium-Wiki FAQ. It seems Selenium blocks the normal javascript
> execution of the application, since the elements to wait for never show
> up and it's waiting forever. Under normal circumstances attaching these
> elements is a snap (a matter of milliseconds).
>
> This is a serious issue since it brakes all our tests. How could I get
> around this behaviour?
>
> Thanks,
> -Stefan
>
>
> 

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why not use applets?

2009-04-01 Thread Rockster

I don't want to think of a situation where you have to install plugins
to use your webapplications. Don't get me wrong, I like Adobe Flex.
But doesn't run on any device (read: phone!)

Now I can walk with my iPhone and access almost any application.

Javascript nowadays seems almost as fast as plugin technologies
GWT is a nice example of this.



On Mar 31, 10:15 pm, "Clint Gilbert"
 wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> That may be true, but the perceptual damage is done.  I never bothered to 
> keep up with
> Applet developments because the user experience was so bad for so long.  (10+ 
> years?  I'm
> pretty sure I saw my first applet in 1995, but I don't know if it was running 
> in a browser.)
>
> So does the JVM plugin start up as fast as Flash now?  If so, that's great.
>
> D Peters wrote:
> > For the record -- a significant amount of the common applet
> > performance gripes were cleared up in 6u10.  I'm suprised that so many
> > java developers know nothing about this release.  This was a milestone
> > for JavaFX to move forward -- since it was built on top of a lot of
> > these improvements.  If you don't mind JavaFX in the browser (it
> > doesnt have to run as JNLP, by the way)-- then you probably won't mind
> > using an applet -- because it is essentially running as an applet.  As
> > more people develop JavaFX applications, and it becomes more
> > widespread, you will have a broader base of users who can also use
> > applets.
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.6 (GNU/Linux)
>
> iD8DBQFJ0nnnrZoE3ArapxERCEXgAJ92wRZF3eFht2GJCgSgRuEWFxCuGACgrRBr
> jfDfHe8ibw3yQnkcEy+NP/A=
> =g5Pl
> -END PGP SIGNATURE-
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: widgets within widgets

2009-04-01 Thread alan m

That's it, thanks Paul! I guess using this.button = new MyButton();
makes button a property of MyDiv so I can then use button's methods
from this class - this.button.addClickListener et.c. Is this
conceptually correct? I'm still learning OOP as you can tell! ;-)

Much obliged,
Alanj

On Wed, Apr 1, 2009 at 10:44 AM, Paul Robinson  wrote:
>
> public class MyDiv extends FlowPanel {
>        private MyButton button;
>
>        public MyDiv(){
>                setStyle();
>                this.button = new MyButton();
>                this.add(button);
>        }
>
>        public MyDiv(String html) {
>                setStyle();
>                this.button = new MyButton(html);
>                this.add(button);
>        }
>
>        public void addClickListener(ClickListener listener) {
>                this.button.addClickListener(listener);
>        }
> }
>
>
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Information on the GWT1.6 Compared with GWT1.5

2009-04-01 Thread Thomas Broyer



On 1 avr, 11:31, Jason Morris  wrote:
> On the surface, a Handler is just a Listener, but with only 1 event method. 
> Event Handlers also
> don't have a removeOnClickHandler method, instead the add method returns a 
> registration object that
> can be used to de-register that handler.
>
> Underneath, Handlers are a very different beast. All of the Handlers for a 
> specific Widget are
> registered with the same HandlerManager, thus no more needs for a 
> ClickListenerCollection and a
> MouseListenerCollection and a KeyboardListenerCollection, etc.

...and note that the now-deprecated listeners have been "rewritten" on
top of this new "handlers" system, with some overhead (compensating
the removal of the XXXListenerCollections). Notably, adding a listener
creates a wrapper class and adds it as a handler for each event
handled by the listener, even if you don't handle it; and removing a
listener is quite costly (the wrapper doesn't keep a reference to the
HandlerRegistration objects, as it could potentially be added as a
handler to more than one widget –even if that's not the case when
using the now-deprecated add/removeXXXListener methods–).

In other words: if you switch to 1.6, switch to handlers at the same
time!
(and if you made your own listener interfaces, transform them to event
classes and handler interfaces)


A side effect of this new "layout" is also that it makes it possible/
easier, in composite widgets, to attach a KeyUpHandler to one child
widget and a KeyDownHandler to another child widget and, for
performance (to reduce the number of classes, see [1]), implement them
at the composite (or rather an internal class) level: onKeyUp will
only ever be called by one child widget and onKeyDown by the other.

In GWT 1.5:
class MyWidget extends Composite {
   TextBox a;
   TextBox b;
   KeyboardListener listener = new KeyboardListener() {
  public  void onKeyDown(Widget sender, char keyCode, int
modifiers) {
 if (sender.equals(a)) {
// a fired a "key down" event
 }
  }

  public  void onKeyPress(Widget sender, char keyCode, int
modifiers) {
 // I don't need "key press" events
  }

  public  void onKeyUp(Widget sender, char keyCode, int modifiers)
{
 if (sender.equals(b)) {
// b fired a "key up" event
 }
  }
   };

   MyWidget() {
  ...
  a.addKeyboardListener(listener);
  b.addKeyboardListener(listener);
   }
}

In GWT 1.6: (note that the "keypress" event is never ever sinked at
the DOM level, which also helps in improving performances a bit)
public class MyWidget extends Composite {
   TextBox a;
   TextBox b;
   Handlers handlers = new Handlers();

   MyWidget() {
  ...
  a.addKeyDownHandler(handlers);
  b.addKeyUpHandler(handlers);
   }

   private class Handlers implements KeyUpHandler, KeyDownHandler {
  public void onKeyDown(KeyDownEvent event) {
 // no need to check: a fired a "key down" event
  }

  public void onKeyUp(KeyUpEvent event) {
 // no need to check: b fired a "key up" event
  }
   }
}

[1] 
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_UIUseOneListener
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



RPC Serializable problem

2009-04-01 Thread jba...@googlemail.com

I am working on a gwt-Evaluation project and we are working with
smartgwt, our first goal was to simply make a GUI working with local
TestData. Now we are supposed to split the client code from the
TestData which should be moved to the server. So I need to make RPC
calls to get the necessary data from the server services all the time
but I have a hard time getting it to work because of non-serializable
types I guess. This is a simplyfied code example.

My user-defined Class is not serializable it seems but I can't figure
out why.

ZeitbuchungDaten.class
[CODE]
package com.isp.ajaxtest.client;


import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ZeitbuchungDaten implements IsSerializable
{
  private int idZeitbuchung;
  private int idMitarbeiter;
  private int idAuftrag;
  private DatezeitpunktDerBuchung;
  private int buchungsArt;
  private double  fertiggestelltInProzent;
  private double  geschaetzteRestzeitInStunden;
  private boolean endeGebucht;
  private int startIdZeitbuchung;
  private int endeIdZeitbuchung;
  private boolean storniert;
  private String  kommentarZurBuchung;

  public ZeitbuchungDaten( int idZeitbuchung, int idMitarbeiter, int
idAuftrag, Date zeitpunktDerBuchung,
   int buchungsArt )
  {
this.setIdZeitbuchung( idZeitbuchung );
this.setIdMitarbeiter( idMitarbeiter );
this.setIdAuftrag( idAuftrag );
this.setZeitpunktDerBuchung( zeitpunktDerBuchung );
this.setBuchungsArt( buchungsArt );
this.setFertiggestelltInProzent( fertiggestelltInProzent );
this.setGeschaetzteRestzeitInStunden
( geschaetzteRestzeitInStunden );
this.setEndeGebucht( endeGebucht );
this.setStartIdZeitbuchung( startIdZeitbuchung );
this.setEndeIdZeitbuchung( endeIdZeitbuchung );
this.setStorniert( storniert );
this.setKommentarZurBuchung( kommentarZurBuchung );
  }
//Setter+Getter
}
[/CODE]

FakeDatenService.java
[CODE]
package com.isp.ajaxtest.client;

  import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

  @RemoteServiceRelativePath("fakeDaten")
  public interface FakeDatenService extends RemoteService {

List getAlleZeitbuchungen();
List getAlleZeitbuchungenByIdAuftrag(int
idAuftrag);
  }
[/CODE]
Same for FakeDatenServiceAsync.java

FakeDatenServiceImpl.java
[CODE]
package com.isp.ajaxtest.server;


import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import com.isp.ajaxtest.client.ZeitbuchungDaten;

public class FakeDatenServiceImpl extends RemoteServiceServlet
implements FakeDatenService
{
  final List alleZeitbuchungen = new
ArrayList();

@SuppressWarnings("deprecation")
public FakeDatenServiceImpl()
{
//Test Date Object
final Date date = new Date();
date.setDate( 22 );
date.setYear( 108 );
date.setMonth( 7 );

//ZeitbuchungDatenContainer
final ZeitbuchungDaten testZeitbuchung1 = new ZeitbuchungDaten( 1,
1, 1, date, 0 );
testZeitbuchung1.setEndeGebucht( true );
testZeitbuchung1.setEndeIdZeitbuchung( 2 );
alleZeitbuchungen.add( testZeitbuchung1 );
//many more hard-coded ZeitbuchungDatenObjects

}

  public List getAlleZeitbuchungen()
  {
return alleZeitbuchungen;
  }

  public List getAlleZeitbuchungenByIdAuftrag(int
idAuftrag)
  {
List alleZeitbuchungenByIdAuftrag = new
ArrayList();

for(int i = 0; i
getAlleZeitbuchungen()
   Return type:
java.util.List
  java.util.List
 Verifying instantiability
java.util.Stack
   Checking parameters of
'java.util.Stack'
  Checking type argument 0 of type
'java.util.Stack' because it is directly exposed in this type or in
one of its subtypes
 com.isp.ajaxtest.client.ZeitbuchungDaten
Type
'com.isp.ajaxtest.client.ZeitbuchungDaten' was not serializable and
has no concrete serializable subtypes
java.util.Vector
   Checking parameters of
'java.util.Vector'
  Checking type argument 0 of type
'java.util.Vector' because it is directly exposed in this type or
in one of its subtypes
 com.isp.ajaxtest.client.ZeitbuchungDaten
Type
'com.isp.ajaxtest.client.ZeitbuchungDaten' was not serializable and
has no concrete serializable subtypes
 
java.util.LinkedList
   Checking parameters of
'java.util.LinkedList'
  Checking type argument 0 of type
'java.util.LinkedList' because it is directly exposed in this type
or in one of its subtypes
 com.isp.ajaxtest.client.ZeitbuchungDaten
Type
'com.isp.ajaxtest.client.ZeitbuchungDaten' was not serializable and
has no concrete serializable subtypes
 
java.util.Arrays.ArrayList
   Checking parameters of
'java.util.Arrays

Left widget of HorizontalSpliPanel is not visible

2009-04-01 Thread Neo

I have created a DecoratedTabPanel with three tabs. Tab 1 and Tab 3
have some basic widgets. In the second tab I have added a
HorizontalSpliPanel to the DecoratedTabPanel. On load I want to
display the first tab by default.

I have used the following code to add the HorizontalSpliPanel :
horizontalSplitPanel.setSize("500px", "350px");
horizontalSplitPanel.setSplitPosition("30%");
horizontalSplitPanel.setRightWidget(new HTML("some text goes here");
horizontalSplitPanel.setLeftWidget(new HTML("some text goes here");


//Add widget for 1st Tab
.

//Add widget for 2nd Tab
decoratedTabPanel.add(horizontalSplitPanel, "Some Label");

//Add widget for 3rd Tab
.

However, when I click the second tab to view the Horizontal Split
Panel, the right hand side of the Horizontal Split Panel covers the
entire area and the left hand side widget is not visible. I have to
manually drag the splitter towards the right to view the contents of
the left widget. What I want is to view the left widget and the right
widget of the Horizontal Split Panel as per the size I have set.

Please 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-Toolkit@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
-~--~~~~--~~--~--~---



CSS Style for single tabs of a TabBar

2009-04-01 Thread -Lord-67

Hi everyone,

i am trying to disable a few tabs in my TabBar since there is no
content in some cases. Therefor i disabled those tabs due to adding a
TabListener with the Method onBeforeTabSelected which returns false if
the tabIndex fits. (hint from this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/ceeca70295818527/65cbf68fbaff5f5b?lnk=gst&q=tab+disable#65cbf68fbaff5f5b)
. It works fine and nothing happens if you try to click on the tab.
Now i want those disabled tabs to look different than active or
selected tabs.

Example CSS file:
.MainBar .gwt-TabBar {
  background-color: #22;
}

.MainBar .gwt-TabBarItem {
  font-weight: bold;
  cursor: pointer;
  background-color: red;
}

.MainBar .gwt-TabBarItem-selected {
  font-weight: bolder;
  cursor: default;
  background-color: green;
}

.MainBar .gwt-TabBarItem-disabled {
  color:  grey;
  font-style: italic;
  background-color: yellow;
  cursor: default;
}

It works for the active and selected tabs, but i think disabled tabs
are not supported in GWT 1.5.3 that's why i have to set the style on
my own (since i only managed to disable them), but i don't know how to
access a single tab. Any suggestions? If there is a better way to
disable tabs and change the style let me know! I think with GWT 1.6 it
is possible to enable/disable single tabs, but i would like to work
with 1.5.3 until 1.6 has the status of a new official release.

Thanks a lot in advance,
-Lord-67
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



form problem under ie.

2009-04-01 Thread Tóth Imre
Hi all!
I have a littel table, and i wanna generate a html Form from it.. it works
at the backend I process it with php.
I generate it like this.

form=new FormPanel();

form.setAction(GWT.getHostPageBaseURL()

+"time_records_backend/sendTimeRecords/");

form.setEncoding(FormPanel.ENCODING_URLENCODED);
form.setMethod(FormPanel.METHOD_POST);
FlowPanel hpnl= new FlowPanel();
form.setWidget(hpnl);


   //Adds the hidden variables to  the panel called hpnl;

for(int i=0;i

If I send it from fox the php got it, bit under ie, the php got nothing at
the $_POST.
What could go wrong?

tnx




-- 
Best Regards
Tóth Imre

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: widgets within widgets

2009-04-01 Thread alan m

To be even clearer, in MyDiv I added

public MyDiv (String html, ClickListener listener){
super();
setStyle();
MyButton button = new MyButton(html, listener);
button.addClickListener(listener);
this.add(button);   
}

which looks legal according to MyEclipse, but produces the compile error.

FYI MyButton (which worked before I tried wrapping it) has:

public MyButton(String html, ClickListener listener) {
super(html, listener);
}

Was this what you meant Luke?

On Wed, Apr 1, 2009 at 10:28 AM, alan m  wrote:
> Thanks Luke,
>
> But actually  doing that in MyDiv causes a compilation error:
>
> cannot find symbol
> symbol  : method addClickListener( com.google.gwt.user.client.ui.ClickListener>)
> location: class com.dds.gwt.widgets.client.ui.MyDiv
>
> Just to be clear, MyButton already has listeners set up using Button's
> native clicklistener so I just want MyDiv wrapper to pass a listener
> to MyButton.
>
> Thanks,
> Alanj
>
> On Tue, Mar 31, 2009 at 11:34 PM, lukehashj  wrote:
>>
>> It sounds like you want to implement the SourcesClickEvents class.
>>
>> Just implement that class, in your implementation just use
>> button.addClickListener().
>>
>> Of course, you'll need to bump the button out of your constructor and
>> into scope.
>>
>> -luke
>>
>> On Mar 31, 12:59 pm, alanj  wrote:
>>> Hi, I'm new to java & gwt, so please be gentle :-)
>>>
>>> I'm wrapping a MyButton widget, which extends Button,  inside another
>>> widget MyDiv which extends FlowPanel, to control styles etc. So:
>>>
>>> public class MyDiv extends FlowPanel {
>>>         public MyDiv(){
>>>                 super();
>>>                 setStyle();
>>>                 MyButton  button = new MyButton();
>>>                 this.add(button);
>>>         }
>>>         public MyDiv(String html) {
>>>                 super();
>>>                 setStyle();
>>>                 MyButton button = new MyButton(html);
>>>                 this.add(button);
>>>         }
>>>         private void setStyle(){
>>>                 addStyleName("button");
>>>         }
>>> etc.}
>>>
>>> Can I within this MyDiv class create an addClickListener(ClickListener
>>> listener) method -  native to Button but not to FlowPanel -  which
>>> simply passes a received listener over to the MyButton widget which
>>> can use it? So from somewhere else:
>>>
>>> newButton = new MyDiv("click me");
>>> newButton.addClickListener(new ClickListener(){
>>>                         public void onClick(Widget widget) {
>>>                                //do something on click
>>>                         }});
>>>
>>>  gives
>>>  which does
>>> something on click
>>>
>>> Thanks in advance!
>>>
>>> Alanj
>> >>
>>
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: widgets within widgets

2009-04-01 Thread Paul Robinson

public class MyDiv extends FlowPanel {
private MyButton button;

public MyDiv(){
setStyle();
this.button = new MyButton();
this.add(button);
}

public MyDiv(String html) {
setStyle();
this.button = new MyButton(html);
this.add(button);
}

public void addClickListener(ClickListener listener) {
this.button.addClickListener(listener);
}
}


--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Is there any other easy and faster way to add text to FlexTable?

2009-04-01 Thread Thomas Broyer



On 1 avr, 09:20, Suren  wrote:
> Hi All,
>
> I am using FlexTable to populate 100 rows and each row has around 90
> columns.

First, if you know in advance the size of your "grid" and you do not
need cells spanning multiple columns or rows, consider using a Grid
rather than FlexTable.


> Please advise..I am facing performance issue with this..

Have a look at:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=FAQ_UILargeTablePerformance

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Information on the GWT1.6 Compared with GWT1.5

2009-04-01 Thread Jason Morris

On the surface, a Handler is just a Listener, but with only 1 event method. 
Event Handlers also 
don't have a removeOnClickHandler method, instead the add method returns a 
registration object that 
can be used to de-register that handler.

Underneath, Handlers are a very different beast. All of the Handlers for a 
specific Widget are 
registered with the same HandlerManager, thus no more needs for a 
ClickListenerCollection and a 
MouseListenerCollection and a KeyboardListenerCollection, etc. The 
HandlerManager will also manage 
any Handlers and Events that you invent and want to add to the Widget.

On top of that, DOM events (click, mouse, keyboard, etc) are handled specially 
and only sinkEvents 
when the related handler is added.

The result of this "uniform event mechanism" is that the amount of code GWT 
generates is a lot less, 
and consumes less memory than the old Listener mechanism.

More detail available on my blog:

http://lemnik.wordpress.com/2009/03/04/gwts-new-event-model-handlers-in-gwt-16/
http://lemnik.wordpress.com/2009/03/12/using-event-handlers-in-gwt-16/

Hope that helps a bit.
//J

Ved wrote:
> Hi,
> 
> I have a query regarding the listners which are exposed by GWT1.6 API
> for the widgets Comparing the same with GWT 1.5
> 
> I have seen a drastic change in the listner API exposed by the GWT 1.6
> for Eg:
> addClickListner is not present in GWT1.6 it has addClickHandler
> 
> 
> Can i know why these listeners are deprecated and what advantage i get
> it from Using 1.6 rather than GWT 1.5
> 
> 
> Thanks & Regards,
> Ved Prakash Kamishetty
> 
> 
> > 
> 

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: widgets within widgets

2009-04-01 Thread alan m

Thanks Luke,

But actually  doing that in MyDiv causes a compilation error:

cannot find symbol
symbol  : method addClickListener()
location: class com.dds.gwt.widgets.client.ui.MyDiv

Just to be clear, MyButton already has listeners set up using Button's
native clicklistener so I just want MyDiv wrapper to pass a listener
to MyButton.

Thanks,
Alanj

On Tue, Mar 31, 2009 at 11:34 PM, lukehashj  wrote:
>
> It sounds like you want to implement the SourcesClickEvents class.
>
> Just implement that class, in your implementation just use
> button.addClickListener().
>
> Of course, you'll need to bump the button out of your constructor and
> into scope.
>
> -luke
>
> On Mar 31, 12:59 pm, alanj  wrote:
>> Hi, I'm new to java & gwt, so please be gentle :-)
>>
>> I'm wrapping a MyButton widget, which extends Button,  inside another
>> widget MyDiv which extends FlowPanel, to control styles etc. So:
>>
>> public class MyDiv extends FlowPanel {
>>         public MyDiv(){
>>                 super();
>>                 setStyle();
>>                 MyButton  button = new MyButton();
>>                 this.add(button);
>>         }
>>         public MyDiv(String html) {
>>                 super();
>>                 setStyle();
>>                 MyButton button = new MyButton(html);
>>                 this.add(button);
>>         }
>>         private void setStyle(){
>>                 addStyleName("button");
>>         }
>> etc.}
>>
>> Can I within this MyDiv class create an addClickListener(ClickListener
>> listener) method -  native to Button but not to FlowPanel -  which
>> simply passes a received listener over to the MyButton widget which
>> can use it? So from somewhere else:
>>
>> newButton = new MyDiv("click me");
>> newButton.addClickListener(new ClickListener(){
>>                         public void onClick(Widget widget) {
>>                                //do something on click
>>                         }});
>>
>>  gives
>>  which does
>> something on click
>>
>> Thanks in advance!
>>
>> Alanj
> >
>

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Compiling servlet classes

2009-04-01 Thread Thomas Broyer



On 1 avr, 08:09, "m...@gmail.com"  wrote:
> Hi Sumit,
>
> I didn't forget to include the gwt-servlet.jar in the javac classpath,
> that's why I'm surprised of this error...

Er, gwt-servlet does *not* include the javax.servlet classes (it's
meant do be deployed in your servlet container, which already has
them), use gwt-dev- for compilation and gwt-servlet only for
deployment (or add your servlet.jar (or whatever its name) in the
classpath in addition to gwt-servlet when compiling).
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deploying on tomcat

2009-04-01 Thread fatjack1...@googlemail.com

I have only placed the server and database packages in the WEB-INF/
classes folder i.e. I did not place the client package or the public
package in here. Is this wrong?

Regards,
Jack

On Apr 1, 9:38 am, Radek Jun  wrote:
> It is a little bit weird :(. Are you sure that you have all the
> classes right in the WEB-INF/classes and libraries in WEB-INF/lib ?
>
> On Apr 1, 1:41 am, "fatjack1...@googlemail.com"
>
>  wrote:
> > Hi,
>
> > I have done this and now get a different error. This has changed from
> > the other error in that it now says java.lang.ClassNotFoundException:
> > com.project.client.ServerStatusSQLService. This class is on the client
> > and so am I right in thinking it should have been compiled by GWT? Can
> > anyone suggest a reason as to why this would not have worked? FYI this
> > class extends the com.google.gwt.user.client.rpc.RemoteService
>
> > 01-Apr-2009 00:29:59 org.apache.catalina.core.StandardWrapperValve
> > invoke
> > SEVERE: Allocate exception for servlet Application-status
> > java.lang.ClassNotFoundException:
> > com.project.client.ServerStatusSQLService
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1387)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1233)
> >         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >         at java.lang.ClassLoader.defineClass1(Native Method)
> >         at java.lang.ClassLoader.defineClass(Unknown Source)
> >         at java.security.SecureClassLoader.defineClass(Unknown Source)
> >         at org.apache.catalina.loader.WebappClassLoader.findClassInternal
> > (WebappClassLoader.java:1847)
> >         at org.apache.catalina.loader.WebappClassLoader.findClass
> > (WebappClassLoader.java:890)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1354)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1233)
> >         at org.apache.catalina.core.StandardWrapper.loadServlet
> > (StandardWrapper.java:1094)
> >         at org.apache.catalina.core.StandardWrapper.allocate
> > (StandardWrapper.java:808)
> >         at org.apache.catalina.core.StandardWrapperValve.invoke
> > (StandardWrapperValve.java:129)
> >         at org.apache.catalina.core.StandardContextValve.invoke
> > (StandardContextValve.java:191)
> >         at org.apache.catalina.core.StandardHostValve.invoke
> > (StandardHostValve.java:128)
> >         at org.apache.catalina.valves.ErrorReportValve.invoke
> > (ErrorReportValve.java:102)
> >         at org.apache.catalina.core.StandardEngineValve.invoke
> > (StandardEngineValve.java:109)
> >         at org.apache.catalina.connector.CoyoteAdapter.service
> > (CoyoteAdapter.java:286)
> >         at org.apache.coyote.http11.Http11Processor.process
> > (Http11Processor.java:845)
> >         at org.apache.coyote.http11.Http11Protocol
> > $Http11ConnectionHandler.process(Http11Protocol.java:583)
> >         at 
> > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> > 447)
> >         at java.lang.Thread.run(Unknown Source)
> > 01-Apr-2009 00:29:59 org.apache.catalina.core.StandardWrapperValve
> > invoke
> > SEVERE: Allocate exception for servlet Application-status
> > java.lang.ClassNotFoundException:
> > com.project.client.ServerStatusSQLService
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1387)
> >         at org.apache.catalina.loader.WebappClassLoader.loadClass
> > (WebappClassLoader.java:1233)
> >         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> >         at java.lang.ClassLoader.defineClass1(Native Method)
>
> > On Mar 31, 11:29 pm, Thomas Broyer  wrote:
>
> > > On 31 mar, 23:42, "fatjack1...@googlemail.com"
>
> > >  wrote:
> > > > Hi,
>
> > > > I have placed my server classes directly in the WEB-INF folder. So the
> > > > directory reads: WEB-INF\com\project\server
>
> > > > Have I placed the server files in the wrong folder?
>
> > > Yes, it should be WEB-INF/classes/com/project/server (but people tend
> > > to JAR the classes and put the jar in WEB-INF/lib)
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: 1.6 Event handlers

2009-04-01 Thread Thomas Broyer



On 1 avr, 09:28, magbyr  wrote:
> Hello.
>
> I'm having some trouble understanding the new event handlers.
> When creating a composite A containing widgets B and C, I want
> different events from B and C to create a ValueChangeEvent on A. This
> way other widgets using A can handle one event instead of two.
>
> A - ValueChangeHandler
> B - KeyUpHandler
> C - ChangeHandler
>
> What's the best way to do this?

I haven't yet used the new event system, so I might be wrong, but
here's my attempt:

> class A extends Composite implements HasValueChangeHandlers {
>    private Panel container;
>    private TextBox B;
>    private ListBox C;
>
>    A() {
>       B.addKeyUpHandler(

new KeyUpHandler() {
   public void onKeyUp(KeyUpEvent event) {
  fireValueChanged();
   }
}

>   );
>       C.addChangeHandler(

new ChangeHandler() {
   public void onChange(ChangeEvent event) {
  fireValueChanged();
   }
}

>   );
>       container.add(B);
>       container.add(C);
>       initWidget(container);
>    }
>
>    public HandlerRegistration addValueChangeHandler
> (ValueChangeHandler handler) {

return addHandler(handler, ValueChangeEvent.getType());

>}


private void fireValueChanged() {
   ValueChangeEvent.fire(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-Toolkit@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: Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server

2009-04-01 Thread Thomas Broyer



On 1 avr, 10:28, dduck  wrote:
> Hi,
>
> I am implementing a rather standard backend/frontend structure. My
> backend is implemented in Java. My frontend is implemented in GWT. I
> am using Eclipse.
>
> The frontend will be a simple viewer for "some data", that will be
> accessed through an interface.
>
> I would like to package this interface in a Jarfile, so the backend
> and frontend can share this code without creating any cut/paste/synch
> errors.
>
> I have created a Jar file, that contains a skeleton structure (my
> "hello world" of including a Jar"). It contains both the .class
> and .java files from the interface project).
>
> The contents are:
> a...@worm:~/tmp$ unzip orion-gwtresultsmodel.jar
> Archive:  orion-gwtresultsmodel.jar
>    creating: META-INF/
>   inflating: META-INF/MANIFEST.MF
>    creating: dk/
>    creating: dk/ange/
>    creating: dk/ange/orion/
>    creating: dk/ange/orion/gwt/
>    creating: dk/ange/orion/gwt/models/
>    creating: dk/ange/orion/gwt/models/results/
>    creating: dk/ange/orion/gwt/models/results/interf/
>   inflating: dk/ange/orion/gwt/models/results/interf/Results.class
>   inflating: dk/ange/orion/gwt/models/results/interf/Results.java
>
> I have put the jarfile in my GWT project (in ./lib), and added it to
> the Java build path in Eclipse. Now my editor can see it.
>
> Unfortunately, when I try to run the GWT project, I get this error:
>
> "Failed to load module dk.ange.orion.gwt.frontend.GwtResults. Please
> see the log in the development shell for details".
>
> The log reads:
> "Compiling java source files in module
> 'dk.ange.orion.gwt.frontend.GwtResults'
> Removing units with errors
> Errors in 'file:/home/asj/crypt/myShopInstall/gwtresults/dk/ange/orion/
> gwt/frontend/client/GwtResults.java'
> Line 24: No source code is available for type
> dk.ange.orion.gwt.models.results.interf.Results; did you forget to
> include a required module?"
>
> Any hints?

Only classes in the subpackage designated by the  in your
gwt.xml (defaulting to "client" if not specified) are "seen" by the
compiler.

This means you'd have to put a gwt.xml at some package level
containing the interface and inherit it from your GwtResults.gwt.xml.
e.g. in dk/ange/orion/gwt, create Models.gwt.xml file with , and in your GwtResult.gwt.xml add an 

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: What's the Easiest Way to Handle Server / Client Time differences?

2009-04-01 Thread Magius

It's a bit unclear, the problem with a day is because the difference
of 4 hours?

One way to manage dates, when all the users are in the same timezone,
is to manage it as a String (mmdd for example). It's very clear
for all developpers in the project (specially for junior ones).

The best way is to use UTC (standard time) + Date objects + timezones.
In this way you will not have any problem with timezones, daysavings
time, etc.
But all the users must have well configured it's timezone.
And dates should always be used in Java and stored in the server as
Dates, timestamps or an apropiate object.
For some people it's difficult to work in this way because each time
they debug or review some information
the hour depends on the configured timezone. For example you can see
one hour in the logs, another different in TOAD and another different
in a TOAD in other PC, but all could be the same. It's translated to
string using the local configuration of the PC your were working.


On Mar 31, 1:41 am, Superman859  wrote:
> I have an java.util.Date object that is passed using GWT-RPC from the
> server to the client.  It is pulled from a MySQL database as some date
> at 12h 00m 00s (12:00 AM).  However, when it arrives to the client,
> the time is 8:00 PM the day before (4 hours earlier).  I assume this
> is because my timezone is EST and I believe we are offset 4 hours from
> UTC.
>
> I'm not sure what the best way to handle this is.  I'm developing an
> application that a client will install, and I'm not sure on their
> server configurations / their client machines are configured.
>
> What would be the easiest way for the times to match up?  Do I have to
> assume they have a specific time zone set?
>
> The problem isn't so much in the hours matching, but in the days.
> Currently, March 27 on the server turns into March 26 on the client,
> so all statistics have everything one day previous.  I could simply
> set the time from 12:00AM to 12:00PM, as this would probably avoid the
> issue since the offset should be less than 12 hours, but is there a
> better solution?
>
> When they create a date client side, it gets sent to the server and
> saved into a MySQL database.  Currently, they create March 27, it goes
> to the server as March 27, saves in database as March 27, pulls from
> db as March 27, but when it arrives back at the client again it is now
> March 26.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Left widget not visible in HorizontalSplitPanel

2009-04-01 Thread Neo

Hi,
I am trying to add a HorizontalSplitPanel to a DecoratedTabPanel. In
the DecoratedTabPanel I have set 3 tabs. I have the
HorizontalSplitPanel in my second tab. On page load I want the first
tab be displayed by default hence I have set :

decoratedTabPanel.selectTab(0);

(First tab and third tab have some basic widgets)

For the second tab i am doing this :
horizontalSplitPanel.setSize("500px", "350px");
horizontalSplitPanel.setSplitPosition("30%");
horizontalSplitPanel.setRightWidget(new HTML("some text goes here");
horizontalSplitPanel.setLeftWidget(new HTML("some text goes here");

When I click the second tab, the left widget is hidden from view. The
right widget covers the entire area. I have to drag the splitter
manually towards the right side to see the left widget.
What i really want is that both the rigth and the left widget should
be displayed as per the size I have set.

Please 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-Toolkit@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: Announcing GWT 1.6 RC2

2009-04-01 Thread Thomas Broyer



On 1 avr, 05:52, "C.H."  wrote:
> >New Features
> >    ...faster compilation...
>
> How much faster compilation compare to 1.5?

AFAICT, compiling a given permutation isn't faster than in 1.5 but
permutations are now compiled in parallel threads.
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Deploying on tomcat

2009-04-01 Thread Radek Jun

It is a little bit weird :(. Are you sure that you have all the
classes right in the WEB-INF/classes and libraries in WEB-INF/lib ?

On Apr 1, 1:41 am, "fatjack1...@googlemail.com"
 wrote:
> Hi,
>
> I have done this and now get a different error. This has changed from
> the other error in that it now says java.lang.ClassNotFoundException:
> com.project.client.ServerStatusSQLService. This class is on the client
> and so am I right in thinking it should have been compiled by GWT? Can
> anyone suggest a reason as to why this would not have worked? FYI this
> class extends the com.google.gwt.user.client.rpc.RemoteService
>
> 01-Apr-2009 00:29:59 org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Allocate exception for servlet Application-status
> java.lang.ClassNotFoundException:
> com.project.client.ServerStatusSQLService
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1387)
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1233)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClass(Unknown Source)
>         at java.security.SecureClassLoader.defineClass(Unknown Source)
>         at org.apache.catalina.loader.WebappClassLoader.findClassInternal
> (WebappClassLoader.java:1847)
>         at org.apache.catalina.loader.WebappClassLoader.findClass
> (WebappClassLoader.java:890)
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1354)
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1233)
>         at org.apache.catalina.core.StandardWrapper.loadServlet
> (StandardWrapper.java:1094)
>         at org.apache.catalina.core.StandardWrapper.allocate
> (StandardWrapper.java:808)
>         at org.apache.catalina.core.StandardWrapperValve.invoke
> (StandardWrapperValve.java:129)
>         at org.apache.catalina.core.StandardContextValve.invoke
> (StandardContextValve.java:191)
>         at org.apache.catalina.core.StandardHostValve.invoke
> (StandardHostValve.java:128)
>         at org.apache.catalina.valves.ErrorReportValve.invoke
> (ErrorReportValve.java:102)
>         at org.apache.catalina.core.StandardEngineValve.invoke
> (StandardEngineValve.java:109)
>         at org.apache.catalina.connector.CoyoteAdapter.service
> (CoyoteAdapter.java:286)
>         at org.apache.coyote.http11.Http11Processor.process
> (Http11Processor.java:845)
>         at org.apache.coyote.http11.Http11Protocol
> $Http11ConnectionHandler.process(Http11Protocol.java:583)
>         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
> 447)
>         at java.lang.Thread.run(Unknown Source)
> 01-Apr-2009 00:29:59 org.apache.catalina.core.StandardWrapperValve
> invoke
> SEVERE: Allocate exception for servlet Application-status
> java.lang.ClassNotFoundException:
> com.project.client.ServerStatusSQLService
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1387)
>         at org.apache.catalina.loader.WebappClassLoader.loadClass
> (WebappClassLoader.java:1233)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>         at java.lang.ClassLoader.defineClass1(Native Method)
>
> On Mar 31, 11:29 pm, Thomas Broyer  wrote:
>
> > On 31 mar, 23:42, "fatjack1...@googlemail.com"
>
> >  wrote:
> > > Hi,
>
> > > I have placed my server classes directly in the WEB-INF folder. So the
> > > directory reads: WEB-INF\com\project\server
>
> > > Have I placed the server files in the wrong folder?
>
> > Yes, it should be WEB-INF/classes/com/project/server (but people tend
> > to JAR the classes and put the jar in WEB-INF/lib)

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FlexTable : how to get not wrapping text functionality

2009-04-01 Thread rudolf michael
Hello Suren,
since you have a fixed width on your table then you need to wrap the text
inside another html tag so it can be wrapped.
keep the code as it is and try this
f1.setHTML(0, 0, " This is a very long
text");


On Wed, Apr 1, 2009 at 8:23 AM, Suren  wrote:

>
> Hi Rudolf,
>
> Thanks for the reply.
>
> Is there anything to be modified or added in your code posted above.
> Because as you mentioned, the code is not giving the expected result.
>
> Here is what I have ...
>
>   FlexTable f1 = new FlexTable();
>   f1.setHTML(0, 0, "This is a very long text");
>   f1.getCellFormatter().setStyleName(0, 0, "felxtabletd");
>f1.setBorderWidth(2);
>   RootPanel.get().add(f1);
>
>
> .css file
> .felxtabletd {
>   overflow: hidden;
>   white-space: nowrap;
>   color: cyan;
> }
>
> This is not working for me  :(
>
> Any thing I am missing out here ...please advise.
>
> Thanks Suren
>
> On Mar 31, 12:37 pm, rudolf michael  wrote:
> > Hello Suren,
> > Find below the code that should work for you without using set widget
> inside
> > a flex table.
> > FlexTable f1 = new FlexTable();
> >f1.setHTML(0, 0, "This is a very long text");
> >f1.getCellFormatter().setStyleName(0, 0, "felxtabletd");
> >l1.setWidth("20px");
> >f1.setWidget(0,0, l1);
> >f1.setBorderWidth(2);
> >RootPanel.get().add(f1);
> >
> > .css file
> > .felxtabletd {
> >overflow: hidden;
> >white-space: nowrap;
> >color: cyan;
> >
> > }
> >
> > as you can see above, if you firebug it the css class is now on the td.
> and
> > no DIVs anymore inside your flextable.
> > Usually you should apply the css inheritance in here for the tables and
> its
> > TDs but i am not a css expert.
> >
> >
> >
> > On Tue, Mar 31, 2009 at 9:13 AM, Suren  wrote:
> >
> > > Hi All,
> >
> > > Atlast, I did as Rudolf suggested,
> >
> > > here is code below to achieve non wrapping the text in FlexTable using
> > > a Widget
> > >{
> >
> > >FlexTable f1 = new FlexTable();
> > >Label l1 = new Label("This is a very long text");
> > >l1.setWidth("20px");
> > >f1.setWidget(0,0, l1);
> > > f1.setBorderWidth(2);
> > >RootPanel.get().add(f1);
> >
> > > }
> >
> > > And in the CSS, I set the style for only Label
> >
> > > .gwt-Label {
> > >overflow: hidden;
> > >white-space: nowrap;
> > >color: cyan;
> > > }
> >
> > > And this is working absolutely fine.
> >
> > > I would like to know, how I can achieve the same without using widget
> > > in a FlexTable. I tried the same as Rudolf suggested, but not getting
> > > the expected result.
> >
> > > Any help would be appreciated
> >
> > > Thanks
> > > Suren
> >
> > > On Mar 31, 1:40 am, Suren  wrote:
> > > > Thanks Magius and Rudolf for the reply.
> >
> > > > I should mention that I have a very little exposure to GWT,
> >
> > > > Here, what I have is a simple code using a FlexTable
> >
> > > > [code]
> > > > import com.google.gwt.core.client.EntryPoint;
> > > > import com.google.gwt.user.client.ui.FlexTable;
> > > > import com.google.gwt.user.client.ui.RootPanel;
> >
> > > > public class Thinclient implements EntryPoint {
> > > >   public void onModuleLoad() {
> >
> > > > FlexTable f1 = new FlexTable();
> > > > f1.getCellFormatter().setWidth(0,0,"2px");
> > > > f1.setText(0, 0, "This is a very long text");
> > > > f1.setBorderWidth(2);
> > > > RootPanel.get().add(f1);
> >
> > > >   }
> >
> > > > }
> >
> > > > [/code]
> >
> > > > I 've tried using widget(Label), HTMLText to achieve the not wrapping
> > > > functionality.
> >
> > > > But somehow,somewhere, something I am missing with the above
> suggested
> > > > implementation and so its getting either wrapped or displayed the
> full
> > > > text. I want the text that only fit to the width. Rest can be hidden.
> >
> > > > Kindly advise me to acheive my requirement.
> >
> > > > Thanks
> > > > Suren
> >
> > > > On Mar 30, 7:53 pm, Magius  wrote:
> >
> > > > > I achieved to avoid the word wrap after a long session with google
> and
> > > > > trying different things. And only for IE!
> > > > > Tables are old elements of HTML with a lot of css-options to
> render.
> >
> > > > > I did several things, probably some of them are not needed, I
> expect
> > > > > to not have forgot anyone.
> >
> > > > > In my widget constructor, I tried and finally commented (my widget
> > > > > extended FlexTable) :
> > > > > //  DOM.setStyleAttribute( this.getElement( ),
> "word-wrap",
> > > "normal");
> > > > > //  DOM.setStyleAttribute( this.getElement( ),
> > > "white-space",
> > > > > "nowrap");
> >
> > > > > For the 1st row (header)
> > > > > getRowFormatter( ).setStyleName( 0,
> "table-header");
> >
> > > > > For each row:
> > > > > getRowFormatter( ).setStyleName( j, "table-row");
> > > > > getCellFormatter( ).setWidth( 0, j, width); /* I
> fixed
> > > > > each column here, in the header cells */
> >
> > > > > For ea

Help me make my own Jar file with an interface, that can be shared between the client and a Java-based server

2009-04-01 Thread dduck

Hi,

I am implementing a rather standard backend/frontend structure. My
backend is implemented in Java. My frontend is implemented in GWT. I
am using Eclipse.

The frontend will be a simple viewer for "some data", that will be
accessed through an interface.

I would like to package this interface in a Jarfile, so the backend
and frontend can share this code without creating any cut/paste/synch
errors.

I have created a Jar file, that contains a skeleton structure (my
"hello world" of including a Jar"). It contains both the .class
and .java files from the interface project).

The contents are:
a...@worm:~/tmp$ unzip orion-gwtresultsmodel.jar
Archive:  orion-gwtresultsmodel.jar
   creating: META-INF/
  inflating: META-INF/MANIFEST.MF
   creating: dk/
   creating: dk/ange/
   creating: dk/ange/orion/
   creating: dk/ange/orion/gwt/
   creating: dk/ange/orion/gwt/models/
   creating: dk/ange/orion/gwt/models/results/
   creating: dk/ange/orion/gwt/models/results/interf/
  inflating: dk/ange/orion/gwt/models/results/interf/Results.class
  inflating: dk/ange/orion/gwt/models/results/interf/Results.java

I have put the jarfile in my GWT project (in ./lib), and added it to
the Java build path in Eclipse. Now my editor can see it.

Unfortunately, when I try to run the GWT project, I get this error:

"Failed to load module dk.ange.orion.gwt.frontend.GwtResults. Please
see the log in the development shell for details".

The log reads:
"Compiling java source files in module
'dk.ange.orion.gwt.frontend.GwtResults'
Removing units with errors
Errors in 'file:/home/asj/crypt/myShopInstall/gwtresults/dk/ange/orion/
gwt/frontend/client/GwtResults.java'
Line 24: No source code is available for type
dk.ange.orion.gwt.models.results.interf.Results; did you forget to
include a required module?"

Any hints?

Regards,
  Anders
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to create a live suggestion box using GWT-Ext

2009-04-01 Thread deeps

Hi actually basic combo box in Gwt-Ext is similar to suggestion box in
Smart Gwt. I want to know how to implement it in live as done in
google. kindly oblige...

On Mar 27, 11:42 pm, wouter  wrote:
> Can you tell what you already have and where you're stuck ?
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: 1.62 cannot compile my project

2009-04-01 Thread Gilles B

I have the same problem, my previous app works fine with GWT 1.53, I
download the last 1.6 (current is 1.6.3 RC) and remove all warnings
about Listener,
I first set xmx to 1024 because 512 was not enought for my
application. This solve the problem temporarily and I keep on coding.

No if I add some java coding in an existing class the compiled failed
with the same message, removing these lines solve the problem. These
lines are not different from my usual code, the same coding is used in
other classes, the objects used are already used in this class, the
methods too... may be my project is too big (>300 java classes) ?

[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError: null
at java.lang.ref.ReferenceQueue.poll(ReferenceQueue.java:82)
at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java:
2234)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:266)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1106)
at java.io.ObjectOutputStream.defaultWriteFields
(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
1474)
at java.io.ObjectOutputStream.writeOrdinaryObject
(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor119.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
to be continued...

On 26 mar, 05:48, Dapeng  wrote:
> My project started from GWT 1.33 until latest 1.53. All works well.
> But 1.6RC can not compile. It looks an infinite looping.  I already
> set xmx to 512M.
> Exception from here, I ignore thousand lines...

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



1.6 Event handlers

2009-04-01 Thread magbyr

Hello.

I'm having some trouble understanding the new event handlers.
When creating a composite A containing widgets B and C, I want
different events from B and C to create a ValueChangeEvent on A. This
way other widgets using A can handle one event instead of two.

A - ValueChangeHandler
B - KeyUpHandler
C - ChangeHandler

What's the best way to do this?

class A extends Composite implements HasValueChangeHandlers {
   private Panel container;
   private TextBox B;
   private ListBox C;

   A() {
  B.addKeyUpHandler(?);
  C.addChangeHandler(?.);
  container.add(B);
  container.add(C);
  initWidget(container);
   }

   public HandlerRegistration addValueChangeHandler
(ValueChangeHandler handler) { ?. };
}
--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT 1.6 - How do I change the default "war" directory name

2009-04-01 Thread Jan

Dear GWT community,

I am considering using GWT 1.6 in a project, but have one major
concern: GWT 1.6 no longer places the public files (like the host page
or the module XML) in the "public" sub directory of the root package
but inside a "war/module" directory.

As all my projects already exist and e.g. use "WebContent" or "Web"
etc. as root for the directory containing all the static content, it
would be nice to reuse the existing structure.

My question is therefore: Is there a way to change the default
directory name "war" to something else. I would be surprised if not,
but I haven't found any info in the GWT documentation pages. It would
be great if someone could help me.

Thanks in advance,

Jan.

--~--~-~--~~~---~--~~
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.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Is there any other easy and faster way to add text to FlexTable?

2009-04-01 Thread Suren

Hi All,

I am using FlexTable to populate 100 rows and each row has around 90
columns.
below is my code to acheive that..But its very time consuming. please
advise if anyother easy way to implement this also if anyother
controls I can try out other than FlexTable.

[code]
public void onSuccess(Object result) {
try {
System.out.println("Start of Movt Values");
ArrayList movData = (ArrayList) result;
System.out.println("movData.size.."+movData.size());
int currentrow = 0;
if (movData.size() > 0) {
for (int movIndex = 0; movIndex < 30; movIndex++) {//movData.size()
String rowDataObj[];
rowDataObj = new String[86];
rowDataObj = (String[])movData.get(movIndex);

//set the text in Flex Table
for (int cell=0;cellhttp://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---