Re: Need to display a disabled checkbox without changing the appearance

2009-04-21 Thread Suren

As Lothar mentioned above, its not more appropriate to reset the
previous value of a checkbox, as it got checked and become unchecked.

so thought of keeping the original disabled appearance as such

On Apr 21, 10:32 pm, Ian Bambury  wrote:
> Checkboxes change their appearance for a reason.
> What are you doing that is so important that you don't mind
> confusing/pissing off your users?
>
> Ian
>
> http://examples.roughian.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CloseHandler, new window problem

2009-04-21 Thread ivovnenko

Update: it works in hosted mode, not don't in real browsers.

On Apr 22, 2:10 am, ivovnenko  wrote:
> Hello.
>
> I'm trying to open new browser window just before the main window (GWT
> host page) is closed.
> Strange thing is that when I write this -
>
> public void onClose(CloseEvent event) {
>   Window.alert(event.toDebugString());
>
> }
>
> alert is being shown, but
>
> public void onClose(CloseEvent event) {
>   Window.open("http://www.google.com","newWindow","";);
>
> }
>
> doesn't open new window.
>
> Would really appreciate 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: embedded flash not displaying is IE7 on secured url but works fine when viewed with unsecured url

2009-04-21 Thread Tony Strauss

After experiencing it with Flash first hand, I can confirm that the
ssl + ie issue also applies to Flash.  This blog post:

http://robsondesign.com/blog/index.php/2008/08/30/ie-ssl-xml-https-swf-doa/

has a good description of the problem.  ie8 also has this issue
("feature", according to Microsoft).

Tony
--
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

On Mar 12, 2:36 am, Tony Strauss 
wrote:
> This just is a wild shot in the dark (I have very limited experience
> with Flash) but could it be a problem with the cache control headers
> in the response returned by the server?  I've had a number of issues
> with IE (even IE7) + HTTPS that have resulted from this.
>
> See:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
> for a discussion of this issue for the GWT ImageBundle.
>
> See this:http://drupal.org/node/163298
> for a discussion of the issue in a different context.
>
> Also this for downloading MSOffice 
> files:http://support.microsoft.com/kb/316431
>
> Basically, IE cannot download files successfully over HTTPS if caching
> is completely suppressed.  Any of:
> Pragma: No-cache
> Cache-Control: no-cache
> in the response header will cause IE problems over HTTPS.
>
> Tony
>
> On Mar 11, 1:07 pm, "loveleen@gmail.com" 
> wrote:
>
> > Hi,
> >     Im using an embedded flash on a popup, the flash works fine if
> > viewed on firefox or with unsecured url but doesnt show when viewed
> > with secured url. Is it a general problem with IE?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Can you display a movie (video) with GWT?

2009-04-21 Thread Janet

I'm going to provide the same response for this and your similar
question about audio (http://groups.google.com/group/Google-Web-
Toolkit/browse_frm/thread/c739f638ca7679f5?hl=en), as the two
questions are related.

You can embed audio and video in GWT applications, but, in general,
GWT needs to invoke a player (QuickTime, Flash) in order to play
media.  There are various ways to do this, depending on your needs.
For instance, if you can assume the presence of QuickTime, you can
embed a player like this:

http://support.apple.com/kb/TA26485?viewlocale=en_US

My company actually did this for a recent project until we discovered
that QuickTime does not work properly on Windows 64, at which point we
switched to Flash (and the JW FLV player, 
http://www.longtailvideo.com/players/jw-flv-player/)
which we embed with the swfobject javascript library (http://
code.google.com/p/swfobject/) that also comes packaged with JW FLV.
We invoke this through GWT with JSNI.

There seem to be a number of open source wrappers around the various
players too, if you want to go that route.  I only can comment on gwt-
voices, which works well, but which we could not use as we needed
pause and seek support.

Janet

--
Janet Leland
Designing Patterns, LLC
http://www.designingpatterns.com

On Apr 21, 11:47 pm, "fker...@gmail.com"  wrote:
> A simple question: can you display video in a GWT application?
>
> Thanks!

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



Re: Playing audio files in GWT

2009-04-21 Thread Janet

I'm going to provide the same response for this and your similar
question about video (http://groups.google.com/group/Google-Web-
Toolkit/browse_frm/thread/9276cb86ebc94ffa?hl=en), as the two
questions are related.

You can embed audio and video in GWT applications, but, in general,
GWT needs to invoke a player (QuickTime, Flash) in order to play
media.  There are various ways to do this, depending on your needs.
For instance, if you can assume the presence of QuickTime, you can
embed a player like this:

http://support.apple.com/kb/TA26485?viewlocale=en_US

My company actually did this for a recent project until we discovered
that QuickTime does not work properly on Windows 64, at which point we
switched to Flash (and the JW FLV player, 
http://www.longtailvideo.com/players/jw-flv-player/)
which we embed with the swfobject javascript library (http://
code.google.com/p/swfobject/) that also comes packaged with JW FLV.
We invoke this through GWT with JSNI.

There seem to be a number of open source wrappers around the various
players too, if you want to go that route.  I only can comment on gwt-
voices, which works well, but which we could not use as we needed
pause and seek support.

Janet

--
Janet Leland
Designing Patterns, LLC
http://www.designingpatterns.com

On Apr 21, 11:49 pm, "fker...@gmail.com"  wrote:
> I wanted to be able to play sound files in a GWT application. Googling
> around, I found gwt-voices athttp://code.google.com/p/gwt-voices/but
> I'd like to know if this is the best way to go, or if am I missing
> something? How do you play audio in GWT?
>
> Thanks!

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



Playing audio files in GWT

2009-04-21 Thread fker...@gmail.com

I wanted to be able to play sound files in a GWT application. Googling
around, I found gwt-voices at http://code.google.com/p/gwt-voices/ but
I'd like to know if this is the best way to go, or if am I missing
something? How do you play audio in GWT?

Thanks!

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



Can you display a movie (video) with GWT?

2009-04-21 Thread fker...@gmail.com

A simple question: can you display video in a GWT application?

Thanks!

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



Re: A native GWT chart library?

2009-04-21 Thread Ben FS

> Thanks all for your help.
You're welcome!

> Ben, I looked at the links you gave me, a lot of interesting things
> but no client-site library that fits my need.
For what it's worth, I too would really like a client-side library -
mainly so that I can do lots of quick, small updates without much
latency. The quality just wasn't adequate for the client-side
libraries that I tried, so I switched back to a server-side library.
In my case, so far there has been no noticeable increase in latency:
you may wish to reconsider your need for a client-side solution, and
at least try it with an easy server-side solution (aka Google Chart
API or Eastwood) and see what your results are. Maybe you've already
tried this, or have other good reasons for a client-side solution.

> So I think I'm gonna end up doing a wrapper for dojo chart.
Sounds like a great project, and one that would be useful to many
(including me). If you make progress on this, would you consider
establishing a Google Code project?

Best of luck,
Ben.


>
> On Apr 21, 9:47 am, Flemming Boller  wrote:
>
>
>
> > Hi
>
> > I currently use the GWTCanvas, for creating pies. It works very well.
>
> > The code I can just copy paste from "swing/awt" code examples because the
> > GWTCanvas
> > api is very much like the normal jdk canvas. And you can your self attach
> > mouse listeners etc on the pie so it becomes interactive, with the rest of
> > the page.
>
> > So for pies it is well suited.
>
> > However I have not "cracked" the nutt with respect to drawing  text in the
> > canvas, last time I checked the versiondid not support drawString(...)
> > method, so that was a no go.
>
> > /Flemming
>
> > ps: if you want I can attach the code.
>
> > On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer  wrote:
>
> > > On 20 avr, 23:54, plcoirier  wrote:
> > > > Hi,
>
> > > > I'm looking for a native GWT chart library. I would like to be able to
> > > > draw all different kinds of chart (line chart, bart chart, area chart,
> > > > pie chart...). I also would like a client solution.
> > > > I unfortunately can't use Google Visualization bc it's for an intranet
> > > > website and users may not have access to google servers. Flash
> > > > solutions aren't an option either :(
>
> > > > I saw gchart but I need pie charts that are completely filled.
>
> > > > Any other ideas of library?
>
> > > Huh! no flash?! Which browser(s) are you targetting?
> > > If you only plan on supporting relatively modern browsers and/or IE,
> > > then you could use SVG or canvas (for the formers) and VML for the
> > > latter (I guess silverlight or java applets aren't an option either?).
> > > There are a few GWT projects for charting based on canvas but they
> > > don't seem maintained... (for examplehttp://code.google.com/p/glotr/
> > > )
> > > You can eventually use the GWTCanvas widget from the GWT Incubator and
> > > do the plotting/charting by yourself:
> > >http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
>
> > > Unfortunately, Chronoscope doesn't meet your criterias as it doesn't
> > > do pies (it's oriented towards time-based data...), otherwise, it's a
> > > very well-thought-out project from one of the best GWT user/
> > > contributor out there!
> > >http://timepedia.org/chronoscope/-Hide quoted text -
>
> > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Minor documentation error

2009-04-21 Thread k9mab

Found a small documentation error, not sure how to report it. Would
someone be good enough to pass this on via the proper channels?

http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html

First example in Events and Handlers section has the wrong signature
for onClick(). Should be ClickEvent event instead of Widget sender.

Thanks.

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



Re: RPC void method

2009-04-21 Thread Jim R

The people who apologize about their English tend to have the best
English!  :)  We understood you perfectly, no need to worry.

On Apr 21, 7:03 pm, carrizo  wrote:
> Hello all,
>
> pre-apologize for my english.
>
> I've a question about an AsyncCallback object passed to a gwt rpc
> method with 'void' return type. If i have a rpc method where the
> remote service interface, server-side and client-side implementation
> looks like this:
>
> public interface ApplicationService extends RemoteService{
>   public void method(int number);
>
> }
>
> public class ApplicationServiceImpl extends RemoteServiceServlet
> implements ApplicationService {
>    public void method(int number){
>       //Do something
>    }
>
> }
>
> public interface ApplicationServiceAsync {
>    public void method(int number, AsyncCallback callback);
>
> }
>
> I don't need this callback because it will return anything. So can I
> call this method passing 'null' like callback argument? I'm confused
> about this and i would like to see your feedback.

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



Re: RPC void method

2009-04-21 Thread Vitali Lovich
AsyncCallback

On Tue, Apr 21, 2009 at 7:03 PM, carrizo  wrote:

>
> Hello all,
>
> pre-apologize for my english.
>
> I've a question about an AsyncCallback object passed to a gwt rpc
> method with 'void' return type. If i have a rpc method where the
> remote service interface, server-side and client-side implementation
> looks like this:
>
> public interface ApplicationService extends RemoteService{
>  public void method(int number);
> }
>
> public class ApplicationServiceImpl extends RemoteServiceServlet
> implements ApplicationService {
>   public void method(int number){
>  //Do something
>   }
> }
>
> public interface ApplicationServiceAsync {
>   public void method(int number, AsyncCallback callback);
> }
>
> I don't need this callback because it will return anything. So can I
> call this method passing 'null' like callback argument? I'm confused
> about this and i would like to see your feedback.
>
>
>
>
> >
>

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



RPC void method

2009-04-21 Thread carrizo

Hello all,

pre-apologize for my english.

I've a question about an AsyncCallback object passed to a gwt rpc
method with 'void' return type. If i have a rpc method where the
remote service interface, server-side and client-side implementation
looks like this:

public interface ApplicationService extends RemoteService{
  public void method(int number);
}

public class ApplicationServiceImpl extends RemoteServiceServlet
implements ApplicationService {
   public void method(int number){
  //Do something
   }
}

public interface ApplicationServiceAsync {
   public void method(int number, AsyncCallback callback);
}

I don't need this callback because it will return anything. So can I
call this method passing 'null' like callback argument? I'm confused
about this and i would like to see your feedback.




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



CloseHandler, new window problem

2009-04-21 Thread ivovnenko

Hello.

I'm trying to open new browser window just before the main window (GWT
host page) is closed.
Strange thing is that when I write this -

public void onClose(CloseEvent event) {
  Window.alert(event.toDebugString());
}

alert is being shown, but

public void onClose(CloseEvent event) {
  Window.open("http://www.google.com","newWindow","";);
}

doesn't open new window.

Would really appreciate 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: Facebook XFBML in GWT Hosted Mode?

2009-04-21 Thread davidroe

I'm pretty sure this works for me without a problem.

protected Widget makeLoginButton() {

String s = "";

HTML h = new HTML(s);
DeferredCommand.addCommand(new Command() {
public void execute() {
parseDomTree();
}
});

return h;

}

protected static native void parseDomTree() /*-{
$wnd.FB.XFBML.Host.parseDomTree();
}-*/;

/dave

On Apr 21, 8:45 am, shunjie  wrote:
> Hi Friends,
>
> I am trying to develop Facebook Connect application with GWT. I tried
> to have XFBML like  in a HTML control. Works
> perfect in a browser but does not render anything at all in Hosted
> Mode.
>
> Does anyone face the same problem when trying to develop GWT with
> FBML. If so, any workarounds?
>
> Thanks!
>
> Shinchi
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6.4 - Intellij 8.1 - Hosted mode via application start.

2009-04-21 Thread Jason

I started from scratch and got the simple application running.  Baby
steps... I guess.
I was originally attempting to run an existing project.

The stack trace I ran into is still a mystery.


On Apr 21, 2:20 pm, Dave M  wrote:
> I am using intellij 8.1 with no problem using GWT.  Just open up the
> documents and follow the instructions.  It has changed slightly from
> the directions in the flash demo on their web site.  When I clicked
> ... New...there was no option for GWT if you follow the instructions
> from the flash demo but if you follow the instructions in the
> documentation, it works with the 1.6.4 plugin.
>
> Dave
>
> Again,  follow the instructions in the manual
>
> On Tue, Apr 21, 2009 at 4:15 PM, Jason  wrote:
>
> > Hi all.
>
> > I'm using Intelli-j 8.1 to build my GWT 1.6.4 application.  I realize
> > that Intell-j's GWT plugin isn't suited for 1.6.4 just yet.  Avoiding
> > the plugin I'm attemping to run in Hosted mode by running the app as a
> > normal Java application.
>
> > Main class: com.google.gwt.dev.HostedMode
> > VM params: -Xmx500M
> > program params: -startupUrl /enroll/default.html
> > com.vincent.gwtapps.webApplicationForm.WebEnroll
> > working dir: C:\work\jv_websales\WebApplicationForm\current_branch\out
> > \exploded\
>
> > When I deploy the application with my own ant scripts the application
> > loads fine under it's own tomcat instance.
>
> > The only difference I see between my ant war and the exploded intelli-
> > j war directory is that the hex js files aren't there, for example
> > (644251F628D38C39522797805967F32D.cache.html).  The directory only has
> > the 2 files, clear.cache.gif, hosted.html, and webenroll.nocache.js.
> > Does hosted mode need those files, or are they generated by the GWT
> > hosted mode browser?  If they need it, I suppose I could run an ant
> > task to generate them, prior to running the application.
>
> > This is the stacktrace I get when loading the application:
>
> > [ERROR] Failure to load module 'webenroll'
> > java.lang.NoSuchMethodError:
> > org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch
> > ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
> >        at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass
> > (JsniChecker.java:231)
> >        at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs
> > (JsniChecker.java:142)
> >        at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit
> > (JsniChecker.java:65)
> >        at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
> > (MethodDeclaration.java:247)
> >        at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> > (TypeDeclaration.java:1222)
> >        at
> > org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> > (CompilationUnitDeclaration.java:518)
> >        at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350)
> >        at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340)
> >        at
> > com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
> > (CompilationUnitInvalidator.java:159)
> >        at com.google.gwt.dev.javac.CompilationState.compile
> > (CompilationState.java:198)
> >        at com.google.gwt.dev.javac.CompilationState.refresh
> > (CompilationState.java:178)
> >        at com.google.gwt.dev.javac.CompilationState.
> > (CompilationState.java:93)
> >        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
> > (ModuleDef.java:264)
> >        at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325)
> >        at com.google.gwt.dev.SwtHostedModeBase
> > $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java:
> > 66)
> >        at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
> > (BrowserWidgetIE6.java:73)
> >        at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
> > (BrowserWidgetIE6.java:161)
>
> > Thanks for any help.
> > Jason
--~--~-~--~~~---~--~~
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: I installed the GEP and now...

2009-04-21 Thread Rajeev Dayal
Hey Ian,

On Tue, Apr 21, 2009 at 5:17 PM, Ian Bambury  wrote:

