Re: Compilation Error with jar dependency

2012-03-07 Thread Vicky
Solved it. Need to include java src files in the jar along with the
class files.

FYI, for folks who might not know, GWT needs the java source (and not
the byte code) to compile to javascript.

On Mar 6, 9:38 pm, Vicky vicky...@gmail.com wrote:
 Hi

 I am using GWT 2.4. I have a use case where i need to use classes from
 a certain jar file. As part of the GWT project in eclipse i added that
 jar file as a classpath dependency. With this my java compilation went
 through successfully. However when i tried to do a GWT compile it
 failed with the followingerror,

 [java]    [ERROR] An internal compiler exception occurred
 [java] com.google.gwt.dev.jjs.InternalCompilerException: Failed to get
 JNode
 [java]     at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:
 140)
 [java]     at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
 [java]     at
 com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
 730)
 [java]     at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
 $000(BuildTypeMap.java:99)
 [java]     at com.google.gwt.dev.jjs.impl.BuildTypeMap
 $BuildDeclMapVisitor.visit(BuildTypeMap.java:195)
 [java]     at
 org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse(LocalDeclaration.java:
 237)
 [java]     at
 org.eclipse.jdt.internal.compiler.ast.ForeachStatement.traverse(ForeachStatement.java:
 527)
 [java]     at
 org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:
 239)
 [java]     at
 org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
 1239)
 [java]     at
 org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:
 687)
 [java]     at
 com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:
 637)
 [java]     at
 com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:514)
 [java]     at
 com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:523)
 [java]     at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
 599)
 [java]     at
 com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
 33)
 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:
 284)
 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:
 233)
 [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:
 145)
 [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:232)
 [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:198)
 [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
 [java]     at
 com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
 [java]     at
 com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
 82)
 [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:177)
 [java]       [ERROR] nosourceinfo:publicinterface
 com.temp.operator.IBuilderOperator
 [java]     extends java.lang.Object
 [java] /*   methods   */
 [java]publicabstract java.lang.String getValue()
 [java]

 Firstly why is GWT not able to resolve this dependency. Secondly how
 do i solve this issue.

 Thanks,
 Vicky

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



Compilation Error with jar dependency

2012-03-06 Thread Vicky
Hi

I am using GWT 2.4. I have a use case where i need to use classes from
a certain jar file. As part of the GWT project in eclipse i added that
jar file as a classpath dependency. With this my java compilation went
through successfully. However when i tried to do a GWT compile it
failed with the following error,

[java][ERROR] An internal compiler exception occurred
[java] com.google.gwt.dev.jjs.InternalCompilerException: Failed to get
JNode
[java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:
140)
[java] at com.google.gwt.dev.jjs.impl.TypeMap.get(TypeMap.java:71)
[java] at
com.google.gwt.dev.jjs.impl.BuildTypeMap.getType(BuildTypeMap.java:
730)
[java] at com.google.gwt.dev.jjs.impl.BuildTypeMap.access
$000(BuildTypeMap.java:99)
[java] at com.google.gwt.dev.jjs.impl.BuildTypeMap
$BuildDeclMapVisitor.visit(BuildTypeMap.java:195)
[java] at
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration.traverse(LocalDeclaration.java:
237)
[java] at
org.eclipse.jdt.internal.compiler.ast.ForeachStatement.traverse(ForeachStatement.java:
527)
[java] at
org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse(MethodDeclaration.java:
239)
[java] at
org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse(TypeDeclaration.java:
1239)
[java] at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse(CompilationUnitDeclaration.java:
687)
[java] at
com.google.gwt.dev.jjs.impl.BuildTypeMap.createPeersForNonTypeDecls(BuildTypeMap.java:
637)
[java] at
com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:514)
[java] at
com.google.gwt.dev.jjs.impl.BuildTypeMap.exec(BuildTypeMap.java:523)
[java] at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
599)
[java] at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
33)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:
284)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:
233)
[java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:
145)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
[java] at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
[java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
82)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
[java]   [ERROR] no source info: public interface
com.temp.operator.IBuilderOperator
[java] extends java.lang.Object
[java] /*   methods   */
[java] public abstract java.lang.String getValue()
[java]

