Re: [NEWBIE QUESTION] Multiple ways of styling GWT application. Which one to choose?

2014-07-20 Thread Thomas Broyer

On Sunday, July 20, 2014 1:11:05 PM UTC+2, Adrian Leśniak wrote:

 Hi everyone, 

 I have just started with GWT and came across this dilemma. Well, I am 
 aware of a several ways to styling the app, however I find it hard to 
 figure out which technique I should choose, which will conform to the 
 current standards. I thought, since I have experience in CSS and HTML, I 
 could do all the styling in *.css files, but is it how GWT wants me to do 
 it? I am just looking to pros and cons of the methods of styling.


https://plus.google.com/116255824545489210730/posts/a1yywEjAfVd contains 
bits of an answer.
As for CssResource/GssResource  vs. an external stylesheet, 
CssResource/GssResource brings minification and obfuscation (so you don't 
have to think about how to name things to make sure there won't be naming 
conflicts), and a bit of type safety (by matching class names to Java 
interface methods, so you'll never make a typo in a class name and later 
wonder why your style is not applied)

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: Newbie question: best practices for view update from Composite

2014-02-05 Thread Juan Pablo Gardella
Take a look to Activities and Places.


2014-02-05 DT79 davide.tabare...@gmail.com:

 Hi everyone,

 I apologize for the stupid question buy I'm new to GWT.

 I have a single page application composed with some nested custom widgets
 (composites).
 I need, from a Composite, to change the main view (i. e. updating the
 widgets in the entry point class).
 Which is the recommended way or the best practice to do that?
 Should I use event bus?

 Thanks in advance.

 D.

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Newbie Question

2013-11-19 Thread Juan Pablo Gardella
Use https://github.com/tbroyer/gwt-maven-archetypes to start an empty
project.


2013/11/19 Andrew Smith andyuser2...@gmail.com

 Hi

 I recently created a GWT starter application, which contains 3 modules,
 client, server and shared. It was a simple app with a greeting service,
 built using the gwt-maven-plugin. All went well, but then when I tried to
 incorporate mvp, using views and activities, it made me change the the
 shared module into a gwt module. At least that's the only way it would
 build. I also want to incorporate GIN, and providers in further modules.

 Does anyone know why I had to use a GWT module. And what's the best source
 of info for my learning curve please.

 Many Thanks

 Andy

 --
 You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to google-web-toolkit+unsubscr...@googlegroups.com.
 To post to this group, send email to google-web-toolkit@googlegroups.com.
 Visit this group at http://groups.google.com/group/google-web-toolkit.
 For more options, visit https://groups.google.com/groups/opt_out.


-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.


Re: newbie question: what return type to use for TextBox?

2012-08-12 Thread Jens
I don't know mvp4g but what you describe is pretty normal. If you expose 
your widget as feature interfaces you would need to add a method per 
feature like:

Focusable getNameFocusable();
HasText getNameHasText();

Technically you can define more interfaces as return value by using 
generics:

T extends Focusable  HasText T getTextBox() {
  return (T) textbox; *//unchecked cast!*
}

which will allow you to access methods from both interfaces when calling 
view.getTextBox().someMethod() but I dont recommend it because the 
downsides are:
- you don't get a compile time error if textbox does not implement the 
interfaces T extends from because its an unchecked cast to T.
- you don't get a compile time error if you assign the return type to 
something different like HasEnabled enabled = view.getTextBox(). You could 
even write something like Person p = view.getTextBox() which is plain 
wrong. Also because of the unchecked cast to T.

So I tend to not use feature interfaces in my views. Instead of 
view.getNameTextBox().get/setText(String) I simply use 
view.get/setName(String). Its shorter, more meaningful and you dont have to 
struggle with a good name for a HasXYZ getter method (adding the widget 
class name or the feature interface name to the getter method name seems 
silly and something like view.getName().getText() also looks kind of silly 
to me). If I need to make the name focusable I would add 
view.setNameFocused(boolean). So yes, I would add a new method to the view, 
like you would add a new getter now.
In some cases I push the model class to the view like view.display(person) 
/ view.getPerson(). This allows you to implement some minor logic into the 
view and can help to keep the presenter a bit more cleaner. Some people 
dont like it because the view knows about the model but I am fine with it 
as it can be more practical.
For events I also dont use feature interfaces (e.g. HasClickHandlers). I 
define my own Delegate interface that contains event callback methods, like 
onNameChanged, and then call view.setDelegate(delegate). This works 
pretty well with UiBinder's @UiHandler and in general it saves you a lot of 
anonymous classes in your presenter.

So short story: Add a new method to your interface as its the safest thing 
to do. If you think your presenter looks a bit ugly because of lengthly 
view.getX().get/setY() method calls, don't use the feature interfaces in 
your view and instead define methods that work with the concrete values, 
e.g. String getName, Date getBirthday(), setAddressFocused(boolean), ... 

Hope that helps.

-- J.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/gSuWnKbKhcQJ.
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: newbie question about external classes

2010-11-26 Thread Didier Durand
Hi,

You have to have the source code of your classes and let GWT translate
them from Java to Javacript so that they can run in the browser.

Caution: the jre emulation in GWT is limited - see the list to check
what your business classes can and cannot use. See
http://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html -
you may have to modify your business classes to comply with the list
of emulated classes.

regards
didier

On Nov 25, 9:38 am, xalien xalie...@yahoo.it wrote:
 hi all, I'm new of GWT and I apologize for my newbie question but I
 never found a response...
 I built a simple GWT application that show some data, the data
 actually is hardcoded on my class. Is it possibile, from my gwt
 class(EntryPoint), to use external business classes(stored in jar) to
 extract and elaborate my data before show it on web page? Compiling I
 receive the error did you forget to inherit a required module? but I
 can't inerit my classes because they are not gwt classes...
 Summarizing: is it possible in a GWT project using non GWT classes?
 how?

-- 
You received 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: newbie question: deploying the starter web project

2010-07-25 Thread LukaF
I have the same problem with deploying on a tomcat. Everything works
fine in debug mode, but on tomcat, i can't get my RPC working. My
web.xml seems fine (the same as Oby) and @RemoteServiceRelativePath
matches that.

Is it wrong to create war files for tomcat just by zipping the whole
war folder and naming it Projectname.war? Tomcat doesn't report
anything wrong when deploying this war file.

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-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: newbie question: deploying the starter web project

2010-07-15 Thread Oby Sumampouw
Hi Katharina,

Thanks for your help so far.

No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
also didn't change anything from the starter project.
I still have this line...

@RemoteServiceRelativePath(greet)
public interface GreetingService extends RemoteService

this is weird, the javascript RPC is pointing to the right servlet but
it says it cannot find the server... What can possibly go wrong. I
restarted the tomcat too.

In my CPanel error log I found this error
[Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/404.shtml, referer:
http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
[Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/mainarea/greet, referer:
http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
[Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/404.shtml
[Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
not exist: /home/osumampo/public_html/favicon.ico

So apparently the javascript is really pointing to the right URL
mainarea/greet but it seems the tomcat server does not translate
'mainarea/greet' to the servlet but directly translate it to real
path.
I checked my web.xml in WEB_INF

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classpath.to.server.GreetingServiceImpl/servlet-class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mainarea/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileMainArea.html/welcome-file
  /welcome-file-list

/web-app

the url-pattern seems correct. Do you have any guess on why this
happen?

Thanks,
Oby




On Jul 14, 5:53 pm, Katharina Probst kpro...@google.com wrote:
 When you created your project, did you have AppEngine enabled?  If you're
 trying to deploy with tomcat, you shouldn't have that option enabled.

  does the javascript file generated by the GWT sends request to the
  wrong servlet? does it point to /mainarea/greet all the time?

 Your client-side implementation of the RPC (what allows you to talk between
 the client and the server) has an annotation that should look like
 this: @RemoteServiceRelativePath(greet)

 That's how it hooks up to the server side servlet (whose URL pattern is
 specified in the web.xml file). So, no, it doesn't have to point to
 /mainarea/greet. Did you modify anything from the starter project?

 kathrin



  Thanks,
  Oby

  On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
   Try just taking the whole war directory that the compiler produces (as
  is)
   and copying it to your tomcat/webapps/ directory.  Rename the war
  directory
   to the name of your webapp (say, public_html).

   Then do tomcat/bin/startup.sh

   and go to

   localhost:8080/public_html/MainArea.html

   That should do the trick...

   kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
  osumamp...@gmail.com wrote:
Hi,
I am trying to see if I can deploy the web starter project to a web
server (which runs using tomcat)

The steps that I have done so far:
0.) create new GWT application, so it's the default template for a web
app
1.) I compiled the starter project
2.) Copy the class, lib directory to the ~/public_html/WEB-INF
3.) Copy the web.xml to the ~/public_html/WEB-INF

this is the web.xml

?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
   PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
   http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

 !-- Servlets --
 servlet
   servlet-namegreetServlet/servlet-name
   servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
class
 /servlet

 servlet-mapping
   servlet-namegreetServlet/servlet-name
   url-pattern/mainarea/greet/url-pattern
 /servlet-mapping

 !-- Default page to serve --
 welcome-file-list
   welcome-fileMainArea.html/welcome-file
 /welcome-file-list

/web-app

4.) I put the MainArea.html and MainArea.css to the ~/public_html
because they are the welcome-file
5.) I copied the compiled javascript and resources (in the folder
called 'mainarea') to ~/public_html
6.) So the structure is like this:

-- public_html
     |- MainArea.html
     |- MainArea.css
     |- WEB-INF
          |- web.xml
          |- lib
          |- class
     |- mainarea
          |- gwt
          |- hosted.html
          |- mainarea.nocache.js
          |- other resources

When I go to the website, the page loads fine. But when I click send
(to send 

Re: newbie question: deploying the starter web project

2010-07-15 Thread Katharina Probst
I think I know what the problem may be related to.

When I navigate to:
http://www.tuwuk.com/mainarea/

http://www.tuwuk.com/mainarea/I get nothing, but when I go to

http://www.tuwuk.com

Given what I've told you to do, I would expect the first one to work, not
the second one.

I get your starter project (with the error).  Because of the way you
deployed it, it looks like the servlet will look for mainarea/greet, but
it's not finding anything there (just like I didn't).  I think you have a
problem with your tomcat setup - you say that public_html is your webapps
folder.  Now I don't know enough tomcat hackery to know how to rename the
webapps folder successfully (although I know you can make one project your
default project, but the way I did it it still sat in the webapps folder),
but it doesn't look like maybe you did it quite right.

If you just have stock (i.e., unmodified) tomcat, you'll get a webapps
directory, and you can dump your application (everything under war, like
we'd discussed and you've done) there.  Can you give that a try and see if
it works?

kathrin

On Thu, Jul 15, 2010 at 2:14 AM, Oby Sumampouw osumamp...@gmail.com wrote:

 Hi Katharina,

 Thanks for your help so far.

 No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
 also didn't change anything from the starter project.
 I still have this line...

 @RemoteServiceRelativePath(greet)
 public interface GreetingService extends RemoteService

 this is weird, the javascript RPC is pointing to the right servlet but
 it says it cannot find the server... What can possibly go wrong. I
 restarted the tomcat too.

 In my CPanel error log I found this error
 [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/404.shtml, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
 [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/mainarea/greet, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache.html
 [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/404.shtml
 [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
 not exist: /home/osumampo/public_html/favicon.ico

 So apparently the javascript is really pointing to the right URL
 mainarea/greet but it seems the tomcat server does not translate
 'mainarea/greet' to the servlet but directly translate it to real
 path.
 I checked my web.xml in WEB_INF

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
 servlet-classpath.to.server.GreetingServiceImpl/servlet-class
   /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mainarea/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileMainArea.html/welcome-file
  /welcome-file-list

 /web-app

 the url-pattern seems correct. Do you have any guess on why this
 happen?

 Thanks,
 Oby




 On Jul 14, 5:53 pm, Katharina Probst kpro...@google.com wrote:
  When you created your project, did you have AppEngine enabled?  If you're
  trying to deploy with tomcat, you shouldn't have that option enabled.
 
   does the javascript file generated by the GWT sends request to the
   wrong servlet? does it point to /mainarea/greet all the time?
 
  Your client-side implementation of the RPC (what allows you to talk
 between
  the client and the server) has an annotation that should look like
  this: @RemoteServiceRelativePath(greet)
 
  That's how it hooks up to the server side servlet (whose URL pattern is
  specified in the web.xml file). So, no, it doesn't have to point to
  /mainarea/greet. Did you modify anything from the starter project?
 
  kathrin
 
 
 
   Thanks,
   Oby
 
   On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
Try just taking the whole war directory that the compiler produces
 (as
   is)
and copying it to your tomcat/webapps/ directory.  Rename the war
   directory
to the name of your webapp (say, public_html).
 
Then do tomcat/bin/startup.sh
 
and go to
 
localhost:8080/public_html/MainArea.html
 
That should do the trick...
 
kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
   osumamp...@gmail.com wrote:
 Hi,
 I am trying to see if I can deploy the web starter project to a web
 server (which runs using tomcat)
 
 The steps that I have done so far:
 0.) create new GWT application, so it's the default template for a
 web
 app
 1.) I compiled the starter project
 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
 3.) Copy the web.xml to the ~/public_html/WEB-INF
 
 this is the web.xml
 
 ?xml version=1.0 

Re: newbie question: deploying the starter web project

2010-07-15 Thread Oby Sumampouw
I agree this seems to be some tomcat issue not GWT issue.
Ok I'll try and reply back.

Thanks
Oby