> If I get a spare time-slot I'll give it a go again, but as I said a couple
> of emails ago, I did that 2 days ago to remove the GEP after I needed to get
> rid of it. Therefore, the latest install *was* clean (apart from a few
> preferences I'd changed and importing my formatting settings. Windows was
> only re-installed from scratch about 4 weeks ago. You can't be suggesting
> that everyone ought to re-install Eclipse from scratch and than immediately
> install the GEP before they even leave the welcome screen it they want to be
> sure, can you


No, not at all. A clean install of Eclipse isn't required to install GEP; I
was just worried that you were installing on top of a broken GEP
installation. But, as you pointed out (and I apparently missed), the latest
install was clean. There are no concerns with preferences/formatting
settings, etc. My main concern was remaining artifacts from a partial GEP
install.


> And I know you keep giving me the longinstall link, but I have only ever
> been trying to install the plugin and GWT 1.6.4 SDK. Even it that weren't
> the case, surely progress would have increased by at least 1 percent when
> left for 8 or 9 hours overnight?
>

Even if you're just installing the plugin without the SDK - the instructions
in that link still apply.  Whenever you install ANY new plugin on Eclipse
3.4, the behavior described in that FAQ entry will occur. The code for
computing the requirements/dependencies for a plugin in Eclipse 3.4 is
riddled with problems. It is also brittle in the sense that it can get hung
up/stuck while attempting to connect to other update sites in an effort to
resolve dependencies. I think that's what happened in your case - it
basically got stuck - that's why progress did not increase.


> But if I get a break where I don't need to use Eclipse for a while, I'll
> re-install it and try from scratch again.
>

Thanks. If you keep running to problems, see the info mentioned here on how
to do a manual install of the plugin:

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/f127367d8a578013/dbbd67c1e79b03e3



>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/4/21 Rajeev Dayal 
>
>> Hey Ian,
>>
>> If you're ok with reinstalling Eclipse, this is what I'd suggest:
>>
>> 1) Blow away your old version of Eclipse, and install a completely clean
>> version of Eclipse
>> 2) Start it up with a completely new workspace
>> 3) Try to install the plugin as before, *BUT make sure you follow the
>> instructions in this FAQ entry before hitting the install button:
>> http://code.google.com/eclipse/docs/faq.html#longinstall*
>>
>> That should get you going, and completely past the hangs that happen in
>> Eclipse 3.4 in the "Computing Requirements and Dependencies" step of the
>> install process.
>>
>> If you're not ok with reinstalling Eclipse, let me know, and we can try
>> and work through removing all the old, corrupted artifacts of the failed
>> plugin installs so that you can install the plugin from scratch.
>>
>>
>> Rajeev
>>
>>
>> On Tue, Apr 21, 2009 at 1:43 PM, Ian Bambury wrote:
>>
>>> Update...
>>> I just uninstalled the GWT SDK, and then the plug-in and applied the
>>> changes. Both disappeared from the Installed Software tab.
>>>
>>> I restarted Eclipse.
>>>
>>> Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab,
>>> but if I select it, the Uninstall button remains disabled.
>>>
>>> I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the
>>> Available Software tab, but if I select it, the Install button remains
>>> disabled.
>>>
>>> I'm a bit stuck for options here.
>>>
>>> Ian
>>>
>>> http://examples.roughian.com
>>>
>>>
>>> 2009/4/21 Ian Bambury 
>>>
>>> Hi Rajeev,
 I've got:

 Eclipse Version: 3.4.0 - Build id: I20080617-2000

 java.runtime.version=1.6.0_13-b03

 As I said, if I go to Software Updates, Installed Software shows the
 GEP and GWT SDK as installed. Available Software shows the plugin (but no
 install option is available) and the AppEngine SDK, but if there is another
 way to check, just let me know - Help | About | Plug-in details doesn't 
 show
 it.

 It locked up during "computing requirements and dependencies"

 The only errors to do with Google showing in the log are from failed
 compiles back when I tried to use the GEP the first time.

 I've reset the perspective - nothing happened except that I had to put
 it back how I like it :-)  (only takes a moment)

 I'm quite happy to play about if it's any use, but apart from repeatedly
 uninstalling and re-installing, I'm not too sure what to do next.

 Ian

 http://examples.roughian.com


 2009/4/21 Rajeev Dayal 

 Hey Ian,
>
> Just thought I'd mention that I tried something to repro your problem.
> Our plugin does not work if you're running 

Re: GWT 1.6.4 - Intellij 8.1 - Hosted mode via application start.

2009-04-21 Thread Dave M

I am using intellij 8.1 with no problem using GWT.  Just open up the
documents and follow the instructions.  It has changed slightly from
the directions in the flash demo on their web site.  When I clicked
... New...there was no option for GWT if you follow the instructions
from the flash demo but if you follow the instructions in the
documentation, it works with the 1.6.4 plugin.

Dave

Again,  follow the instructions in the manual

On Tue, Apr 21, 2009 at 4:15 PM, Jason  wrote:
>
> Hi all.
>
> I'm using Intelli-j 8.1 to build my GWT 1.6.4 application.  I realize
> that Intell-j's GWT plugin isn't suited for 1.6.4 just yet.  Avoiding
> the plugin I'm attemping to run in Hosted mode by running the app as a
> normal Java application.
>
> Main class: com.google.gwt.dev.HostedMode
> VM params: -Xmx500M
> program params: -startupUrl /enroll/default.html
> com.vincent.gwtapps.webApplicationForm.WebEnroll
> working dir: C:\work\jv_websales\WebApplicationForm\current_branch\out
> \exploded\
>
> When I deploy the application with my own ant scripts the application
> loads fine under it's own tomcat instance.
>
> The only difference I see between my ant war and the exploded intelli-
> j war directory is that the hex js files aren't there, for example
> (644251F628D38C39522797805967F32D.cache.html).  The directory only has
> the 2 files, clear.cache.gif, hosted.html, and webenroll.nocache.js.
> Does hosted mode need those files, or are they generated by the GWT
> hosted mode browser?  If they need it, I suppose I could run an ant
> task to generate them, prior to running the application.
>
> This is the stacktrace I get when loading the application:
>
> [ERROR] Failure to load module 'webenroll'
> java.lang.NoSuchMethodError:
> org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch
> ()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
>        at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass
> (JsniChecker.java:231)
>        at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs
> (JsniChecker.java:142)
>        at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit
> (JsniChecker.java:65)
>        at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
> (MethodDeclaration.java:247)
>        at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1222)
>        at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:518)
>        at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350)
>        at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340)
>        at
> com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
> (CompilationUnitInvalidator.java:159)
>        at com.google.gwt.dev.javac.CompilationState.compile
> (CompilationState.java:198)
>        at com.google.gwt.dev.javac.CompilationState.refresh
> (CompilationState.java:178)
>        at com.google.gwt.dev.javac.CompilationState.
> (CompilationState.java:93)
>        at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
> (ModuleDef.java:264)
>        at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325)
>        at com.google.gwt.dev.SwtHostedModeBase
> $SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java:
> 66)
>        at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
> (BrowserWidgetIE6.java:73)
>        at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
> (BrowserWidgetIE6.java:161)
>
>
> Thanks for any help.
> Jason
>
> >
>

--~--~-~--~~~---~--~~
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: I installed the GEP and now...

2009-04-21 Thread Ian Bambury
If I get a spare time-slot I'll give it a go again, but as I said a couple
of emails ago, I did that 2 days ago to remove the GEP after I needed to get
rid of it. Therefore, the latest install *was* clean (apart from a few
preferences I'd changed and importing my formatting settings. Windows was
only re-installed from scratch about 4 weeks ago. You can't be suggesting
that everyone ought to re-install Eclipse from scratch and than immediately
install the GEP before they even leave the welcome screen it they want to be
sure, can you
And I know you keep giving me the longinstall link, but I have only ever
been trying to install the plugin and GWT 1.6.4 SDK. Even it that weren't
the case, surely progress would have increased by at least 1 percent when
left for 8 or 9 hours overnight?

But if I get a break where I don't need to use Eclipse for a while, I'll
re-install it and try from scratch again.

Ian

http://examples.roughian.com


2009/4/21 Rajeev Dayal 

> Hey Ian,
>
> If you're ok with reinstalling Eclipse, this is what I'd suggest:
>
> 1) Blow away your old version of Eclipse, and install a completely clean
> version of Eclipse
> 2) Start it up with a completely new workspace
> 3) Try to install the plugin as before, *BUT make sure you follow the
> instructions in this FAQ entry before hitting the install button:
> http://code.google.com/eclipse/docs/faq.html#longinstall*
>
> That should get you going, and completely past the hangs that happen in
> Eclipse 3.4 in the "Computing Requirements and Dependencies" step of the
> install process.
>
> If you're not ok with reinstalling Eclipse, let me know, and we can try and
> work through removing all the old, corrupted artifacts of the failed plugin
> installs so that you can install the plugin from scratch.
>
>
> Rajeev
>
>
> On Tue, Apr 21, 2009 at 1:43 PM, Ian Bambury  wrote:
>
>> Update...
>> I just uninstalled the GWT SDK, and then the plug-in and applied the
>> changes. Both disappeared from the Installed Software tab.
>>
>> I restarted Eclipse.
>>
>> Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab,
>> but if I select it, the Uninstall button remains disabled.
>>
>> I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the
>> Available Software tab, but if I select it, the Install button remains
>> disabled.
>>
>> I'm a bit stuck for options here.
>>
>> Ian
>>
>> http://examples.roughian.com
>>
>>
>> 2009/4/21 Ian Bambury 
>>
>> Hi Rajeev,
>>> I've got:
>>>
>>> Eclipse Version: 3.4.0 - Build id: I20080617-2000
>>>
>>> java.runtime.version=1.6.0_13-b03
>>>
>>> As I said, if I go to Software Updates, Installed Software shows the GEP
>>> and GWT SDK as installed. Available Software shows the plugin (but no
>>> install option is available) and the AppEngine SDK, but if there is another
>>> way to check, just let me know - Help | About | Plug-in details doesn't show
>>> it.
>>>
>>> It locked up during "computing requirements and dependencies"
>>>
>>> The only errors to do with Google showing in the log are from failed
>>> compiles back when I tried to use the GEP the first time.
>>>
>>> I've reset the perspective - nothing happened except that I had to put it
>>> back how I like it :-)  (only takes a moment)
>>>
>>> I'm quite happy to play about if it's any use, but apart from repeatedly
>>> uninstalling and re-installing, I'm not too sure what to do next.
>>>
>>> Ian
>>>
>>> http://examples.roughian.com
>>>
>>>
>>> 2009/4/21 Rajeev Dayal 
>>>
>>> Hey Ian,

 Just thought I'd mention that I tried something to repro your problem.
 Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and
 some of the symptoms that we've seen is that the plugin icons/menu
 contributions will not show up. However, we've only seen this when we've
 been using Eclipse's dev environment to debug the plugin.

 I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4
 installs with a 1.4 JVM, but Eclipse did not even run - it threw up an 
 error
 dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5
 JVM cannot cause this sort of problem with the plugin out in the field.


 Rajeev



 On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal wrote:

> Hey Ian,
>
> Thanks for the information. Responses inline:
>
> On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury wrote:
>
>> Hi Rajeev,
>> Thanks for the response.
>>
>>  When you tried to install it again, did you install it in a clean
>>> version of Eclipse, or was it the version that you were using with all 
>>> the
>>> failed installation attempts? It may be the case that you need to 
>>> uninstall
>>> the plugin, and then try to reinstall it. Preferably, if possible, start
>>> with a clean install of Eclipse and a clean workspace, and try and 
>>> install
>>> again (but follow the instructions in the FAQ entry mentio

single row in PagingScrollTable does not have proper height in IE7

2009-04-21 Thread KaffeineComa

I'm using the PagingScrollTable from GWT Incubator version 1.5-
Dec_28.  When I have only a single row in the table, the table height
shrinks such that the row is no longer visible.  If I add more rows,
everything is properly sized.It seems as if maybe the height of
the horizontal scrollbar is not being taken into account, or some
other "off by one" error is happening.

My current workaround is to add a stylename with an explicit "height:
30px"  to the row using RowFormatter.  This is kind of a hack, as the
height of my rows varies with the data contained.

Any pointers welcome, thanks.

PS: it renders fine in Safari & Firefox


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



GWT 1.6.4 - Intellij 8.1 - Hosted mode via application start.

2009-04-21 Thread Jason

Hi all.

I'm using Intelli-j 8.1 to build my GWT 1.6.4 application.  I realize
that Intell-j's GWT plugin isn't suited for 1.6.4 just yet.  Avoiding
the plugin I'm attemping to run in Hosted mode by running the app as a
normal Java application.

Main class: com.google.gwt.dev.HostedMode
VM params: -Xmx500M
program params: -startupUrl /enroll/default.html
com.vincent.gwtapps.webApplicationForm.WebEnroll
working dir: C:\work\jv_websales\WebApplicationForm\current_branch\out
\exploded\

When I deploy the application with my own ant scripts the application
loads fine under it's own tomcat instance.

The only difference I see between my ant war and the exploded intelli-
j war directory is that the hex js files aren't there, for example
(644251F628D38C39522797805967F32D.cache.html).  The directory only has
the 2 files, clear.cache.gif, hosted.html, and webenroll.nocache.js.
Does hosted mode need those files, or are they generated by the GWT
hosted mode browser?  If they need it, I suppose I could run an ant
task to generate them, prior to running the application.

This is the stacktrace I get when loading the application:

[ERROR] Failure to load module 'webenroll'
java.lang.NoSuchMethodError:
org.eclipse.jdt.internal.compiler.lookup.ProblemReferenceBinding.closestReferenceMatch
()Lorg/eclipse/jdt/internal/compiler/lookup/ReferenceBinding;
at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.findClass
(JsniChecker.java:231)
at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.checkRefs
(JsniChecker.java:142)
at com.google.gwt.dev.javac.JsniChecker$CheckingVisitor.endVisit
(JsniChecker.java:65)
at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.traverse
(MethodDeclaration.java:247)
at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
(TypeDeclaration.java:1222)
at
org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
(CompilationUnitDeclaration.java:518)
at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:350)
at com.google.gwt.dev.javac.JsniChecker.check(JsniChecker.java:340)
at
com.google.gwt.dev.javac.CompilationUnitInvalidator.validateCompilationUnits
(CompilationUnitInvalidator.java:159)
at com.google.gwt.dev.javac.CompilationState.compile
(CompilationState.java:198)
at com.google.gwt.dev.javac.CompilationState.refresh
(CompilationState.java:178)
at com.google.gwt.dev.javac.CompilationState.
(CompilationState.java:93)
at com.google.gwt.dev.cfg.ModuleDef.getCompilationState
(ModuleDef.java:264)
at com.google.gwt.dev.cfg.ModuleDef.getTypeOracle(ModuleDef.java:325)
at com.google.gwt.dev.SwtHostedModeBase
$SwtBrowserWidgetHostImpl.createModuleSpaceHost(SwtHostedModeBase.java:
66)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:73)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:161)


Thanks for any help.
Jason

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



Re: How make few pages with GWT ?

2009-04-21 Thread Tony Strauss

> If page is static - all is OK. Else script is not preforming/ What is
> wrong here, is any example how to do it?
> thanks a lot!

Google wrote excellent documentation for GWT.   This:

http://code.google.com/webtoolkit/gettingstarted.html

is a great place to start as it describes how to build a sample
application.

Tony
--
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

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



Using GWT for dynamic content (source:httprequest)

2009-04-21 Thread Markus Obdenbusch

Hi everybody!
My plan:
Google Map (Via google map api) with markers. The markers have tabs
which should contain dynamic content. (loading always in background
and shown on click event)
My problem:
1.) Cross HTTP Requests to other urls are not allowed (same-origin
security violation)
2.) is there anything i have to do in order to load the dynamic
content continously in the background (so that it is available on
click event) like marking a section with timer load continously

If nobody has a solution I am thankful for any advice to one of the
problems.

Thanks a lot.
Markus

--~--~-~--~~~---~--~~
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: A native GWT chart library?

2009-04-21 Thread plcoirier

Thanks all for your help.

Flemming, I'm actually looking for a library that can draw all types
of chart, but it can be interesting to see what you did for the pie.

Ben, I looked at the links you gave me, a lot of interesting things
but no client-site library that fits my need. gFlot looks good but I
need more that line chart and I'm wondering if jmaki is maintained. I
followed your advice and I looked at javascript library and dojo chart
looks really nice. You don't need flash and you can have a lot of
interaction with the user. I started looking how I could wrap the
library and it doesn't seem too hard.

So I think I'm gonna end up doing a wrapper for dojo chart.


On Apr 21, 9:47 am, Flemming Boller  wrote:
> Hi
>
> I currently use the GWTCanvas, for creating pies. It works very well.
>
> The code I can just copy paste from "swing/awt" code examples because the
> GWTCanvas
> api is very much like the normal jdk canvas. And you can your self attach
> mouse listeners etc on the pie so it becomes interactive, with the rest of
> the page.
>
> So for pies it is well suited.
>
> However I have not "cracked" the nutt with respect to drawing  text in the
> canvas, last time I checked the versiondid not support drawString(...)
> method, so that was a no go.
>
> /Flemming
>
> ps: if you want I can attach the code.
>
>
>
> On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer  wrote:
>
> > On 20 avr, 23:54, plcoirier  wrote:
> > > Hi,
>
> > > I'm looking for a native GWT chart library. I would like to be able to
> > > draw all different kinds of chart (line chart, bart chart, area chart,
> > > pie chart...). I also would like a client solution.
> > > I unfortunately can't use Google Visualization bc it's for an intranet
> > > website and users may not have access to google servers. Flash
> > > solutions aren't an option either :(
>
> > > I saw gchart but I need pie charts that are completely filled.
>
> > > Any other ideas of library?
>
> > Huh! no flash?! Which browser(s) are you targetting?
> > If you only plan on supporting relatively modern browsers and/or IE,
> > then you could use SVG or canvas (for the formers) and VML for the
> > latter (I guess silverlight or java applets aren't an option either?).
> > There are a few GWT projects for charting based on canvas but they
> > don't seem maintained... (for examplehttp://code.google.com/p/glotr/
> > )
> > You can eventually use the GWTCanvas widget from the GWT Incubator and
> > do the plotting/charting by yourself:
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
>
> > Unfortunately, Chronoscope doesn't meet your criterias as it doesn't
> > do pies (it's oriented towards time-based data...), otherwise, it's a
> > very well-thought-out project from one of the best GWT user/
> > contributor out there!
> >http://timepedia.org/chronoscope/- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



OnMouseOver and OnMouseOut on FlexTable

2009-04-21 Thread serega.shey...@gmail.com

Good day.
I've undestood how to get cell which was clicked by user (using new
Handler pattern).
But I can' get how does other handlers work (early I've used sink
events and onBrowserEvent).