Firstly why is GWT not able to resolve this dependency. Secondly how
do i solve this issue.

Thanks,
Vicky

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



RequestBuilder.sendRequest not working as expected

2012-01-03 Thread Vicky
Hi,

I am trying to use this API by passing the required data and callback
value. I know the data should be in the form
name1=value1name2=value2.

The base URL does not have any existing query parameters. Also the
request type is GET.

The API does not throw any exception, it makes the server call but the
query parameters do not reach the server end.

As a workaround i, put these parameters as part of the URL itself as ?
name1=value1name2=value2, while passing null in sendRequest call.
This worked perfectly fine.

I don't understand why does this not work when passing data as part of
sendRequest API but works if passed directly as part of the URL.

Thanks,
Vicky

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



Re: RequestBuilder.sendRequest not working as expected

2012-01-03 Thread Vicky
Aah ok. So what you are saying is, in case of GET i should append it
to the URL itself as part of the query parameters and use setData or
pass it via sendRequest only when using a POST (i.e. sending data via
body).

On Jan 3, 5:47 pm, Thomas Broyer t.bro...@gmail.com wrote:
 A GET request has no body, and the first argument to sendRequest
 (equivalent to calling setData) represents the request body. Therefore,
 passing anything other than null or an empty string makes no sense for a
 GET request. Your workaround is actually the proper way of doing it.

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



Differences between Firefox and IE7

2011-04-07 Thread Vicky
I was going through the tutorial available on GWT website for
StockWatcher application and testing the application as described in
Step4: Manage Events on the Client.

Below piece of code behaves differently in Firefox and IE7. In IE7
this works well, i.e. If I enter some junk characters in Text field
and hit Enter event.getCharCode() == KeyCodes.KEY_ENTER line gets
executed successfully and I could see an alert message. However this
same line does not work, if I use Firefox.

When I use Firefox, event.getCharCode returns some junk character.
What am I doing wrong here? or is this expected behaviour?


newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
  public void onKeyPress(KeyPressEvent event) {
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
  addStock();
}
  }
});

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



Book that covers latest GWT release

2011-04-06 Thread Vicky
Team,

I was looking at all the Books reference provided on GWT site at
http://code.google.com/webtoolkit/books.html.

I did not see any of the books that covers the latest GWT releases. I
looked in Ryan Dewsbury's Google Web Toolkit Application, but found
the content to be stale when Ryan started describing about very first
application in the book.

Is there any other book that is missing from your list that is most up
to date, or there is none?

Thanks,
Vicky

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



Beginner

2009-11-29 Thread Vicky Thakor
Hello Friend
 I'm using GWT in netbeans and oce i complied and run the page then after
how can i run the application without netbeans like the file given in GWT
directory index.html then after Showcase.html which display all GWT uses.

If any one have site or ebook for starting GWT in netbeans or how to use GWT
then please send me.I'm want to use GWT for my college project.

I'm BEGINNER

-- 
Vicky Thakor

--

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




Re: Getting Sarted

2009-11-28 Thread Vicky Thakor
Thanks a lot gwtfanb0y.
can we be friend on chat.my id is vkijust4u

On Sat, Nov 28, 2009 at 11:50 PM, gwtfanb0y
siegfried.b...@googlemail.comwrote:

 Welcome, look there:
 http://blog.jdevelop.eu/2009/11/11/create-a-gwt-application-from-scratch/

 On 28 Nov., 10:44, Vki vkijus...@gmail.com wrote:
  Hi Friends i'm beginner in Google Web Toolkit.Anyone give me idea
  where to start and which software i need to create the new project.
  Please give me idea friends

 --

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





-- 
Vicky Thakor

--

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




Urgent - Why and how I can use mvp4g with GWT?

2009-11-12 Thread Vicky
Hi,

Can anyone explain me about mvp4g architecture with scenario based
examples and limitations of GWT app without mvp4g?Also can I get step
by step procedure for developing a very simple GWT  app like login app
or hello world like using mvp4g and without mvp4g for my learning and
comparison.If possible also let me know some scenario based problems
which I may face while developing a GWT app without mvp4g and how they
can be resolved by using mvp4g?

Thanks,
Vicky.

--

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