Re: use getDeclaredMethods() ??

2009-03-11 Thread Serge

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



Is it a small bug in samle StockWatcher?

2009-03-11 Thread 秦锋

I'm newbie to GWT and read the tutorial of StockWatcher now, here is
my question:
In 
http://code.google.com/intl/zh-CN/webtoolkit/tutorials/1.5/codeclient.html#addStock,
"3. Add a button to remove stocks from the stock list", following is
the code:

int removedIndex = stocks.indexOf(symbol);

My question:
where is the "symbol" from?
It's in a listener's method, but defined in "addStock" function?

--~--~-~--~~~---~--~~
You received 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: embedded flash not displaying is IE7 on secured url but works fine when viewed with unsecured url

2009-03-11 Thread Tony Strauss

This just is a wild shot in the dark (I have very limited experience
with Flash) but could it be a problem with the cache control headers
in the response returned by the server?  I've had a number of issues
with IE (even IE7) + HTTPS that have resulted from this.

See:
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/gwt/user/client/ui/ImageBundle.html
for a discussion of this issue for the GWT ImageBundle.

See this:
http://drupal.org/node/163298
for a discussion of the issue in a different context.

Also this for downloading MSOffice files:
http://support.microsoft.com/kb/316431

Basically, IE cannot download files successfully over HTTPS if caching
is completely suppressed.  Any of:
Pragma: No-cache
Cache-Control: no-cache
in the response header will cause IE problems over HTTPS.

Tony

On Mar 11, 1:07 pm, "loveleen@gmail.com" 
wrote:
> Hi,
>     Im using an embedded flash on a popup, the flash works fine if
> viewed on firefox or with unsecured url but doesnt show when viewed
> with secured url. Is it a general problem with IE?
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Setting DataSource (JNDI) in GWT 1.6 (hosted mode - Jetty)

2009-03-11 Thread wiltonj

Hi,
How to setting DataSource in GWT 1.6 (Hosted mode - Jetty)?

Hoping for some guidance.

Thanks & Regards,
Wilton

--~--~-~--~~~---~--~~
You received 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 call a servlet from GWT

2009-03-11 Thread Saeed Zarinfam

With use RequestBuilder you can send a request to a servlet and with
use RPC you ca call a method from server and send to this method
parameters.
--~--~-~--~~~---~--~~
You received 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: ImageBundle problem

2009-03-11 Thread Jason Morris

Is your GsImageBundle interface in the client-side source-path ("client" by 
default, unless you've 
changed it)?

// J

javacup wrote:
> Hi,
> 
> I'm new to using GWT. So I need your help.
> 
> I'm trying to add an image to a panel from one of the examples in the
> tutorial.
> 
> I'm getting "[ERROR] Line 31: No source code is available for type
> com.gs.images.GsImageBundle; did you forget to inherit a required
> module?"
> 
> gwt version: 1.5.3 for mac.
> 
> public interface GsImageBundle extends ImageBundle {
> 
>   public static final GsImageBundle INSTANCE = (GsImageBundle)
> GWT.create(GsImageBundle.class);
> 
>   AbstractImagePrototype logo98x40();
> 
> }
> 
> in onModuleLoad method
> ..
> 
> //get Image Bundle
> GsImageBundle gsImageBundle = GsImageBundle.INSTANCE
> .
> 
> panel.add(gsImageBundle.logo98x40().createImage());
> 
> 
> .
> 
> gives me an error when I run the app..
> 
> 
> 
> [ERROR] Line 31: No source code is available for type
> com.gs.images.GsImageBundle; did you forget to inherit a required
> module?
> 
> 
> Some help here will 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
-~--~~~~--~~--~--~---



Custom widget theme?

2009-03-11 Thread Riyaz Mansoor


Have widget that I have stylized using CSS. But I have no idea how to
theme this widget. I want some CSS differences to be seen by the user,
when different themes are selected.

Can this be done?


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



Changes to Overlay Types

2009-03-11 Thread Rajesh Akkineni

I have a problem with accessing the changes done in a native method of
Overlay Type.

class A extends JavaScriptObject{

public native void toB(String b)/*-{
  this.b=b;
}-*/;
public native String getB()/*-{
 return this.b;
}-*/;

}


This this example 'toB' method and 'getB' are called from two
different places on same A object. But the values set in toB are not
available in getB. How is it possible? Other properties which are
present A before these methods are called are still available in both
places. But any new properties are not available.

Only explanation is that when javascript returns an Overlay type to
Java it wraps in a new object that is derived form old object. Am I
Correct? Is there any way to overcome this limitation. (I have not
tested in web mode)

Thanks for any help
Rajesh A

--~--~-~--~~~---~--~~
You received 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: dialog frames not displayed correctly in IE 7 when html location changed

2009-03-11 Thread Thomas Broyer



On 12 mar, 02:41, Thomas Broyer  wrote:
>
> This is solved
> in 1.6 by getting rid of AlphaImageLoader in the 3 default themes
> (using binary transparency in IE6, IE7 supports PNG transparency
> without AlphaImageLoader)

Forgot to say that Issue 3278 gives a workaround for GWT 1.5.

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

--~--~-~--~~~---~--~~
You received 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: dialog frames not displayed correctly in IE 7 when html location changed

2009-03-11 Thread Thomas Broyer


On 16 fév, 13:10, whito  wrote:
>
> So the layout is the following:
> \main.html
> \gwt-files\*.cache.html
> \gwt-files\*.cache.png
> \gwt-files\*.nocache.js
> \gwt-files\gwt\standard\standard*.css
> \gwt-files\gwt\standard\images\*.png
> \gwt-files\gwt\standard\images\ie6\*.png
>
> I followed the steps in GWT 
> FAQ:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> The problem is that if I move the html page that contains my GWT
> application to the WEB_APP_ROOT, IE7 fails to display dialog frames
> correcly. The upper left corner and the right side images of the
> dialog frame are missing. In the application html I load the
> application like this:
>    
>
> I'm sure that it finds the images referenced in the css, because the
> buttons, dialog title and some parts of the dialog frame have the
> proper backgroud image, only some part of the frame is missing,
> although those are located in the same file as other parts of the
> frame, in corner.png and vborder.png.
>
> If I put the application html (main.html) into gwt-files as well and
> load the application with
>     src=".nocache.js">
> then the dialogs display correctly.

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

The problem is the use of AlphaImageLoader for PNG transparency in IE,
which resolves paths relative to the page, not the CSS. This is solved
in 1.6 by getting rid of AlphaImageLoader in the 3 default themes
(using binary transparency in IE6, IE7 supports PNG transparency
without AlphaImageLoader)
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Exception in compile

2009-03-11 Thread hooly.jia

My projects can run in the GWTDesginer's application, but it can't run
When project compiles.

Build project to WAR files, and put it to tomcat.

run and catch this exception in tomcat. I can't find the error what
lead to such.

严重: Exception while dispatching incoming RPC call
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.extract
(ServerSerializationStreamReader.java:610)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.readInt
(ServerSerializationStreamReader.java:427)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.prepareToRead
(AbstractSerializationStreamReader.java:38)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead
(ServerSerializationStreamReader.java:382)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:162)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service
(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process
(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447)
at java.lang.Thread.run(Unknown Source)

if somebody should be tell me the error, thanks to you.
--~--~-~--~~~---~--~~
You received 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: [ANN] Gilead 1.2.2

2009-03-11 Thread Itamar Ravid
Hi Bruno - first off, thanks for all of your hard work. Your project is a
real life-saver, and we're using it extensively in our project.

I'd like to report a bug. I have not tested yet with gilead 1.2.2, but I'd
like to report it anyway.

Assume two classes:

public class Status {
Long id;
String name;

public Long getId() { ... }
public Long setId(Long id) { ... }
public String getName() { ... }
public Long setName(String name) { ... }
}

public class Ticket {
Status status;

public Status getStatus() { ... }
public Status setStatus(Status status) { ... }

public String getStatusName() { return getStatus().getName(); }
public String setStatusName(String name) { getStatus().setName(name); }
}

I've omitted the getters and setters for brevity, as I assume their contents
is well known. The problem occurs when serializing a Ticket instance. I
suspect that the problem lies in beanlib, though I wanted to consult you
first.

While serializing a Ticket, I receive a NullPointerException, while beanlib
tries to access the delegate method getStatusName in Ticket. I've come to
suspect, through debugging, that this happens since beanlib tries to copy
the statusName property (which does not exist) -before- copying the status
property. It'd be great if you could confirm my assumptions. For now, we've
prefixed all delegate methods with an underscore, to prevent beanlib from
recognizing them as property getters/setters.

Any thoughts?


On Wed, Mar 11, 2009 at 11:30 PM, noon  wrote:

>
> Gilead library permits you to send Persistent entities (and especially
> the partially loaded ones) to the GWT  client side without pain.
>
> This release is a maintenance one, fixing half a dozen bugs, and
> providing many improvements (see release notes for details).
>
> A particular work was made on improving clone performances.
>
> Also note that hibernate-jpa-util have been now merged with hibernate-
> util JAR, and some integration classes for JBoss and Spring are now
> provided.
>
> Hope this helps !
> Bruno
>
> >
>

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



Re: Is there a place to download the documentation?

2009-03-11 Thread Ben Tilford
The toolkit download includes the documentation.

On Wed, Mar 11, 2009 at 6:36 PM, Seth Ladd  wrote:

>
> Hello,
>
> Is it possible to download a copy of the documentation, to reference
> locally without an internet connection?
>
> Thanks for your tips,
> Seth
>
> >
>

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



Re: Is there a place to download the documentation?

2009-03-11 Thread Ian Bambury
It's in the  GWT zip file you downloaded.
Ian

http://examples.roughian.com


2009/3/11 Seth Ladd 

>
> Hello,
>
> Is it possible to download a copy of the documentation, to reference
> locally without an internet connection?
>
> Thanks for your tips,
> Seth
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Guide to GWT theme CSS

2009-03-11 Thread Ian Bambury
The JavaDocs tell you what the style names are.
Some browsers will show you the HTML including style classes and what values
they are set to and where they came from.

GWT.log(widget.toString()); or Window.aler(idget.toString()); will also
display the HTML and the style classes.


Ian

http://examples.roughian.com


2009/3/11 james 

>
> Hi,
>
> I've been working on a custom theme, starting with a copy of one of
> the GWT defaults. Is there a guide to the CSS anywhere, or are you
> expected to just muddle around with it when you want to change colors,
> etc. For instance, most dialog borders appear to be comprised of
> images, but I can't figure out the top border. I've been weeding
> through the CSS and just haven't found the correct style specification
> or something, but it's becoming time consuming. Plus, it appears you
> can't view source on the file as the elements are JS-generated, so I
> can't see what style is applied to the elements anyway, hence the CSS
> hunting.
>
> Thanks
> James
> >
>

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



Is there a place to download the documentation?

2009-03-11 Thread Seth Ladd

Hello,

Is it possible to download a copy of the documentation, to reference
locally without an internet connection?

Thanks for your tips,
Seth

--~--~-~--~~~---~--~~
You received 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: dialog frames not displayed correctly in IE 7 when html location changed

2009-03-11 Thread nkatl

Did you find a solution?  We are experiencing the same problem on our
project.



On Feb 16, 8:10 am, whito  wrote:
> Hi everyone,
>
> I have a problem with changing the location of application html file.
> I want to have a custom directory layout in my web application,
> something like this:
> - html files directly under my web application root directory (eg.
> \main.html --> application entry point, loads
> nocache.js)
> - all gwt compiler generated files under "gwt-files" directory in web
> app root (so all *.cache.html, nocache.js, images, etc. go under
> \gwt-files\ with no further subdirectires, so basically
> I just rename the application directory from "mypackage.myapplication"
> to "gwt-files")
>
> So the layout is the following:
> \main.html
> \gwt-files\*.cache.html
> \gwt-files\*.cache.png
> \gwt-files\*.nocache.js
> \gwt-files\gwt\standard\standard*.css
> \gwt-files\gwt\standard\images\*.png
> \gwt-files\gwt\standard\images\ie6\*.png
>
> I followed the steps in GWT 
> FAQ:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&s=goog...
>
> The problem is that if I move the html page that contains my GWT
> application to the WEB_APP_ROOT, IE7 fails to displaydialogframes
> correcly. The upper left corner and the right side images of thedialogframe 
> are missing. In the application html I load the
> application like this:
>    
>
> I'm sure that it finds the images referenced in the css, because the
> buttons,dialogtitle and some parts of thedialogframe have the
> proper backgroud image, only some part of the frame is missing,
> although those are located in the same file as other parts of the
> frame, in corner.png and vborder.png.
>
> If I put the application html (main.html) into gwt-files as well and
> load the application with
>     src=".nocache.js">
> then the dialogs display correctly.
>
> With Firefox, it works well both cases. What am I doing wrong? I do
> not use any special js, browser specific code, I can even reproduce
> the problem with the default application generated by
> applicationCreator script.

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

2009-03-11 Thread loott

Hello,

I've being using WMS with GWT using openlayers. It has an integration
with gwt: http://sourceforge.net/projects/gwt-openlayers.
But I recommend you to look the openlayers simplest examples and use
them from GWT with JSNI. It  will be quicker for you.

If you prefer to use the plugin, there's a tutorial to use GWT +
openlayers + geoserver here:
http://geoserver.org/display/GEOSDOC/Google+Web+Toolkit+(GWT),+OpenLayers+and+GeoServer.

It's a bit old and I think it won't compile with newer versions of
GWT, so if you want to follow the tutorial you'll got to get the
latest version from the plugin from CVS and build it yourself.

Bye



On Mar 10, 2:13 pm, hanoi  wrote:
> Hi! Does anybody have experience about WMS maps visualization using
> GWT?
> Thanks in advance

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



Guide to GWT theme CSS

2009-03-11 Thread james

Hi,

I've been working on a custom theme, starting with a copy of one of
the GWT defaults. Is there a guide to the CSS anywhere, or are you
expected to just muddle around with it when you want to change colors,
etc. For instance, most dialog borders appear to be comprised of
images, but I can't figure out the top border. I've been weeding
through the CSS and just haven't found the correct style specification
or something, but it's becoming time consuming. Plus, it appears you
can't view source on the file as the elements are JS-generated, so I
can't see what style is applied to the elements anyway, hence the CSS
hunting.

Thanks
James
--~--~-~--~~~---~--~~
You received 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 retrieve suggest box active item?

2009-03-11 Thread alex

You can also add a listener by using SuggestBox.addEventHandler
(handler). Events are received through handler's (interface
SuggestionHandler) method onSuggestionSelected
--~--~-~--~~~---~--~~
You received 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: More Than 2 Entry point problem

