Re: GWT vs GWT-Ext

2008-08-27 Thread masterGaurav

Hi All,

For the pure-JavaScript side, I personally love Dojo Toolkit for
various reasons:

1) Maturity of the toolkit over last few years
2) License (See: http://dojotoolkit.org/license)
3) Out-of-the-box Widgets
4) Features: Support for template-based widget, Django-templates,
Offline support using Google Gears etc. Just fantastic.
5) Support (See: http://dojotoolkit.org/foundation)

If you're looking for something on GWT -- you may have to wait.
DWT - Dojo on GWT - is something that I am currently working on. But
it's only a few weeks old, may take at least 3-4 months to have only
the "Widgets" ready.


--
Happy Hacking,
Gaurav
http://sf.net/projects/dwt
http://eduzine.edujini-labs.com
http://blogs.mastergaurav.com
--

On Aug 28, 12:07 am, bwarner <[EMAIL PROTECTED]> wrote:
> I would recommend steering away from GWT-Ext. After working with GWT
> and GWT-ext for the past 6 months, my reactions are mixed. GWT-Ext
> does provide some very useful gadgets out of the box, but it is buggy,
> and I found it hard to work with. In addition, it does not seem to
> mesh well with the base GWT objects.
>
> Unfortunately, there is not much else out there. I have developed my
> own customer widgets to serve my own purposes, and used GWT-ext only
> when needed.
>
> Another GWT widget library I found useful 
> was:http://gwt-widget.sourceforge.net/
>
> - Bryan
>
> On Aug 27, 2:18 pm, "Dru Devore" <[EMAIL PROTECTED]> wrote:
>
> > Is there something else you are using instead of the ext stuff? I too 
> > decided to stop trying using the ext stuff for the same reason. 
> > Original Message 
> > Subject: Re: GWT vs GWT-Ext
> > From: "Mehdi Rabah" <[EMAIL PROTECTED]>
> > Date: Wed, August 27, 2008 1:22 pm
> > To: [EMAIL PROTECTED],
> > GWT is the official toolkit released by Google. It provides the 
> > java->javascript compiler and some basics widget.
> > GWT-Ext is a wrapper around the Extjs javascript library, that use the GWT 
> > compiler. It provide similar widget to GWT and some others that don't exist 
> > in GWT.
> > I personnaly stop using GWT-Ext because it's supported by a few developpers 
> > (so it takes time to fix bugs), and due to Extjs licence change, I'm not 
> > sure it will continue to be supported. Also the community is smaller, so 
> > it's harder to get help.
> > --
> > MehdiOn Wed, Aug 27, 2008 at 6:34 AM, ArunDhaJ<[EMAIL PROTECTED]>wrote:
> > Hi,
> > I'm a new to this platform. While browsing on net I could see GWT and
> > GWT-Ext. Is each a standalone development environment? Is GWT needs to
> > installed before using GWT-Ext? Basically, I'm not getting the
> > difference between these...
> > -ArunDhaJ
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT vs GWT-Ext

2008-08-27 Thread Vivek Singhwal
My experience is different, I used GWT-EXT with GWT extensively, You can
check this example  www.sample.gwt4enterprise.com. There were few issues
with gwt-ext but current version is very stable, and it covers mostly all
types of widgets.
EXT-GWT is still in its initial versions and yet to add more widget.

-Vivek

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



Re: Dynamic Evaluation

2008-08-27 Thread masterGaurav

Hi Walden,

> Sorry to disappoint.  I'm not sure how or why you would port that to
> GWT.  Maybe someone else on the list can be of more help to you.

If your query is as to why I would like to port Dojo for GWT, then
there's a valid case for it.

1- I'm try to combine the power of GWT and Dojo.
2- I saw an initial interest in the community for this project.
  For instance, have a look at 
http://turtle.dojotoolkit.org/pipermail/dojo-interest/2008-July/032549.html
3- It opens up another option for Dojo users. Why not use Eclipse or
Netbeans or any other Java IDE to develop Dojo based applications.


Regarding the "how" of dojoAttachPoint, I think I've got a solution.
Today should freeze on the same!


--
Happy Hacking,
Gaurav
http://sf.net/projects/dwt
http://eduzine.edujini-labs.com
http://blogs.mastergaurav.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT 1.5 RC2 : Strange compile error - Exception in thread "main" java.lang.NoSuchMethodError:

2008-08-27 Thread maticpetek

Hello,
I try to migrate my project from 1.4.62 to GWT 1.5 RC2. But I get
the bottom error when i build my project with build.xml script (before
that i replace 'gwt-mac-1.4.62' with 'gwt-mac-1.5.1'). Any idea what
could be wrong? Thank you.

My environment:
OS X, 10.5.4
GWT 1.5 RC 2
Eclipse 3.4.0

Buildfile: /Users/maticpetek/Desktop/MetaKocka/MetaKockaMain/src/com/
metakocka/MetaKockaMain/build.xml
jars:
[mkdir] Created dir: /Users/maticpetek/Desktop/MetaKocka/
MetaKockaMain/@dot/com.metakocka.MetaKockaMain.MetaKockaMain/WEB-INF/
lib
  [jar] Building jar: /Users/maticpetek/Desktop/MetaKocka/
MetaKockaMain/@dot/com.metakocka.MetaKockaMain.MetaKockaMain/WEB-INF/
lib/MetaKockaMain.jar
gwt-compile:
 [java] Exception in thread "main" java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.Compiler.(Lorg/eclipse/jdt/
internal/compiler/env/INameEnvironment;Lorg/eclipse/jdt/internal/
compiler/IErrorHandlingPolicy;Lorg/eclipse/jdt/internal/compiler/impl/
CompilerOptions;Lorg/eclipse/jdt/internal/compiler/
ICompilerRequestor;Lorg/eclipse/jdt/internal/compiler/
IProblemFactory;)V
 [java] at com.google.gwt.dev.javac.JdtCompiler
$CompilerImpl.(JdtCompiler.java:93)
 [java] at
com.google.gwt.dev.javac.JdtCompiler.(JdtCompiler.java:231)
 [java] at
com.google.gwt.dev.javac.JdtCompiler.compile(JdtCompiler.java:193)
 [java] at
com.google.gwt.dev.javac.CompilationState.compile(CompilationState.java:
101)
 [java] at
com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:327)
 [java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
564)
 [java] at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:
554)
 [java] at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:
214)

BUILD FAILED
/Users/maticpetek/Desktop/MetaKocka/MetaKockaMain/src/com/metakocka/
MetaKockaMain/build.xml:73: Java returned: 1

Total time: 3 seconds

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



Re: Need help with Ant GWT compile script

2008-08-27 Thread Kwame Iwegbue
THANK YOU :)

On Wed, Aug 27, 2008 at 10:32 PM, Renato Mangini <[EMAIL PROTECTED]> wrote:

>
> Kwame,
>
> Here is mine. It works perfectly.
>
> 
>  classname="com.google.gwt.dev.GWTCompiler">
> 
>  path="${src.dir}">
>  location="${GWT_HOME}/gwt-user.jar">
>  location="${GWT_HOME}/gwt-dev-linux.jar">
> 
> 
> 
> 
> 
>
>
> On 8/27/08, Kwame <[EMAIL PROTECTED]> wrote:
>>
>>
>> I'm trying to write a simple Ant script to compile my GWT app. o far I
>> have this
>>
>> 
>> >fork="true"
>>failonerror="true"
>>maxmemory="256m">
>> 
>> > />
>>
>>
>> 
>> > location="${gwthome}/gwt-dev-mac.jar"/>
>> 
>> 
>>
>>
>> 
>> 
>>
>> I'm getting build error:
>> compile:
>>  [java] Loading module '/Users/me/Documents/workspace/com.gwt/src/
>> com.my.app.Module'
>>  [java][ERROR] Invalid module name:
>>   '/Users/me/Documents/workspace/com.gwt/src/com.my.app.Module'
>>  [java] [ERROR] Build failed
>>
>> All the build properties are correctly set.
>> Can anyone help?
>>
>> >>
>>

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



Re: GWT vs GWT-Ext

2008-08-27 Thread Tim

you could also give a shot to a couple of other pure GWT libraries:
1) ItMill (http://www.itmill.com/)
2) Ext GWT or GXT (http://extjs.com/products/gxt/)

both are a bit less mature than the javascript-based ExtJs, but are
quite decent. GWT 1.5 on its own is also starting to catch up in terms
of widgets. Also projects like gwt incubator also provide a number of
features that are missing in GWT core.

On Aug 27, 3:07 pm, bwarner <[EMAIL PROTECTED]> wrote:
> I would recommend steering away from GWT-Ext. After working with GWT
> and GWT-ext for the past 6 months, my reactions are mixed. GWT-Ext
> does provide some very useful gadgets out of the box, but it is buggy,
> and I found it hard to work with. In addition, it does not seem to
> mesh well with the base GWT objects.
>
> Unfortunately, there is not much else out there. I have developed my
> own customer widgets to serve my own purposes, and used GWT-ext only
> when needed.
>
> Another GWT widget library I found useful 
> was:http://gwt-widget.sourceforge.net/
>
> - Bryan
>
> On Aug 27, 2:18 pm, "Dru Devore" <[EMAIL PROTECTED]> wrote:
>
> > Is there something else you are using instead of the ext stuff? I too 
> > decided to stop trying using the ext stuff for the same reason. 
> > Original Message 
> > Subject: Re: GWT vs GWT-Ext
> > From: "Mehdi Rabah" <[EMAIL PROTECTED]>
> > Date: Wed, August 27, 2008 1:22 pm
> > To: [EMAIL PROTECTED],
> > GWT is the official toolkit released by Google. It provides the 
> > java->javascript compiler and some basics widget.
> > GWT-Ext is a wrapper around the Extjs javascript library, that use the GWT 
> > compiler. It provide similar widget to GWT and some others that don't exist 
> > in GWT.
> > I personnaly stop using GWT-Ext because it's supported by a few developpers 
> > (so it takes time to fix bugs), and due to Extjs licence change, I'm not 
> > sure it will continue to be supported. Also the community is smaller, so 
> > it's harder to get help.
> > --
> > MehdiOn Wed, Aug 27, 2008 at 6:34 AM, ArunDhaJ<[EMAIL PROTECTED]>wrote:
> > Hi,
> > I'm a new to this platform. While browsing on net I could see GWT and
> > GWT-Ext. Is each a standalone development environment? Is GWT needs to
> > installed before using GWT-Ext? Basically, I'm not getting the
> > difference between these...
> > -ArunDhaJ
>
>
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Need help with Ant GWT compile script

2008-08-27 Thread Renato Mangini
Kwame,

Here is mine. It works perfectly.














On 8/27/08, Kwame <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to write a simple Ant script to compile my GWT app. o far I
> have this
>
> 
> fork="true"
>failonerror="true"
>maxmemory="256m">
> 
> 
>
>
> 
>  location="${gwthome}/gwt-dev-mac.jar"/>
> 
> 
>
>
> 
> 
>
> I'm getting build error:
> compile:
>  [java] Loading module '/Users/me/Documents/workspace/com.gwt/src/
> com.my.app.Module'
>  [java][ERROR] Invalid module name:
>   '/Users/me/Documents/workspace/com.gwt/src/com.my.app.Module'
>  [java] [ERROR] Build failed
>
> All the build properties are correctly set.
> Can anyone help?
> >
>


-- 
Renato Mangini
http://www.linkedin.com/in/mangini

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



Re: Could not find a native method with the signature fireOnModuleLoadStart

2008-08-27 Thread hezjing

Hi

Both of the PC has Firefox 3 and IE7 installed.
I think this is unlikely a problem because the application is running
OK on one of the PCs.

When I uninstalled IE7 from the PC, the problem still exist with only
Firefox 3 running ...


I'm still troubleshooting ... :-(


On Thu, Aug 28, 2008 at 12:19 AM, Vivek Singhwal <[EMAIL PROTECTED]> wrote:
>
> What is the version of your IE? Is it different in other PC?
> Hosted mode uses IE as a hosted browser. Try after clearing the temporary
> files and history of IE browser.
>
> -Vivek
> www.gwt4enterprise.com
>
> On Wed, Aug 27, 2008 at 7:01 PM, hezjing <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> I created a GWT project from one computer, and it was tested OK with
>> hosted mode.
>> Then, I simply copied the entire GWT project folder to another
>> computer and this will cause the same exception.
>>
>> Both environments are running Java 5 and GWT 1.5.1 and I'm still
>> wondering why it is throwing this error.
>>
>> Any clue?
>>
>>
>> On Mon, Aug 25, 2008 at 9:23 PM, hezjing <[EMAIL PROTECTED]> wrote:
>> > Hi
>> >
>> > I encountered the following when testing the application in hosted
>> > mode using GWT 1.5.1,
>> >
>> > [ERROR] Unable to load module entry point class
>> > com.dummy.test.client.MyTest (see associated exception for details)
>> > java.lang.RuntimeException: Could not find a native method with the
>> > signature 'fireOnModuleLoadStart'
>> >at
>> > com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:57)
>> >at
>> > com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152)
>> >at
>> > com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447)
>> >at
>> > com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:248)
>> >at
>> > com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
>> >at
>> > com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:324)
>> >at
>> > com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200(BrowserWidgetIE6.java:37)
>> >at
>> > com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:71)
>> >at
>> > com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:128)
>> >at
>> > com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
>> >at
>> > com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
>> >at
>> > org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
>> >at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
>> > Method)
>> >at
>> > org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>> >at
>> > org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>> >at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
>> >at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
>> >at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)
>> >
>> >
>> > Do you have any idea of what does this exception means?
>> >
>> >
>> > --
>> >
>> > Hez
>> >
>>
>>
>>
>> --
>>
>> Hez
>>
>>
>
>
> >
>



-- 

Hez

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



Need help with Ant GWT compile script

2008-08-27 Thread Kwame

I'm trying to write a simple Ant script to compile my GWT app. o far I
have this






   




   




I'm getting build error:
compile:
 [java] Loading module '/Users/me/Documents/workspace/com.gwt/src/
