Re: flash source for visualizations

2009-01-28 Thread Ranen Ghosh
I suspect that the flash component is not open source.  My inquiry into the
Timepedia Chronoscope chart visualization yielded that result --

--~--~-~--~~~---~--~~
You received 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: Web ontology language file (OWL) into gwt tree

2009-01-28 Thread Ed Cannon
Hi Gregor,

Thanks for your useful advice. I'm dealing with a fairly small ontology file
(just over 200 owl:classes), which may get larger if I merge other
ontologies into it. I was simply looking to display the .owl file in a tree
in the first instance.

I think as you suggest rightly it would be much better to let the server do
the work.

I will look into Sesame and Jena.

Thanks again for your help and quick response,

Ed

2009/1/28 gregor 

>
> Hi Ed,
>
> Are you talking about just a smallish ontology (i.e. the class
> definitions etc) which you want to display/edit (e.g. for schema
> design purposes), or are you talking about processing a lot of data
> from/defined in an OWL source (e.g. navigation/search purposes)?
>
> I don't use OWL sources, but I use RDF/RDFS data quite a lot. I load
> RDF files into a Sesame memory store on server and fire SeRQL queries
> against it from GWT RPC servlets. This works pretty well. Jenna is an
> alternative.
>
> I would think writing a client side OWL browser/editor is non-trivial,
> and not helped by the limitations of GWT JRE Emulation. A lot easier I
> would think to let Sesame/Jenna do the work on the server, and ship
> the results in small chunks to the client. For example I use one RDF
> source that defines about 3500 classes and subclasses. I use a lazy
> load Tree widget for one view of this (i.e get the top layer, get next
> layers if/when user clicks to open branch). This is very quick (Sesame
> does the queries in about 16-32ms).
>
> If you need to edit the ontology itself, that's another matter.
>
> regards
> gregor
>
> On Jan 27, 11:42 pm, "eoc...@googlemail.com" 
> wrote:
> > Hi,
> >
> > I have a web ontology file (.owl) that I have parsed into a string
> > using the RequestBuilder and was wondering how I can access all of the
> > individual owl:classes and their subclasses on the client, then build
> > a tree from this hierarchy as the xmlparser/dom does not work for this
> > purpose (though as you might expect it has worked on a test xml case).
> >
> > An alternative would be to use the OWL api on the server and return a
> > hashmap of all the owl:class,sub:class values, then construct the tree
> > from the hashmap.
> >
> > I was just wondering whether its possible to do it on the client. Any
> > help on this matter would be greatly appreciated!
> >
> > Thanks in advance,
> >
> > Ed
> >
>

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Restrain the DialogBox to move out of browser window

2009-01-28 Thread Danny Schimke
Hello!

Is it possible to restrain the DialogBox to move out on right and bottom
side of the browsers windows? When I move the box over it's header it should
stay completely in the visible browser window area, because I disabled the
scroll bars and the user should not be able to move the DialogBox in a not
viewed area.

And second: in IE6 the DialogBox is only dragable by the text in it's
header. Is there a clean way to allow IE6 users to drag&drop the box like in
FF or IE7 over the complete header?

Thank you 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
-~--~~~~--~~--~--~---



Re: GWTTestCase v/s Selenium

2009-01-28 Thread Serge

I see one serious problem with Selenium using: if you use GwtExt then
all page's ids changes dynamically, so you can't use Selenium's
scripts directly - you have to rewrite it for another methods of
page's widgets determination (f.e. by name, by location and so on).
If anybody know how to force GwtExt to generate ids once it would be
good!
--~--~-~--~~~---~--~~
You received 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: Client-side GChart 2.4 Released: Click events, pop-ups, selection brushes, etc.

2009-01-28 Thread doopa

Good work John. Congratulations on the new release. I'll be testing
this later and will be sure to update you.

Thanks,

niall

On Jan 28, 6:41 am, John Gunther  wrote:
> Client-side GChart is an open source, 100% pure Java chart library for
> GWT supporting line, pie, and bar charts.
>
> With version 2.4, GChart now tracks mouse activities over the chart,
> and selects points, displays pop-ups, and fires off click events
> accordingly.
>
> HomePage:http://gchart.googlecode.com
> Live 
> demo:http://gchart.googlecode.com/svn/trunk/live-demo/v2_4/com.googlecode
> Release 
> notes:http://gchart.googlecode.com/svn/trunk/doc/com/googlecode/gchart/clie...
>
> Mouse over and click on the live demo to see the new features in
> action. Beyond that, the release notes describe every change, and link
> back to the new features' javadocs and sample code.
>
> John C. Gunther
--~--~-~--~~~---~--~~
You received 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 log/audit/track GWT RPC calls?

2009-01-28 Thread doopa



On Jan 28, 5:34 am, hazy1  wrote:
> Here are some options:
>
> 1)  Using a servlet filter mapped to the URL pattern of your GWT
> servlets
> 2)  Log yourself inside of the GWT servlet

I'd go for the second option as it will allow you more flexibility in
what you log.
>
> Matt
>
> On Jan 27, 4:01 pm, ka1n  wrote:
>
> > I'd like to track the usage of my GWT application.  Specifically, I'd
> > like to be able to log the service class and method of each RPC call.
> > I wasn't able to find anything in RemoteServiceServlet that might help
> > me to do this.  Can anyone point me in the right direction?
>
>
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



VLC embedding in GWT

2009-01-28 Thread Venkat

Hi All,

I need a help in embedding  VLC player in GWT. below is the code I
have written for integrating..

i took the reference from http://wiki.videolan.org/GWT

html = new HTML();
initWidget(html);

StringBuffer sb = new StringBuffer();
sb.append("http://downloads.videolan.org/pub/
videolan/vlc/latest/win32/axvlc.cab/" +
"width=\""+ pixelWidth + "\" height=\""+
pixelHeight + "\" id=\"vlc\" events =\"True\">");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("http://www.videolan.org\";
type=\"application/x-vlc-plugin\" progid=\"VideoLAN.VLCPlugin.2\"width=
\""+ pixelWidth + "\" height=\""+
pixelHeight + "\" id=\"vlc\" events =\"True\" name=\"vlc
\" >");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
sb.append("");
html.setHTML(sb.toString());

setPixelSize(pixelWidth, pixelHeight);
html.setPixelSize(pixelWidth, pixelHeight);
}

}

Please help me

Regards,
Venkat
--~--~-~--~~~---~--~~
You received 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: VLC embedding in GWT

2009-01-28 Thread Venkat

I forgot to mention my issues for previous post..

I am streaming vedio but its not working in both IE and firefox..

Venkat

On Jan 28, 4:42 pm, Venkat  wrote:
> Hi All,
>
> I need a help in embedding  VLC player in GWT. below is the code I
> have written for integrating..
>
> i took the reference fromhttp://wiki.videolan.org/GWT
>
> html = new HTML();
> initWidget(html);
>
> StringBuffer sb = new StringBuffer();
> sb.append(" AD51-BE1D1C159921\" codebase=\"http://downloads.videolan.org/pub/
> videolan/vlc/latest/win32/axvlc.cab/" +
> "width=\""+ pixelWidth + "\" height=\""+
> pixelHeight + "\" id=\"vlc\" events =\"True\">");
> sb.append("");
> sb.append("");
> sb.append("");
>
> sb.append("");
> sb.append("");
> sb.append("");
> sb.append("");
> sb.append("http://www.videolan.org\";
> type=\"application/x-vlc-plugin\" progid=\"VideoLAN.VLCPlugin.2\"width=
> \""+ pixelWidth + "\" height=\""+
> pixelHeight + "\" id=\"vlc\" events =\"True\" 
> name=\"vlc
> \" >");
> sb.append("");
>
> sb.append("");
> sb.append("");
> sb.append("");
> sb.append("");
> sb.append("");
> sb.append("");
> sb.append("");
> html.setHTML(sb.toString());
>
> setPixelSize(pixelWidth, pixelHeight);
> html.setPixelSize(pixelWidth, pixelHeight);
> }
>
> }
>
> Please help me
>
> Regards,
> Venkat
--~--~-~--~~~---~--~~
You received 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: VLC embedding in GWT

2009-01-28 Thread Lothar Kimmeringer

Venkat schrieb:
> I forgot to mention my issues for previous post..
> 
> I am streaming vedio but its not working in both IE and firefox..

if you create a static HTML-page containing this block of
HTML-code, does the player play? If not, the problem is
not GWT-related. Maybe your videoUrl is wrong.


Regards, Lothar

--~--~-~--~~~---~--~~
You received 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: whitelist

2009-01-28 Thread Arend van der Veen
Hi Daniel,

Thanks for the reply.  I know about the limitations of the same origin
policy.  I didn't realize that the GWT Shell was behaving like a real
browser.  I thought that whitelist would allow me to override it for the
Shell.

Thanks,
Arend

On Wed, Jan 28, 2009 at 2:34 AM, Daniel Kurka
wrote:

> Hello Arend,
> you should read up on the same orign policy:
> The browser is not allowed to perform an ajax request to any other server
> than the webpage was loaded from (same host AND same port). I noticed that
> IE somtimes lets you do this request (even though it shouldnt).
>
> So if you want to contact your webservice with an ajax request you have to
> first contact the server with an rpc call and he can call the webservice and
> return the result to the browser
>
> Daniel
>
> 2009/1/27 Arend van der Veen 
>
>
>> HI All,
>>
>> I am developing a GWT application with requires access to a restful
>> service (not java based).  I can compile the program and post it on a
>> web server with the web service and everything works great.  However,
>> I am having trouble getting it to work properly in hosted mode.  I
>> previously tried the noserver option but had problem with missing
>> images,etc. and was hoping to see if I could use whitelist to resolve
>> the problem.
>>
>> The restful service is listening on a different port (8000).My
>> shell script is setup to execute as follows:
>>
>> java  -Xmx256M -cp "$APPDIR/src:$APPDIR/bin:$GWT_HOME/gwt-user.jar:
>> $GWT_HOME/gwt-dev-linux.jar" com.google.gwt.dev.GWTShell -whitelist
>> "^http[:][/][/]127[.]0[.]0[.]1[:]8000" -out "$APPDIR/www" "$@" a.B/
>> B.html;
>>
>> Tomcat Lite is running on the default address of http://localhost:.
>> I can access http://127.0.0.1:8000/restlet/profile if I type it
>> directory into the location in hosted mode.
>>
>> As part of my application I attempt to access this service using:
>>
>> RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,"http://
>> 127.0.0.1:8000/restlet/profile");
>> try {
>>builder.sendRequest(null, new RequestCallback() {
>>...
>>...
>>
>> This call will generate an error:  The URL
>> http://127.0.0.1:8000/restlet/profile
>> is invalid or violates the same-origin security restriction.I
>> thought that setting whitelist would allow me to access this URL from
>> my application without getting the error.  Am I missing someting?  I
>> have seen previous posts about this but have not found a solution.
>>
>> Thanks for any help,
>> Arend
>>
>>
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
You received 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: VLC embedding in GWT

2009-01-28 Thread Venkat

Hey Lothar,


I did not check it with HTML, lemme try that. the url vedio is a valid
one.. I checked.. do there is any err in m y code.

Regards,

Venkat

On Jan 28, 5:07 pm, Lothar Kimmeringer  wrote:
> Venkat schrieb:
>
> > I forgot to mention my issues for previous post..
>
> > I am streaming vedio but its not working in both IE and firefox..
>
> if you create a static HTML-page containing this block of
> HTML-code, does the player play? If not, the problem is
> not GWT-related. Maybe your videoUrl is wrong.
>
> Re
gards, Lothar
--~--~-~--~~~---~--~~
You received 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: VLC embedding in GWT

2009-01-28 Thread Venkat

Hi Lothar,

It worked fine in html.

Please help me where I am making wrong.

Regards,
Venkat

On Jan 28, 5:07 pm, Lothar Kimmeringer  wrote:
> Venkat schrieb:
>
> > I forgot to mention my issues for previous post..
>
> > I am streaming vedio but its not working in both IE and firefox..
>
> if you create a static HTML-page containing this block of
> HTML-code, does the player play? If not, the problem is
> not GWT-related. Maybe your videoUrl is wrong.
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received 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 widget to display status?

2009-01-28 Thread Litty Preeth
You can make the label "pretty" using CSS.

- Litty

On Tue, Jan 27, 2009 at 11:23 PM, tony.p..  wrote:

>
> Hello all,
>
> I'm developing a gwt app and in it I want to display error messages,
> status, etc... to the user in a widget. I want to display it in a gray
> color, to distinguish it from the rest of the content. I used a label,
> but it's not that pretty. What widget do you recommend?
>
> Thank you.
> Tony
> >
>

--~--~-~--~~~---~--~~
You received 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: Threaded Servlet

2009-01-28 Thread stephen.sm...@paretopartners.com

My appologies jason, you were correct. I totally forgot about max
connections per browser.

So it would appear that my servlet is multi theaded after all and as a
result, not thread safe :)

Maybe this should be added to the GWT docs as this is something that i
feel could be very easily overlooked.

On Jan 28, 6:25 am, Jason Morris  wrote:
> I tried reproducing your test to see what you were getting. I found the 
> behavior when I ran the code
> in Hosted Mode and executed "serverMethod()" /twice/ before executing 
> "anotherMethod()" (it didn't
> matter how many Hosted Browsers I had open).
>
> When running the same test in real browsers (I used Firefox and Konqueror) 
> the behavior was
> substantially different.
>
> Like I said, browsers generally only allow for 2 open connections per server. 
> If you invoke a
> "connection hogging" method twice, you have no more connections to invoke a 
> different method. That
> said, this is a strictly client side issue, GWT's RemoteServiceServlet is not 
> limiting you to a
> single Thread.
>
> Try the same test with a normal HttpServlet and a RequestBuilder, you'll see 
> the same results as you
> do with RPC.
>
>
>
> stephen.sm...@paretopartners.com wrote:
> > @shawn
> > Thats ok :)
>
> > @jason
> > Well these "Tests" are very basic. i create an app with a simple rpc
> > call to the server that does something like this:
>
> > public boolean serverMethod() {
> >   for (;;) {
> >     if (false) {
> >       break;
> >     }
> >   }
> >   return true;
> > }
>
> > public boolean anotherMethod() {
> >   return true;
> > }
>
> > As you would expect, callingserverMethod() creates an infinite loop
> > tying up that thread.
>
> > then i opened up a second, seperate browser and called anotherMethod
> > ().
>
> > result: Nothing. Not a sausage :)
>
> > So id say my results are pretty solid. 1 single lonely thread :(
>
> > On Jan 27, 3:17 pm, Shawn Pearce  wrote:
> >> On Tue, Jan 27, 2009 at 01:42, stephen.sm...@paretopartners.com <
>
> >> stephen.sm...@paretopartners.com> wrote:
>
> >>> I never said it cretaed multiple instances, simply a new thread per
> >>> request.
> >> *sigh*.  I must not have had enough coffee in the morning before replying 
> >> to
> >> your post.  I read "thread" as "instance" in your original post.  Sorry.
>
> >>> On Jan 23, 4:30 pm, Shawn Pearce  wrote:
>  On Fri, Jan 23, 2009 at 08:17, stephen.sm...@paretopartners.com <
>  stephen.sm...@paretopartners.com> wrote:
> > Standard servlets create a new thread per request but from a few
> > simple test i have run this appears not to be the case with GWT.
> >> Like what everyone else has already said; each concurrent request runs on
> >> its own thread, but that thread isn't necessarily new.
>
> >> Most containers recycle threads as thread spin-up/shutdown are relatively
> >> expensive operations.  Pooling threads and recycling them across requests
> >> reduces the per-request overheads imposed by the container, allowing
> >> applications to use a larger percentage of the CPU, and the per-request
> >> latency target the developer is shooting for.  E.g. in my latest GWT based
> >> application, I was trying to hit <200 ms latency.  The more of that time
> >> that is available to the application, the more useful work I can do within
> >> that window.- 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: Automatically updating data

2009-01-28 Thread Litty Preeth
May be some of the Event Listeners will help you... But I dnt really follow
your problem... Can you explain a bit more?

On Wed, Jan 28, 2009 at 1:25 AM, fatjack1...@googlemail.com <
fatjack1...@googlemail.com> wrote:

>
> Hi,
>
> I wonder if anyone can help me. I am trying to get a box with an
> Arraylist of items to automatically update its contents whenever the
> user adds a new item. So it writes to the database (this works fine)
> but then it does not automatically update the textbox. The only way i
> can get it to work is by restarting the whole program. Can someone
> please point me in the right direction.
>
> Cheers,
> Jack
> >
>

--~--~-~--~~~---~--~~
You received 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: Error Message

2009-01-28 Thread Litty Preeth
What is the type of Panel you are using?

On Wed, Jan 28, 2009 at 3:39 AM, fatjack1...@googlemail.com <
fatjack1...@googlemail.com> wrote:

>
> Does anyone know which method/panel I should be using?
>
>
> On Jan 27, 10:01 pm, Jason Essington 
> wrote:
> > What ever type of panel you are attempting to add a widget to, hasn't
> > overriden the .add(Widget child) method from Panel, so it is throwing
> > this exception. perhaps there is a different method that you are
> > supposed to use to add widgets to your panel?
> >
> > -jason
> >
> > On Jan 27, 2009, at 2:40 PM, fatjack1...@googlemail.com wrote:
> >
> >
> >
> > > Hi,
> >
> > > I am receiving the following error message when I try to add a new
> > > item to a database:
> >
> > > [ERROR] Uncaught exception escaped
> > > java.lang.UnsupportedOperationException: This panel does not support
> > > no-arg add()
> > >at com.google.gwt.user.client.ui.Panel.add(Panel.java:66)
> > >at
> com.project.client.EditItemsGUI$2.onSuccess(EditItemsGUI.java:220)
> > >at
> > > com
> > > .google
> > > .gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
> > > (RequestCallbackAdapter.java:215)
> > >at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> > > (Request.java:254)
> > >at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> > > (Request.java:226)
> > >at com.google.gwt.http.client.Request.fireOnResponseReceived
> > > (Request.java:217)
> > >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.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)
> >
> > > It actually adds the item to the database, it just doesnt show up
> > > unless I restart the application. Please can someone help?
> >
> > > Regards,
> > > Jack
> >
>

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Change default size of embedded browser