On Jul 15, 6:30 am, Katharina Probst kpro...@google.com wrote:
 I think I know what the problem may be related to.

 When I navigate to:http://www.tuwuk.com/mainarea/

 http://www.tuwuk.com/mainarea/I get nothing, but when I go to

 http://www.tuwuk.com

 Given what I've told you to do, I would expect the first one to work, not
 the second one.

 I get your starter project (with the error).  Because of the way you
 deployed it, it looks like the servlet will look for mainarea/greet, but
 it's not finding anything there (just like I didn't).  I think you have a
 problem with your tomcat setup - you say that public_html is your webapps
 folder.  Now I don't know enough tomcat hackery to know how to rename the
 webapps folder successfully (although I know you can make one project your
 default project, but the way I did it it still sat in the webapps folder),
 but it doesn't look like maybe you did it quite right.

 If you just have stock (i.e., unmodified) tomcat, you'll get a webapps
 directory, and you can dump your application (everything under war, like
 we'd discussed and you've done) there.  Can you give that a try and see if
 it works?

 kathrin



 On Thu, Jul 15, 2010 at 2:14 AM, Oby Sumampouw osumamp...@gmail.com wrote:
  Hi Katharina,

  Thanks for your help so far.

  No I didn't have AppEngine enabled, I only have the GWT SDK clicked. I
  also didn't change anything from the starter project.
  I still have this line...

  @RemoteServiceRelativePath(greet)
  public interface GreetingService extends RemoteService

  this is weird, the javascript RPC is pointing to the right servlet but
  it says it cannot find the server... What can possibly go wrong. I
  restarted the tomcat too.

  In my CPanel error log I found this error
  [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/404.shtml, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache
  [Thu Jul 15 01:02:05 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/mainarea/greet, referer:
 http://www.tuwuk.com/mainarea/F4DE64580EEC20A0487A6B1C498FA109.cache
  [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/404.shtml
  [Thu Jul 15 01:01:35 2010] [error] [client 99.185.43.174] File does
  not exist: /home/osumampo/public_html/favicon.ico

  So apparently the javascript is really pointing to the right URL
  mainarea/greet but it seems the tomcat server does not translate
  'mainarea/greet' to the servlet but directly translate it to real
  path.
  I checked my web.xml in WEB_INF

  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app
     PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
     http://java.sun.com/dtd/web-app_2_3.dtd;

  web-app

   !-- Servlets --
   servlet
     servlet-namegreetServlet/servlet-name
      servlet-classpath.to.server.GreetingServiceImpl/servlet-class
    /servlet

   servlet-mapping
     servlet-namegreetServlet/servlet-name
     url-pattern/mainarea/greet/url-pattern
   /servlet-mapping

   !-- Default page to serve --
   welcome-file-list
     welcome-fileMainArea.html/welcome-file
   /welcome-file-list

  /web-app

  the url-pattern seems correct. Do you have any guess on why this
  happen?

  Thanks,
  Oby

  On Jul 14, 5:53 pm, Katharina Probst kpro...@google.com wrote:
   When you created your project, did you have AppEngine enabled?  If you're
   trying to deploy with tomcat, you shouldn't have that option enabled.

does the javascript file generated by the GWT sends request to the
wrong servlet? does it point to /mainarea/greet all the time?

   Your client-side implementation of the RPC (what allows you to talk
  between
   the client and the server) has an annotation that should look like
   this: @RemoteServiceRelativePath(greet)

   That's how it hooks up to the server side servlet (whose URL pattern is
   specified in the web.xml file). So, no, it doesn't have to point to
   /mainarea/greet. Did you modify anything from the starter project?

   kathrin

Thanks,
Oby

On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
 Try just taking the whole war directory that the compiler produces
  (as
is)
 and copying it to your tomcat/webapps/ directory.  Rename the war
directory
 to the name of your webapp (say, public_html).

 Then do tomcat/bin/startup.sh

 and go to

 localhost:8080/public_html/MainArea.html

 That should do the trick...

 kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
osumamp...@gmail.com wrote:
  Hi,
  I am trying to see if I can deploy the web starter project to a web
  server (which runs using tomcat)

  The steps that I have done so far:
  0.) create new GWT application, so it's the default template 

Re: newbie question: deploying the starter web project

2010-07-14 Thread Katharina Probst
Try just taking the whole war directory that the compiler produces (as is)
and copying it to your tomcat/webapps/ directory.  Rename the war directory
to the name of your webapp (say, public_html).

Then do tomcat/bin/startup.sh

and go to

localhost:8080/public_html/MainArea.html

That should do the trick...

kathrin

On Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw osumamp...@gmail.com wrote:

 Hi,
 I am trying to see if I can deploy the web starter project to a web
 server (which runs using tomcat)

 The steps that I have done so far:
 0.) create new GWT application, so it's the default template for a web
 app
 1.) I compiled the starter project
 2.) Copy the class, lib directory to the ~/public_html/WEB-INF
 3.) Copy the web.xml to the ~/public_html/WEB-INF

 this is the web.xml

 ?xml version=1.0 encoding=UTF-8?
 !DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app

  !-- Servlets --
  servlet
servlet-namegreetServlet/servlet-name
servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
 class
  /servlet

  servlet-mapping
servlet-namegreetServlet/servlet-name
url-pattern/mainarea/greet/url-pattern
  /servlet-mapping

  !-- Default page to serve --
  welcome-file-list
welcome-fileMainArea.html/welcome-file
  /welcome-file-list

 /web-app

 4.) I put the MainArea.html and MainArea.css to the ~/public_html
 because they are the welcome-file
 5.) I copied the compiled javascript and resources (in the folder
 called 'mainarea') to ~/public_html
 6.) So the structure is like this:

 -- public_html
  |- MainArea.html
  |- MainArea.css
  |- WEB-INF
   |- web.xml
   |- lib
   |- class
  |- mainarea
   |- gwt
   |- hosted.html
   |- mainarea.nocache.js
   |- other resources

 When I go to the website, the page loads fine. But when I click send
 (to send the input to the server) it seems the path is wrong. I got
 this error:

 Sending name to the server:
 GWT User

 Server replies:
 An error occurred while attempting to contact the server. Please check
 your network connection and try again.

 I was wondering if this servlet location is correct?

 Another noob question about JSP, can I put the generated javascript
 code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
 mainarea.

 Initially I thought WEB_INF becomes the root directory if web app
 tries to refer to some file? But apparently in the MainArea.html the
 script src='mainarea/mainare.nocache.js' doesn't work if I put
 mainarea inside WEB_INF.

 I wish there's a way to make the html file able to access the mainarea
 directory from WEB_INF. Is it possible?

 Thanks!

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



-- 
You received 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: newbie question: deploying the starter web project

2010-07-14 Thread Oby Sumampouw
I copied the content of war directory to the web_app (which is my
public_html directory). Then I restarted tomcat, still I got the same
error

--- ERROR--
Sending name to the server:
test abcdef

Server replies:
An error occurred while attempting to contact the server. Please check
your network connection and try again
-- ERROR--

does the javascript file generated by the GWT sends request to the
wrong servlet? does it point to /mainarea/greet all the time?

Thanks,
Oby


On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
 Try just taking the whole war directory that the compiler produces (as is)
 and copying it to your tomcat/webapps/ directory.  Rename the war directory
 to the name of your webapp (say, public_html).

 Then do tomcat/bin/startup.sh

 and go to

 localhost:8080/public_html/MainArea.html

 That should do the trick...

 kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw osumamp...@gmail.com 
 wrote:
  Hi,
  I am trying to see if I can deploy the web starter project to a web
  server (which runs using tomcat)

  The steps that I have done so far:
  0.) create new GWT application, so it's the default template for a web
  app
  1.) I compiled the starter project
  2.) Copy the class, lib directory to the ~/public_html/WEB-INF
  3.) Copy the web.xml to the ~/public_html/WEB-INF

  this is the web.xml

  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE web-app
     PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
     http://java.sun.com/dtd/web-app_2_3.dtd;

  web-app

   !-- Servlets --
   servlet
     servlet-namegreetServlet/servlet-name
     servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
  class
   /servlet

   servlet-mapping
     servlet-namegreetServlet/servlet-name
     url-pattern/mainarea/greet/url-pattern
   /servlet-mapping

   !-- Default page to serve --
   welcome-file-list
     welcome-fileMainArea.html/welcome-file
   /welcome-file-list

  /web-app

  4.) I put the MainArea.html and MainArea.css to the ~/public_html
  because they are the welcome-file
  5.) I copied the compiled javascript and resources (in the folder
  called 'mainarea') to ~/public_html
  6.) So the structure is like this:

  -- public_html
       |- MainArea.html
       |- MainArea.css
       |- WEB-INF
            |- web.xml
            |- lib
            |- class
       |- mainarea
            |- gwt
            |- hosted.html
            |- mainarea.nocache.js
            |- other resources

  When I go to the website, the page loads fine. But when I click send
  (to send the input to the server) it seems the path is wrong. I got
  this error:

  Sending name to the server:
  GWT User

  Server replies:
  An error occurred while attempting to contact the server. Please check
  your network connection and try again.

  I was wondering if this servlet location is correct?

  Another noob question about JSP, can I put the generated javascript
  code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
  mainarea.

  Initially I thought WEB_INF becomes the root directory if web app
  tries to refer to some file? But apparently in the MainArea.html the
  script src='mainarea/mainare.nocache.js' doesn't work if I put
  mainarea inside WEB_INF.

  I wish there's a way to make the html file able to access the mainarea
  directory from WEB_INF. Is it possible?

  Thanks!

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

-- 
You received 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: newbie question: deploying the starter web project

2010-07-14 Thread Katharina Probst
When you created your project, did you have AppEngine enabled?  If you're
trying to deploy with tomcat, you shouldn't have that option enabled.


 does the javascript file generated by the GWT sends request to the
 wrong servlet? does it point to /mainarea/greet all the time?


Your client-side implementation of the RPC (what allows you to talk between
the client and the server) has an annotation that should look like
this: @RemoteServiceRelativePath(greet)

That's how it hooks up to the server side servlet (whose URL pattern is
specified in the web.xml file). So, no, it doesn't have to point to
/mainarea/greet. Did you modify anything from the starter project?

kathrin


 Thanks,
 Oby


 On Jul 14, 6:01 am, Katharina Probst kpro...@google.com wrote:
  Try just taking the whole war directory that the compiler produces (as
 is)
  and copying it to your tomcat/webapps/ directory.  Rename the war
 directory
  to the name of your webapp (say, public_html).
 
  Then do tomcat/bin/startup.sh
 
  and go to
 
  localhost:8080/public_html/MainArea.html
 
  That should do the trick...
 
  kathrinOn Wed, Jul 14, 2010 at 2:51 AM, Oby Sumampouw 
 osumamp...@gmail.com wrote:
   Hi,
   I am trying to see if I can deploy the web starter project to a web
   server (which runs using tomcat)
 
   The steps that I have done so far:
   0.) create new GWT application, so it's the default template for a web
   app
   1.) I compiled the starter project
   2.) Copy the class, lib directory to the ~/public_html/WEB-INF
   3.) Copy the web.xml to the ~/public_html/WEB-INF
 
   this is the web.xml
 
   ?xml version=1.0 encoding=UTF-8?
   !DOCTYPE web-app
  PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
  http://java.sun.com/dtd/web-app_2_3.dtd;
 
   web-app
 
!-- Servlets --
servlet
  servlet-namegreetServlet/servlet-name
  servlet-classbla.bla.bla.server.GreetingServiceImpl/servlet-
   class
/servlet
 
servlet-mapping
  servlet-namegreetServlet/servlet-name
  url-pattern/mainarea/greet/url-pattern
/servlet-mapping
 
!-- Default page to serve --
welcome-file-list
  welcome-fileMainArea.html/welcome-file
/welcome-file-list
 
   /web-app
 
   4.) I put the MainArea.html and MainArea.css to the ~/public_html
   because they are the welcome-file
   5.) I copied the compiled javascript and resources (in the folder
   called 'mainarea') to ~/public_html
   6.) So the structure is like this:
 
   -- public_html
|- MainArea.html
|- MainArea.css
|- WEB-INF
 |- web.xml
 |- lib
 |- class
|- mainarea
 |- gwt
 |- hosted.html
 |- mainarea.nocache.js
 |- other resources
 
   When I go to the website, the page loads fine. But when I click send
   (to send the input to the server) it seems the path is wrong. I got
   this error:
 
   Sending name to the server:
   GWT User
 
   Server replies:
   An error occurred while attempting to contact the server. Please check
   your network connection and try again.
 
   I was wondering if this servlet location is correct?
 
   Another noob question about JSP, can I put the generated javascript
   code to ~/public_html/WEB_INF/mainarea instead of ~/public_html/
   mainarea.
 
   Initially I thought WEB_INF becomes the root directory if web app
   tries to refer to some file? But apparently in the MainArea.html the
   script src='mainarea/mainare.nocache.js' doesn't work if I put
   mainarea inside WEB_INF.
 
   I wish there's a way to make the html file able to access the mainarea
   directory from WEB_INF. Is it possible?
 
   Thanks!
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



-- 
You received 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: Newbie question: How does one write a Unit test for MyClass extends RemoteServiceServlet ???

2010-05-11 Thread Trung
You can use SyncProxy to test the GWT RPC services

See http://www.gdevelop.com/w/blog/2010/01/10/testing-gwt-rpc-services/
for details



On May 5, 9:28 pm, Eric erjab...@gmail.com wrote:
 On May 5, 12:33 am, Mike m...@sheridan-net.us wrote:

  Hello

  Am trying to write tests for my code, and want to ensure that any
  class I write which extends RemoteServiceServlet;
  however, I'm not quite catching on to what I need to do in order to
  get a test to be runnable in that context...

 Have the servlet do all its work in another class, and test that
 class,
 I guess. One project I was later assigned to had made a suboptimal
 decision to do all the serious work of the application in Struts
 Action
 classes directly. Then, they tried to add web services, and now the
 services had to create Struts beans and actions.  Don't go that way.

 If you use a library like gwt-dispatcher, this is done for you
 naturally.

 Respectfully,
 Eric Jablow

 --
 You received 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 
 athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received 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: Newbie question: How does one write a Unit test for MyClass extends RemoteServiceServlet ???