com.my.app.Module'
 [java][ERROR] Invalid module name:
 '/Users/me/Documents/workspace/com.gwt/src/com.my.app.Module'
 [java] [ERROR] Build failed

All the build properties are correctly set.
Can anyone help?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Animation

2008-08-27 Thread TiMeZoNe

hi there,

i updated my project from GWT 1.5 RC1 to GWT 1.5 RC2. Now i get always
the following message, if i want compile my application:

[TRACE] Analyzing permutation #1
(*)[ERROR] An internal compiler exception occurred
[ERROR] at Animation.java(49): new Animation[animations.size()]
[ERROR] at Animation.java(49): Animation[] curAnimations = new
Animation[animations.size()];
[ERROR] at Animation.java(47): private static void updateAnimations();
[ERROR] at Animation.java(28): abstract class Animation extends
Object

the same problem when i create a new project on rc2 with the same
code. :/ in hosted mode and rc1 web mode my application works fine.

(*)
[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Error constructing
Java AST
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.translateException(GenerateJavaAST.java:
2292)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:428)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:
450)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1670)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:423)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispProcessStatement(GenerateJavaAST.java:
505)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processMethod(GenerateJavaAST.java:1408)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processType(GenerateJavaAST.java:362)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java:
2692)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:
346)
at com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:
504)
at
com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:
434)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:351)
at com.google.gwt.dev.GWTShell.compile(GWTShell.java:640)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.compile(GWTShell.java:221)
at com.google.gwt.dev.GWTShell
$BrowserWidgetHostImpl.compile(GWTShell.java:228)
at com.google.gwt.dev.shell.BrowserWidget
$Toolbar.widgetSelected(BrowserWidget.java:132)
at
org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:
90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:928)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:
3348)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2968)
at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)
Caused by: java.lang.NoSuchMethodError:
com.google.gwt.dev.jjs.ast.JClassLiteral.(Lcom/google/gwt/dev/
jjs/ast/JProgram;Lcom/google/gwt/dev/jjs/ast/JType;)V
at com.google.gwt.dev.jjs.ast.JProgram.getLiteralClass(JProgram.java:
501)
at com.google.gwt.dev.jjs.ast.JNewArray.createDims(JNewArray.java:44)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:813)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:423)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispProcessExpression(GenerateJavaAST.java:
450)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processStatement(GenerateJavaAST.java:1670)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:423)
at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispProcessStatement(Gene

Re: problem with keyboard listener on textbox

2008-08-27 Thread Michael J

Thanks for the suggestions,

I still haven't figured it out but it gave me a spot to start
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to send a dom document to a server

2008-08-27 Thread jchimene

Hi,

To actually send the document:

try {
rb.send();
}
catch (Exception e) {
throw new Exception(e);
}

Again,  the above assumes a CGI environment, not Java RPC. You'll need
machinery to handle the asynchronously handle the POST response. See
the GWT docs.

-30-

On Aug 27, 1:30 pm, jchimene <[EMAIL PROTECTED]> wrote:
> Hi,
>
> The following assumes regular CGI usage. If you're using Java RPC,
> you'll use a different technique.
>
> First, you're going to parse the source document via
> XMParser.parse().
> Document docQuestionnaire = XMLParser.parse(xmlData);
>
> You may have more machinery around the above call whose purpose is to
> put an XML string into a variable. See the examples in the GWT docs.
>
> I don't address modifying the source document in this post.
>
> To send the result, simply use the modified .parse() result:
>                 RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
> URL.encode(theHost));
>                 rb.setRequestData(docQuestionnaire.toString());
>                 rb.setHeader("Content-Length",
> String.valueOf(docQuestionnaire.toString().length()));
> Again, you will have more machinery around the above code.
>
> -30-
>
> On Aug 27, 8:26 am, max_gtbd <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > I'm writing a web app to modify an xml document.
> > the document is first loaded from a server.
> > then the modified document has to be sent back to the server.
>
> > I can't find a way to send the document back.
>
> > thx if you can help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-27 Thread Folke

You can emulate synchronous behavior by following these rules:

1. Any RPC or other call has to be made at the end of a method/
function. Theoretically, the call may return before the method has
finished. Don't put any other code at the end.
2. Don't use Timers or make sure all Timers have stopped.
3. Disable all widgets or at least those that have listeners attached
to them. Re-enable them in a function that is called by onSuccess()
and onFailure().

If you stick to these rules I'm fairly certain that your application
state will not change while the RPC is being run, but you can still
use your browser for other things. Also, synchronous calls may look
like an option to you now, but you may want your app to do other
things in parallel in the future. That is not uncommon, believe me. By
then switching to async calls may be exponentially more difficult.

I recommend you put Thread.sleep(5000); in each of your
RemoteServiceServlet methods. Then you will see how grateful your
users will be if you use asynchronous calls right from the start.



On 26 Aug., 19:53, ping2ravi <[EMAIL PROTECTED]> wrote:
> yes i do have have workaround for this, but was just wondering if i
> can use any of GWT feature.
> Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> future they are not planning to have it(they have some theory). So i
> guess need to implement my own 
> workaround.http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> But guys just a question of thought, Don't you think having a
> synchronous call feature will be added advantage.
>
> Lets say u build a application and u have something like if user
> logged out of application because of idle session then when user try
> to do anything on application. instead of forwarding him to some user
> login page , we just popup a login/password panel thing. And usually
> on click we will call the login on server and close the dialogue
> box(againw e can keep it open and in onSuccess function we can close
> it, but for me not a good idea)
> And as the call is asynchrnous so once we call the Login on server,
> user is allowed to do other click in application(before he actually
> login to server) and he will again see that u r not logged in.
> Its just a small example.
>
> But i think having synchronous call will be good thing.
>
> Thanks for reading
> Ravi.
>
> On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
>
> > can't you just do:
> > doTaskCallBack {
> >   onResponse(...) {
> >     userService.doSynchronousTask(...);
> >   }
>
> > }
>
> > Wouldn't that just give the synchronous effect?
>
> > On Mon, Aug 25, 2008 at 6:24 AM, ping2ravi <[EMAIL PROTECTED]> wrote:
>
> > > Hi All,
>
> > > Does any one know how to make Synchronous calls using GWT.
> > > Currently i am using GWT to build services, creating files like
>
> > > com.app.client.MyService.java
> > > //One function in this interface
> > > doMyTask(ParamTpye myparams) throws ClientException;
>
> > > com.app.client.MyServiceAsync.java
> > > //One function in this interface
> > > doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> > > ClientException;
>
> > > com.app.server.MyServiceImpl.java
> > > //One function in this class
> > > doMyTask(ParamTpye myparams) throws ClientException;
>
> > > now i create the service and call
> > >    MyServiceAsync userService = (MyServiceAsync)
> > > GWT.create(MyService.class);
> > >    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > >    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > >    endpoint.setServiceEntryPoint(moduleRelativeURL);
> > >    userService.doMyTask(MyParams,CallBackObject);
>
> > > This piece of code is working fine as a ASYNCHRONOUS call.
>
> > > Then i tried making is synchronous call using following code(i don't
> > > know if its valid or not)
> > > instead of using MyServiceAsync i am using MyService
>
> > >    MyService userService = (MyService) GWT.create(MyService.class);
> > >    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > >    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> > >    endpoint.setServiceEntryPoint(moduleRelativeURL);
> > >    userService.doMyTask(MyParams);
>
> > > But call to doMyTask throw following exception.
> > > java.lang.ClassCastException in MyService_Proxy.
>
> > > So i guess this is not the way to make synchronous call in GWT
> > > Can any one point me how to do that. Or its not possible at all in
> > > GWT.
>
> > > Thanks in advance.,
> > > Ravi.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: how to send a dom document to a server

2008-08-27 Thread jchimene

Hi,

The following assumes regular CGI usage. If you're using Java RPC,
you'll use a different technique.

First, you're going to parse the source document via
XMParser.parse().
Document docQuestionnaire = XMLParser.parse(xmlData);

You may have more machinery around the above call whose purpose is to
put an XML string into a variable. See the examples in the GWT docs.

I don't address modifying the source document in this post.

To send the result, simply use the modified .parse() result:
RequestBuilder rb = new RequestBuilder(RequestBuilder.POST,
URL.encode(theHost));
rb.setRequestData(docQuestionnaire.toString());
rb.setHeader("Content-Length",
String.valueOf(docQuestionnaire.toString().length()));
Again, you will have more machinery around the above code.

-30-

On Aug 27, 8:26 am, max_gtbd <[EMAIL PROTECTED]> wrote:
> Hi,
> I'm writing a web app to modify an xml document.
> the document is first loaded from a server.
> then the modified document has to be sent back to the server.
>
> I can't find a way to send the document back.
>
> thx if you can help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: do somebody know how to access private field and method in gwt widget using jsni from custom class ?

2008-08-27 Thread Rene
thanx I missed that double ()() . Dont care about compatibility if classes
are final and I am accessing protected members of super type , so protected
members are part of api and are not to change , why implemented classes are
final , I dont know.

On Wed, Aug 27, 2008 at 12:32 PM, Reinier Zwitserloot <[EMAIL PROTECTED]>wrote:

>
> Just access it. In JSNI, 'final', and 'private' do not exist.
>
> You'll need to read up on JSNI. Here's an example:
>
> public static native callGetSplitElement(HorizontalSplitPanel panel) /
> *-{
>   [EMAIL PROTECTED]::getSplitElement()
> ();
> }-*/;
>
>
> Note the double ()(). The first () is part of the getSplitElement
> signature (namely, the parameter list). The second () is the actual
> parameters. In this case, getSplitElement has no parameters, so it's
> just ()().
>
>
> Also, you're still using private parts of an API. If you use these
> tricks, your code is most likely not going to work with the next
> version of GWT. Even a small point release might change things around.
> You've been warned!
>
>
> On Aug 27, 1:23 am, Rene <[EMAIL PROTECTED]> wrote:
> > I tryed everything and allways som exception or so. There is
> > getSplitElement() in HorizontalSplitPanel , how to access it , and or
> > some field also.  I beleve that it will be very helpful also to
> > others.
> >
>


-- 
Rene Dohan

http://inno-a-dev.blogspot.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-27 Thread jchimene

Synchronous calls could make sense when one builds a standalone
application with a browser. Synchronous calls in such use cases could
be a useful tool. For example, pre-AJAX database lookups had to
preserve state in addition to returning query results.  The resulting
calls either had to fail or complete in a finite time determined
entirely by the browser environment, not user code. Either way, the
application stopped while the query was in flight. In my experience,
such code is quite difficult to maintain.

Your application design may be such that data entry in conjunction
with an in-flight database lookup doesn't make sense. Nevertheless,
it's entirely possible that the reliability and maintainability of
your application will improve by designing it using asynchronous
techniques.

The "A" in AJAX is there for a reason. There's not much point in
trying to design around it.
There are other constraints, which are designed to handle the halting
problem (?), to such synchronous remote calls as you request.

On Aug 27, 1:55 am, ping2ravi <[EMAIL PROTECTED]> wrote:
> Jason,
> I think any framework should give all options to developer to design
> his own way, and poor design and good design are all relative terms,
> so cant do generalization of that.
> But thanks for sharing your thoughts.
>
> cheers,
> Ravi  :)
>
> On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
>
> > nope, again, this use case shows a poor decision of using a  
> > synchronous request. In fact I'm not aware of a single good use of a  
> > synchronous request in a browser.
>
> > I do this very thing using Async RPCs. I start by opening a modal  
> > dialog. the user can type his credentials into the "login" dialog, and  
> > submit them.
> > The submit button is disabled as soon as it is pressed, but the dialog  
> > is not dismissed preventing any clicking anywhere else in the  
> > application.
> > Once the RPC returns indicating that the user has successfully  
> > authenticated, the dialog is dismissed, and any original RPC (that  
> > triggered the session timeout notification) is resent.
>
> > There are glass panels Modal Dialogs and other techniques that prevent  
> > the user from poking about in the application that do not lock up the  
> > browser, and any of those techniques should be used long before  
> > attempting to hack in a Synchronous request.
>
> > There is no case where you as a programmer should cause your user's UI  
> > to completely lock up. It is fine to disable bits, but synchronous  
> > requests don't play nice, they completely lock up the browser, in some  
> > cases, not allowing the user to switch tabs, or browse other pages, or  
> > even close the browser. Users don't like that, and as a result, will  
> > equate the behavior with poor programming on your part. So, just don't  
> > do it.
>
> > -jason
>
> > On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
>
> > > yes i do have have workaround for this, but was just wondering if i
> > > can use any of GWT feature.
> > > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > > future they are not planning to have it(they have some theory). So i
> > > guess need to implement my own workaround.
> > >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> > > But guys just a question of thought, Don't you think having a
> > > synchronous call feature will be added advantage.
>
> > > Lets say u build a application and u have something like if user
> > > logged out of application because of idle session then when user try
> > > to do anything on application. instead of forwarding him to some user
> > > login page , we just popup a login/password panel thing. And usually
> > > on click we will call the login on server and close the dialogue
> > > box(againw e can keep it open and in onSuccess function we can close
> > > it, but for me not a good idea)
> > > And as the call is asynchrnous so once we call the Login on server,
> > > user is allowed to do other click in application(before he actually
> > > login to server) and he will again see that u r not logged in.
> > > Its just a small example.
>
> > > But i think having synchronous call will be good thing.
>
> > > Thanks for reading
> > > Ravi.
>
> > > On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> > >> can't you just do:
> > >> doTaskCallBack {
> > >>   onResponse(...) {
> > >>     userService.doSynchronousTask(...);
> > >>   }
>
> > >> }
>
> > >> Wouldn't that just give the synchronous effect?
>
> > >> On Mon, Aug 25, 2008 at 6:24 AM,ping2ravi<[EMAIL PROTECTED]>  
> > >> wrote:
>
> > >>> Hi All,
>
> > >>> Does any one know how to make Synchronous calls using GWT.
> > >>> Currently i am using GWT to build services, creating files like
>
> > >>> com.app.client.MyService.java
> > >>> //One function in this interface
> > >>> doMyTask(ParamTpye myparams) throws ClientException;
>
> > >>> com.app.client.MyServiceAsync.java
> > >>> //One function in this interf