2009-01-28 Thread googelybear

Hi all,

Is it somehow possible to change the default size of the embedded
browser window (for me it's always to small and I'd like to have it
bigger by default instead of always having to restart the window)? Or
is this something that's handled by the OS (I'm running gwt on an
ubuntu linux box)?

thanks,
Den
--~--~-~--~~~---~--~~
You received 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 with anchor on image

2009-01-28 Thread Litty Preeth
Put style="height: 20px; display: block;" to all the anchor tags.

On Wed, Jan 28, 2009 at 4:22 AM, drbethel  wrote:

>
> I am having an issue with the anchor tags on this page I am working
> on.  If I remove the anchor tags then it looks like what I want but if
> I replace the tags then it leaves a gap between the two tables.  I
> have to have the anchors for navigation so need to know how to remove
> the space below the image.
>
> This is the link to the one that it should look like, the one without
> the anchors
> http://thetest.uuuq.com/problems/tabletest.htm
>
> This is the link to the one with the anchors and the extra gap below
> the tabs.
> http://thetest.uuuq.com/problems/tabletest1.htm
>
> The black background just helps you see what I am talking about.
>
> Thank you very much for your help.
>
> Dwain
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Error Message

2009-01-28 Thread Addy

Sounds like you are trying to use dockPanel without defining the
direction.
You need to use command like

dockPanel.add(widget, DockPanel.north);

On Jan 27, 5:09 pm, "fatjack1...@googlemail.com"
 wrote:
> Does anyone know which method/panel I should be using?
>
> On Jan 27, 10:01 pm, Jason Essington 
> wrote:
>
> > What ever type of panel you are attempting to add a widget to, hasn't  
> > overriden the .add(Widget child) method from Panel, so it is throwing  
> > this exception. perhaps there is a different method that you are  
> > supposed to use to add widgets to your panel?
>
> > -jason
>
> > On Jan 27, 2009, at 2:40 PM, fatjack1...@googlemail.com wrote:
>
> > > Hi,
>
> > > I am receiving the following error message when I try to add a new
> > > item to a database:
>
> > > [ERROR] Uncaught exception escaped
> > > java.lang.UnsupportedOperationException: This panel does not support
> > > no-arg add()
> > >    at com.google.gwt.user.client.ui.Panel.add(Panel.java:66)
> > >    at com.project.client.EditItemsGUI$2.onSuccess(EditItemsGUI.java:220)
> > >    at
> > > com
> > > .google
> > > .gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
> > > (RequestCallbackAdapter.java:215)
> > >    at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> > > (Request.java:254)
> > >    at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> > > (Request.java:226)
> > >    at com.google.gwt.http.client.Request.fireOnResponseReceived
> > > (Request.java:217)
> > >    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.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)
>
> > > It actually adds the item to the database, it just doesnt show up
> > > unless I restart the application. Please can someone help?
>
> > > Regards,
> > > Jack
--~--~-~--~~~---~--~~
You received 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: Error Message

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

The items should be added to a FlexTable and the FlexTable is being
added to a ScrollPanel.


On Jan 28, 1:24 pm, Litty Preeth  wrote:
> What is the type of Panel you are using?
>
> On Wed, Jan 28, 2009 at 3:39 AM, fatjack1...@googlemail.com <
>
> fatjack1...@googlemail.com> wrote:
>
> > Does anyone know which method/panel I should be using?
>
> > On Jan 27, 10:01 pm, Jason Essington 
> > wrote:
> > > What ever type of panel you are attempting to add a widget to, hasn't
> > > overriden the .add(Widget child) method from Panel, so it is throwing
> > > this exception. perhaps there is a different method that you are
> > > supposed to use to add widgets to your panel?
>
> > > -jason
>
> > > On Jan 27, 2009, at 2:40 PM, fatjack1...@googlemail.com wrote:
>
> > > > Hi,
>
> > > > I am receiving the following error message when I try to add a new
> > > > item to a database:
>
> > > > [ERROR] Uncaught exception escaped
> > > > java.lang.UnsupportedOperationException: This panel does not support
> > > > no-arg add()
> > > >    at com.google.gwt.user.client.ui.Panel.add(Panel.java:66)
> > > >    at
> > com.project.client.EditItemsGUI$2.onSuccess(EditItemsGUI.java:220)
> > > >    at
> > > > com
> > > > .google
> > > > .gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
> > > > (RequestCallbackAdapter.java:215)
> > > >    at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> > > > (Request.java:254)
> > > >    at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> > > > (Request.java:226)
> > > >    at com.google.gwt.http.client.Request.fireOnResponseReceived
> > > > (Request.java:217)
> > > >    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.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)
>
> > > > It actually adds the item to the database, it just doesnt show up
> > > > unless I restart the application. Please can someone help?
>
> > > > Regards,
> > > > Jack
--~--~-~--~~~---~--~~
You received 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: Error Message

2009-01-28 Thread Litty Preeth
u shud use setWidget not add.

On Wed, Jan 28, 2009 at 8:00 PM, fatjack1...@googlemail.com <
fatjack1...@googlemail.com> wrote:

>
> The items should be added to a FlexTable and the FlexTable is being
> added to a ScrollPanel.
>
>
> On Jan 28, 1:24 pm, Litty Preeth  wrote:
> > What is the type of Panel you are using?
> >
> > On Wed, Jan 28, 2009 at 3:39 AM, fatjack1...@googlemail.com <
> >
> > fatjack1...@googlemail.com> wrote:
> >
> > > Does anyone know which method/panel I should be using?
> >
> > > On Jan 27, 10:01 pm, Jason Essington 
> > > wrote:
> > > > What ever type of panel you are attempting to add a widget to, hasn't
> > > > overriden the .add(Widget child) method from Panel, so it is throwing
> > > > this exception. perhaps there is a different method that you are
> > > > supposed to use to add widgets to your panel?
> >
> > > > -jason
> >
> > > > On Jan 27, 2009, at 2:40 PM, fatjack1...@googlemail.com wrote:
> >
> > > > > Hi,
> >
> > > > > I am receiving the following error message when I try to add a new
> > > > > item to a database:
> >
> > > > > [ERROR] Uncaught exception escaped
> > > > > java.lang.UnsupportedOperationException: This panel does not
> support
> > > > > no-arg add()
> > > > >at com.google.gwt.user.client.ui.Panel.add(Panel.java:66)
> > > > >at
> > > com.project.client.EditItemsGUI$2.onSuccess(EditItemsGUI.java:220)
> > > > >at
> > > > > com
> > > > > .google
> > > > > .gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived
> > > > > (RequestCallbackAdapter.java:215)
> > > > >at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> > > > > (Request.java:254)
> > > > >at
> com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> > > > > (Request.java:226)
> > > > >at com.google.gwt.http.client.Request.fireOnResponseReceived
> > > > > (Request.java:217)
> > > > >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.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)
> >
> > > > > It actually adds the item to the database, it just doesnt show up
> > > > > unless I restart the application. Please can someone help?
> >
> > > > > Regards,
> > > > > Jack
> >
>

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



{JOB} Front End GWT developer - UI design specialist - NY,NY

2009-01-28 Thread Will Mechem
We have a team of developers that are building a complex securities trading
system for a client in New York, NY.  The platform is primarily GWT,
 ActiveMQ, Spring and Hibernate.

We are seeking a GWT developer with strong front-end (UI) design skills to
join our team in New York. This is small (20 people) team of highly talented
people who have fun and work hard.  Their business is doing very well in
this economy and that is reflected in the positive work environment.  You
will work directly with other developers, architects and business analysts
as well as senior IT (CTO) and business managers.

This is a consult to hire (one - two month then perm) opportunity. Visa
transfers are OK after initial trial period, but long term (third party)
consulting is not an option.  The client's mandate is to hire permanent
employees.

Please contact mechem@ wjtglobal.com for more information.

Thanks!

~ Will

www.wjtglobal.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
-~--~~~~--~~--~--~---



com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode

2009-01-28 Thread rodrigob

Hi there,
I'm compiling a middle size GWT program. The program runs well in
Hosted Mode but when I try to compile it I get the following error:

Compiling permutations
   Analyzing permutation #1
  [ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Failed to get JNode
at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:75)
at com.google.gwt.dev.jjs.impl.BuildTypeMap$BuildDeclMapVisitor.visit
(BuildTypeMap.java:295)
at org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse
(LocalDeclaration.java:234)
at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java:
127)
at org.eclipse.jdt.internal.compiler.ast.SwitchStatement.traverse
(SwitchStatement.java:377)
at org.eclipse.jdt.internal.compiler.ast.Block.traverse(Block.java:
127)
at org.eclipse.jdt.internal.compiler.ast.IfStatement.traverse
(IfStatement.java:247)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
(MethodDeclaration.java:244)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1222)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
(CompilationUnitDeclaration.java:518)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls
(BuildTypeMap.java:937)
at com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:
927)
at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile
(JavaToJavaScriptCompiler.java:310)
at com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:
511)
at com.google.gwt.dev.GWTCompiler.compilePermutations
(GWTCompiler.java:442)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:358)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:564)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:554)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:214)
 [ERROR] : class