My task is to hightlight row of FlexTable when the mouse pointer is on
it and put away hightlight when mouse goes away from FlexTable row.

Can you help me to ndestand the mechanics of handlers in this case?
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
-~--~~~~--~~--~--~---



popup on an GWT HTML field

2009-04-21 Thread Chuck

Hi folks!

Only one question left and my project should be completed! :-)

I'd like to print out HTML text (content). But only a few words should
have a special function (popup on click). How would you do that?
Unfortunately I couldn't find any tutorials.

I managed to print HTML code and inplement my popup function with JS
(onclick =""). But the content is dynamic so I should find another way
with GWT. My way of creating the HTML code:
new HTML("Hello world!"); --> So if you click on "world", a new
popup should open (class already exists and is working)

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



GWT server side access to web service from another server

2009-04-21 Thread Alcor

Hi,

I'm creating a GWT (1.6) app from scratch and I have done the current
thing:


User Web Browser (1)
GWT client-side
  |
 (gwt rpc)
  V
GWT server-side (2)
  |
   (JAX ws rpc)
  V
another server (3)


everything's done :
- the gwt rpc between (1) and (2)
- the web service on (3) is done with JAX-WS wsgen
- the client web service on (2) is done with JAX-WS wsimport

so everything's ok BUT :
the client web service class located on (2) uses the JAX-WS annotation
@WebServiceRef to populate the 'service' static var and the value is
'null'.

The workaround : to comment @WebServiceRef and uncomment (a) - see
code below : manually instantiate the generated artifact (by
wsimport). This is OK.
but why is it not using the annotation @WebServiceRef with GWT?

here is the class :
__
package fr.server.ws_client;
import javax.xml.ws.WebServiceRef;
import fr.server.ws_client.gen.Info;
import fr.server.ws_client.gen.InfoService;

public class InfoClient {
@WebServiceRef(wsdlLocation="http://localhost:9091/Info?wsdl";) static
InfoService service;

public static String getServerVersion() {
String server_version;
try {
server_version = "InfoClient / getServerVersion : try";
InfoClient client = new InfoClient();
server_version = client.doGetServerVersion();
} catch (Exception e) {
server_version = "InfoClient / getServerVersion : 
catch";
e.printStackTrace();
}
return server_version;
}

public String doGetServerVersion() {
try {
//(a)   InfoService service = new InfoService();
Info port = service.getInfoPort();
return port.getServerVersion();
} catch (Exception e) {
e.printStackTrace();
return "InfoClient / doGetServerVersion : catch";
}
}
}

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



HtmlUnit 2.5, a headless java browser, released

2009-04-21 Thread Ahmed Ashour

A new release of the Open Source java GUI-Less browser is available,
which allows high-level manipulation of web pages, such as filling
forms, clicking links, accessing attributes and values of specific
elements within the pages, you do not have to create lower-level
requests of TCP/IP or HTTP, but just getPage(url), find a hyperlink,
click() and you have all the HTML, JavaScript, and Ajax are
automatically processed.

The most common use of HtmlUnit is test automation of web pages (even
with complex JavaScript libraries, like Google Web Toolkit and
jQuery), but sometimes it can be used for web scraping, or downloading
website content.

The main enhancements of this release:
- Improved JavaScript support, particularly full support for
MooTools, adding to already supported Google Web Toolkit 1.5/1.6,
jQuery, Mochikit and Sarissa
- Repackaged Rhino classes to allow the use of HtmlUnit and a
regular Rhino version in the same project
- Support all HTML elements
- Experimental WebClient.waitForBackgroundJavaScript() and
WebClient.waitForBackgroundJavaScriptStartingBefore() for simple, fast
and deterministic AJAX testing
- Reworked handling of background JavaScript tasks using Java 5
executors
- And as usual, various bug fixes

You can find more information in the official website (http://
htmlunit.sourceforge.net/), the development team is looking forward to
getting your feedback.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



serialization to history - bad idea?

2009-04-21 Thread Keith

Do you think is it a bad idea to use SerializationStreamWriter and
SerializationStreamReader to write an object's state to the history?
It seems like it would be a more convenient way to go than for me to
try to write my own methods for doing this. I guess it could be a
problem if I blow past the URL length limit but I suppose that is a
possibility with my own serialization schemes too.

Thanks in advance for your advice
-Keith

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



Strange window popup with Anchor widget in 1.6.4

2009-04-21 Thread Clive Cox

With 1.6.4 on linux in Hosted mode, if I have something like:

Anchor anchor = new Anchor("some text");
anchor.addClickHandler(new ClickHandler()
{
public void onClick(ClickEvent event)
{
//do something
 }
});

I get a new blank browser window popup and and several warnings in the
hosted mode console like:

[WARN] Confirmation was required to visit untrusted URL:
'jar:resource:///chrome/toolkit.jar!/content/global/console.xul

Any ideas what's going on?

The click handler seems to still get fired.





--~--~-~--~~~---~--~~
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: I installed the GEP and now...

2009-04-21 Thread Rajeev Dayal
Hey Ian,

If you're ok with reinstalling Eclipse, this is what I'd suggest:

1) Blow away your old version of Eclipse, and install a completely clean
version of Eclipse
2) Start it up with a completely new workspace
3) Try to install the plugin as before, *BUT make sure you follow the
instructions in this FAQ entry before hitting the install button:
http://code.google.com/eclipse/docs/faq.html#longinstall*

That should get you going, and completely past the hangs that happen in
Eclipse 3.4 in the "Computing Requirements and Dependencies" step of the
install process.

If you're not ok with reinstalling Eclipse, let me know, and we can try and
work through removing all the old, corrupted artifacts of the failed plugin
installs so that you can install the plugin from scratch.


Rajeev

On Tue, Apr 21, 2009 at 1:43 PM, Ian Bambury  wrote:

> Update...
> I just uninstalled the GWT SDK, and then the plug-in and applied the
> changes. Both disappeared from the Installed Software tab.
>
> I restarted Eclipse.
>
> Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab,
> but if I select it, the Uninstall button remains disabled.
>
> I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the
> Available Software tab, but if I select it, the Install button remains
> disabled.
>
> I'm a bit stuck for options here.
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/4/21 Ian Bambury 
>
> Hi Rajeev,
>> I've got:
>>
>> Eclipse Version: 3.4.0 - Build id: I20080617-2000
>>
>> java.runtime.version=1.6.0_13-b03
>>
>> As I said, if I go to Software Updates, Installed Software shows the GEP
>> and GWT SDK as installed. Available Software shows the plugin (but no
>> install option is available) and the AppEngine SDK, but if there is another
>> way to check, just let me know - Help | About | Plug-in details doesn't show
>> it.
>>
>> It locked up during "computing requirements and dependencies"
>>
>> The only errors to do with Google showing in the log are from failed
>> compiles back when I tried to use the GEP the first time.
>>
>> I've reset the perspective - nothing happened except that I had to put it
>> back how I like it :-)  (only takes a moment)
>>
>> I'm quite happy to play about if it's any use, but apart from repeatedly
>> uninstalling and re-installing, I'm not too sure what to do next.
>>
>> Ian
>>
>> http://examples.roughian.com
>>
>>
>> 2009/4/21 Rajeev Dayal 
>>
>> Hey Ian,
>>>
>>> Just thought I'd mention that I tried something to repro your problem.
>>> Our plugin does not work if you're running Eclipse under a pre-1.5 JVM, and
>>> some of the symptoms that we've seen is that the plugin icons/menu
>>> contributions will not show up. However, we've only seen this when we've
>>> been using Eclipse's dev environment to debug the plugin.
>>>
>>> I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4
>>> installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error
>>> dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5
>>> JVM cannot cause this sort of problem with the plugin out in the field.
>>>
>>>
>>> Rajeev
>>>
>>>
>>>
>>> On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal  wrote:
>>>
 Hey Ian,

 Thanks for the information. Responses inline:

 On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury wrote:

> Hi Rajeev,
> Thanks for the response.
>
>  When you tried to install it again, did you install it in a clean
>> version of Eclipse, or was it the version that you were using with all 
>> the
>> failed installation attempts? It may be the case that you need to 
>> uninstall
>> the plugin, and then try to reinstall it. Preferably, if possible, start
>> with a clean install of Eclipse and a clean workspace, and try and 
>> install
>> again (but follow the instructions in the FAQ entry mentioned above - 
>> they
>> will greatly speed up the install process).
>>
>
> It was a clean, new Eclipse installation. I was only trying to install
> the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31%
> completed, nothing moving except the progress indicator (no actual 
> progress,
> just animation). Cancel didn't do anything (except disable the cancel
> button) and after some time - in the region of 30 minutes - I went back 
> and
> nothing had changed. There was no option but to kill it in task manager.
>

 This is definitely odd. It must have been some network problem, but I'm
 not sure which side it occurred on. One thing I do know is that Eclipse 
 does
 not fail gracefully in such situations. Do you remember exactly what text
 was in the dialog at the time? Was it saying something like "computing
 requirements and dependencies", or was it saying "downloading", or maybe
 "installing"?


>
> The second attempt of the current series, it installed in 30 seconds or
> so. I

Re: List of Usable Java Packages?

2009-04-21 Thread Adam T

GWT only implements a subset of Java:

http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/RefJreEmulation

You should also think of it as client side web code (after all it gets
compiled to JavaScript) as such you wouldn't normally be able to
connect to a database directly - you'd go through the server which
connects.

Hope that helps.

//Adam

On 21 Apr, 15:34, Jonathan Kushner  wrote:
> Hi there! I'm sure this is a pretty naive question, but is there a list
> somewhere of what java objects I can ( or cannot ) use? I tried creating a
> connection to an oracle instance in the onModuleLoad function, in hopes of
> using the resultset to populate basic datasets for gwt, but apparently i was
> wrong. I stumbled upon some of the google-gears gwt source code, and they
> are using various classes that instantiate custom JavascriptObject(*)
> classes, which leads me to believe I'm totally lost. I just want to use my
> java data structures :(
>
> Besides that, very pleased!
>
> Regards,
>
> Jonathan
--~--~-~--~~~---~--~~
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: I installed the GEP and now...

2009-04-21 Thread Ian Bambury
Update...
I just uninstalled the GWT SDK, and then the plug-in and applied the
changes. Both disappeared from the Installed Software tab.

I restarted Eclipse.

Now I have 'Google Plugin for Eclipse 3.4' on the Installed Software tab,
but if I select it, the Uninstall button remains disabled.

I also have 'Plugin' under Google Update Site for Eclipse 3.4 on the
Available Software tab, but if I select it, the Install button remains
disabled.

I'm a bit stuck for options here.

Ian

http://examples.roughian.com


2009/4/21 Ian Bambury 

> Hi Rajeev,
> I've got:
>
> Eclipse Version: 3.4.0 - Build id: I20080617-2000
>
> java.runtime.version=1.6.0_13-b03
>
> As I said, if I go to Software Updates, Installed Software shows the GEP
> and GWT SDK as installed. Available Software shows the plugin (but no
> install option is available) and the AppEngine SDK, but if there is another
> way to check, just let me know - Help | About | Plug-in details doesn't show
> it.
>
> It locked up during "computing requirements and dependencies"
>
> The only errors to do with Google showing in the log are from failed
> compiles back when I tried to use the GEP the first time.
>
> I've reset the perspective - nothing happened except that I had to put it
> back how I like it :-)  (only takes a moment)
>
> I'm quite happy to play about if it's any use, but apart from repeatedly
> uninstalling and re-installing, I'm not too sure what to do next.
>
> Ian
>
> http://examples.roughian.com
>
>
> 2009/4/21 Rajeev Dayal 
>
> Hey Ian,
>>
>> Just thought I'd mention that I tried something to repro your problem. Our
>> plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some
>> of the symptoms that we've seen is that the plugin icons/menu contributions
>> will not show up. However, we've only seen this when we've been using
>> Eclipse's dev environment to debug the plugin.
>>
>> I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4
>> installs with a 1.4 JVM, but Eclipse did not even run - it threw up an error
>> dialog indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5
>> JVM cannot cause this sort of problem with the plugin out in the field.
>>
>>
>> Rajeev
>>
>>
>>
>> On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal  wrote:
>>
>>> Hey Ian,
>>>
>>> Thanks for the information. Responses inline:
>>>
>>> On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury wrote:
>>>
 Hi Rajeev,
 Thanks for the response.

  When you tried to install it again, did you install it in a clean
> version of Eclipse, or was it the version that you were using with all the
> failed installation attempts? It may be the case that you need to 
> uninstall
> the plugin, and then try to reinstall it. Preferably, if possible, start
> with a clean install of Eclipse and a clean workspace, and try and install
> again (but follow the instructions in the FAQ entry mentioned above - they
> will greatly speed up the install process).
>

 It was a clean, new Eclipse installation. I was only trying to install
 the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31%
 completed, nothing moving except the progress indicator (no actual 
 progress,
 just animation). Cancel didn't do anything (except disable the cancel
 button) and after some time - in the region of 30 minutes - I went back and
 nothing had changed. There was no option but to kill it in task manager.

>>>
>>> This is definitely odd. It must have been some network problem, but I'm
>>> not sure which side it occurred on. One thing I do know is that Eclipse does
>>> not fail gracefully in such situations. Do you remember exactly what text
>>> was in the dialog at the time? Was it saying something like "computing
>>> requirements and dependencies", or was it saying "downloading", or maybe
>>> "installing"?
>>>
>>>

 The second attempt of the current series, it installed in 30 seconds or
 so. I'm not sure exactly, I was watching TV, but it wasn't long at all.

 Now if I go to Software Updates, Installed Software shows the GEP and
 GWT SDK as installed. Available Software shows the plugin (but no install
 option is available) and the AppEngine SDK.

>>>
>>> Does Installed Software also show the plugin as installed? Available
>>> Software should really not have any of the components as installable, if
>>> they've already been installed (unless you have the "Include items that have
>>> already been installed" checkbox checked).
>>>
>>>
>>>
 The IDE doesn't have the two icons I had when it finally installed last
 time, ordinary menu options are also not there (in File|New, or
 right-clicking a project - nothing new)

>>>
>>> Try going to  Window -> Reset Perspective (or, on the Mac, Eclipse ->
>>> Reset Perspective). Does that help? Also, do you see any errors reported in
>>> the error log? Go to Window -> Show View -> Error Log (or, on the Mac,
>>> Ec

Re: Need to display a disabled checkbox without changing the appearance

2009-04-21 Thread Ian Bambury
Checkboxes change their appearance for a reason.
What are you doing that is so important that you don't mind
confusing/pissing off your users?

Ian

http://examples.roughian.com

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



Tomcat CometProcessor Setup Problems

2009-04-21 Thread ta2

I have a servlet which uses the CometProcessor interface. When I run
this app normally, connections to the servlet come back with the
response "405 Method Not Allowed" (HTTP method POST is not supported
by this URL).

I am told that this is due to the connector being used not supporting
CometProcessor I/O:



Therefore I added this other connector:



However, I cannot reach any pages on port 8081, all connections are
being refused.

There doesn't seem to be any errors in the logs anywhere but I did
spot this one:

21-Apr-2009 18:11:03 org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO: validateJarFile(C:\Program Files (x86)\Apache Software Foundation
\Tomcat 6.0\webapps\CometServerMessenger\WEB-INF\lib\gwt-user.jar) -
jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class:
javax/servlet/Servlet.class

Any ideas? Thanks!

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



Re: I installed the GEP and now...

2009-04-21 Thread Ian Bambury
Hi Rajeev,
I've got:

Eclipse Version: 3.4.0 - Build id: I20080617-2000

java.runtime.version=1.6.0_13-b03

As I said, if I go to Software Updates, Installed Software shows the GEP and
GWT SDK as installed. Available Software shows the plugin (but no install
option is available) and the AppEngine SDK, but if there is another way to
check, just let me know - Help | About | Plug-in details doesn't show it.

It locked up during "computing requirements and dependencies"

The only errors to do with Google showing in the log are from failed
compiles back when I tried to use the GEP the first time.

I've reset the perspective - nothing happened except that I had to put it
back how I like it :-)  (only takes a moment)

I'm quite happy to play about if it's any use, but apart from repeatedly
uninstalling and re-installing, I'm not too sure what to do next.

Ian

http://examples.roughian.com


2009/4/21 Rajeev Dayal 