2010-05-05 Thread Eric


On May 5, 12:33 am, Mike m...@sheridan-net.us wrote:
 Hello

 Am trying to write tests for my code, and want to ensure that any
 class I write which extends RemoteServiceServlet;
 however, I'm not quite catching on to what I need to do in order to
 get a test to be runnable in that context...

Have the servlet do all its work in another class, and test that
class,
I guess. One project I was later assigned to had made a suboptimal
decision to do all the serious work of the application in Struts
Action
classes directly. Then, they tried to add web services, and now the
services had to create Struts beans and actions.  Don't go that way.

If you use a library like gwt-dispatcher, this is done for you
naturally.

Respectfully,
Eric Jablow

-- 
You received 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: Newbie question: How does one write a Unit test for MyClass extends RemoteServiceServlet ???

2010-05-04 Thread rudolf michael
i guess that you need to mock it using jMock or easyMock, but i dont have a
running example although i saw some unit tests for drools/jBPM where they
use those mocking jars in order to simulate some context/DAO services.

On Wed, May 5, 2010 at 7:33 AM, Mike m...@sheridan-net.us wrote:

 Hello

 Am trying to write tests for my code, and want to ensure that any
 class I write which extends RemoteServiceServlet;
 however, I'm not quite catching on to what I need to do in order to
 get a test to be runnable in that context...

 Any help is greatly appreciated (links, samples, explanation, etc).

 Cheers
 Mike

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



-- 
You received 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: Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial

2010-04-01 Thread vijay
Thanks Abdullah, I got that working.
The 
tutorialhttp://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html
tells
to download stockwacher
projechttp://code.google.com/webtoolkit/doc/latest/tutorial/projects/GettingStartedAppEngine.zipt
and import it in eclipse. The package contains old gwt-rpc.jar which is not
compatible with new gwt sdk and  hence fails with exception I pasted in my
earlier mail.
A easy fix is to build new project and copy jar from new project to
stockwatcher one.

On Wed, Mar 31, 2010 at 8:15 PM, Abdullah Shaikh 
abdullah.shaik...@gmail.com wrote:

 I think you are sending an object of type not defined in you rpc file,
 delete you rpc file so that a new one is created.

 - Abdullah

 On Wed, Mar 31, 2010 at 1:58 AM, vijay mymail.vi...@gmail.com wrote:

 hi,
 I am using GWT 2.0.3 version, I am going through the steps mentioned in
 GWT tutorial

 http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html

 When trying to integrate login service I get following exception. I tried
 using a normal GWT RPC and it also gave me similar exception.

 Mar 30, 2010 6:44:49 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService:
 ERROR: Failed to parse the policy file
 '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc'
 java.text.ParseException: Expected: className, [true | false]
  at
 com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117)
 at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429)
  at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
 at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
 at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at
 com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
 at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at
 org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
 at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 Mar 30, 2010 6:44:49 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService:
 An IncompatibleRemoteServiceException was thrown while processing this call.
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
 at
 

Re: Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial

2010-03-31 Thread Abdullah Shaikh
I think you are sending an object of type not defined in you rpc file,
delete you rpc file so that a new one is created.

- Abdullah

On Wed, Mar 31, 2010 at 1:58 AM, vijay mymail.vi...@gmail.com wrote:

 hi,
 I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT
 tutorial

 http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html

 When trying to integrate login service I get following exception. I tried
 using a normal GWT RPC and it also gave me similar exception.

 Mar 30, 2010 6:44:49 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService:
 ERROR: Failed to parse the policy file
 '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc'
 java.text.ParseException: Expected: className, [true | false]
  at
 com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117)
 at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429)
  at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
 at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at
 com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at
 org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
 at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 Mar 30, 2010 6:44:49 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService:
 An IncompatibleRemoteServiceException was thrown while processing this call.
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
  at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at
 

Re: Newbie question : Problem with GWT RPC when running running through GWT + AppEngine tutorial

2010-03-30 Thread vijay
Ping!

On Wed, Mar 31, 2010 at 1:58 AM, vijay mymail.vi...@gmail.com wrote:

 hi,
 I am using GWT 2.0.3 version, I am going through the steps mentioned in GWT
 tutorial

 http://code.google.com/webtoolkit/doc/latest/tutorial/appengine.html

 When trying to integrate login service I get following exception. I tried
 using a normal GWT RPC and it also gave me similar exception.

 Mar 30, 2010 6:44:49 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1269974689208000] javax.servlet.ServletContext log: loginService:
 ERROR: Failed to parse the policy file
 '/stockwatcher/748E07BA5F0BCE26285053278C0378CB.gwt.rpc'
 java.text.ParseException: Expected: className, [true | false]
  at
 com.google.gwt.user.server.rpc.SerializationPolicyLoader.loadFromStream(SerializationPolicyLoader.java:116)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doGetSerializationPolicy(RemoteServiceServlet.java:234)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.getSerializationPolicy(RemoteServiceServlet.java:117)
 at
 com.google.gwt.user.server.rpc.impl.ServerSerializationStreamReader.prepareToRead(ServerSerializationStreamReader.java:429)
  at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:234)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
 at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at
 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121)
  at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
  at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
  at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
  at
 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at
 com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352)
 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
  at org.mortbay.jetty.Server.handle(Server.java:313)
 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
  at
 org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
  at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
  at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
 at
 org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

 Mar 30, 2010 6:44:49 PM
 com.google.appengine.tools.development.ApiProxyLocalImpl log
 SEVERE: [1269974689224000] javax.servlet.ServletContext log: loginService:
 An IncompatibleRemoteServiceException was thrown while processing this call.
 com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
 Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
 at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277)
  at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
 at
 com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
  at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
  at
 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51)
 at
 org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
  at
 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
 at
 

Re: newbie question, problem adding jar library

2010-03-12 Thread khalid
hi guys
it took much time for this post to be approved by moderators
anyway I have solved the problem yesterday by disabling google app
engine ^_^
-
chris:Thank you I am going to need this before deploying my server
side code

Victor: exactly , I work on netbeans always and it is very easy but I
use eclipse for GWT projects

Sir: Thank you very much , disabling google app engine is the solution

-- 
You received 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: newbie question, problem adding jar library

2010-03-11 Thread Sripathi Krishnan
You may have accidentally enabled Google App Engine. Try disabling it for
your project in eclipse.
App Engine does not allow you to use databases, and you are likely to get
the error you pasted.


--Sri
http://blog.530geeks.com


2010/3/12 Víctor Llorens Vilella victor.llor...@gmail.com

 At least in netbeans, there's an option in to include selected library in
 war file.


 On 11 March 2010 18:37, Chris Lercher cl_for_mail...@gmx.net wrote:

 Hi,

 adding it to the build path isn't enough in this case. The jar has to
 be found by the server at runtime. To achieve this, you can put the
 jar in the directory war/WEB-INF/lib.

 Chris

 On Mar 11, 12:25 am, khalid khalid@gmail.com wrote:
  Hello every one
  I am making this simple application where the user fills some fields
  and makes an RPC to save these info
  in a DB anyway the server method uses the popular: Connection ,
  PreparedStatement ,... etc classes
  which are in the mysql-connector jar file I think so ^_^ 
  I have followed these steps to add the library but no luck
 
  steps here:http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-
  Eclipse-%28Java%29
 
  I still get java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  Can you please help me, I am new to GWT and I plan to use it for my
  Graduation project ^_^
  Thank you very much

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




 --
 Victor Llorens Vilella


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


-- 
You received 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: newbie question, problem adding jar library

2010-03-11 Thread Chris Lercher
Hi,

adding it to the build path isn't enough in this case. The jar has to
be found by the server at runtime. To achieve this, you can put the
jar in the directory war/WEB-INF/lib.

Chris

On Mar 11, 12:25 am, khalid khalid@gmail.com wrote:
 Hello every one
 I am making this simple application where the user fills some fields
 and makes an RPC to save these info
 in a DB anyway the server method uses the popular: Connection ,
 PreparedStatement ,... etc classes
 which are in the mysql-connector jar file I think so ^_^ 
 I have followed these steps to add the library but no luck

 steps here:http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-
 Eclipse-%28Java%29

 I still get java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
 Can you please help me, I am new to GWT and I plan to use it for my
 Graduation project ^_^
 Thank you very much

-- 
You received 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: newbie question, problem adding jar library

2010-03-11 Thread Víctor Llorens Vilella
At least in netbeans, there's an option in to include selected library in
war file.

On 11 March 2010 18:37, Chris Lercher cl_for_mail...@gmx.net wrote:

 Hi,

 adding it to the build path isn't enough in this case. The jar has to
 be found by the server at runtime. To achieve this, you can put the
 jar in the directory war/WEB-INF/lib.

 Chris

 On Mar 11, 12:25 am, khalid khalid@gmail.com wrote:
  Hello every one
  I am making this simple application where the user fills some fields
  and makes an RPC to save these info
  in a DB anyway the server method uses the popular: Connection ,
  PreparedStatement ,... etc classes
  which are in the mysql-connector jar file I think so ^_^ 
  I have followed these steps to add the library but no luck
 
  steps here:http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-
  Eclipse-%28Java%29
 
  I still get java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
  Can you please help me, I am new to GWT and I plan to use it for my
  Graduation project ^_^
  Thank you very much

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




-- 
Victor Llorens Vilella

-- 
You received 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: Newbie question

2009-09-14 Thread Jason Parekh
Hey John,
You can try to add the GWT 1.4 SDK:

Go to your Eclipse preferences, then Google - GWT on the side bar, and then
add another entry to the list box pointed to your GWT 1.4 SDK.

After that, you'll want to create a new GWT project pointed at your existing
source code.

Please let us know if you run into any issues.

jason

On Sun, Sep 13, 2009 at 11:51 AM, John Restrepo 
johnjaime.restr...@gmail.com wrote:


 Hi guys, excuse me for the newbie question but I'm new with GWT.
 I have to modify some widget with a suggestion box that interact with
 a database, the thing is when I open it with Eclipse it doesn't
 recognize anything the import com.google cannot be resolved, maybe
 the problem is that I'm modifying with GWT 1.7 and it's developed with
 GWT 1.4, what can I do?
 Thanks for the help in advance

 


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



Re: Newbie question

2009-09-14 Thread Jason Parekh
No problem.
Unfortunately, the issue you're now seeing will be harder to tackle.  See
http://code.google.com/p/google-web-toolkit/issues/detail?id=1792 for a long
discussion.  It looks like it was fixed in GWT 1.5, but I think there are
some workarounds for older versions interspersed in that issue.  If
possible, I'd recommend upgrading GWT ;)

jason

On Mon, Sep 14, 2009 at 12:19 PM, John Restrepo 
johnjaime.restr...@gmail.com wrote:


 It worked! thanks a lot Jason, new thing learned :P
 But now, I got this error when try to compile:

 2009-09-14 11:10:12.494 java[6097:80f] [Java CocoaComponent
 compatibility mode]: Enabled
 2009-09-14 11:10:12.497 java[6097:80f] [Java CocoaComponent
 compatibility mode]: Setting timeout for SWT to 0.10
 Exception in thread AWT-EventQueue-0 java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.displayChanged
 (CGraphicsEnvironment.java:65)