com.MyApp.client.reservation.FreeSlotEventPlanel
extends com.MyLib.client.date.def.DefaultDayField
implements : com.google.gwt.user.client.ui.MouseListener
/*   fields   */
com.MyApp.client.reservation.ReservationWidget reservation_widget
/*   methods   */
void (com.MyApp.client.reservation.ReservationWidget,
com.MyLib.client.date.DateRenderer)
com.google.gwt.user.client.ui.Widget createCustom
(java.io.Serializable)
com.google.gwt.user.client.ui.Widget getClickableItem()
void onClick(com.google.gwt.user.client.ui.Widget)
void onMouseDown(com.google.gwt.user.client.ui.Widget, int, int)
void onMouseEnter(com.google.gwt.user.client.ui.Widget)
void onMouseLeave(com.google.gwt.user.client.ui.Widget)
void onMouseMove(com.google.gwt.user.client.ui.Widget, int, int)
void onMouseUp(com.google.gwt.user.client.ui.Widget, int, int)


org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
 [ERROR] at ReservationWidgetDateRenderer.java(61): final
FreeSlotEventPlanel panel = new FreeSlotEventPlanel
(reservation_widget, this);
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration


since that particular are of the code is being executed in Hosted Mode
I'm certain the code itself has no Java errors.
Does someone has a hint on what is going on ?
I found very little references online about this kind of errors.

Thanks for your support.
Regards,
rodrigob.

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Problems using gwtx for javax.persistence

2009-01-28 Thread andrea2453

Hi,
for first, excuse me for my bad english. Then we start.
In my project i have to use some simple entity beans and i would make
them "transportable" till the client-side, realized with GWT.
Basically I need support in GWT for javax.persistence. When I
discovered GWTx I said: "Wow, it's done".
I'm trying to compile this entity beans but I'm having some boring
compile errors.
So I tried to compile only a simple client-side class (the entry
point) annotated with javax.persistence.Entity.
First, in the gwtx page it's said that for using gwtx it's sufficient
to inherit "com.googlecode.gwtx.Java", but I get this error:

 [exec] Removing units with errors
 [exec][ERROR] Errors in 'file:/Users/andrea/Documents/
workspace/Plus/src/it/unibo/plus/web/client/Plus.java'
 [exec]   [ERROR] Line 8: The import javax.persistence cannot
be resolved
 [exec]   [ERROR] Line 13: Entity cannot be resolved to a type
 [exec] Compiling module it.unibo.plus.web.Plus
 ... Other failed compile messages...

So I inherit com.googlecode.gwtx.Javax too, but I get this errors:

 [exec] Removing units with errors
 [exec][ERROR] Errors in 'jar:file:/Applications/gwt-
mac-1.5.3/
gwtx-1.5-20081912.jar!/com/googlecode/gwtx/javax/persistence/emul/
javax/persistence/Query.java'
 [exec]   [ERROR] Line 54: No source code is available for
type java.util.Calendar; did you forget to inherit a required module?
 [exec] Processing types in compilation unit: jar:file:/
Applications/gwt-mac-1.5.3/gwtx-1.5-20081912.jar!/com/googlecode/gwtx/
javax/annotation/emul/javax/annotation/Resource.java
 [exec]Found type 'Resource'
 [exec]   [ERROR]
 [exec] java.lang.ClassNotFoundException:
javax.annotation.Resource
$AuthenticationType
 ... Other failed compile messages...

Really, GWT doesn't support java.util.Calendar. Does GWTx provide
support fot this class?

I proceed with another experiment: I extract from GWTx library the
only annotation @Entity, to build my own module and try to complile my
test entry point annotated @Entity. This is the result:

Processing types in compilation unit: jar:file:/Users/andrea/
Documents/
workspace/Plus2.0/tmp/module/persistence/gwt-persistence.jar!/javax/
persistence/OneToOne.java
 [exec]Found type 'OneToOne'
 [exec]   [ERROR]
 [exec] java.lang.ClassNotFoundException:
javax.persistence.CascadeType
 ... Other failed compile messages...

But I'm sure that the CascadeType.java file is in the same module
How it's possible??
Then I tried removing CascadeType, OneToOne, and some others classes,
obtaining:

 [exec] Processing types in compilation unit: file:/Users/andrea/
Documents/workspace/Plus2.0/src/it/unibo/plus/web/client/Plus.java
 [exec]Found type 'Plus'
 [exec]   Resolving annotation '@Entity'
 [exec]  [ERROR]
 [exec] java.lang.ClassNotFoundException: javax.persistence.Entity

Where is the problem?

--~--~-~--~~~---~--~~
You received 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: Threaded Servlet

2009-01-28 Thread Ben Tilford
>From the documentation

Servlets typically run on multithreaded servers, so be aware that a servlet
must handle concurrent requests and be careful to synchronize access to
shared resources. Shared resources include in-memory data such as instance
or class variables and external objects such as files, database connections,
and network connections. See theJava Tutorial on Multithreaded
Programming
for
more information on handling multiple threads in a Java program.
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServlet.html


On Wed, Jan 28, 2009 at 8:17 AM, stephen.sm...@paretopartners.com <
stephen.sm...@paretopartners.com> wrote:

>
> My appologies jason, you were correct. I totally forgot about max
> connections per browser.
>
> So it would appear that my servlet is multi theaded after all and as a
> result, not thread safe :)
>
> Maybe this should be added to the GWT docs as this is something that i
> feel could be very easily overlooked.
>
> On Jan 28, 6:25 am, Jason Morris  wrote:
> > I tried reproducing your test to see what you were getting. I found the
> behavior when I ran the code
> > in Hosted Mode and executed "serverMethod()" /twice/ before executing
> "anotherMethod()" (it didn't
> > matter how many Hosted Browsers I had open).
> >
> > When running the same test in real browsers (I used Firefox and
> Konqueror) the behavior was
> > substantially different.
> >
> > Like I said, browsers generally only allow for 2 open connections per
> server. If you invoke a
> > "connection hogging" method twice, you have no more connections to invoke
> a different method. That
> > said, this is a strictly client side issue, GWT's RemoteServiceServlet is
> not limiting you to a
> > single Thread.
> >
> > Try the same test with a normal HttpServlet and a RequestBuilder, you'll
> see the same results as you
> > do with RPC.
> >
> >
> >
> > stephen.sm...@paretopartners.com wrote:
> > > @shawn
> > > Thats ok :)
> >
> > > @jason
> > > Well these "Tests" are very basic. i create an app with a simple rpc
> > > call to the server that does something like this:
> >
> > > public boolean serverMethod() {
> > >   for (;;) {
> > > if (false) {
> > >   break;
> > > }
> > >   }
> > >   return true;
> > > }
> >
> > > public boolean anotherMethod() {
> > >   return true;
> > > }
> >
> > > As you would expect, callingserverMethod() creates an infinite loop
> > > tying up that thread.
> >
> > > then i opened up a second, seperate browser and called anotherMethod
> > > ().
> >
> > > result: Nothing. Not a sausage :)
> >
> > > So id say my results are pretty solid. 1 single lonely thread :(
> >
> > > On Jan 27, 3:17 pm, Shawn Pearce  wrote:
> > >> On Tue, Jan 27, 2009 at 01:42, stephen.sm...@paretopartners.com <
> >
> > >> stephen.sm...@paretopartners.com> wrote:
> >
> > >>> I never said it cretaed multiple instances, simply a new thread per
> > >>> request.
> > >> *sigh*.  I must not have had enough coffee in the morning before
> replying to
> > >> your post.  I read "thread" as "instance" in your original post.
>  Sorry.
> >
> > >>> On Jan 23, 4:30 pm, Shawn Pearce  wrote:
> >  On Fri, Jan 23, 2009 at 08:17, stephen.sm...@paretopartners.com <
> >  stephen.sm...@paretopartners.com> wrote:
> > > Standard servlets create a new thread per request but from a few
> > > simple test i have run this appears not to be the case with GWT.
> > >> Like what everyone else has already said; each concurrent request runs
> on
> > >> its own thread, but that thread isn't necessarily new.
> >
> > >> Most containers recycle threads as thread spin-up/shutdown are
> relatively
> > >> expensive operations.  Pooling threads and recycling them across
> requests
> > >> reduces the per-request overheads imposed by the container, allowing
> > >> applications to use a larger percentage of the CPU, and the
> per-request
> > >> latency target the developer is shooting for.  E.g. in my latest GWT
> based
> > >> application, I was trying to hit <200 ms latency.  The more of that
> time
> > >> that is available to the application, the more useful work I can do
> within
> > >> that window.- 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
-~--~~~~--~~--~--~---



what design pattern to use with DWT

2009-01-28 Thread asdf_asdf

His,

I am new to GWT and evaluate it currently. Just happily went through
the official tutorial and full of questions taunting my mind.
Just a quick background (should my question seem a bit messy): I am
coming from php field and have in past have been using a mvc framework
(CodeIgniter) where links/forms on a single webpage are mapped to
methods of a controller responsible for calling buisiness logic and
putting together view components. So...

* Is MVC the recommended design pattern to develop GWT applications? I
see then the class implementing EntryPoint interface as being a
"controller", but what would be a view in that case? I am struggling
to understand the relationship between html-page and the controller
that gets called: does each controller get called by the html-page
that loads the appropriate javascript file and how could a controller
have methods mapped to specific a user actions. For instance, after a
specific link is clicked a new widget is shown (in the tutorial this
is achieved through listeners, but can there be a url to method
mapping as well)?

* In respect to tutorial, what does the attribute path="/stockPrices"
in  xml tag mean and the identical annotation
@RemoteServiceRelativePath("stockPrices") in service interface? I
assume that the server-side method gets called when under that url,
but how is the client aware of the mapping?

* So far I have only seen tutorials on implementing relatively easy
projects. Does anyone know if there a more powerful sample application
with open source available: something where there is a need for more
than one html-page and controller exist?

Many thanks,
Denis

--~--~-~--~~~---~--~~
You received 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 skinning & templating

2009-01-28 Thread chandraj...@gmail.com

I want to have a content management type solution using GWT.
Basically, I have a fixed set of contents built using GWT. I want to
give it a hole new look n feel with some different themes to make it
look like a whole new website for a different client with minimal
cobranding(which I can take care).

Is there a ready to go styling solution I can use?

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: what design pattern to use with DWT

2009-01-28 Thread Ian Petersen

On Wed, Jan 28, 2009 at 8:10 AM, asdf_asdf  wrote:
> I am new to GWT and evaluate it currently. Just happily went through
> the official tutorial and full of questions taunting my mind.
> Just a quick background (should my question seem a bit messy): I am
> coming from php field and have in past have been using a mvc framework
> (CodeIgniter) where links/forms on a single webpage are mapped to
> methods of a controller responsible for calling buisiness logic and
> putting together view components. So...
>
> * Is MVC the recommended design pattern to develop GWT applications? I
> see then the class implementing EntryPoint interface as being a
> "controller", but what would be a view in that case? I am struggling
> to understand the relationship between html-page and the controller
> that gets called: does each controller get called by the html-page
> that loads the appropriate javascript file and how could a controller
> have methods mapped to specific a user actions. For instance, after a
> specific link is clicked a new widget is shown (in the tutorial this
> is achieved through listeners, but can there be a url to method
> mapping as well)?
>
> * In respect to tutorial, what does the attribute path="/stockPrices"
> in  xml tag mean and the identical annotation
> @RemoteServiceRelativePath("stockPrices") in service interface? I
> assume that the server-side method gets called when under that url,
> but how is the client aware of the mapping?
>
> * So far I have only seen tutorials on implementing relatively easy
> projects. Does anyone know if there a more powerful sample application
> with open source available: something where there is a need for more
> than one html-page and controller exist?

It seems you're missing a pretty fundamental difference between GWT
apps and apps built with almost any other major web platform: with GWT
it's all client side.

Now, nothing's ever as simple as that, but it's a good first
approximation in this case.  With server-side frameworks like anything
that depends on PHP, Ruby, Python, Perl, or Java (besides GWT),
there's comparitively little in the way of smarts on the client side.
With GWT, you can build an entire app that has absolutely zero smarts
on the server side.

If you want to build a client app in GWT that interacts with a RESTful
server, you can definitely map client-side events to URLs, but that's
not the only way to do things with GWT.  You can put all your business
logic on the client, you can access server-side business logic with
GWT-RPC or other RPC-over-HTTP mechanisms, or you can strike a balance
and split the business logic across both client and server.  One
advantage of GWT is that, with GWT-RPC and a Java-language
server-side, you can encode business logic in a set of Java classes
and run the same code on both the client and the server (with the
caveat that you have to limit yourself to those parts of the JRE that
GWT supports).

As far as examples go, you probably want to look at the other example
apps in the GWT documentation.  If I remember right, the mail app is
pretty comprehensive, and the doc for GWT-RPC is pretty good, too.
There's also a frequent poster on this list with an entire site
dedicated to GWT example code.  I can't remember his name right now,
but his website is "roughian", or something like that.  His name might
also be Ian, as a matter of fact.  Anyway, search the list's history
for examples and I'm sure you'll find it.

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: what design pattern to use with DWT

2009-01-28 Thread Jason Essington

MVC is a good design pattern to use with GWT.
If you are new to GWT, get Ryan Dewsbury's book "Google Web Toolkit  
Applications" it does a very good job of outlining exactly what is  
model, view and controller in each example project.

-jason

On Jan 28, 2009, at 9:10 AM, asdf_asdf wrote:

>
> His,
>
> I am new to GWT and evaluate it currently. Just happily went through
> the official tutorial and full of questions taunting my mind.
> Just a quick background (should my question seem a bit messy): I am
> coming from php field and have in past have been using a mvc framework
> (CodeIgniter) where links/forms on a single webpage are mapped to
> methods of a controller responsible for calling buisiness logic and
> putting together view components. So...
>
> * Is MVC the recommended design pattern to develop GWT applications? I
> see then the class implementing EntryPoint interface as being a
> "controller", but what would be a view in that case? I am struggling
> to understand the relationship between html-page and the controller
> that gets called: does each controller get called by the html-page
> that loads the appropriate javascript file and how could a controller
> have methods mapped to specific a user actions. For instance, after a
> specific link is clicked a new widget is shown (in the tutorial this
> is achieved through listeners, but can there be a url to method
> mapping as well)?
>
> * In respect to tutorial, what does the attribute path="/stockPrices"
> in  xml tag mean and the identical annotation
> @RemoteServiceRelativePath("stockPrices") in service interface? I
> assume that the server-side method gets called when under that url,
> but how is the client aware of the mapping?
>
> * So far I have only seen tutorials on implementing relatively easy
> projects. Does anyone know if there a more powerful sample application
> with open source available: something where there is a need for more
> than one html-page and controller exist?
>
> Many thanks,
> Denis
>
> >


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Scrollpanel disappears on mouse over ToggleButton, Absolute Panel, IE

2009-01-28 Thread bk13

Hello,

I got a problem with a special combination of widgets and the IE
(tested with IE6/IE7). It seems that it's an combination of 3 widgets:
AbsolutePanel, ScrollPanel, ToggleButton. When you move the mouse over
the ToggleButton the ScrollPanel disappers.

My Code:

public void onModuleLoad() {
/*PWPanel*/
Grid containerPWP = new Grid(1,1);
AbsolutePanel absPanel = new AbsolutePanel();
containerPWP.setWidget(0,0, absPanel);
VerticalPanel vp = new VerticalPanel();
absPanel.add(vp);

/*PW*/
Grid container = new Grid(2,1);
Grid header = new Grid(1,1);
PushButton pbtn = new PushButton();
header.setWidget(0, 0, pbtn);
container.setWidget(0, 0, header);

FlexTable body = new FlexTable();
ScrollPanel scrollPanel = new ScrollPanel();
Label text = new Label("The Text The Text The Text The Text The
Text The Text The Text The Text The Text The Text The Text");
scrollPanel.setWidget(text);
scrollPanel.setWidth("50px");
scrollPanel.setHeight("50px");
body.setWidget(0, 0, scrollPanel);
container.setWidget(1, 0, body);

/*bring together*/
vp.add(container);
RootPanel.get().add(containerPWP);
  }

It seems that it's an problem with the position:relative style of the
AbsolutePanel and the ScrollPanel. When I use an SimplePanel instead
of the AbsolutePanel than it works fine. But thats not an solution for
me cause I need an AbsolutePanel for the DragDrop lib.

Did anyone got the same Problem? Is an Solution out there? Should I
post it as a bug?

--~--~-~--~~~---~--~~
You received 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: JVM crash in hosted mode

2009-01-28 Thread olivier FRESSE
never seen that...
What's your GWT version, and can you post the log trace ?

2009/1/27 Florian 

>
> Hello everyone,
> Whenever I try to run or debug my JVM crashes when GWT development
> browser tries to access a https page. Probably the credentials are
> missing butt a crash seems to be a rather odd reaction to that...
> Anybody ever noticed some similar problems?
>
> best regards
> Florian
>
> >
>

--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Microsoft Picture Manager

2009-01-28 Thread Anti

Hello,

Is it possible to execute Microsoft Picture Manager through a gwt
Hyperlink?

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: what design pattern to use with DWT

2009-01-28 Thread gregor

I would not get too hung up on the "Controller" part of MVC. I don't
know php, but it sounds the same as struts: cycles of pages (views)
rendered to client driven by action classes (controllers) that both
use a model (beans in Java speak). These action classes that drive
generation of the next view fit beautifully into MVC pattern as
controllers, but in a GWT application there is no need of them because
this work can be done on either the client or the server as
appropriate for the use case, and in general the more on the client
the better (keep as much state as possible on client). Therefore
exactly what a "controller" is in a GWT application is IMO a slippery
concept.

I would recommend two things:

1) If you are starting a new project download 1.6 from trunk to take
advantage of the new Event model. It is much more powerful than the
existing <=1.5 event system. Unfortunately there is is little
documentation for it yet (even the javadoc is sparse) but I'm sure
questions about it would be answered here PDQ. Experimenting with this
will help you determine how you might best design your client GUI,
i.e. how your main components might best communicate between
themselves and when necessary with the server.

2)  In an ideal (MVC) world what Ian calls "smarts" should live in
domain model classes, and these should flow freely across networks. As
Ian points out this is sometimes possible and sometimes (perhaps most
often) it isn't because we are dealing with a given technology stack
that we can't alter in the short term. I don't think there is any one
satisfactory answer to this question - every application has it's own
use cases that will rub up against technology stack limitations in
different ways. My point is that thinking about this (i.e. how to
implement a domain model in a real world stack) is much more important
than worrying about what a "controller" is.