> Hey Ian,
>
> Just thought I'd mention that I tried something to repro your problem. Our
> plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some
> of the symptoms that we've seen is that the plugin icons/menu contributions
> will not show up. However, we've only seen this when we've been using
> Eclipse's dev environment to debug the plugin.
>
> I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs
> with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog
> indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM
> cannot cause this sort of problem with the plugin out in the field.
>
>
> Rajeev
>
>
>
> On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal  wrote:
>
>> Hey Ian,
>>
>> Thanks for the information. Responses inline:
>>
>> On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury wrote:
>>
>>> Hi Rajeev,
>>> Thanks for the response.
>>>
>>>  When you tried to install it again, did you install it in a clean
 version of Eclipse, or was it the version that you were using with all the
 failed installation attempts? It may be the case that you need to uninstall
 the plugin, and then try to reinstall it. Preferably, if possible, start
 with a clean install of Eclipse and a clean workspace, and try and install
 again (but follow the instructions in the FAQ entry mentioned above - they
 will greatly speed up the install process).

>>>
>>> It was a clean, new Eclipse installation. I was only trying to install
>>> the GEP and the GWT SDK, nothing else. Eclipse locked up showing 31%
>>> completed, nothing moving except the progress indicator (no actual progress,
>>> just animation). Cancel didn't do anything (except disable the cancel
>>> button) and after some time - in the region of 30 minutes - I went back and
>>> nothing had changed. There was no option but to kill it in task manager.
>>>
>>
>> This is definitely odd. It must have been some network problem, but I'm
>> not sure which side it occurred on. One thing I do know is that Eclipse does
>> not fail gracefully in such situations. Do you remember exactly what text
>> was in the dialog at the time? Was it saying something like "computing
>> requirements and dependencies", or was it saying "downloading", or maybe
>> "installing"?
>>
>>
>>>
>>> The second attempt of the current series, it installed in 30 seconds or
>>> so. I'm not sure exactly, I was watching TV, but it wasn't long at all.
>>>
>>> Now if I go to Software Updates, Installed Software shows the GEP and GWT
>>> SDK as installed. Available Software shows the plugin (but no install option
>>> is available) and the AppEngine SDK.
>>>
>>
>> Does Installed Software also show the plugin as installed? Available
>> Software should really not have any of the components as installable, if
>> they've already been installed (unless you have the "Include items that have
>> already been installed" checkbox checked).
>>
>>
>>
>>> The IDE doesn't have the two icons I had when it finally installed last
>>> time, ordinary menu options are also not there (in File|New, or
>>> right-clicking a project - nothing new)
>>>
>>
>> Try going to  Window -> Reset Perspective (or, on the Mac, Eclipse ->
>> Reset Perspective). Does that help? Also, do you see any errors reported in
>> the error log? Go to Window -> Show View -> Error Log (or, on the Mac,
>> Eclipse -> Show View -> Error Log) to display the error log view.
>>
>>
>>>

 I'm sorry that you had to go through all of this. Bad things can happen
 when components are not properly installed, as you experienced. This should
 not be the normal experience at all. Is your project/Eclipse back in a
 working state? If not, let me know and I'll help you to get it back to
 normal.

>>>
>>> Yes, despite unchecking the project as a GWT one in the GEP options, and
>>> after the uninstall apparently working OK, there were still GEP changes in
>>> there stopping the project working. Having sorted that out, as I said,
>>> context assist didn't know about GWT

Hooking Spring 2.5.6 and GWT 1.6 - getServletContext returns N

2009-04-21 Thread colt54

Hi,

I am trying to use a GWT service with Spring.
I am using DispatcherServlet from Spring, GWTHandler and my service is
defined as a bean in a mywebapp-servlet.xml file.
I have also beans intialized at startup with ContextLoadListener.
My service works fine except if I try to call getServletContext from
it. In that case I have a NullPointerException. As a consequence I can
not make reference o my other beans from my service.

java.lang.NullPointerException: null
at
com.google.gwt.user.server.rpc.RPCServletUtils.writeResponseForUnexpectedFailure
(RPCServletUtils.java:248)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doUnexpectedFailure
(RemoteServiceServlet.java:285)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:99)
at com.mycompany.admin.admintool.server.GWTController.handleRequest
(GWTController.java:35)
at
org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle

Details of my web.xml


mywebapp
org.springframework.web.servlet.DispatcherServlet
1
  


mywebapp
/geofamilyadmingwt/mywebapp.rpc


I have some other beans that are initialized with
ContextLoaderListener :


org.springframework.web.context.ContextLoaderListener
  

  
contextConfigLocation
/WEB-INF/main-context.xml /WEB-INF/dao-context.xml /WEB-
INF/business-context.xml /WEB-INF/drivers-context.xml /WEB-INF/map-
context.xml
  


Code of my GWTController  :


public class GWTController extends RemoteServiceServlet implements
Controller {
  // Instance fields
  private RemoteService remoteService;
  private Class remoteServiceClass;
  private ServletContext servletContext;


  // Public methods
  /**
   * Call GWT's RemoteService doPost() method and return null.
   *
   * @param request The current HTTP request
   * @param response The current HTTP response
   * @return A ModelAndView to render, or null if handled directly
   * @throws Exception In case of errors
   */
  public ModelAndView handleRequest(HttpServletRequest request,
  HttpServletResponse response) throws Exception {
super.doPost(request, response);
return null; // response handled by GWT RPC over XmlHttpRequest
  }

  /**
   * Process the RPC request encoded into the payload string and
return a
   * string that encodes either the method return or an exception
thrown by
   * it.
   * @param payload The RPC payload
   */
  public String processCall(String payload) throws
SerializationException {
try {
  RPCRequest rpcRequest = RPC.decodeRequest(payload,
this.remoteServiceClass);

  // delegate work to the spring injected service
  return RPC.invokeAndEncodeResponse(this.remoteService,
rpcRequest
  .getMethod(), rpcRequest.getParameters());
} catch (IncompatibleRemoteServiceException e) {
getServletContext()
.log(
"An IncompatibleRemoteServiceException was thrown
while processing this call.",
e);

  return RPC.encodeResponseForFailure(null, e);
}
  }

  @Override
  public ServletContext getServletContext() {
  return servletContext;
  }

  public void setServletContext(ServletContext servletContext) {
  this.servletContext = servletContext;
  }


  /**
   * Setter for Spring injection of the GWT RemoteService object.
   *
   * @param RemoteService
   *The GWT RemoteService implementation that will be
delegated to
   *by the {...@code GWTController}.
   */
  public void setRemoteService(RemoteService remoteService) {
this.remoteService = remoteService;
this.remoteServiceClass = this.remoteService.getClass();
  }
}

Code of my service implementation:

@SuppressWarnings("serial")
public class GreetingServiceImpl extends RemoteServiceServlet
implements
GreetingService {

private transient ApplicationContext ac;
private ClientBusiness clientBusiness;

public String greetServer(String clientLogin) {
String result = "Hello";
boolean res;
String serverInfo = this.getServletContext().getServerInfo();   
<--
throws the NullPointerException
return result;
}

I tried to override getServletContext method with the code below but
no success.
@Override
public ServletContext getServletContext() {

return getThreadLocalRequest().getSession().getServletContext
();

}

How can I solve this problem ?

Thanks,
C.

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

Re: GWT Session

2009-04-21 Thread Vagner Araujo

Hi Friends,

http://snipt.net/javagner

Vagner Araujo
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Insert Element into DOM and receive click events?

2009-04-21 Thread Ben FS

I'd like to dynamically insert a Widget into/next to a single
TreeItem, whenever a TreeItem is selected, but event handlers on the
Widget never fire when I do this.

My approach so far: I dynamically manipulate the DOM of a single
TreeItem, when a selection event occurs. First I insert a DIV sibling,
and then I insert the Widget into that placeholder. Something like
this:

Button b = new Button("Click me", new ClickHandler() {
  public void onClick(ClickEvent event) { Window.alert("I was
clicked!"); }
});

Element itemDiv = treeItem.getElement();  // the TreeItem's underlying
element
Element spanEdit = DOM.createSpan();// a container, perhaps this
is not necessary
DOM.appendChild(itemDiv, spanEdit);

DOM.appendChild(spanEdit, b.getElement());

The button appears in the TreeItem when the TreeItem is selected, but
I am not able to generate any click events when I try to click on the
button with the mouse. I've also tried replacing the Button with
direct HTML, as follows:

HTML h = new HTML("Click me for alert");

Once inserted into the TreeItem, on mouseover the browser status bar
shows the link target, but clicking on it does not generate a popup.

My sense is that I need to do something else when I insert an Element
into the DOM, to ensure that it participates in the event handling
correctly. Yes? What else do I need to do?

Perhaps the Tree's SelectionHandler is interfering - a mousedown on
anything within a tree's node triggers a selection event and no other
events are processed?

Note: This used to work for me, using GWT 1.4.62, but even then only
when the inserted Widget was a Button (for all other Widget's that I
tried, the click event never reached the declared handler).

Note: I would prefer to do all this without manipulating the DOM, but
there is a bug in TreeItem, since early version of GWT, that prohibits
me from dynamically removing and later replacing the TreeItem's
content.
http://code.google.com/p/google-web-toolkit/issues/detail?id=2297

Thanks for any help you can provide!
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Facebook XFBML in GWT Hosted Mode?

2009-04-21 Thread shunjie

Hi Friends,

I am trying to develop Facebook Connect application with GWT. I tried
to have XFBML like  in a HTML control. Works
perfect in a browser but does not render anything at all in Hosted
Mode.

Does anyone face the same problem when trying to develop GWT with
FBML. If so, any workarounds?

Thanks!

Shinchi

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



FormPanel sumbit timeout

2009-04-21 Thread Shimi

is there a way to change the FromPanel submit timeout?

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



How make few pages with GWT ?

2009-04-21 Thread JITEchno

Hi alls,
I am trying to use GWT for generation few pages.
F.e. I have first page with GWT script on it, where I choice name of
second one: "AAA"
After that, I Am going to this next, AAA.jsp.
Nice it works fine.
But I need to put again  GWT generated script on this AAA.jsp and I am
able find how to do it.
If page is static - all is OK. Else script is not preforming/ What is
wrong here, is any example how to do it?
thanks a lot!
AAA.jsp like it:



Symbol







and main page



Main






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



List of Usable Java Packages?

2009-04-21 Thread Jonathan Kushner
Hi there! I'm sure this is a pretty naive question, but is there a list
somewhere of what java objects I can ( or cannot ) use? I tried creating a
connection to an oracle instance in the onModuleLoad function, in hopes of
using the resultset to populate basic datasets for gwt, but apparently i was
wrong. I stumbled upon some of the google-gears gwt source code, and they
are using various classes that instantiate custom JavascriptObject(*)
classes, which leads me to believe I'm totally lost. I just want to use my
java data structures :(

Besides that, very pleased!

Regards,

Jonathan

--~--~-~--~~~---~--~~
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: I installed the GEP and now...

2009-04-21 Thread Rajeev Dayal
Hey Ian,

Just thought I'd mention that I tried something to repro your problem. Our
plugin does not work if you're running Eclipse under a pre-1.5 JVM, and some
of the symptoms that we've seen is that the plugin icons/menu contributions
will not show up. However, we've only seen this when we've been using
Eclipse's dev environment to debug the plugin.

I tried to repro this by running clean Eclipse 3.3 and Eclipse 3.4 installs
with a 1.4 JVM, but Eclipse did not even run - it threw up an error dialog
indicating that a 1.5+ JVM is required. So, it looks like a pre-1.5 JVM
cannot cause this sort of problem with the plugin out in the field.


Rajeev


On Tue, Apr 21, 2009 at 9:41 AM, Rajeev Dayal  wrote:

> Hey Ian,
>
> Thanks for the information. Responses inline:
>
> On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury  wrote:
>
>> Hi Rajeev,
>> Thanks for the response.
>>
>>  When you tried to install it again, did you install it in a clean
>>> version of Eclipse, or was it the version that you were using with all the
>>> failed installation attempts? It may be the case that you need to uninstall
>>> the plugin, and then try to reinstall it. Preferably, if possible, start
>>> with a clean install of Eclipse and a clean workspace, and try and install
>>> again (but follow the instructions in the FAQ entry mentioned above - they
>>> will greatly speed up the install process).
>>>
>>
>> It was a clean, new Eclipse installation. I was only trying to install the
>> GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed,
>> nothing moving except the progress indicator (no actual progress, just
>> animation). Cancel didn't do anything (except disable the cancel button) and
>> after some time - in the region of 30 minutes - I went back and nothing had
>> changed. There was no option but to kill it in task manager.
>>
>
> This is definitely odd. It must have been some network problem, but I'm not
> sure which side it occurred on. One thing I do know is that Eclipse does not
> fail gracefully in such situations. Do you remember exactly what text was in
> the dialog at the time? Was it saying something like "computing requirements
> and dependencies", or was it saying "downloading", or maybe "installing"?
>
>
>>
>> The second attempt of the current series, it installed in 30 seconds or
>> so. I'm not sure exactly, I was watching TV, but it wasn't long at all.
>>
>> Now if I go to Software Updates, Installed Software shows the GEP and GWT
>> SDK as installed. Available Software shows the plugin (but no install option
>> is available) and the AppEngine SDK.
>>
>
> Does Installed Software also show the plugin as installed? Available
> Software should really not have any of the components as installable, if
> they've already been installed (unless you have the "Include items that have
> already been installed" checkbox checked).
>
>
>
>> The IDE doesn't have the two icons I had when it finally installed last
>> time, ordinary menu options are also not there (in File|New, or
>> right-clicking a project - nothing new)
>>
>
> Try going to  Window -> Reset Perspective (or, on the Mac, Eclipse -> Reset
> Perspective). Does that help? Also, do you see any errors reported in the
> error log? Go to Window -> Show View -> Error Log (or, on the Mac, Eclipse
> -> Show View -> Error Log) to display the error log view.
>
>
>>
>>>
>>> I'm sorry that you had to go through all of this. Bad things can happen
>>> when components are not properly installed, as you experienced. This should
>>> not be the normal experience at all. Is your project/Eclipse back in a
>>> working state? If not, let me know and I'll help you to get it back to
>>> normal.
>>>
>>
>> Yes, despite unchecking the project as a GWT one in the GEP options, and
>> after the uninstall apparently working OK, there were still GEP changes in
>> there stopping the project working. Having sorted that out, as I said,
>> context assist didn't know about GWT classes. That is now fixed, too.
>>
>> I tried the -clean option (thanks Isaac) but unfortunately it didn't make
>> any difference. That was after restarting Eclipse, then rebooting the
>> machine.
>>
>> I'm not particularly worried about getting it working. As I said, I was
>> only re-installing it in order to answer the questions I was asked before.
>>
>
> Thanks for going through all of this in order to give us some useful
> information. We appreciate it.
>
>
>>
>> Cheers,
>>
>> 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
-~--~~~~--~~--~--~---



TextBox.setName() and Java Http Servlet request.parameter("arg")

2009-04-21 Thread Nickelnext

Hello everyone

I'm writing about this problem i have found, when i try to send to a
plain Java servlet a file using FileUpload and some others parameters
stored in some textboxes.

I set the form to Multipart encoding, 'cause i have to upload a file
(and it works fine), i set the method to POST, but in the java servlet
when i try to retrieve the data it shows me always a null pointer,
even if i try to change to GET, or by using urlencoded, the
request.getparameter("nameofmyformfield") is always null. I tried also
using others method like getattribute or getattributenames and i
always get null pointer.
The other way i try to get the data is by using the List in
which the java servlet stores the uploaded file, but it has only one
element (the file itself) and nothing else.

To test the servlet class and the gwt itself, i also tried to make a
gwt program that send with a post/get in urlencoded, but the methods
above always return a null value.

Any help will be appreciated.

- Nickelnext
--~--~-~--~~~---~--~~
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: Having a Problem with GWT XMLparser

2009-04-21 Thread Jason Essington

I have noticed that "pretty" xml causes fits, but
 Document doc = XMLParser.parse(xml);
 XMLParser.removeWhitespace(doc);
seems to clear it up. However since removeWhitespace() is mostly a JS  
implementation, it is slower (in most cases) than simply doing that on  
the server if that is where your xml is coming from.

-jason

On Apr 21, 2009, at 9:38 AM, Jeff Chimene wrote:

>
> On 04/20/2009 06:02 PM, codeboo...@gmail.com wrote:
>> Hello everyone
>>
>> when I give my gwt to parse the following XML file , I get an error:
>>
>> 
>> 
>>  http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-
>> MP3-8-gb-Grade-
>> A_W0QQitemZ170323321285QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb
>> Blue Nano 4th Gen Video MP3 8 gb Grade A
>>  
>>  http://cgi.ebay.com/APPLE-IPOD-NANO-8GB-PINK-4th-Gen-VIDEO-8-
>> GB-MP3-Grade-
>> A_W0QQitemZ170323318228QQcategoryZ73839QQcmdZViewItem">APPLE IPOD  
>> NANO
>> 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A
>>  
>>  http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-
>> MP3-8-gb-Grade-
>> A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb
>> Blue Nano 4th Gen Video MP3 8 gb Grade A
>>  
>> 
>>
>
> What happens when you remove the break tags?
>
> >


--~--~-~--~~~---~--~~
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: Creating GWT application

2009-04-21 Thread Rajeev Dayal
On Tue, Apr 21, 2009 at 5:51 AM, newtoGWT  wrote:

>
>
> "Network connection problems encountered during search.
> Unable to access "http://dl.google.com/eclipse/plugin/3.3";.
> Error parsing site stream. [Premature end of file.]
> Premature end of file.
> Error parsing site stream. [Premature end of file.]
> Premature end of file."
>

>
> I know this is not the exact stack trace but this is what it shows in
> eclipse when i click on details button.


I just had a thought about this - are you behind a proxy?


>
>
> thanks for your info, http://dl.google.com/eclipse/plugin/3.3/site.xml
> works!
> Is there any downloadable jar file? so that i can directly unzip
> inside eclipse plugins folder...(other than cypal).
>
> On Apr 20, 10:47 am, rdayal  wrote:
> > In your first post, when attempting to install the plugin, you
> > mentioned that "it throws a network exception". Can you copy and paste
> > the stack trace?
> >
> > Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly
> > in the browser will not work, because this is not a browsable
> > directory. If you want to see if the site works via a browser, try
> > hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml
> >
> > On Apr 20, 7:02 am, newtoGWT  wrote:
> >
> >
> >
> > > yes you are right Darkflame!!
> > > Its due to firewall... i am unable to connect to server..
> > > i downloaded fromhttp://code.google.com/p/cypal-studio/downloads/list
> > > but the downside of cypal-studio is, it doesn't support GWT6 :(. it
> > > shows whilecreatingGWTModule.- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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



Re: Having a Problem with GWT XMLparser

2009-04-21 Thread Jeff Chimene

On 04/20/2009 06:02 PM, codeboo...@gmail.com wrote:
> Hello everyone
>
> when I give my gwt to parse the following XML file , I get an error:
>
> 
> 
>   http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-
> MP3-8-gb-Grade-
> A_W0QQitemZ170323321285QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb
> Blue Nano 4th Gen Video MP3 8 gb Grade A
>   
>   http://cgi.ebay.com/APPLE-IPOD-NANO-8GB-PINK-4th-Gen-VIDEO-8-
> GB-MP3-Grade-
> A_W0QQitemZ170323318228QQcategoryZ73839QQcmdZViewItem">APPLE IPOD NANO
> 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A
>   
>   http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-
> MP3-8-gb-Grade-
> A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb
> Blue Nano 4th Gen Video MP3 8 gb Grade A
>   
> 
>

What happens when you remove the break tags?

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



Re: How to use newer version of Jetty for Hosted Mode server?

2009-04-21 Thread Rajeev Dayal
Hey Tim,

In order to make this work, you can either implement a
ServletContainerLauncher of your own, and use the -server option with the
HostedMode entry point, as Salvador suggest. More info on
ServletContainerLaunchers can be found here:

http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java

http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/dev/core/src/com/google/gwt/core/ext/ServletContainer.java

However, the easiest thing to do is probably to start with GWT's existing
launcher for Jetty and modify it to suit your needs. This is the launcher
that GWT is using to start up Jetty:

http://code.google.com/p/google-web-toolkit/source/browse/releases/1.6/dev/core/src/com/google/gwt/dev/shell/jetty/JettyLauncher.java

You'll have to modify your launch classpath to put your version of Jetty
higher up on the classpath than the GWT SDK. You'll also have to put your
version of JettyLauncher higher on the classpath as well.


Rajeev

2009/4/21 Salvador Diaz 

>
> use -noserver  or -server ?
>
> Google Web Toolkit 1.6.4
> HostedMode [-noserver] [-port port-number | "auto"] [-whitelist
> whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
> gen dir] [-style style] [-ea] [-server servletContainerLauncher] [-
> startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers
> count] module[s]
>
> where
>  -noserver  Prevents the embedded web server from running
>  -port  Specifies the TCP port for the embedded web server
> (defaults to )
>  -whitelist Allows the user to browse URLs that match the
> specified regexes (comma or space separated)
>  -blacklist Prevents the user browsing URLs that match the
> specified regexes (comma or space separated)
>  -logLevel  The level of logging detail: ERROR, WARN, INFO,
> TRACE, DEBUG, SPAM, or ALL
>  -gen   The directory into which generated files will be
> written for review
>  -style Script output style: OBF[USCATED], PRETTY, or
> DETAILED (defaults to OBF)
>  -eaDebugging: causes the compiled output to check assert
> statements.
>  -serverSpecifies a different embedded web server to run
> (must implement ServletContainerLauncher)
>  -startupUrlAutomatically launches the specified URL
>  -war   The war directory to write output files into
> (defaults to war)
>  -extra The directory into which extra, non-deployed files
> will be written
>  -workDir   The compiler work directory (must be writeable;
> defaults to a system temp dir)
>  -localWorkers  Specifies the number of local workers to use when
> compiling permutations
> and
>  module[s]  Specifies the name(s) of the module(s) to host
>
> Cheers,
>
> Salvador
>
> On Apr 21, 3:37 am, TimOnGmail  wrote:
> > Hi Leon...
> >
> > Are you saying there *is* an option somewhere (in which case, where?),
> > or it would be a good idea if there were one?
> >
> > - Tim
> >
> > On Apr 20, 6:01 pm, Leon Li  wrote:
> >
> > > There should be an option there 
> >
> > > On 4月21日, 上午6时29分, TimOnGmail  wrote:
> >
> > > > I want to add, I'm doing all of this in the Eclipse GWT plugin.
> >
> > > > - Tim
> >
> > > > On Apr 20, 3:28 pm, TimOnGmail  wrote:
> >
> > > > > Hi there...
> >
> > > > > I suspect I'm hitting some errors using the embedded Jetty 5 server
> in
> > > > > Hosted Mode.
> >
> > > > > Does anyone know of an easy way to tell GWT 1.6 "Use THIS Jetty jar
> as
> > > > > your server, and not the default one"?
> >
> > > > > - Tim- Hide quoted text -
> >
> > > - Show quoted text -
> >
>

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



Re: Having a Problem with GWT XMLparser

2009-04-21 Thread Igor

Hi,

I tried this (one) line of code on the client side of gwt 1.5.3,
Ubuntu  HH, mozilla-1.7.12  -- and -- it was ok:

com.google.gwt.xml.client.Document doc = XMLParser.parse("APPLE iPod
8gbBlue Nano 4th Gen Video MP3 8 gb Grade AAPPLE IPOD
NANO 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A  http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-MP3-8-gb-
Grade-A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItem\">APPLE
iPod 8gb Blue Nano 4th Gen Video MP3 8 gb Grade A ");

On Apr 21, 3:02 am, "codeboo...@gmail.com"  wrote:
> Hello everyone
>
> when I give my gwt to parse the following XML file , I get an error:
>
> 
> 
>  http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-
> MP3-8-gb-Grade-
> A_W0QQitemZ170323321285QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb
> Blue Nano 4th Gen Video MP3 8 gb Grade A
>  
>  http://cgi.ebay.com/APPLE-IPOD-NANO-8GB-PINK-4th-Gen-VIDEO-8-
> GB-MP3-Grade-
> A_W0QQitemZ170323318228QQcategoryZ73839QQcmdZViewItem">APPLE IPOD NANO
> 8GB PINK 4th Gen VIDEO 8 GB MP3 Grade A
>  
>  http://cgi.ebay.com/APPLE-iPod-8gb-Blue-Nano-4th-Gen-Video-
> MP3-8-gb-Grade-
> A_W0QQitemZ170323326712QQcategoryZ73839QQcmdZViewItem">APPLE iPod 8gb
> Blue Nano 4th Gen Video MP3 8 gb Grade A
>  
> 
>
> and I have no idea why, I checked this XML file with an XML editor it
> looks like everything is ok.
> I also tried to parse another XML file and it was ok.
>
> The error:
>
> [ERROR] Uncaught exception escaped
> com.google.gwt.xml.client.impl.DOMParseException: Failed to parse:
>
> http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Function is not working

2009-04-21 Thread Chuck

Wohoo, it's working now!!! Thank you so much!


[SOLVED]


On 21 Apr., 17:21, olivier nouguier 
wrote:
> replace:
> com.google.gwt.client.Index::createPopup()()
> by
> website.client.Index::createPopup(I)(i);
>
> Which seem to be your client package ...
>
>
>
> On Tue, Apr 21, 2009 at 5:10 PM, Chuck  wrote:
>
> > Yes, you're right, thank you. Unfortunately this didn't solve the
> > problem. I got an error now:  "Unresolvable native reference to type
> > 'com.google.gwt.client.Index'"
>
> > Do you know how to reference my own class? Do I have to include the
> > name of the package?
>
> > On 21 Apr., 16:52, olivier nouguier 
> > wrote:
> > > Hi,
> > > Your java function should receive an int as parameter ... Nope ?
>
> > > On Tue, Apr 21, 2009 at 4:32 PM, Chuck  wrote:
>
> > > > Hi there!
>
> > > > Unfortunately my popup function is not working and I think that I
> > > > found the reason. Please have a look at the JS code, could it be that
> > > > "com.google.gwt.client.Index::createPopup()();" is wrong? How can I
> > > > find out what the real path is of my class called Index? Can anybody
> > > > help? It works without any error messages but the GWT function is
> > > > never executed.
>
> > > > My Java code:
>
> > > > package website.client;
>
> > > > import com.google.gwt.core.client.EntryPoint;
> > > > import com.google.gwt.user.client.Window;
>
> > > > /**
> > > >  * Entry point classes define onModuleLoad().
> > > >  */
> > > > public class Index implements EntryPoint {
>
> > > > // EntryPoint!
> > > >  public void onModuleLoad() {
>
> > > >        // Für JavaScript Interface
> > > >        setShowTrigger(this);
>
> > > >  }
>
> > > >  public native void setShowTrigger(Index x) /*-{
> > > >        $wnd.runApp = function () {
> > > >        x...@com.google.gwt.client.index::createPopup()();
>
> > > >        };
>
> > > >  }-*/;
>
> > > >  public void createPopup(int i) {
>
> > > >          Window.alert("I'm a GWT function");
> > > >  }
> > > >  }
>
> > > > My HTML code:
>
> > > > 
>
> > > > Thanks in advance for helping me!!!
>
> > > --
> > >    “There are two ways of constructing a software design: One way is to
> > make
> > > it so simple that there are obviously no deficiencies, and the other way
> > is
> > > to make it so complicated that there are no obvious deficiencies. The
> > first
> > > method is far more difficult.”
>
> > >    Sir Charles Anthony Richard Hoare
>
> --
>    “There are two ways of constructing a software design: One way is to make
> it so simple that there are obviously no deficiencies, and the other way is
> to make it so complicated that there are no obvious deficiencies. The first
> method is far more difficult.”
>
>    Sir Charles Anthony Richard Hoare
--~--~-~--~~~---~--~~
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: Function is not working

2009-04-21 Thread olivier nouguier
replace:
com.google.gwt.client.Index::createPopup()()
by
website.client.Index::createPopup(I)(i);

Which seem to be your client package ...

On Tue, Apr 21, 2009 at 5:10 PM, Chuck  wrote:

>
> Yes, you're right, thank you. Unfortunately this didn't solve the
> problem. I got an error now:  "Unresolvable native reference to type
> 'com.google.gwt.client.Index'"
>
> Do you know how to reference my own class? Do I have to include the
> name of the package?
>
>
>
> On 21 Apr., 16:52, olivier nouguier 
> wrote:
> > Hi,
> > Your java function should receive an int as parameter ... Nope ?
> >
> >
> >
> > On Tue, Apr 21, 2009 at 4:32 PM, Chuck  wrote:
> >
> > > Hi there!
> >
> > > Unfortunately my popup function is not working and I think that I
> > > found the reason. Please have a look at the JS code, could it be that
> > > "com.google.gwt.client.Index::createPopup()();" is wrong? How can I
> > > find out what the real path is of my class called Index? Can anybody
> > > help? It works without any error messages but the GWT function is
> > > never executed.
> >
> > > My Java code:
> >
> > > package website.client;
> >
> > > import com.google.gwt.core.client.EntryPoint;
> > > import com.google.gwt.user.client.Window;
> >
> > > /**
> > >  * Entry point classes define onModuleLoad().
> > >  */
> > > public class Index implements EntryPoint {
> >
> > > // EntryPoint!
> > >  public void onModuleLoad() {
> >
> > >// Für JavaScript Interface
> > >setShowTrigger(this);
> >
> > >  }
> >
> > >  public native void setShowTrigger(Index x) /*-{
> > >$wnd.runApp = function () {
> > >x...@com.google.gwt.client.index::createPopup()();
> >
> > >};
> >
> > >  }-*/;
> >
> > >  public void createPopup(int i) {
> >
> > >  Window.alert("I'm a GWT function");
> > >  }
> > >  }
> >
> > > My HTML code:
> >
> > > 
> >
> > > Thanks in advance for helping me!!!
> >
> > --
> >“There are two ways of constructing a software design: One way is to
> make
> > it so simple that there are obviously no deficiencies, and the other way
> is
> > to make it so complicated that there are no obvious deficiencies. The
> first
> > method is far more difficult.”
> >
> >Sir Charles Anthony Richard Hoare
> >
>


-- 
   “There are two ways of constructing a software design: One way is to make
it so simple that there are obviously no deficiencies, and the other way is
to make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.”

   Sir Charles Anthony Richard Hoare

--~--~-~--~~~---~--~~
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: Why am I seeing: "GWTCompiler is deprecated and will be removed in a future release"?

2009-04-21 Thread Jason Essington

The beauty of the new Compiler and HostedMode classes is that they are  
pretty verbose if you mess up the options (use no longer existent  
options). Which means, you can simply switch to the new class, and  
read the displayed documentation in the error message :-)

-jason


On Apr 17, 2009, at 1:16 PM, Vitali Lovich wrote:

> (the options
> don't have a 1:1 mapping, so you should read up the documentation on
> how to migrate from 1.5 to 1.6)


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



Re: Problem in downloading Google Plugin for Eclipse

2009-04-21 Thread Rajeev Dayal
Actually, I made a mistake in the install instructions:

>Alternatively, you can just rename the temporary directory to "eclipse",
remove the site.xml file, and copy this >directory under your Eclipseinstall's
*dropins* directory.

This is not correct. If you want to install via this mechanism, you first
need to go into the features directory under the temporary directory that
you created, and unjar all of the jar files in there. Then you can go ahead
an install via the dropins mechanism. Note that this only needs to be done
if installing via the dropins mechanism - if you're installing using the
local update site technique, then you shouldn't unjar the feature jars.

On Tue, Apr 21, 2009 at 9:49 AM, Sledged  wrote:

>
> On Apr 20, 4:23 pm, Rajeev Dayal  wrote:
> > Unfortunately, the process to manually download and install the plugin is
> > somewhat tedious.
>
> I figured it would, but given that the only other readily available
> option is to not install the plugin, I'm content to perform an
> exercise in tedium.
>
> Thanks,
>
> D
> >
>

--~--~-~--~~~---~--~~
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: Creating GWT application

2009-04-21 Thread Rajeev Dayal
If you can't get Eclipse's install mechanism working, here's how you can
install the plugin manually in Eclipse 3.3:

Download the following file and place it in a temporary directory:

http://dl.google.com/eclipse/plugin/3.3/site.xml

Now, download the following into a directory called *features*, underneath
your temporary directory:

http://dl.google.com/eclipse/plugin/3.3/features/com.google.appengine.eclipse.sdkbundle.e33.feature_1.2.0.v200904062254.jar
http://dl.google.com/eclipse/plugin/3.3/features/com.google.gdt.eclipse.suite.e33.feature_1.0.0.v200904062254.jar
http://dl.google.com/eclipse/plugin/3.3/features/com.google.gwt.eclipse.sdkbundle.e33.feature_1.6.4.v200904062254.jar

Finally, download the following into a directory called *plugins*,
underneath your temporary directory:

http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appengine.eclipse.core_1.0.0.v200904062254.jar
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appengine.eclipse.sdkbundle_1.2.0.v200904062254.jar
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclipse.core_1.0.0.v200904062254.jar
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gdt.eclipse.suite_1.0.0.v200904062254.jar
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.core_1.0.0.v200904062254.jar

If on linux:
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.linux_1.6.4.v200904062254.jar

If on mac:
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.macosx_1.6.4.v200904062254.jar

If on windows:
http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclipse.sdkbundle.win32_1.6.4.v200904062254.jar

Now, go into Eclipse, and set up a local update site, and point it to the
temporary directory that you created. You should be able to install the
plugin from this "local" update site.

In the future, we'll make this whole process easier by providing a zip of
the plugin.

On Tue, Apr 21, 2009 at 5:51 AM, newtoGWT  wrote:
>
>
> "Network connection problems encountered during search.
> Unable to access "http://dl.google.com/eclipse/plugin/3.3";.
> Error parsing site stream. [Premature end of file.]
> Premature end of file.
> Error parsing site stream. [Premature end of file.]
> Premature end of file."
>
> I know this is not the exact stack trace but this is what it shows in
> eclipse when i click on details button.
>
> thanks for your info, http://dl.google.com/eclipse/plugin/3.3/site.xml
> works!
> Is there any downloadable jar file? so that i can directly unzip
> inside eclipse plugins folder...(other than cypal).
>
> On Apr 20, 10:47 am, rdayal  wrote:
> > In your first post, when attempting to install the plugin, you
> > mentioned that "it throws a network exception". Can you copy and paste
> > the stack trace?
> >
> > Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly
> > in the browser will not work, because this is not a browsable
> > directory. If you want to see if the site works via a browser, try
> > hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml
> >
> > On Apr 20, 7:02 am, newtoGWT  wrote:
> >
> >
> >
> > > yes you are right Darkflame!!
> > > Its due to firewall... i am unable to connect to server..
> > > i downloaded fromhttp://code.google.com/p/cypal-studio/downloads/list
> > > but the downside of cypal-studio is, it doesn't support GWT6 :(. it
> > > shows whilecreatingGWTModule.- Hide quoted text -
> >
> > - Show quoted text -
> >

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



Re: Function is not working

2009-04-21 Thread Chuck

Yes, you're right, thank you. Unfortunately this didn't solve the
problem. I got an error now:  "Unresolvable native reference to type
'com.google.gwt.client.Index'"

Do you know how to reference my own class? Do I have to include the
name of the package?



On 21 Apr., 16:52, olivier nouguier 
wrote:
> Hi,
> Your java function should receive an int as parameter ... Nope ?
>
>
>
> On Tue, Apr 21, 2009 at 4:32 PM, Chuck  wrote:
>
> > Hi there!
>
> > Unfortunately my popup function is not working and I think that I
> > found the reason. Please have a look at the JS code, could it be that
> > "com.google.gwt.client.Index::createPopup()();" is wrong? How can I
> > find out what the real path is of my class called Index? Can anybody
> > help? It works without any error messages but the GWT function is
> > never executed.
>
> > My Java code:
>
> > package website.client;
>
> > import com.google.gwt.core.client.EntryPoint;
> > import com.google.gwt.user.client.Window;
>
> > /**
> >  * Entry point classes define onModuleLoad().
> >  */
> > public class Index implements EntryPoint {
>
> > // EntryPoint!
> >  public void onModuleLoad() {
>
> >        // Für JavaScript Interface
> >        setShowTrigger(this);
>
> >  }
>
> >  public native void setShowTrigger(Index x) /*-{
> >        $wnd.runApp = function () {
> >        x...@com.google.gwt.client.index::createPopup()();
>
> >        };
>
> >  }-*/;
>
> >  public void createPopup(int i) {
>
> >          Window.alert("I'm a GWT function");
> >  }
> >  }
>
> > My HTML code:
>
> > 
>
> > Thanks in advance for helping me!!!
>
> --
>    “There are two ways of constructing a software design: One way is to make
> it so simple that there are obviously no deficiencies, and the other way is
> to make it so complicated that there are no obvious deficiencies. The first
> method is far more difficult.”
>
>    Sir Charles Anthony Richard Hoare
--~--~-~--~~~---~--~~
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: Module without EntryPoint - How to compile?

2009-04-21 Thread Rajeev Dayal
Hey Ben,

Glad that all is well now.

On Mon, Apr 20, 2009 at 6:16 PM, Ben FS  wrote:

>
> > To exclude non-entry point modules from being included during a Hosted
> > Mode launch or a GWT Compilation, right-click on your project, and
> > select Google > Web Toolkit Settings. From there, you can remove the
> > common module from the list of entry point modules. This should fix
> > the problems that you're experiencing in Hosted mode.
> This has indeed fixed the main problem. The popup error no longer
> appears and the page opens correctly in the external browser. However,
> the hosted mode log still shows the error regarding the module without
> EntryPoint. So, no problem for me, but somewhere something is still
> throwing an error.
>

Can you follow the instructions here to view the set of "Available Modules"
in the launch configuration that you're executing:

http://code.google.com/eclipse/docs/running_and_debugging.html

Do you see the non-entry point module in the list? If so, can you hit
"Restore Defaults", run the launch configuration, and see if that fixes your
problem?


>
> > To perform a compile from the IDE, follow the instructions here:
> >
> > http://code.google.com/eclipse/docs/gwt_compile.html
> I also tried this, and it worked as well for me.
>
> Thank you for your suggestions, you've been a great help.
>
> Ben.
>
> >
> > Rajeev
> >
> > On Apr 20, 4:16 am, Salvador Diaz  wrote:
> >
> >
> >
> > > > 1. In the Hosted mode log:
> > > > [INFO] Compilingmoduleorg.macdadi.core.Core
> > > > [ERROR]Modulehas no entry points defined
> >
> > > It looks like you're trying to launch themodulewithoutentrypoint
> > > instead of themodulewith entry point, you can't do that. Check the
> > > parameters you're passing to the hosted mode and make sure the last
> > > one is the name of themodulewith an entry point.
> >
> > > > 2. A popup in Firefox (or IE): GWTmodule'macdadiks' needs to be (re)
> > > > compiled, please run acompileor use theCompile/Browse button in
> > > > hosted mode
> >
> > > If you failed tocompileyour application, you won't be able to deploy
> > > it (use it in a standard browser/outside the hosted mode)
> >
> > > > I'm using the Eclipse Googe Plugin, and I don't know how to force a
> > > > compilation of all the modules from the IDE directly ... (in
> IntelliJ,
> > > > which I used with GWT 1.4.62 in the past, I know how to do this).
> >
> > > You only need tocompilethemodulewith an entry point, if it
> > > inherits other modules and the source code for them is available in
> > > the classpath, the GWT compiler will find them and include them in the
> > > compilation.
> >
> > > Hope it helps,
> >
> > > Salvador- Hide quoted text -
> >
> > - Show quoted text -
> >
>

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



Re: GWT on FreeBSD

2009-04-21 Thread Alex Rudnick

I don't have a FreeBSD box handy, but this seems like it'd be
workable. Good call about replacing the SWT binaries with your native
ones. Would it help, do you think, to compile GWT from source?

If you get this working, it would be cool to hear how you did it!

On Tue, Apr 21, 2009 at 7:47 AM, Rabbit  wrote:
>
> Switching to -client mode fix the build process.
>
> Hosted mode still not working


-- 
Alex Rudnick
swe, gwt, atl

--~--~-~--~~~---~--~~
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: Function is not working

2009-04-21 Thread olivier nouguier
Hi,
Your java function should receive an int as parameter ... Nope ?

On Tue, Apr 21, 2009 at 4:32 PM, Chuck  wrote:

>
> Hi there!
>
> Unfortunately my popup function is not working and I think that I
> found the reason. Please have a look at the JS code, could it be that
> "com.google.gwt.client.Index::createPopup()();" is wrong? How can I
> find out what the real path is of my class called Index? Can anybody
> help? It works without any error messages but the GWT function is
> never executed.
>
> My Java code:
>
> package website.client;
>
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.Window;
>
> /**
>  * Entry point classes define onModuleLoad().
>  */
> public class Index implements EntryPoint {
>
>
> // EntryPoint!
>  public void onModuleLoad() {
>
>// Für JavaScript Interface
>setShowTrigger(this);
>
>  }
>
>  public native void setShowTrigger(Index x) /*-{
>$wnd.runApp = function () {
>x...@com.google.gwt.client.index::createPopup()();
>
>};
>
>  }-*/;
>
>  public void createPopup(int i) {
>
>  Window.alert("I'm a GWT function");
>  }
>  }
>
>
>
> My HTML code:
>
> 
>
> Thanks in advance for helping me!!!
> >
>


-- 
   “There are two ways of constructing a software design: One way is to make
it so simple that there are obviously no deficiencies, and the other way is
to make it so complicated that there are no obvious deficiencies. The first
method is far more difficult.”

   Sir Charles Anthony Richard Hoare

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



EAR + "Web Application Project" instead of "Dynamic Web Project"

2009-04-21 Thread sjachym

Hy, i try GWT 1.6, but, because my new project is "Web Application
Project" (created by Google Eclipse Plugin) instead of "Dynamic Web
Project", my EAR not contain the .war (there is only include the .jar)

How to publish an EAR including a "Web Application Project (Google)" ?



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



Function is not working

2009-04-21 Thread Chuck

Hi there!

Unfortunately my popup function is not working and I think that I
found the reason. Please have a look at the JS code, could it be that
"com.google.gwt.client.Index::createPopup()();" is wrong? How can I
find out what the real path is of my class called Index? Can anybody
help? It works without any error messages but the GWT function is
never executed.

My Java code:

package website.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;

/**
 * Entry point classes define onModuleLoad().
 */
public class Index implements EntryPoint {


// EntryPoint!
  public void onModuleLoad() {

// Für JavaScript Interface
setShowTrigger(this);

  }

  public native void setShowTrigger(Index x) /*-{
$wnd.runApp = function () {
x...@com.google.gwt.client.index::createPopup()();

};

  }-*/;

  public void createPopup(int i) {

  Window.alert("I'm a GWT function");
  }
  }



My HTML code:



Thanks in advance for helping me!!!
--~--~-~--~~~---~--~~
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: JsParserException: invalid label

2009-04-21 Thread Salvador Diaz

Hey !

Please don't post multiple times your questions (http://
groups.google.com/group/Google-Web-Toolkit/msg/0675da9d966c77d7), be
patient and maybe somebody will reply ;)

So about your popup thing, why use JSNI when you can just do

 public void onModuleLoad() {
 Window.alert("This is a GWT function")
  }

Maybe you're simplifying your code to show us what you're trying to
accomplish, but if you really just want an alert, don't go the JSNI
way.

Salvador

On Apr 21, 10:02 am, Chuck  wrote:
> Hi there!
>
> Can anyone help me with the error mentioned above?
>
> I try to make an interface to JavaScript so I can call a function. My
> Java code looks like that:
>
>  public void onModuleLoad() {
>
>         setShowTrigger(this);
>
>   }
>
>   public native void setShowTrigger(Index x)/*-{
>
>   $wnd.showIndex = function () {
>
>   website.client.Index::runApp()();
>
>   };
>
>   }-*/;
>
>   public void runApp() {
>
>           Window.alert("I am a GWT function");
>   }
>
> As soon as I add the method "setShowTrigger" it crashes with the
> following error. Do I have to include a special library? Or is there
> another way to call a GWT function from the HTML part?
>
> [ERROR] file:/C:/gwt_work/Website/src/website/client/Index.java(36,
> 28): invalid label
> com.google.gwt.dev.js.JsParserException: invalid label
>         at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88)
>         at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459)
>         at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError
> (TokenStream.java:1553)
>         at com.google.gwt.dev.js.rhino.Parser.reportError(Parser.java:72)
>         at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java:
> 783)
>         at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360)
>         at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java:
> 156)
>         at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257)
>         at com.google.gwt.dev.js.rhino.Parser.primaryExpr(Parser.java:1224)
>         at com.google.gwt.dev.js.rhino.Parser.memberExpr(Parser.java:1163)
>         at com.google.gwt.dev.js.rhino.Parser.unaryExpr(Parser.java:1079)
>         at com.google.gwt.dev.js.rhino.Parser.mulExpr(Parser.java:1031)
>         at com.google.gwt.dev.js.rhino.Parser.addExpr(Parser.java:1015)
>         at com.google.gwt.dev.js.rhino.Parser.shiftExpr(Parser.java:1003)
>         at com.google.gwt.dev.js.rhino.Parser.relExpr(Parser.java:987)
>         at com.google.gwt.dev.js.rhino.Parser.eqExpr(Parser.java:976)
>         at com.google.gwt.dev.js.rhino.Parser.bitAndExpr(Parser.java:966)
>         at com.google.gwt.dev.js.rhino.Parser.bitXorExpr(Parser.java:956)
>         at com.google.gwt.dev.js.rhino.Parser.bitOrExpr(Parser.java:946)
>         at com.google.gwt.dev.js.rhino.Parser.andExpr(Parser.java:935)
>         at com.google.gwt.dev.js.rhino.Parser.orExpr(Parser.java:924)
>         at com.google.gwt.dev.js.rhino.Parser.condExpr(Parser.java:908)
>         at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:890)
>         at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:896)
>         at com.google.gwt.dev.js.rhino.Parser.expr(Parser.java:880)
>         at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java:
> 775)
>         at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360)
>         at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java:
> 156)
>         at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257)
>         at com.google.gwt.dev.js.rhino.Parser.parse(Parser.java:116)
>         at com.google.gwt.dev.js.JsParser.parse(JsParser.java:112)
>         at com.google.gwt.dev.javac.JsniCollector.parseAsAnonymousFunction
> (JsniCollector.java:271)
>         at com.google.gwt.dev.javac.JsniCollector.access$000
> (JsniCollector.java:45)
>         at com.google.gwt.dev.javac.JsniCollector$JsniMethodImpl.function
> (JsniCollector.java:82)
>         at com.google.gwt.dev.util.Jsni.getJavaScriptForHostedMode(Jsni.java:
> 115)
>         at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniFor
> (CompilingClassLoader.java:662)
>         at com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes
> (CompilingClassLoader.java:637)
>         at com.google.gwt.dev.shell.CompilingClassLoader.findClass
> (CompilingClassLoader.java:588)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClass(Unknown Source)
>         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
> (ModuleSpace.java:516)
>         at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:299)
>         at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
> (BrowserWidget.java:329)
>         at com.goog