Re: GWT vs GWT-Ext

2008-08-27 Thread bwarner

I would recommend steering away from GWT-Ext. After working with GWT
and GWT-ext for the past 6 months, my reactions are mixed. GWT-Ext
does provide some very useful gadgets out of the box, but it is buggy,
and I found it hard to work with. In addition, it does not seem to
mesh well with the base GWT objects.

Unfortunately, there is not much else out there. I have developed my
own customer widgets to serve my own purposes, and used GWT-ext only
when needed.

Another GWT widget library I found useful was: 
http://gwt-widget.sourceforge.net/

- Bryan

On Aug 27, 2:18 pm, "Dru Devore" <[EMAIL PROTECTED]> wrote:
> Is there something else you are using instead of the ext stuff? I too decided 
> to stop trying using the ext stuff for the same reason. Original 
> Message 
> Subject: Re: GWT vs GWT-Ext
> From: "Mehdi Rabah" <[EMAIL PROTECTED]>
> Date: Wed, August 27, 2008 1:22 pm
> To: [EMAIL PROTECTED],
> GWT is the official toolkit released by Google. It provides the 
> java->javascript compiler and some basics widget.
> GWT-Ext is a wrapper around the Extjs javascript library, that use the GWT 
> compiler. It provide similar widget to GWT and some others that don't exist 
> in GWT.
> I personnaly stop using GWT-Ext because it's supported by a few developpers 
> (so it takes time to fix bugs), and due to Extjs licence change, I'm not sure 
> it will continue to be supported. Also the community is smaller, so it's 
> harder to get help.
> --
> MehdiOn Wed, Aug 27, 2008 at 6:34 AM, ArunDhaJ<[EMAIL PROTECTED]>wrote:
> Hi,
> I'm a new to this platform. While browsing on net I could see GWT and
> GWT-Ext. Is each a standalone development environment? Is GWT needs to
> installed before using GWT-Ext? Basically, I'm not getting the
> difference between these...
> -ArunDhaJ
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can i work with 2 Window

2008-08-27 Thread Ed

H... interesting... Thanks for the usefull info. I will give it a
try when I get there..

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



Re: GWT vs GWT-Ext

2008-08-27 Thread karschdn


GWT-Ext is a very pretty toolkit. That licence change is an impact
that hits me during my decission phase (which GUI i should use for my
projects). We dont want to start to write our own widgets. It is
really a crap that project licencing changes in that way but it is
difficult to avoid.

I am also interested suggestions for some GWT-EXT alternatives...
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



RE: GWT vs GWT-Ext

2008-08-27 Thread Dru Devore

Is there something else you are using instead of the ext stuff? I too decided to stop trying using the ext stuff for the same reason.

 Original Message 
Subject: Re: GWT vs GWT-Ext
From: "Mehdi Rabah" <[EMAIL PROTECTED]>
Date: Wed, August 27, 2008 1:22 pm
To: Google-Web-Toolkit@googlegroups.com

Hi,GWT is the official toolkit released by Google. It provides the java->_javascript_ compiler and some basics widget.GWT-Ext is a wrapper around the Extjs _javascript_ library, that use the GWT compiler. It provide similar widget to GWT and some others that don't exist in GWT. I personnaly stop using GWT-Ext because it's supported by a few developpers (so it takes time to fix bugs), and due to Extjs licence change, I'm not sure it will continue to be supported. Also the community is smaller, so it's harder to get help. --MehdiOn Wed, Aug 27, 2008 at 6:34 AM, ArunDhaJ <[EMAIL PROTECTED]> wrote:  Hi, I'm a new to this platform. While browsing on net I could see GWT and GWT-Ext. Is each a standalone development environment? Is GWT needs to installed before using GWT-Ext? Basically, I'm not getting the difference between these...  -ArunDhaJ
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]  For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en  -~--~~~~--~~--~--~---




Re: How to make an Emd to End application in GWT ?

2008-08-27 Thread Ian Bambury
I agree with keep it simple, just pointing out that more than one entry
point has no impact and neither does the number of modules unless they are
situated in different applications.

One entry point - one module - one application.

Good plan.



2008/8/27 walden <[EMAIL PROTECTED]>

>
> There are, arguably, more than enough ways to slice and dice with
> Modules and EntryPoints and HTML host files, and quite a bit of
> subtlty among some of the choices.  I was arguing above in favor of a
> simple model to get started.  Worrying about optimizing (which
> includes caching) later if at all.
>
> Walden
>
> On Aug 27, 12:55 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> > You can have more than one entry point in an application and it will make
> no
> > appreciable difference to the compile time, caching, compression, reuse
> or
> > deployment time
> >
> > Same goes for splitting your application into different modules.
> >
> > What *will* make a difference is if you produce different versions of the
> > application for different situations
> >
> > Ian
> >
> > 2008/8/27 jhulford <[EMAIL PROTECTED]>
> >
> >
> >
> >
> >
> >
> >
> > > On Aug 27, 7:49 am, walden <[EMAIL PROTECTED]> wrote:
> > > > Sam,
> >
> > > > It's possible (and documented in the archives of this list somewhere)
> > > > to use a single EntryPoint to instrument multiple HTML pages with
> > > > GWT.  The mechanism is to have the EntryPoint code discover which
> HTML
> > > > document it is running in, and then switch on that.  But that's
> > > > probably premature optimization in your case, and I would avoid it
> for
> > > > now.  Simpler to create an EntryPoint/Module for each page you
> > > > currently have, and use Module inheritance to reuse code.
> >
> > > You're not going to get the full benefit of caching / compression / re-
> > > use by doing that though.  Each different entry point / module will
> > > result in a separate set of javascript files.  There's definitely a
> > > trade-off in that 1 separate module per page is easier to maintain,
> > > but using 1 monolithic module will more than likely get you a better
> > > user experience.  You'll also increase your deployment compile times
> > > quite a bit doing many different entry points.
> >
> > --
> > Ian
> >
> > http://examples.roughian.com- Hide quoted text -
> >
> > - Show quoted text -
> >
>


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



Re: problem with keyboard listener on textbox

2008-08-27 Thread walden

It sounds like the box isn't getting focus.  You might want to attach
a FocusListener to monitor that.  You could also try tabbing to the
box and see if that makes a difference.  Also, do you have any
EventPreviewers active?  Just throwing out ideas...

On Aug 26, 4:29 pm, Michael J <[EMAIL PROTECTED]> wrote:
> I'm trying to create a widget that will always enter the current time
> whenever the user types 't'.  My problem is that the keyboard listener
> does not fire the first time the user clicks on the textbox with the
> mouse, and then presses a keyboard button.  If the textbox is clicked
> on a second time, the listener will fire when the user presses
> keyboard keys
>
> Below is some sample code that I'm trying.  Any help would be greatly
> appreciated.
>
> public class Testbox extends TextBox {
>
> public Testbox() {
> this.addKeyboardListener(
>   new KeyboardListenerAdapter(){
>     public void onKeyDown(Widget sender, char keyCode, int modifiers)
> {
>       GWT.log("pressing a key in testbox", null);
>     }
>   }
> );}}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT vs GWT-Ext

2008-08-27 Thread Mehdi Rabah
Hi,

GWT is the official toolkit released by Google. It provides the
java->javascript compiler and some basics widget.
GWT-Ext is a wrapper around the Extjs javascript library, that use the GWT
compiler. It provide similar widget to GWT and some others that don't exist
in GWT.

I personnaly stop using GWT-Ext because it's supported by a few developpers
(so it takes time to fix bugs), and due to Extjs licence change, I'm not
sure it will continue to be supported. Also the community is smaller, so
it's harder to get help.

--
Mehdi


On Wed, Aug 27, 2008 at 6:34 AM, ArunDhaJ <[EMAIL PROTECTED]> wrote:

>
> Hi,
> I'm a new to this platform. While browsing on net I could see GWT and
> GWT-Ext. Is each a standalone development environment? Is GWT needs to
> installed before using GWT-Ext? Basically, I'm not getting the
> difference between these...
>
> -ArunDhaJ
>
> >
>

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



Re: Getting the generated RPC POST payload in the client

2008-08-27 Thread walden

Julien,

By "large RPC call" do you mean that you would like to post a large
body of data to the server?  Sniffing around your question a bit, it
seems like you may not be aware of GWT-RPC, because sending arbitrary
amounts of data to the server using that involves no programming
gymnastics at all.  Can you clarify a bit where you are and how you
got there?

Walden

On Aug 26, 8:47 pm, Julien Wetterwald <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> My company started using GWT for a project a few weeks ago and I must
> say we all enjoy working with it. I am currently running into a small
> problem and thought some of you guys may be able to give me a few
> advices.
>
> I would like to perform a large RPC call using a nested IFRAME. In
> order to do that, I'm trying to encode the call as a GET request (by
> passing the payload as a parameter) so that I can modify the URL of
> the IFRAME.
>
> I've successfully modified my servlet to decode the call, but I have
> trouble modifying the client. I know that I won't be able to get the
> nice "method call" syntax, but I was hoping to be able to reuse parts
> of the serialization logic.
>
> Given a proxy for the remote service, the name of the method and a
> list of parameter types and values, is there a way to generate a
> string containing the payload?
>
> I tried to use createStreamWriter() of RemoteServiceProxy but the
> returned writer doesn't seem to encode the payload with the same data
> as usual calls.
>
> Thanks for your help,
> Julien
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-27 Thread walden

There are, arguably, more than enough ways to slice and dice with
Modules and EntryPoints and HTML host files, and quite a bit of
subtlty among some of the choices.  I was arguing above in favor of a
simple model to get started.  Worrying about optimizing (which
includes caching) later if at all.

Walden

On Aug 27, 12:55 pm, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> You can have more than one entry point in an application and it will make no
> appreciable difference to the compile time, caching, compression, reuse or
> deployment time
>
> Same goes for splitting your application into different modules.
>
> What *will* make a difference is if you produce different versions of the
> application for different situations
>
> Ian
>
> 2008/8/27 jhulford <[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> > On Aug 27, 7:49 am, walden <[EMAIL PROTECTED]> wrote:
> > > Sam,
>
> > > It's possible (and documented in the archives of this list somewhere)
> > > to use a single EntryPoint to instrument multiple HTML pages with
> > > GWT.  The mechanism is to have the EntryPoint code discover which HTML
> > > document it is running in, and then switch on that.  But that's
> > > probably premature optimization in your case, and I would avoid it for
> > > now.  Simpler to create an EntryPoint/Module for each page you
> > > currently have, and use Module inheritance to reuse code.
>
> > You're not going to get the full benefit of caching / compression / re-
> > use by doing that though.  Each different entry point / module will
> > result in a separate set of javascript files.  There's definitely a
> > trade-off in that 1 separate module per page is easier to maintain,
> > but using 1 monolithic module will more than likely get you a better
> > user experience.  You'll also increase your deployment compile times
> > quite a bit doing many different entry points.
>
> --
> Ian
>
> http://examples.roughian.com- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-27 Thread Ian Bambury
You can have more than one entry point in an application and it will make no
appreciable difference to the compile time, caching, compression, reuse or
deployment time

Same goes for splitting your application into different modules.

What *will* make a difference is if you produce different versions of the
application for different situations

Ian

2008/8/27 jhulford <[EMAIL PROTECTED]>

>
> On Aug 27, 7:49 am, walden <[EMAIL PROTECTED]> wrote:
> > Sam,
> >
> > It's possible (and documented in the archives of this list somewhere)
> > to use a single EntryPoint to instrument multiple HTML pages with
> > GWT.  The mechanism is to have the EntryPoint code discover which HTML
> > document it is running in, and then switch on that.  But that's
> > probably premature optimization in your case, and I would avoid it for
> > now.  Simpler to create an EntryPoint/Module for each page you
> > currently have, and use Module inheritance to reuse code.
>
> You're not going to get the full benefit of caching / compression / re-
> use by doing that though.  Each different entry point / module will
> result in a separate set of javascript files.  There's definitely a
> trade-off in that 1 separate module per page is easier to maintain,
> but using 1 monolithic module will more than likely get you a better
> user experience.  You'll also increase your deployment compile times
> quite a bit doing many different entry points.
>
> >
>


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



XMLParser.createDocument with namespace

2008-08-27 Thread mickek

Hello,

How can I create xml document with namespace?

In XMLParser ther's no API for this and doing:

  Element e = XMLParser.createDocument().createElement("body");
  e.setAttribute("xmlns", "http://jabber.org/protocol/httpbind";);

Appears not to work in ff3 because of this problem:

http://www.nabble.com/%22xnlns%22-node-attribute-removed-when-using-XMLHttpRequest.send(--document-)---or-XMLSerializer.serializeToString(-node-)---in-firefox-3-tt14215863.html#a14215863

I cant find a way to send a xml document with namespace in ff3 by
Ajax, or am I mistaken?

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



Re: How can i work with 2 Window

2008-08-27 Thread Ian Bambury
In the help window, you call a JSNI method to set up a functuin which
calls the GWT method in the ordinary JSNI way ('@' -signs <'@'%20-signs> and
'Ljava/lang/String' and all the rest), then in the owner of the help window
just use helpwindow.myMethod(parm1, parm2,...)

I've just tried it (after a bit of faffing about) and my popup blocker
didn't block it (since I clicked a button, I suppose) but it does open up in
another tab, which probably isn't what you want. And if you open a new
window, then working in the original window means the help window gets
covered. Unless the two don't overlap (but in that case, you have room to
resize the window for a dialogbox or splitpanel)

Ian

2008/8/27 Ed <[EMAIL PROTECTED]>