regards
gregor

On Jan 28, 4:35 pm, Jason Essington  wrote:
> MVC is a good design pattern to use with GWT.
> If you are new to GWT, get Ryan Dewsbury's book "Google Web Toolkit  
> Applications" it does a very good job of outlining exactly what is  
> model, view and controller in each example project.
>
> -jason
>
> On Jan 28, 2009, at 9:10 AM, asdf_asdf wrote:
>
>
>
> > His,
>
> > I am new to GWT and evaluate it currently. Just happily went through
> > the official tutorial and full of questions taunting my mind.
> > Just a quick background (should my question seem a bit messy): I am
> > coming from php field and have in past have been using a mvc framework
> > (CodeIgniter) where links/forms on a single webpage are mapped to
> > methods of a controller responsible for calling buisiness logic and
> > putting together view components. So...
>
> > * Is MVC the recommended design pattern to develop GWT applications? I
> > see then the class implementing EntryPoint interface as being a
> > "controller", but what would be a view in that case? I am struggling
> > to understand the relationship between html-page and the controller
> > that gets called: does each controller get called by the html-page
> > that loads the appropriate javascript file and how could a controller
> > have methods mapped to specific a user actions. For instance, after a
> > specific link is clicked a new widget is shown (in the tutorial this
> > is achieved through listeners, but can there be a url to method
> > mapping as well)?
>
> > * In respect to tutorial, what does the attribute path="/stockPrices"
> > in  xml tag mean and the identical annotation
> > @RemoteServiceRelativePath("stockPrices") in service interface? I
> > assume that the server-side method gets called when under that url,
> > but how is the client aware of the mapping?
>
> > * So far I have only seen tutorials on implementing relatively easy
> > projects. Does anyone know if there a more powerful sample application
> > with open source available: something where there is a need for more
> > than one html-page and controller exist?
>
> > Many thanks,
> > Denis
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



How to pop up an YES/NO dialog before moving node in Tree?

2009-01-28 Thread joe young

Hi,

I would like to have a pop up before moving node asking "are you sure
you want to move the node? Yes/No".

I do the following:

public boolean doBeforeMoveNode(Tree tree, TreeNode node, TreeNode
oldParent, TreeNode newParent, int index) {
GWT.log("treePanel.onMoveNode", null);
if (oldParent.getId().equals(newParent.getId())) {
return false;
}
MessageBox.confirm("Confirm", "You are about to
move this node and its child nodes.  Would you like to save your
changes to database?",
new MessageBox.ConfirmCallback() {

public void execute(String btnID) {
if (btnID.equals("yes")) {
return true;
}
}
});
}

public void onMoveNode(Tree treePanel, TreeNode node,
TreeNode oldParent, TreeNode newParent, int index) {
GWT.log("treePanel.onMoveNode", null);
controller.moveNode(treePanel, node, oldParent,
newParent);
}
~

but clearly the error occur at
public void execute(String btnID) {
if (btnID.equals("yes")) {
return true;
}
}
since i cannot return true.

So how do i return true in doBeforeMoveNode() when I need to wait till
MessageBox return the result (Yes)??

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: How to pop up an YES/NO dialog before moving node in Tree?

2009-01-28 Thread Ian Petersen

I haven't used confirmation dialogs in GWT before--I've only used them
in straight Javascript--so take the following with a grain of salt.

On Wed, Jan 28, 2009 at 10:29 AM, joe young  wrote:
> I do the following:
>
> public boolean doBeforeMoveNode(Tree tree, TreeNode node, TreeNode
> oldParent, TreeNode newParent, int index) {
>GWT.log("treePanel.onMoveNode", null);
>if (oldParent.getId().equals(newParent.getId())) {
>return false;
>}
>MessageBox.confirm("Confirm", "You are about to
> move this node and its child nodes.  Would you like to save your
> changes to database?",
>new MessageBox.ConfirmCallback() {
>
>public void execute(String btnID) {
>if (btnID.equals("yes")) {
>return true;
>}
>}
>});
>}
>
>public void onMoveNode(Tree treePanel, TreeNode node,
> TreeNode oldParent, TreeNode newParent, int index) {
>GWT.log("treePanel.onMoveNode", null);
>controller.moveNode(treePanel, node, oldParent,
> newParent);
>}
> ~
>
> but clearly the error occur at
>public void execute(String btnID) {
>if (btnID.equals("yes")) {
>return true;
>}
>}
> since i cannot return true.
>
> So how do i return true in doBeforeMoveNode() when I need to wait till
> MessageBox return the result (Yes)??

You're greatly confusing matters.  Just use Window.confirm():

public boolean doBeforeMoveNode(Tree tree, TreeNode node, TreeNode
oldParent, TreeNode newParent, int index) {
  GWT.log("treePanel.onMoveNode", null);

  if (oldParent.getId().equals(newParent.getId())) {
return false;
  }

  return Window.confirm("You are about to move this node and its child
nodes.  Press OK to save your changes to the database, or Cancel to
lose your changes.");
}

See the Window.confirm() doc here:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/Window.html#confirm(java.lang.String)

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: what design pattern to use with DWT

2009-01-28 Thread Ben Tilford
The "controller" in GWT should for most cases use the observer pattern, your
model should support property change events and registering listeners. This
gets around the action way of implementing a controller and is quite a bit
more flexible since you could have multiple listeners for a single event. If
your not already familiar with listeners you may want to look at some Swing
applications since GWT and Swing both use the same Property Change Support
mechanisms. Also "GWT In Practice" has some pretty good examples of how GWT
is intended to be used in terms of an MVC approach if your interested in a
book on the subject.

On Wed, Jan 28, 2009 at 1:17 PM, gregor wrote:

>
> I would not get too hung up on the "Controller" part of MVC. I don't
> know php, but it sounds the same as struts: cycles of pages (views)
> rendered to client driven by action classes (controllers) that both
> use a model (beans in Java speak). These action classes that drive
> generation of the next view fit beautifully into MVC pattern as
> controllers, but in a GWT application there is no need of them because
> this work can be done on either the client or the server as
> appropriate for the use case, and in general the more on the client
> the better (keep as much state as possible on client). Therefore
> exactly what a "controller" is in a GWT application is IMO a slippery
> concept.
>
> I would recommend two things:
>
> 1) If you are starting a new project download 1.6 from trunk to take
> advantage of the new Event model. It is much more powerful than the
> existing <=1.5 event system. Unfortunately there is is little
> documentation for it yet (even the javadoc is sparse) but I'm sure
> questions about it would be answered here PDQ. Experimenting with this
> will help you determine how you might best design your client GUI,
> i.e. how your main components might best communicate between
> themselves and when necessary with the server.
>
> 2)  In an ideal (MVC) world what Ian calls "smarts" should live in
> domain model classes, and these should flow freely across networks. As
> Ian points out this is sometimes possible and sometimes (perhaps most
> often) it isn't because we are dealing with a given technology stack
> that we can't alter in the short term. I don't think there is any one
> satisfactory answer to this question - every application has it's own
> use cases that will rub up against technology stack limitations in
> different ways. My point is that thinking about this (i.e. how to
> implement a domain model in a real world stack) is much more important
> than worrying about what a "controller" is.
>
> regards
> gregor
>
> On Jan 28, 4:35 pm, Jason Essington  wrote:
> > MVC is a good design pattern to use with GWT.
> > If you are new to GWT, get Ryan Dewsbury's book "Google Web Toolkit
> > Applications" it does a very good job of outlining exactly what is
> > model, view and controller in each example project.
> >
> > -jason
> >
> > On Jan 28, 2009, at 9:10 AM, asdf_asdf wrote:
> >
> >
> >
> > > His,
> >
> > > I am new to GWT and evaluate it currently. Just happily went through
> > > the official tutorial and full of questions taunting my mind.
> > > Just a quick background (should my question seem a bit messy): I am
> > > coming from php field and have in past have been using a mvc framework
> > > (CodeIgniter) where links/forms on a single webpage are mapped to
> > > methods of a controller responsible for calling buisiness logic and
> > > putting together view components. So...
> >
> > > * Is MVC the recommended design pattern to develop GWT applications? I
> > > see then the class implementing EntryPoint interface as being a
> > > "controller", but what would be a view in that case? I am struggling
> > > to understand the relationship between html-page and the controller
> > > that gets called: does each controller get called by the html-page
> > > that loads the appropriate javascript file and how could a controller
> > > have methods mapped to specific a user actions. For instance, after a
> > > specific link is clicked a new widget is shown (in the tutorial this
> > > is achieved through listeners, but can there be a url to method
> > > mapping as well)?
> >
> > > * In respect to tutorial, what does the attribute path="/stockPrices"
> > > in  xml tag mean and the identical annotation
> > > @RemoteServiceRelativePath("stockPrices") in service interface? I
> > > assume that the server-side method gets called when under that url,
> > > but how is the client aware of the mapping?
> >
> > > * So far I have only seen tutorials on implementing relatively easy
> > > projects. Does anyone know if there a more powerful sample application
> > > with open source available: something where there is a need for more
> > > than one html-page and controller exist?
> >
> > > Many thanks,
> > > Denis
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups

How to manage background color of any cell of dockPanel?

2009-01-28 Thread anatolij.terent...@gmail.com

May I change background color of center cell or any other cell of
dockPanel?
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



How to manage background color of any cell of dockPanel?

2009-01-28 Thread anatolij.terent...@gmail.com

May I change background color of center cell or any other cell of
dockPanel?
--~--~-~--~~~---~--~~
You received 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: GWTTestCase v/s Selenium

2009-01-28 Thread rex