Re: Unable to find/load module error for GWT 1.6.4

2009-04-21 Thread Salvador Diaz

You should be able to make your configuration work provided you launch
the hosted mode with the right parameters.

Please read the documentation concerning the hosted mode:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCompilingAndDebugging.html

Then put your hosted mode in DEBUG log level and play around with the
parameters you're passing to it.

Google Web Toolkit 1.6.4
HostedMode [-noserver] [-port port-number | "auto"] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
gen dir] [-style style] [-ea] [-server servletContainerLauncher] [-
startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers
count] module[s]

where
  -noserver  Prevents the embedded web server from running
  -port  Specifies the TCP port for the embedded web server
(defaults to )
  -whitelist Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logLevel  The level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen   The directory into which generated files will be
written for review
  -style Script output style: OBF[USCATED], PRETTY, or
DETAILED (defaults to OBF)
  -eaDebugging: causes the compiled output to check assert
statements.
  -serverSpecifies a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrlAutomatically launches the specified URL
  -war   The war directory to write output files into
(defaults to war)
  -extra The directory into which extra, non-deployed files
will be written
  -workDir   The compiler work directory (must be writeable;
defaults to a system temp dir)
  -localWorkers  Specifies the number of local workers to use when
compiling permutations
and
  module[s]  Specifies the name(s) of the module(s) to host

Good luck,

Salvador