2009-03-11 Thread alex

1. Do you have 1 or 2 .gwt.xml config files?
2. What is the structure of your source directory. I mean, do you have
something like:
a.b.app1
a.b.app1.client
a.b.app2
a.b.app2.client

OR
a.b.app.client (all files are under 'client' directory)
3. How did you code the 'transfer' from login to main app?

--~--~-~--~~~---~--~~
You received 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: Using java.io.File within a GWT unit test

2009-03-11 Thread alex

You simply can't do that, hosted mode or not.

> >          [ERROR] Line 23: No source code is available for type
> > java.io.FileReader; did you forget to inherit a required module?

java.io.*, java.net.*, java.util.concurrent.*, etc are packages that
cannot be used within GWT's client side code.

However, if you want to read a file (AFAIK the limitation is: not from
disk, but from a given URL) you can use the RequestBuilder class, like
this:
http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html

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



[ANN] Gilead 1.2.2

2009-03-11 Thread noon

Gilead library permits you to send Persistent entities (and especially
the partially loaded ones) to the GWT  client side without pain.

This release is a maintenance one, fixing half a dozen bugs, and
providing many improvements (see release notes for details).

A particular work was made on improving clone performances.

Also note that hibernate-jpa-util have been now merged with hibernate-
util JAR, and some integration classes for JBoss and Spring are now
provided.

Hope this helps !
Bruno

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



first child of VerticalPanel doesn't get mouse-events

2009-03-11 Thread Michael

Hi there,

I'm new to this GWT stuff, and am trying to create a cascading
calendar along the lines of a menu with child menus.

So far I've knocked the following together, but the first child of the
VerticalPanel does not get any of mouse-events. If you uncomment the
line below so that there is a "dummy" first-child Widget, the mouse-
listener fires.

---
public class CalendarWidget extends PopupPanel {

private DateTimeFormat yearValue = DateTimeFormat.getFormat("");
private String[] months = { "Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Oct", "Nov", "Dec" };

private Panel debugPanel;

public CalendarWidget(Date startDate, Date endDate) {
super(true, false);
int startYear = Integer.parseInt(yearValue.format(startDate));
int endYear = Integer.parseInt(yearValue.format(endDate));

int size = (endYear - startYear) + 1;
VerticalPanel yearPanel = new VerticalPanel();
add(yearPanel);
//  yearPanel.add(new Label("1st child"));
MouseListener yearListener = new CalendarMouseListener();

for (int idx = 0; idx < size; idx++) {
Label yearLabel = new Label(Integer.toString(startYear 
+ idx));
yearLabel.addMouseListener(yearListener);

Image image = new 
Image("/velocity/images/email_lbl.gif");
image.addMouseListener(yearListener);

HorizontalPanel labelPanel = new HorizontalPanel();
labelPanel.add(yearLabel);
labelPanel.add(image);
yearPanel.add(labelPanel);

}
debugPanel = new VerticalPanel();
RootPanel.get().add(debugPanel);
}

class CalendarMouseListener extends MouseListenerAdapter {

@Override
public void onMouseEnter(Widget sender) {
debugPanel.add(new InlineLabel("mouse-enter"));
}

@Override
public void onMouseLeave(Widget sender) {
debugPanel.add(new InlineLabel("mouse-leave"));
}

@Override
public void onMouseUp(Widget sender, int x, int y) {
debugPanel.add(new InlineLabel("mouse-up:" + x +"," + 
y));
}
}
}


An explanation as to what's happening would be gratefully received, as
would an example of the correct pattern to follow to do this as
elegantly as possible.

Best wishes,

Michael

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



embedded flash not displaying is IE7 on secured url but works fine when viewed with unsecured url

2009-03-11 Thread loveleen....@gmail.com

Hi,
Im using an embedded flash on a popup, the flash works fine if
viewed on firefox or with unsecured url but doesnt show when viewed
with secured url. Is it a general problem with IE?

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

2009-03-11 Thread mr.jan.ko...@gmail.com

Hi,
I have found this interesting link.
http://markmail.org/message/2xknhzjgmxm6xo5z#query:gwt%20video%20player+page:1+mid:njlberyy2yztait4+state:results

may be it can halp you :-)

On Jan 27, 8:03 am, GWBasic  wrote:
> There are somevideotags that you can programmatically control
> through JavaScript / GWT.  (I think it's the object tag, but you'll
> need to do your own research.)
>
> Personally, when I did something similar, I ended up using an embedded
> Flash object.  It's much more flexible with regard to events.
>
> On Jan 24, 2:27 am, Venkat  wrote:
>
> > Hi All,
>
> >  Is it possible to create avideoplayerby not embedding external
> >player. if its not possible can any one guide me how to integrate Java
> > script  playerint o GWT?
>
> > Thanks & 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
-~--~~~~--~~--~--~---



ImageBundle problem

2009-03-11 Thread javacup

Hi,

I'm new to using GWT. So I need your help.

I'm trying to add an image to a panel from one of the examples in the
tutorial.

I'm getting "[ERROR] Line 31: No source code is available for type
com.gs.images.GsImageBundle; did you forget to inherit a required
module?"

gwt version: 1.5.3 for mac.

public interface GsImageBundle extends ImageBundle {

public static final GsImageBundle INSTANCE = (GsImageBundle)
GWT.create(GsImageBundle.class);

AbstractImagePrototype logo98x40();

}

in onModuleLoad method
..

//get Image Bundle
GsImageBundle gsImageBundle = GsImageBundle.INSTANCE
.

panel.add(gsImageBundle.logo98x40().createImage());


.

gives me an error when I run the app..



[ERROR] Line 31: No source code is available for type
com.gs.images.GsImageBundle; did you forget to inherit a required
module?


Some help here will 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
-~--~~~~--~~--~--~---



How to debug IE6 crash

2009-03-11 Thread Austen

Hi,

I have a problem with IE6 crashing when using my app.
The app works fine in IE7/FF3/Chrome etc.

I'm attempting to use MS script debugger with no luck. The error isn't
caught by script debugger (or maybe it is, but it crashes before I can
view it) and when I try and step line by line IE6 still crashes before
I get to see anything interesting.

The problem is, how do I find the problem?!

Anyone got an idea on how to proceed?

Thanks in advance

Austen

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



Button paddings in IE fix

2009-03-11 Thread georgopoulos.georg...@gmail.com

Hi,

Based on http://particletree.com/features/rediscovering-the-button-element/

adding in .gwt-Button CSS rules the line:

.gwt-Button {
  /* ie fix */
  overflow: visible;
}

will fix the extra paddings added by IE depending on the button's text
length, see:

[URL=http://www.picpanda.com/viewer.php?file=egooc02xfmbaezwiyjqc.jpg]
[IMG]http://www.picpanda.com/images/egooc02xfmbaezwiyjqc_thumb.jpg[/
IMG][/URL]

http://www.picpanda.com/viewer.php?file=egooc02xfmbaezwiyjqc.jpg

Kind Regards,
George.
--~--~-~--~~~---~--~~
You received 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 can i get a Dynamic Image

2009-03-11 Thread Darkflame

What your making is called a "Captcha"
Theres many about, and they are being broken all the time, so (for
once) it probably is a good idea to make your own one if possible.

What you want to do though is make it as hard as possible for software
to recognise what has to be entered into the field.
Normaly this is done by distorting an image file of the text to be
entered.
However, this probably isnt the best thing to attempt ver GWT, and
maybe a more elgant solution would be some kinda of other "human
test".

A good old bit of mathmatics purhapes?
Ask the user a silly but easy question like;

  "If there is 6 ducks and 7 pigs, how many animals in total?"

Only with random numbers.
You can make it more complex by adding dumy data too, by saying;
"If there is 6 ducks ,  7 pigs and 3 bikes, how many animals are
there?"

Unless a spammer specificly writes software to target your site, that
sort of techique should get you safe. (I think).



On Mar 11, 8:22 am, jagadesh  wrote:
> My Requirment is i developed a registration form page where i will
> show a dynamic image with some digits . so that the user will fill the
> field with digits [much like the yahoo or gmail authentication].so how
> can i do that gwt.
>
> my idea is i will use a horizontalPanel with a label in it.i will use
> random class to get the random digits and set them as text to the
> label on horizontalPanel.
>
> am i going in a right way?
> any more ideas
--~--~-~--~~~---~--~~
You received 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 retrieve suggest box active item?

2009-03-11 Thread Darkflame

SuggestBox.getText should work shouldnt it :?

On Mar 11, 3:32 pm, audiosport  wrote:
> Hi,
>
> When user selects a suggestion in gwt suggestion box and presses
> Enter, I have to retrieve the selected suggestion. I have a
> keyboardListener working so I can check when Enter is pressed. but how
> can I retrieve the active value from SuggestBox?
>
> tnx,
> Kaur
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



ImageBundleWithLookup

2009-03-11 Thread L Frohman
I need to use ImageBundle with access by the image name, like

myImageBundle.get(imageName);

Is there a way to do this (without writing a series of if statements), like
the ConstantsWithLookup extension of Constants?


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



Shouldn't everyone stop using GWT-Ext so we can get critical mass in a supported library?

2009-03-11 Thread tv

FWIW:

I'm looking at starting a GWT project using a widget library add-in.
Only after reading for some time did I realize there was some tension
between the team that created the Ext JS library and the team that
created the GWT-Ext library (that relies on Ext-JS).  So now there are
two alternatives it seems to me for those that want to carry on using
a widget library like this:

smartGWT (LGPL or commercial)

-or-

Ext-GWT  (GPL or commercial)

I don't have a bias in either one, except that it would be great if
there was a clear leader or at least if people stopped developing
expertise in GWT-Ext since it is essentially a project that is no
longer of interest to its creators.  I learn so much from other
people's questions on these topics - I would rather see everyone start
using a library that will continue to evolve, so we can start helping
one another.

Is there a better alternative out there?

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: Migrating to GWT 1.6 NoClassDefFoundError: org/apache/jasper/runtime/JspSourceDependent

2009-03-11 Thread Masto

Hi Vitali, thanks for you answer,

If you look at my first post, you see that my classpath contains the
path to the build of my other project.

/Users/thomas/Dev/Inv_WEB_v2/Inv_WEB_v2/Proj_3/build
/Users/thomas/Dev/Inv_WEB_v2/Inv_WEB_v2/Proj_2/build
/Users/thomas/Dev/Inv_WEB_v2/Inv_WEB_v2/Proj_1/build

But using that, JETTY cannot comile my JSPs. It cannot find some
classes I use in my JSPs unless i put the jars in the WEB-INF/lib

"Oh and gwt-dev-anything.jar should not go into your WEB-INF/lib."

I know that. But again, if i don't put this jar inside WEB-INF/lib,
The Hosted mode refuses again to compile my JSPs but this time because
it cannot find the class org/apache/jasper/runtime/JspSourceDependent
which is inside the gwt-dev-*.jar.