>
> Thanks again Ian,
>
> That's something never completely understand that popup blocker
> stuff...
> I mean: i have blocked popup's but even something I press some button
> and a new browser window opens...
> How is that ?
> If somebody presses a button, he is requesting for a it, so I can open
> it not ?...
>
> > Then in JSNI just refer to it as 'helpwindow', as in
> > helpwindow.moveTo(0,0);
>
> How can I call a gwt method in the new window ?
>
>
> >
>


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



GWT vs GWT-Ext

2008-08-27 Thread ArunDhaJ

Hi,
I'm a new to this platform. While browsing on net I could see GWT and
GWT-Ext. Is each a standalone development environment? Is GWT needs to
installed before using GWT-Ext? Basically, I'm not getting the
difference between these...

-ArunDhaJ

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



problem with keyboard listener on textbox

2008-08-27 Thread Michael J

I'm trying to create a widget that will always enter the current time
whenever the user types 't'.  My problem is that the keyboard listener
does not fire the first time the user clicks on the textbox with the
mouse, and then presses a keyboard button.  If the textbox is clicked
on a second time, the listener will fire when the user presses
keyboard keys

Below is some sample code that I'm trying.  Any help would be greatly
appreciated.

public class Testbox extends TextBox {

public Testbox() {
this.addKeyboardListener(
  new KeyboardListenerAdapter(){
public void onKeyDown(Widget sender, char keyCode, int modifiers)
{
  GWT.log("pressing a key in testbox", null);
}
  }
);}}

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



how to send a dom document to a server

2008-08-27 Thread max_gtbd

Hi,
I'm writing a web app to modify an xml document.
the document is first loaded from a server.
then the modified document has to be sent back to the server.

I can't find a way to send the document back.

thx if you can help.

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



Getting the generated RPC POST payload in the client

2008-08-27 Thread Julien Wetterwald

Hi all,

My company started using GWT for a project a few weeks ago and I must
say we all enjoy working with it. I am currently running into a small
problem and thought some of you guys may be able to give me a few
advices.

I would like to perform a large RPC call using a nested IFRAME. In
order to do that, I'm trying to encode the call as a GET request (by
passing the payload as a parameter) so that I can modify the URL of
the IFRAME.

I've successfully modified my servlet to decode the call, but I have
trouble modifying the client. I know that I won't be able to get the
nice "method call" syntax, but I was hoping to be able to reuse parts
of the serialization logic.

Given a proxy for the remote service, the name of the method and a
list of parameter types and values, is there a way to generate a
string containing the payload?

I tried to use createStreamWriter() of RemoteServiceProxy but the
returned writer doesn't seem to encode the payload with the same data
as usual calls.

Thanks for your help,
Julien

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



Re: Could not find a native method with the signature fireOnModuleLoadStart

2008-08-27 Thread Vivek Singhwal
What is the version of your IE? Is it different in other PC?
Hosted mode uses IE as a hosted browser. Try after clearing the temporary
files and history of IE browser.

-Vivek
www.gwt4enterprise.com

On Wed, Aug 27, 2008 at 7:01 PM, hezjing <[EMAIL PROTECTED]> wrote:

>
> Hi
>
> I created a GWT project from one computer, and it was tested OK with
> hosted mode.
> Then, I simply copied the entire GWT project folder to another
> computer and this will cause the same exception.
>
> Both environments are running Java 5 and GWT 1.5.1 and I'm still
> wondering why it is throwing this error.
>
> Any clue?
>
>
> On Mon, Aug 25, 2008 at 9:23 PM, hezjing <[EMAIL PROTECTED]> wrote:
> > Hi
> >
> > I encountered the following when testing the application in hosted
> > mode using GWT 1.5.1,
> >
> > [ERROR] Unable to load module entry point class
> > com.dummy.test.client.MyTest (see associated exception for details)
> > java.lang.RuntimeException: Could not find a native method with the
> > signature 'fireOnModuleLoadStart'
> >at
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:57)
> >at
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152)
> >at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447)
> >at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:248)
> >at
> com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
> >at
> com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:324)
> >at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200(BrowserWidgetIE6.java:37)
> >at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:71)
> >at
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:128)
> >at
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
> >at
> com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
> >at
> org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
> >at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
> Method)
> >at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> >at
> org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> >at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
> >at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
> >at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)
> >
> >
> > Do you have any idea of what does this exception means?
> >
> >
> > --
> >
> > Hez
> >
>
>
>
> --
>
> Hez
>
> >
>

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



-overwrite, -ignore and -addToClassPath

2008-08-27 Thread hezjing

Hi

Both projectCreator and applicationCreator have these options,
-overwrite = Overwrite any existing files,
-ignore = Ignore any existing files; do not overwrite,
-addToClassPath = Adds extra elements to the class path of files in
the skeleton.

I guess the -overwrite and -ignore are use on the existing project,
but why does someone wants to execute the tools with these options?

When do we use -addToClassPath?


-- 

Hez

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



Re: HistoryListener Delay in IE

2008-08-27 Thread bwarner

In addition, I am using GWT 1.4.62. I momentarily upgraded to the 1.5
RC2 , but I did not see any improvements.

On Aug 27, 11:16 am, bwarner <[EMAIL PROTECTED]> wrote:
> I am noticing some strange behavior in IE7 with the HistoryListener.
> It seems that when I click on a hyperlink in my application using IE,
> there is always a 2-3 second delay before the onHistoryChanged method
> is actually called. I have tested this with Window.alerts() in the
> beginning of the onHistoryChanged method, and it is consistent across
> all my pages.
>
> When I test my application in Mozilla (2.1 & 3.0), there is no lag,
> and the onHistoryChanged method is immediately called (making a very
> more responsive application).
>
> I have been developing an application with GWT for the past 5 months,
> so the Javascript is quite large (~1.1 MB OBF). I have many modules
> (30-40), and for now, I have them included all under one entry point.
> I could break them out into 3 entry points, but I wanted to get some
> feedback on what might be the possible problem. Is having one entry
> point (and thus a large JS file) the culprit in IE? Or is it just a
> browser problem? From what I understand, events bubble up in IE, and
> thus there could be a delay before the onHistoryChanged handles the
> event.
>
> Has anyone else noticed similar behavior? It just seems annoying
> because it makes the application seem very unresponsive in IE.
> Whatever feedback would be appreciated.
>
> Thanks
> Bryan
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



HistoryListener Delay in IE

2008-08-27 Thread bwarner

I am noticing some strange behavior in IE7 with the HistoryListener.
It seems that when I click on a hyperlink in my application using IE,
there is always a 2-3 second delay before the onHistoryChanged method
is actually called. I have tested this with Window.alerts() in the
beginning of the onHistoryChanged method, and it is consistent across
all my pages.

When I test my application in Mozilla (2.1 & 3.0), there is no lag,
and the onHistoryChanged method is immediately called (making a very
more responsive application).

I have been developing an application with GWT for the past 5 months,
so the Javascript is quite large (~1.1 MB OBF). I have many modules
(30-40), and for now, I have them included all under one entry point.
I could break them out into 3 entry points, but I wanted to get some
feedback on what might be the possible problem. Is having one entry
point (and thus a large JS file) the culprit in IE? Or is it just a
browser problem? From what I understand, events bubble up in IE, and
thus there could be a delay before the onHistoryChanged handles the
event.

Has anyone else noticed similar behavior? It just seems annoying
because it makes the application seem very unresponsive in IE.
Whatever feedback would be appreciated.

Thanks
Bryan
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-27 Thread Jason Essington

GWT is a powerful framework, and it is certainly possible to create a  
Synchronous XHR with it, but it is such an epically bad idea that 1)  
it is not available by default, 2) everyone who is familiar with GWT  
development is warning you against doing it, and 3) we sure aren't  
going to go through the effort to write the code to do it for you.

As for the code clarity, argument, my async code is quite clear and  
maintainable. The request type really has nothing to do with how clear  
or readable your code is.

That said, if you really want to create synchronous requests then  
you'll need to look at the request builder code to see how the Async  
requests are done, then do a google search on javascript  
XMLHTTPRequest and see how to make the request synchronous. then  
extend request builder (or create a parallel class) to do that.

But remember this is the programming equivalent of designing a wall  
heater with the express design decision to start the consumers house  
on fire. It really is that bad!

-jason


On Aug 27, 2008, at 2:55 AM, ping2ravi wrote:

>
> Jason,
> I think any framework should give all options to developer to design
> his own way, and poor design and good design are all relative terms,
> so cant do generalization of that.
> But thanks for sharing your thoughts.
>
> cheers,
> Ravi  :)
>
> On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
>> nope, again, this use case shows a poor decision of using a
>> synchronous request. In fact I'm not aware of a single good use of a
>> synchronous request in a browser.
>>
>> I do this very thing using Async RPCs. I start by opening a modal
>> dialog. the user can type his credentials into the "login" dialog,  
>> and
>> submit them.
>> The submit button is disabled as soon as it is pressed, but the  
>> dialog
>> is not dismissed preventing any clicking anywhere else in the
>> application.
>> Once the RPC returns indicating that the user has successfully
>> authenticated, the dialog is dismissed, and any original RPC (that
>> triggered the session timeout notification) is resent.
>>
>> There are glass panels Modal Dialogs and other techniques that  
>> prevent
>> the user from poking about in the application that do not lock up the
>> browser, and any of those techniques should be used long before
>> attempting to hack in a Synchronous request.
>>
>> There is no case where you as a programmer should cause your user's  
>> UI
>> to completely lock up. It is fine to disable bits, but synchronous
>> requests don't play nice, they completely lock up the browser, in  
>> some
>> cases, not allowing the user to switch tabs, or browse other pages,  
>> or
>> even close the browser. Users don't like that, and as a result, will
>> equate the behavior with poor programming on your part. So, just  
>> don't
>> do it.
>>
>> -jason
>>
>> On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
>>
>>
>>
>>> yes i do have have workaround for this, but was just wondering if i
>>> can use any of GWT feature.
>>> Also i read in GWT FAQ, GWT do not support Synchronous calls and in
>>> future they are not planning to have it(they have some theory). So i
>>> guess need to implement my own workaround.
>>> http://code.google.com/support/bin/answer.py? 
>>> answer=55195&topic=10210
>>
>>> But guys just a question of thought, Don't you think having a
>>> synchronous call feature will be added advantage.
>>
>>> Lets say u build a application and u have something like if user
>>> logged out of application because of idle session then when user try
>>> to do anything on application. instead of forwarding him to some  
>>> user
>>> login page , we just popup a login/password panel thing. And usually
>>> on click we will call the login on server and close the dialogue
>>> box(againw e can keep it open and in onSuccess function we can close
>>> it, but for me not a good idea)
>>> And as the call is asynchrnous so once we call the Login on server,
>>> user is allowed to do other click in application(before he actually
>>> login to server) and he will again see that u r not logged in.
>>> Its just a small example.
>>
>>> But i think having synchronous call will be good thing.
>>
>>> Thanks for reading
>>> Ravi.
>>
>>> On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
 can't you just do:
 doTaskCallBack {
   onResponse(...) {
 userService.doSynchronousTask(...);
   }
>>
 }
>>
 Wouldn't that just give the synchronous effect?
>>
 On Mon, Aug 25, 2008 at 6:24 AM,ping2ravi<[EMAIL PROTECTED]>
 wrote:
>>
> Hi All,
>>
> Does any one know how to make Synchronous calls using GWT.
> Currently i am using GWT to build services, creating files like
>>
> com.app.client.MyService.java
> //One function in this interface
> doMyTask(ParamTpye myparams) throws ClientException;
>>
> com.app.client.MyServiceAsync.java
> //One function in this interface
> doMyTask(ParamTpye myparams,AsyncCallback callback) th

Re: Error Upgrading to GWT 1.5 from 1.4

2008-08-27 Thread Fernando from Argentina

Hi doopa,

Thanks for answering. here is my main module (the one I'm trying to
run)































in the entry that says   it
refers to this content (classes.gwt.xml)











and here is for a example how one of this modules are
declared ...dialogedit.WidgetLibrary:








This is waorking great en GWT 1.4.6 but when I try to change to 1.5 it
gives me thos errors. I think taht ther is a change in the form that
GWT 1.5 constract the classpaths


Thanks,
Fernando.


On 27 ago, 11:22, doopa <[EMAIL PROTECTED]> wrote:
> Could you post you module.gwt.xml files please?
>
> On Aug 12, 7:49 pm, Fernando from Argentina <[EMAIL PROTECTED]>
> wrote:
>
> > I had a medium size project that is working inGWT1.4perfectly. I
> > have a
> > jar with common code that I use in several project. All my projects
> > are multilingual so to keep thing easy to follow I made different
> > modules with each properties files with the translations. This all
> > work great on1.4(I have in each module a .gwt.xml with the  > path=... ). But when I useGWT1.5it doesn't compile at all. It
> > doesn't even find the classes in the main project. Here is the
> > compilation:
>
> > Removing units with errors
> >    [ERROR] Errors in 'file:/C:/JavaProjects/ZHCC/src/com/zonahelp/
> > client/SearchC
> > ompanyContactsDataProvider.java'
> >       [ERROR] Line 8: No source code is available for type
> > com.chillka.ccm.clien
> > t.widgets.common.SearchDataProviderFactory; did you forget to inherit
> > a required
> >  module?
> >    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> > com/chillka/
> > ccm/client/rpc/accounts/UsersByNameItems.java'
> >       [ERROR] Line 10: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.CompletionItems; did you forget to inherit a
> > required module?
> >       [ERROR] Line 12: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> > inherit a requir
> > ed module?
> >    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> > com/chillka/
> > ccm/client/rpc/accounts/CompanyAccountsByNameItems.java'
> >       [ERROR] Line 10: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.CompletionItems; did you forget to inherit a
> > required module?
> >       [ERROR] Line 12: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> > inherit a requir
> > ed module?
> >    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> > com/chillka/
> > ccm/client/rpc/accounts/ContactsByNameItems.java'
> >       [ERROR] Line 10: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.CompletionItems; did you forget to inherit a
> > required module?
> >       [ERROR] Line 12: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> > inherit a requir
> > ed module?
> >    [ERROR] Errors in 'file:/C:/JavaProjects/ZHCC/src/com/zonahelp/
> > client/ZHServi
> > ceGWTAsync.java'
> >       [ERROR] Line 23: No source code is available for type
> > com.zonahelp.client.
> > ccm.helpdesk.HdTicket; did you forget to inherit a required module?
> >       [ERROR] Line 25: No source code is available for type
> > com.zonahelp.client.
> > ccm.contracts.Contract; did you forget to inherit a required module?
> >    [ERROR] Errors in 'file:/C:/JavaProjects/ZHCC/src/com/zonahelp/
> > client/Contact
> > InfoWidget.java'
> >       [ERROR] Line 43: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.AutoCompleteTextBox; did you forget to inherit a
> > required modu
> > le?
> >       [ERROR] Line 55: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.SearchGridWidget; did you forget to inherit a
> > required module?
>
> >       [ERROR] Line 56: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.SearchWidgetNotifier; did you forget to inherit a
> > required mod
> > ule?
> >       [ERROR] Line 57: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.ObjectActivityNotifier; did you forget to inherit a
> > required m
> > odule?
> >       [ERROR] Line 60: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.EditedDataNotifier; did you forget to inherit a
> > required modul
> > e?
> >       [ERROR] Line 62: No source code is available for type
> > com.chillka.ccm.clie
> > nt.widgets.common.BreadcrumbNotifier; did you forget to inherit a
> > required modul
> > 