On Apr 21, 4:14 pm, mabebe  wrote:
> Salvador,
>
> I am getting the error when i run my app in hosted mode but if i use
> standalone hot tomcat deployment (add server and debug within eclipse)
> it can find the module...i should also state everything compiles fine
> with Google Compile..
>
> my project structure is as follows
>
> personalwebsite/src/org/personalsite/personalwebsite/
> Personalwebsite.gwt.xml
> personalwebsite/src/org/personalsite/personalwebsite/
> Personalwebsite.java
> personalwebsite/war/index.html
>
> i tried 
> bothhttp://localhost:8080/personalwebsiteandhttp://localhost:8080/personalwebsite/index.html...andgot
>  the same
> error as above...
>
> here is my Personalwebsite.gwt.xml module content
>
> 
>   
>   
>   
>
>   
>
>    class='org.personalsite.personalwebsite.client.Personalwebsite'/>
>
>   
> 
>
> Thanks...
>
> On Apr 21, 9:13 am, Salvador Diaz  wrote:
>
> > Could you post more details ? (Your whole project structure along with
> > the location of personalwebsite.gwt.xml and the options passed to
> > hosted mode should be enough )
>
> > Alternatively, you could put your hosted mode in DEBUG log level and
> > read the logs to try to pinpoint what's wrong with your classpath
>
> > Hope it helps,
>
> > Salvador
>
> > On Apr 21, 9:41 am, mabebe  wrote:
>
> > > Hi could you please help in resolving the following error..i think its
> > > an issue with the class path, i have my src folder already in the
> > > class path.i am running GWT 1.6.4, Eclipse 3.4
>
> > > [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath;
> > > could be a typo, or maybe you forgot to include a classpath entry for
> > > source?
>
> > > I appreciate any help on this...
> > > Thanks.
> > > Meklit
--~--~-~--~~~---~--~~
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: Unable to find/load module error for GWT 1.6.4

2009-04-21 Thread mabebe

Salvador,

I am getting the error when i run my app in hosted mode but if i use
standalone hot tomcat deployment (add server and debug within eclipse)
it can find the module...i should also state everything compiles fine
with Google Compile..

my project structure is as follows

personalwebsite/src/org/personalsite/personalwebsite/
Personalwebsite.gwt.xml
personalwebsite/src/org/personalsite/personalwebsite/
Personalwebsite.java
personalwebsite/war/index.html

i tried both http://localhost:8080/personalwebsite and
http://localhost:8080/personalwebsite/index.html...and got the same
error as above...

here is my Personalwebsite.gwt.xml module content


  
  
  

  

  

  


Thanks...

On Apr 21, 9:13 am, Salvador Diaz  wrote:
> Could you post more details ? (Your whole project structure along with
> the location of personalwebsite.gwt.xml and the options passed to
> hosted mode should be enough )
>
> Alternatively, you could put your hosted mode in DEBUG log level and
> read the logs to try to pinpoint what's wrong with your classpath
>
> Hope it helps,
>
> Salvador
>
> On Apr 21, 9:41 am, mabebe  wrote:
>
> > Hi could you please help in resolving the following error..i think its
> > an issue with the class path, i have my src folder already in the
> > class path.i am running GWT 1.6.4, Eclipse 3.4
>
> > [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath;
> > could be a typo, or maybe you forgot to include a classpath entry for
> > source?
>
> > I appreciate any help on this...
> > Thanks.
> > Meklit
>
>
--~--~-~--~~~---~--~~
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: Problem in downloading Google Plugin for Eclipse

2009-04-21 Thread Sledged

On Apr 20, 4:23 pm, Rajeev Dayal  wrote:
> Unfortunately, the process to manually download and install the plugin is
> somewhat tedious.

I figured it would, but given that the only other readily available
option is to not install the plugin, I'm content to perform an
exercise in tedium.

Thanks,

D
--~--~-~--~~~---~--~~
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: I installed the GEP and now...

2009-04-21 Thread Rajeev Dayal
Hey Ian,

Thanks for the information. Responses inline:

On Mon, Apr 20, 2009 at 7:26 PM, Ian Bambury  wrote:

> Hi Rajeev,
> Thanks for the response.
>
>  When you tried to install it again, did you install it in a clean version
>> of Eclipse, or was it the version that you were using with all the failed
>> installation attempts? It may be the case that you need to uninstall the
>> plugin, and then try to reinstall it. Preferably, if possible, start with a
>> clean install of Eclipse and a clean workspace, and try and install again
>> (but follow the instructions in the FAQ entry mentioned above - they will
>> greatly speed up the install process).
>>
>
> It was a clean, new Eclipse installation. I was only trying to install the
> GEP and the GWT SDK, nothing else. Eclipse locked up showing 31% completed,
> nothing moving except the progress indicator (no actual progress, just
> animation). Cancel didn't do anything (except disable the cancel button) and
> after some time - in the region of 30 minutes - I went back and nothing had
> changed. There was no option but to kill it in task manager.
>

This is definitely odd. It must have been some network problem, but I'm not
sure which side it occurred on. One thing I do know is that Eclipse does not
fail gracefully in such situations. Do you remember exactly what text was in
the dialog at the time? Was it saying something like "computing requirements
and dependencies", or was it saying "downloading", or maybe "installing"?


>
> The second attempt of the current series, it installed in 30 seconds or so.
> I'm not sure exactly, I was watching TV, but it wasn't long at all.
>
> Now if I go to Software Updates, Installed Software shows the GEP and GWT
> SDK as installed. Available Software shows the plugin (but no install option
> is available) and the AppEngine SDK.
>

Does Installed Software also show the plugin as installed? Available
Software should really not have any of the components as installable, if
they've already been installed (unless you have the "Include items that have
already been installed" checkbox checked).



> The IDE doesn't have the two icons I had when it finally installed last
> time, ordinary menu options are also not there (in File|New, or
> right-clicking a project - nothing new)
>

Try going to  Window -> Reset Perspective (or, on the Mac, Eclipse -> Reset
Perspective). Does that help? Also, do you see any errors reported in the
error log? Go to Window -> Show View -> Error Log (or, on the Mac, Eclipse
-> Show View -> Error Log) to display the error log view.


>
>>
>> I'm sorry that you had to go through all of this. Bad things can happen
>> when components are not properly installed, as you experienced. This should
>> not be the normal experience at all. Is your project/Eclipse back in a
>> working state? If not, let me know and I'll help you to get it back to
>> normal.
>>
>
> Yes, despite unchecking the project as a GWT one in the GEP options, and
> after the uninstall apparently working OK, there were still GEP changes in
> there stopping the project working. Having sorted that out, as I said,
> context assist didn't know about GWT classes. That is now fixed, too.
>
> I tried the -clean option (thanks Isaac) but unfortunately it didn't make
> any difference. That was after restarting Eclipse, then rebooting the
> machine.
>
> I'm not particularly worried about getting it working. As I said, I was
> only re-installing it in order to answer the questions I was asked before.
>

Thanks for going through all of this in order to give us some useful
information. We appreciate it.


>
> Cheers,
>
> 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: How to use newer version of Jetty for Hosted Mode server?

2009-04-21 Thread Salvador Diaz

use -noserver  or -server ?

Google Web Toolkit 1.6.4
HostedMode [-noserver] [-port port-number | "auto"] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
gen dir] [-style style] [-ea] [-server servletContainerLauncher] [-
startupUrl url] [-war dir] [-extra dir] [-workDir dir] [-localWorkers
count] module[s]

where
  -noserver  Prevents the embedded web server from running
  -port  Specifies the TCP port for the embedded web server
(defaults to )
  -whitelist Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logLevel  The level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen   The directory into which generated files will be
written for review
  -style Script output style: OBF[USCATED], PRETTY, or
DETAILED (defaults to OBF)
  -eaDebugging: causes the compiled output to check assert
statements.
  -serverSpecifies a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrlAutomatically launches the specified URL
  -war   The war directory to write output files into
(defaults to war)
  -extra The directory into which extra, non-deployed files
will be written
  -workDir   The compiler work directory (must be writeable;
defaults to a system temp dir)
  -localWorkers  Specifies the number of local workers to use when
compiling permutations
and
  module[s]  Specifies the name(s) of the module(s) to host

Cheers,

Salvador

On Apr 21, 3:37 am, TimOnGmail  wrote:
> Hi Leon...
>
> Are you saying there *is* an option somewhere (in which case, where?),
> or it would be a good idea if there were one?
>
> - Tim
>
> On Apr 20, 6:01 pm, Leon Li  wrote:
>
> > There should be an option there 
>
> > On 4月21日, 上午6时29分, TimOnGmail  wrote:
>
> > > I want to add, I'm doing all of this in the Eclipse GWT plugin.
>
> > > - Tim
>
> > > On Apr 20, 3:28 pm, TimOnGmail  wrote:
>
> > > > Hi there...
>
> > > > I suspect I'm hitting some errors using the embedded Jetty 5 server in
> > > > Hosted Mode.
>
> > > > Does anyone know of an easy way to tell GWT 1.6 "Use THIS Jetty jar as
> > > > your server, and not the default one"?
>
> > > > - Tim- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: CSS style rules of DecoratorPanel

2009-04-21 Thread Salvador Diaz

Read this issue report to understand what's going on there:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3237
For the difference between selectors, google for "ie css hacks"

Cheers,

Salvador

On Apr 21, 4:43 am, hezjing  wrote:
> I'm still studying DecoratorPanel :-)
> Here is the default CSS of GWT (copied from
> gwt-user.jar, 
> com/google/gwt/user/theme/standard/public/gwt/standard/standard.css)
> .gwt-DecoratorPanel .topLeft {
>   background: url(images/corner.png) no-repeat 0px 0px;
>   -background: url(images/corner_ie6.png) no-repeat 0px 0px;
>
> }
>
> My best guess from the filename (corner_ie6.png), is that the second will be
> used by IE.
> I opened corner.png and corner_ie6.png, but both images look the same to me.
> What is the reason to have the "background" and "-background" selector?
>
> On Sun, Apr 19, 2009 at 4:36 PM, Salvador Diaz wrote:
>
>
>
>
>
> > I think tht the best way to "visualize exactly where the CSS rules are
> > applied" is to inspect your generated code with Firebug. In fact it'll
> > help you with so many other things that you'll probably adopt it in no
> > time as one of your day to day tools
>
> > cheers,
>
> > Salvador
>
> > On Apr 18, 6:03 pm, hezjing  wrote:
> > > Hi
> > > I'm still trying with DecoratorPanel, and I'm not sure what are the
> > *Inner
> > > CSS style rules means.
> > > For example, .what is the different between .bottomLeft and
> > bottomLeftInner?
> > > And the different between bottomCenter and bottomCenterInner?
>
> > > .gwt-DecoratorPanel .bottomLeft { the bottom left cell }
> > > .gwt-DecoratorPanel .bottomLeftInner { the inner element of the cell }
>
> > > .gwt-DecoratorPanel .bottomCenter { the bottom center cell }
> > > .gwt-DecoratorPanel .bottomCenterInner { the inner element of the cell }
>
> > > Hmmm ... I probably need a diagram to visualize exactly where does the
> > CSS
> > > style rules applied to the DecoratorPanel :-)
>
> > > --
>
> > > Hez
>
> --
>
> Hez
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Session

2009-04-21 Thread Salvador Diaz

Hey Professor Vagner,

Why not using google project hosting or http://pastebin.com to post
your code examples and simply link to them in your posts ? It's nearly
impossible to read code in a font face that's not monospaced (not to
mention indentation and syntax highlighting).

I'm sure your code snippets would be much more appreciated that way.
At least I wouldn't have an instantaneous gut reaction to dismiss them
because of the utter torture of reading them without any syntax
highlighting and correct indentation.

Thanks for contributing to the community,

Salvador

On Apr 21, 7:26 am, Vitali Lovich  wrote:
> SessionId is not part of GWT.  It's some class he wrote.  Can't help you
> with that.
>
> All I was saying is that the RPC calls he does are GWT 1.5 style - 1.6 has a
> much cleaner way of doing it.
>
> On Tue, Apr 21, 2009 at 12:22 AM, Arun  wrote:
>
> > Hi Vitali,
>
> > can yolu please explain in detail what u have mentioned over here.
>
> > What should i need to do in order to run the above example? How i will
> > get the SessionId class?
>
> > thanks,
> > Arun.
>
> > On Apr 18, 11:46 am, Vitali Lovich  wrote:
> > > That's also outdated as the RPC is using the old syntax instead of the
> > > much shorter one that uses annotations.
>
> > > On Sat, Apr 18, 2009 at 2:24 AM, Arun  wrote:
>
> > > > hello Vagner,
>
> > > > This is very good example..
>
> > > > When I started implementing the same, it is asking me for SessionId.
>
> > > > could you tell me from where you are refering this one. It would be
> > > > helpful to me if you put it over here.
>
> > > > Also, is it possible to reference/create a user define data/object on
> > > > client side?
>
> > > > Thanks in advance.
>
> > > > Arun.
>
> > > > On Feb 27, 12:02 pm, Vagner Araujo  wrote:
> > > >> Hello Friends,
>
> > > >> I was making a simple code ofSessionfor my students.
> > > >> Well, I decided post that code here,
> > > >> because maybe it can serve as a basis for someone.
>
> > > >> //Main Class
>
> > > >> package com.javaneses.spring.client;
>
> > > >> import com.google.gwt.core.client.EntryPoint;
> > > >> import com.google.gwt.core.client.GWT;
> > > >> import com.google.gwt.user.client.Cookies;
> > > >> import com.google.gwt.user.client.Window;
> > > >> import com.google.gwt.user.client.rpc.AsyncCallback;
> > > >> import com.google.gwt.user.client.rpc.ServiceDefTarget;
> > > >> import com.google.gwt.user.client.ui.Button;
> > > >> import com.google.gwt.user.client.ui.ClickListener;
> > > >> import com.google.gwt.user.client.ui.DialogBox;
> > > >> import com.google.gwt.user.client.ui.FlexTable;
> > > >> import com.google.gwt.user.client.ui.FlowPanel;
> > > >> import com.google.gwt.user.client.ui.Label;
> > > >> import com.google.gwt.user.client.ui.PasswordTextBox;
> > > >> import com.google.gwt.user.client.ui.RootPanel;
> > > >> import com.google.gwt.user.client.ui.TextBox;
> > > >> import com.google.gwt.user.client.ui.Widget;
> > > >> import com.javaneses.spring.client.rpc.service.LoginService;
> > > >> import com.javaneses.spring.client.rpc.service.LoginServiceAsync;
> > > >> import com.javaneses.spring.client.rpc.service.SessionService;
> > > >> import com.javaneses.spring.client.rpc.service.SessionServiceAsync;
>
> > > >> /**
> > > >>  * Entry point classes define onModuleLoad().
> > > >>  */
> > > >> public class Main implements EntryPoint, ClickListener{
>
> > > >>         /**
> > > >>          * This is the entry point method.
> > > >>          */
>
> > > >>         private final SessionId sessionId = new SessionId();
>
> > > >>         private final DialogBox dialogBox = new DialogBox();
> > > >>         private final Label userLabel = new Label("User");
> > > >>         private final Label passwdLabel = new Label("Password");
> > > >>         private final TextBox userField = new TextBox();
> > > >>         private final PasswordTextBox passwdField = new
> > PasswordTextBox();
> > > >>         private final Button login = new Button("Login");
>
> > > >>         private final Label welcome = new Label("Welcome");
>
> > > >>         private final User user = new User();
>
> > > >>         {
> > > >>                 FlexTable flexTable = new FlexTable();
>
> > > >>                 flexTable.setWidget(0, 0, userLabel);
> > > >>                 flexTable.setWidget(0, 1, userField);
> > > >>                 flexTable.setWidget(1, 0, passwdLabel);
> > > >>                 flexTable.setWidget(1, 1, passwdField);
>
> > > >>                 FlowPanel panel = new FlowPanel();
> > > >>                 panel.setWidth("100");
> > > >>                 panel.add(login);
>
> > > >>                 flexTable.setWidget(2, 1, panel);
>
> > > >>                 dialogBox.setSize("350", "150");
> > > >>                 dialogBox.add(flexTable);
>
> > > >>                 login.addClickListener(this);
>
> > > >>                 sessionId.setSessionId(Cookies.getCookie("session"));
> > > >>         }//end init block
>
> > > >>         public void onMod

Re: Unable to find/load module error for GWT 1.6.4

2009-04-21 Thread Salvador Diaz

Could you post more details ? (Your whole project structure along with
the location of personalwebsite.gwt.xml and the options passed to
hosted mode should be enough )

Alternatively, you could put your hosted mode in DEBUG log level and
read the logs to try to pinpoint what's wrong with your classpath

Hope it helps,

Salvador

On Apr 21, 9:41 am, mabebe  wrote:
> Hi could you please help in resolving the following error..i think its
> an issue with the class path, i have my src folder already in the
> class path.i am running GWT 1.6.4, Eclipse 3.4
>
> [ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath;
> could be a typo, or maybe you forgot to include a classpath entry for
> source?
>
> I appreciate any help on this...
> Thanks.
> Meklit
--~--~-~--~~~---~--~~
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: Automatic logout feature

2009-04-21 Thread Arthur Kalmenson

If you're using Spring, you might want to take a look at Spring
Security. It handles session management and role based security for
you. You can then couple that with a check against the server side if
the user's session is still valid. You can either do this with a Timer
(if you want to time them out right away) or build it into your
page/screen changing system.

We do the latter using a history management filter whereby history
changes go through a number of filters before arriving at the correct
handler. If the user check filter catches the user isn't logged in, we
show them the login screen.

--
Arthur Kalmenson



On Mon, Apr 20, 2009 at 9:06 AM, Mark  wrote:
>
> Well appreciated comrades
>
> The intention was never to drive you to write code but to give me a
> peek for i am raw in this field
>
> I have gotten that and i appreciate
>
> Thank you again.
>
> On Apr 20, 11:44 am, Vitali Lovich  wrote:
>> Not to mention that I already described how you I did exactly what you
>> asked.  However, you are expected to at least try & write your own code
>> since people do tend to have their own things to work on.
>>
>> On Mon, Apr 20, 2009 at 4:28 AM, Salvador Diaz 
>> wrote:
>>
>>
>>
>> > > How do i create it on the server?
>>
>> > Google it ;)
>>
>> > More seriously, you can't just ask all of your questions in a forum
>> > and expect that people will write the code for you, you have to show
>> > you're doing some efforts, so I'll help you and give you some
>> > interesting reading:
>>
>> >
>>
>> >http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...()
>>
>> >http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/H...()
>>
>> >http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/H...()
>>
>> > That should be enough to let you implement the automatic logout
>> > feature
>>
>> > Cheers,
>>
>> > Salvador
>>
>> > On Apr 20, 10:13 am, Mark  wrote:
>> > > I like the second option because i love being fancy :=)
>>
>> > > How do i create it on the server?
>>
>> > > Thank you - enlightening
>>
>> > > On Apr 20, 10:03 am, Salvador Diaz  wrote:
>>
>> > > > You should set the session timeout in your servlet container to
>> > > > whatever you want it to be. When the session expires, any RPC in a
>> > > > logged in client will fail, so that should be enough.
>>
>> > > > If you want to be fancy, create a serializable timeout exception, and
>> > > > then when you catch it client-side, logout the user and show him the
>> > > > login prompt
>>
>> > > > Cheers,
>>
>> > > > Salvador
>>
>> > > > On Apr 20, 7:38 am, Mark  wrote:
>>
>> > > > > Hi All;
>>
>> > > > > I earlier requested help in regard tothe above subject but i have
>> > > > > waited in vain.
>>
>> > > > > I am new to GWT and I am working on a data critical application where
>> > > > > security is imperative.
>>
>> > > > > I want to implement an automatic logout feature if the application
>> > > > > does not receive activity for n - minutes
>>
>> > > > > Help out
>>
>> > > > > Mark
> >
>

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



Re: Need to display a disabled checkbox without changing the appearance

2009-04-21 Thread Lothar Kimmeringer

Suren schrieb:

>> Without knowing how that looks in reality,
> 
> we can see the difference in apperance of Checkbox when its enabled
> (true) and enabled(false) right??

Yes, my sentence above I meant in that way, that I don't know
how the user experience will be if you try out what I suggest.
An enabled checkbox that reset that value after clicking might
look very ugly because you will actually be able to change the
value (i.e. the checkbox will be empty or set) but it will
"jump" back to the previous value. So this might be very ugly.
As well you should check if the listener got called if you set
the value by focusing the checkbox using your keyboard and
pressing the space-key.

> I need enabled(true) apperance when I say enabled (false). I know I am
> bit cinfusing

I knew what you meant ;-)


Regards, Lothar

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



Re: How much slower is PRETTY mode?

2009-04-21 Thread Arthur Kalmenson

Hey Rob,

Whatever it was that I said that upset you so much, I apologize. I
think you really need to move on.

Best regards,
--
Arthur Kalmenson



