Re: How to determine if popup panel is visible or shown?

2009-03-18 Thread Ziyod

There's an existing bug:
http://code.google.com/p/google-web-toolkit/issues/detail?id=1665

On Mar 18, 9:12 am, rjcarr rjc...@gmail.com wrote:
 It seems as soon as I create a popup panel (PopupPanel) and call the
 isVisible() method it will return true, even before I add a widget to
 it and before I call show().

 I can accept that it behaves differently from other widgets, but how
 then do I determine whether or not popup is visible (shown)?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Help with the connection

2009-01-08 Thread Ziyod

Hi Jully,

Follow this instructions if you still run into the same problems post
the error messages!
http://code.google.com/webtoolkit/gettingstarted.html


On Jan 7, 9:37 am, Jully tina.hak...@gmail.com wrote:
 Hello, Ziyod.

 I am in the location of GWT, then /samples, then, whatever file I
 double click(mail-shell, showcase-shell, hello-shell), it's just the
 same, nothing is lauched but that error message.

 Thank you for your help = )

 On 7 jan, 04:41, Ziyod ziyod2...@gmail.com wrote:

  Hi Jully,

  Can you be more specific on steps you took?
  Once you have installed GWT you should be able to go to /samples
  folder and pick any of the examples.
  For example, navigate to GWT_HOME/samples/Showcase (where GWT_HOME =
  location of gwt) folder and double click on Showcase-shell.cmd file
  that should launch a showcase sample in hosted mode.
  I hope that helps to get you started

  On Jan 6, 11:28 am, Jully tina.hak...@gmail.com wrote:

   Hi!
   I'm starting GWT today and it was just a problem to install it. I got
   it, but whenever I open a sample file it shows an error message that
   the requested URL could not be retrieved and it fails to connect to
   127.0.0.1    I have no idea about the settings or how to fix this,
   then any help is worth ;)

   Thank you!


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



Re: Compiling a single Java class to a plain JavaScript file

2009-01-07 Thread Ziyod

Hi Rich,
Reinier is right about the GWTCompiler.
I thought you were trying to get human-readable javascript. I run this
command in Windows(notice -style DETAILED argument):
@java -Xmx256M -cp %~dp0\src;%~dp0\bin;%~dp0\../../gwt-user.jar;
%~dp0\../../gwt-dev-windows.jar com.google.gwt.dev.GWTCompiler -out
%~dp0\www -style DETAILED %* com.google.gwt.sample.hello.Hello