Re: Error Upgrading to GWT 1.5 from 1.4

2008-08-27 Thread doopa

Could you post you module.gwt.xml files please?

On Aug 12, 7:49 pm, Fernando from Argentina <[EMAIL PROTECTED]>
wrote:
> I had a medium size project that is working in GWT 1.4 perfectly. I
> have a
> jar with common code that I use in several project. All my projects
> are multilingual so to keep thing easy to follow I made different
> modules with each properties files with the translations. This all
> work great on 1.4 (I have in each module a .gwt.xml with the  path=... ). But when I use GWT 1.5 it doesn't compile at all. It
> doesn't even find the classes in the main project. Here is the
> compilation:
>
> Removing units with errors
>    [ERROR] Errors in 'file:/C:/JavaProjects/ZHCC/src/com/zonahelp/
> client/SearchC
> ompanyContactsDataProvider.java'
>       [ERROR] Line 8: No source code is available for type
> com.chillka.ccm.clien
> t.widgets.common.SearchDataProviderFactory; did you forget to inherit
> a required
>  module?
>    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> com/chillka/
> ccm/client/rpc/accounts/UsersByNameItems.java'
>       [ERROR] Line 10: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItems; did you forget to inherit a
> required module?
>       [ERROR] Line 12: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> inherit a requir
> ed module?
>    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> com/chillka/
> ccm/client/rpc/accounts/CompanyAccountsByNameItems.java'
>       [ERROR] Line 10: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItems; did you forget to inherit a
> required module?
>       [ERROR] Line 12: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> inherit a requir
> ed module?
>    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> com/chillka/
> ccm/client/rpc/accounts/ContactsByNameItems.java'
>       [ERROR] Line 10: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItems; did you forget to inherit a
> required module?
>       [ERROR] Line 12: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> inherit a requir
> ed module?
>    [ERROR] Errors in 'file:/C:/JavaProjects/ZHCC/src/com/zonahelp/
> client/ZHServi
> ceGWTAsync.java'
>       [ERROR] Line 23: No source code is available for type
> com.zonahelp.client.
> ccm.helpdesk.HdTicket; did you forget to inherit a required module?
>       [ERROR] Line 25: No source code is available for type
> com.zonahelp.client.
> ccm.contracts.Contract; did you forget to inherit a required module?
>    [ERROR] Errors in 'file:/C:/JavaProjects/ZHCC/src/com/zonahelp/
> client/Contact
> InfoWidget.java'
>       [ERROR] Line 43: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.AutoCompleteTextBox; did you forget to inherit a
> required modu
> le?
>       [ERROR] Line 55: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.SearchGridWidget; did you forget to inherit a
> required module?
>
>       [ERROR] Line 56: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.SearchWidgetNotifier; did you forget to inherit a
> required mod
> ule?
>       [ERROR] Line 57: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.ObjectActivityNotifier; did you forget to inherit a
> required m
> odule?
>       [ERROR] Line 60: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.EditedDataNotifier; did you forget to inherit a
> required modul
> e?
>       [ERROR] Line 62: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.BreadcrumbNotifier; did you forget to inherit a
> required modul
> e?
>       [ERROR] Line 193: No source code is available for type
> com.chillka.ccm.cli
> ent.widgets.accounts.ContactEditWidget; did you forget to inherit a
> required mod
> ule?
>       [ERROR] Line 214: No source code is available for type
> com.chillka.ccm.cli
> ent.widgets.common.AutoCompleteContainerNotifier; did you forget to
> inherit a re
> quired module?
>       [ERROR] Line 247: No source code is available for type
> com.chillka.ccm.cli
> ent.widgets.common.SearchGridNotifier; did you forget to inherit a
> required modu
> le?
>    [ERROR] Errors in 'jar:file:/C:/Temp/Java/Chillka/ccmclient.jar!/
> com/chillka/
> ccm/client/rpc/accounts/GroupsByNameItems.java'
>       [ERROR] Line 10: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItems; did you forget to inherit a
> required module?
>       [ERROR] Line 12: No source code is available for type
> com.chillka.ccm.clie
> nt.widgets.common.CompletionItemsAsyncReturn; did you forget to
> inh

Re: How can i work with 2 Window

2008-08-27 Thread Ed

Thanks again Ian,

That's something never completely understand that popup blocker
stuff...
I mean: i have blocked popup's but even something I press some button
and a new browser window opens...
How is that ?
If somebody presses a button, he is requesting for a it, so I can open
it not ?...

> Then in JSNI just refer to it as 'helpwindow', as in
> helpwindow.moveTo(0,0);

How can I call a gwt method in the new window ?


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



Re: How can i work with 2 Window

2008-08-27 Thread Ian Bambury
As long as the new browser window was initiated by your app, there shouldn't
be a problem communicating between the two.

You'd have to write your own JSNI functions to control it, but it's quite
possible.

Window.open("help.htm", "helpwindow",
"location=0,status=0,scrollbars=1,width=150,height=200");

Then in JSNI just refer to it as 'helpwindow', as in

helpwindow.moveTo(0,0);

The only problem you'll hit is that most people will have popup blockers
which will stop it showing, whereas the minimisable dialogbox will always be
allowed or course.

Ian

2008/8/27 Ed <[EMAIL PROTECTED]>

>
> He Ian, thanks for your reply
>
> > Can't you just display a (non-modal) dialogbox (minimisable) with the
> help?
>
> Ofcourse I can that and that will probably also be my only option, as
> I don't see any way to let two gwt applications in separate windows
> talk with eachother...
>
> It just would be nice to have my help in a separate window, such that
> it can be dragged outside the main application.
>
> A split panel isn't such a bad idea, such that the user can lock-in
> the popup on the west side.
>
>
> >
>


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



Re: How can i work with 2 Window

2008-08-27 Thread Ed

He Ian, thanks for your reply

> Can't you just display a (non-modal) dialogbox (minimisable) with the help?

Ofcourse I can that and that will probably also be my only option, as
I don't see any way to let two gwt applications in separate windows
talk with eachother...

It just would be nice to have my help in a separate window, such that
it can be dragged outside the main application.

A split panel isn't such a bad idea, such that the user can lock-in
the popup on the west side.


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



Re: Apparent content size inflation with GWT RPC - the cure?

2008-08-27 Thread Ian Petersen

Are you using GWT RPC or are you using some kind of hand-rolled JSON
format?  Could you post a sample payload?

Ian

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



Re: Query : Synchronous calls in GWT

2008-08-27 Thread walden

al0,

No, actually it's not a workaround.  Its an even better user
experience, because if the controls on the page still look like they
are active (but they're not because the browser is locked up), then
the app is lying to the user, whereas if the controls are explicitly
inactive, then we're telling the truth.

Your point about code clarity is valid.  But consider this tradeoff:

Option A: your code is clear, but your user is confused and frustrated
trying to use your site
Option B: your code is spaghetti, but your user is delighted and keeps
coming back

Sure, these are extremes, chosen to make the point, but which do you
choose?

Walden

On Aug 27, 9:04 am, al0 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Your use of a modal dialog, greyed button  constitutes just a
> workaround ror and (absent) synchronous call. If latter would be
> present your code would be min. 3 times shorter and (IMHO) much more
> clear.
>
> Oleksandr
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to make an Emd to End application in GWT ?

2008-08-27 Thread jhulford

On Aug 27, 7:49 am, walden <[EMAIL PROTECTED]> wrote:
> Sam,
>
> It's possible (and documented in the archives of this list somewhere)
> to use a single EntryPoint to instrument multiple HTML pages with
> GWT.  The mechanism is to have the EntryPoint code discover which HTML
> document it is running in, and then switch on that.  But that's
> probably premature optimization in your case, and I would avoid it for
> now.  Simpler to create an EntryPoint/Module for each page you
> currently have, and use Module inheritance to reuse code.

You're not going to get the full benefit of caching / compression / re-
use by doing that though.  Each different entry point / module will
result in a separate set of javascript files.  There's definitely a
trade-off in that 1 separate module per page is easier to maintain,
but using 1 monolithic module will more than likely get you a better
user experience.  You'll also increase your deployment compile times
quite a bit doing many different entry points.

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



Re: Query : Synchronous calls in GWT

2008-08-27 Thread walden

ping2ravi,

It's true that good and poor are relative terms, and it's also true
that design can be viewed as a matter of selecting among tradeoffs.
The reason you (and others) receive so much flack on this list for
stubbornly insisting on a synchronous RPC mechanism is that it trades
off user experience so horribly that it couldn't ever possibly be the
right thing.  Whether or not you buy into that worldview, please
realize that it is the position of the GWT founders (specifically:
user experience comes first), and is unlikely to change.

Walden

On Aug 27, 4:55 am, ping2ravi <[EMAIL PROTECTED]> wrote:
> Jason,
> I think any framework should give all options to developer to design
> his own way, and poor design and good design are all relative terms,
> so cant do generalization of that.
> But thanks for sharing your thoughts.
>
> cheers,
> Ravi  :)
>
> On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
>
>
>
> > nope, again, this use case shows a poor decision of using a  
> > synchronous request. In fact I'm not aware of a single good use of a  
> > synchronous request in a browser.
>
> > I do this very thing using Async RPCs. I start by opening a modal  
> > dialog. the user can type his credentials into the "login" dialog, and  
> > submit them.
> > The submit button is disabled as soon as it is pressed, but the dialog  
> > is not dismissed preventing any clicking anywhere else in the  
> > application.
> > Once the RPC returns indicating that the user has successfully  
> > authenticated, the dialog is dismissed, and any original RPC (that  
> > triggered the session timeout notification) is resent.
>
> > There are glass panels Modal Dialogs and other techniques that prevent  
> > the user from poking about in the application that do not lock up the  
> > browser, and any of those techniques should be used long before  
> > attempting to hack in a Synchronous request.
>
> > There is no case where you as a programmer should cause your user's UI  
> > to completely lock up. It is fine to disable bits, but synchronous  
> > requests don't play nice, they completely lock up the browser, in some  
> > cases, not allowing the user to switch tabs, or browse other pages, or  
> > even close the browser. Users don't like that, and as a result, will  
> > equate the behavior with poor programming on your part. So, just don't  
> > do it.
>
> > -jason
>
> > On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
>
> > > yes i do have have workaround for this, but was just wondering if i
> > > can use any of GWT feature.
> > > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > > future they are not planning to have it(they have some theory). So i
> > > guess need to implement my own workaround.
> > >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> > > But guys just a question of thought, Don't you think having a
> > > synchronous call feature will be added advantage.
>
> > > Lets say u build a application and u have something like if user
> > > logged out of application because of idle session then when user try
> > > to do anything on application. instead of forwarding him to some user
> > > login page , we just popup a login/password panel thing. And usually
> > > on click we will call the login on server and close the dialogue
> > > box(againw e can keep it open and in onSuccess function we can close
> > > it, but for me not a good idea)
> > > And as the call is asynchrnous so once we call the Login on server,
> > > user is allowed to do other click in application(before he actually
> > > login to server) and he will again see that u r not logged in.
> > > Its just a small example.
>
> > > But i think having synchronous call will be good thing.
>
> > > Thanks for reading
> > > Ravi.
>
> > > On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> > >> can't you just do:
> > >> doTaskCallBack {
> > >>   onResponse(...) {
> > >>     userService.doSynchronousTask(...);
> > >>   }
>
> > >> }
>
> > >> Wouldn't that just give the synchronous effect?
>
> > >> On Mon, Aug 25, 2008 at 6:24 AM,ping2ravi<[EMAIL PROTECTED]>  
> > >> wrote:
>
> > >>> Hi All,
>
> > >>> Does any one know how to make Synchronous calls using GWT.
> > >>> Currently i am using GWT to build services, creating files like
>
> > >>> com.app.client.MyService.java
> > >>> //One function in this interface
> > >>> doMyTask(ParamTpye myparams) throws ClientException;
>
> > >>> com.app.client.MyServiceAsync.java
> > >>> //One function in this interface
> > >>> doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> > >>> ClientException;
>
> > >>> com.app.server.MyServiceImpl.java
> > >>> //One function in this class
> > >>> doMyTask(ParamTpye myparams) throws ClientException;
>
> > >>> now i create the service and call
> > >>>    MyServiceAsync userService = (MyServiceAsync)
> > >>> GWT.create(MyService.class);
> > >>>    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> > >>>    Stri

Re: Could not find a native method with the signature fireOnModuleLoadStart

2008-08-27 Thread hezjing

Hi

I created a GWT project from one computer, and it was tested OK with
hosted mode.
Then, I simply copied the entire GWT project folder to another
computer and this will cause the same exception.