My JSPs are not integrated with GWT. I have one for the sign-up screen
and one for the sign-in screen. That's it. They use some classes from
my Proj_1, Proj_2 and Proj_3 (no GWT projects) and some Javascript
(prototype). That's it. They are plain old JSPs. No fancy stuff in
there. Currently, they are under my public path in my GWT project.

To reproduce the issue (or try to), create a JSP and see if it works
when you don't have the gwt-dev-*.jar inside your WEB-INF/lib. Your
JSP have to use a classe (just do import org.myCompany.myClass) from
another project to reflect my case



if i don't put all the jar files,

On Mar 11, 4:31 am, Vitali Lovich  wrote:
> Oh and gwt-dev-anything.jar should not go into your WEB-INF/lib.  That set
> of jars is strictly for HostedMode stuff & again - just add it to your
> classpath.  They are not for deployment.
>
> As for where to put the JSPs, that's a good question.  There's little
> documentation as of yet (since 1.6 still hasn't been released).  Also, I've
> never tried integrating JSPs with GWT (mainly because it seems antithetical
> to the whole premise of GWT.
>
> The JS libs, if I'm not mistaken, could be put into the war/module directory
> that gets created or just in the war directory itself - it's up to depending
> on how you specify the path (war/module is probably easier).
>
> On Wed, Mar 11, 2009 at 7:26 AM, Vitali Lovich  wrote:
> > You only need to put your server-side stuff into WEB-INF/lib and only when
> > you are deploying to your server (should be part of your ant script to build
> > your war).  Otherwise, just adding to the build path in Eclipse works great
> > (you don't even need jars - just add projects to your classpath).
>
> > On Tue, Mar 10, 2009 at 4:53 PM, Masto  wrote:
>
> >> Ok, i eventually managed to have everything works but i'm not happy.
>
> >> To make this work, i had to :
>
> >> - put gwt-dev.mac.jar inside my WEB-INF/lib so jetty can find the
> >> classes in case of a JSP. That sucks because i have an extra step
> >> (removing it) during my deployment to the prod server (which is what
> >> the new project structure was supposed to avoid)
>
> >> - generate the jar from my other projects (those my GWT-project depend
> >> on) and then copy them to the WEB-INF/lib which add a step before
> >> lunching the hosted mode. Generating all those  jars from my other
> >> project takes 1 minute 30 (lot of stuff to copy). So, it makes testing
> >> painfull.
>
> >> I'm not really sure with the new project layout where to put my JSP
> >> (that has nothing to do with GWT). In the war? Still in the public
> >> path of my GWT project (as before)? And what about some js lib (ext)?
>
> >> Cypal studio, which i used to use is totally broken with the 1.6. Even
> >> if it's not perfect, it's used to make my life a little bit easier. :-
> >> ( I wish the GWT team has some plan about providing some tools/
> >> plugins.
>
> >> On Mar 10, 1:14 pm, Masto  wrote:
> >> > I tried to put the gwt-dev-mac.jar (which should not be put, but it's
> >> > just to test). Now, i get a different error :
>
> >> > I installed recently Safari 4 BETA (just to let you know)
>
> >> > [...]
> >> > [java] On Mac OS X, ensure that you have Safari 3 installed.
>
> >> > BUILD FAILED
> >> > /Users/thomas/Dev/Inv_WEB_v2/myV2/build.xml:206: Java returned: 1
> >> >         at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
> >> >         at
> >> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
> >> > 288)
> >> >         at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> >> >         at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> > (DelegatingMethodAccessorImpl.java:25)
> >> >         at java.lang.reflect.Method.invoke(Method.java:585)
--~--~-~--~~~---~--~~
You received 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: Can't download GWT even older versions

2009-03-11 Thread Sumal Wijewardhana
Hi Sumit,

Downloading is starting and going till 5MB, after that its get stop. This
was happened several times. Any idea of this issue? But normally I download
software, movie even more than 1GB files.

Regards,
Sumal

On Tue, Mar 10, 2009 at 11:34 PM, Sumit Chandel wrote:

> Hi Sumal,
> What errors are you receiving when trying to download a GWT distribution?
> As far as I know, there shouldn't be anything stopping you from downloading
> a distro on our end.
>
> Regards,
> -Sumit Chandel
>
> On Mon, Mar 9, 2009 at 11:58 PM, suma...@gmail.com wrote:
>
>>
>> HI,
>>
>> I'm Sumal from Sri Lanka... I tried many times to download GWT even
>> older versions to download but can't. I'm using a DSL connection and
>> PIV PC. Regularary I'm downloading SW, Movies but get error messages
>> when downloading this. Please be kind enough to send the downloaded
>> GWT to my email address in below.
>>
>> great...@hotmail.com
>> copy to   suma...@gmail.com
>>
>>
>>
>
> >
>

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



Re: GWT 1.6 works on 64 bits?

2009-03-11 Thread Paul Robinson

Matías Costa wrote:
> On Sun, Feb 15, 2009 at 3:24 PM, anderson...@gmail.com
>   > wrote:
>
> We all want to know, GWT 1.6 works on 64 bits?
>
>
> I'm developing on gwt 1.5  with eclipse running on  java 1.6 64bits,
> with the gwt projects configured to run on java 1.5 32bits. I can
> debug in hosted mode perfectly. It's deployed on a tomcat 6 running
> java 1.6 64 without troubles.
>
Same here. I'm using ubuntu 8.10 64 bit. If you run a 32 bit JVM for
hosted mode, everything works.

Paul

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



Re: Swapping Panel

2009-03-11 Thread JF

Thank you sir, it works

On Mar 10, 5:10 pm, "levi.bracken"  wrote:
> Using a SimplePanel does what it sounds like you're trying to
> accomplish.   Don't call add(~), but .setWidget(otherPanel).   It
> handles the 'clear' for you as a SimplePanel can only contain one
> widget set in it at a time.
>
> On Mar 10, 3:56 pm, JF  wrote:
>
> > Hi,
>
> > i am wondering if the is a way tochangepanelat runtime with an
> > onlick event. Right now what i am doing is
> > mainPanel.clear()
> > mainPanel.add(otherPanel)
>
> > Cheers
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 works on 64 bits?

2009-03-11 Thread Matías Costa
On Sun, Feb 15, 2009 at 3:24 PM, anderson...@gmail.com <
anderson...@hotmail.com> wrote:

> We all want to know, GWT 1.6 works on 64 bits?
>

I'm developing on gwt 1.5  with eclipse running on  java 1.6 64bits, with
the gwt projects configured to run on java 1.5 32bits. I can debug in hosted
mode perfectly. It's deployed on a tomcat 6 running java 1.6 64 without
troubles.

In my understanding of GWT 1.6 OOPHM, you should be able to debug with
all-64bits and your normal firefox.

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

2009-03-11 Thread Shawn Pearce
On Wed, Mar 11, 2009 at 05:48, stumpy  wrote:

>
> Would it be reasonable to set a far future expiry date on a gwt
> nocache file if as part of the build process I rename it by adding a
> MD5 hash and update all html references to the file?


Yes, I think so.

You just need to make sure that when there is a new version of the GWT code
that the host HTML page will be expired, so clients can see what the new
name of the nocache file is.  In other words, you are shifting the need for
nocache from the $module.nocache.js to the host HTML page that is importing
it.

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



Re: rpc call with own datatype not working

2009-03-11 Thread Isaac Truett

You really have a module configuration issue more than a serialization
issue. Your Workspace class isn't part of a module.

You can read more about modules here:

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

You can also search for the error message you received ("No source
code...") and you'll find that this has been discussed here a number
of times already.

You basically have to do one of two things:

1. Move the Workspace class into a package that is part of an existing
module (e.g., com.foo.client).
2. Create a module that includes the Workspace class.

I'd go with #1, since the Workspace class as you posted it isn't very
well packaged to begin with.

Hope that helps.

- Isaac


On Wed, Mar 11, 2009 at 10:59 AM, George  wrote:
>
> Hi,
> i'm still having this serialization issue. It would be nice if someone
> could help me out, as I still don't get whats going wrong here.
> What is causing the error? Is it the fact that the serialized class is
> not in the same package as the service? Or am i missing one of the
> special Javadoc annotations (@gwt.typeArgs), of which i thought that i
> don't need them here.
>
> Please Help me out.
>
> Regards,
> George
>
> On Mar 5, 12:52 pm, George  wrote:
>> Hi,
>> when i try to run my app i get the following error:
>> Line 6: No source code is available for type CBWSNS.Workspace; did you
>> forget to inherit a required module?
>> for GetWorkspacesService.java
>>
>> Here short excerpts of the involved files:
>> GetWorkspacesService.java
>>
>> package com.example.client.workspaces;
>>
>> import com.google.gwt.user.client.rpc.RemoteService;
>>
>> public interface GetWorkspacesService extends RemoteService {
>>         CBWSNS.Workspace[] getWorkspaces();                    here
>>
>> }
>>
>> and Workspace.java
>>
>> package CBWSNS;
>>
>> import com.google.gwt.user.client.rpc.IsSerializable;
>>
>> public class Workspace  implements IsSerializable {
>>
>>     private java.lang.String name;
>>     private java.lang.String id;
>>
>>     public Workspace() {
>>     }
>>
>>     public Workspace(
>>            java.lang.String name,
>>            java.lang.String id) {
>>            this.name = name;
>>            this.id = id;
>>     }
>> + getters and setters for name and id
>>
>> Does the custom datatype have to be in the same package as the
>> service? Or what is the problem?
>>
>> Thanks in Advance
>> George
> >
>

--~--~-~--~~~---~--~~
You received 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 call with own datatype not working

2009-03-11 Thread George

Hi,
i'm still having this serialization issue. It would be nice if someone
could help me out, as I still don't get whats going wrong here.
What is causing the error? Is it the fact that the serialized class is
not in the same package as the service? Or am i missing one of the
special Javadoc annotations (@gwt.typeArgs), of which i thought that i
don't need them here.

Please Help me out.

Regards,
George

On Mar 5, 12:52 pm, George  wrote:
> Hi,
> when i try to run my app i get the following error:
> Line 6: No source code is available for type CBWSNS.Workspace; did you
> forget to inherit a required module?
> for GetWorkspacesService.java
>
> Here short excerpts of the involved files:
> GetWorkspacesService.java
>
> package com.example.client.workspaces;
>
> import com.google.gwt.user.client.rpc.RemoteService;
>
> public interface GetWorkspacesService extends RemoteService {
>         CBWSNS.Workspace[] getWorkspaces();                    here
>
> }
>
> and Workspace.java
>
> package CBWSNS;
>
> import com.google.gwt.user.client.rpc.IsSerializable;
>
> public class Workspace  implements IsSerializable {
>
>     private java.lang.String name;
>     private java.lang.String id;
>
>     public Workspace() {
>     }
>
>     public Workspace(
>            java.lang.String name,
>            java.lang.String id) {
>            this.name = name;
>            this.id = id;
>     }
> + getters and setters for name and id
>
> Does the custom datatype have to be in the same package as the
> service? Or what is the problem?
>
> Thanks in Advance
> George
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



More Than 2 Entry point problem

2009-03-11 Thread sunny

Hi all,

Hope someone can help me with this.

I have 2 entry points one for login screen and another is home page,In
host mode every thing is working fine but when i deployed in server
and also in compile/Browse it has some problem.
Login screen will get loaded properly when u enter usename and
password it will go to second entry point but it will display plain
html page with out any Widgets/Panels and i am not getting any error
message .
As i am beginer please help me it is very urgent .

Thanx in advance..
Sunny

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



Caching nocache

2009-03-11 Thread stumpy

Would it be reasonable to set a far future expiry date on a gwt
nocache file if as part of the build process I rename it by adding a
MD5 hash and update all html references to the file?

--~--~-~--~~~---~--~~
You received 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 retrieve suggest box active item?

2009-03-11 Thread audiosport


Hi,

When user selects a suggestion in gwt suggestion box and presses
Enter, I have to retrieve the selected suggestion. I have a
keyboardListener working so I can check when Enter is pressed. but how
can I retrieve the active value from SuggestBox?

tnx,
Kaur
--~--~-~--~~~---~--~~
You received 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: Need help with debugging

2009-03-11 Thread Sean

Sounds like your Eclipse Debug profile is messed up. When you hover
over Debug, make sure it says "Debug ". IF that's
correct, don't click the button, but click the arrow next to it and
hit "Open Debug Dialog" and make sure that all the parameters in there
are correct, Project Name, Main Class, Arguments...etc.,

I would also double check your project creation, the fact that you
can't import projects using "Existing Projects into Workspace" is
worrisome. Here's an example of my commandline creation that lets me
import the projects into workspace option:

C:\Workspace_spl\Test>C:\gwt\projectCreator -eclipse Test
Created directory C:\Workspace_spl\Test\src
Created directory C:\Workspace_spl\Test\test
Created file C:\Workspace_spl\Test\.project
Created file C:\Workspace_spl\Test\.classpath

C:\Workspace_spl\Test>C:\gwt\applicationCreator -eclipse Test
com.sean.client.TestEntry
Created directory C:\Workspace_spl\Test\src\com\sean
Created directory C:\Workspace_spl\Test\src\com\sean\client
Created directory C:\Workspace_spl\Test\src\com\sean\public
Created file C:\Workspace_spl\Test\src\com\sean\TestEntry.gwt.xml
Created file C:\Workspace_spl\Test\src\com\sean\public\TestEntry.html
Created file C:\Workspace_spl\Test\src\com\sean\public\TestEntry.css
Created file C:\Workspace_spl\Test\src\com\sean\client\TestEntry.java
Created file C:\Workspace_spl\Test\TestEntry.launch
Created file C:\Workspace_spl\Test\TestEntry-shell.cmd
Created file C:\Workspace_spl\Test\TestEntry-compile.cmd

On Mar 10, 11:50 pm, kerwei  wrote:
> Hi guys, I am rather new to programming. Will appreciate it if you
> guys can help explain what's wrong here in detail.
>
> I am using GWT with NetBeans IDE 6.5. Started with the StockWatcher
> tutorial and below's a history of what I did.
>
> 1. In the Windows command-line, I created the directories, files,
> scripts and Eclipse files as indicated.
> 2. I proceeded to import the project using the "Import Project
> ignoring the Project Dependencies" option since I can't use "Import
> Projects from Workspace". The error given when the latter is selected
> is that the path does not contain a regular workspace.
> 3. I could still proceed with the application building and testing the
> application in hosted mode.
> 4.However, I'm stuck at Step 6: Debugging a GWT application. Each time
> i try to debug the source code after i've inserted the line
> breakpoint, i get the following message: Class "xx.StockWatcher" does
> not have a main method.
> 5. Thinking that probably installing a GWT plugin into NetBeans might
> help, i downloaded and installed GWT4NB version 2.5.0 
> fromhttp://gwt4nb.dev.java.net/
>
> At the present I'm at Point number 5 and I'm not quite sure how to
> proceed to get my debugging to work. Please advise.
> Thanks in advance!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Synchornous GWT, how can i do that

2009-03-11 Thread jmpeace

Please take a took to this code
I have written this code to be able to make RPC calls one after
another:

(you can use 'result' value to know if you can continue to next call)

/*ONE*/CustomWaitingOperation.execute(new
CustomWaitingOperation.ResultCallback(){
public void onResult(boolean result, Throwable caught) {
if(result)
{

/*TWO*/CustomWaitingOperation.execute(new
CustomWaitingOperation.ResultCallback(){
public void onResult(boolean result, Throwable 
caught) {
if(result)
{


}
}
});

}
}
});

CustomWitingOperation.java

public class CustomWaitingOperation {

/*Fields*/

public interface ResultCallback {
void onResult(boolean result,Throwable caught);
  }

public CustomWaitingOperation(/*Parameters Here*/) {
/*Fields=Parameters*/
}

public void onResponse(boolean result,Throwable caught) {
return;
}

public static void execute(/*Parameters Here*/,final ResultCallback
resultCallback){

final AppServicesAsync serviceProxy = 
AppParameters.getServiceProxy
();

final CustomWaitingOperation wait = new CustomWaitingOperation(/
*Parameters Here*/){

  @Override
  public void onResponse(boolean result,Throwable caught) {
resultCallback.onResult(result, caught);
  }
};

AsyncCallback callback = new 
AsyncCallback()
{

public void onFailure(Throwable caught) {
GWT.log("RPC error!", caught);
wait.onResponse(false, caught);//do not 
continue
}

public void onSuccess(final TempObject result) {
wait.onResponse(true, null);//continue
}

}

serviceProxy.executeCustomOperation(/*RPC call arguments*/,
callback);


}


--~--~-~--~~~---~--~~
You received 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 call a servlet from GWT

2009-03-11 Thread Sean

If you are calling a new servlet you are just creating you may want to
check out GWT RPC's as well.

On Mar 11, 8:20 am, shajeer kt  wrote:
> Dear all,
>
>   How to call a servlet from GWT code .
>   Along with calling servlet i want to pass some parameters with it..
>
>   How is it possible.
>
>   Is it the wrong forum to ask this question .
>
>   Any help would be appreciaated,
>
> --
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Firefox js bug.

2009-03-11 Thread Michał Sędzielewski

Hello,

I have a javascript error only in FF (2 and 3)

Message from Firebug console:

row.children is undefined
com_google_gwt_user_client_ui_DecoratorPanel_
$DecoratorPanel__Lcom_google_gwt_user_client_ui_DecoratorPanel_2_3Ljava_lang_String_2I
(undefined, ["top", "middle", "bottom" 0=top 1=middle 2=bottom], 1)

com_google_gwt_user_client_ui_DecoratorPanel_
$DecoratorPanel__Lcom_google_gwt_user_client_ui_DecoratorPanel_2
(undefined)

kolektor_zdngwt_client_Layout_$Layout__Lkolektor_zdngwt_client_Layout_2
((null handle) java_lang_Object_typeId$=284)

kolektor_zdngwt_client_ZDN_$ZDN__Lkolektor_zdngwt_client_ZDN_2
(kolektor.zdngwt.client@1 $H=1 java_lang_Object_typeId$=0)

init()
gwtOnLoad(undefined, "kolektor.zdngwt.ZDN", "http://localhost:/
kolektor.zdngwt.ZDN/")

maybeStartModule()
onScriptLoad()()


what can be the reason of it?


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



Re: GWT OpenSocial Binding - usage problem

2009-03-11 Thread Eric Ayers
Oops, there was a typo when the URL was created:

http://gwt-google-apis.googlecode.com/svn/changes/haeberling/opensocial-inital/
On Wed, Mar 11, 2009 at 9:24 AM, Davide Cerbo  wrote:

>
> Hi the url:
> http://gwt-google-apis.googlecode.com/svn/changes/haeberling/opensocial-initial
> return a 404 error :(
>
> 2009/3/11 Eric Ayers :
> > If you are talking about the gwt-opensocial hosted at
> >
> http://gwt-google-apis.googlecode.com/svn/changes/haeberling/opensocial-initial
> > Then you also need to inherit com.google.gwt.opensocial.OpenSocial in
> your
> > GWT module.
> > Keep in mind that this is a pre-release version of the code.
> > On Tue, Mar 10, 2009 at 5:51 PM, Arto  wrote:
> >>
> >> Hi,
> >> I'm getting problem when trying to use opensocial
> >> I created gadget with GWT using  >> name='com.google.gwt.gadgets.Gadgets' /> and it works, but as far as I
> >> add implements NeedsOpenSocial and public void initializeFeature
> >> (OpenSocialFeature feature){ } empty method the compilation fails..
> >> here is output:
> >> ---
> >> a...@arto-laptop:~/workspace/HelloGadget$ ./HelloGadget-compile
> >> Removing units with errors
> >>   [ERROR] Errors in 'file:/home/arto/workspace/HelloGadget/src/com/
> >> agiletwo/gadget/gwt/client/HelloGadget.java'
> >>  [ERROR] Line 30: No source code is available for type
> >> com.google.gwt.opensocial.client.NeedsOpenSocial; did you forget to
> >> inherit a required module?
> >>  [ERROR] Line 31: No source code is available for type
> >> com.google.gwt.opensocial.client.OpenSocialFeature; did you forget to
> >> inherit a required module?
> >> Compiling module com.agiletwo.gadget.gwt.HelloGadget
> >> Computing all possible rebind results for
> >> 'com.agiletwo.gadget.gwt.client.HelloGadget'
> >>   Rebinding com.agiletwo.gadget.gwt.client.HelloGadget
> >>  Checking rule  >> class='com.google.gwt.gadgets.rebind.UserPreferencesGenerator'/>
> >> [ERROR] Unable to find type
> >> 'com.agiletwo.gadget.gwt.client.HelloGadget'
> >>[ERROR] Hint: Previous compiler errors may have made this
> >> type unavailable
> >>[ERROR] Hint: Check the inheritance chain from your
> >> module; it may not be inheriting a required module or a module may not
> >> be adding its source path entries properly
> >> [ERROR] Build failed
> >> 
> >> i builded gwt-opensocial.jar by checking out source from svn and
> >> running ANT
> >> Please tell me how can I fix the issue
> >>
> >>
> >
> >
> >
> > --
> > Eric Z. Ayers - GWT Team - Atlanta, GA USA
> > http://code.google.com/webtoolkit/
> >
> > >
> >
>
>
>
> --
> Davide Cerbo
> ---
> http://www.pronetics.it
> http://www.sourcesense.com
> http://www.jesty.it
> http://jugsalerno.wordpress.com
> ---
>
> >
>


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

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



Re: GWT OpenSocial Binding - usage problem

2009-03-11 Thread Davide Cerbo

Hi the url: 
http://gwt-google-apis.googlecode.com/svn/changes/haeberling/opensocial-initial
return a 404 error :(

2009/3/11 Eric Ayers :
> If you are talking about the gwt-opensocial hosted at
> http://gwt-google-apis.googlecode.com/svn/changes/haeberling/opensocial-initial
> Then you also need to inherit com.google.gwt.opensocial.OpenSocial in your
> GWT module.
> Keep in mind that this is a pre-release version of the code.
> On Tue, Mar 10, 2009 at 5:51 PM, Arto  wrote:
>>
>> Hi,
>> I'm getting problem when trying to use opensocial
>> I created gadget with GWT using > name='com.google.gwt.gadgets.Gadgets' /> and it works, but as far as I
>> add implements NeedsOpenSocial and public void initializeFeature
>> (OpenSocialFeature feature){ } empty method the compilation fails..
>> here is output:
>> ---
>> a...@arto-laptop:~/workspace/HelloGadget$ ./HelloGadget-compile
>> Removing units with errors
>>   [ERROR] Errors in 'file:/home/arto/workspace/HelloGadget/src/com/
>> agiletwo/gadget/gwt/client/HelloGadget.java'
>>      [ERROR] Line 30: No source code is available for type
>> com.google.gwt.opensocial.client.NeedsOpenSocial; did you forget to
>> inherit a required module?
>>      [ERROR] Line 31: No source code is available for type
>> com.google.gwt.opensocial.client.OpenSocialFeature; did you forget to
>> inherit a required module?
>> Compiling module com.agiletwo.gadget.gwt.HelloGadget
>> Computing all possible rebind results for
>> 'com.agiletwo.gadget.gwt.client.HelloGadget'
>>   Rebinding com.agiletwo.gadget.gwt.client.HelloGadget
>>      Checking rule > class='com.google.gwt.gadgets.rebind.UserPreferencesGenerator'/>
>>         [ERROR] Unable to find type
>> 'com.agiletwo.gadget.gwt.client.HelloGadget'
>>            [ERROR] Hint: Previous compiler errors may have made this
>> type unavailable
>>            [ERROR] Hint: Check the inheritance chain from your
>> module; it may not be inheriting a required module or a module may not
>> be adding its source path entries properly
>> [ERROR] Build failed
>> 
>> i builded gwt-opensocial.jar by checking out source from svn and
>> running ANT
>> Please tell me how can I fix the issue
>>
>>
>
>
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USA
> http://code.google.com/webtoolkit/
>
> >
>



-- 
Davide Cerbo
---
http://www.pronetics.it
http://www.sourcesense.com
http://www.jesty.it
http://jugsalerno.wordpress.com
---

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



Re: GWT OpenSocial Binding - usage problem

2009-03-11 Thread Eric Ayers
If you are talking about the gwt-opensocial hosted at

http://gwt-google-apis.googlecode.com/svn/changes/haeberling/opensocial-initial

Then you also need to inherit com.google.gwt.opensocial.OpenSocial in your
GWT module.

Keep in mind that this is a pre-release version of the code.

On Tue, Mar 10, 2009 at 5:51 PM, Arto  wrote:

>
> Hi,
> I'm getting problem when trying to use opensocial
> I created gadget with GWT using  name='com.google.gwt.gadgets.Gadgets' /> and it works, but as far as I
> add implements NeedsOpenSocial and public void initializeFeature
> (OpenSocialFeature feature){ } empty method the compilation fails..
> here is output:
> ---
> a...@arto-laptop:~/workspace/HelloGadget$ ./HelloGadget-compile
> Removing units with errors
>   [ERROR] Errors in 'file:/home/arto/workspace/HelloGadget/src/com/
> agiletwo/gadget/gwt/client/HelloGadget.java'
>  [ERROR] Line 30: No source code is available for type
> com.google.gwt.opensocial.client.NeedsOpenSocial; did you forget to
> inherit a required module?
>  [ERROR] Line 31: No source code is available for type
> com.google.gwt.opensocial.client.OpenSocialFeature; did you forget to
> inherit a required module?
> Compiling module com.agiletwo.gadget.gwt.HelloGadget
> Computing all possible rebind results for
> 'com.agiletwo.gadget.gwt.client.HelloGadget'
>   Rebinding com.agiletwo.gadget.gwt.client.HelloGadget
>  Checking rule  class='com.google.gwt.gadgets.rebind.UserPreferencesGenerator'/>
> [ERROR] Unable to find type
> 'com.agiletwo.gadget.gwt.client.HelloGadget'
>[ERROR] Hint: Previous compiler errors may have made this
> type unavailable
>[ERROR] Hint: Check the inheritance chain from your
> module; it may not be inheriting a required module or a module may not
> be adding its source path entries properly
> [ERROR] Build failed
> 
> i builded gwt-opensocial.jar by checking out source from svn and
> running ANT
> Please tell me how can I fix the issue
>
> >
>


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

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



Re: DATEBOX & HOURS RESETTED

2009-03-11 Thread Arthur Kalmenson

I think the easiest solution is to put the time in a TextBox beside
it. If you want something fancier, check out the Spinner in the
incubator: 
http://code.google.com/docreader/#p=google-web-toolkit-incubator&s=google-web-toolkit-incubator&t=Spinner.
One of the examples is picking a date and time.

--
Arthur Kalmenson



On Wed, Mar 4, 2009 at 6:24 PM, bond  wrote:
>
> Hi,
> I've a question about DateBox widget. If you set a Format as this: "dd/
> MM/ HH:mm" on DateBox, when you are selecting a Date, the hour &
> minutes are resetted.
>
> So in your dateBox you have a date as 04/03/2009 15:30 and then you're
> focusing on the textbox, the DatePicker is displayed.But when you
> select a date (ex. 10/03/2009) the hours&minutes are resetted and your
> date will be 10/03/2009 00:00.
>
> Anyone can suggest a solution?
>
> This one is not very good because the date is first setted on the
> textbox and then is rewritten:
>
> txtDataCompilazione.getDatePicker().addValueChangeHandler(new
> ValueChangeHandler() {
>
>           �...@override
>            public void onValueChange(ValueChangeEvent event) {
>                Date ok = event.getValue();
>                ok.setHours(dataCompilazione.getHours());
>                ok.setMinutes(dataCompilazione.getMinutes());
>                txtDataCompilazione.setValue(ok,false);
>            }
>        });
>        txtDataCompilazione.getTextBox().addBlurHandler(new BlurHandler
> () {
>
>           �...@override
>            public void onBlur(BlurEvent event) {
>                try {
>                    dataCompilazione = DateTimeFormat.getFormat("dd/MM/
>  HH:mm").parseStrict(txtDataCompilazione.getTextBox().getText());
>
>                } catch (Exception ex) {
>                }
>            }
>        });
>
> Thanks
>
> Regards
> >
>

--~--~-~--~~~---~--~~
You received 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 change url address

2009-03-11 Thread denis56

his again,

is it also possible to place generated javascript and prc files in
subfolders?
so instead of having everything lying in the same directory, it would
make sense to have

html pages
-- css subfolder
-- js subfolder
-- images subfolder

thanks
On 11 Mrz., 01:06, Ian Bambury  wrote:
> Once the application is compiled, everything you need to run it is in
> the 'com.test.MyTestApplication'
> folder. You can copy all those files anywhere you like. You can rename the
> index file (or here, in your case, test.html) to anything you like and it
> will still all work.
> If you want to rename the directory that GWT actually compiles to, then I'm
> not sure, and it will all change when you move to 1.6, so it may not be
> worth the time to find out.
>
> The
>
>  type="text/javascript" src="com.test.MyTestApplication.nocache.js">
>
> is referring to a file inside the output folder. I can't see any reason to
> rename it since the users will never see it.
>
> Ian
>
> http://examples.roughian.com
>
> 2009/3/10 denis56 
>
>
>
> > thanks
>
> > do you mean renaming the folder generated under www, that is www/
> > com.test.MyTestApplication, into something meaningful (example,
> > "screen")
>
> > shouldn't in that case the reference on test.html page
> >  > src="com.test.MyTestApplication.nocache.js">
> > be also updated to
> > 
> > ?
>
> > that is laborious after the code is generated. Or am I getting it
> > wrong?
>
> > On 11 Mrz., 00:15, Ian Bambury  wrote:
> > > Except in hosted mode (where you probably don't care) just rename
> > > com.test.MyTestApplication to anything you want, or copy its content to
> > > wherever you want
> > > Ian
>
> > >http://examples.roughian.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT RPC Security Concern

2009-03-11 Thread Adligo

This is true until you start passing rpc objects that describe what
they are going to do on the server.

For instance a rpc service like;
getAnimal(String name)

If the vet should be the only person able to get the 'Bob Cat' and
'Cobra' but the nurse can get the 'Dog' and 'Cat'...

For methods like this you need to add isUserInRole checks inside your
rpc servlet (in addition to you http filter).  You can either check in
the rpc method or
use something like this class, to put all of this type of security
code in a common place;

http://cvs.adligo.org/viewvc/adi_gwt_rpc_servlet/src/org/adligo/i/adi/server/rpc/AdiControllerServlet.java?view=markup

Cheers,
Scott

On Mar 10, 2:31 pm, DavidPShaw  wrote:
> Doing security in a Servlet Filter is the way to go.  It could be
> Acegi or something homegrown, but as long as you filter on security
> before you chain to the servlet, you're good to go.
>
> On Mar 6, 8:25 pm, lineman78  wrote:
>
> > Generally there should not be any problems with you using SSL in your
> > application.  That being said, there are a few ways you could have got
> > yourself into trouble when trying to switch over.
>
> > 1) You did not use GWT.getModuleBaseUrl when creating your RPC classes
> > or making local references.
> > 2) If you are using flash that is doing data/object requests locally
> > it sometimes has issues with SSL.
> > 3) You may need to add aliases to your SSL cert as it was generated
> > with what you installed the app server with.
>
> > Good luck with your ventures into the security world :)
>
> > On Mar 6, 1:30 pm, erincarikan  wrote:
>
> > > I am planning to make it a ssl application, so that nobody can
> > > eavesdrop, malform login data, As far as I know, I don't need to
> > > modify anything(code) in gwt project to accomplish that, right? I
> > > believe that web server should be handling all those details. Is there
> > > any drawbacks about using ssl? Also in addition to that Acegi seems
> > > like a good way to go. I just read an article about setting that up,
> > > it seems a little bit complicated, but I believe after painful set up
> > > I'll be able to add another page to my resume:)
>
> > > On Mar 6, 2:25 pm, lineman78  wrote:
>
> > > > Yes, this approach can work, but there is one small drawback.  If you
> > > > aren't planning on making it a ssl application you will have to use
> > > > ssl for the rpc/json authentication request.  This is so that the
> > > > packets cannot be intercepted on unsecure wireless.  I believe
> > > > container managed security has this built in.  There are some
> > > > approaches that work around this, such as md5 hashing on the client
> > > > side before sending, all make it more difficult, but none are as
> > > > secure as ssl.  The drawback to container managed security is that the
> > > > default authenticator is not friendly and ugly.  You would have to
> > > > deploy an unauthenticated jsp or jsf to do pretty authentication that
> > > > would forward you once authenticated.  You might also consider LDAP,
> > > > CAS or Open SSO as other forms of authentication that have a lot of
> > > > infrastructure provided.
>
> > > > On Mar 6, 11:56 am, erincarikan  wrote:
>
> > > > > Thanks for the reply, Frankly I never used container managed security
> > > > > before, but now I am reading about it. Another approach I was thinking
> > > > > about was checking encrypted passwords in servlet from the db,  I
> > > > > found something like this in the wiki which looks like a simple and
> > > > > good approach to me:
>
> > > > >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
>
> > > > > On Mar 6, 1:20 pm, lineman78  wrote:
>
> > > > > > I believe that if you use container managed security for your entire
> > > > > > GWT app it will require authentication to access the servlets too.  
> > > > > > In
> > > > > > fact I just tested it and that is correct(FROM ACCESS LOG:
> > > > > > '"127.0.0.1" "matt" "06/Mar/2009:18:17:36 +" "POST /SEESuite/
> > > > > > rssParser HTTP/1.1" 200 3082' notice this request is authenticated 
> > > > > > as
> > > > > > the user "matt").  We are doing this Unfortunately if you are 
> > > > > > handling
> > > > > > your own security within your module, you will have to somehow 
> > > > > > handle
> > > > > > your own security in the servlets also, which in turn creates a lot 
> > > > > > of
> > > > > > security issues.  I believe if you call the application with SSL the
> > > > > > RPC calls will also use SSL, but I have not tested this.  Also, I 
> > > > > > know
> > > > > > RPC has a lot of built in security and error checking that would 
> > > > > > make
> > > > > > it difficult for the person trying to access the servlets directly
> > > > > > without intemate knowledge of the RPC package structure because I 
> > > > > > know
> > > > > > every once in a while I get traces in my logs that say "expected xx
> > > > > > bits and recieved xx, aborting rpc call."
>
> > > > > > On Mar 6, 9:22 

Re: Tree Performance

2009-03-11 Thread gregor

yeah, I thought of that Vitali, but I thought what FastTree did was to
pre-load the entire TreeItem dataset (i.e. fetch all data in one RPC
operation) but then only actually draw visible tree layers, thus
cutting down repeated RPC fetches on lazy tree node open but still
only draw what is required on open clicks.

Which is no good for this situation because GWTFan has a flat tree
structure, i.e. all 1000 items in same branch?

On Mar 11, 12:18 pm, Vitali Lovich  wrote:
> FastTree already takes care of all of this, so I'd recommend using it.
>
> http://collectionofdemos.appspot.com/demo/com.google.gwt.demos.fasttr...
>
> On Wed, Mar 11, 2009 at 7:37 AM, gregor wrote:
>
>
>
> > I have never tried using StackPanel like that, but I did look at it's
> > code once to enhance it and I think it is at least as "complicated" as
> > Tree (in the sense it has many HTML "boxes") so I would guess it would
> > probably be if anything worse than Tree in your situation.
>
> > The classic way to deal with large trees is to lazy load them by
> > layer, but obviously that is not an option for you as you only have
> > one layer.
>
> > I think you'll have to figure out a creative way to design a widget to
> > deal with this edge case (1000 items). It's a bit difficult to suggest
> > anything because we don't know either the contents of the tree nodes
> > (what these 100 items are) or how they are used (presume user selects
> > them?)
>
> > One idea that that immediately occurred to me was to use
> > DisclosurePanels. This has a right pointing triangle when closed, and
> > when clicked reveals the contents, rather like clicking the + on a
> > Tree. I am assuming also that the problem is purely rendering and that
> > there is no time problem fetching the 1000 items over RPC. You could
> > make a Composite widget like so:
>
> > Choose a container, could be FlowPanel, VerticalPanel etc
> > Keep a list of the items as a member of this class, and a cursor to
> > keep an index against the list
> > Set a maximum number to be rendered at any one time, say a few more
> > than your happy days case of <=10
> > Iterate through the list making DisclosurePanels and adding them to
> > the container as you go
> > If the list size > your chosen max, add a button bar to the bottom
> > giving forward/back options
>
> > Etc, I'm sure you get the idea. I think rendering 10 - 15
> > DiclosurePanels at a time will probably be quick enough.
>
> > On Mar 11, 5:49 am, GWTFan  wrote:
> > > I read the threadhttp://
> > groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
> > > on tree performance.
>
> > > We are having a similar issue with the tree, where most of the cases
> > > it would have 1-10 items. However rarely it would have 500-1000 items,
> > > which slows down IE badly.
>
> > > Ours is just one level hierarchy and I don't really need tree. Do you
> > > think using a stack panel would be faster than tree?
--~--~-~--~~~---~--~~
You received 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: DATEBOX & HOURS RESETTED

2009-03-11 Thread bond

any ideas?

Thanks

On 4 Mar, 23:24, bond  wrote:
> Hi,
> I've a question about DateBox widget. If you set a Format as this: "dd/
> MM/ HH:mm" on DateBox, when you are selecting a Date, the hour &
> minutes are resetted.
>
> So in your dateBox you have a date as 04/03/2009 15:30 and then you're
> focusing on the textbox, the DatePicker is displayed.But when you
> select a date (ex. 10/03/2009) the hours&minutes are resetted and your
> date will be 10/03/2009 00:00.
>
> Anyone can suggest a solution?
>
> This one is not very good because the date is first setted on the
> textbox and then is rewritten:
>
> txtDataCompilazione.getDatePicker().addValueChangeHandler(new
> ValueChangeHandler() {
>
>             @Override
>             public void onValueChange(ValueChangeEvent event) {
>                 Date ok = event.getValue();
>                 ok.setHours(dataCompilazione.getHours());
>                 ok.setMinutes(dataCompilazione.getMinutes());
>                 txtDataCompilazione.setValue(ok,false);
>             }
>         });
>         txtDataCompilazione.getTextBox().addBlurHandler(new BlurHandler
> () {
>
>             @Override
>             public void onBlur(BlurEvent event) {
>                 try {
>                     dataCompilazione = DateTimeFormat.getFormat("dd/MM/
>  HH:mm").parseStrict(txtDataCompilazione.getTextBox().getText());
>
>                 } catch (Exception ex) {
>                 }
>             }
>         });
>
> Thanks
>
> Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 works on 64 bits?

2009-03-11 Thread Kristal

Hi,
I experienced troubles running my gwt app on a 64 architecture
(ubuntu).
Apparently the problem comes from the hosted mode that relies on a 32
bits version of mozilla.
This problem could be solved by installing a 32 environment with
chroot, and I read that gwt coders where planing on changing their
hosted mode in the 1.6 release, and that's why nobody worked on a 64
bits version of the hosted browser.

I just downloaded the 1.6 version but didn't try it yet.
In case I wasn't clear:
-the 64 bits problem occurs in hosted mode, and the problem is linked
to the 32 bit mozilla plugin that is used in version 1.x -> 1.5.3
included.
-gwt 1.6 should come with another plugin (can't remember the details
though) which does not require a 32 bit architecture anymore
-the 64 bit uncompliancy should therefore be solved with gwt1.6, but
it is yet to be confirmed

regards,
Christopher

On Mar 3, 11:26 pm, Arend van der Veen 
wrote:
> Hi,
>
> I currently am running 1.5.3 on 32-bit on Ubuntu but need to upgrade
> to 64-bit Ubuntu.  When I install java Ubintu now installs a 64-bit
> version.  I have found that I can compile to JS in 64-bit but am not
> able to run hosted.  I have read that I should install a 32-bit
> version of java but have not had any success.
>
> Has anybody tried using hosted mode with version GWT 1.6 with 64-bit
> java?
>
> Thanks,
> Arend
>
> On Feb 15, 11:44 am, Tóth Imre  wrote:
>
> > As far as i know gwt, and js is bit independent:) If you have a browser on a
> > 64 bit machine that supports a js engine and gwt supports that:)
> > it will work, so bravely i can say that the current gwt support it aswell.
>
> > 2009/2/15 anderson...@gmail.com 
>
> > > Hi.
>
> > > We all want to know, GWT 1.6 works on 64 bits?
>
> > > Thank you.
>
> > > Best Regards;
>
> > --
> > Best Regards
> > Tóth Imre
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



"Better" project layout

2009-03-11 Thread P.G.Taboada

Did someone manage to create a more "maven" like project layout with
GWT 1.6?
I was hoping to get rid of the maven plugin with the "new flexibility"
we won with 1.6, but I did not succeed at first.

--~--~-~--~~~---~--~~
You received 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 call a servlet from GWT

2009-03-11 Thread Peter Ondruška

See RequestBuilder

2009/3/11, shajeer kt :
> Dear all,
>
>   How to call a servlet from GWT code .
>   Along with calling servlet i want to pass some parameters with it..
>
>   How is it possible.
>
>   Is it the wrong forum to ask this question .
>
>
>   Any help would be appreciaated,
>
> --
>
> >
>

--~--~-~--~~~---~--~~
You received 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 call a servlet from GWT

2009-03-11 Thread shajeer kt
Dear all,

  How to call a servlet from GWT code .
  Along with calling servlet i want to pass some parameters with it..

  How is it possible.

  Is it the wrong forum to ask this question .


  Any help would be appreciaated,

--

--~--~-~--~~~---~--~~
You received 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 and the Asterisk VoIP PBX

2009-03-11 Thread Shawn Brown

Well I am still experimenting but DWR seems like a good choice for
server to client communication.  It's part of the dojofoundation now
but I've been using it for a while before that.

Here is how I got it to work with GWT
http://things-that-i-noticed.blogspot.com/


> Besides that, I need to use Comet to make server to client
> communication possible. I don't know yet how i'm going to implement
> is, but if there are some tips...

Let me know how it goes.

Shawn

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

2009-03-11 Thread Vitali Lovich
FastTree already takes care of all of this, so I'd recommend using it.

http://collectionofdemos.appspot.com/demo/com.google.gwt.demos.fasttree.FastTreeDemo/FastTreeDemo.html

On Wed, Mar 11, 2009 at 7:37 AM, gregor wrote:

>
> I have never tried using StackPanel like that, but I did look at it's
> code once to enhance it and I think it is at least as "complicated" as
> Tree (in the sense it has many HTML "boxes") so I would guess it would
> probably be if anything worse than Tree in your situation.
>
> The classic way to deal with large trees is to lazy load them by
> layer, but obviously that is not an option for you as you only have
> one layer.
>
> I think you'll have to figure out a creative way to design a widget to
> deal with this edge case (1000 items). It's a bit difficult to suggest
> anything because we don't know either the contents of the tree nodes
> (what these 100 items are) or how they are used (presume user selects
> them?)
>
> One idea that that immediately occurred to me was to use
> DisclosurePanels. This has a right pointing triangle when closed, and
> when clicked reveals the contents, rather like clicking the + on a
> Tree. I am assuming also that the problem is purely rendering and that
> there is no time problem fetching the 1000 items over RPC. You could
> make a Composite widget like so:
>
> Choose a container, could be FlowPanel, VerticalPanel etc
> Keep a list of the items as a member of this class, and a cursor to
> keep an index against the list
> Set a maximum number to be rendered at any one time, say a few more
> than your happy days case of <=10
> Iterate through the list making DisclosurePanels and adding them to
> the container as you go
> If the list size > your chosen max, add a button bar to the bottom
> giving forward/back options
>
> Etc, I'm sure you get the idea. I think rendering 10 - 15
> DiclosurePanels at a time will probably be quick enough.
>
>
>
> On Mar 11, 5:49 am, GWTFan  wrote:
> > I read the threadhttp://
> groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
> > on tree performance.
> >
> > We are having a similar issue with the tree, where most of the cases
> > it would have 1-10 items. However rarely it would have 500-1000 items,
> > which slows down IE badly.
> >
> > Ours is just one level hierarchy and I don't really need tree. Do you
> > think using a stack panel would be faster than tree?
> >
>

--~--~-~--~~~---~--~~
You received 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: use getDeclaredMethods() ??

2009-03-11 Thread Matías Costa
On Wed, Mar 11, 2009 at 10:38 AM, Josse  wrote:

> There is no way to get round this problem??
>

Well, you have to create a generator that instrospect you classes in compile
time. The simplest variation is to inspect your beans, and beanadapters
generators are available on the net. This document was very usefull to me:

http://blog.*zenika*.com/public/Billet_0006/tutorial-binding-en.pdf

Full reflection is provided by more complex
frameworks/systems/whatever-you-call-it as gwt-reflection. It's a project
available in googlecode, but I have not used it.

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



Re: use getDeclaredMethods() ??

2009-03-11 Thread Thomas Broyer



On 11 mar, 10:38, Josse  wrote:
> There is no way to get round this problem??

Generate code at compile-time.

Googling for "gwt reflection" gives a bunch of relevant results:
http://gwtreflection.sourceforge.net/
http://code.google.com/p/gwt-ent/
http://code.google.com/p/gwt-greflect/

(by the way, "GWT.create(String.class)" is almost equivalent to "new
String()", it doesn't give you a Class object; "String.class" would,
but with very limited features in web mode)
--~--~-~--~~~---~--~~
You received 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: TimeStamps

2009-03-11 Thread fatjack1...@googlemail.com

Thanks, that worked great!

On Mar 11, 2:45 am, Tony Strauss 
wrote:
> If millisecond precision is adequate for your application, you can use
> java.util.Date.  Your code with java.util.Date might look something
> like this:
>
>         //Format the timestamp
>         DateTimeFormat timestampParser = DateTimeFormat.getFormat
> ("-MM-dd HH:mm:ss.SSS");
>         Date newOrderTimeStamp = timestampParser.parse("2009-03-10
> 22:30:29.000");
>         DateTimeFormat timeFormat = DateTimeFormat.getShortTimeFormat
> ();
>         Label newOrderTimeStampLabel = new Label(timeFormat.format
> (newOrderTimeStamp) + "  ");
>
>         //Calculated minutes passed since order submitted
>         Date currentTimeStamp = new Date();
>         long currentTime = currentTimeStamp.getTime();
>         long tsTime = newOrderTimeStamp.getTime();
>         long calculatedTime = currentTime - tsTime;
>         long minutesSinceOrderSubmittedLong = (calculatedTime /
> 1000) / 60;
>         Label minutesSinceOrderSubmittedLabel = new Label
> (minutesSinceOrderSubmittedLong + " minutes ago");
>
> Be careful if you need to do this kind of calculation frequently,
> however.  Javascript does not support longs natively, and so GWT ( >
> 1.5) emulates longs with two integers.  While this emulation is
> correct, it also is slow.  If performance is a concern with this code,
> you may want to consider using doubles for the calculation instead.
>
> Tony
>
> On Mar 10, 6:15 pm, "fatjack1...@googlemail.com"
>
>  wrote:
> > Hi,
>
> > I seem to be having an issue with timestamps when my project is
> > compiled (It works fine in Hosted mode). I know why, im just wondering
> > if anyone could tell me a quick way around my problem. So heres my
> > code on the client:
>
> >                                 //Format the timestamp
> >                                 Timestamp newOrderTimeStamp = 
> > Timestamp.valueOf
> > (data.newOrderTimeStampArrayList.get(i).toString());
> >                                 //System.out.println("newOrderTimeStamp: " 
> > + newOrderTimeStamp);
> >                                 DateTimeFormat timeFormat = 
> > DateTimeFormat.getShortTimeFormat();
> >                                 Label newOrderTimeStampLabel = new 
> > Label(timeFormat.format
> > (newOrderTimeStamp) + "  ");
>
> >                                 //Calculated minutes passed since order 
> > submitted
> >                            long currentTime = currentTimeStamp.getTime();
> >                            long tsTime = newOrderTimeStamp.getTime();
> >                            long calculatedTime = currentTime - tsTime;
> >                            long minutesSinceOrderSubmittedLong = 
> > (calculatedTime / 1000) /
> > 60;
> >                            Label  minutesSinceOrderSubmittedLabel = new 
> > Label
> > (minutesSinceOrderSubmittedLong + " minutes ago");
>
> > So basically it seems that Timestamp which is of type
> > java.sql.Timestamp works fine in hosted mode, but when compiled does
> > not work. Is there a GWT equivalent to java.sql.Timestamp??
>
> > Or does anyone have any other suggestions on how to use timestamps on
> > the client?
>
> > 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: Email Validator

2009-03-11 Thread Matías Costa
On Wed, Mar 11, 2009 at 8:27 AM, raga p  wrote:

> can any inform me how to implement validation controls for Email
> Validator..
> or attach the sample code for using it..
>
http://groups.google.com/group/Google-Web-Toolkit/msg/579923157140e362

You're welcome

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



Re: Tree Performance

2009-03-11 Thread gregor

I have never tried using StackPanel like that, but I did look at it's
code once to enhance it and I think it is at least as "complicated" as
Tree (in the sense it has many HTML "boxes") so I would guess it would
probably be if anything worse than Tree in your situation.

The classic way to deal with large trees is to lazy load them by
layer, but obviously that is not an option for you as you only have
one layer.

I think you'll have to figure out a creative way to design a widget to
deal with this edge case (1000 items). It's a bit difficult to suggest
anything because we don't know either the contents of the tree nodes
(what these 100 items are) or how they are used (presume user selects
them?)

One idea that that immediately occurred to me was to use
DisclosurePanels. This has a right pointing triangle when closed, and
when clicked reveals the contents, rather like clicking the + on a
Tree. I am assuming also that the problem is purely rendering and that
there is no time problem fetching the 1000 items over RPC. You could
make a Composite widget like so:

Choose a container, could be FlowPanel, VerticalPanel etc
Keep a list of the items as a member of this class, and a cursor to
keep an index against the list
Set a maximum number to be rendered at any one time, say a few more
than your happy days case of <=10
Iterate through the list making DisclosurePanels and adding them to
the container as you go
If the list size > your chosen max, add a button bar to the bottom
giving forward/back options

Etc, I'm sure you get the idea. I think rendering 10 - 15
DiclosurePanels at a time will probably be quick enough.



On Mar 11, 5:49 am, GWTFan  wrote:
> I read the 
> threadhttp://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
> on tree performance.
>
> We are having a similar issue with the tree, where most of the cases
> it would have 1-10 items. However rarely it would have 500-1000 items,
> which slows down IE badly.
>
> Ours is just one level hierarchy and I don't really need tree. Do you
> think using a stack panel would be faster than tree?
--~--~-~--~~~---~--~~
You received 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: Migrating to GWT 1.6 NoClassDefFoundError: org/apache/jasper/runtime/JspSourceDependent

2009-03-11 Thread Vitali Lovich
Oh and gwt-dev-anything.jar should not go into your WEB-INF/lib.  That set
of jars is strictly for HostedMode stuff & again - just add it to your
classpath.  They are not for deployment.

As for where to put the JSPs, that's a good question.  There's little
documentation as of yet (since 1.6 still hasn't been released).  Also, I've
never tried integrating JSPs with GWT (mainly because it seems antithetical
to the whole premise of GWT.

The JS libs, if I'm not mistaken, could be put into the war/module directory
that gets created or just in the war directory itself - it's up to depending
on how you specify the path (war/module is probably easier).

On Wed, Mar 11, 2009 at 7:26 AM, Vitali Lovich  wrote:

> You only need to put your server-side stuff into WEB-INF/lib and only when
> you are deploying to your server (should be part of your ant script to build
> your war).  Otherwise, just adding to the build path in Eclipse works great
> (you don't even need jars - just add projects to your classpath).
>
>
> On Tue, Mar 10, 2009 at 4:53 PM, Masto  wrote:
>
>>
>> Ok, i eventually managed to have everything works but i'm not happy.
>>
>> To make this work, i had to :
>>
>> - put gwt-dev.mac.jar inside my WEB-INF/lib so jetty can find the
>> classes in case of a JSP. That sucks because i have an extra step
>> (removing it) during my deployment to the prod server (which is what
>> the new project structure was supposed to avoid)
>>
>> - generate the jar from my other projects (those my GWT-project depend
>> on) and then copy them to the WEB-INF/lib which add a step before
>> lunching the hosted mode. Generating all those  jars from my other
>> project takes 1 minute 30 (lot of stuff to copy). So, it makes testing
>> painfull.
>>
>> I'm not really sure with the new project layout where to put my JSP
>> (that has nothing to do with GWT). In the war? Still in the public
>> path of my GWT project (as before)? And what about some js lib (ext)?
>>
>> Cypal studio, which i used to use is totally broken with the 1.6. Even
>> if it's not perfect, it's used to make my life a little bit easier. :-
>> ( I wish the GWT team has some plan about providing some tools/
>> plugins.
>>
>>
>> On Mar 10, 1:14 pm, Masto  wrote:
>> > I tried to put the gwt-dev-mac.jar (which should not be put, but it's
>> > just to test). Now, i get a different error :
>> >
>> > I installed recently Safari 4 BETA (just to let you know)
>> >
>> > [...]
>> > [java] On Mac OS X, ensure that you have Safari 3 installed.
>> >
>> > BUILD FAILED
>> > /Users/thomas/Dev/Inv_WEB_v2/myV2/build.xml:206: Java returned: 1
>> > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
>> > at
>> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
>> > 288)
>> > at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
>> > at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> > (DelegatingMethodAccessorImpl.java:25)
>> > at java.lang.reflect.Method.invoke(Method.java:585)
>> >>
>>
>

--~--~-~--~~~---~--~~
You received 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: Migrating to GWT 1.6 NoClassDefFoundError: org/apache/jasper/runtime/JspSourceDependent

2009-03-11 Thread Vitali Lovich
You only need to put your server-side stuff into WEB-INF/lib and only when
you are deploying to your server (should be part of your ant script to build
your war).  Otherwise, just adding to the build path in Eclipse works great
(you don't even need jars - just add projects to your classpath).

On Tue, Mar 10, 2009 at 4:53 PM, Masto  wrote:

>
> Ok, i eventually managed to have everything works but i'm not happy.
>
> To make this work, i had to :
>
> - put gwt-dev.mac.jar inside my WEB-INF/lib so jetty can find the
> classes in case of a JSP. That sucks because i have an extra step
> (removing it) during my deployment to the prod server (which is what
> the new project structure was supposed to avoid)
>
> - generate the jar from my other projects (those my GWT-project depend
> on) and then copy them to the WEB-INF/lib which add a step before
> lunching the hosted mode. Generating all those  jars from my other
> project takes 1 minute 30 (lot of stuff to copy). So, it makes testing
> painfull.
>
> I'm not really sure with the new project layout where to put my JSP
> (that has nothing to do with GWT). In the war? Still in the public
> path of my GWT project (as before)? And what about some js lib (ext)?
>
> Cypal studio, which i used to use is totally broken with the 1.6. Even
> if it's not perfect, it's used to make my life a little bit easier. :-
> ( I wish the GWT team has some plan about providing some tools/
> plugins.
>
>
> On Mar 10, 1:14 pm, Masto  wrote:
> > I tried to put the gwt-dev-mac.jar (which should not be put, but it's
> > just to test). Now, i get a different error :
> >
> > I installed recently Safari 4 BETA (just to let you know)
> >
> > [...]
> > [java] On Mac OS X, ensure that you have Safari 3 installed.
> >
> > BUILD FAILED
> > /Users/thomas/Dev/Inv_WEB_v2/myV2/build.xml:206: Java returned: 1
> > at org.apache.tools.ant.taskdefs.Java.execute(Java.java:107)
> > at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:
> > 288)
> > at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
> > at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> > at java.lang.reflect.Method.invoke(Method.java:585)
> >
>

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

2009-03-11 Thread Vitali Lovich
Probably not since it's still the same problem in essence - that you are
manipulating the DOM a lot.

Here are some things to try:

Build the widget first using javascript & then add it as one thing (although
if you still pass it off to TreePanel, it's probably not going to help since
TreePanel will still build the model again).

Use lazy panels (I think it's in 1.6 but it's also in the incubator AFAIK) +
stack panel.  That may work.

Another trick might be to use a timer & incrementally add 1 results every 50
milliseconds or so.  That should keep the UI responsive, although I'm not
sure how IE will perform with a large tree once its there anyways.

In fact, on the GWT incubator sight, it does seem like they implemented the
lazy panel + stack panel idea anyways
http://code.google.com/p/google-web-toolkit-incubator/wiki/FastTree - that
sounds exactly what you're looking for.



On Wed, Mar 11, 2009 at 1:49 AM, GWTFan  wrote:

>
> I read the thread
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/22aecc7de7b8a92
> on tree performance.
>
> We are having a similar issue with the tree, where most of the cases
> it would have 1-10 items. However rarely it would have 500-1000 items,
> which slows down IE badly.
>
> Ours is just one level hierarchy and I don't really need tree. Do you
> think using a stack panel would be faster than tree?
> >
>

--~--~-~--~~~---~--~~
You received 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 and the Asterisk VoIP PBX

2009-03-11 Thread Richard

Besides that, I need to use Comet to make server to client
communication possible. I don't know yet how i'm going to implement
is, but if there are some tips...

On 18 feb, 16:47, Richard  wrote:
> At the moment I am researching the possibility to make an integration
> between GWT and the Asterisk telephony PBX. My goal is to create a
> dashboard for the reception, wich makes it possible to dynamically
> transfer and stack calls in a web interface. Now, that last thing is
> my point.
>
> Asterisk is offering a manager interface (AMI), wich sends the
> Asterisk call events of the registered extensions to the at that
> moment connected manager. Build over that, there also is a javascript
> api called AJAM wich can do some basic Ajax tasks. AJAM can't capture
> the events like AMI does because http is a stateless protocol.
>
> I would like to use Ext GWT to create my dashboard, is it possible to
> capture the events with GWT wich Asterisk sends? Else, is there a
> working alternative?
--~--~-~--~~~---~--~~
You received 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: Synchornous GWT, how can i do that

2009-03-11 Thread Vitali Lovich
It's not really a matter of this being GWTs way.  I believe this is the only
thing browsers support since they do not have multiple threads, at least so
that the UI doesn't lock up.  And by UI lockup, I don't mean the page is
unresponsive - I mean the whole browser used to freeze if a page was in a
Javascript loop (actually still does on Firefox).

New browsers have multi-threading, but I believe that multi-threaded
Javascript constructs are still a ways away.

On Wed, Mar 11, 2009 at 6:58 AM, eggsy  wrote:

>
> I agree with all the previous posts that Asynchronous is the best way
> and that is why GWT only implements this.
>
> When I started with GWT I was asking a similar question and was
> correctly advised to think in terms of Async not Sync the more
> development you do with GWT you'll realise this.
>
> However at the time we did come up with a basic transactional pattern
> that performs the methods synchronously:
>
> http://www.axonbirch.com/blog/2007/10/26/notification-end-of-rpc-call/
>
> But as before I would advise that you simply look at this and try
> *not* to implement your methods synchronously if possible.
>
> Eggsy
>
> On Mar 11, 10:13 am, ping2ravi  wrote:
> > I totally agree with you guys that Asynchronous is good, but i would
> > love to see mix up of synchrnous and asynchronous in GWT(my personal
> > view), where i can make an asynchronous call to one function which
> > internally can make synchronous calls and it will solve the problem of
> > UI hanging.(In case GWT peope can read it , please implement such
> > things), i am sure programmers will enjoy some synchronous calls too
> > such as avoiding inner classes or writing new classes for callbacks
> > for each call(again personal view). But yes User satisfaction has more
> > priority.
> > And guys i am really thankfull to all of you for giving suggestions
> >
> > i guess i will implement some kind of chains as Matias Costa suggested
> > and once all chain object get result back will call our UpdateUi
> > function as suggested by Ian.
> >
> > Ravi.
> >
> > On Mar 11, 9:46 am, al0  wrote:
> >
> > > "How much extra code is too much?" - single line of (unnecessary)
> > > extra code is way too much.
> >
> > > On Mar 10, 6:01 pm, mikedshaffer  wrote:
> >
> > > > Lothar's original suggestion
> >
> > > > "Do the UI-update in a method called updateUI where you check if all
> > > > necessary data (e.g. above lists) are present and call this method
> > > > in every onSuccess-method of the different AsyncCallback-classes. "
> >
> > > > is the way to go.
> >
> > > > How much extra code is too much?  You have 5 async RPC calls each
> with
> > > > onsuccess handlers that increment a class level field and then call a
> > > > "redoUI" type of function.  That function continues only when the
> > > > increment is 5.  Done.  We're talking a small amount of code here
> > > > really.  And that's all good form and the way to do a good AJAX UI.
> > > > You can add all sorts of good UI user interaction this way, like wait
> > > > cursors to let the user know something is going on.  If you
> > > > synchronize things, you'll lock up your users browser, and in
> general,
> > > > tick them off, like Jason articulates.  Plus you'll have gnarly
> > > > looking code that fights the very asynchronous nature of the way
> > > > things work.
> >
> > > > My thoughts...
> >
> > > > Later,
> >
> > > > Shaffer
> >
> > > > On Mar 10, 10:47 am, Jason Essington 
> > > > wrote:
> >
> > > > > Actually from a user's point of view, hanging the UI is NEVER
> > > > > acceptable even if it is for less than a second.
> >
> > > > > In the case of waiting for a couple of seconds, depending on the
> > > > > browser and version, you cannot change tabs, cannot close the
> browser
> > > > > or anything. This is a VERY NAUGHTY thing to do intentionally.
> >
> > > > > In the case of a network failure this frozen state lasts
> indefinitely,
> > > > > and that sort of thing really pisses off your users. particularly
> if
> > > > > the only way they an figure out how to exit your web app is to
> reboot
> > > > > their computer!
> >
> > > > > Learn to divide up your application into the things that need to
> > > > > happen before the RPC is sent, and the things that happen after.
> place
> > > > > those things in their own methods, then call the "after" methods
> from
> > > > > your Callback. Your users will thank you for it later.
> >
> > > > > -jason
> >
> > > > > On Mar 10, 2009, at 10:28 AM, ping2ravi wrote:
> >
> > > > > > Do you see any problem in having synchronous calls.? except that
> it
> > > > > > may hang the UI for a second and that is acceptable.- 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 

Re: use getDeclaredMethods() ??

2009-03-11 Thread Vitali Lovich
JSNI maybe?

On Wed, Mar 11, 2009 at 5:38 AM, Josse  wrote:

>
> There is no way to get round this problem??
>
> On 10 mar, 17:54, Ian Bambury  wrote:
> > You can't. Reflection is not available.
> > Ian
> >
> > http://examples.roughian.com
> >
> > 2009/3/10 Josse 
> >
> >
> >
>

--~--~-~--~~~---~--~~
You received 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: Cache problem?

2009-03-11 Thread eggsy

On the HTML page that includes your GWT script try doing something
like this:




(Notice the 1.2 addition)

Then locate the compiled up Javascript and rename it to the file
above.

You can then be sure it is referencing the correct JS.



On Mar 10, 2:23 pm, "fatjack1...@googlemail.com"
 wrote:
> Hi,
>
> I am receving a very strange error. Basically, when I compile my GWT
> application it seems to have stopped picking up on anything I change!
> The changes do however work perfectly well in Hosted mode. I have
> tried everything I can think of from clearing the cache to trying to
> open the project in different web browsers but with no luck. I have
> tried putting some system.out.println in different classes and it
> doesnt even pick these up. Does anyone have any suggestions on what
> the problem could be?
>
> Thanks for any help in advance
>
> 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: Synchornous GWT, how can i do that

2009-03-11 Thread eggsy

I agree with all the previous posts that Asynchronous is the best way
and that is why GWT only implements this.

When I started with GWT I was asking a similar question and was
correctly advised to think in terms of Async not Sync the more
development you do with GWT you'll realise this.

However at the time we did come up with a basic transactional pattern
that performs the methods synchronously:

http://www.axonbirch.com/blog/2007/10/26/notification-end-of-rpc-call/

But as before I would advise that you simply look at this and try
*not* to implement your methods synchronously if possible.

Eggsy

On Mar 11, 10:13 am, ping2ravi  wrote:
> I totally agree with you guys that Asynchronous is good, but i would
> love to see mix up of synchrnous and asynchronous in GWT(my personal
> view), where i can make an asynchronous call to one function which
> internally can make synchronous calls and it will solve the problem of
> UI hanging.(In case GWT peope can read it , please implement such
> things), i am sure programmers will enjoy some synchronous calls too
> such as avoiding inner classes or writing new classes for callbacks
> for each call(again personal view). But yes User satisfaction has more
> priority.
> And guys i am really thankfull to all of you for giving suggestions
>
> i guess i will implement some kind of chains as Matias Costa suggested
> and once all chain object get result back will call our UpdateUi
> function as suggested by Ian.
>
> Ravi.
>
> On Mar 11, 9:46 am, al0  wrote:
>
> > "How much extra code is too much?" - single line of (unnecessary)
> > extra code is way too much.
>
> > On Mar 10, 6:01 pm, mikedshaffer  wrote:
>
> > > Lothar's original suggestion
>
> > > "Do the UI-update in a method called updateUI where you check if all
> > > necessary data (e.g. above lists) are present and call this method
> > > in every onSuccess-method of the different AsyncCallback-classes. "
>
> > > is the way to go.
>
> > > How much extra code is too much?  You have 5 async RPC calls each with
> > > onsuccess handlers that increment a class level field and then call a
> > > "redoUI" type of function.  That function continues only when the
> > > increment is 5.  Done.  We're talking a small amount of code here
> > > really.  And that's all good form and the way to do a good AJAX UI.
> > > You can add all sorts of good UI user interaction this way, like wait
> > > cursors to let the user know something is going on.  If you
> > > synchronize things, you'll lock up your users browser, and in general,
> > > tick them off, like Jason articulates.  Plus you'll have gnarly
> > > looking code that fights the very asynchronous nature of the way
> > > things work.
>
> > > My thoughts...
>
> > > Later,
>
> > > Shaffer
>
> > > On Mar 10, 10:47 am, Jason Essington 
> > > wrote:
>
> > > > Actually from a user's point of view, hanging the UI is NEVER
> > > > acceptable even if it is for less than a second.
>
> > > > In the case of waiting for a couple of seconds, depending on the
> > > > browser and version, you cannot change tabs, cannot close the browser
> > > > or anything. This is a VERY NAUGHTY thing to do intentionally.
>
> > > > In the case of a network failure this frozen state lasts indefinitely,
> > > > and that sort of thing really pisses off your users. particularly if
> > > > the only way they an figure out how to exit your web app is to reboot
> > > > their computer!
>
> > > > Learn to divide up your application into the things that need to
> > > > happen before the RPC is sent, and the things that happen after. place
> > > > those things in their own methods, then call the "after" methods from
> > > > your Callback. Your users will thank you for it later.
>
> > > > -jason
>
> > > > On Mar 10, 2009, at 10:28 AM, ping2ravi wrote:
>
> > > > > Do you see any problem in having synchronous calls.? except that it
> > > > > may hang the UI for a second and that is acceptable.- 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: Synchornous GWT, how can i do that

2009-03-11 Thread ping2ravi

I totally agree with you guys that Asynchronous is good, but i would
love to see mix up of synchrnous and asynchronous in GWT(my personal
view), where i can make an asynchronous call to one function which
internally can make synchronous calls and it will solve the problem of
UI hanging.(In case GWT peope can read it , please implement such
things), i am sure programmers will enjoy some synchronous calls too
such as avoiding inner classes or writing new classes for callbacks
for each call(again personal view). But yes User satisfaction has more
priority.
And guys i am really thankfull to all of you for giving suggestions

i guess i will implement some kind of chains as Matias Costa suggested
and once all chain object get result back will call our UpdateUi
function as suggested by Ian.


Ravi.



On Mar 11, 9:46 am, al0  wrote:
> "How much extra code is too much?" - single line of (unnecessary)
> extra code is way too much.
>
> On Mar 10, 6:01 pm, mikedshaffer  wrote:
>
> > Lothar's original suggestion
>
> > "Do the UI-update in a method called updateUI where you check if all
> > necessary data (e.g. above lists) are present and call this method
> > in every onSuccess-method of the different AsyncCallback-classes. "
>
> > is the way to go.
>
> > How much extra code is too much?  You have 5 async RPC calls each with
> > onsuccess handlers that increment a class level field and then call a
> > "redoUI" type of function.  That function continues only when the
> > increment is 5.  Done.  We're talking a small amount of code here
> > really.  And that's all good form and the way to do a good AJAX UI.
> > You can add all sorts of good UI user interaction this way, like wait
> > cursors to let the user know something is going on.  If you
> > synchronize things, you'll lock up your users browser, and in general,
> > tick them off, like Jason articulates.  Plus you'll have gnarly
> > looking code that fights the very asynchronous nature of the way
> > things work.
>
> > My thoughts...
>
> > Later,
>
> > Shaffer
>
> > On Mar 10, 10:47 am, Jason Essington 
> > wrote:
>
> > > Actually from a user's point of view, hanging the UI is NEVER
> > > acceptable even if it is for less than a second.
>
> > > In the case of waiting for a couple of seconds, depending on the
> > > browser and version, you cannot change tabs, cannot close the browser
> > > or anything. This is a VERY NAUGHTY thing to do intentionally.
>
> > > In the case of a network failure this frozen state lasts indefinitely,
> > > and that sort of thing really pisses off your users. particularly if
> > > the only way they an figure out how to exit your web app is to reboot
> > > their computer!
>
> > > Learn to divide up your application into the things that need to
> > > happen before the RPC is sent, and the things that happen after. place
> > > those things in their own methods, then call the "after" methods from
> > > your Callback. Your users will thank you for it later.
>
> > > -jason
>
> > > On Mar 10, 2009, at 10:28 AM, ping2ravi wrote:
>
> > > > Do you see any problem in having synchronous calls.? except that it
> > > > may hang the UI for a second and that is acceptable.- 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: Synchornous GWT, how can i do that

2009-03-11 Thread al0

"How much extra code is too much?" - single line of (unnecessary)
extra code is way too much.

On Mar 10, 6:01 pm, mikedshaffer  wrote:
> Lothar's original suggestion
>
> "Do the UI-update in a method called updateUI where you check if all
> necessary data (e.g. above lists) are present and call this method
> in every onSuccess-method of the different AsyncCallback-classes. "
>
> is the way to go.
>
> How much extra code is too much?  You have 5 async RPC calls each with
> onsuccess handlers that increment a class level field and then call a
> "redoUI" type of function.  That function continues only when the
> increment is 5.  Done.  We're talking a small amount of code here
> really.  And that's all good form and the way to do a good AJAX UI.
> You can add all sorts of good UI user interaction this way, like wait
> cursors to let the user know something is going on.  If you
> synchronize things, you'll lock up your users browser, and in general,
> tick them off, like Jason articulates.  Plus you'll have gnarly
> looking code that fights the very asynchronous nature of the way
> things work.
>
> My thoughts...
>
> Later,
>
> Shaffer
>
> On Mar 10, 10:47 am, Jason Essington 
> wrote:
>
> > Actually from a user's point of view, hanging the UI is NEVER
> > acceptable even if it is for less than a second.
>
> > In the case of waiting for a couple of seconds, depending on the
> > browser and version, you cannot change tabs, cannot close the browser
> > or anything. This is a VERY NAUGHTY thing to do intentionally.
>
> > In the case of a network failure this frozen state lasts indefinitely,
> > and that sort of thing really pisses off your users. particularly if
> > the only way they an figure out how to exit your web app is to reboot
> > their computer!
>
> > Learn to divide up your application into the things that need to
> > happen before the RPC is sent, and the things that happen after. place
> > those things in their own methods, then call the "after" methods from
> > your Callback. Your users will thank you for it later.
>
> > -jason
>
> > On Mar 10, 2009, at 10:28 AM, ping2ravi wrote:
>
> > > Do you see any problem in having synchronous calls.? except that it
> > > may hang the UI for a second and that is acceptable.- 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: use getDeclaredMethods() ??

2009-03-11 Thread Josse

There is no way to get round this problem??

On 10 mar, 17:54, Ian Bambury  wrote:
> You can't. Reflection is not available.
> Ian
>
> http://examples.roughian.com
>
> 2009/3/10 Josse 
>
>
--~--~-~--~~~---~--~~
You received 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: IE8 DialogBox in GWT 1.5.2 Renders Wrong

2009-03-11 Thread Vitali Lovich
Sounds like a bug - you should file a bug (under the issues tab of the
googlecode page).  GWT's goal is that you shouldn't care about the browser
*unless you're doing some JSNI stuff).

If you figure out a workaround in code, you can hide it behind a deferred
interface & the GWT compiler will take care of everything for you.  Also, I
would recommend testing against Opera and/or Safari to provide a little more
perspective when you file the bug.

On Tue, Mar 10, 2009 at 3:17 PM, DavidPShaw  wrote:

>
> We have a gwt widget that works great in FF, but in IE the Dialog box
> has serious clipping problems.  The problem is demonstrated here:
>
> We've traced the problem to the fact that the page holding the root
> div and the folder containing the GWT output are different.
>
> The source of the page contains the gwt reference as a virtual url to
> a subfolder deeper in the site.
>
> If the content of the gwt.PreferredISPUI is copied into the same
> folder as the jsp (and the path is changed to reflect that the
> nocache.js is in the same folder), it works fine.
>
> Is there something we need to do to make the dialog render properly in
> IE without putting all the files in the folder with the jsp?
>
> >
>

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



Email Validator

2009-03-11 Thread raga p
Hello All,

I am new to GWT am working on validation controls in GWT
my requirement is validate the email validator..

can any inform me how to implement validation controls for Email Validator..
or attach the sample code for using it..

Thanks & Regargs,
Ragavan

--~--~-~--~~~---~--~~
You received 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 regarding Date in GWT

2009-03-11 Thread jagadesh

I think u will get the value in dateformat only.
if u use DateField.getValue() it will return the value as Date
object.so no need of converting into Date Object. u can use directly
--~--~-~--~~~---~--~~
You received 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 can i get a Dynamic Image

2009-03-11 Thread jagadesh

My Requirment is i developed a registration form page where i will
show a dynamic image with some digits . so that the user will fill the
field with digits [much like the yahoo or gmail authentication].so how
can i do that gwt.

my idea is i will use a horizontalPanel with a label in it.i will use
random class to get the random digits and set them as text to the
label on horizontalPanel.

am i going in a right way?
any more ideas


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



Help regarding Date in GWT

2009-03-11 Thread shajeer kt
 *Dear All,*
**
* I got a doubt. please help me .*
**
* i have a DateField 'from_date'  which is a
'com.gwtext.client.widgets.form.DateField
.'*
* i want to convert this date to java.util.Date. *
* I have to do this in  a GWT-page  which is in client side . *
**
*Is it possible to do?How ?*
**
*Your help will be appreciated...*


-- 
Regards,

Shajeer Kannamthodi
Jeddah
Mob:009665-64566832

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