Yes. Exactly. The dynamic id generation is a pain. That is an obstacle
in the test development. Does anybody know how to tackle it in
Selenium? Also, i repeat my previous question whether to use Selenium
alone or with another framework like 'PushToTest'?


Thanks,
Rex

On Jan 28, 2:36 am, Serge  wrote:
> I see one serious problem with Selenium using: if you use GwtExt then
> all page's ids changes dynamically, so you can't use Selenium's
> scripts directly - you have to rewrite it for another methods of
> page's widgets determination (f.e. by name, by location and so on).
> If anybody know how to force GwtExt to generate ids once it would be
> good!
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Why table based layouts have border-collapse: collapse?

2009-01-28 Thread Slava Nadvorny

Why table based layouts have border-collapse: collapse? They look
different on IE and FF because of this.
Border-collapse does not work on IE6/7 (basically on IE7 this does not
override cellspacing, and IE6 completely ignore is). But it works on
FF2/3 and on FF tables completely ignore cellSpacing and cellPadding.

I have to set style="border-collapse: separate" for every layout to be
able to use setSpacing() on Vertical or HorizontalPanel.

Is there any reason for it, or it should be considered as a bug?

--~--~-~--~~~---~--~~
You received 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 manage background color of any cell of dockPanel?

2009-01-28 Thread darkflame

You have to use the Dom for this I think;

How I did it was;

DOM.setStyleAttribute(WidgetInTheCell.getElement().getParentElement(),
"backgroundColor", HexColour);

Where HexColour was the colour I wanted ("#FF" for instance), and
WidgetInTheCell was a widget in the cell. (it dosnt colour the widget,
but looks at its parent, which is the cell)

Theres probably a better way then this, I'm still learning myself ;)


On Jan 28, 8:07 pm, "anatolij.terent...@gmail.com"
 wrote:
> May I change background color of center cell or any other cell of
> dockPanel?
--~--~-~--~~~---~--~~
You received 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: Getting an odd gap under my Form...can anyone identify problem?

2009-01-28 Thread darkflame

cheers, that fixed it :)

Any reason why that isnt default?

On Jan 26, 5:11 am, Ian Bambury  wrote:
> LoginForm.getElement().getStyle().setProperty("display", "inline");
>
> Ian
>
> http://examples.roughian.com
>
> 2009/1/25 darkflame 
>
>
>
>
>
> > If I make a form split over two lines, I get an odd gap under it.
> > I wondered if anyone could tell me where its coming from and how to
> > remove it;
>
> >http://www.darkflame.co.uk/temppics/whysogreen.jpg
> > (The form is set to have a blue back, the container is green...not the
> > fairly big gap)
>
> > Setting the form size explictly dosnt help, and looking at the page
> > under Firebug, I dont see any element causing the extra height.
>
> > A sample project is here;
> >http://www.darkflame.co.uk/temppics/TestProject.zip
> > Cheers,
> > Thomas
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



How to change a Slider widgets color in code? (Incubator)

2009-01-28 Thread darkflame

I'm using the slider widget from the Incubator, and it works really
well.
My query is how to change the colour of the bar itself.
I know how this can be done with CSS, but I'd like to be able to
change it in code.
(Specificaly, so that as the user sliders it, it changes from red to
green).

Looking at how the slider widget is constructed, it seems I need to
change the "lineElement" color, allthough this is defined as private.

Any pointers on the best way to do 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: How to manage background color of any cell of dockPanel?

2009-01-28 Thread anatolij.terent...@gmail.com

It is interesting why there is setCellHeight() function in the
DockPanel class and there is no similar function for colour ...

darkflame wrote:
> You have to use the Dom for this I think;
>
> How I did it was;
>
> DOM.setStyleAttribute(WidgetInTheCell.getElement().getParentElement(),
>   "backgroundColor", HexColour);
>
> Where HexColour was the colour I wanted ("#FF" for instance), and
> WidgetInTheCell was a widget in the cell. (it dosnt colour the widget,
> but looks at its parent, which is the cell)
>
> Theres probably a better way then this, I'm still learning myself ;)
>
>
> On Jan 28, 8:07 pm, "anatolij.terent...@gmail.com"
>  wrote:
> > May I change background color of center cell or any other cell of
> > dockPanel?
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Removing Radio Buttons

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

Hi,

I have a button which allows the user to remove an item from the
system by selecting a Radio Button and pressing 'Remove'. The system
then deletes the item from the database and updates the list of radio
buttons i.e. it removes the radio button that was selected for
deletion. However, I have a bug in that the system does not remove the
radio button completely, it just moves everything below the removed
item 'up'. For example:

Item1
Item2
Item3
Item4

If we delete Item2, item2 disappears, it moves item3 and item4 up so
we have a list that looks like this:

Item1
Item3
Item4
Item4

So item4 appears twice. I need to obviously remove the bottom radio
button when an item is deleted but im a little stuck on how to this,
with the way I structures the code. Please can someone offer a
soluton?

Here is my code:

//Remove Item
removeItemButton.addClickListener(new ClickListener() {
public void onClick(Widget sender) {
boolean msg = Window.confirm("Are you sure you wish to 
remove "
+ changedRadioValue + " from the database?");
if (msg = true){
String removeData = "DELETE FROM 
catering.items_table WHERE
itemName = '" + changedRadioValue + "'";
ServerService rpc = new ServerService();
rpc.removeItem(removeData, callback2);
}
}
});


   AsyncCallback callback2 = new AsyncCallback()
{
public void onFailure(Throwable caught)
{
updateItemsRootPanel.add(new HTML("Failed:" +
caught.getMessage()));
}

public void onSuccess(Object result)
{

Window.alert(changedRadioValue + " was successfully removed
from the database.");
getStatusDataFromServer();
}

};


ClickListener listener = new ClickListener()
{
public void onClick(Widget sender)
{
changedRadioValue = MyRadioButton.getCurrentText();;
}
};



private void getStatusDataFromServer(){
ServerService.getInstance().getStatusData(
new ServerStatsUpdater());
}

//inner class setting up the radio buttons

class ServerStatsUpdater extends AbstractAsyncHandler
{
public void handleFailure(Throwable caught){
}
public void handleSuccess(Object result){
ServerSQLData data = (ServerSQLData) result;



for (int i = 0; ihttp://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



How do you retrieve the output or XML from the AJAX page?

2009-01-28 Thread ProtoLD

I have some code which works fine:

RequestBuilder rb = new RequestBuilder(RequestBuilder.POST, "http://
localhost:8500/test.cfm");
 rb.setHeader("Content-Type", 
"application/x-www-form-urlencoded");

 try {
 Request response = rb.sendRequest("stuff", new 
RequestCallback()
 {

 public void onError(Request request, Throwable exception) {
 }
 public void onResponseReceived(Request request, Response 
response)
{
 }
 });
 }
 catch (RequestException e) {
 Window.alert("Failed to send the request: " + e.getMessage());
 }

 submitProject.addClickListener(new ClickListener(){
public void onClick(Widget w) {

RequestBuilder.Method method=RequestBuilder.GET;
final String url1="http://localhost:8500/test.cfm";;
Window.alert(url1);
RequestBuilder rb=new RequestBuilder(method, url1);

try {
rb.sendRequest(null, new RequestCallback() {

public void onResponseReceived(Request request, Response
response) {
Window.alert(""+response.getStatusCode());
}

public void onError(Request arg0, Throwable arg1) {
Window.alert("error");
}
});

} catch (RequestException e) {
} } });

However, I can't figure out any methods that return the actual XML
response text!  When trying to turn the request into a string, I quite
obviously get nothing of use.  I have a simple page setup that only
has some text on it (the number 2) so how would I return that?

After figuring that out I can pretty much finish this project I'm
working on :p
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Multiple services in one project - how, and what files?

2009-01-28 Thread keith.m...@gmail.com

Hi
I've been using some online examples to build this thing with GWT...
am able to implement a single service without a problem; this one
retrieves a record out of mysql using the jdbc, works good.
But now I want to add a few more.
One will retrieve some data out of mysql of a different type (which
I've defined in a class), and one will execute an update in mysql.
SO For each of these, do I need separate files for the Service,
ServiceAsync, and Impl?
Or can I just have the separate Service and ServiceAsync files, and
put both into the same Impl file?  The Impl file "implements" one
service... but could it implement more than one?
Any help or pointers to online answers would be appreciated.
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
-~--~~~~--~~--~--~---



gwt-dnd / gwt-log / gwt-voices - Status Update

2009-01-28 Thread Fred Sauer
Hi-

Some of you may have noticed a recent lack of activity across the
gwt-dnd
 / gwt-log  /
gwt-voicesprojects or you may
have even seen my
post  on the
GWT blog and wondered what about these future of my projects. In case you're
not familiar with them they are:

   - http://code.google.com/p/gwt-dnd/ - Drag and Drop
   - http://code.google.com/p/gwt-log/ - Advanced logging
   - http://code.google.com/p/gwt-voices/ - Cross browser sound


I'd like to take this opportunity to reassure you that I have no plans to
abandon these projects. In fact, I'm even planning on using my "20-percent
time" (learn 
more)
to work on making GWT
better.
At the same time, I'd like to apologize for the lack of recent project
activity. My family and I have spent much of the past two months preparing
for and executing a cross-country
move,
which has left me little time to spend between keyboard and
chair. While
we have found the toaster , there
are still missing items to locate in the unpacked moving
boxes.
So, please bear with me a little longer as I get settled in.


Thanks
Fred Sauer
f...@allen-sauer.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: Client-side GChart 2.4 Released: Click events, pop-ups, selection brushes, etc.

2009-01-28 Thread John Gunther

Appreciate the positive feedback, thanks for testing it out, looking
forward to your report.

On Jan 28, 5:40 am, doopa  wrote:
> Good work John. Congratulations on the new release. I'll be testing
> this later and will be sure to update you.
>
> Thanks,
>
> niall
>
> On Jan 28, 6:41 am, John Gunther  wrote:
>
> > Client-side GChart is an open source, 100% pure Java chart library for
> > GWT supporting line, pie, and bar charts.
>
> > With version 2.4, GChart now tracks mouse activities over the chart,
> > and selects points, displays pop-ups, and fires off click events
> > accordingly.
>
> > HomePage:http://gchart.googlecode.com
> > Live 
> > demo:http://gchart.googlecode.com/svn/trunk/live-demo/v2_4/com.googlecode
> > Release 
> > notes:http://gchart.googlecode.com/svn/trunk/doc/com/googlecode/gchart/clie...
>
> > Mouse over and click on the live demo to see the new features in
> > action. Beyond that, the release notes describe every change, and link
> > back to the new features' javadocs and sample code.
>
> > John C. Gunther
--~--~-~--~~~---~--~~
You received 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: Servlet filter compression interfere with GWT RPC?

2009-01-28 Thread Sumit Chandel
Hi hazy1,
Double compression using gzip shouldn't have an impact on the size of the
RPC payload. However, keeping the servlet filter in place for other
resources delivered through standard requests is a good idea.

Hope that helps,
-Sumit Chandel

On Sun, Jan 25, 2009 at 9:58 AM, hazy1  wrote:

>
> Hello all,
>
> Assume the following:
>
> 1)  A GWT application using RPC
> 2)  A servlet filter that dynamically gzip's HttpServletResponses
> based on file size
>
> Given that GWT-RPC already will compress responses, will the response
> potentially be compressed twice?  If so, will this have any impact?
> >
>

--~--~-~--~~~---~--~~
You received 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-dnd / gwt-log / gwt-voices - Status Update

2009-01-28 Thread John Gunther

That's good to hear, and BTW, congrats on the Google gig. But didn't
you already work for Google? Maybe they just gave you a massive raise.
Best GWT tip I ever got was to use Firebug--thanks for that one, and
keep them coming.

John

On Jan 28, 4:34 pm, Fred Sauer  wrote:
> Hi-
>
> Some of you may have noticed a recent lack of activity across the
> gwt-dnd
>  / gwt-log  /
> gwt-voicesprojects or you may
> have even seen my
> post  on the
> GWT blog and wondered what about these future of my projects. In case you're
> not familiar with them they are:
>
>-http://code.google.com/p/gwt-dnd/- Drag and Drop
>-http://code.google.com/p/gwt-log/- Advanced logging
>-http://code.google.com/p/gwt-voices/- Cross browser sound
>
> I'd like to take this opportunity to reassure you that I have no plans to
> abandon these projects. In fact, I'm even planning on using my "20-percent
> time" (learn 
> more)
> to work on making GWT
> better.
> At the same time, I'd like to apologize for the lack of recent project
> activity. My family and I have spent much of the past two months preparing
> for and executing a cross-country
> move,
> which has left me little time to spend between keyboard and
> chair. While
> we have found the toaster , there
> are still missing items to locate in the unpacked moving
> boxes.
> So, please bear with me a little longer as I get settled in.
>
> Thanks
> Fred Sauer
> f...@allen-sauer.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: RPC does not work under Websphere and Oracle AS

2009-01-28 Thread Sumit Chandel
Hi bestwick,
Have you investigated what the error message is suggesting might be the
problem? That is, that you have included all the class files on the
WebSphere application that are being referenced by your GWT RPC servlet?

Hope that helps,
-Sumit Chandel

On Mon, Jan 26, 2009 at 7:43 AM, bestwick  wrote:

>
> Hi,
>
> I have an application which userinterface contains some gwt/gwt-ext
> modules. (suggestbox, waitbox)
> When I deploy my application under JBoss the gwt works fine.
> I tried to deploy (The same application) it under Websphere and Oracle
> AS and gwt does not work.
>
> Extra information:
> When my gwt modul is loaded it has a parameter wich tells for the
> module that it is possible to show the gwt-ext waitbox or not.
> Param has a default value -1 (-1 : do not show the gwt-ext waitbox).
> When the module is loaded (onModuleLoad()) it calls the server to get
> infotmation about the param (should i show waitbox or not) (by RPC).
> I think the problem is RPC...
>
> Websphere log:
>
> Error 404: SRVE0203E: Servlet [ProgressBar]:
> hu.appello.framework.gwt.waitbox.server.GWTServiceImpl was found, but
> is missing another required class. SRVE0206E: This error typically
> implies that the servlet was originally compiled with classes which
> cannot be located by the server. SRVE0187E: Check your classpath to
> ensure that all classes required by the servlet are present.SRVE0210I:
> This problem can be debugged by recompiling the servlet using only the
> classes in the application's runtime classpath SRVE0234I: Application
> classpath=[C:\Program Files\IBM\WebSphere\AppServer61\java\lib;C:
> \Program Files\IBM\WebSphere\AppServer61\java\lib\dt.jar;C:\Program
> Files\IBM\WebSphere\AppServer61\java\lib\htmlconverter.jar;C:\Program
> Files\IBM\WebSphere\AppServer61\java\lib\jardiff.jar;C:\Program Files
> \IBM\WebSphere\AppServer61\java\lib\jnlp-servlet.jar;C:\Program Files
> \IBM\WebSphere\AppServer61\java\lib\jnlp.jar;C:\Program Files\IBM
> \WebSphere\AppServer61\java\lib\jt400_54.jar;C:\Program Files\IBM
> \WebSphere\AppServer61\java\lib\tools.jar;C:\Program Files\IBM
> \WebSphere\AppServer61
> .
> .
> .
>
> Could somebody suggest sg?
>
> thanks
> bestwick
> >
>

--~--~-~--~~~---~--~~
You received 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: Gen widget roadmap

2009-01-28 Thread Sumit Chandel
Hi Ender,
You can expect the GWT Incubator project to be kept up to date with the
upcoming GWT 1.6 milestone release. However, the release timeline for the
incubator project itself has not been set in stone -- such is the nature of
the incubator. You can see the GWT core roadmap on the blog post linked
below.

GWT roadmap:
http://googlewebtoolkit.blogspot.com/2008/12/whats-ahead-for-google-web-toolkit_10.html

I also wanted to remind you that we do not recommend using the incubator in
production. The widgets committed to the incubator are expected to be
functional, and many developers have had success using them, but they have
not been thoroughly tested or vetted for production use.

Hope that helps,
-Sumit Chandel

On Tue, Jan 27, 2009 at 3:23 AM, Endi  wrote:

>
> Hi
> We will start to develop some app in a short time. We want to use gwt
> for gui which we already used for a few projects. During design phase
> we tested new gen2 widgets and its very usefull but still most of
> available widgets are not ported. For example popupPanel widget is a
> must for our widget collections and still use older event api. What is
> gen2 roadmap? with 1.6 release older widgets will be deprecated? and
> the release timeline of course
>
> Ender
>
> >
>

--~--~-~--~~~---~--~~
You received 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 log/audit/track GWT RPC calls?

2009-01-28 Thread ka1n

Thank you for the responses, but I'm already aware of those
techniques.  The question is how can I determine which service method
is being invoked by an RPC call?  For example, suppose I have a
service behind an interface named ISomeService and suppose the client
is calling the method ISomeService.doSomething(...).  How can I obtain
the method signature from within a ServletFilter or a descendant of
RemoteServiceServlet?

- Paul

On Jan 28, 5:34 am, doopa  wrote:
> On Jan 28, 5:34 am, hazy1  wrote:
>
> > Here are some options:
>
> > 1)  Using a servlet filter mapped to the URL pattern of your GWT
> > servlets
> > 2)  Log yourself inside of the GWT servlet
>
> I'd go for the second option as it will allow you more flexibility in
> what you log.
>
>
>
> > Matt
>
> > On Jan 27, 4:01 pm, ka1n  wrote:
>
> > > I'd like to track the usage of my GWT application.  Specifically, I'd
> > > like to be able to log the service class and method of each RPC call.
> > > I wasn't able to find anything in RemoteServiceServlet that might help
> > > me to do this.  Can anyone point me in the right direction?
--~--~-~--~~~---~--~~
You received 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 design pattern to use with DWT

2009-01-28 Thread asdf_asdf

Thanks you all for replies.

I am slowly realising the paradigm shift in that mostly everything is
executed on the client.
Nevertheless I would still tend to think that the MVC is applicable in
that case. For instance, there could be at least 2 ways to respond to
client's clicking on a menu item:
a) a completely new page (with possibly its own gwt generated js) is
served
b) something happens in within this page.