Both environments are running Java 5 and GWT 1.5.1 and I'm still
wondering why it is throwing this error.

Any clue?


On Mon, Aug 25, 2008 at 9:23 PM, hezjing <[EMAIL PROTECTED]> wrote:
> Hi
>
> I encountered the following when testing the application in hosted
> mode using GWT 1.5.1,
>
> [ERROR] Unable to load module entry point class
> com.dummy.test.client.MyTest (see associated exception for details)
> java.lang.RuntimeException: Could not find a native method with the
> signature 'fireOnModuleLoadStart'
>at 
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvokeOnWindow(ModuleSpaceIE6.java:57)
>at 
> com.google.gwt.dev.shell.ie.ModuleSpaceIE6.doInvoke(ModuleSpaceIE6.java:152)
>at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:447)
>at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:248)
>at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
>at 
> com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:324)
>at 
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200(BrowserWidgetIE6.java:37)
>at 
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:71)
>at 
> com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:128)
>at 
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
>at 
> com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
>at 
> org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
>at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:721)
>at com.google.gwt.dev.GWTShell.run(GWTShell.java:594)
>at com.google.gwt.dev.GWTShell.main(GWTShell.java:358)
>
>
> Do you have any idea of what does this exception means?
>
>
> --
>
> Hez
>



-- 

Hez

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



Apparent content size inflation with GWT RPC - the cure?

2008-08-27 Thread Jferg

Recently,  I was researching a way to get rid of an XML document we
use in our Web based app for state communication.  The hope was that
JSON/GWT RPC would crush out all the tag and attribute noise we had in
the document.

For smaller sets of data, this seemed to be true, though the savings
was only 30% reduction and the time cost on the client side kind of
made that iffy.. it was smaller.

However, when I ramped up the testing from a 3K XML document to a 34K
one... ouch.  The content-length of the posted data inflated to 54K?

Basically I have a simple set of DTOs, one is an xml node that has
name and text fields, an array or 0 or more node children, and a
reference to attributes.  Our XML follows a pattern and this pattern
seemed most simply captured in this structure.

Now, I have tried hashtables for the attributes and the size seemed to
be a little more for that.  I also tried a List for the child nodes..
no improvement.  (FYI - Of course, I did the gwt.argType
annotations).

The HEX dump using Fiddler shows a lot of encoding, the content header
seems to indicate utf-8 encoding.  Now, I know in some cases UTF-8 can
inflate string length (if I recall for non-ASCII chars).  however,
this is all ASCII in this test.

A co-worker looked at the hex stream and suggested some binary data is
being encoded using Base64.  Hmmm?  What binary data?  All the content
of my DTOs is String or it is null.

Is there some explanation of this phenomena I can read?  My searches
so far turn up nothing.  It just seems counter intuitive that a chatty
XML file is more efficient than a lean JSON DTO.

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



Re: TextBox.setFocus() not working as expected in Firefox

2008-08-27 Thread Derek Battams

On Aug 25, 4:16 am, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On 23 août, 14:17, Derek Battams <[EMAIL PROTECTED]> wrote:
>
> >   tBox2.addFocusListener(new FocusListenerAdapter() {
> >   @Override
> >   public void onLostFocus(Widget sender) {
> >   TextBox tBox = (TextBox)sender;
> >   if(!tBox.getText().equals("good"))
> >   tBox.setFocus(true);
> >   }
> >   });
>
> Playing with the focus from within focus events is not handle the same
> by all browsers, try using a DeferredCommand for your tBox.setFocus()
> call.

Just to wrap this one up, using the DeferredCommand was the way to go.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How can i work with 2 Window

2008-08-27 Thread Ian Bambury
@breder

Can't you just display a (modal) dialogbox with the options?
@Ed

Can't you just display a (non-modal) dialogbox (minimisable) with the help?
Or put the whole thing in a splitpanel with the help to one side or
underneath?

Ian

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



Re: Query : Synchronous calls in GWT

2008-08-27 Thread al0

Hi,

Your use of a modal dialog, greyed button  constitutes just a
workaround ror and (absent) synchronous call. If latter would be
present your code would be min. 3 times shorter and (IMHO) much more
clear.

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



Re: How can i work with 2 Window

2008-08-27 Thread breder

My case is :

I have a page that have a textbox and a button. This button will open
another window that have many options for the content of the textbox,
like a list of picture to be selected. I can't solve this problem,
putting a combobox. I still need to put another window. if a click in
the picture, this action will set the text of textbox ( from the first
page ) to the path of the picture.

On Aug 26, 3:52 pm, walden <[EMAIL PROTECTED]> wrote:
> It assumes the firstwindowopened the second one, which is not
> exactly the meaning of "no connection in theory".  Time to ask the big-
> picture question.  What is the overall intent?
>
> Walden
>
> On Aug 26, 10:34 am, "alex.d" <[EMAIL PROTECTED]> wrote:
>
> > Well, JavaScript allows you to do it. I don't remember the syntax
> > precisely but it goes smth. like this:
>
> > open a new browserwindow:
>
> > var w =window.open("http://...";);
>
> > to reach the openedwindow:
>
> > w.window...
>
> > to reach the parent from the openedwindow:
>
> > opener.window
>
> > Not sure if this work with all browsers. Also security issues possible
> > like walden mentioned.
>
> > On 26 Aug., 16:00, walden <[EMAIL PROTECTED]> wrote:
>
> > > There is a huge security issue with what you want to do, and I don't
> > > think it is possible.  I was trying to offer a workable alternative.
>
> > > Walden
>
> > > On Aug 26, 9:36 am, breder <[EMAIL PROTECTED]> wrote:
>
> > > > A page with UI Tab, share the same information. I am ask for page that
> > > > don't have any connection in theory, but there are same action between
> > > > they.
>
> > > > On Aug 25, 9:39 am, walden <[EMAIL PROTECTED]> wrote:
>
> > > > > Use UI Tabs instead of Pages.
>
> > > > > On Aug 22, 10:20 am, breder <[EMAIL PROTECTED]> wrote:
>
> > > > > > I want to work with2page at the same time. If you click in the
> > > > > > button from the first page, i will change a field in the second 
> > > > > > page.
> > > > > > Of couse, the order doesn´t metter, the action from the first to the
> > > > > > second and the second to the first.- Hide quoted text -
>
> > > > - Show quoted text -- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Text Area autosize

2008-08-27 Thread Axel Kittenberger

Positioning things in a textarea is at least close to impossible...
thats why I started my project http://code.google.com/p/axedarea/
first place, it is useable to a certain degree, but you yet won't find
you being truely happy with it, as especially on the WYSIWYG quite
some front stuff is missing. As pure Texteditor with a lot of
additional awareness (like size, where each line/letter is positioned,
copy/paste events, keyboard events) it works already quite nice... And
AFAIK it has currently the best online VIM emulation avialable.