On Mon, Apr 20, 2009 at 12:42 PM, Rob Smith  wrote:
>
> Why is it that most of Arthurs posts either have incorrect information
> or one of :
>
> "I haven't tried it but I think.."
> "I don't know the exact numbers but.."
> "I heard that xxx is good / bad but I haven't tried it.."
> "I think.."
>
> Just search the forums. Half-knowledge more dangerous than ignorance.
> Just a word of caution to new users on this forum.
>
> On Apr 19, 10:53 pm, Arthur Kalmenson  wrote:
>> > I just listened to the talk - didn't hear him say anything regarding
>> > performance of long name vs short names.
>>
>> Oops, guess it wasn't that one, although that presentation did rock
>> :P. I watched it a year ago, so my memory is rather vague there.
>>
>> > Even with older browsers, I don't see it being super significant -
>> > 1-2% at most if it's even measurable.  The execution of the javascript
>> > code by the interpreter should far outweigh the cost of tokenizing the
>> > input even if you have a 100 character name.  The cost of doing a 100
>> > byte memcpy should be insignificant compared to all the other stuff
>> > the interpreter must do.  However, I could be wrong - I haven't tested
>> > this in any way, so hard numbers from real-world examples would
>> > probably be best.
>>
>> That's true, but any performance gain is good. Anyway, the main
>> disadvantage of going with PRETTY is that your application ends up
>> being larger so the initial start up is slower.
>>
>> --
>> Arthur Kalmenson
>>
>> On Sun, Apr 19, 2009 at 4:46 AM, Vitali Lovich  wrote:
>>
>> > I just listened to the talk - didn't hear him say anything regarding
>> > performance of long name vs short names.
>>
>> > The execution difference for smaller names shouldn't exist for the new
>> > generation of browsers using JIT for javascript (i.e. FF3.5, Safair 4,
>> > Chrome).
>>
>> > Even with older browsers, I don't see it being super significant -
>> > 1-2% at most if it's even measurable.  The execution of the javascript
>> > code by the interpreter should far outweigh the cost of tokenizing the
>> > input even if you have a 100 character name.  The cost of doing a 100
>> > byte memcpy should be insignificant compared to all the other stuff
>> > the interpreter must do.  However, I could be wrong - I haven't tested
>> > this in any way, so hard numbers from real-world examples would
>> > probably be best.
>>
>> > On Sun, Apr 19, 2009 at 12:25 AM, Arthur Kalmenson
>> >  wrote:
>>
>> >> I don't know the exact numbers. But if I remember correctly, during
>> >> Bruce's presentation, "Faster-than-Possible Code: Deferred Binding
>> >> with GWT" 
>> >> (http://sites.google.com/site/io/faster-than-possible-code-deferred-bi...)
>> >> at Google I/O 2008, he mentioned something about smaller function and
>> >> variable names executing faster then longer names.
>>
>> >> Also, as Vitali said, you're code is going to be rather bloated. We
>> >> were accidentally running one of our apps in PRETTY and found the
>> >> before compression size was 3 MB and after compression was 400kb. When
>> >> we changed to OBF, the before compression size was 500kb and
>> >> compressed was somewhere around 120kb.
>>
>> >> What's the reason that you want to run it as PRETTY? If you want to
>> >> make the functions callable from regular JS, you should take a look at
>> >> Ray Cromwell's excellent GWT Exporter project:
>> >>http://code.google.com/p/gwt-exporter/
>>
>> >> --
>> >> Arthur Kalmenson
>>
>> >> On Sat, Apr 18, 2009 at 1:46 AM, Vitali Lovich  wrote:
>>
>> >>> I believe that it should be the same performance in terms of
>> >>> execution.  You're download times will probably suffer - I wouldn't be
>> >>> surprised if the code bloats by 2-3x if not more.
>>
>> >>> On Fri, Apr 17, 2009 at 11:40 PM, Dobes  wrote:
>>
>>  I'm considering deploying a version in PRETTY mode since it may solve
>>  a Safari 4 issue I'm having and it would also allow me to interpret
>>  the stack traces produced by Firefox a lot better.
>>
>>  However, I'm wondering what experiences people have had with the
>>  performance of PRETTY more - how is it?
>>
>>  Thanks in advance,
>>  Dobes
> >
>

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



Re: Need to display a disabled checkbox without changing the appearance

2009-04-21 Thread Suren

Hi Lothar,

Thanks for the reply.

>Without knowing how that looks in reality,

we can see the difference in apperance of Checkbox when its enabled
(true) and enabled(false) right??
I need enabled(true) apperance when I say enabled (false). I know I am
bit cinfusing

But let me try out what you've suggested first

Thanks again

On Apr 21, 4:59 pm, Lothar Kimmeringer  wrote:
> Suren schrieb:
>
> > But I want to just disable the editing and keep the checkbox apperance
> > as same as enabled. how can I achieve that?
>
> Without knowing how that looks in reality, you might define a click-
> listener on that checkbox that reset the old value if somebody tries
> to change it.
>
> Regards, Lothar
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Need to display a disabled checkbox without changing the appearance

2009-04-21 Thread Lothar Kimmeringer

Suren schrieb:

> But I want to just disable the editing and keep the checkbox apperance
> as same as enabled. how can I achieve that?

Without knowing how that looks in reality, you might define a click-
listener on that checkbox that reset the old value if somebody tries
to change it.


Regards, Lothar

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



Need to display a disabled checkbox without changing the appearance

2009-04-21 Thread Suren

Hi All,

I have a Grid, in which I am placing a Checkbox, under some
conditions, I want to make a checkbox readOnly. If I setEnabled
(false), the appearance is getting changed.

But I want to just disable the editing and keep the checkbox apperance
as same as enabled. how can I achieve that?

Any help would be appreicated??

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



Re: GWT on FreeBSD

2009-04-21 Thread Rabbit

Switching to -client mode fix the build process.

Hosted mode still not working
--~--~-~--~~~---~--~~
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: Creating GWT application

2009-04-21 Thread newtoGWT


"Network connection problems encountered during search.
Unable to access "http://dl.google.com/eclipse/plugin/3.3";.
Error parsing site stream. [Premature end of file.]
Premature end of file.
Error parsing site stream. [Premature end of file.]
Premature end of file."

I know this is not the exact stack trace but this is what it shows in
eclipse when i click on details button.

thanks for your info, http://dl.google.com/eclipse/plugin/3.3/site.xml
works!
Is there any downloadable jar file? so that i can directly unzip
inside eclipse plugins folder...(other than cypal).

On Apr 20, 10:47 am, rdayal  wrote:
> In your first post, when attempting to install the plugin, you
> mentioned that "it throws a network exception". Can you copy and paste
> the stack trace?
>
> Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly
> in the browser will not work, because this is not a browsable
> directory. If you want to see if the site works via a browser, try
> hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml
>
> On Apr 20, 7:02 am, newtoGWT  wrote:
>
>
>
> > yes you are right Darkflame!!
> > Its due to firewall... i am unable to connect to server..
> > i downloaded fromhttp://code.google.com/p/cypal-studio/downloads/list
> > but the downside of cypal-studio is, it doesn't support GWT6 :(. it
> > shows whilecreatingGWTModule.- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Making a call to more than one server

2009-04-21 Thread eggsy

Hi AnaLena,

Also off the back of Dan's article posted above I wrote a similar
tutorial on my blog about how to go about JSONP

http://eggsylife.blogspot.com/2008/10/gwt-and-cross-site-jsonp-in-j2ee.html

Both turorials do however make an assumption that you understand the
JSON syntax.

http://json.org

has a bit more of a discussion about JSON itself.

Eggsy

On Apr 21, 12:38 am, Sumit Chandel  wrote:
> Hi AnaLena,
> As mentioned in the SOP article, you won't be able to make calls to a server
> on another domain because of the browser security policies in place.
> However, there are techniques that allow to workaround this limitation and
> create "mashups" that use services in a cross-domain fashion to put that
> data together in your application. There is a great article written on the
> subject by Dan Morrill on the GWT articles page, you can read up on
> techniques you can use there (for example, JSONP).
>
> Using GWT for JSON 
> Mashups:http://code.google.com/webtoolkit/articles/using_gwt_for_json_mashups...
>
> Hope that helps,
> -Sumit Chandel
>
> On Sun, Apr 19, 2009 at 11:03 PM, Salvador Diaz 
> wrote:
>
>
>
> > Unfortunately, you're limited by the same origin policy:
> >https://developer.mozilla.org/En/Same_origin_policy_for_JavaScript
>
> > There are techniques to bypass it though but if you have a server
> > backend, your best bet is to make the calls to the other server there.
>
> > Cheers,
>
> > Salvador
>
> > On Apr 20, 7:53 am, AnaLena  wrote:
> > > Sorry for the newbie question. After a lot of searching I finally got
> > > sent in the right direction. I assume RequestBuilder is what I want?
> >http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



JsParserException: invalid label

2009-04-21 Thread Chuck

Hi there!

Can anyone help me with the error mentioned above?

I try to make an interface to JavaScript so I can call a function. My
Java code looks like that:

 public void onModuleLoad() {

setShowTrigger(this);

  }

  public native void setShowTrigger(Index x)/*-{

  $wnd.showIndex = function () {

  website.client.Index::runApp()();

  };

  }-*/;

  public void runApp() {

  Window.alert("I am a GWT function");
  }

As soon as I add the method "setShowTrigger" it crashes with the
following error. Do I have to include a special library? Or is there
another way to call a GWT function from the HTML part?

[ERROR] file:/C:/gwt_work/Website/src/website/client/Index.java(36,
28): invalid label
com.google.gwt.dev.js.JsParserException: invalid label
at com.google.gwt.dev.js.JsParser$1.error(JsParser.java:88)
at com.google.gwt.dev.js.rhino.Context.reportError(Context.java:459)
at com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError
(TokenStream.java:1553)
at com.google.gwt.dev.js.rhino.Parser.reportError(Parser.java:72)
at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java:
783)
at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360)
at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java:
156)
at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257)
at com.google.gwt.dev.js.rhino.Parser.primaryExpr(Parser.java:1224)
at com.google.gwt.dev.js.rhino.Parser.memberExpr(Parser.java:1163)
at com.google.gwt.dev.js.rhino.Parser.unaryExpr(Parser.java:1079)
at com.google.gwt.dev.js.rhino.Parser.mulExpr(Parser.java:1031)
at com.google.gwt.dev.js.rhino.Parser.addExpr(Parser.java:1015)
at com.google.gwt.dev.js.rhino.Parser.shiftExpr(Parser.java:1003)
at com.google.gwt.dev.js.rhino.Parser.relExpr(Parser.java:987)
at com.google.gwt.dev.js.rhino.Parser.eqExpr(Parser.java:976)
at com.google.gwt.dev.js.rhino.Parser.bitAndExpr(Parser.java:966)
at com.google.gwt.dev.js.rhino.Parser.bitXorExpr(Parser.java:956)
at com.google.gwt.dev.js.rhino.Parser.bitOrExpr(Parser.java:946)
at com.google.gwt.dev.js.rhino.Parser.andExpr(Parser.java:935)
at com.google.gwt.dev.js.rhino.Parser.orExpr(Parser.java:924)
at com.google.gwt.dev.js.rhino.Parser.condExpr(Parser.java:908)
at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:890)
at com.google.gwt.dev.js.rhino.Parser.assignExpr(Parser.java:896)
at com.google.gwt.dev.js.rhino.Parser.expr(Parser.java:880)
at com.google.gwt.dev.js.rhino.Parser.statementHelper(Parser.java:
775)
at com.google.gwt.dev.js.rhino.Parser.statement(Parser.java:360)
at com.google.gwt.dev.js.rhino.Parser.parseFunctionBody(Parser.java:
156)
at com.google.gwt.dev.js.rhino.Parser.function(Parser.java:257)
at com.google.gwt.dev.js.rhino.Parser.parse(Parser.java:116)
at com.google.gwt.dev.js.JsParser.parse(JsParser.java:112)
at com.google.gwt.dev.javac.JsniCollector.parseAsAnonymousFunction
(JsniCollector.java:271)
at com.google.gwt.dev.javac.JsniCollector.access$000
(JsniCollector.java:45)
at com.google.gwt.dev.javac.JsniCollector$JsniMethodImpl.function
(JsniCollector.java:82)
at com.google.gwt.dev.util.Jsni.getJavaScriptForHostedMode(Jsni.java:
115)
at com.google.gwt.dev.shell.CompilingClassLoader.injectJsniFor
(CompilingClassLoader.java:662)
at com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes
(CompilingClassLoader.java:637)
at com.google.gwt.dev.shell.CompilingClassLoader.findClass
(CompilingClassLoader.java:588)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
(ModuleSpace.java:516)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:299)
at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
(BrowserWidget.java:329)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$300
(BrowserWidgetIE6.java:37)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:76)
at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925

Re: A native GWT chart library?

2009-04-21 Thread Flemming Boller
Hi

I currently use the GWTCanvas, for creating pies. It works very well.

The code I can just copy paste from "swing/awt" code examples because the
GWTCanvas
api is very much like the normal jdk canvas. And you can your self attach
mouse listeners etc on the pie so it becomes interactive, with the rest of
the page.

So for pies it is well suited.

However I have not "cracked" the nutt with respect to drawing  text in the
canvas, last time I checked the versiondid not support drawString(...)
method, so that was a no go.

/Flemming


ps: if you want I can attach the code.

On Tue, Apr 21, 2009 at 2:48 AM, Thomas Broyer  wrote:

>
>
>
> On 20 avr, 23:54, plcoirier  wrote:
> > Hi,
> >
> > I'm looking for a native GWT chart library. I would like to be able to
> > draw all different kinds of chart (line chart, bart chart, area chart,
> > pie chart...). I also would like a client solution.
> > I unfortunately can't use Google Visualization bc it's for an intranet
> > website and users may not have access to google servers. Flash
> > solutions aren't an option either :(
> >
> > I saw gchart but I need pie charts that are completely filled.
> >
> > Any other ideas of library?
>
> Huh! no flash?! Which browser(s) are you targetting?
> If you only plan on supporting relatively modern browsers and/or IE,
> then you could use SVG or canvas (for the formers) and VML for the
> latter (I guess silverlight or java applets aren't an option either?).
> There are a few GWT projects for charting based on canvas but they
> don't seem maintained... (for example http://code.google.com/p/glotr/
> )
> You can eventually use the GWTCanvas widget from the GWT Incubator and
> do the plotting/charting by yourself:
> http://code.google.com/p/google-web-toolkit-incubator/wiki/GWTCanvas
>
> Unfortunately, Chronoscope doesn't meet your criterias as it doesn't
> do pies (it's oriented towards time-based data...), otherwise, it's a
> very well-thought-out project from one of the best GWT user/
> contributor out there!
> http://timepedia.org/chronoscope/
>
>
> >
>

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



Unable to find/load module error for GWT 1.6.4

2009-04-21 Thread mabebe

Hi could you please help in resolving the following error..i think its
an issue with the class path, i have my src folder already in the
class path.i am running GWT 1.6.4, Eclipse 3.4

[ERROR] Unable to find 'personalwebsite.gwt.xml' on your classpath;
could be a typo, or maybe you forgot to include a classpath entry for
source?

I appreciate any help on this...
Thanks.
Meklit
--~--~-~--~~~---~--~~
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: Announcing GWT 1.6...and quite a bit more

2009-04-21 Thread Salvador Diaz

Thanks for your replies guys,
I just reported the bug, here's the link
http://code.google.com/p/google-web-toolkit/issues/detail?id=3583

On Apr 21, 1:17 am, Sumit Chandel  wrote:
> Hi Salvador,
> Also, if you do discover a veritable bug, or a valid feature request related
> to GWT functionality (for example, the request for better Maven integration
> for the Google Plug-in for Eclipse), feel free to report it on the GWT Issue
> Tracker. We've added new labels to categorize and track plug-in issues
> there.
>
> Issue Tracker:http://code.google.com/p/google-web-toolkit/issues/list
>
> Cheers,
> -Sumit Chandel
>
> On Sun, Apr 19, 2009 at 7:15 AM, Salvador Diaz wrote:
>
>
>
> > Where should we report bugs found in the Eclipse plugin ?
>
> > Thanks in advance,
>
> > Salvador
>
> > On Apr 10, 8:44 am, Ramas  wrote:
> > > why exclusive support for Eclipse ? For the past few years Netbeans
> > > became a lot better, than it used to, and there's large developer
> > > community, too. Can you provide out-of-box support for Netbeans in the
> > > future ?
>
> > > On Apr 8, 6:57 am, Bruce Johnson  wrote:
>
> > > > Hi Folks!
>
> > > > Exciting news today. Rather than attempting to describe everything
> > here, let
> > > > me point you to some blog posts that hopefully you will find
> > interesting:
>
> > > > GWT 1.6 and friends:
> >http://googlewebtoolkit.blogspot.com/2009/04/introducing-gwt-16-and-f...
>
> > > > Seriously this time, the new language on App Engine: Javahttp://
> > googleappengine.blogspot.com/2009/04/seriously-this-time-new-l...
>
> > > > Google Plugin for Eclipse -- Peanut Butter to Eclipse's
> > Chocolatehttp://
> > googlewebtoolkit.blogspot.com/2009/04/google-plugin-for-eclips...
>
> > > > -- Bruce, on behalf of the GWT, App Engine, and Google Plugin teams
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---