when you take a look at situation b), then I would want to see some
type of mvc implementation in the applicable .js file. Examples show
that in such a case an event listener should be attached to a menu
item that could theoretically render an imaginary table in the middle
of the page. I wonder if event-based development the only, or possibly
recommended way to program behavior? While as I am writing it, I am
slowly being convinced that it is :) Though I am still concerned that
through attaching events to components the code could easily become
unmanageable.

Another preemptive question. If I want my dwr project to have multiple
html pages with generated js. Does in that case each html page
corresponds to a different module and linked to a separate class that
implements EntryPoint interface.

Thank you lots.



On Jan 28, 5:33 pm, Ian Petersen  wrote:
> On Wed, Jan 28, 2009 at 8:10 AM, asdf_asdf  wrote:
> > I am new to GWT and evaluate it currently. Just happily went through
> > the official tutorial and full of questions taunting my mind.
> > Just a quick background (should my question seem a bit messy): I am
> > coming from php field and have in past have been using a mvc framework
> > (CodeIgniter) where links/forms on a single webpage are mapped to
> > methods of a controller responsible for calling buisiness logic and
> > putting together view components. So...
>
> > * Is MVC the recommended design pattern to develop GWT applications? I
> > see then the class implementing EntryPoint interface as being a
> > "controller", but what would be a view in that case? I am struggling
> > to understand the relationship between html-page and the controller
> > that gets called: does each controller get called by the html-page
> > that loads the appropriate javascript file and how could a controller
> > have methods mapped to specific a user actions. For instance, after a
> > specific link is clicked a new widget is shown (in the tutorial this
> > is achieved through listeners, but can there be a url to method
> > mapping as well)?
>
> > * In respect to tutorial, what does the attribute path="/stockPrices"
> > in  xml tag mean and the identical annotation
> > @RemoteServiceRelativePath("stockPrices") in service interface? I
> > assume that the server-side method gets called when under that url,
> > but how is the client aware of the mapping?
>
> > * So far I have only seen tutorials on implementing relatively easy
> > projects. Does anyone know if there a more powerful sample application
> > with open source available: something where there is a need for more
> > than one html-page and controller exist?
>
> It seems you're missing a pretty fundamental difference between GWT
> apps and apps built with almost any other major web platform: with GWT
> it's all client side.
>
> Now, nothing's ever as simple as that, but it's a good first
> approximation in this case.  With server-side frameworks like anything
> that depends on PHP, Ruby, Python, Perl, or Java (besides GWT),
> there's comparitively little in the way of smarts on the client side.
> With GWT, you can build an entire app that has absolutely zero smarts
> on the server side.
>
> If you want to build a client app in GWT that interacts with a RESTful
> server, you can definitely map client-side events to URLs, but that's
> not the only way to do things with GWT.  You can put all your business
> logic on the client, you can access server-side business logic with
> GWT-RPC or other RPC-over-HTTP mechanisms, or you can strike a balance
> and split the business logic across both client and server.  One
> advantage of GWT is that, with GWT-RPC and a Java-language
> server-side, you can encode business logic in a set of Java classes
> and run the same code on both the client and the server (with the
> caveat that you have to limit yourself to those parts of the JRE that
> GWT supports).
>
> As far as examples go, you probably want to look at the other example
> apps in the GWT documentation.  If I remember right, the mail app is
> pretty comprehensive, and the doc for GWT-RPC is pretty good, too.
> There's also a frequent poster on this list with an entire site
> dedicated to GWT example code.  I can't remember his name right now,
> but his website is "roughian", or something like that.  His name might
> also be Ian, as a matter of fact.  Anyway, search the list's history
> for examples and I'm sure you'll find it.
>
> Ian
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Goo

css styling of build-in widgets

2009-01-28 Thread asdf_asdf

His,

If anyone could share his/her experience of custom-styling gwt widgets
with css. To my layman eye they all look kind of similar with bossed-
out gradient borders. I wonder how difficult would it be to change
their look like removing gradients and changing colors and border
widths?

The components from Gwt Ext library look excellent. Is it actually
possible and straightforward to mix standard gwt components with that
of Ext and third-party libraries in general?

Thank for support.

--~--~-~--~~~---~--~~
You received 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 RPC, database and properties file

2009-01-28 Thread Fitch

ok.. thanks!

I finally managed to get to the .properties file from the server
side... but I´ll try this and i´ll post my results.

thanks

On 28 ene, 05:02, Litty Preeth  wrote:
> Well you can get that by:
>
> getThreadLocalRequest().getSession().getServletContext().getInitParameter("db_driver");
>
> You can do this only from your RPC service implementation class
>
> - Litty
>
> On Tue, Jan 27, 2009 at 10:40 PM, Fitch  wrote:
>
> > Thank you..
> > and then how I access this web.xml from my .java file in the server
> > package??
>
> > thanks
>
> > On 27 ene, 05:37, Litty Preeth  wrote:
> > > Are you sure the application is able to find the properties file? Did u
> > try
> > > debugging and find out this? Also the best way to configure ur connection
> > > parameters is to put it in your web.xml context-param like:
> > > 
> > > ...
> > > ...
> > > 
> > >     db_driver
> > >     oracle.jdbc.driver.OracleDriver
> > > 
> > > 
> > >     db_server
> > >     192.168.31.41
> > > 
> > > .
> > > .
> > > 
>
> > > - litty preeth
>
> > > On Tue, Jan 27, 2009 at 6:39 AM, Fitch  wrote:
>
> > > > Hi, i´m devloping a GWT web application and i´m having problems
> > > > deploying it.
> > > > My application does interact with a database, so i have got a client
> > > > package and a server package. The operations with the database are in
> > > > the server package. I would like to specify database parameters (url,
> > > > username and pass) in a .properties file. This way, I can change the
> > > > url, username or password without compiling again.
>
> > > > How can I do this? I tried having a "file.properties" file at WEB-INF/
> > > > classes/ and then access it from my server package with this:
>
> > > > this.getClass().getClassLoader().getResourceAsStream
> > > > ("procedimientos.properties");
>
> > > > but this does not work, when i change the data at file.properties, the
> > > > application continues connecting to the same database. Even if i
> > > > delete the file from web-inf/classes at tomcat/webapps folder, it does
> > > > work.
>
> > > > Can anyone help me, please??
>
> > > > Thank you very much- Ocultar texto de la cita -
>
> > > - Mostrar texto de la cita -
>
>
--~--~-~--~~~---~--~~
You received 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: MultiSelectComboBox

2009-01-28 Thread chandraj...@gmail.com

I am looking for a MultiSelect values comboBox drop down similar to in
Facebook.

Upon selecting a value it shows it as a little tab with a small
"close" button within the ComboBox's textfield itself. Multiple values
are just shown in a flow layout. And the text field is growable
depending on the selected Items.

Thanks,

On Jan 25, 10:43 am, Arthur Kalmenson  wrote:
> This might be what you're looking 
> for:http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=go...
>
> --
> Arthur Kalmenson
>
> On Fri, Jan 23, 2009 at 4:00 PM, chandraj...@gmail.com <
>
> chandraj...@gmail.com> wrote:
>
> > Whats the class name? I can;t find it from their javadocs.
>
> > Thanks,
>
> > On Jan 22, 7:55 pm, Arthur Kalmenson  wrote:
> > > It should be in the incubator. The incubator is a little hairy, so
> > > you're going to have to decipher how it works from the sample code in
> > > the project.
>
> > > --
> > > Arthur Kalmenson
>
> > > On Thu, Jan 22, 2009 at 5:38 PM, chandraj...@gmail.com
>
> > >  wrote:
>
> > > > Hi,
>
> > > > I am looking for a MultiSelectComboBox widget. Is there any such
> > > > available or any plans how to approach one?
>
> > > > 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
-~--~~~~--~~--~--~---



Selecting Tree Elements

2009-01-28 Thread vroom_vroom

Hello,

Is there a way to progromatically select and focus on a tree item
through the API?

Currently, I have an app with a tree listing all the pinpoint
locations in the map. i can click on the listing in the tree and it
centers the map on that location and pops its info window up. now i
would like to do that process in reverse as well. So, if someone
clicks on a pinpoint in the map, the associated tree item is selected
and focused on.

The problems i am encountering are that if i select a tree item
programatically the tree does not expand and show that selected item,
even though it is highlighted.
Also, after i do this selection, if i select something else in the
tree it does not unselect the one i set..so i then have multiple items
in the tree selected.

Anyone ever try to do this or know how it works?

--~--~-~--~~~---~--~~
You received 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: Multiple services in one project - how, and what files?

2009-01-28 Thread keith.m...@gmail.com

I seem to have it worked out.
In my Impl file, I had to have it implement each of the services like
so

public class BlahServiceImpl extends RemoteServiceServlet
implements BlahBlahSvc, BlahBlahXPSvc {
...
}

separated by a comma.  I thought that might work, but had to clean up
some other stuff.
Any other tips on doing this type of thing?
Thanks!