On Aug 26, 8:49 pm, Folke <[EMAIL PROTECTED]> wrote:
> You can simply adjust the "height" until "scrollHeight" is equals to
> "clientHeight".
> The problem is that you cannot use this to shrink the TextArea
> automatically. In this case you would have to set the height to
> something very low, like 10px, and then check scrollHeight and
> readjust "height" again.
>
> On 26 Aug., 11:59, "jakob.korherr" <[EMAIL PROTECTED]> wrote:
>
> > I'm afraid it is not that easy. You can not just count the '\n's in
> > the text, because you also have to look at the length of each line. As
> > we all know if the line is longer than the width of the textarea, it
> > will display the new words in a new line automatically and without a
> > '\n'.
>
> > So you have to:
>
> > 1) count the '\n's in the text
> > 2) take a look at the length of every line and find out how often it
> > is broken automatically (maybe with scrollWidth - I don't know..)
>
> > On Aug 25, 10:31 am, Jason Morris <[EMAIL PROTECTED]> wrote:
>
> > > Theres no automatic way to do this. What you would need to do is:
>
> > > Add a KeyboardListener to the TextArea and in onKeyDown look for the 
> > > number of
> > > lines in the TextArea's content (plus one if the key is KEY_ENTER). Use
> > > TextArea.setVisibleLines to make sure that the size of the TextArea is >= 
> > > the
> > > number of lines in it's content.
>
> > > Something like:
>
> > > final TextArea text = new TextArea();
>
> > > text.addKeyboardListener(new KeyboardListenerAdapter() {
> > > public void onKeyDown(Widget sender, char keyCode, int mods) {
> > > int lines = 0;
> > > final String content = text.getText();
>
> > > for(int i = 0; i != -1; i = content.indexOf("\n", i + 1)) 
> > > {
> > > lines++;
> > > }
>
> > > if(keyCode == KEY_ENTER) {
> > > lines++;
> > > }
>
> > > if(text.getVisibleLines() < lines) {
> > > text.setVisibleLines(lines);
> > > }
> > > }
>
> > > });
>
> > > Should do the trick.
>
> > > sri wrote:
> > > > Hello,
> > > > I'm new to GWT. Is there a way to NOT have a scrollbar for the
> > > > TextArea and have it grow automatically when data goes beyond the
> > > > visible lines? We do not use gwt-ext. I was able to take the scrollbar
> > > > out with overflow:hidden but was not able to do the autosize part.
>
> > > > Thanks in advance for any help.
>
> > > > -sri
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why there isn't a hideWidget() method in DeckPanel?

2008-08-27 Thread Dhandapani

Thanks for your replies. It is just the choice of 'deck panel' seems
to be wrong.

On Jul 1, 10:51 pm, kozura <[EMAIL PROTECTED]> wrote:
> The intent of the Deck panel is to show exactly one of its children,
> so showWidget makes one visible and hides the rest.  For instance it's
> used in tab panels to show one panel based on the tab selected.  If
> you're looking to show more than one, then you simply need to use a
> different panel, and manipulate the children visibility with their
> Widget.setVisible(boolean) methods; no need to use DOM functions.
>
> On Jul 1, 6:48 am, Dhandapani <[EMAIL PROTECTED]> wrote:
>
> > Hi
>
> > I try to implement a scenario where I have three panels displayed
> > initially.
>
> > Then,
> > 1. On clicking the first panel I need to show the third and hide the
> > second
> > 2. On clicking the second panel I need to show the first and hide and
> > third
> > 3. On clicking the third panel I need to show the second and hide the
> > first
>
> > I dont find a supporting hideWidget() method while there is a
> > showWidget(int index) method.
>
> > How do i achieve hiding a particular panel? Is the only way - retrieve
> > all the indices and compare it with that of currently shown? When I
> > have not assigned an ElementId for the panels i have created, is it
> > possible to achieve this through DOM.getElement().?
>
> > You help is appreciated.
> > Thanks,
> > Dhandapani.
>
> > Why there isn't a hideWidget() method in DeckPanel?
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-27 Thread Ian Bambury
Hi Waiden,

I put forward a way of getting the (AFAICT) desired result, but the OP still
seems to want to lock the user out of the browser.

The OP's question was (and still seems to be) how to do this.

Ian (aka Lan)

2008/8/27 walden <[EMAIL PROTECTED]>

>
> Hi group,
>
> First of all, Ian, when I sent your wife for beer 7 years ago, she
> returned immediately with the cold ones.  I'm not sure what happened
> in your case, maybe something in your environment [you?] that accounts
> for the different result.
>
> It occurs to me [being serious now] that when newbs ask about
> synchronous calls in GWT, what they really want to know is how to
> create a localized synchronous experience, not how to lock up all
> browser resources.  A localized synchronous experience is simply one
> where all of the controls in the immediate UI are disabled, where
> "immediate UI" is subject to definition on a case-by-case basis.  I
> could be just one sub-panel in the UI, or the entire tab, etc.
> Nevertheless, the *intent* is to communicate to the user "not ready".
>
> I think we've all erred on the side of thread theoretics too much in
> answering this question when it comes up.  The recent mention of glass
> panels and otherwise disabled UI controls is a step in the right
> direction.
>
> Walden
>

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



Re: Dynamic Evaluation

2008-08-27 Thread walden

Gaurav,

Sorry to disappoint.  I'm not sure how or why you would port that to
GWT.  Maybe someone else on the list can be of more help to you.

Walden

On Aug 27, 12:15 am, masterGaurav <[EMAIL PROTECTED]> wrote:
> Hi Walden,
>
> Thanks for your response.
>
> I am working on DWT - the GWT port of Dojo Toolkit.
> In Dojo Toolkit, we support widgets based on templates. In templates,
> each node (element) can be referred to by an member variable (instance
> variable) through what is referred to as dojoAttachPoint.
>
> For example, my "Label" widget may have a template as follows:
>
>  span>
>
> Once the template-parser parses the templates, it creates two
> variables - domNode and anchorNode - referring to the corresponding
> element-nodes. Now, in the object (read: class) backing the template,
> I can directly refer to these elements by saying, this.anchorNode.
>
> What I am trying to do is providing a support for the same.
>
> One idea that comes to my mind is to create a "HashMap Element> attachPoints" and populate the same.
>
> A simple demo at
>  http://eduzine.edujini-labs.com/archives/33-Creating-Custom-Widget-in...
> may give you an idea of what dojoAttachPoint does.
>
> Looking forward to your suggestions!
>
> --
> Happy Hacking,
> Gauravhttp://sf.net/projects/dwthttp://eduzine.edujini-labs.comhttp://blogs.mastergaurav.com
> --
>
> On Aug 25, 6:15 pm, walden <[EMAIL PROTECTED]> wrote:
>
>
>
> > Gaurav,
>
> > I think you're trying to do something that GWT does not support, as
> > GWT builds a lot of its value atop the notion of a statically-typed
> > language (Java).
>
> > About your use case: it's not one.  If you would write a use case with
> > a real actor, I'll bet we could find a statically-typed design that
> > would satisfy it.
>
> > Walden
>
> > On Aug 24, 3:11 am,masterGaurav<[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I have a scenario wherein I need to refer to methods/fields in the
> > > class that may be created on the fly - similar to how it is possible
> > > in JavaScript.
>
> > > Or, how do I refer to any field/function if I know the object-context
> > > and the property-name at runtime?
>
> > > Would it be mandatory to make the type inherited from
> > > JavaScriptObject? If that's the case, I lose "public constructor" and
> > > non-final methods. :(
>
> > > What's the best way around?
>
> > > The use-case is:
>
> > > I need to load some entries from configuration settings and then
> > > populate the object. The entries may include setting values to
> > > properties. The values may be simple numeric/string/boolean or
> > > reference to functions (function names), and then I need to refer to
> > > those properties/functions dynamically.
>
> > > Thanks in Advance!
>
> > > --
> > > Cheers,
> > > Gaurav Vaishhttp://www.edujini-labs.comhttp://www.mastergaurav.com
> > > -- 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: VerticalSplitPanel setSplitPosition fails

2008-08-27 Thread Ian Bambury
@gregor

If you have two (GWT) pages and page A has a tabpanel and the tabpanel has a
splitpanel, then if the splitpanel is not showing and you go to the other
page and back, then click the splitpanel tab, it will have gone awry again.

It also assumes that the tabpanel is aware that the tab contains a
splitpanel. If the splitpanel is created on the fly depending on the
situation of the user/data/time-of-day/whatever and if the tabpanel might
get hidden, and/or if a disclosure panel is involved, then it all gets
rather complicated

@loott

I don't think adding it to the rootpanel will be easy since you will have
problems trying to line it up/resize it with a window resize and so on.

I'm sure the GWT team didn't intentionally design it this way. They are very
focused on functionality and cross-browser support but seem to have a bit of
a blind-spot (maybe lack of resources for testing) when it comes to how
things might be used (or even how things *are* being used).

I expect they will fix it eventually - how fast is anyone's guess. There are
some seemingly simple fixes that fix problems which are obviously wrong
which have been around for ages. Others get sorted almost immediately. Their
priorities are different to ours. Well, it's their product...

Gregor's workaround should be OK if you aren't going to swap the tabpanel
(or a parent) out of the DOM and back again.

Ian

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



Re: How to make an Emd to End application in GWT ?

2008-08-27 Thread walden

Sam,

It's possible (and documented in the archives of this list somewhere)
to use a single EntryPoint to instrument multiple HTML pages with
GWT.  The mechanism is to have the EntryPoint code discover which HTML
document it is running in, and then switch on that.  But that's
probably premature optimization in your case, and I would avoid it for
now.  Simpler to create an EntryPoint/Module for each page you
currently have, and use Module inheritance to reuse code.

Keeping your current page structure is antithetical to using "DOM
manipulation"; you do one or the other or some mix of each, but it's
an architecture decision to subsume what are now two HTML pages into a
single HTML page with richer DOM control.  As Len says, you are
looking down a path now where it will be key to discover pages that
should be combined like that.  Call it Document Refactoring: moving
the boundaries of pages for a richer web experience in an evolutionary
way.  Get Martin Fowler involved; co-author a best-seller :-).

Walden

On Aug 27, 12:40 am, Sam <[EMAIL PROTECTED]> wrote:
> Hello all,
> Thanks a lot for your valuabel help. What are all the options that you
> said sounds quite appealing if I am going to create my product rt from
> scratch. But in my case , we do have a stabel product and we are
> planning to use GWT for some of the widely used pages as well as for
> the forthcoming enhancements. So if we are planning to go for using
> GWT with the exsisting web pages which are legacy web pages, we have
> to go for either DOM manupulation or we can write a class for each web
> page as per above discusion , rt ?
> Thanks
> Samir
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



EnumMap and RPC serialization

2008-08-27 Thread gregber

Hi everyone

I'm using GWT 1.5.1, I have:

public enum EnumAppState implements Serializable {
  currentModule,
  currentWindow
}

public class AppStateContainer implements Serializable {

private HashMap map;

public AppStateContainer() {
map=new HashMap();
}
/*  other methods */
}

and class AppStateContainer goes throught RPC serialization fine, but
when i change HashMap to EnumMap like this:

public class AppStateContainer implements Serializable {

private EnumMap map;  /* causes compilation
ERROR*/

public AppStateContainer() {
map=new EnumMap(EnumAppState.class);
}
/* other methods */
}

GWT give mi compilation error: "[ERROR] Type '(..).AppStateContainer'
was not serializable and has no concrete serializable subtypes"

EnumMap is emulated by GWT, why serialization won't work? Are any
performance differences in implementation between  EnumMap and HashMap
in GWT emulation?

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



Re: Query : Synchronous calls in GWT

2008-08-27 Thread walden

Hi group,

First of all, Ian, when I sent your wife for beer 7 years ago, she
returned immediately with the cold ones.  I'm not sure what happened
in your case, maybe something in your environment [you?] that accounts
for the different result.

It occurs to me [being serious now] that when newbs ask about
synchronous calls in GWT, what they really want to know is how to
create a localized synchronous experience, not how to lock up all
browser resources.  A localized synchronous experience is simply one
where all of the controls in the immediate UI are disabled, where
"immediate UI" is subject to definition on a case-by-case basis.  I
could be just one sub-panel in the UI, or the entire tab, etc.
Nevertheless, the *intent* is to communicate to the user "not ready".

I think we've all erred on the side of thread theoretics too much in
answering this question when it comes up.  The recent mention of glass
panels and otherwise disabled UI controls is a step in the right
direction.

Walden

On Aug 27, 7:06 am, "Ian Bambury" <[EMAIL PROTECTED]> wrote:
> Ravi,
>
> You can't give developers all options to design their own way. JavaScript
> doesn't do all options, therefore you can't have all options in GWT.
>
> The only thing a synchronous call does which an async call doesn't, is to
> lock up the user's browser - all tabs, not just yours.
>
> This is, relatively speaking, bad, when compared to allowing the user to
> continue to use his/her computer while your application goes and does
> something. And it may be a generalisation, but nevertheless, I think it's
> true to say that bad things are not good.
>
> Say I have two tabs, your app and Google search. Can you give me one (just
> one) instance where you need (let alone have the right) to stop me using
> Google search while your application is off doing something?
>
> And how would you stop me if I had two browser windows open?
>
> Synchronous calls are bad relative to the alternative.
>
> Ian
>
> 2008/8/27 ping2ravi <[EMAIL PROTECTED]>
>
>
>
>
>
>
>
> > Jason,
> > I think any framework should give all options to developer to design
> > his own way, and poor design and good design are all relative terms,
> > so cant do generalization of that.
> > But thanks for sharing your thoughts.
>
> > cheers,
> > Ravi  :)
>
> > On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
> > > nope, again, this use case shows a poor decision of using a
> > > synchronous request. In fact I'm not aware of a single good use of a
> > > synchronous request in a browser.
>
> > > I do this very thing using Async RPCs. I start by opening a modal
> > > dialog. the user can type his credentials into the "login" dialog, and
> > > submit them.
> > > The submit button is disabled as soon as it is pressed, but the dialog
> > > is not dismissed preventing any clicking anywhere else in the
> > > application.
> > > Once the RPC returns indicating that the user has successfully
> > > authenticated, the dialog is dismissed, and any original RPC (that
> > > triggered the session timeout notification) is resent.
>
> > > There are glass panels Modal Dialogs and other techniques that prevent
> > > the user from poking about in the application that do not lock up the
> > > browser, and any of those techniques should be used long before
> > > attempting to hack in a Synchronous request.
>
> > > There is no case where you as a programmer should cause your user's UI
> > > to completely lock up. It is fine to disable bits, but synchronous
> > > requests don't play nice, they completely lock up the browser, in some
> > > cases, not allowing the user to switch tabs, or browse other pages, or
> > > even close the browser. Users don't like that, and as a result, will
> > > equate the behavior with poor programming on your part. So, just don't
> > > do it.
>
> > > -jason
>
> > > On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
>
> > > > yes i do have have workaround for this, but was just wondering if i
> > > > can use any of GWT feature.
> > > > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > > > future they are not planning to have it(they have some theory). So i
> > > > guess need to implement my own workaround.
> > > >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> > > > But guys just a question of thought, Don't you think having a
> > > > synchronous call feature will be added advantage.
>
> > > > Lets say u build a application and u have something like if user
> > > > logged out of application because of idle session then when user try
> > > > to do anything on application. instead of forwarding him to some user
> > > > login page , we just popup a login/password panel thing. And usually
> > > > on click we will call the login on server and close the dialogue
> > > > box(againw e can keep it open and in onSuccess function we can close
> > > > it, but for me not a good idea)
> > > > And as the call is asynchrnous so once we call the Login on server,
> >

Re: Query : Synchronous calls in GWT

2008-08-27 Thread Ian Bambury
Ravi,

You can't give developers all options to design their own way. JavaScript
doesn't do all options, therefore you can't have all options in GWT.

The only thing a synchronous call does which an async call doesn't, is to
lock up the user's browser - all tabs, not just yours.

This is, relatively speaking, bad, when compared to allowing the user to
continue to use his/her computer while your application goes and does
something. And it may be a generalisation, but nevertheless, I think it's
true to say that bad things are not good.

Say I have two tabs, your app and Google search. Can you give me one (just
one) instance where you need (let alone have the right) to stop me using
Google search while your application is off doing something?

And how would you stop me if I had two browser windows open?

Synchronous calls are bad relative to the alternative.

Ian



2008/8/27 ping2ravi <[EMAIL PROTECTED]>

>
> Jason,
> I think any framework should give all options to developer to design
> his own way, and poor design and good design are all relative terms,
> so cant do generalization of that.
> But thanks for sharing your thoughts.
>
> cheers,
> Ravi  :)
>
> On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
> > nope, again, this use case shows a poor decision of using a
> > synchronous request. In fact I'm not aware of a single good use of a
> > synchronous request in a browser.
> >
> > I do this very thing using Async RPCs. I start by opening a modal
> > dialog. the user can type his credentials into the "login" dialog, and
> > submit them.
> > The submit button is disabled as soon as it is pressed, but the dialog
> > is not dismissed preventing any clicking anywhere else in the
> > application.
> > Once the RPC returns indicating that the user has successfully
> > authenticated, the dialog is dismissed, and any original RPC (that
> > triggered the session timeout notification) is resent.
> >
> > There are glass panels Modal Dialogs and other techniques that prevent
> > the user from poking about in the application that do not lock up the
> > browser, and any of those techniques should be used long before
> > attempting to hack in a Synchronous request.
> >
> > There is no case where you as a programmer should cause your user's UI
> > to completely lock up. It is fine to disable bits, but synchronous
> > requests don't play nice, they completely lock up the browser, in some
> > cases, not allowing the user to switch tabs, or browse other pages, or
> > even close the browser. Users don't like that, and as a result, will
> > equate the behavior with poor programming on your part. So, just don't
> > do it.
> >
> > -jason
> >
> > On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
> >
> >
> >
> > > yes i do have have workaround for this, but was just wondering if i
> > > can use any of GWT feature.
> > > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > > future they are not planning to have it(they have some theory). So i
> > > guess need to implement my own workaround.
> > >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
> >
> > > But guys just a question of thought, Don't you think having a
> > > synchronous call feature will be added advantage.
> >
> > > Lets say u build a application and u have something like if user
> > > logged out of application because of idle session then when user try
> > > to do anything on application. instead of forwarding him to some user
> > > login page , we just popup a login/password panel thing. And usually
> > > on click we will call the login on server and close the dialogue
> > > box(againw e can keep it open and in onSuccess function we can close
> > > it, but for me not a good idea)
> > > And as the call is asynchrnous so once we call the Login on server,
> > > user is allowed to do other click in application(before he actually
> > > login to server) and he will again see that u r not logged in.
> > > Its just a small example.
> >
> > > But i think having synchronous call will be good thing.
> >
> > > Thanks for reading
> > > Ravi.
> >
> > > On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> > >> can't you just do:
> > >> doTaskCallBack {
> > >>   onResponse(...) {
> > >> userService.doSynchronousTask(...);
> > >>   }
> >
> > >> }
> >
> > >> Wouldn't that just give the synchronous effect?
> >
> > >> On Mon, Aug 25, 2008 at 6:24 AM,ping2ravi<[EMAIL PROTECTED]>
> > >> wrote:
> >
> > >>> Hi All,
> >
> > >>> Does any one know how to make Synchronous calls using GWT.
> > >>> Currently i am using GWT to build services, creating files like
> >
> > >>> com.app.client.MyService.java
> > >>> //One function in this interface
> > >>> doMyTask(ParamTpye myparams) throws ClientException;
> >
> > >>> com.app.client.MyServiceAsync.java
> > >>> //One function in this interface
> > >>> doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> > >>> ClientException;
> >
> > >>> com.app.server.MyServiceImpl.java
> > >>> //

Re: GWT page detect as Virus in NOD32 anti virus

2008-08-27 Thread Reinier Zwitserloot

Yes. You have a virus, or your installation of NOD32 is borked.

In other words, it's just you.

On Aug 27, 7:31 am, "Fitrus...The Rising"
<[EMAIL PROTECTED]> wrote:
> I have create a page in GWT, when I run it on system having ie6 with
> antivirus NOD32 it gives me error that it found trogan virus "BAT /
> FormatC trojan " on page.
> Can anyone know about it. your help will be appreciated.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: do somebody know how to access private field and method in gwt widget using jsni from custom class ?

2008-08-27 Thread Reinier Zwitserloot

Just access it. In JSNI, 'final', and 'private' do not exist.

You'll need to read up on JSNI. Here's an example:

public static native callGetSplitElement(HorizontalSplitPanel panel) /
*-{
   [EMAIL PROTECTED]::getSplitElement()
();
}-*/;


Note the double ()(). The first () is part of the getSplitElement
signature (namely, the parameter list). The second () is the actual
parameters. In this case, getSplitElement has no parameters, so it's
just ()().


Also, you're still using private parts of an API. If you use these
tricks, your code is most likely not going to work with the next
version of GWT. Even a small point release might change things around.
You've been warned!


On Aug 27, 1:23 am, Rene <[EMAIL PROTECTED]> wrote:
> I tryed everything and allways som exception or so. There is
> getSplitElement() in HorizontalSplitPanel , how to access it , and or
> some field also.  I beleve that it will be very helpful also to
> others.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: New GWT SlideShow