On Jan 7, 12:20 am, Reinier Zwitserloot reini...@gmail.com wrote:
 rapodaca: The GWTCompiler is simply what drives the myProject-compile
 command; it does the same thing (translates a whole bunch of things
 into a single JS file), so I doubt its what you're looking for.

 What you want can't really be done. Java isn't javascript. Take your
 example just to illustrate the problem here: How would that even
 translate to javascript? Javascript doesn't have classes. It has
 prototype based inheritance. Here are your fundamental problems:

  1. Javascript's namespacing and object model is so different, that
 GWT internally generates completely different and unwieldy names for
 objects and classes. These names are then mangled to unrecognizable
 shortcodes to reduce the size of the output JS. So, your public void
 hello method is either going to be called: com.mypackage.Hello::talk
 () (yes, including closing parentheses to indicate that this version
 takes no parameters; unlike javascript, in java two methods with the
 same name but different parameter lists are completely separate, in
 javascript you can't do that), or it's going to be called something
 small and effectively random, so something like 'xYq' or some such.
 There's no code to pick a sane name for interaction, so nothing there
 that would even think to generate just a function called hello.

  2. There's a base set of functions that all GWT projects start out
 with. The GWT compiler assumes this basis is there.

  3. GWT does something called platform targeting. That's why it
 generates a number of JS files - one for each target platform. Out of
 the box, there are already multiple platforms (1 for each major
 supported browser, so there's an Opera, an IE, a Gecko, and a Webkit).
 I'm not entirely sure but I believe the base, talked about in #2, is
 already written specifically for each target browser platform.

 If you are in the market to build such a tool, The GWT sources are a
 great place to start, but unless you're willing to dig in for a few
 weeks and do a lot of dev work, I don't think GWT can do what you
 want.

 NB: I'm not an expert on the GWT internals so I might have made a few
 mistakes, but I'm fairly sure the above is true. #1 is certainly true,
 and already a big deal for you.

 On Jan 7, 7:20 am, rapodaca rich.apod...@gmail.com wrote:

  On Jan 6, 5:58 pm, Ziyod ziyod2...@gmail.com wrote:

   Use GWTCompiler it's part of the com.google.gwt.dev.GWTCompiler
   package
   Create a gwtCompiler.cmd file and insert this command:
   @java -cp %~dp0\gwt-user.jar;%~dp0\gwt-dev-windows.jar
   com.google.gwt.dev.GWTCompiler %*

  Hello Ziyod,

  Thanks for the information. I'm on Linux, but my best guess for
  translation is (creating file GWT_INSTALL/gwtCompiler):

  java -cp $HOMEDIR/gwt-user.jar:$HOMEDIR/gwt-dev-linux.jar
  com.google.gwt.dev.GWTCompiler $@;

  This is based on the projectCreator script provided in the
  installation.

  I notice that HOMEDIR is not set so I go:

  $ export HOMEDIR=~/tmp/gwt-linux-1.5.3

  Then I try:

  $ ./gwtCompiler com.example.Test
  Loading module 'com.example.Test'
     [ERROR] Unable to find 'com/example/Test.gwt.xml' on your
  classpath; could be a typo, or maybe you forgot to include a classpath
  entry for source?
  [ERROR] Build failed

  I'm not sure what happened or what the com/example/Test.gwt.xml file
  refers to. Any ideas of how to generate it and where to save it?

   Find out more:http://www.screaming-penguin.com/GWTDocs

  That's a good command summary, but unfortunately, I don't see any
  example usage.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google 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: Compiling a single Java class to a plain JavaScript file

2009-01-06 Thread Ziyod

Use GWTCompiler it's part of the com.google.gwt.dev.GWTCompiler
package
Create a gwtCompiler.cmd file and insert this command:
@java -cp %~dp0\gwt-user.jar;%~dp0\gwt-dev-windows.jar
com.google.gwt.dev.GWTCompiler %*

GWTCompiler [-logLevel level] [-gen dir] [-out dir] [-treeLogger] [-
style style] module
where
-logLevelThe level of logging detail: ERROR, WARN, INFO, TRACE,
DEBUG, SPAM, or ALL
-gen The directory into which generated files will be written
for review
-out The directory to write output files into (defaults to
current)
-treeLogger  Logs output in a graphical tree view
-style   Script output style: OBF[USCATED], PRETTY, or DETAILED
(defaults to OBF)
and
module   Specifies the name of the module to compile

? OBF—Obfuscated mode. This is a non-human-readable, compressed
version suitable for production use.
? PRETTY—Pretty-printed JavaScript with meaningful names.
? DETAILED—Pretty-printed JavaScript with fully qualified names.

Find out more:
http://www.screaming-penguin.com/GWTDocs

On Jan 6, 1:13 pm, rapodaca rich.apod...@gmail.com wrote:
 Greetings,

 Is it possible to use GWT to convert a single Java class to a
 JavaScript file that can be used within a browser? If so, how?

 More specifically, if I have a file called Hello.java containing:

 public class Hello
 {
   public String talk()
   {
     return hello;
   }

 }

 how can I use GWT to convert it into a single file called hello.js
 that could be used to instantiate a Hello object and call it's talk
 method?

 Almost all of the documentation on GWT I've been able to find deals
 with creating a Web site. I'd like to do something much simpler - just
 convert my Java class to a Javascript class-like structure that can
 instantiate an object and invoke its methods.

 This seems like something that should be trivial, but I've had no luck
 finding out how to get it done.

 Many thanks,
 Rich

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



Re: Help with the connection

2009-01-06 Thread Ziyod

Hi Jully,

Can you be more specific on steps you took?
Once you have installed GWT you should be able to go to /samples
folder and pick any of the examples.
For example, navigate to GWT_HOME/samples/Showcase (where GWT_HOME =
location of gwt) folder and double click on Showcase-shell.cmd file
that should launch a showcase sample in hosted mode.
I hope that helps to get you started

On Jan 6, 11:28 am, Jully tina.hak...@gmail.com wrote:
 Hi!
 I'm starting GWT today and it was just a problem to install it. I got
 it, but whenever I open a sample file it shows an error message that
 the requested URL could not be retrieved and it fails to connect to
 127.0.0.1    I have no idea about the settings or how to fix this,
 then any help is worth ;)

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