at apple.awt.CToolkit$4.run(CToolkit.java:1310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
 (EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
 (EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
 184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
 176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
 Invalid memory access of location 0x0 eip=0x0

 I have no idea what it means :\

 On 14 sep, 09:20, Jason Parekh jasonpar...@gmail.com wrote:
  Hey John,
  You can try to add the GWT 1.4 SDK:
 
  Go to your Eclipse preferences, then Google - GWT on the side bar, and
 then
  add another entry to the list box pointed to your GWT 1.4 SDK.
 
  After that, you'll want to create a new GWT project pointed at your
 existing
  source code.
 
  Please let us know if you run into any issues.
 
  jason
 
  On Sun, Sep 13, 2009 at 11:51 AM, John Restrepo 
 
 
 
  johnjaime.restr...@gmail.com wrote:
 
   Hi guys, excuse me for the newbie question but I'm new with GWT.
   I have to modify some widget with a suggestion box that interact with
   a database, the thing is when I open it with Eclipse it doesn't
   recognize anything the import com.google cannot be resolved, maybe
   the problem is that I'm modifying with GWT 1.7 and it's developed with
   GWT 1.4, what can I do?
   Thanks for the help in advance
 


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



Re: Newbie question

2009-09-14 Thread John Restrepo

It worked! thanks a lot Jason, new thing learned :P
But now, I got this error when try to compile:

2009-09-14 11:10:12.494 java[6097:80f] [Java CocoaComponent
compatibility mode]: Enabled
2009-09-14 11:10:12.497 java[6097:80f] [Java CocoaComponent
compatibility mode]: Setting timeout for SWT to 0.10
Exception in thread AWT-EventQueue-0 java.lang.NullPointerException
at apple.awt.CGraphicsEnvironment.displayChanged
(CGraphicsEnvironment.java:65)
at apple.awt.CToolkit$4.run(CToolkit.java:1310)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Invalid memory access of location 0x0 eip=0x0

I have no idea what it means :\

On 14 sep, 09:20, Jason Parekh jasonpar...@gmail.com wrote:
 Hey John,
 You can try to add the GWT 1.4 SDK:

 Go to your Eclipse preferences, then Google - GWT on the side bar, and then
 add another entry to the list box pointed to your GWT 1.4 SDK.

 After that, you'll want to create a new GWT project pointed at your existing
 source code.

 Please let us know if you run into any issues.

 jason

 On Sun, Sep 13, 2009 at 11:51 AM, John Restrepo 



 johnjaime.restr...@gmail.com wrote:

  Hi guys, excuse me for the newbie question but I'm new with GWT.
  I have to modify some widget with a suggestion box that interact with
  a database, the thing is when I open it with Eclipse it doesn't
  recognize anything the import com.google cannot be resolved, maybe
  the problem is that I'm modifying with GWT 1.7 and it's developed with
  GWT 1.4, what can I do?
  Thanks for the help in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question

2009-09-14 Thread John Restrepo

Ok, thanks again, due to short time I'll omit this part :(
At least I can work in web mode… thanks for everything ;)

On Sep 14, 11:27 am, Jason Parekh jasonpar...@gmail.com wrote:
 No problem.
 Unfortunately, the issue you're now seeing will be harder to tackle.  
 Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=1792for a long
 discussion.  It looks like it was fixed in GWT 1.5, but I think there are
 some workarounds for older versions interspersed in that issue.  If
 possible, I'd recommend upgrading GWT ;)

 jason

 On Mon, Sep 14, 2009 at 12:19 PM, John Restrepo 



 johnjaime.restr...@gmail.com wrote:

  It worked! thanks a lot Jason, new thing learned :P
  But now, I got this error when try to compile:

  2009-09-14 11:10:12.494 java[6097:80f] [Java CocoaComponent
  compatibility mode]: Enabled
  2009-09-14 11:10:12.497 java[6097:80f] [Java CocoaComponent
  compatibility mode]: Setting timeout for SWT to 0.10
  Exception in thread AWT-EventQueue-0 java.lang.NullPointerException
         at apple.awt.CGraphicsEnvironment.displayChanged
  (CGraphicsEnvironment.java:65)
         at apple.awt.CToolkit$4.run(CToolkit.java:1310)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy
  (EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy
  (EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
  184)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
  176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
  Invalid memory access of location 0x0 eip=0x0

  I have no idea what it means :\

  On 14 sep, 09:20, Jason Parekh jasonpar...@gmail.com wrote:
   Hey John,
   You can try to add the GWT 1.4 SDK:

   Go to your Eclipse preferences, then Google - GWT on the side bar, and
  then
   add another entry to the list box pointed to your GWT 1.4 SDK.

   After that, you'll want to create a new GWT project pointed at your
  existing
   source code.

   Please let us know if you run into any issues.

   jason

   On Sun, Sep 13, 2009 at 11:51 AM, John Restrepo 

   johnjaime.restr...@gmail.com wrote:

Hi guys, excuse me for the newbie question but I'm new with GWT.
I have to modify some widget with a suggestion box that interact with
a database, the thing is when I open it with Eclipse it doesn't
recognize anything the import com.google cannot be resolved, maybe
the problem is that I'm modifying with GWT 1.7 and it's developed with
GWT 1.4, what can I do?
Thanks for the help in advance
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Newbie question(File Permissions issue in GWT)

2009-07-31 Thread Carl

Web apps in general cannot access random files on the client machine,
which may (I'm not sure) have something to do with your problem.

To test this, try putting your file in a folder called public under
the same parent folder as your client and server folders.  This should
get copied to a folder having the same name as your application under
the war folder when you build your application (this is the folder
where the GWT-generated Javascript resides, wrapped in uniquely-named
HTML files).  You should then be able to load the file from your
application using an HTTP GET (e.g., using the GWT RequestBuilder
class).



On Jul 28, 8:26 am, Rumpole6 barry.benow...@gmail.com wrote:
 This may not be the right place for this, but:

 I am using the gwt plugin  in eclipse under Windows XP to write an
 small application and I am facing File Permission Errors trying to
 access files in the server code when I run my app in hosted mode. I
 suspect that there is an option to set somewhere which will allow me
 to access the files. The Files are located in C:\Documents and Settings
 \Barry\Application Data\Subversion.

 Thanks in advance.

 Barry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question(File Permissions issue in GWT)

2009-07-29 Thread spike2...@googlemail.com

Is it possible that Barry isn't your account?

On 28 Jul., 17:26, Rumpole6 barry.benow...@gmail.com wrote:
 This may not be the right place for this, but:

 I am using the gwt plugin  in eclipse under Windows XP to write an
 small application and I am facing File Permission Errors trying to
 access files in the server code when I run my app in hosted mode. I
 suspect that there is an option to set somewhere which will allow me
 to access the files. The Files are located in C:\Documents and Settings
 \Barry\Application Data\Subversion.

 Thanks in advance.

 Barry
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.

2009-07-27 Thread Rajeev Dayal
There is an issue with JDK 1.6.0_14 and debugging. Are you using this JDK?
If so, downgrade to 1.6.0_13 to workaround this problem.

On Fri, Jul 24, 2009 at 5:44 PM, Howard Tan howard@gmail.com wrote:


 Hi,

 I've been combing through the Getting Started guide, and I got
 everything to work except this page.

 http://code.google.com/webtoolkit/tutorials/1.6/debug.html

 I've followed the directions and it doesn't work. The tutorial runs
 normally and it doesn't break at the breakpoints. Anybody got any
 ideas? I must be doing something wrong, and it's probably something
 simple.

 Please help,

 Thanks,
 Howard

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.

2009-07-27 Thread Howard Tan

Excellent. It works as described. I've downgraded to jdk 1.6.0_13 from
jre 1.6.0_14.

Thanks!
Howard

On Jul 27, 7:40 am, Rajeev Dayal rda...@google.com wrote:
 There is an issue with JDK 1.6.0_14 and debugging. Are you using this JDK?
 If so, downgrade to 1.6.0_13 to workaround this problem.



 On Fri, Jul 24, 2009 at 5:44 PM, Howard Tan howard@gmail.com wrote:

  Hi,

  I've been combing through the Getting Started guide, and I got
  everything to work except this page.

 http://code.google.com/webtoolkit/tutorials/1.6/debug.html

  I've followed the directions and it doesn't work. The tutorial runs
  normally and it doesn't break at the breakpoints. Anybody got any
  ideas? I must be doing something wrong, and it's probably something
  simple.

  Please help,

  Thanks,
  Howard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie Question. Windows 7 + Eclispe 3.4 + GWT 1.7 + Debug + Getting Started Tutorial.

2009-07-27 Thread amanda apple
*you cant open anything,, mail any of that if this is true,, replay back,, i
use a chat room that i can show u step by step.*

On Fri, Jul 24, 2009 at 4:44 PM, Howard Tan howard@gmail.com wrote:


 Hi,

 I've been combing through the Getting Started guide, and I got
 everything to work except this page.

 http://code.google.com/webtoolkit/tutorials/1.6/debug.html

 I've followed the directions and it doesn't work. The tutorial runs
 normally and it doesn't break at the breakpoints. Anybody got any
 ideas? I must be doing something wrong, and it's probably something
 simple.

 Please help,

 Thanks,
 Howard

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question regarding web-application design

2009-07-13 Thread Neha Chachra
Thanks a lot for the suggestions. I tried them out to learn the methods. For
my project, I am going ahead with what Sky suggested. It's turning out much
better than my lazy XML Http requests :)
Thanks,

-neha
nay-ha

On Sun, Jul 12, 2009 at 10:41 AM, Sky myonceinalifet...@gmail.com wrote:


 Given your description then to be honest I would agree you could do
 something better than XML HTTPrequest or Java RPC.

 But it seriously depends on how your app works and what your
 requirements are.
 What I would suggest is that you dump the data onto the page in the
 initial page request. Since the data rarely changes and IFF the client
 is unlikely to maintain a long session, then this might be a better
 approach. You would have to be ok with the fact that they won't get
 updated data until they hit the refresh button as opposed to clicking
 on the button leading to the page containing the 20 check boxes. If
 this is unacceptable and you require that when the user clicks on the
 menu button or w/e links them to that page will build the page
 afresh, then your current design is the only correct way (but as
 mentioned might be able to have improved performance via Java RPC)

 If its ok to just dump it to the initial page request, your server
 side code must simply modify the GWT html file, inserting the data as
 regular javascript, like an array of values or whatever it is.Your GWT
 code would need to interface to some handwritten Javascript that
 assumes the name of that javascript array exists and loads its
 contents. Pretty easy.

 hope this helps

 On Jul 10, 11:43 am, Kamal Chandana Mettananda lka...@gmail.com
 wrote:
  Just to add to that; if you are using Java on your server side you may
  be planning to use Servlets. If that's the case you can have a look at
  the following tutorial.
 
  http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial...
 
  Cheers.
 
 
 
  On Fri, Jul 10, 2009 at 9:58 PM, Jimjim.p...@gmail.com wrote:
 
   If you plan to use Java for your server side, you don't have to use
   XML http requests. You can use the built-in RPC to retrieve Java
   objects from server and send to GWT clients or vice versa. That is a
   big advantage to stick to Java in server side. You can find an example
   inhttp://www.gwtorm.com/gwtMail.jsp.
 
   Jim
  http://www.gwtorm.com
  http://code.google.com/p/dreamsource-orm/
 
   On Jul 10, 10:54 am, Neha Chachra neha.chac...@gmail.com wrote:
   Hi,
 
   I started using GWT only about a week ago and I have rather little
   experience with client-server interactions so I wish to make sure that
 I am
   headed in the right direction. Though, I am guessing that the question
 is
   not directly related to GWT and I apologize for that.
 
   Basically, I am making a webpage. Depending on the data in SQL server,
 I
   need to render widgets on the page. As a simple example, if there are
 20
   data items, then I need to make 20 check boxes with the labels as
 retrieved
   from the server.
 
   The data on the server changes rather infrequently.
 
   While I am able to do this currently, I have a feeling it's not the
 best
   approach to the problem. I am making XML Http requests to the server,
 and
   then I parse the data and render the widgets accordingly on the fly.
 
   I am wondering if that's a good solution... I am confused because it
 feels
   like I have the data already, then I should be able to avoid data
 requests
   and the consequent delay in rendering. But with this approach, I can't
 think
   of a way to update the webpage appropriately if the data in the SQL
 server
   changes.
 
   Any opinions/suggestions?
 
   Thanks a lot,
 
   Neha
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question regarding web-application design

2009-07-11 Thread Sky

Given your description then to be honest I would agree you could do
something better than XML HTTPrequest or Java RPC.

But it seriously depends on how your app works and what your
requirements are.
What I would suggest is that you dump the data onto the page in the
initial page request. Since the data rarely changes and IFF the client
is unlikely to maintain a long session, then this might be a better
approach. You would have to be ok with the fact that they won't get
updated data until they hit the refresh button as opposed to clicking
on the button leading to the page containing the 20 check boxes. If
this is unacceptable and you require that when the user clicks on the
menu button or w/e links them to that page will build the page
afresh, then your current design is the only correct way (but as
mentioned might be able to have improved performance via Java RPC)

If its ok to just dump it to the initial page request, your server
side code must simply modify the GWT html file, inserting the data as
regular javascript, like an array of values or whatever it is.Your GWT
code would need to interface to some handwritten Javascript that
assumes the name of that javascript array exists and loads its
contents. Pretty easy.

hope this helps

On Jul 10, 11:43 am, Kamal Chandana Mettananda lka...@gmail.com
wrote:
 Just to add to that; if you are using Java on your server side you may
 be planning to use Servlets. If that's the case you can have a look at
 the following tutorial.

 http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial...

 Cheers.



 On Fri, Jul 10, 2009 at 9:58 PM, Jimjim.p...@gmail.com wrote:

  If you plan to use Java for your server side, you don't have to use
  XML http requests. You can use the built-in RPC to retrieve Java
  objects from server and send to GWT clients or vice versa. That is a
  big advantage to stick to Java in server side. You can find an example
  inhttp://www.gwtorm.com/gwtMail.jsp.

  Jim
 http://www.gwtorm.com
 http://code.google.com/p/dreamsource-orm/

  On Jul 10, 10:54 am, Neha Chachra neha.chac...@gmail.com wrote:
  Hi,

  I started using GWT only about a week ago and I have rather little
  experience with client-server interactions so I wish to make sure that I am
  headed in the right direction. Though, I am guessing that the question is
  not directly related to GWT and I apologize for that.

  Basically, I am making a webpage. Depending on the data in SQL server, I
  need to render widgets on the page. As a simple example, if there are 20
  data items, then I need to make 20 check boxes with the labels as retrieved
  from the server.

  The data on the server changes rather infrequently.

  While I am able to do this currently, I have a feeling it's not the best
  approach to the problem. I am making XML Http requests to the server, and
  then I parse the data and render the widgets accordingly on the fly.

  I am wondering if that's a good solution... I am confused because it feels
  like I have the data already, then I should be able to avoid data requests
  and the consequent delay in rendering. But with this approach, I can't 
  think
  of a way to update the webpage appropriately if the data in the SQL server
  changes.

  Any opinions/suggestions?

  Thanks a lot,

  Neha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question regarding web-application design

2009-07-10 Thread Jim

If you plan to use Java for your server side, you don't have to use
XML http requests. You can use the built-in RPC to retrieve Java
objects from server and send to GWT clients or vice versa. That is a
big advantage to stick to Java in server side. You can find an example
in http://www.gwtorm.com/gwtMail.jsp.

Jim
http://www.gwtorm.com
http://code.google.com/p/dreamsource-orm/

On Jul 10, 10:54 am, Neha Chachra neha.chac...@gmail.com wrote:
 Hi,

 I started using GWT only about a week ago and I have rather little
 experience with client-server interactions so I wish to make sure that I am
 headed in the right direction. Though, I am guessing that the question is
 not directly related to GWT and I apologize for that.

 Basically, I am making a webpage. Depending on the data in SQL server, I
 need to render widgets on the page. As a simple example, if there are 20
 data items, then I need to make 20 check boxes with the labels as retrieved
 from the server.

 The data on the server changes rather infrequently.

 While I am able to do this currently, I have a feeling it's not the best
 approach to the problem. I am making XML Http requests to the server, and
 then I parse the data and render the widgets accordingly on the fly.

 I am wondering if that's a good solution... I am confused because it feels
 like I have the data already, then I should be able to avoid data requests
 and the consequent delay in rendering. But with this approach, I can't think
 of a way to update the webpage appropriately if the data in the SQL server
 changes.

 Any opinions/suggestions?

 Thanks a lot,

 Neha
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question regarding web-application design

2009-07-10 Thread Kamal Chandana Mettananda

Just to add to that; if you are using Java on your server side you may
be planning to use Servlets. If that's the case you can have a look at
the following tutorial.

http://lkamal.blogspot.com/2008/09/java-gwt-servlets-web-app-tutorial.html

Cheers.



On Fri, Jul 10, 2009 at 9:58 PM, Jimjim.p...@gmail.com wrote:

 If you plan to use Java for your server side, you don't have to use
 XML http requests. You can use the built-in RPC to retrieve Java
 objects from server and send to GWT clients or vice versa. That is a
 big advantage to stick to Java in server side. You can find an example
 in http://www.gwtorm.com/gwtMail.jsp.

 Jim
 http://www.gwtorm.com
 http://code.google.com/p/dreamsource-orm/

 On Jul 10, 10:54 am, Neha Chachra neha.chac...@gmail.com wrote:
 Hi,

 I started using GWT only about a week ago and I have rather little
 experience with client-server interactions so I wish to make sure that I am
 headed in the right direction. Though, I am guessing that the question is
 not directly related to GWT and I apologize for that.

 Basically, I am making a webpage. Depending on the data in SQL server, I
 need to render widgets on the page. As a simple example, if there are 20
 data items, then I need to make 20 check boxes with the labels as retrieved
 from the server.

 The data on the server changes rather infrequently.

 While I am able to do this currently, I have a feeling it's not the best
 approach to the problem. I am making XML Http requests to the server, and
 then I parse the data and render the widgets accordingly on the fly.

 I am wondering if that's a good solution... I am confused because it feels
 like I have the data already, then I should be able to avoid data requests
 and the consequent delay in rendering. But with this approach, I can't think
 of a way to update the webpage appropriately if the data in the SQL server
 changes.

 Any opinions/suggestions?

 Thanks a lot,

 Neha
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question re returning persisted objects via RPC to client

2009-06-29 Thread Will

I took a slightly different approach to option 1.

I created a interfaces that describe the Animal and made both the DTO
and GWT implement the interfaces.  This lets me control the
dependencies and ended up cutting down on the amount data I needed to
send to the browser.  I'm actually referring to a scheduling
application but to keep the Animal analogy I found that the majority
of components only needed to know the animal's species and age, not
every detail that was in the object.

On Jun 29, 12:34 am, Dalla dalla_man...@hotmail.com wrote:
 You would have to do it either like you suggested; create two separate
 classes,
 one persistence class, and then one DTO class.

 Or you could create just a POJO and keep the persistence info in a
 separate mapping file.

 From what I understand, most tend to go with the first option.

 On 28 Juni, 14:09, Ben Daniel bendan...@gmail.com wrote:

  Let's say I want to persist Animal objects using JDO and also want to
  return these Animal objects via a GWT RPC service. From what I
  understand GWT will compile a version of Animal in javascript on the
  client. And I take it that any JDO persistence stuff shouldn't be
  going down to the client.

  So do I have to create two separate classes for my Animal type: one
  used on the server for persistence via JDO and another which the
  client uses over RPC. Is this the normal thing to do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question re returning persisted objects via RPC to client

2009-06-29 Thread Alejandro D. Garin
Hi,

I wrote an example using gwt with java app engine.

http://puntosoft2k.appspot.com/gwt_gae_example.html

The example shows how to create, update, delete and retrieve objects from
app engine datastore to GWT client using RPC. The example use DTO approach.
Source code is available.

Hope that helps.
Regards,
Ale

On Sun, Jun 28, 2009 at 9:09 AM, Ben Daniel bendan...@gmail.com wrote:


 Let's say I want to persist Animal objects using JDO and also want to
 return these Animal objects via a GWT RPC service. From what I
 understand GWT will compile a version of Animal in javascript on the
 client. And I take it that any JDO persistence stuff shouldn't be
 going down to the client.

 So do I have to create two separate classes for my Animal type: one
 used on the server for persistence via JDO and another which the
 client uses over RPC. Is this the normal thing to do?

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question re returning persisted objects via RPC to client

2009-06-28 Thread Dalla

You would have to do it either like you suggested; create two separate
classes,
one persistence class, and then one DTO class.

Or you could create just a POJO and keep the persistence info in a
separate mapping file.

From what I understand, most tend to go with the first option.

On 28 Juni, 14:09, Ben Daniel bendan...@gmail.com wrote:
 Let's say I want to persist Animal objects using JDO and also want to
 return these Animal objects via a GWT RPC service. From what I
 understand GWT will compile a version of Animal in javascript on the
 client. And I take it that any JDO persistence stuff shouldn't be
 going down to the client.

 So do I have to create two separate classes for my Animal type: one
 used on the server for persistence via JDO and another which the
 client uses over RPC. Is this the normal thing to do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie Question - Integrate GWT on Existing page

2009-06-24 Thread Sean

In the default application that is created using the webAppCreator.cmd
or the Eclipse plugin you will see they add specific elements to
specefic parts of the page.

In the HTML under the body you will see:
table align=center
  tr
td colspan=2 style=font-weight:bold;Please enter your
name:/td
  /tr
  tr
td id=nameFieldContainer/td
td id=sendButtonContainer/td
  /tr
/table

Then in the corresponding GWT code you will see:
RootPanel.get(nameFieldContainer).add(nameField);
RootPanel.get(sendButtonContainer).add(sendButton);

So it's going to put those widgets in the .add() exactly where the id
is. So you could use the same idea to place your ticker exactly where
you want it. Hope this helps.


On Jun 24, 12:12 am, Andrew Myers am2...@gmail.com wrote:
 Thanks Pavel I will give it a try.

 I am going nuts with some Javascript libraries at the moment, and hopefully
 this will be much easier for me as a Java programmer :-)_

 2009/6/24 Pavel Byles pavelby...@gmail.com

  Sure it's feasible.
  Just create ur GWT widget and include the *.nocache.js file in your html.

  You can use GWT to place the widget anywhere on your page.

  On Tue, Jun 23, 2009 at 10:32 PM, Andrew am2...@gmail.com wrote:

  Hi All,

  Is it possible to integrate GWT onto an existing page?

  For example, if I wanted to write a GWT news ticker or something
  similar and put it into a block on the homepage of an existing site,
  is this feasible?  And if so, are there any examples avialable?  Most
  of the examples I have found seem to pertain to when you are writing
  the whole app in GWT.

  Thanks!

  Andrew.

  --
  -Pav
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie Question - Integrate GWT on Existing page

2009-06-23 Thread Pavel Byles
Sure it's feasible.
Just create ur GWT widget and include the *.nocache.js file in your html.

You can use GWT to place the widget anywhere on your page.

On Tue, Jun 23, 2009 at 10:32 PM, Andrew am2...@gmail.com wrote:


 Hi All,

 Is it possible to integrate GWT onto an existing page?

 For example, if I wanted to write a GWT news ticker or something
 similar and put it into a block on the homepage of an existing site,
 is this feasible?  And if so, are there any examples avialable?  Most
 of the examples I have found seem to pertain to when you are writing
 the whole app in GWT.

 Thanks!

 Andrew.
 



-- 
-Pav

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie Question - Integrate GWT on Existing page

2009-06-23 Thread Andrew Myers
Thanks Pavel I will give it a try.

I am going nuts with some Javascript libraries at the moment, and hopefully
this will be much easier for me as a Java programmer :-)_

2009/6/24 Pavel Byles pavelby...@gmail.com

 Sure it's feasible.
 Just create ur GWT widget and include the *.nocache.js file in your html.

 You can use GWT to place the widget anywhere on your page.

 On Tue, Jun 23, 2009 at 10:32 PM, Andrew am2...@gmail.com wrote:


 Hi All,

 Is it possible to integrate GWT onto an existing page?

 For example, if I wanted to write a GWT news ticker or something
 similar and put it into a block on the homepage of an existing site,
 is this feasible?  And if so, are there any examples avialable?  Most
 of the examples I have found seem to pertain to when you are writing
 the whole app in GWT.

 Thanks!

 Andrew.




 --
 -Pav

 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question about war file deployment for Tomcat

2009-05-12 Thread Jim

In your ApplicationName.gwt.xml, there is an attribute rename like
module rename-to=showcase, so you just try
http://localhost:8080/showcase/ApplicationName.html.


Jim
http://www.gwtorm.com
http://code.google.com/p/dreamsource-orm/

On May 12, 7:48 am, bartomas barto...@gmail.com wrote:
 Hi,
 I've generated a war file using GWT. I have placed it in the webapps
 folder of the tomcat directory (which is installed locally).
 How do I now start the application from a client browser?
 I have triedhttp://localhost:8080/ApplicationName
 but it doesnt work. I guess I'm missing something basic.
 Thanks very much for any help.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: newbie question - link event handling

2009-04-11 Thread Vitali Lovich
public class MyHyperlink extends Hyperlink
{
   public MyHyperlink(Element e)
   {
super(e);
   }
}

Then find the Element you want using DOM or gquery  pass it to your the
constructor.  Not sure why it's protected in Hyperlink.  Then use the
handlers/listeners as for a regular widget.

On Sat, Apr 11, 2009 at 1:56 AM, Adam T adam.t...@gmail.com wrote:


 Hi Joe,

 Maybe the History class can help you here.  It allows you to pick a
 token off the url and change you applications status appropriately -
 a token is essentially everything after the hash (#)

 In the case where a user navigates to a url such as
 http://gwt.google.com/samples/Mail/Mail.html#foo the token would be
 foo and the history class would pick this up and act appropriately.
 Similarly when you click on your hyperlink it would change the URL
 from http://somthing to http://something#foo.

 A google search on gwt history should bring up a few tutorials (though
 they will most likely use GWT 1.5 and not the new GWT 1.6 syntax, but
 that should be OK for now - the new 1.6 syntax would use
 ValueChangeHandlerString and the History.addValueChange() method
 instead of HistoryListeners classes and History.addHistoryListener()
 method - I'd suggest get used to the old approach before switching to
 the new one)

 Hope that helps, at least a bit!

 //Adam

 On 10 Apr, 14:46, Joe Hudson joe...@gmail.com wrote:
  hello,
 
  I know this is a silly question but I haven't found a reference to
  this...
 
  If I have links within the html document but outside of the GWT
  application (see the #foo link below).  How can I (or, is this
  possible) to capture this event from within the GWT application?
 
body
  a href=#foohow can I get this link event in the GWT app?/a
 
  script type=text/javascript language='javascript'
src='com.google.gwt.sample.mail.Mail.nocache.js'/script
/body
 
  Also, if I am coming to the app for the first time and I provide a
  link likehttp://gwt.google.com/samples/Mail/Mail.html#foo
  How, in the app would I know that the foo name was passed?
 
  Thank you very much for the help.
 
  Joe
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: newbie question - link event handling

2009-04-11 Thread Joe Hudson
Thank you Vitali and Adam for you help, that is exactly what I needed to
know - I'll try it out.

Joe

On Sat, Apr 11, 2009 at 2:09 AM, Vitali Lovich vlov...@gmail.com wrote:

 public class MyHyperlink extends Hyperlink
 {
public MyHyperlink(Element e)
{
 super(e);
}
 }

 Then find the Element you want using DOM or gquery  pass it to your the
 constructor.  Not sure why it's protected in Hyperlink.  Then use the
 handlers/listeners as for a regular widget.


 On Sat, Apr 11, 2009 at 1:56 AM, Adam T adam.t...@gmail.com wrote:


 Hi Joe,

 Maybe the History class can help you here.  It allows you to pick a
 token off the url and change you applications status appropriately -
 a token is essentially everything after the hash (#)

 In the case where a user navigates to a url such as
 http://gwt.google.com/samples/Mail/Mail.html#foo the token would be
 foo and the history class would pick this up and act appropriately.
 Similarly when you click on your hyperlink it would change the URL
 from http://somthing to http://something#foo.

 A google search on gwt history should bring up a few tutorials (though
 they will most likely use GWT 1.5 and not the new GWT 1.6 syntax, but
 that should be OK for now - the new 1.6 syntax would use
 ValueChangeHandlerString and the History.addValueChange() method
 instead of HistoryListeners classes and History.addHistoryListener()
 method - I'd suggest get used to the old approach before switching to
 the new one)

 Hope that helps, at least a bit!

 //Adam

 On 10 Apr, 14:46, Joe Hudson joe...@gmail.com wrote:
  hello,
 
  I know this is a silly question but I haven't found a reference to
  this...
 
  If I have links within the html document but outside of the GWT
  application (see the #foo link below).  How can I (or, is this
  possible) to capture this event from within the GWT application?
 
body
  a href=#foohow can I get this link event in the GWT app?/a
 
  script type=text/javascript language='javascript'
src='com.google.gwt.sample.mail.Mail.nocache.js'/script
/body
 
  Also, if I am coming to the app for the first time and I provide a
  link likehttp://gwt.google.com/samples/Mail/Mail.html#foo
  How, in the app would I know that the foo name was passed?
 
  Thank you very much for the help.
 
  Joe



 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: newbie question - link event handling

2009-04-10 Thread Adam T

Hi Joe,

Maybe the History class can help you here.  It allows you to pick a
token off the url and change you applications status appropriately -
a token is essentially everything after the hash (#)

In the case where a user navigates to a url such as
http://gwt.google.com/samples/Mail/Mail.html#foo the token would be
foo and the history class would pick this up and act appropriately.
Similarly when you click on your hyperlink it would change the URL
from http://somthing to http://something#foo.

A google search on gwt history should bring up a few tutorials (though
they will most likely use GWT 1.5 and not the new GWT 1.6 syntax, but
that should be OK for now - the new 1.6 syntax would use
ValueChangeHandlerString and the History.addValueChange() method
instead of HistoryListeners classes and History.addHistoryListener()
method - I'd suggest get used to the old approach before switching to
the new one)

Hope that helps, at least a bit!

//Adam

On 10 Apr, 14:46, Joe Hudson joe...@gmail.com wrote:
 hello,

 I know this is a silly question but I haven't found a reference to
 this...

 If I have links within the html document but outside of the GWT
 application (see the #foo link below).  How can I (or, is this
 possible) to capture this event from within the GWT application?

   body
     a href=#foohow can I get this link event in the GWT app?/a

     script type=text/javascript language='javascript'
       src='com.google.gwt.sample.mail.Mail.nocache.js'/script
   /body

 Also, if I am coming to the app for the first time and I provide a
 link likehttp://gwt.google.com/samples/Mail/Mail.html#foo
 How, in the app would I know that the foo name was passed?

 Thank you very much for the help.

 Joe
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question

2009-04-06 Thread redzedi

Thanks Paul !!

On Apr 3, 7:03 pm, Paul Robinson ukcue...@gmail.com wrote:
 redzediwrote:
  Hi All,
     Here are a couple of elementary questions, pardon me if they sound
  very naive but i really really need to know the answer :-

  1. why do we need to do a setEndPoint on the client-side stub we get
  from GWT.create() ??

 because you choose what the name of your servlet will be in your
 web.xml. It can't know what name you put in there.

  2. is the resultant stub as thus created threadsafe or is their any
  kind of restrictions of its being used simultaneously i.e can i save a
  reference of the stub as a static variable and call it from anywhere
  in my code ??

 Client-side GWT code runs in the browser and is therefore single-threaded.

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



Re: Newbie question

2009-04-03 Thread Paul Robinson

redzedi wrote:
 Hi All,
Here are a couple of elementary questions, pardon me if they sound
 very naive but i really really need to know the answer :-

 1. why do we need to do a setEndPoint on the client-side stub we get
 from GWT.create() ??
   
because you choose what the name of your servlet will be in your
web.xml. It can't know what name you put in there.

 2. is the resultant stub as thus created threadsafe or is their any
 kind of restrictions of its being used simultaneously i.e can i save a
 reference of the stub as a static variable and call it from anywhere
 in my code ??

   
Client-side GWT code runs in the browser and is therefore single-threaded.

Paul

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



Re: Newbie Question on GWT/JSON

2009-01-05 Thread Reinier Zwitserloot

Whoops, forgot my footnote:

[1] http://www.ietf.org/rfc/rfc4627.txt

I don't know if that makes it official. I believe the official entity
that vets mime types is IANA, but on their site I couldn't quickly get
to an official list of recognized mime types. Still, if Doug Crockford
says the type is application/json, and almost everyone uses that,
that's the standard. That's how the internet works; standards bodies
can wax rhapsodic about whatever they fancy, but if no one does it,
it's not something you should be doing either, regardless of whether
or not its the 'official standard', so, there you have it.

Oh, and martykube: Be careful that your soul doesn't waft out the
window that is giving you that fresh air. As a general rule, if PHP is
a good fit for you, grails, rails, or django are usually an even
better fit.

On Jan 4, 11:48 pm, rakesh wagh rake...@gmail.com wrote:
 You probably got your answer by now. Think this way. JSON string is
 like any other string. The transport mechanism does not have to know
 weather it is json or text or number or binary or otherwise. With that
 said, you can use forms with get or post(knowing the advantages
 drawback of each will help you select the right mechanism) and simply
 posting it to your php page. In your php page, read the request
 parameters as if they were any other parameters.

 As a matter of fact you can even append the json string as part of
 your target page url with a variable name and expect the json string
 (with a hyperlink click) to reach its destination as expected.

 Good luck!
 Rakesh Wagh

 On Jan 3, 9:09 pm, Ian ikra...@gmail.com wrote:

  I am new to the Web application world; I am trying to encapsulate my
  set of data in a JSONObject, convert to string, and send it  (async
  POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial
  discusses the trip from the server back to the client and not the
  other way around where I am unclear about.

  Do I need to set the header? Currently I set it to:
   builder.setHeader(Content-Type, application/x-www-form-
  urlencoded);

  However, this works fine as long as am sending
  key1=value1key2=values where I can retrieve variable via $_POST
  ['key1'] or $_POST['key2']

  But I am not sure how to send a JSON string where it can be retrieved
  in a php page. I have tried sending myvar=MyJsonString but cannot
  retrieve in my php page. How should $_POST reference the JSON object?

  Any clarification would be much appreciated.

  Thanks,

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



Re: Newbie Question on GWT/JSON

2009-01-04 Thread Ian Petersen

On Sun, Jan 4, 2009 at 11:31 PM, Reinier Zwitserloot reini...@gmail.com wrote:
 JSON's mimetype is application/json (see [1] below).

You missed the [1] below part and my interest is piqued.  Is
application/json an officially accepted MIME type?

 Oh, PHP. Every single time someone posts a code snippet written in
 PHP, my aesthetic sense blows its brains out in sheer despair. And
 this one is up there, which is really saying something. I think its a
 conspiracy by the zend folks to make the inner child of developers
 worldwide die a little inside every time they come in contact with it.
 Sadistic bastards.

Too bad the truth can be so inflammatory

Ian

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



Re: Newbie Question on GWT/JSON

2009-01-04 Thread rakesh wagh

You probably got your answer by now. Think this way. JSON string is
like any other string. The transport mechanism does not have to know
weather it is json or text or number or binary or otherwise. With that
said, you can use forms with get or post(knowing the advantages
drawback of each will help you select the right mechanism) and simply
posting it to your php page. In your php page, read the request
parameters as if they were any other parameters.

As a matter of fact you can even append the json string as part of
your target page url with a variable name and expect the json string
(with a hyperlink click) to reach its destination as expected.

Good luck!
Rakesh Wagh

On Jan 3, 9:09 pm, Ian ikra...@gmail.com wrote:
 I am new to the Web application world; I am trying to encapsulate my
 set of data in a JSONObject, convert to string, and send it  (async
 POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial
 discusses the trip from the server back to the client and not the
 other way around where I am unclear about.

 Do I need to set the header? Currently I set it to:
  builder.setHeader(Content-Type, application/x-www-form-
 urlencoded);

 However, this works fine as long as am sending
 key1=value1key2=values where I can retrieve variable via $_POST
 ['key1'] or $_POST['key2']

 But I am not sure how to send a JSON string where it can be retrieved
 in a php page. I have tried sending myvar=MyJsonString but cannot
 retrieve in my php page. How should $_POST reference the JSON object?

 Any clarification would be much appreciated.

 Thanks,

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



Re: Newbie Question on GWT/JSON

2009-01-03 Thread Reinier Zwitserloot

Whatever possessed you to send the application/x-www-form-
urlencoded as mime type?

JSON is nothing like form-encoded. That's like sending your HTML as
image/jpeg just for kicks. Don't do that.

JSON's mimetype is application/json (see [1] below). If you want to
be nice, you should actually set that in the header (as follows:
Content-type: application/json; encoding=UTF-8  - note that JSON is
defined to be UTF-8 encoded, so you're just clarifying there, you
can't pick your own encoding).

And, yes, of course, in PHP you would have to get the entire request
body, instead of letting PHP try to parse it as form data. Possibly
PHP is presuming that the data IS form encoded when there is no header
at all. Is file_get_contents(php://input); really the only feasible
way to get the entire body in PHP?

Oh, PHP. Every single time someone posts a code snippet written in
PHP, my aesthetic sense blows its brains out in sheer despair. And
this one is up there, which is really saying something. I think its a
conspiracy by the zend folks to make the inner child of developers
worldwide die a little inside every time they come in contact with it.
Sadistic bastards.



On Jan 4, 6:52 am, Ian ikra...@gmail.com wrote:
 For those who might be facing a similar problem and others who might
 be interested in my previous question I have come up with an answer.
 First my disclaimer: the solution below may not be the proper one but
 it does work. Now on to the solution:

 On the GWT Client Side:

 JSONObject jObject = new JSONObject();
 jObject .put(propA, new JSONString(valA));
 jObject .put(...

 RequestBuilder builder = new RequestBuilder(RequestBuilder.POST,
 YOUR_PHP_URL);
 builder.sendRequest(jObject.toString(), new YourReponseHandler());

 Note that there is no setHeader.

 On the PHP side:

 Get the raw data instead of $_POST
 $jsonReq = file_get_contents(php://input);

 Decode the json request
 $request = json_decode($jsonReq);

 Cheers,
 Ian

 On Jan 3, 10:09 pm, Ian ikra...@gmail.com wrote:

  I am new to the Web application world; I am trying to encapsulate my
  set of data in a JSONObject, convert to string, and send it  (async
  POST) to a PHP page using GWT's RequestBuilder. GWT's tutorial
  discusses the trip from the server back to the client and not the
  other way around where I am unclear about.

  Do I need to set the header? Currently I set it to:
   builder.setHeader(Content-Type, application/x-www-form-
  urlencoded);

  However, this works fine as long as am sending
  key1=value1key2=values where I can retrieve variable via $_POST
  ['key1'] or $_POST['key2']

  But I am not sure how to send a JSON string where it can be retrieved
  in a php page. I have tried sending myvar=MyJsonString but cannot
  retrieve in my php page. How should $_POST reference the JSON object?

  Any clarification would be much appreciated.

  Thanks,

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



Re: Newbie question - GWT not creating files in Hosted mode.

2008-11-26 Thread fancyplants

Doh, thanks Thomas,  schoolboy error!

On Oct 10, 9:24 am, Thomas Broyer [EMAIL PROTECTED] wrote:
 On 9 oct, 13:24, fancyplants [EMAIL PROTECTED] wrote:

  [WARN] Resource not found: com.app.gwt.client.Main.nocache.js; (could
  a file be missing from the public path or a servlet tag
  misconfigured in module com.app.gwt.Main.gwt.xml ?)

 [...]

      script type=text/javascript language=javascript
  src=com.app.gwt.client.Main.nocache.js/script

 Your module is named com.app.gwt.Main, not com.app.gwt.client.Main
 (which happens to be the name of your module's EntryPoint)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question - GWT not creating files in Hosted mode.

2008-10-10 Thread Thomas Broyer



On 9 oct, 13:24, fancyplants [EMAIL PROTECTED] wrote:
 [WARN] Resource not found: com.app.gwt.client.Main.nocache.js; (could
 a file be missing from the public path or a servlet tag
 misconfigured in module com.app.gwt.Main.gwt.xml ?)

[...]

     script type=text/javascript language=javascript
 src=com.app.gwt.client.Main.nocache.js/script

Your module is named com.app.gwt.Main, not com.app.gwt.client.Main
(which happens to be the name of your module's EntryPoint)


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Newbie question - adding GWT to my existing application

2008-10-02 Thread walden

Suri,

Let's take it one step at a time.  The first problem is your source
directive.  It should look like this:

source path=./

The path is the folder at the root of a hierarchy, not a single file.
Since your path was defective, the Client1 source was not found, and
that caused the import statement to fail the compile.  The rest of the
diagnostics you can just ignore.

As for you later question, GWT does need the Java source (and does not
need the .class files).  GWT does have a limitation that inherited
source needs to be packaged for inheritance.  You can't just throw
arbitrary jars at a GWT compile the way you can in actual Java.
That's because of the limitations inherent in compiling to Javascript.

Walden

On Oct 1, 4:51 pm, Suri [EMAIL PROTECTED] wrote:
 Hi Walden,

 Here's what I did:

 1) My current project is set up with the source code as

 *project
   - webroot (all JSP, WEB-INF, etc lie here)
   - src
      - package
           - subpackage
                    - Class1
                   -  Class2
                    - subpackage2
                         - Class3*

 So now when adding GWT here's what i did:

 1) I ran the applicationCreator command under the project directory,
 so if
 the name of my GWT module is going to be gwt_test

 *project
   - webroot
   - src
   - gwt_test
 *
 So in order to import Class1, i created a subpackage.gwt.xml  under
 the
 subpackage directory
 *     - subpackage
         - subpackage.gwt.xml
         - Class1
         - Class2*

 The contents of this were

 *module
       source path=Class1/
 /module*

 Now in my GWT module

 gwt_test
   - src
       - package1
             - subpackage
                  - gwt
                        - client
                              - Gwt_test.java

 I added the import statement to the Gwt_test.java  as a regular
 import  -
 import package.subpackage.Class1
 I modified the class path of gwt_test-compile.cmd to contain the
 additional
 path to the  subpackage.gwt.xml i.e  *C:/./subpackage.gwt.xml *

 Upon trying to GWT compile this, i still get the error

 Removing units with errors
    [ERROR] Errors in
 'file:/C:/eclipse_workspace/project/gwt_test/src/package1/
 subpackage.gwt.client.Gwt_test.java'
       [ERROR] Line 12: The import package.subpackage.Class1 cannot be
 resolved
 Compiling module package1.subpackage.gwt.client.Gwt_test
 Computing all possible rebind results for
 'package1.subpackage.gwt.client.Gwt_test'
    Rebinding package1.subpackage.gwt.client.Gwt_test.java
       Checking rule generate-with
 class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
          [ERROR] Unable to find type
 'package1.subpackage.gwt.client.Gwt_test'
             [ERROR] Hint: Previous compiler errors may have made this
 type
 unavailable
             [ERROR] Hint: Check the inheritance chain from your
 module; it
 may not be inheriting a r
 equired module or a module may not be adding its source path entries
 properly
 [ERROR] Build failed

 Actual class names have been substituted for privacy. Let me know what
 I'm
 doing wrong.
 Also additionally, I'd still like to know how to deal with this if I
 had to
 be importing from a jar. I ask, because ideally I do not want to be
 disturbing the current code structure too much and for curiosity I'd
 like to
 know the limitation of GWT with this regard. When I do import from a
 jar,
 does the jar being used need to have the source files as well as the
 class
 files for the project. So for example if I was trying to use some 3rd
 party
 or open source jar, then how would this work because most of the time
 we'd
 be downloading and using binaries right.

 Thanks
 Suri

 - Hide quoted text -
 - Show quoted text -

 On Sep 29, 8:47 am, walden [EMAIL PROTECTED] wrote:



  Suri,

  If the current Java code is in the same project where you are adding
  GWT on the client, you don't need a jar.

  Your current Java code does have to be sanitized to meet the 'closed
  world' requirements of the GWT compiler.  Read the documentation on
  the GWT compiler and JRE emulation classes for details.

  Your current Java code will have to be findable by the GWT compiler,
  which means there must be a .gwt.xml file on the classpath when you
  run the GWT compiler (you'll need to create that), and it needs to
  indicate where the compile sources are.  There are basically two ways
  to approach this part:

  1. keep your sources exactly where they are; place your Pkg1.gwt.xml
  file in the root folder of the smallest containing sub-tree for all
  the classes you need to include, and use the source path=x/ tag as
  many times as necessary to indicate (and hopefully isolate) just the
  classes you want compiled by GWT.

  2. do a little folder reorganization so that the classes you will
  share between server and client side are isolated cleanly; have a
  'client' folder at the root of that sub-tree, and place your
  Pkg1.gwt.xml file as a direct sibling to the client folder.  Then you

Re: Newbie question - adding GWT to my existing application

2008-10-02 Thread Suri

Ah, gotcha. Thanks Walden. I had the initial idea of having the '.'
But then refrained thinking I could point to the single class. I mis-
understood the first reply then. Thanks for the reply to the second
question as well. I'll go ahead and see how this works out. Appreciate
the patience.


Suri

On Oct 2, 8:28 am, walden [EMAIL PROTECTED] wrote:
 Suri,

 Let's take it one step at a time.  The first problem is your source
 directive.  It should look like this:

 source path=./

 The path is the folder at the root of a hierarchy, not a single file.
 Since your path was defective, the Client1 source was not found, and
 that caused the import statement to fail the compile.  The rest of the
 diagnostics you can just ignore.

 As for you later question, GWT does need the Java source (and does not
 need the .class files).  GWT does have a limitation that inherited
 source needs to be packaged for inheritance.  You can't just throw
 arbitrary jars at a GWT compile the way you can in actual Java.
 That's because of the limitations inherent in compiling to Javascript.

 Walden

 On Oct 1, 4:51 pm, Suri [EMAIL PROTECTED] wrote:

  Hi Walden,

  Here's what I did:

  1) My current project is set up with the source code as

  *project
    - webroot (all JSP, WEB-INF, etc lie here)
    - src
       - package
            - subpackage
                     - Class1
                    -  Class2
                     - subpackage2
                          - Class3*

  So now when adding GWT here's what i did:

  1) I ran the applicationCreator command under the project directory,
  so if
  the name of my GWT module is going to be gwt_test

  *project
    - webroot
    - src
    - gwt_test
  *
  So in order to import Class1, i created a subpackage.gwt.xml  under
  the
  subpackage directory
  *     - subpackage
          - subpackage.gwt.xml
          - Class1
          - Class2*

  The contents of this were

  *module
        source path=Class1/
  /module*

  Now in my GWT module

  gwt_test
    - src
        - package1
              - subpackage
                   - gwt
                         - client
                               - Gwt_test.java

  I added the import statement to the Gwt_test.java  as a regular
  import  -
  import package.subpackage.Class1
  I modified the class path of gwt_test-compile.cmd to contain the
  additional
  path to the  subpackage.gwt.xml i.e  *C:/./subpackage.gwt.xml *

  Upon trying to GWT compile this, i still get the error

  Removing units with errors
     [ERROR] Errors in
  'file:/C:/eclipse_workspace/project/gwt_test/src/package1/
  subpackage.gwt.client.Gwt_test.java'
        [ERROR] Line 12: The import package.subpackage.Class1 cannot be
  resolved
  Compiling module package1.subpackage.gwt.client.Gwt_test
  Computing all possible rebind results for
  'package1.subpackage.gwt.client.Gwt_test'
     Rebinding package1.subpackage.gwt.client.Gwt_test.java
        Checking rule generate-with
  class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
           [ERROR] Unable to find type
  'package1.subpackage.gwt.client.Gwt_test'
              [ERROR] Hint: Previous compiler errors may have made this
  type
  unavailable
              [ERROR] Hint: Check the inheritance chain from your
  module; it
  may not be inheriting a r
  equired module or a module may not be adding its source path entries
  properly
  [ERROR] Build failed

  Actual class names have been substituted for privacy. Let me know what
  I'm
  doing wrong.
  Also additionally, I'd still like to know how to deal with this if I
  had to
  be importing from a jar. I ask, because ideally I do not want to be
  disturbing the current code structure too much and for curiosity I'd
  like to
  know the limitation of GWT with this regard. When I do import from a
  jar,
  does the jar being used need to have the source files as well as the
  class
  files for the project. So for example if I was trying to use some 3rd
  party
  or open source jar, then how would this work because most of the time
  we'd
  be downloading and using binaries right.

  Thanks
  Suri

  - Hide quoted text -
  - Show quoted text -

  On Sep 29, 8:47 am, walden [EMAIL PROTECTED] wrote:

   Suri,

   If the current Java code is in the same project where you are adding
   GWT on the client, you don't need a jar.

   Your current Java code does have to be sanitized to meet the 'closed
   world' requirements of the GWT compiler.  Read the documentation on
   the GWT compiler and JRE emulation classes for details.

   Your current Java code will have to be findable by the GWT compiler,
   which means there must be a .gwt.xml file on the classpath when you
   run the GWT compiler (you'll need to create that), and it needs to
   indicate where the compile sources are.  There are basically two ways
   to approach this part:

   1. keep your sources exactly where they are; place your Pkg1.gwt.xml
   file in the root folder of the smallest 

Re: Newbie question - adding GWT to my existing application

2008-10-02 Thread Suri

An updated attempt..

I changed my classpath to point to the applications 'src' folder and
not the file directly and updated the Gwt_test.gwt.xml file to include
the line as

inherits name='package.subpackage.subpackage'/



Now when trying to compile I get this error

Loading module 'package1.subpackage.gwt.client.Gwt_test'
   Loading inherited module 'package.subpackage.subpackage'
  [WARN] Non-canonical source package: ./
Removing units with errors
   [ERROR] Errors in 'file:/C:/../gwt/client/Gwt_test.java'
  [ERROR] Line 11: The import Class1 cannot be resolved
Compiling module package1.subpackage.gwt.Gwt_test
Computing all possible rebind results for
'package1.subpackage.gwt.client.Gwt_test'
   Rebinding package1.subpackage.gwt.client.Gwt_test
  Checking rule generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
 [ERROR] Unable to find type
'package1.subpackage.gwt.client.Gwt_test'
[ERROR] Hint: Previous compiler errors may have made this
type unavailable
[ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a r
equired module or a module may not be adding its source path entries
properly
[ERROR] Build failed


Seems like it went a bit ahead except I'm not sure what the problem is
now.

On Oct 2, 9:21 am, Suri [EMAIL PROTECTED] wrote:
 Ah, gotcha. Thanks Walden. I had the initial idea of having the '.'
 But then refrained thinking I could point to the single class. I mis-
 understood the first reply then. Thanks for the reply to the second
 question as well. I'll go ahead and see how this works out. Appreciate
 the patience.

 Suri

 On Oct 2, 8:28 am, walden [EMAIL PROTECTED] wrote:

  Suri,

  Let's take it one step at a time.  The first problem is your source
  directive.  It should look like this:

  source path=./

  The path is the folder at the root of a hierarchy, not a single file.
  Since your path was defective, the Client1 source was not found, and
  that caused the import statement to fail the compile.  The rest of the
  diagnostics you can just ignore.

  As for you later question, GWT does need the Java source (and does not
  need the .class files).  GWT does have a limitation that inherited
  source needs to be packaged for inheritance.  You can't just throw
  arbitrary jars at a GWT compile the way you can in actual Java.
  That's because of the limitations inherent in compiling to Javascript.

  Walden

  On Oct 1, 4:51 pm, Suri [EMAIL PROTECTED] wrote:

   Hi Walden,

   Here's what I did:

   1) My current project is set up with the source code as

   *project
     - webroot (all JSP, WEB-INF, etc lie here)
     - src
        - package
             - subpackage
                      - Class1
                     -  Class2
                      - subpackage2
                           - Class3*

   So now when adding GWT here's what i did:

   1) I ran the applicationCreator command under the project directory,
   so if
   the name of my GWT module is going to be gwt_test

   *project
     - webroot
     - src
     - gwt_test
   *
   So in order to import Class1, i created a subpackage.gwt.xml  under
   the
   subpackage directory
   *     - subpackage
           - subpackage.gwt.xml
           - Class1
           - Class2*

   The contents of this were

   *module
         source path=Class1/
   /module*

   Now in my GWT module

   gwt_test
     - src
         - package1
               - subpackage
                    - gwt
                          - client
                                - Gwt_test.java

   I added the import statement to the Gwt_test.java  as a regular
   import  -
   import package.subpackage.Class1
   I modified the class path of gwt_test-compile.cmd to contain the
   additional
   path to the  subpackage.gwt.xml i.e  *C:/./subpackage.gwt.xml *

   Upon trying to GWT compile this, i still get the error

   Removing units with errors
      [ERROR] Errors in
   'file:/C:/eclipse_workspace/project/gwt_test/src/package1/
   subpackage.gwt.client.Gwt_test.java'
         [ERROR] Line 12: The import package.subpackage.Class1 cannot be
   resolved
   Compiling module package1.subpackage.gwt.client.Gwt_test
   Computing all possible rebind results for
   'package1.subpackage.gwt.client.Gwt_test'
      Rebinding package1.subpackage.gwt.client.Gwt_test.java
         Checking rule generate-with
   class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
            [ERROR] Unable to find type
   'package1.subpackage.gwt.client.Gwt_test'
               [ERROR] Hint: Previous compiler errors may have made this
   type
   unavailable
               [ERROR] Hint: Check the inheritance chain from your
   module; it
   may not be inheriting a r
   equired module or a module may not be adding its source path entries
   properly
   [ERROR] Build failed

   Actual class names have been substituted for privacy. Let me know what
   I'm
   doing wrong.
   Also 

Re: Newbie question - adding GWT to my existing application

2008-10-02 Thread Suri

Hi Walden
Did what you said and also modified the xxx-compile.cmd file to add
the class path for the gwt.xml file

so the new class path is

@java -Xmx256M -cp %~dp0\src;%~dp0\bin;C:/app/src/package/subpackage/
subpackage.gwt.xml;C:/.../gwt-user.jar;C:/.../gwt-dev-windows.jar
com.google.gwt.dev.GWTCompiler -out %~dp0\www %*
package1.subpackage.gwt.client.Gwt_test

And the Gwt_test.gwt.xml has been modified to include the line


  inherits name='src.package.subpackage.subpackage.'/



Upon running this I get the following error

Loading module 'package1.subpackage.gwt.client.Gwt_test'
   Loading inherited module
'src.package.subpackage.subpackage.gwt.xml'
  [ERROR] Unable to find 'src/package/subpackage/
subpackage.gwt.xml' on your classpath; could be a typo
, or maybe you forgot to include a classpath entry for source?
   [ERROR] Line 4: Unexpected exception while processing element
'inherits'
com.google.gwt.core.ext.UnableToCompleteException: (see previous log
entries)

Is the classpath being set wrongly?

On Oct 2, 9:21 am, Suri [EMAIL PROTECTED] wrote:
 Ah, gotcha. Thanks Walden. I had the initial idea of having the '.'
 But then refrained thinking I could point to the single class. I mis-
 understood the first reply then. Thanks for the reply to the second
 question as well. I'll go ahead and see how this works out. Appreciate
 the patience.

 Suri

 On Oct 2, 8:28 am, walden [EMAIL PROTECTED] wrote:

  Suri,

  Let's take it one step at a time.  The first problem is your source
  directive.  It should look like this:

  source path=./

  The path is the folder at the root of a hierarchy, not a single file.
  Since your path was defective, the Client1 source was not found, and
  that caused the import statement to fail the compile.  The rest of the
  diagnostics you can just ignore.

  As for you later question, GWT does need the Java source (and does not
  need the .class files).  GWT does have a limitation that inherited
  source needs to be packaged for inheritance.  You can't just throw
  arbitrary jars at a GWT compile the way you can in actual Java.
  That's because of the limitations inherent in compiling to Javascript.

  Walden

  On Oct 1, 4:51 pm, Suri [EMAIL PROTECTED] wrote:

   Hi Walden,

   Here's what I did:

   1) My current project is set up with the source code as

   *project
     - webroot (all JSP, WEB-INF, etc lie here)
     - src
        - package
             - subpackage
                      - Class1
                     -  Class2
                      - subpackage2
                           - Class3*

   So now when adding GWT here's what i did:

   1) I ran the applicationCreator command under the project directory,
   so if
   the name of my GWT module is going to be gwt_test

   *project
     - webroot
     - src
     - gwt_test
   *
   So in order to import Class1, i created a subpackage.gwt.xml  under
   the
   subpackage directory
   *     - subpackage
           - subpackage.gwt.xml
           - Class1
           - Class2*

   The contents of this were

   *module
         source path=Class1/
   /module*

   Now in my GWT module

   gwt_test
     - src
         - package1
               - subpackage
                    - gwt
                          - client
                                - Gwt_test.java

   I added the import statement to the Gwt_test.java  as a regular
   import  -
   import package.subpackage.Class1
   I modified the class path of gwt_test-compile.cmd to contain the
   additional
   path to the  subpackage.gwt.xml i.e  *C:/./subpackage.gwt.xml *

   Upon trying to GWT compile this, i still get the error

   Removing units with errors
      [ERROR] Errors in
   'file:/C:/eclipse_workspace/project/gwt_test/src/package1/
   subpackage.gwt.client.Gwt_test.java'
         [ERROR] Line 12: The import package.subpackage.Class1 cannot be
   resolved
   Compiling module package1.subpackage.gwt.client.Gwt_test
   Computing all possible rebind results for
   'package1.subpackage.gwt.client.Gwt_test'
      Rebinding package1.subpackage.gwt.client.Gwt_test.java
         Checking rule generate-with
   class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
            [ERROR] Unable to find type
   'package1.subpackage.gwt.client.Gwt_test'
               [ERROR] Hint: Previous compiler errors may have made this
   type
   unavailable
               [ERROR] Hint: Check the inheritance chain from your
   module; it
   may not be inheriting a r
   equired module or a module may not be adding its source path entries
   properly
   [ERROR] Build failed

   Actual class names have been substituted for privacy. Let me know what
   I'm
   doing wrong.
   Also additionally, I'd still like to know how to deal with this if I
   had to
   be importing from a jar. I ask, because ideally I do not want to be
   disturbing the current code structure too much and for curiosity I'd
   like to
   know the limitation of GWT with this regard. When I do 

Re: Newbie question - adding GWT to my existing application

2008-10-01 Thread Surendra Viswanadham
Hi Walden,

Here's what I did:

1) My current project is set up with the source code as

*project
  - webroot (all JSP, WEB-INF, etc lie here)
  - src
 - package
  - subpackage
   - Class1
  -  Class2
   - subpackage2
- Class3*

So now when adding GWT here's what i did:

1) I ran the applicationCreator command under the project directory, so if
the name of my GWT module is going to be gwt_test

*project
  - webroot
  - src
  - gwt_test
*
So in order to import Class1, i created a subpackage.gwt.xml  under the
subpackage directory
* - subpackage
- subpackage.gwt.xml
- Class1
- Class2*

The contents of this were

*module
  source path=Class1/
/module*

Now in my GWT module

gwt_test
  - src
  - package1
- subpackage
 - gwt
   - client
 - Gwt_test.java

I added the import statement to the Gwt_test.java  as a regular import  -
import package.subpackage.Class1
I modified the class path of gwt_test-compile.cmd to contain the additional
path to the  subpackage.gwt.xml i.e  *C:/./subpackage.gwt.xml *

Upon trying to GWT compile this, i still get the error

Removing units with errors
   [ERROR] Errors in
'file:/C:/eclipse_workspace/project/gwt_test/src/package1/subpackage.gwt.client.Gwt_test.java'
  [ERROR] Line 12: The import package.subpackage.Class1 cannot be
resolved
Compiling module package1.subpackage.gwt.client.Gwt_test
Computing all possible rebind results for
'package1.subpackage.gwt.client.Gwt_test'
   Rebinding package1.subpackage.gwt.client.Gwt_test.java
  Checking rule generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
 [ERROR] Unable to find type 'gov.nsf.oirm.pims.gwt.client.TestUI'
[ERROR] Hint: Previous compiler errors may have made this type
unavailable
[ERROR] Hint: Check the inheritance chain from your module; it
may not be inheriting a r
equired module or a module may not be adding its source path entries
properly
[ERROR] Build failed


Actual class names have been substituted for privacy. Let me know what I'm
doing wrong.
Also additionally, I'd still like to know how to deal with this if I had to
be importing from a jar. I ask, because ideally I do not want to be
disturbing the current code structure too much and for curiosity I'd like to
know the limitation of GWT with this regard. When I do import from a jar,
does the jar being used need to have the source files as well as the class
files for the project. So for example if I was trying to use some 3rd party
or open source jar, then how would this work because most of the time we'd
be downloading and using binaries right.

Thanks
Suri
On Mon, Sep 29, 2008 at 8:47 AM, walden [EMAIL PROTECTED] wrote:


 Suri,

 If the current Java code is in the same project where you are adding
 GWT on the client, you don't need a jar.

 Your current Java code does have to be sanitized to meet the 'closed
 world' requirements of the GWT compiler.  Read the documentation on
 the GWT compiler and JRE emulation classes for details.

 Your current Java code will have to be findable by the GWT compiler,
 which means there must be a .gwt.xml file on the classpath when you
 run the GWT compiler (you'll need to create that), and it needs to
 indicate where the compile sources are.  There are basically two ways
 to approach this part:

 1. keep your sources exactly where they are; place your Pkg1.gwt.xml
 file in the root folder of the smallest containing sub-tree for all
 the classes you need to include, and use the source path=x/ tag as
 many times as necessary to indicate (and hopefully isolate) just the
 classes you want compiled by GWT.

 2. do a little folder reorganization so that the classes you will
 share between server and client side are isolated cleanly; have a
 'client' folder at the root of that sub-tree, and place your
 Pkg1.gwt.xml file as a direct sibling to the client folder.  Then you
 don't need source tags.

 Try that, report any errors you get, and we'll sort it out from there.

 Walden

 On Sep 27, 3:30 pm, Suri [EMAIL PROTECTED] wrote:
  Hi All,
  I'm a GWT newbie and I've just come fresh after reading up the basics
  from the Google GWT tutorial. Here's my situation:
 
  I have an existing Java based web application (Struts based). Now I'm
  trying to add a new module to it and figure I'd try to incorporate GWT
  - mostly because I expect the new module to be a few very dynamic
  pages communicating with the server often.
 
  Now my first question is, how do I reference my current Java code in
  this GWT program. i.e if i have the following
 
  com.pkg1.Class1;
  com.pkg1.pkg2.Class2;
 
  in my existing Java code,
 
  and in my GWT java class I import these 2 classes for implementation,
  what are the exact steps I need to follow so that these are correctly
  added to the GWT 

Re: Newbie question - adding GWT to my existing application

2008-10-01 Thread Suri

Hi Walden,

Here's what I did:

1) My current project is set up with the source code as

*project
  - webroot (all JSP, WEB-INF, etc lie here)
  - src
 - package
  - subpackage
   - Class1
  -  Class2
   - subpackage2
- Class3*

So now when adding GWT here's what i did:

1) I ran the applicationCreator command under the project directory,
so if
the name of my GWT module is going to be gwt_test

*project
  - webroot
  - src
  - gwt_test
*
So in order to import Class1, i created a subpackage.gwt.xml  under
the
subpackage directory
* - subpackage
- subpackage.gwt.xml
- Class1
- Class2*

The contents of this were

*module
  source path=Class1/
/module*

Now in my GWT module

gwt_test
  - src
  - package1
- subpackage
 - gwt
   - client
 - Gwt_test.java

I added the import statement to the Gwt_test.java  as a regular
import  -
import package.subpackage.Class1
I modified the class path of gwt_test-compile.cmd to contain the
additional
path to the  subpackage.gwt.xml i.e  *C:/./subpackage.gwt.xml *

Upon trying to GWT compile this, i still get the error

Removing units with errors
   [ERROR] Errors in
'file:/C:/eclipse_workspace/project/gwt_test/src/package1/
subpackage.gwt.client.Gwt_test.java'
  [ERROR] Line 12: The import package.subpackage.Class1 cannot be
resolved
Compiling module package1.subpackage.gwt.client.Gwt_test
Computing all possible rebind results for
'package1.subpackage.gwt.client.Gwt_test'
   Rebinding package1.subpackage.gwt.client.Gwt_test.java
  Checking rule generate-with
class='com.google.gwt.user.rebind.ui.ImageBundleGenerator'/
 [ERROR] Unable to find type
'package1.subpackage.gwt.client.Gwt_test'
[ERROR] Hint: Previous compiler errors may have made this
type
unavailable
[ERROR] Hint: Check the inheritance chain from your
module; it
may not be inheriting a r
equired module or a module may not be adding its source path entries
properly
[ERROR] Build failed

Actual class names have been substituted for privacy. Let me know what
I'm
doing wrong.
Also additionally, I'd still like to know how to deal with this if I
had to
be importing from a jar. I ask, because ideally I do not want to be
disturbing the current code structure too much and for curiosity I'd
like to
know the limitation of GWT with this regard. When I do import from a
jar,
does the jar being used need to have the source files as well as the
class
files for the project. So for example if I was trying to use some 3rd
party
or open source jar, then how would this work because most of the time
we'd
be downloading and using binaries right.

Thanks
Suri

- Hide quoted text -
- Show quoted text -

On Sep 29, 8:47 am, walden [EMAIL PROTECTED] wrote:
 Suri,

 If the current Java code is in the same project where you are adding
 GWT on the client, you don't need a jar.

 Your current Java code does have to be sanitized to meet the 'closed
 world' requirements of the GWT compiler.  Read the documentation on
 the GWT compiler and JRE emulation classes for details.

 Your current Java code will have to be findable by the GWT compiler,
 which means there must be a .gwt.xml file on the classpath when you
 run the GWT compiler (you'll need to create that), and it needs to
 indicate where the compile sources are.  There are basically two ways
 to approach this part:

 1. keep your sources exactly where they are; place your Pkg1.gwt.xml
 file in the root folder of the smallest containing sub-tree for all
 the classes you need to include, and use the source path=x/ tag as
 many times as necessary to indicate (and hopefully isolate) just the
 classes you want compiled by GWT.

 2. do a little folder reorganization so that the classes you will
 share between server and client side are isolated cleanly; have a
 'client' folder at the root of that sub-tree, and place your
 Pkg1.gwt.xml file as a direct sibling to the client folder.  Then you
 don't need source tags.

 Try that, report any errors you get, and we'll sort it out from there.

 Walden

 On Sep 27, 3:30 pm, Suri [EMAIL PROTECTED] wrote:

  Hi All,
  I'm a GWT newbie and I've just come fresh after reading up the basics
  from the Google GWT tutorial. Here's my situation:

  I have an existing Java based web application (Struts based). Now I'm
  trying to add a new module to it and figure I'd try to incorporate GWT
  - mostly because I expect the new module to be a few very dynamic
  pages communicating with the server often.

  Now my first question is, how do I reference my current Java code in
  this GWT program. i.e if i have the following

  com.pkg1.Class1;
  com.pkg1.pkg2.Class2;

  in my existing Java code,

  and in my GWT java class I import these 2 classes for implementation,
  what are the exact steps I need to follow so that these are 

Re: Newbie question - adding GWT to my existing application

2008-09-29 Thread walden

Suri,

If the current Java code is in the same project where you are adding
GWT on the client, you don't need a jar.

Your current Java code does have to be sanitized to meet the 'closed
world' requirements of the GWT compiler.  Read the documentation on
the GWT compiler and JRE emulation classes for details.

Your current Java code will have to be findable by the GWT compiler,
which means there must be a .gwt.xml file on the classpath when you
run the GWT compiler (you'll need to create that), and it needs to
indicate where the compile sources are.  There are basically two ways
to approach this part:

1. keep your sources exactly where they are; place your Pkg1.gwt.xml
file in the root folder of the smallest containing sub-tree for all
the classes you need to include, and use the source path=x/ tag as
many times as necessary to indicate (and hopefully isolate) just the
classes you want compiled by GWT.

2. do a little folder reorganization so that the classes you will
share between server and client side are isolated cleanly; have a
'client' folder at the root of that sub-tree, and place your
Pkg1.gwt.xml file as a direct sibling to the client folder.  Then you
don't need source tags.

Try that, report any errors you get, and we'll sort it out from there.

Walden

On Sep 27, 3:30 pm, Suri [EMAIL PROTECTED] wrote:
 Hi All,
 I'm a GWT newbie and I've just come fresh after reading up the basics
 from the Google GWT tutorial. Here's my situation:

 I have an existing Java based web application (Struts based). Now I'm
 trying to add a new module to it and figure I'd try to incorporate GWT
 - mostly because I expect the new module to be a few very dynamic
 pages communicating with the server often.

 Now my first question is, how do I reference my current Java code in
 this GWT program. i.e if i have the following

 com.pkg1.Class1;
 com.pkg1.pkg2.Class2;

 in my existing Java code,

 and in my GWT java class I import these 2 classes for implementation,
 what are the exact steps I need to follow so that these are correctly
 added to the GWT program and can compile. So far, I haven't seemed to
 have found a definitive answer to this problem. I saw a few solutions
 of people saying a jar needs to be included and it needs to have a
 name.gwt.xml file which gets inherited or something but didn't quite
 understand what exactly they meant.Some others spoke about source code
 having to be available for the program to compile in order to convert
 the javascript. The reading ended up leaving me in a half baked
 situation which still doesn't help my GWT program compile.

 I'd really appreciate some help and maybe a few fundamentals on what
 needs to be happening.

 Thanks
 Suri
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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
-~--~~~~--~~--~--~---