2008-08-27 Thread jakob.korherr

cool!

On Aug 27, 11:17 am, mon3y <[EMAIL PROTECTED]> wrote:
> reallly nice, good job, :)
>
> On Aug 26, 5:44 am, Rekkai <[EMAIL PROTECTED]> wrote:
>
> > Hi,
> > We have developed a GWT wrapper for Lightbox slideshow.
> > Please checkout the code fromhttp://www.codelathe.com/gwtsshow/
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sending a variable between embeded HTML and GWT?

2008-08-27 Thread jakob.korherr

I have the same problem and I thought of using JSNI to fix it, but I
didn't try it until now.

You have to write a JSNI-Method, which defines a JavaScript-Method
that calls the Java-Code you want.
Something like that:

public native void initJavaScriptCall() /*-{
$wnd.callJava = function() {
[EMAIL PROTECTED]::functionToCall()();
}
}-*/

public void functionToCall() {
 //TODO...
}

and then call the JavaScript-Function with the Hyperlink:

Link

Hope this works! Jakob


On Aug 27, 11:54 am, darkflame <[EMAIL PROTECTED]> wrote:
> Actualy, my original technique works, only not in hosted mode.
> odd.
>
> On Aug 27, 8:32 am, darkflame <[EMAIL PROTECTED]> wrote:
>
> > I have some HTML embeded in a basic HTML frame in my GWT app.
>
> > What Id like to do is use links in the frame to effect the GWT app.
> > I thought at first I could do this using the history state and
> > bookmarks.
> > Set up the HTML so the links are like;
>
> > apple
>
> > And then use the "onHistoryChanged" in the app to detect the change
> > and return "apple".
>
> > Only the event dosnt seem to fire. I'm guessing because it isnt a real
> > history change, just adding the token onto the end of the url.
>
> > So does anyone have any ideas how to do this?
> > Preferable keeping the embeded html as simple as possible.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



tabbed buttons with Hyperlink

2008-08-27 Thread [EMAIL PROTECTED]

hi all,
  i have developed tabs in my web application. Tabs in my
application are nothing but hyperlinks with background image.
when you select the link(or tab) it shows selected image as
background. Otherwise it shows unselected image as background.

my code is:-
hLink_.setStyleName("evpn-tabbedButton");

and css is:--
.evpn-tabbedButton a:link
{
font-size: 12px;
font-family: Arial;
color: #ff;
text-align: center;
white-space: nowrap;
background: no-repeat center top url ('/
com.infovista.vistamart.evpn.Home/resources/images/
tab_unselected.gif');
width: 79px;
height: 17px;
}
.evpn-tabbedButton a:active
{
font-size: 12px;
font-family: Arial;
color: #ff;
text-align: center;
white-space: nowrap;
background: no-repeat center top url('/
com.infovista.vistamart.evpn.Home/resources/images/tab_selected.gif');
width: 79px;
height: 17px;
}

 But in my application, tabs are working completely like links
(not like tabbed buttons). If I select a tab(menas hyperlink) then it
is appearing like selected tab(means background is selected image).
but if i click any where on the browser then the selected tab(link) is
appearing as if it is not selected(because background image is
changing to unselected image).
How can i implement the code in such a way that hyperlinks should work
as tabs with selected. unselected, and hover style sheets.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Sending a variable between embeded HTML and GWT?

2008-08-27 Thread darkflame

Actualy, my original technique works, only not in hosted mode.
odd.


On Aug 27, 8:32 am, darkflame <[EMAIL PROTECTED]> wrote:
> I have some HTML embeded in a basic HTML frame in my GWT app.
>
> What Id like to do is use links in the frame to effect the GWT app.
> I thought at first I could do this using the history state and
> bookmarks.
> Set up the HTML so the links are like;
>
> apple
>
> And then use the "onHistoryChanged" in the app to detect the change
> and return "apple".
>
> Only the event dosnt seem to fire. I'm guessing because it isnt a real
> history change, just adding the token onto the end of the url.
>
> So does anyone have any ideas how to do this?
> Preferable keeping the embeded html as simple as possible.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: VerticalSplitPanel setSplitPosition fails

2008-08-27 Thread gregor

Hi Loott,

You should be able to get the split panel to position it's splitter
when its tab opens using a TabListener and calling
sp.setSplitPosition(..) from onTabSelected(). You only need to do this
once, I believe. After that the split panel will remember its splitter
position and re-open properly. Clunky because you'd have too keep some
boolean variable to indicate the SP has been opened, but I think it
would work. If I'm wrong and it doesn't remember, then you could save
the percent split position value and use it for repeated calls from
onTabSelected(..).

I had a look at the source for the split panels the other day when Ian
posted about this, and as I recall the root of the problem is that HSP/
VSP have a onLoad() method that issues a DeferredCommand to size the
left and right containers and set the split position. If the Sp is not
visible it has no height or width to work with, so split position is
always zero.

I can't find an issue raised for this on the issue tracker, although I
think it is briefly mentioned on issue 1599

http://code.google.com/p/google-web-toolkit/issues/detail?id=1599&q=split%20panel


regards
gregor



On Aug 27, 9:02 am, loott <[EMAIL PROTECTED]> wrote:
> Hello Ian,
>
> thank you for your answer. It's disapointing to know i can't add a
> SplitPanel inside a TabPanel :( as it's a very common user interface
> case.
>
> I suppose i will have to add the splitpanel to RootPanel for example
> and make it visible or invisible when the tab is clicked or use the
> deferred commands as you say or something like that...
>
> It's not a good solution concerning the design of the application, do
> you know any other cleaner solution? Do you know if there's a interest
> in GWT to allow this or is it assumed that this should be the
> behaviour of SplitPanels?
>
> Thank you
>
> Best Regards
>
> Jorge
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: For GWT developers : Using final and private across code , makes extending classes hard or mostly impossible, makes classes less readable and makes life with java harder overal

2008-08-27 Thread Rene

How can I create patch to compiled gwt jar and remove f.e final
keyword from HorizontalSplitPanel ? Is it possible ?

On Aug 26, 8:54 pm, Thomas Broyer <[EMAIL PROTECTED]> wrote:
> On Aug 26, 7:11 pm, danael <[EMAIL PROTECTED]> wrote:
>
>
>
> > "... just simply take the HorizontalSplitPanel.java original class
> > file form svn and remake it to your needs ?"
> > If I wanted to maintain my own API, I would not be using somebody
> > else's, would I? I want to use standard GWT components and, at the
> > same time, I want to be able to subclass them to add some extra
> > functionality when I need it. As mentioned, previously, branching our
> > own code for a component is not the way to go, it is the best way to
> > run into cross browser bugs and maintenance issues along the way.
>
> How about just maintaining a patch to GWT? Whenever you want to update
> GWT, apply your patch to the new JAR (or compile/package from source)
> and see if your subclasses still compile and run as expected.
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: New GWT SlideShow

2008-08-27 Thread mon3y

reallly nice, good job, :)

On Aug 26, 5:44 am, Rekkai <[EMAIL PROTECTED]> wrote:
> Hi,
> We have developed a GWT wrapper for Lightbox slideshow.
> Please checkout the code fromhttp://www.codelathe.com/gwtsshow/
--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Query : Synchronous calls in GWT

2008-08-27 Thread ping2ravi

Jason,
I think any framework should give all options to developer to design
his own way, and poor design and good design are all relative terms,
so cant do generalization of that.
But thanks for sharing your thoughts.

cheers,
Ravi  :)

On Aug 26, 7:14 pm, Jason Essington <[EMAIL PROTECTED]> wrote:
> nope, again, this use case shows a poor decision of using a  
> synchronous request. In fact I'm not aware of a single good use of a  
> synchronous request in a browser.
>
> I do this very thing using Async RPCs. I start by opening a modal  
> dialog. the user can type his credentials into the "login" dialog, and  
> submit them.
> The submit button is disabled as soon as it is pressed, but the dialog  
> is not dismissed preventing any clicking anywhere else in the  
> application.
> Once the RPC returns indicating that the user has successfully  
> authenticated, the dialog is dismissed, and any original RPC (that  
> triggered the session timeout notification) is resent.
>
> There are glass panels Modal Dialogs and other techniques that prevent  
> the user from poking about in the application that do not lock up the  
> browser, and any of those techniques should be used long before  
> attempting to hack in a Synchronous request.
>
> There is no case where you as a programmer should cause your user's UI  
> to completely lock up. It is fine to disable bits, but synchronous  
> requests don't play nice, they completely lock up the browser, in some  
> cases, not allowing the user to switch tabs, or browse other pages, or  
> even close the browser. Users don't like that, and as a result, will  
> equate the behavior with poor programming on your part. So, just don't  
> do it.
>
> -jason
>
> On Aug 26, 2008, at 11:53 AM,ping2raviwrote:
>
>
>
> > yes i do have have workaround for this, but was just wondering if i
> > can use any of GWT feature.
> > Also i read in GWT FAQ, GWT do not support Synchronous calls and in
> > future they are not planning to have it(they have some theory). So i
> > guess need to implement my own workaround.
> >http://code.google.com/support/bin/answer.py?answer=55195&topic=10210
>
> > But guys just a question of thought, Don't you think having a
> > synchronous call feature will be added advantage.
>
> > Lets say u build a application and u have something like if user
> > logged out of application because of idle session then when user try
> > to do anything on application. instead of forwarding him to some user
> > login page , we just popup a login/password panel thing. And usually
> > on click we will call the login on server and close the dialogue
> > box(againw e can keep it open and in onSuccess function we can close
> > it, but for me not a good idea)
> > And as the call is asynchrnous so once we call the Login on server,
> > user is allowed to do other click in application(before he actually
> > login to server) and he will again see that u r not logged in.
> > Its just a small example.
>
> > But i think having synchronous call will be good thing.
>
> > Thanks for reading
> > Ravi.
>
> > On Aug 26, 5:03 pm, "Pavel Byles" <[EMAIL PROTECTED]> wrote:
> >> can't you just do:
> >> doTaskCallBack {
> >>   onResponse(...) {
> >>     userService.doSynchronousTask(...);
> >>   }
>
> >> }
>
> >> Wouldn't that just give the synchronous effect?
>
> >> On Mon, Aug 25, 2008 at 6:24 AM,ping2ravi<[EMAIL PROTECTED]>  
> >> wrote:
>
> >>> Hi All,
>
> >>> Does any one know how to make Synchronous calls using GWT.
> >>> Currently i am using GWT to build services, creating files like
>
> >>> com.app.client.MyService.java
> >>> //One function in this interface
> >>> doMyTask(ParamTpye myparams) throws ClientException;
>
> >>> com.app.client.MyServiceAsync.java
> >>> //One function in this interface
> >>> doMyTask(ParamTpye myparams,AsyncCallback callback) throws
> >>> ClientException;
>
> >>> com.app.server.MyServiceImpl.java
> >>> //One function in this class
> >>> doMyTask(ParamTpye myparams) throws ClientException;
>
> >>> now i create the service and call
> >>>    MyServiceAsync userService = (MyServiceAsync)
> >>> GWT.create(MyService.class);
> >>>    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> >>>    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> >>>    endpoint.setServiceEntryPoint(moduleRelativeURL);
> >>>    userService.doMyTask(MyParams,CallBackObject);
>
> >>> This piece of code is working fine as a ASYNCHRONOUS call.
>
> >>> Then i tried making is synchronous call using following code(i don't
> >>> know if its valid or not)
> >>> instead of using MyServiceAsync i am using MyService
>
> >>>    MyService userService = (MyService) GWT.create(MyService.class);
> >>>    ServiceDefTarget endpoint = (ServiceDefTarget) userService;
> >>>    String moduleRelativeURL = GWT.getModuleBaseURL() + "MyService";
> >>>    endpoint.setServiceEntryPoint(moduleRelativeURL);
> >>>    userService.doMyTask(MyParams);
>
> >>> But call to doMyTask throw following excep

Re: How we can stop control until we receive complete response from GWT

2008-08-27 Thread Ed

He Feroz,

Just another idea to stop-and-wait which I use:

I use events everywhere across my app to control what should happen,
like app-init, start-..., etc..

The events are catched by pieces of code that can indicate in the
received event, that it must wait further dispatching any event (=
stopping the app).
When the response is received, I inform the event that it can
continue, such that the central dispatcher will start dispatching all
events that it had received after the wait request.

I use this mainly during startup to load some CMS files.


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



Re: How can i work with 2 Window

2008-08-27 Thread Ed

Interesting discussion, something I still have to solve as well.

In my case (not exactly the same as the starter of this discussion) I
have a GWT help window (looks like the MS help) that I want to control
from within my main GWT application. That is: if someone clicks the
help button next to some item on the main GWT application (window) I
want to open (if it wasn't open already) the  help GWT app in a
separate window and control the information it shows. The help window
doesn't need to know anything about the main app, except that it would
be nice if it can report that it was closed.
I would like the help to be in a separate window such that the user
can put it anywhere he wants.

How is it possible to control the help GWT app (controlling the
information that is shown) from within my main GWT app (that contain
the help "pointers")?


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



RSS Reader Module

2008-08-27 Thread [EMAIL PROTECTED]

Hi All,

I am looking for an RSS Reader module for GWT. I am mainly interested
in the rendering side of the module versus fetching the feeds.

Thanks for your help,

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



Re: VerticalSplitPanel setSplitPosition fails

2008-08-27 Thread loott

Hello Ian,

thank you for your answer. It's disapointing to know i can't add a
SplitPanel inside a TabPanel :( as it's a very common user interface
case.

I suppose i will have to add the splitpanel to RootPanel for example
and make it visible or invisible when the tab is clicked or use the
deferred commands as you say or something like that...

It's not a good solution concerning the design of the application, do
you know any other cleaner solution? Do you know if there's a interest
in GWT to allow this or is it assumed that this should be the
behaviour of SplitPanels?


Thank you

Best Regards

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