On Jan 28, 2:17 pm, "keith.m...@gmail.com" 
wrote:
> Hi
> I've been using some online examples to build this thing with GWT...
> am able to implement a single service without a problem; this one
> retrieves a record out of mysql using the jdbc, works good.
> But now I want to add a few more.
> One will retrieve some data out of mysql of a different type (which
> I've defined in a class), and one will execute an update in mysql.
> SO For each of these, do I need separate files for the Service,
> ServiceAsync, and Impl?
> Or can I just have the separate Service and ServiceAsync files, and
> put both into the same Impl file?  The Impl file "implements" one
> service... but could it implement more than one?
> Any help or pointers to online answers would be appreciated.
> 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
-~--~~~~--~~--~--~---



Accessing Static Resources

2009-01-28 Thread sim123

Is there a way I could put all static resources like images into
another location and access it from there. I want to use apache for
static resources and tomcat as my server.  specifies
another directory only ?

Thanks for all the 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: GWTTestCase v/s Selenium

2009-01-28 Thread Daniel Wellman

I've always used Selenium directly.  You can start by using the
Selenium IDE to record the script, but for an AJAX application, you'll
need to tweak the script by hand to add the appropriate waitFor()
commands (e.g. waitForVisible, waitForElementPresent, etc.) to ensure
that your script waits for sever commands to complete, windows to
redraw, etc.

You can decide if you want the tests to run in pure Selenese (the HTML
table structure created by the Selenium IDE) or in a host language
like Java or Ruby using Selenium RC.  I prefer writing the tests in
Java or Ruby instead of Selenese because it's easy for me to edit both
GWT code and Selenium tests all from one IDE (IntelliJ, Eclipse,
etc.), and it's easier to write reusable routines in Java or Ruby than
in Selenese tables.

If you are having problems using DOM IDs, you might consider using CSS
selectors instead to locate the items you want.

Cheers,
Dan

On Jan 28, 2:24 pm, rex  wrote:
> Yes. Exactly. The dynamic id generation is a pain. That is an obstacle
> in the test development. Does anybody know how to tackle it in
> Selenium? Also, i repeat my previous question whether to use Selenium
> alone or with another framework like 'PushToTest'?
>
> Thanks,
> Rex
>
> On Jan 28, 2:36 am, Serge  wrote:
>
> > I see one serious problem with Selenium using: if you use GwtExt then
> > all page's ids changes dynamically, so you can't use Selenium's
> > scripts directly - you have to rewrite it for another methods of
> > page's widgets determination (f.e. by name, by location and so on).
> > If anybody know how to force GwtExt to generate ids once it would be
> > good!
--~--~-~--~~~---~--~~
You received 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 widget to display status?

2009-01-28 Thread tony.p..

Thank you Litty.
I added css to the Label and it does look better. But still wondering
if this is the best practice to implement a status Widget for users.

Thanks again,
Tony

On Jan 28, 7:16 am, Litty Preeth  wrote:
> You can make the label "pretty" using CSS.
>
> - Litty
>
> On Tue, Jan 27, 2009 at 11:23 PM, tony.p..  wrote:
>
> > Hello all,
>
> > I'm developing a gwt app and in it I want to display error messages,
> > status, etc... to the user in a widget. I want to display it in a gray
> > color, to distinguish it from the rest of the content. I used a label,
> > but it's not that pretty. What widget do you recommend?
>
> > Thank you.
> > Tony
--~--~-~--~~~---~--~~
You received 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: HRElement

2009-01-28 Thread tony.p..

I figured out 2 ways to add a separator:
1. a blank image
2. an empty HorizontalPanel

Not sure if there are any security or performance concerns when using
the above as separators.

As for the HRElement, I couldn't find any example of using it and I
still can't figure out how you can use it?! Are you not supposed to
use this element? will it be deprecated?

Tony

On Jan 27, 12:02 pm, "tony.p.."  wrote:
> Hello All,
>
> How can I add an hr element, like the ones in the gwt showcase? I
> tried HRElement(), but I can't get it to work. I know that HTML
> ("") works, but I'm trying to stay away from direct html as
> possible.
>
> Thank you,
> Tony
--~--~-~--~~~---~--~~
You received 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-dnd / gwt-log / gwt-voices - Status Update

2009-01-28 Thread Fred Sauer
Thanks, John
Fred Sauer
f...@allen-sauer.com


On Wed, Jan 28, 2009 at 2:07 PM, John Gunther
wrote:

>
> That's good to hear, and BTW, congrats on the Google gig. But didn't
> you already work for Google? Maybe they just gave you a massive raise.
> Best GWT tip I ever got was to use Firebug--thanks for that one, and
> keep them coming.
>
> John
>
> On Jan 28, 4:34 pm, Fred Sauer  wrote:
> > Hi-
> >
> > Some of you may have noticed a recent lack of activity across the
> > gwt-dnd
> >  / gwt-log  /
> > gwt-voicesprojects or you may
> > have even seen my
> > post  on
> the
> > GWT blog and wondered what about these future of my projects. In case
> you're
> > not familiar with them they are:
> >
> >-http://code.google.com/p/gwt-dnd/- Drag and Drop
> >-http://code.google.com/p/gwt-log/- Advanced logging
> >-http://code.google.com/p/gwt-voices/- Cross browser sound
> >
> > I'd like to take this opportunity to reassure you that I have no plans to
> > abandon these projects. In fact, I'm even planning on using my
> "20-percent
> > time" (learn more<
> http://www.google.com/support/jobs/bin/static.py?page=about.html&abou...>)
> > to work on making GWT
> > better.
> > At the same time, I'd like to apologize for the lack of recent project
> > activity. My family and I have spent much of the past two months
> preparing
> > for and executing a cross-country
> > move<
> http://maps.google.com/maps?saddr=Denver,+CO&daddr=Mountain+View,+CA&t=p>,
> > which has left me little time to spend between keyboard and
> > chair. While
> > we have found the toaster ,
> there
> > are still missing items to locate in the unpacked moving
> > boxes.
> > So, please bear with me a little longer as I get settled in.
> >
> > Thanks
> > Fred Sauer
> > f...@allen-sauer.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: Async RPC freeze / hang / exception after app runs for N days

2009-01-28 Thread jol-blazey

After testing I think that the problem is not caused by the app
running for a long time, but incompatible client app version.
Deleting browser cache does not seem to be enough. Browser must also
be restarted and sometimes cache deleted several times. This is with
ffox, ie6,7 opera.

A secondary factor is when the async response takes a long time the
page appears to 'hang'. Pressing ESC seems to trigger onFailure
invocationException (network error)

I might end up adding a Timer to do the timeout manually as i saw
others suggest in some related posts. Would be great if gwt will
provide this.

I would still appreciate pointers to Q2. how to get more info from
rpc.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



DateTimePicker doesn't set displayed date

2009-01-28 Thread Thad

I'm using the DateTimePicker widget from gwt-incubator_1-5_Dec_28.jar
in a DialogBox.  Before displaying the dialog, I attempt to set the
displayed date and time.  The displayed time sets properly, but not
the date.  Here is my code:

Date dueDate = ...
...
final DateTimePicker dateTimePicker = new DateTimePicker(false);
dateTimePicker.setWidth("200px");
if ( dueDate != null ) {
GWT.log("dueDate: "+DateTimeFormat.getMediumDateTimeFormat().format
(dueDate), null);
dateTimePicker.getTimePicker().setDateTime(dueDate);
dateTimePicker.getDatePicker().setSelectedDate(dueDate);
}
DecoratorPanel decoratorPanel = new DecoratorPanel();
decoratorPanel.setWidget(dateTimePicker);
dialogContents.add(decoratorPanel);
...

Can anyone tell me what I'm doing wrong?

--~--~-~--~~~---~--~~
You received 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 skinning & templating

2009-01-28 Thread Arthur Kalmenson

Yes, CSS. Just use CSS classes with setStylePrimaryName and
addStyleDependentName.

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 11:21 AM, chandraj...@gmail.com
 wrote:
>
> I want to have a content management type solution using GWT.
> Basically, I have a fixed set of contents built using GWT. I want to
> give it a hole new look n feel with some different themes to make it
> look like a whole new website for a different client with minimal
> cobranding(which I can take care).
>
> Is there a ready to go styling solution I can use?
>
> 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: Microsoft Picture Manager

2009-01-28 Thread Arthur Kalmenson

How would you do this through regular HTML and Javascript?

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 1:02 PM, Anti  wrote:
>
> Hello,
>
> Is it possible to execute Microsoft Picture Manager through a gwt
> Hyperlink?
>
> 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: Gen widget roadmap

2009-01-28 Thread Arthur Kalmenson

> The widgets committed to the incubator are expected to be
> functional, and many developers have had success using them, but they have
> not been thoroughly tested or vetted for production use.

It's important to note that while they're not as thoroughly tested as
GWT's standard widgets, they're far better then most third party
libraries, so I'd look in the incubator before going somewhere else.
You have the added benefit of some of those libraries to be folded
into GWT eventually.

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 5:22 PM, Sumit Chandel  wrote:
> Hi Ender,
> You can expect the GWT Incubator project to be kept up to date with the
> upcoming GWT 1.6 milestone release. However, the release timeline for the
> incubator project itself has not been set in stone -- such is the nature of
> the incubator. You can see the GWT core roadmap on the blog post linked
> below.
> GWT roadmap:
> http://googlewebtoolkit.blogspot.com/2008/12/whats-ahead-for-google-web-toolkit_10.html
>
> I also wanted to remind you that we do not recommend using the incubator in
> production. The widgets committed to the incubator are expected to be
> functional, and many developers have had success using them, but they have
> not been thoroughly tested or vetted for production use.
> Hope that helps,
> -Sumit Chandel
>
> On Tue, Jan 27, 2009 at 3:23 AM, Endi  wrote:
>>
>> Hi
>> We will start to develop some app in a short time. We want to use gwt
>> for gui which we already used for a few projects. During design phase
>> we tested new gen2 widgets and its very usefull but still most of
>> available widgets are not ported. For example popupPanel widget is a
>> must for our widget collections and still use older event api. What is
>> gen2 roadmap? with 1.6 release older widgets will be deprecated? and
>> the release timeline of course
>>
>> Ender
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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-dnd / gwt-log / gwt-voices - Status Update

2009-01-28 Thread Arthur Kalmenson

Yeah, congrats on the Google position. I'm also happy to see a GWT
advocate, you guys need some good PR (considering how awesome the
product is, it should be used everywhere by now :P). Hope you come and
hang around on the IRC channel too.

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 8:53 PM, Fred Sauer  wrote:
> Thanks, John
> Fred Sauer
> f...@allen-sauer.com
>
>
> On Wed, Jan 28, 2009 at 2:07 PM, John Gunther 
> wrote:
>>
>> That's good to hear, and BTW, congrats on the Google gig. But didn't
>> you already work for Google? Maybe they just gave you a massive raise.
>> Best GWT tip I ever got was to use Firebug--thanks for that one, and
>> keep them coming.
>>
>> John
>>
>> On Jan 28, 4:34 pm, Fred Sauer  wrote:
>> > Hi-
>> >
>> > Some of you may have noticed a recent lack of activity across the
>> > gwt-dnd
>> >  / gwt-log  /
>> > gwt-voicesprojects or you may
>> > have even seen my
>> > post  on
>> > the
>> > GWT blog and wondered what about these future of my projects. In case
>> > you're
>> > not familiar with them they are:
>> >
>> >-http://code.google.com/p/gwt-dnd/- Drag and Drop
>> >-http://code.google.com/p/gwt-log/- Advanced logging
>> >-http://code.google.com/p/gwt-voices/- Cross browser sound
>> >
>> > I'd like to take this opportunity to reassure you that I have no plans
>> > to
>> > abandon these projects. In fact, I'm even planning on using my
>> > "20-percent
>> > time" (learn
>> > more)
>> > to work on making GWT
>> > better.
>> > At the same time, I'd like to apologize for the lack of recent project
>> > activity. My family and I have spent much of the past two months
>> > preparing
>> > for and executing a cross-country
>> >
>> > move,
>> > which has left me little time to spend between keyboard and
>> > chair. While
>> > we have found the toaster ,
>> > there
>> > are still missing items to locate in the unpacked moving
>> > boxes.
>> > So, please bear with me a little longer as I get settled in.
>> >
>> > Thanks
>> > Fred Sauer
>> > f...@allen-sauer.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: css styling of build-in widgets

2009-01-28 Thread Arthur Kalmenson

> If anyone could share his/her experience of custom-styling gwt widgets
> with css. To my layman eye they all look kind of similar with bossed-
> out gradient borders. I wonder how difficult would it be to change
> their look like removing gradients and changing colors and border
> widths?

It's just like changing any CSS really. If you're interested in
tweaking the default themes, either a) override the given CSS or b)
pull the CSS files from the GWT source.

> The components from Gwt Ext library look excellent. Is it actually
> possible and straightforward to mix standard gwt components with that
> of Ext and third-party libraries in general?

Looks can be deceiving ;). From the last time I tried it, it was not
really possible to mix GWT components with this library. In general, I
was very disappointed with the performance and overall quality of the
library. If you like the quality of GWT, stay with the vanilla version
and look into spending some money on getting a web designer to do
something for you.

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 5:49 PM, asdf_asdf  wrote:
>
> His,
>
> If anyone could share his/her experience of custom-styling gwt widgets
> with css. To my layman eye they all look kind of similar with bossed-
> out gradient borders. I wonder how difficult would it be to change
> their look like removing gradients and changing colors and border
> widths?
>
> The components from Gwt Ext library look excellent. Is it actually
> possible and straightforward to mix standard gwt components with that
> of Ext and third-party libraries in general?
>
> Thank for support.
>
> >
>

--~--~-~--~~~---~--~~
You received 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: MultiSelectComboBox

2009-01-28 Thread Arthur Kalmenson

Can you be more descriptive with where in Facebook this is?

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 7:00 PM, chandraj...@gmail.com
 wrote:
>
> I am looking for a MultiSelect values comboBox drop down similar to in
> Facebook.
>
> Upon selecting a value it shows it as a little tab with a small
> "close" button within the ComboBox's textfield itself. Multiple values
> are just shown in a flow layout. And the text field is growable
> depending on the selected Items.
>
> Thanks,
>
> On Jan 25, 10:43 am, Arthur Kalmenson  wrote:
>> This might be what you're looking 
>> for:http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=go...
>>
>> --
>> Arthur Kalmenson
>>
>> On Fri, Jan 23, 2009 at 4:00 PM, chandraj...@gmail.com <
>>
>> chandraj...@gmail.com> wrote:
>>
>> > Whats the class name? I can;t find it from their javadocs.
>>
>> > Thanks,
>>
>> > On Jan 22, 7:55 pm, Arthur Kalmenson  wrote:
>> > > It should be in the incubator. The incubator is a little hairy, so
>> > > you're going to have to decipher how it works from the sample code in
>> > > the project.
>>
>> > > --
>> > > Arthur Kalmenson
>>
>> > > On Thu, Jan 22, 2009 at 5:38 PM, chandraj...@gmail.com
>>
>> > >  wrote:
>>
>> > > > Hi,
>>
>> > > > I am looking for a MultiSelectComboBox widget. Is there any such
>> > > > available or any plans how to approach one?
>>
>> > > > 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: Microsoft Picture Manager

2009-01-28 Thread Arthur Kalmenson

I'm not exactly sure how it works through HTML and Javascript. If it's
just a hyperlink, then you can make the same hyperlink in GWT using
the Hyperlink widget.

--
Arthur Kalmenson



On Wed, Jan 28, 2009 at 10:05 PM, Anti  wrote:
> Anyway as long as it can be done with gwt.
>
> Thanks.
>
> On Jan 28, 8:47 pm, Arthur Kalmenson  wrote:
>> How would you do this through regular HTML and Javascript?
>>
>> --
>> Arthur Kalmenson
>>
>> On Wed, Jan 28, 2009 at 1:02 PM, Anti  wrote:
>>
>> > Hello,
>>
>> > Is it possible to execute Microsoft Picture Manager through a gwt
>> > Hyperlink?
>>
>> > 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: Microsoft Picture Manager

2009-01-28 Thread Anti

That's not the problem.

The problem is: how to open the local, external application in the
client side?

On Jan 28, 9:11 pm, Arthur Kalmenson  wrote:
> I'm not exactly sure how it works through HTML and Javascript. If it's
> just a hyperlink, then you can make the same hyperlink in GWT using
> the Hyperlink widget.
>
> --
> Arthur Kalmenson
>
> On Wed, Jan 28, 2009 at 10:05 PM, Anti  wrote:
> > Anyway as long as it can be done with gwt.
>
> > Thanks.
>
> > On Jan 28, 8:47 pm, Arthur Kalmenson  wrote:
> >> How would you do this through regular HTML and Javascript?
>
> >> --
> >> Arthur Kalmenson
>
> >> On Wed, Jan 28, 2009 at 1:02 PM, Anti  wrote:
>
> >> > Hello,
>
> >> > Is it possible to execute Microsoft Picture Manager through a gwt
> >> > Hyperlink?
>
> >> > 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: what design pattern to use with DWT

2009-01-28 Thread babar nazir
Hi dears,

i need the .pdf tutorial of GWT because i want to present it to my fellows,
please any one have it, mail it to me

Regards:

Best Regards:

Muhammad Babar Nazir
Software Engineer
SENSYS pvt. Ltd.
79-B Tech Society, Lahore.
babar.na...@sensys.com
Cell# +92-346-7464803

--~--~-~--~~~---~--~~
You received 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 widget to display status?

2009-01-28 Thread Litty Preeth
Well that depends on ur requirement Well for displaying error messages
and status i think Label is the one Dont worry... Label is just a DIV
whose innerText is set. I use that only in my project for thoes purposes

On Thu, Jan 29, 2009 at 7:15 AM, tony.p..  wrote:

>
> Thank you Litty.
> I added css to the Label and it does look better. But still wondering
> if this is the best practice to implement a status Widget for users.
>
> Thanks again,
> Tony
>
> On Jan 28, 7:16 am, Litty Preeth  wrote:
> > You can make the label "pretty" using CSS.
> >
> > - Litty
> >
> > On Tue, Jan 27, 2009 at 11:23 PM, tony.p..  wrote:
> >
> > > Hello all,
> >
> > > I'm developing a gwt app and in it I want to display error messages,
> > > status, etc... to the user in a widget. I want to display it in a gray
> > > color, to distinguish it from the rest of the content. I used a label,
> > > but it's not that pretty. What widget do you recommend?
> >
> > > Thank you.
> > > Tony
> >
>

--~--~-~--~~~---~--~~
You received 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: MultiSelectComboBox

2009-01-28 Thread chandraj...@gmail.com

Login to ur facebook account.
Click "Advertising" from footer links.
Click to "Create an Ad"
Come to the 3rd step "Reach the exact audience you want"

The Keywords & Workplaces Textfield is this component which I am
talking about.

On Jan 28, 9:02 pm, Arthur Kalmenson  wrote:
> Can you be more descriptive with where in Facebook this is?
>
> --
> Arthur Kalmenson
>
> On Wed, Jan 28, 2009 at 7:00 PM, chandraj...@gmail.com
>
>  wrote:
>
> > I am looking for a MultiSelect values comboBox drop down similar to in
> > Facebook.
>
> > Upon selecting a value it shows it as a little tab with a small
> > "close" button within the ComboBox's textfield itself. Multiple values
> > are just shown in a flow layout. And the text field is growable
> > depending on the selected Items.
>
> > Thanks,
>
> > On Jan 25, 10:43 am, Arthur Kalmenson  wrote:
> >> This might be what you're looking 
> >> for:http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=go...
>
> >> --
> >> Arthur Kalmenson
>
> >> On Fri, Jan 23, 2009 at 4:00 PM, chandraj...@gmail.com <
>
> >> chandraj...@gmail.com> wrote:
>
> >> > Whats the class name? I can;t find it from their javadocs.
>
> >> > Thanks,
>
> >> > On Jan 22, 7:55 pm, Arthur Kalmenson  wrote:
> >> > > It should be in the incubator. The incubator is a little hairy, so
> >> > > you're going to have to decipher how it works from the sample code in
> >> > > the project.
>
> >> > > --
> >> > > Arthur Kalmenson
>
> >> > > On Thu, Jan 22, 2009 at 5:38 PM, chandraj...@gmail.com
>
> >> > >  wrote:
>
> >> > > > Hi,
>
> >> > > > I am looking for a MultiSelectComboBox widget. Is there any such
> >> > > > available or any plans how to approach one?
>
> >> > > > 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
-~--~~~~--~~--~--~---



What is the most preferred way !!??

2009-01-28 Thread Ajay Garg

Hi all.

I was working with some GWT widgets, and found that Hyperlink and
Button are some of the most commonly used ones. However, I am not sure
as to what is the standard (and better !!) paradigm, to define the
"onClick" methods for these widgets.

Following are some of the possibilities :

1. Instantiate a button in a manner (as given at
   http://google-web-
   toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/
ui/Button.html


/
START
Button b = new Button("Jump!", new ClickListener() {
  public void onClick(Widget sender) {
Window.alert("How high?");
  }
});
   /
END





2. Add clickListener separately.


/
START
Button b = new Button("Jump!");

b.addClickListener
(referenceOfClassImplementingClickListenerInterface);


/
END


   Note that in this case,
"referenceOfClassImplementingClickListenerInterface" may be of any
type (a widget wrapping "b"; a page wrapping "b"; a module wrapping
"b").





3. Extend "Button", as in :


   /
START
public abstract class EButton extends Button implements
ClickListener{

public EButton(){
addClickListener(this);
}

public abstract void onClick(Widget sender);

}
   /
END




  which may then be used as  ::

  /
START
EButton buttonForActionOne = new
EButton(){

@Override
public void onClick(Widget sender) {
Window.alert("In One");

}
};

EButton buttonForActionTwo = new EButton(){

@Override
public void onClick(Widget sender) {
Window.alert("In Two");

}
};
  /
END

In this case, instantiating a new reference for EButton, "forces" the
user to define its "action-on-click" there and then. Also, this also
binds the widget and the "action-on-click" in a cohesive unit, as
Ebutton is a clickListener to itself.

Thus, I will be grateful if some help could be provided in figuring
out what seems to be the most-preferred way to define the "action-on-
click" for widgets like Button and Hyperlink ..

Looking forward to replies.

Ajay Garg












--~--~-~--~~~---~--~~
You received 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-dnd / gwt-log / gwt-voices - Status Update

2009-01-28 Thread Fred Sauer
Thanks, Arthur.
Fred Sauer
f...@allen-sauer.com


On Wed, Jan 28, 2009 at 6:56 PM, Arthur Kalmenson wrote:

>
> Yeah, congrats on the Google position. I'm also happy to see a GWT
> advocate, you guys need some good PR (considering how awesome the
> product is, it should be used everywhere by now :P). Hope you come and
> hang around on the IRC channel too.
>
> --
> Arthur Kalmenson
>
>
>
> On Wed, Jan 28, 2009 at 8:53 PM, Fred Sauer  wrote:
> > Thanks, John
> > Fred Sauer
> > f...@allen-sauer.com
> >
> >
> > On Wed, Jan 28, 2009 at 2:07 PM, John Gunther <
> johncurtisgunt...@yahoo.com>
> > wrote:
> >>
> >> That's good to hear, and BTW, congrats on the Google gig. But didn't
> >> you already work for Google? Maybe they just gave you a massive raise.
> >> Best GWT tip I ever got was to use Firebug--thanks for that one, and
> >> keep them coming.
> >>
> >> John
> >>
> >> On Jan 28, 4:34 pm, Fred Sauer  wrote:
> >> > Hi-
> >> >
> >> > Some of you may have noticed a recent lack of activity across the
> >> > gwt-dnd
> >> >  / gwt-log  /
> >> > gwt-voicesprojects or you may
> >> > have even seen my
> >> > post 
> on
> >> > the
> >> > GWT blog and wondered what about these future of my projects. In case
> >> > you're
> >> > not familiar with them they are:
> >> >
> >> >-http://code.google.com/p/gwt-dnd/- Drag and Drop
> >> >-http://code.google.com/p/gwt-log/- Advanced logging
> >> >-http://code.google.com/p/gwt-voices/- Cross browser sound
> >> >
> >> > I'd like to take this opportunity to reassure you that I have no plans
> >> > to
> >> > abandon these projects. In fact, I'm even planning on using my
> >> > "20-percent
> >> > time" (learn
> >> > more<
> http://www.google.com/support/jobs/bin/static.py?page=about.html&abou...>)
> >> > to work on making GWT
> >> > better.
> >> > At the same time, I'd like to apologize for the lack of recent project
> >> > activity. My family and I have spent much of the past two months
> >> > preparing
> >> > for and executing a cross-country
> >> >
> >> > move<
> http://maps.google.com/maps?saddr=Denver,+CO&daddr=Mountain+View,+CA&t=p>,
> >> > which has left me little time to spend between keyboard and
> >> > chair. While
> >> > we have found the toaster  >,
> >> > there
> >> > are still missing items to locate in the unpacked moving
> >> > boxes.
> >> > So, please bear with me a little longer as I get settled in.
> >> >
> >> > Thanks
> >> > Fred Sauer
> >> > f...@allen-sauer.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
-~--~~~~--~~--~--~---



Handling 404s

2009-01-28 Thread sim123

I am not sure if it is GWT problem or I am missing something in my
web.xml. I am using GWT and java for client and server on tomcat web
container. I want to put a handler for 404 response so that it should
display custom error page, I put 404 mapping in my web.xml file

 
   404
   /404error.html


and it doesn't work, I get an error saying

Cannot find resource 'test' in the public path of module
'com.test.mywebapp.Sim'

Could someone please help me with this. I do have 404error.html page
and can access it directly within browser. Please, please help me, I
really appreciate your support.

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: How to insert/create data nto database using Hibernate?

2009-01-28 Thread Litty Preeth
You are posting in the wrong forum...

On Wed, Jan 28, 2009 at 12:19 PM, Srihari.Ch wrote:

>
>
> Hi all,
>
> I need to know basics of Hibernate about creating hibernate
> methods/classes to retrieve and save data to and from the database.
>
>
> I am new to Hibernate. Send me .. it's urgent
>
>
> Srihari.Ch
>
> >
>

--~--~-~--~~~---~--~~
You received 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 most preferred way to attach a clickListener ..??

2009-01-28 Thread Ajay Garg

Hi all.

I was working with some GWT widgets, and found that Hyperlink and
Button are some of the most commonly used ones. However, I am not
sure
as to what is the standard (and better !!) paradigm, to define the
"onClick" methods for these widgets.


Following are some of the possibilities :


1. Instantiate a button in a manner (as given at
   http://google-web-
   toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/
ui/Button.html



///­//
START
Button b = new Button("Jump!", new ClickListener() {
  public void onClick(Widget sender) {
Window.alert("How high?");
  }
});
   
///­//
END


2. Add clickListener separately.



///­//
START
Button b = new Button("Jump!");


b.addClickListener
(referenceOfClassImplementingClickListenerInterface);



///­//
END


   Note that in this case,
"referenceOfClassImplementingClickListenerInterface" may be of any
type (a widget wrapping "b"; a page wrapping "b"; a module wrapping
"b").


3. Extend "Button", as in :


   
///­//
START
public abstract class EButton extends Button implements
ClickListener{


public EButton(){
addClickListener(this);
}


public abstract void onClick(Widget sender);


}
   
///­//
END


  which may then be used as  ::


  ///­//
START
EButton buttonForActionOne = new
EButton(){


@Override
public void onClick(Widget sender) {
Window.alert("In One");


}
};


EButton buttonForActionTwo = new EButton(){


@Override
public void onClick(Widget sender) {
Window.alert("In Two");


}
};
  ///­//
END


In this case, instantiating a new reference for EButton, "forces" the
user to define its "action-on-click" there and then. Also, this also
binds the widget and the "action-on-click" in a cohesive unit, as
Ebutton is a clickListener to itself.


Thus, I will be grateful if some help could be provided in figuring
out what seems to be the most-preferred way to define the "action-on-
click" for widgets like Button and Hyperlink ..


Looking forward to replies.


Ajay Garg


--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---