User.agent detection in CssResource not working?

2010-03-10 Thread dougx
I'm havign trouble with a CssResource I'm using.
This is my css:

.Box {
  border: 1px solid #f00;
}
@if user.agent ie6 {
.Box {
background: #f00;
}
}

It's pretty much straight out of the example here:
http://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbook

The problem is that the user.agent detection doesn't seem to work.
That style is never added...

So I thought maybe I was doing it wrong? Tried this...

.Box {
  border: 1px solid #f00;
}
@if user.agent ie6 {
.Box {
background: #f00;
}
} @elif (com.client.Com.Check()) {
.Box {
background: #0f0;
}
} @else {
.Box {
background: #00f;
}
}

where:
public static boolean Check() {
if  (Navigator.getUserAgent().toLowerCase().contains(msie))
return(true);
else
return(false);
}


...and as a result the div has a green background on ie, and blue on
everything else.

Anyone else having issues @if user.agent?  Did something change in
2.0.3 so it doesn't work the same way anymore?

~
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Serializing a List

2010-03-10 Thread mmoossen
thanks eric for the info.
that seems to be an interesting project.

Michael

On Mar 9, 5:19 pm, Eric erjab...@gmail.com wrote:
 On Mar 9, 2:41 am, mmoossen mmoos...@gmail.com wrote:

  i found the problem 
  inhttp://code.google.com/p/google-web-toolkit/source/browse/trunk/user/...
  line 114:
  TODO: make the unmodifiable collections serializable

  so i think i will forget trying to use my server-side beans for client
  code.
  i will just translate the server-side results to client-only beans.
  it is just a lot of work (cpu-time) for nothing, but it would be the
  same to convert them to JSON for other frameworks.

 The Google Collections project advertises its ImmutableListT class
 as being GWT-compatible. You might be able to resort to that project's
 Lists.of() method instead of the JDK Collections.unmodifiableList()
 method.

 Respectfully,
 Eric Jablow

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



Re: server side internationalization

2010-03-10 Thread mmoossen
that looks really great.
thanks for sharing

Michael

On Mar 10, 7:32 am, Sebastien chassa...@gmail.com wrote:
 Hi
 I extracted the code to a dedicated 
 project:http://code.google.com/p/gwt-i18n-server/

 Now It supports Constants, ConstantsWithLookup, Messages (plural
 included).

 Regards,
 Seb

 On 8 fév, 13:42, Lucas de Oliveira lucasdeolive...@gmail.com wrote:

  Hi all,
  sorry to bring back the post but I'm having problems while trying to use
  KtrI18N.
  The thing is that I have an Enum class that shouldn't know if the code is
  running on the client or server side. A little code:

  public enum Status{
   OPEN {
          @Override
          public String getI18N() {
              return labels.statusOpen();
          }
   },
   CLOSED {

          @Override
          public String getI18N() {
              return labels.statusClosed();
          }

  }

   Labels labels = KtrI18N.createConstants(Labels.class);
   public abstract String i18n();

  }

  So this code should run both in client and server. The problem is: it
  doesn't work at the client side. I checked the KtrI18N website and there is
  an eclipse plugin to create the supersource trick for you, but I couldn't
  make it work. Any ideas?

  thanks in advance,
  cheers!

  --
  Lucas de Oliveira Arantes

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



No source code is available for type com.google.gwt.maps.client

2010-03-10 Thread Muthu
I followed the instructions from the following site

http://code.google.com/docreader/#p=gwt-google-apiss=gwt-google-apist=MapsGettingStarted

to add maps to my GWT application. Had the inherits as well

inherits name=com.google.gwt.maps.GoogleMaps /

And also added the gwt-maps.jar in my classpath (war/web-inf/lib
folder). However I still get the following errors..

 [ERROR] Line 144: No source code is available for type
com.google.gwt.maps.client.geom.LatLng; did you forget to inherit a
required module?
 [ERROR] Line 148: No source code is available for type
com.google.gwt.maps.client.overlay.Marker; did you forget to inherit a
required module?
 [ERROR] Line 152: No source code is available for type
com.google.gwt.maps.client.InfoWindowContent; did you forget to
inherit a required module?

 [ERROR] Line 14: No source code is available for type
com.google.gwt.maps.client.MapWidget; did you forget to inherit a
required module?
 [ERROR] Line 22: No source code is available for type
com.google.gwt.maps.client.control.LargeMapControl; did you forget to
inherit a required module?
 [ERROR] Line 25: No source code is available for type
com.google.gwt.maps.client.geom.LatLng; did you forget to inherit a
required module?
 [ERROR] Line 30: No source code is available for type
com.google.gwt.maps.client.overlay.Marker; did you forget to inherit a
required module?

Any idea?? please help.. Thanks.

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



Re: How to integrate GWT application with IBM Websphere Portal

2010-03-10 Thread Muthu Lalapet
You could take a GWT module and embed in any web page and Portal being a web
page I guess you could do that. However the question is can we share the
sessions between all these.. I don't think so.

On Tue, Mar 9, 2010 at 11:49 PM, kbalasmile bala.kuma...@gmail.com wrote:

 Hi guys,
I am new to GWT. I have understood that we can create RIA
 apps using GWT. Is it possbile to integrate these applications with
 Portal? Thanks in advance for your resopnse.

 Regards,
 Bala

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



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



Re: GWT Compilation Failed

2010-03-10 Thread Muthu
Just and update.. Fixed this issue. I was repeating add-linker in the
gwt.xml file. These linkers are added by the modules that I was
inheriting. When I removed the duplciate add-linker then the issue was
resolved.

On Mar 9, 7:07 pm, Muthu muthulala...@gmail.com wrote:
 Any help with this?? I'm still stuck.. and the actual error is as
 follows

          [ERROR] Unable to compile.
 java.io.IOException: Cannot run program java: error=2, No such file
 or directory

 My project used to compile and deploy to the app engine properly. Then
 I separated the GWT project into 3 projects.. one is the main module
 and the other two are two sub projects. And after this the deploy to
 google app engine stopped working. However the app works locally.

 Can anyone let me know the actual issues here?

 On Mar 9, 2:01 am, Muthu muthulala...@gmail.com wrote:



  Hi,

  I'm new to GWT and I get the following error when I do a GWT compile

  Compiling module com.p2p.pcwebapp.pcWebApp.Pcwebapp
     Compiling 15 permutations
        Compiling permutation 0...
        Compiling permutation 1...
        Compiling permutation 2...
        Compiling permutation 3...
        Compiling permutation 4...
        Compiling permutation 5...
        Compiling permutation 6...
        Compiling permutation 7...
        Compiling permutation 8...
        Compiling permutation 9...
        Compiling permutation 10...
        Compiling permutation 11...
        Compiling permutation 12...
        Compiling permutation 13...
        Compiling permutation 14...
     Compile of permutations succeeded
  Linking into /Users/mlalapet/workspaces/pcwebapp/war/pcwebapp.
     Invoking Linker Worker Compiler
        Recursively compiling Worker modules...
        Executing cmd: java -Dns.recursed=true -cp /Users/mlalapet/
  workspaces/pcwebapp/src:/Users/mlalapet/workspaces/pcwebapp/war/WEB-
  INF/classes:/Applications/eclipse/plugins/
  com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
  gwt-user.jar:/Applications/eclipse/plugins/
  com.google.gwt.eclipse.sdkbundle.2.0.3_2.0.3.v201002191036/gwt-2.0.3/
  gwt-dev.jar:/Users/mlalapet/Applications/gwt-maps-1.0.4/gwt-maps.jar:/
  Users/mlalapet/workspaces/pcwebapp/war/WEB-INF/lib/
  com.springsource.org.objectweb.asm-3.1.0.jar:/Users/mlalapet/
  workspaces/pcwebapp/war/WEB-INF/lib/
  org.springframework.web-3.0.1.RELEASE.jar:/Users/mlalapet/workspaces/
  pcwebapp/war/WEB-INF/lib/
  org.springframework.web.servlet-3.0.1.RELEASE.jar:/Users/mlalapet/
  workspaces/pcwebapp/war/WEB-INF/lib/
  org.springframework.context-3.0.1.RELEASE.jar:/Users/mlalapet/
  workspaces/pcwebapp/war/WEB-INF/lib/
  org.springframework.expression-3.0.1.RELEASE.jar:/Users/mlalapet/
  workspaces/pcwebapp/war/WEB-INF/lib/
  org.springframework.beans-3.0.1.RELEASE.jar:/Users/mlalapet/workspaces/
  pcwebapp/war/WEB-INF/lib/org.springframework.core-3.0.1.RELEASE.jar:/
  Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
  1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/
  appengine-local-runtime-shared.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/geronimo-el_1.0_spec-1.0.1.jar:/
  Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
  1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/geronimo-
  jsp_2.1_spec-1.0.1.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/geronimo-servlet_2.5_spec-1.2.jar:/
  Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
  1.3.1_1.3.1.v201002101412/appengine-java-sdk-1.3.1/lib/shared/jsp/
  repackaged-appengine-ant-1.6.5.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-ant-
  launcher-1.6.5.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-commons-
  el-1.0.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-commons-
  logging-1.1.1.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-jasper-
  compiler-5.0.28.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/shared/jsp/repackaged-appengine-jasper-
  runtime-5.0.28.jar:/Applications/eclipse/plugins/
  com.google.appengine.eclipse.sdkbundle.1.3.1_1.3.1.v201002101412/
  appengine-java-sdk-1.3.1/lib/user/appengine-api-1.0-sdk-1.3.1.jar:/
  Applications/eclipse/plugins/com.google.appengine.eclipse.sdkbundle.
  

Re: Debug Gadget GWT 2.0

2010-03-10 Thread flokay
Is there any news on this issue?

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



Client side error

2010-03-10 Thread Joe Cole
I saw an error today which has me puzzled:

com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.__gwt_globalEventArray.length' is null or not an object
 number: -2146823281
 description: '$wnd.__gwt_globalEventArray.length' is null or not an
object

This doesn't really make sense to me that it could be null - does
anyone have any idea how this could happen? The application is fully
initialised and has been in use for quite a time, but idle. Perhaps
garbage collection?

The browser config is:
Browser Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/
4.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR
3.0.30729; .NET CLR 3.5.30729)

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



Re: How to integrate GWT application with IBM Websphere Portal

2010-03-10 Thread Vasem Want
yes session sharing is possible
and you can achieve this in a distributed environment
within web and app

cheers

vas

On Wed, Mar 10, 2010 at 4:45 PM, Muthu Lalapet muthulala...@gmail.comwrote:

 You could take a GWT module and embed in any web page and Portal being a
 web page I guess you could do that. However the question is can we share the
 sessions between all these.. I don't think so.


 On Tue, Mar 9, 2010 at 11:49 PM, kbalasmile bala.kuma...@gmail.comwrote:

 Hi guys,
I am new to GWT. I have understood that we can create RIA
 apps using GWT. Is it possbile to integrate these applications with
 Portal? Thanks in advance for your resopnse.

 Regards,
 Bala

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


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


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



Re: external.gwtOnLoad is not a function : external.gwtOnLoad(window, null, 1.6); line 32

2010-03-10 Thread Zied Hamdi http://nextstreet.eu
I forgot to say that I found the solution thanks to Broyer:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4274

Comment 6  by t.broyer, Dec 15, 2009

@zhamdi.into: this line comes from an app compiled with GWT 1.6 or
1.7, not an app
compiled with GWT 2.0.
Compare http://bit.ly/8agy1L and http://bit.ly/7IBmZw
Check your hosted.html

Comment 7 by zhamdi.into, Dec 15, 2009

@t.broyer: infinite thanks for your explanations, you made me realize
that doing a
simple refresh on the browser doesn't suffice (on any of firefox,
chrome nor. ie),
doing a clean of the cache from the browser options menu resolves the
problem.

Many thanks for the fast reply also.

Best Regards
Zied Hamdi
http://www.larueacote.fr

On Jan 29, 2:19 am, bcsumner bcsum...@gmail.com wrote:
 I had a similar problem in my application.  After upgrading to 2.0
 from 1.7 I got a blank page in dev mode and an error in the Firefox
 Javascript console saying external.gwtOnLoad is not a function.
 After trying a bunch of stuff without much luck, I changed the name of
 my module, the reference to the application js in the launcher html
 (if you generated your project using the eclipse templates this is
 project root/war/module name.html), and the name of the
 launcher html page.  Everything seems to work fine now.  I had seen
 hints elsewhere that this may be due to artifacts from old compiles
 still hanging around, but I didn't take the time to research it
 fully.  My guess is you don't really need to change the name of the
 launcher html and that just renaming the module and the reference to
 it in the html is enough, but I didn't go back to check since I wanted
 the names in sync anyway.  Hope that helps.

 On Dec 15 2009, 12:39 pm, Zied Hamdihttp://nextstreet.eu;



 zhamdi.i...@gmail.com wrote:
  Hi,

  I moved my 1.6 project to the new 2.0 GWT under eclipse and since that
  moment I can't evolve anymore (since 2 days): I have javascript errors
  that doesn't even let the code reach the onModuleLoad() method. I did
  an upgrade on my eclipse so it's impossible to return back to the 1.6
  version (didn't find any link to download the older versions), I think
  I've reached the point of no return :-) so I really must get out of
  this situation but I have no clue about
  what's going wrong. In the code :

  17functiongwtOnLoad(errFn, modName, modBase){
  18 $moduleName = modName;
  19 $moduleBase = modBase;
  20 if (!external.gwtOnLoad(window, modName, 1.6)) {
  21 if (errFn) {
  22 errFn(modName);
  23 }
  24 }
  25}

  externalexists but it doesn't contain anygwtOnLoadmethod. that's
  all I can say, to find where is the 'external' definition, I don't
  know how to do, and I'm convinced I find my self debugging the GWT
  java to js compiler that doesn't sound good at all :-).

  Any help is really really welcome,
  Best Regards,
  Zied

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



Re: external.gwtOnLoad is not a function : external.gwtOnLoad(window, null, 1.6); line 32

2010-03-10 Thread Zied Hamdi http://nextstreet.eu
Hi bcsumner,

Thanks for your help, strange that I didn't receive the post in my
inbox. I got the problem again and that pointed me back to this
page :-). (At that time I received and answer on
http://code.google.com/p/google-web-toolkit/issues/detail?id=4274
(which is a well referenced site so that people can find the solution
in the first google results).

Thanks Chris, I think the problem is not related to the plugin but to
the borwser (and so to gwt that compiles files to the same name): I
got back to branch to fix a bug and I come up with the same issue. Now
I'm wondering if all website users will have the issue on their
browser...

Best Regards
Zied Hamdi
http://www.larueacote.fr

On Jan 29, 2:19 am, bcsumner bcsum...@gmail.com wrote:
 I had a similar problem in my application.  After upgrading to 2.0
 from 1.7 I got a blank page in dev mode and an error in the Firefox
 Javascript console saying external.gwtOnLoad is not a function.
 After trying a bunch of stuff without much luck, I changed the name of
 my module, the reference to the application js in the launcher html
 (if you generated your project using the eclipse templates this is
 project root/war/module name.html), and the name of the
 launcher html page.  Everything seems to work fine now.  I had seen
 hints elsewhere that this may be due to artifacts from old compiles
 still hanging around, but I didn't take the time to research it
 fully.  My guess is you don't really need to change the name of the
 launcher html and that just renaming the module and the reference to
 it in the html is enough, but I didn't go back to check since I wanted
 the names in sync anyway.  Hope that helps.

 On Dec 15 2009, 12:39 pm, Zied Hamdihttp://nextstreet.eu;



 zhamdi.i...@gmail.com wrote:
  Hi,

  I moved my 1.6 project to the new 2.0 GWT under eclipse and since that
  moment I can't evolve anymore (since 2 days): I have javascript errors
  that doesn't even let the code reach the onModuleLoad() method. I did
  an upgrade on my eclipse so it's impossible to return back to the 1.6
  version (didn't find any link to download the older versions), I think
  I've reached the point of no return :-) so I really must get out of
  this situation but I have no clue about
  what's going wrong. In the code :

  17functiongwtOnLoad(errFn, modName, modBase){
  18 $moduleName = modName;
  19 $moduleBase = modBase;
  20 if (!external.gwtOnLoad(window, modName, 1.6)) {
  21 if (errFn) {
  22 errFn(modName);
  23 }
  24 }
  25}

  externalexists but it doesn't contain anygwtOnLoadmethod. that's
  all I can say, to find where is the 'external' definition, I don't
  know how to do, and I'm convinced I find my self debugging the GWT
  java to js compiler that doesn't sound good at all :-).

  Any help is really really welcome,
  Best Regards,
  Zied

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



gwt large data

2010-03-10 Thread gadaleta.marco
Hi @all,
I'm trying to receive from server a json array string that contains
large data  (3000 record from remote mysql db).
If I try to run the code on android phone, it crash.
There is a way to compress this array?
There is a strategy to use to communicate with server?
How i can use input and output stream in gwt client side (i think it
can help me)?

I hope you can give me a council.

Thank you,
Marco

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



Re: How can I join to development gwt eclipse plugin together?

2010-03-10 Thread Bonor
Hi Lee,
What would be great is an Eclipse plugin that can transalate
properties files with the push of a button (google api
http://code.google.com/p/google-api-translate-java/).
This is of course not only useful for GWT developers...

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



Re: Debug Gadget GWT 2.0

2010-03-10 Thread Andrés Cerezo
I've solved it installing Eclipse in linux and everything worked perfectly.

Cheers.

2010/3/10 flokay f.kar...@cadenas.de:
 Is there any news on this issue?

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



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



Re: GWT Tree

2010-03-10 Thread Andrés Cerezo
Perhaps this can help you too:

http://www.extjs.com/examples/pages/tree/basic.html



2010/3/8 Jim Douglas jdoug...@basis.com:
 http://gwt.google.com/samples/Showcase/Showcase.html#!CwTree

 On Mar 8, 11:18 am, NeeravA neerav...@gmail.com wrote:
 Hi,

 When i am creating a tree I am loading all the data to be shown on the
 tree at once and then i populate the tree.

 Is it possible to load data when the user clicks on the particular
 node, so that I load only for the immediate children and not the
 entire tree.
 Is there an actionhandler when u click to expand the tree for a
 particular node.

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



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



Re: gwt large data

2010-03-10 Thread mariyan nenchev
Try paging your data :)

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



Server push in GWT? XMPP?

2010-03-10 Thread jbdhl
I'm building an application that needs to display updated data to the
user as soon as they are received/created on the server. In Jetty I
could just use continuations for that, but what can I do in App
Engine?
Can XMPP be used for server push (and how)?

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



GWT + URL Rewriting (Apache)

2010-03-10 Thread jbroquefere
Hello everybody,
i have to publish my gwt app under jkmount + url rewriting.

Just under jkmount, everything works fine
but when i use url rewriting, it does not work.
I have thie error (on my tomcat console):
com.google.gwt.user.client.rpc.SerializationException: Type
'com.my.comp.MyObject' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer.For security purposes, this type will not be
serialized.: instance = enterprise

MyObj is a simple enum, and i repeat everythings works fine under
tomcat, then under apache+jkmount (which redirect to apache), but it
doesnt work with url rewriting.

Is there a way to make it working fine?

Regards,

Jean-Baptiste Roquefère

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



Re: Serializing a List

2010-03-10 Thread Paul Stockley
I had exactly the same problem as this but it had nothing to do with
lists. The problem seemed to be that I was returning a type with a
generic argument i.e. ResultString As soon as I removed the generic
part it worked.

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
you need to know that GWT/ajax does not allow cross domain communication.

Apparently you have a security problem with cross domain communication.

On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere 
jeanbaptiste.roquef...@gmail.com wrote:

 Hello everybody,
 i have to publish my gwt app under jkmount + url rewriting.

 Just under jkmount, everything works fine
 but when i use url rewriting, it does not work.
 I have thie error (on my tomcat console):
 com.google.gwt.user.client.rpc.SerializationException: Type
 'com.my.comp.MyObject' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
 custom field serializer.For security purposes, this type will not be
 serialized.: instance = enterprise

 MyObj is a simple enum, and i repeat everythings works fine under
 tomcat, then under apache+jkmount (which redirect to apache), but it
 doesnt work with url rewriting.

 Is there a way to make it working fine?

 Regards,

 Jean-Baptiste Roquefère

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



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



Re: Window.open can not work in IE

2010-03-10 Thread malliseven.hills
Hi,
it would be usefull


public static native void windoOpen(String pUrl)/*-{

if ($wnd.showModalDialog) {
var height = screen.height;
var width = screen.width;

$wnd.showModalDialog(pUrl,'name','dialogHeight:'+height+'px;dialogwidth:'+width+'px;scroll:no;status=no');

}else {

 
$wnd.open(pUrl,'name','dialogHeight:'+height+'px;dialogwidth:'+width+'px;scroll:no;status=no');
   }
}-*/;



Thanks,
Malli.










On Fri, Mar 5, 2010 at 1:24 AM, raj kumar raj.cowbo...@gmail.com wrote:

 hey jim!!!

 It's working very well for me in IE.May be check you tools
 setting in IE...

 Regards,
 Raj.

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


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



Re: Cookie

2010-03-10 Thread malliseven.hills
Hi,

i guess it would be useful.

public static void setCookie(String pSessionId){
Date lCurrentDate = new Date();
long lCurrentTime = lCurrentDate.getTime();
lCurrentTime = lCurrentTime+(1000*60*30); //30 min
lCurrentDate.setTime(lCurrentTime);
Cookies.setCookie(session, pSessionId, lCurrentDate, null, /,
false);
}


public static String getCookie(){
return Cookies.getCookie(session);
}


Thanks,
Malli.


On Sat, Mar 6, 2010 at 8:40 AM, Fran fra...@gmail.com wrote:

 It work!!

 Thanks Chad!

 On 5 mar, 01:46, Chad chad...@gmail.com wrote:
  Fran,
 
  Try putting an L after at least one of the numbers in parentheses:
 
  nowLong = nowLong + (1000L * 60 * 60 * 24 * 30); // 30 dias
 
  HTH,
  Chad
 
  On Mar 4, 4:25 pm, Fran fra...@gmail.com wrote:
 
   I cant write a cookie in GWT.
 
   This is the code:
 
   String ckValue =
 Cookies.getCookie(nameCookie);
   if(ckValue == null){
   Date now = new Date();
   long nowLong = now.getTime();
   nowLong = nowLong + (1000 * 60 * 60 *
 24 * 30);// 30 dias
   now.setTime(nowLong);
 
   Cookies.setCookie(nameCookie,
 valueCookie, now);
   }
 
   Always ckValue is null.
 
   Anybody know this problem?
   Thanks

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



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



Re: Need DialogBox with close icon in caption bar

2010-03-10 Thread malliseven.hills
Hi,

FlexTablePanel lFTabPanel = new FlextTablePanel();
DialogBox lAddModuleDialogBox = new DialogBox();
Image  m_Image = new Image(path of image);  i.e image/cancel.jpg

lFTabPanel .setWidget(0,1,m_Image);

lAddModuleDialogBox.add(lFTabPanel );

.

 m_image.addClickListener(new ClickListener() {
public void onClick(Widget arg0) {
lAddModuleDialogBox.hide();
}
});



Thanks,
Malli.



On Sat, Mar 6, 2010 at 9:37 AM, dhoffer dhoff...@gmail.com wrote:

 I should have mentioned that I need this for GWT 2.0, not sure if
 that's any different.

 (I notice this question posted on the web various places but most/all
 have user comments saying it didn't work, etc.  Hopefully someone has
 some code known to work with gwt 2.0.)

 Thanks!

 On Mar 6, 7:10 am, dhoffer dhoff...@gmail.com wrote:
  Could someone send me a code example of how to add a close icon/button
  to the GWT dialog box?  Or if there is a open source library that does
  this that would be fine too.
 
  Thanks.

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



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



GWT Bender - web based RAD tool to create GWT applications in a browser

2010-03-10 Thread Max
GWT Bender is web based tool to create GWT applications in browser.

GWT Bender produces Java and CSS files that are copied in eclipse
(manually or automatically)

Every widget is named automatically var1, var2, var3
(You can change widget name later)

It is possible to write descriptions instead of variable names.
Descriptions appear in a tree on the left panel in grey color.

http://gwt-bender.appspot.com/

Service is open and free for everyone. We use it since august. It was
improved and works fine for us.

Here are 2 screencasts:-

Creating simple application in GWT bender
http://www.youtube.com/watch?v=XxHyOcTVgLk

Copying that application code to eclipse and running. (manually)
http://www.youtube.com/watch?v=5GOqgkJdq5I

If you like it then we will post how to create custom widgets,
classes. We use it since august.

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



Re: GWT Bender - web based RAD tool to create GWT applications in a browser

2010-03-10 Thread Max
All widget properties appear in right panel, including CSS. So you do
not have scroll source files (java, css) to adjust widget properties.
styleClass and elementID are set in one click and then css box is
listed in bottom of right panel.

GWT Bender coding is much faster and reliable then manual coding is
eclipse.


On Mar 10, 3:12 pm, Max max.seven@gmail.com wrote:
 GWT Bender is web based tool to create GWT applications in browser.

 GWT Bender produces Java and CSS files that are copied in eclipse
 (manually or automatically)

 Every widget is named automatically var1, var2, var3
 (You can change widget name later)

 It is possible to write descriptions instead of variable names.
 Descriptions appear in a tree on the left panel in grey color.

 http://gwt-bender.appspot.com/

 Service is open and free for everyone. We use it since august. It was
 improved and works fine for us.

 Here are 2 screencasts:-

 Creating simple application in GWT 
 benderhttp://www.youtube.com/watch?v=XxHyOcTVgLk

 Copying that application code to eclipse and running. 
 (manually)http://www.youtube.com/watch?v=5GOqgkJdq5I

 If you like it then we will post how to create custom widgets,
 classes. We use it since august.

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread jbroquefere
in my configuration, domain is the same

in tomcat
http://mydomain:8080/MyApp/

with jkmount
http://mydomain/MyApp/

and the last step which doesnt work
http://mydomain/

the html file is found, but the first call to the service failed.


On Mar 10, 1:41 pm, rudolf michael roud...@gmail.com wrote:
 you need to know that GWT/ajax does not allow cross domain communication.

 Apparently you have a security problem with cross domain communication.

 On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere 



 jeanbaptiste.roquef...@gmail.com wrote:
  Hello everybody,
  i have to publish my gwt app under jkmount + url rewriting.

  Just under jkmount, everything works fine
  but when i use url rewriting, it does not work.
  I have thie error (on my tomcat console):
  com.google.gwt.user.client.rpc.SerializationException: Type
  'com.my.comp.MyObject' was not assignable to
  'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
  custom field serializer.For security purposes, this type will not be
  serialized.: instance = enterprise

  MyObj is a simple enum, and i repeat everythings works fine under
  tomcat, then under apache+jkmount (which redirect to apache), but it
  doesnt work with url rewriting.

  Is there a way to make it working fine?

  Regards,

  Jean-Baptiste Roquefère

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

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



Problems with center form panel

2010-03-10 Thread asle
Hello:

We have a gwt project,our web page contains a panel and inside the
panel we have a form panel for the login in the web page, for the web
page we use css. We have a problem to center a panel in google chrome
because align to left. We have not  problem with explorer.
But we want to use google chrome, but we need that solved the problem
with center align.

Sorry for the writing,  but i am not speak english
Thanks

Angie


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



DialogBox size

2010-03-10 Thread Fran
Hi,

Why I cant extends the width of a DialogBox more than 350px ?

The code:

   DialogBox dialogBox = new DialogBox();
   dialogBox.setWidth(600px);



Is the same result that:

   DialogBox dialogBox = new DialogBox();
   dialogBox.setWidth(350px);


But not the same that:

   DialogBox dialogBox = new DialogBox();
   dialogBox.setWidth(200px);


Thanks for 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT Bender - web based RAD tool to create GWT applications in a browser

2010-03-10 Thread mariyan nenchev
Great job! This is very useful for beginners and non developers and why not
also for developers. What is the license of this tool?

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



ResultSet Json

2010-03-10 Thread gadaleta.marco
I've seen the possibility to bind json object to datagrid for example.
Exist a method to convert ResultSet client side (sqllite) to json
object?

Thank you
Marco

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
http://mydomain:8080/MyApp/ is NOT the same as http://mydomain/MyApp/
http://mydomain/MyApp/those are 2 different domains.

On Wed, Mar 10, 2010 at 3:34 PM, jbroquefere 
jeanbaptiste.roquef...@gmail.com wrote:

 in my configuration, domain is the same

 in tomcat
 http://mydomain:8080/MyApp/

 with jkmount
 http://mydomain/MyApp/

 and the last step which doesnt work
 http://mydomain/

 the html file is found, but the first call to the service failed.


 On Mar 10, 1:41 pm, rudolf michael roud...@gmail.com wrote:
  you need to know that GWT/ajax does not allow cross domain communication.
 
  Apparently you have a security problem with cross domain communication.
 
  On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere 
 
 
 
  jeanbaptiste.roquef...@gmail.com wrote:
   Hello everybody,
   i have to publish my gwt app under jkmount + url rewriting.
 
   Just under jkmount, everything works fine
   but when i use url rewriting, it does not work.
   I have thie error (on my tomcat console):
   com.google.gwt.user.client.rpc.SerializationException: Type
   'com.my.comp.MyObject' was not assignable to
   'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
   custom field serializer.For security purposes, this type will not be
   serialized.: instance = enterprise
 
   MyObj is a simple enum, and i repeat everythings works fine under
   tomcat, then under apache+jkmount (which redirect to apache), but it
   doesnt work with url rewriting.
 
   Is there a way to make it working fine?
 
   Regards,
 
   Jean-Baptiste Roquefère
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



returning resutl of OS command into the browser

2010-03-10 Thread ntdeaf
Hi all!

I'm trying to create an web interface around some scripts which run on
a server. I want to offer the users an website where they can use the
fileUpload widget from GWT, and then follow the output of the file (it
is an source file which get compiled) in the browser.

I'm able to upload the file to the server, and the script which is
compiling is picking is up.
So far so good.

However i want to list the progress which is saved in  a .log file to
the browser.

I'm trying to find a way to get the stdout stream from the script to
appear in the browser. How can I aproach this problem? The return
output of the server is text, so this should be possible. I have a
servlet (non-gwt) on the server side which is processing the file
upload. What should this file return? Should I send all the output of
the server through HttpServletResponse.getWriter().print? And how can
I catch this on the client? at this moment I have in my fileupload
widget the following code:

public void onSubmitComplete(FormSubmitCompleteEvent event) {
Window.alert(event.getResults());
}

This gives me a popup, but I need the output in a textarea, since it
can be a lot of text.. Can anyone give me some directions?

thx!

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread jbroquefere
yes, but this step works fine i said :)

in tomcat
http://mydomain:8080/MyApp/

with jkmount
http://mydomain/MyApp/   - this one works fine

after this step, i want to ise apache url rewriting to access my site
directly with
http://mydomain/

the Myapp.html is found, because widgets are displayed, but RPC
failed.


On Mar 10, 3:39 pm, rudolf michael roud...@gmail.com wrote:
 http://mydomain:8080/MyApp/is NOT the same ashttp://mydomain/MyApp/
 http://mydomain/MyApp/those are 2 different domains.

 On Wed, Mar 10, 2010 at 3:34 PM, jbroquefere 



 jeanbaptiste.roquef...@gmail.com wrote:
  in my configuration, domain is the same

  in tomcat
 http://mydomain:8080/MyApp/

  with jkmount
 http://mydomain/MyApp/

  and the last step which doesnt work
 http://mydomain/

  the html file is found, but the first call to the service failed.

  On Mar 10, 1:41 pm, rudolf michael roud...@gmail.com wrote:
   you need to know that GWT/ajax does not allow cross domain communication.

   Apparently you have a security problem with cross domain communication.

   On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere 

   jeanbaptiste.roquef...@gmail.com wrote:
Hello everybody,
i have to publish my gwt app under jkmount + url rewriting.

Just under jkmount, everything works fine
but when i use url rewriting, it does not work.
I have thie error (on my tomcat console):
com.google.gwt.user.client.rpc.SerializationException: Type
'com.my.comp.MyObject' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer.For security purposes, this type will not be
serialized.: instance = enterprise

MyObj is a simple enum, and i repeat everythings works fine under
tomcat, then under apache+jkmount (which redirect to apache), but it
doesnt work with url rewriting.

Is there a way to make it working fine?

Regards,

Jean-Baptiste Roquefère

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

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

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
Check this out,
http://raibledesigns.com/rd/entry/how_to_do_cross_domain#proxyServlet
http://raibledesigns.com/rd/entry/how_to_do_cross_domain#proxyServlethope
that this will help you.
you cannot cross domain AJAX calls == http/rpc requests, i wasn't pointing
to the static content like html/images/css

On Wed, Mar 10, 2010 at 4:43 PM, jbroquefere 
jeanbaptiste.roquef...@gmail.com wrote:

 yes, but this step works fine i said :)

 in tomcat
 http://mydomain:8080/MyApp/

 with jkmount
 http://mydomain/MyApp/   - this one works fine

 after this step, i want to ise apache url rewriting to access my site
 directly with
 http://mydomain/

 the Myapp.html is found, because widgets are displayed, but RPC
 failed.


 On Mar 10, 3:39 pm, rudolf michael roud...@gmail.com wrote:
  http://mydomain:8080/MyApp/is NOT the same ashttp://mydomain/MyApp/
  http://mydomain/MyApp/those are 2 different domains.
 
  On Wed, Mar 10, 2010 at 3:34 PM, jbroquefere 
 
 
 
  jeanbaptiste.roquef...@gmail.com wrote:
   in my configuration, domain is the same
 
   in tomcat
  http://mydomain:8080/MyApp/
 
   with jkmount
  http://mydomain/MyApp/
 
   and the last step which doesnt work
  http://mydomain/
 
   the html file is found, but the first call to the service failed.
 
   On Mar 10, 1:41 pm, rudolf michael roud...@gmail.com wrote:
you need to know that GWT/ajax does not allow cross domain
 communication.
 
Apparently you have a security problem with cross domain
 communication.
 
On Wed, Mar 10, 2010 at 2:34 PM, jbroquefere 
 
jeanbaptiste.roquef...@gmail.com wrote:
 Hello everybody,
 i have to publish my gwt app under jkmount + url rewriting.
 
 Just under jkmount, everything works fine
 but when i use url rewriting, it does not work.
 I have thie error (on my tomcat console):
 com.google.gwt.user.client.rpc.SerializationException: Type
 'com.my.comp.MyObject' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
 custom field serializer.For security purposes, this type will not
 be
 serialized.: instance = enterprise
 
 MyObj is a simple enum, and i repeat everythings works fine under
 tomcat, then under apache+jkmount (which redirect to apache), but
 it
 doesnt work with url rewriting.
 
 Is there a way to make it working fine?
 
 Regards,
 
 Jean-Baptiste Roquefère
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google Web Toolkit group.
 To post to this group, send email to
   google-web-tool...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
   cr...@googlegroups.com
 .
 For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Servlet Mapping Noob Question

2010-03-10 Thread Ed
Hi Everyone,

I hope I am able to get an answer to this.

I am trying to tie a backend servlet process to a GWT servlet.

How do I map this to work properly

I am using Jetty 6
GWT 2.01
Eclipse Ganymeade





Here is the code

package com.co.SSIS.server;



import com.co.SSISSERVER.users.User;
import com.co.SSISSERVER.users.UserService;
import com.co.SSISSERVER.users.UserServiceImpl;
import com.co.SSIS.client.LoginInfo;
import com.co.SSIS.client.LoginService;

import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

@RemoteServiceRelativePath(/ssisajaxserver/User)
public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

  public LoginInfo login(String loginURL) {
UserService userService = UserServiceImpl.getUserService();


User user  = userService.getCurrentUser();
LoginInfo loginInfo = new LoginInfo();

if (user != null) {
  loginInfo.setLoggedIn(true);
  loginInfo.setUserName(user.getUserName());
  loginInfo.setAuthority(user.getAuthority());
  loginInfo.setBuilding(user.getBuilding());
  loginInfo.setTeacher(user.getTeacher());

} else {
  loginInfo.setLoggedIn(false);

}
return loginInfo;
  }

}


Here is the web.xml for the backend
=
web-app
  display-nameSSISJAXSERVER/display-name
  descriptionSSIS Version 6 Web Appliction/description

!-- Servlets SSIS Processing --
servlet
   servlet-nameSSISAJAXSERVER/servlet-name
   servlet-classcom.co.SSISSERVER.server.SSISProducer/servlet-
class
/servlet

servlet
   servlet-nameUserServiceImpl/servlet-name
   servlet-classcom.co.SSISSERVER.users.UserServiceImpl/servlet-
class
/servlet

!-- SSISProducer for SSIS Processing --


servlet-mapping
servlet-nameSSISAJAXSERVER/servlet-name
url-pattern/login.html/url-pattern
 /servlet-mapping
servlet-mapping
servlet-nameUserServiceImpl/servlet-name
url-pattern/User/url-pattern
/servlet-mapping



Here is the servlet path

/ssisajaxserver/User


Here the servlet path is answering to a get which of course does not
work
===

HTTP ERROR: 405

HTTP method GET is not supported by this URL
RequestURI=/ssisajaxserver/User

Here is gwt.xml

?xml version=1.0 encoding=UTF-8?
module rename-to='ssisajax'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.co.SSIS.client.SSISAJAX'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/
UserServiceImpl'/

/module



Here is the Stack Trace

2010-03-10 09:35:17.026:/ssisajax:WARN:  Exception while dispatching
incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract com.co.SSIS.client.LoginInfo
com.co.SSIS.client.LoginService.login(java.lang.String)' threw an
unexpected exception: java.lang.NoClassDefFoundError: com/co/
SSISSERVER/users/UserServiceImpl
at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
188)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
363)
at

Re: GWT website disappear when I activate DragonFly on Opera

2010-03-10 Thread Amine Ouahman
As I open DragonFly, only the HTML backgroud stand still, all the
javascript interface disappear, and I saw no errors.

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



Re: serving my app in production

2010-03-10 Thread ntdeaf
I'm afraid I can't help you with that part. I never used compression
(yet) on my apps.

On Feb 26, 6:03 pm, mmoossen mmoos...@gmail.com wrote:
 hi ntdeaf!

 i know how to setup apache, mod_jk and tomcat.
 my question was more in the direction of using mod_deflate on apache
 or using the compression capabilities of tomcat. and for which files?
 i mean as far as i know ie6 pre sp2 has a bug so it cannot handle
 compressed js files, and this is why the generated files are called
 cache.html and not cache.js, except the loaded (nocache.js) so i
 suppose it is save to compress everything except the nocache.js.
 so that is about compression, now what's about cache headers. Etag and
 co? here i think that since the generated files names come from MD5,
 it is also save to tell the browser to cache the files for ever and
 never come back to check them...
 any practical experience on production with these topics?
 anything else i should take care of when going to production?

 thanks
 Michael

 On Feb 26, 5:12 pm, ntdeaf ntd...@gmail.com wrote:

  Hi,

  I'm using a setup just as you have described, and have found no
  difference with running the webapp native on a tomcat (without apache
  http). It just takes a little more configuration to make the webapp
  known to apache, but that is normal since I'm using mod_jk.

  If you need any more info on how to set this up, let me know..

  NTDeaf

  On Feb 25, 8:07 pm, mmoossen mmoos...@gmail.com wrote:

   dear all!

   i just wanted to know what are the best practices for serving my gwt
   app in production.
   i mean, in my case, there will be an apache http server in front of
   tomcat communicating via mod-jk.
   so, what are your experiences with compression, setting cache headers,
   etc?

   thanks
   Michael

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



How to remove border frame in IE.

2010-03-10 Thread mariyan nenchev
Hi,

I use gwt frame to load external page. It's css includes border: none. But
this does not work in IE. I also tried border: 0px; with no effect.
Any ideas how to remove the frame border in IE?

Regards.

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



Re: DialogBox size

2010-03-10 Thread Paul Stockley
Set width and height don't work. I submitted a bug report that has
been accepted. The only reliable way to do it currently is to set the
width and height of the first container widget you add to the dialog.

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



Intercepting all gwt rpc calls on gwt (browser) side.

2010-03-10 Thread Alexander Cherednichenko
Is this ever possible?

My case is pretty simple - I want to detect when was the last call
made to have the 'session expiration' kind of functionality.

For this I wanted to have all the calls to the server intercepted and
scheduled the timer for session lifetime each time. Once the timer
fires (it is the same moment as server session dies) I could transfer
the user to sessionExpiredPage.

What do you think - is it possible at all?
Maybe, there is much easier way of doing the same, but i missed it?

Thank you all.
Alex.

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



Re: serving my app in production

2010-03-10 Thread Chris Lercher
I think he isn't doing cross domain calls (the redirect is just from
http://mydomain/ to http://mydomain/MyApp/)

There was someone with a very similar question on this forum just a
few days ago (I can't find the post anymore, maybe you'll find it). I
think the solution may have had something to do with the context root
of the application (?!)

What I would do is try to access the servlet directly from the browser
(yes, it will tell you, that the GET method isn't supported, but
you'll see, if the URL is correct)

hth
Chris

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread Chris Lercher
I think he isn't doing cross domain calls (the redirect is just from
http://mydomain/ to http://mydomain/MyApp/)

There was someone with a very similar question on this forum just a
few days ago (I can't find the post anymore, maybe you'll find it). I
think the solution may have had something to do with the context root
of the application (?!)

What I would do is try to access the servlet directly from the browser
(yes, it will tell you, that the GET method isn't supported, but
you'll see, if the URL is correct)

hth
Chris

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



Re: serving my app in production

2010-03-10 Thread Chris Lercher
Sorry, I posted in the wrong topic...

On Mar 10, 4:24 pm, Chris Lercher cl_for_mail...@gmx.net wrote:
 I think he isn't doing cross domain calls (the redirect is just 
 fromhttp://mydomain/tohttp://mydomain/MyApp/)

 There was someone with a very similar question on this forum just a
 few days ago (I can't find the post anymore, maybe you'll find it). I
 think the solution may have had something to do with the context root
 of the application (?!)

 What I would do is try to access the servlet directly from the browser
 (yes, it will tell you, that the GET method isn't supported, but
 you'll see, if the URL is correct)

 hth
 Chris

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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread rudolf michael
hey Chris,
You missed out the port 8080.
apparently he is using apache on port 80 and tomcat on port 8080.
http://mydomain:8080 is not the same as http://mydomain. those are 2
different domains.

On Wed, Mar 10, 2010 at 5:25 PM, Chris Lercher cl_for_mail...@gmx.netwrote:

 I think he isn't doing cross domain calls (the redirect is just from
 http://mydomain/ to http://mydomain/MyApp/)

 There was someone with a very similar question on this forum just a
 few days ago (I can't find the post anymore, maybe you'll find it). I
 think the solution may have had something to do with the context root
 of the application (?!)

 What I would do is try to access the servlet directly from the browser
 (yes, it will tell you, that the GET method isn't supported, but
 you'll see, if the URL is correct)

 hth
 Chris

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



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



Re: DialogBox size

2010-03-10 Thread Paul Stockley
Forgot to mention, make sure in your main application css file there
isn't an entry like

.gwt-DialogBox {
  width: 350px;
}

If there is, remove it.

On Mar 10, 10:21 am, Paul Stockley pstockl...@gmail.com wrote:
 Set width and height don't work. I submitted a bug report that has
 been accepted. The only reliable way to do it currently is to set the
 width and height of the first container widget you add to the dialog.

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



Re: Intercepting all gwt rpc calls on gwt (browser) side.

2010-03-10 Thread mariyan nenchev
Yes just use import javax.servlet.Filter;

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



beta eclipse plugin - running in noserver mode with tomcat - having troubles

2010-03-10 Thread bkbonner
Keith,

I'm trying to run our app using the eclipse beta plugin.   I'm not
sure if I have things configured correctly.

The tree for our app is like:

src\main\java\com\test\gwt\App.gwt.xml
src\main\java\com\test\gwt\client\Application.java
...
src\main\webapp\
src\main\webapp\WEB-INF
src\main\webapp\WEB-INF\classes
src\main\webapp\WEB-INF\lib
...
src\test\java\


The setup for the google web toolkit is:

Web Application
  X This project has a WAR directory  (checked)
 WAR Directory:  src/main/webapp
 [ ] Launch and deploy from this directory  (unchecked)  I've
tried it checked as well

Web Toolkit
   GWT 2.0.3


In the Debug Configuration:

Main
 Project
 testproject
 Main class
 com.google.gwt.dev.DevMode
Server
 [  ] Run built-in server  (unchecked)

GWT  (defaults)
 Available Modules
  Application - com.test.gwt

Arguments
Program Arguments
 -war C:\work\workspace\testproject\src\main\webapp -remoteUI $
{gwt_remote_ui_server_port}:${unique_id} -logLevel INFO -noserver -
startupUrl http://localhost:8080/testproject/index.html
com.test.gwt.Application


When I set a breakpoint in my client code... it doesn't recognize that
the code is loaded.  I get this in the error console:

Exception in thread Code server for Application from Mozilla/5.0
(Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/
3.5.8 on http://localhost:8080/testproject/index.html?gwt.codesvr=localhost:9997
@ ;bm'fwKmW~\.LHz1 java.lang.RuntimeException:
java.util.concurrent.ExecutionException:
com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
java.lang.NullPointerException
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponse(ViewerServiceClient.java:
309)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.createLogger(ViewerServiceClient.java:
268)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.addModuleLog(ViewerServiceClient.java:
167)
at
com.google.gwt.dev.shell.remoteui.RemoteUI.getModuleLogger(RemoteUI.java:
75)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleLogger(DevModeBase.java:85)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
173)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.util.concurrent.ExecutionException:
com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
java.lang.NullPointerException
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
at java.util.concurrent.FutureTask.get(FutureTask.java:80)
at
com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponse(ViewerServiceClient.java:
307)
... 8 more
Caused by: com.google.gwt.dev.shell.remoteui.MessageTransport
$RequestException: java.lang.NullPointerException
at
com.google.gwt.dev.shell.remoteui.MessageTransport.processFailure(MessageTransport.java:
371)
at
com.google.gwt.dev.shell.remoteui.MessageTransport.processMessage(MessageTransport.java:
389)
at com.google.gwt.dev.shell.remoteui.MessageTransport.access
$400(MessageTransport.java:45)
at com.google.gwt.dev.shell.remoteui.MessageTransport
$2.run(MessageTransport.java:309)
... 1 more

I'm not sure what I'm missing here.

Also, what does this parameter (-remoteUI ${gwt_remote_ui_server_port}:
${unique_id})  do?

Brian



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



Re: GWT + URL Rewriting (Apache)

2010-03-10 Thread Chris Lercher
Hey Rudolf,

well, I don't think so! As long as he isn't redirecting from http://mydomain
to http://mydomain:8080 (and according to his description, he
doesn't), everything is fine. He's using jk to mount the tomcat dir
internally, but that's ok.

Chris

On Mar 10, 4:30 pm, rudolf michael roud...@gmail.com wrote:
 hey Chris,
 You missed out the port 8080.
 apparently he is using apache on port 80 and tomcat on port 
 8080.http://mydomain:8080is not the same ashttp://mydomain. those are 2
 different domains.

 On Wed, Mar 10, 2010 at 5:25 PM, Chris Lercher cl_for_mail...@gmx.netwrote:



  I think he isn't doing cross domain calls (the redirect is just from
 http://mydomain/tohttp://mydomain/MyApp/)

  There was someone with a very similar question on this forum just a
  few days ago (I can't find the post anymore, maybe you'll find it). I
  think the solution may have had something to do with the context root
  of the application (?!)

  What I would do is try to access the servlet directly from the browser
  (yes, it will tell you, that the GET method isn't supported, but
  you'll see, if the URL is correct)

  hth
  Chris

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

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



Re: UiHandler ignores/loses first click/key-press

2010-03-10 Thread Michael
FWIW this seems to happen using GWT 2.0.1 in DevMode - but works
properly once deployed and served normally.

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



Re: Servlet Mapping Noob Question

2010-03-10 Thread Ed
Can some at least tell me what to search for...
I know this has happened to others but cant seem to get any answers.

Thanks in advance.

On Wed, Mar 10, 2010 at 9:51 AM, Ed ej19...@gmail.com wrote:

 Hi Everyone,

 I hope I am able to get an answer to this.

 I am trying to tie a backend servlet process to a GWT servlet.

 How do I map this to work properly

 I am using Jetty 6
 GWT 2.01
 Eclipse Ganymeade





 Here is the code

 
 package com.co.SSIS.server;



 import com.co.SSISSERVER.users.User;
 import com.co.SSISSERVER.users.UserService;
 import com.co.SSISSERVER.users.UserServiceImpl;
 import com.co.SSIS.client.LoginInfo;
 import com.co.SSIS.client.LoginService;

 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @RemoteServiceRelativePath(/ssisajaxserver/User)
 public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

  public LoginInfo login(String loginURL) {
UserService userService = UserServiceImpl.getUserService();


User user  = userService.getCurrentUser();
LoginInfo loginInfo = new LoginInfo();

if (user != null) {
  loginInfo.setLoggedIn(true);
  loginInfo.setUserName(user.getUserName());
  loginInfo.setAuthority(user.getAuthority());
  loginInfo.setBuilding(user.getBuilding());
  loginInfo.setTeacher(user.getTeacher());

} else {
  loginInfo.setLoggedIn(false);

}
return loginInfo;
  }

 }


 Here is the web.xml for the backend

 =
 web-app
  display-nameSSISJAXSERVER/display-name
  descriptionSSIS Version 6 Web Appliction/description

 !-- Servlets SSIS Processing --
 servlet
   servlet-nameSSISAJAXSERVER/servlet-name
   servlet-classcom.co.SSISSERVER.server.SSISProducer/servlet-
 class
 /servlet

 servlet
   servlet-nameUserServiceImpl/servlet-name
   servlet-classcom.co.SSISSERVER.users.UserServiceImpl/servlet-
 class
 /servlet

 !-- SSISProducer for SSIS Processing --


 servlet-mapping
servlet-nameSSISAJAXSERVER/servlet-name
url-pattern/login.html/url-pattern
  /servlet-mapping
 servlet-mapping
servlet-nameUserServiceImpl/servlet-name
url-pattern/User/url-pattern
 /servlet-mapping



 Here is the servlet path

 
 /ssisajaxserver/User


 Here the servlet path is answering to a get which of course does not
 work

 ===

 HTTP ERROR: 405

 HTTP method GET is not supported by this URL
 RequestURI=/ssisajaxserver/User

 Here is gwt.xml

 
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='ssisajax'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.co.SSIS.client.SSISAJAX'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/
 UserServiceImpl'/

 /module



 Here is the Stack Trace

 
 2010-03-10 09:35:17.026:/ssisajax:WARN:  Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract com.co.SSIS.client.LoginInfo
 com.co.SSIS.client.LoginService.login(java.lang.String)' threw an
 unexpected exception: java.lang.NoClassDefFoundError: com/co/
 SSISSERVER/users/UserServiceImpl
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 581)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 188)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 224)
at

 com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
 62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:
 727)
at 

Re: How to correct IE font size problem?

2010-03-10 Thread jaga
Hi,

I solved this by setting the XML Doc Type to Standards mode. GWT sets
this to quirks mode by default. A quick fix but may have far reaching
consequences to how your app's look and feel. Look in your
application's HTML file and set this at the top.

Cheers,

Jaga

On Mar 4, 8:57 pm, Sorinel C scristescu...@hotmail.com wrote:
 Are you sure isn't it the IE8 option Page ~ Zoom set to 150% instead
 100% ?

 Cheers!

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



Re: Servlet Mapping Noob Question

2010-03-10 Thread Víctor Llorens Vilella
I don't know now what the problem is,

but you should start googling for GWT 405, and you will surelly have the
solution within the first set of links.

Greetings,

On 10 March 2010 17:12, Ed ej19...@gmail.com wrote:

 Can some at least tell me what to search for...
 I know this has happened to others but cant seem to get any answers.

 Thanks in advance.


 On Wed, Mar 10, 2010 at 9:51 AM, Ed ej19...@gmail.com wrote:

 Hi Everyone,

 I hope I am able to get an answer to this.

 I am trying to tie a backend servlet process to a GWT servlet.

 How do I map this to work properly

 I am using Jetty 6
 GWT 2.01
 Eclipse Ganymeade





 Here is the code

 
 package com.co.SSIS.server;



 import com.co.SSISSERVER.users.User;
 import com.co.SSISSERVER.users.UserService;
 import com.co.SSISSERVER.users.UserServiceImpl;
 import com.co.SSIS.client.LoginInfo;
 import com.co.SSIS.client.LoginService;

 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @RemoteServiceRelativePath(/ssisajaxserver/User)
 public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

  public LoginInfo login(String loginURL) {
UserService userService = UserServiceImpl.getUserService();


User user  = userService.getCurrentUser();
LoginInfo loginInfo = new LoginInfo();

if (user != null) {
  loginInfo.setLoggedIn(true);
  loginInfo.setUserName(user.getUserName());
  loginInfo.setAuthority(user.getAuthority());
  loginInfo.setBuilding(user.getBuilding());
  loginInfo.setTeacher(user.getTeacher());

} else {
  loginInfo.setLoggedIn(false);

}
return loginInfo;
  }

 }


 Here is the web.xml for the backend

 =
 web-app
  display-nameSSISJAXSERVER/display-name
  descriptionSSIS Version 6 Web Appliction/description

 !-- Servlets SSIS Processing --
 servlet
   servlet-nameSSISAJAXSERVER/servlet-name
   servlet-classcom.co.SSISSERVER.server.SSISProducer/servlet-
 class
 /servlet

 servlet
   servlet-nameUserServiceImpl/servlet-name
   servlet-classcom.co.SSISSERVER.users.UserServiceImpl/servlet-
 class
 /servlet

 !-- SSISProducer for SSIS Processing --


 servlet-mapping
servlet-nameSSISAJAXSERVER/servlet-name
url-pattern/login.html/url-pattern
  /servlet-mapping
 servlet-mapping
servlet-nameUserServiceImpl/servlet-name
url-pattern/User/url-pattern
 /servlet-mapping



 Here is the servlet path

 
 /ssisajaxserver/User


 Here the servlet path is answering to a get which of course does not
 work

 ===

 HTTP ERROR: 405

 HTTP method GET is not supported by this URL
 RequestURI=/ssisajaxserver/User

 Here is gwt.xml

 
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='ssisajax'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.co.SSIS.client.SSISAJAX'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/
 UserServiceImpl'/

 /module



 Here is the Stack Trace

 
 2010-03-10 09:35:17.026:/ssisajax:WARN:  Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract com.co.SSIS.client.LoginInfo
 com.co.SSIS.client.LoginService.login(java.lang.String)' threw an
 unexpected exception: java.lang.NoClassDefFoundError: com/co/
 SSISSERVER/users/UserServiceImpl
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
at
 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
 581)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
 188)
at

 com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
 224)
  

Re: Servlet Mapping Noob Question

2010-03-10 Thread Ed
Thanks,  I was using that as an example to show that the service is
answering.  It is doing what is expected because it is a rpc service.

Any other ideas,  Perhaps it is not possible to this with separate source
code trees.

e

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

 I don't know now what the problem is,

 but you should start googling for GWT 405, and you will surelly have the
 solution within the first set of links.

 Greetings,

 On 10 March 2010 17:12, Ed ej19...@gmail.com wrote:

 Can some at least tell me what to search for...
 I know this has happened to others but cant seem to get any answers.

 Thanks in advance.


 On Wed, Mar 10, 2010 at 9:51 AM, Ed ej19...@gmail.com wrote:

 Hi Everyone,

 I hope I am able to get an answer to this.

 I am trying to tie a backend servlet process to a GWT servlet.

 How do I map this to work properly

 I am using Jetty 6
 GWT 2.01
 Eclipse Ganymeade





 Here is the code

 
 package com.co.SSIS.server;



 import com.co.SSISSERVER.users.User;
 import com.co.SSISSERVER.users.UserService;
 import com.co.SSISSERVER.users.UserServiceImpl;
 import com.co.SSIS.client.LoginInfo;
 import com.co.SSIS.client.LoginService;

 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @RemoteServiceRelativePath(/ssisajaxserver/User)
 public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

  public LoginInfo login(String loginURL) {
UserService userService = UserServiceImpl.getUserService();


User user  = userService.getCurrentUser();
LoginInfo loginInfo = new LoginInfo();

if (user != null) {
  loginInfo.setLoggedIn(true);
  loginInfo.setUserName(user.getUserName());
  loginInfo.setAuthority(user.getAuthority());
  loginInfo.setBuilding(user.getBuilding());
  loginInfo.setTeacher(user.getTeacher());

} else {
  loginInfo.setLoggedIn(false);

}
return loginInfo;
  }

 }


 Here is the web.xml for the backend

 =
 web-app
  display-nameSSISJAXSERVER/display-name
  descriptionSSIS Version 6 Web Appliction/description

 !-- Servlets SSIS Processing --
 servlet
   servlet-nameSSISAJAXSERVER/servlet-name
   servlet-classcom.co.SSISSERVER.server.SSISProducer/servlet-
 class
 /servlet

 servlet
   servlet-nameUserServiceImpl/servlet-name
   servlet-classcom.co.SSISSERVER.users.UserServiceImpl/servlet-
 class
 /servlet

 !-- SSISProducer for SSIS Processing --


 servlet-mapping
servlet-nameSSISAJAXSERVER/servlet-name
url-pattern/login.html/url-pattern
  /servlet-mapping
 servlet-mapping
servlet-nameUserServiceImpl/servlet-name
url-pattern/User/url-pattern
 /servlet-mapping



 Here is the servlet path

 
 /ssisajaxserver/User


 Here the servlet path is answering to a get which of course does not
 work

 ===

 HTTP ERROR: 405

 HTTP method GET is not supported by this URL
 RequestURI=/ssisajaxserver/User

 Here is gwt.xml

 
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='ssisajax'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.co.SSIS.client.SSISAJAX'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/
 UserServiceImpl'/

 /module



 Here is the Stack Trace

 
 2010-03-10 09:35:17.026:/ssisajax:WARN:  Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract com.co.SSIS.client.LoginInfo
 com.co.SSIS.client.LoginService.login(java.lang.String)' threw an
 unexpected exception: java.lang.NoClassDefFoundError: com/co/
 SSISSERVER/users/UserServiceImpl
at
 com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
 378)
at
 

Re: Servlet Mapping Noob Question

2010-03-10 Thread olivier nouguier
java.lang.NoClassDefFoundError: com/co/
SSISSERVER/users/UserServiceImpl

On Wed, Mar 10, 2010 at 5:34 PM, Ed ej19...@gmail.com wrote:

 Thanks,  I was using that as an example to show that the service is
 answering.  It is doing what is expected because it is a rpc service.

 Any other ideas,  Perhaps it is not possible to this with separate source
 code trees.

 e

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

 I don't know now what the problem is,

 but you should start googling for GWT 405, and you will surelly have the
 solution within the first set of links.

 Greetings,

 On 10 March 2010 17:12, Ed ej19...@gmail.com wrote:

 Can some at least tell me what to search for...
 I know this has happened to others but cant seem to get any answers.

 Thanks in advance.


 On Wed, Mar 10, 2010 at 9:51 AM, Ed ej19...@gmail.com wrote:

 Hi Everyone,

 I hope I am able to get an answer to this.

 I am trying to tie a backend servlet process to a GWT servlet.

 How do I map this to work properly

 I am using Jetty 6
 GWT 2.01
 Eclipse Ganymeade





 Here is the code

 
 package com.co.SSIS.server;



 import com.co.SSISSERVER.users.User;
 import com.co.SSISSERVER.users.UserService;
 import com.co.SSISSERVER.users.UserServiceImpl;
 import com.co.SSIS.client.LoginInfo;
 import com.co.SSIS.client.LoginService;

 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @RemoteServiceRelativePath(/ssisajaxserver/User)
 public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

  public LoginInfo login(String loginURL) {
UserService userService = UserServiceImpl.getUserService();


User user  = userService.getCurrentUser();
LoginInfo loginInfo = new LoginInfo();

if (user != null) {
  loginInfo.setLoggedIn(true);
  loginInfo.setUserName(user.getUserName());
  loginInfo.setAuthority(user.getAuthority());
  loginInfo.setBuilding(user.getBuilding());
  loginInfo.setTeacher(user.getTeacher());

} else {
  loginInfo.setLoggedIn(false);

}
return loginInfo;
  }

 }


 Here is the web.xml for the backend

 =
 web-app
  display-nameSSISJAXSERVER/display-name
  descriptionSSIS Version 6 Web Appliction/description

 !-- Servlets SSIS Processing --
 servlet
   servlet-nameSSISAJAXSERVER/servlet-name
   servlet-classcom.co.SSISSERVER.server.SSISProducer/servlet-
 class
 /servlet

 servlet
   servlet-nameUserServiceImpl/servlet-name
   servlet-classcom.co.SSISSERVER.users.UserServiceImpl/servlet-
 class
 /servlet

 !-- SSISProducer for SSIS Processing --


 servlet-mapping
servlet-nameSSISAJAXSERVER/servlet-name
url-pattern/login.html/url-pattern
  /servlet-mapping
 servlet-mapping
servlet-nameUserServiceImpl/servlet-name
url-pattern/User/url-pattern
 /servlet-mapping



 Here is the servlet path

 
 /ssisajaxserver/User


 Here the servlet path is answering to a get which of course does not
 work

 ===

 HTTP ERROR: 405

 HTTP method GET is not supported by this URL
 RequestURI=/ssisajaxserver/User

 Here is gwt.xml

 
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='ssisajax'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.co.SSIS.client.SSISAJAX'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/
 UserServiceImpl'/

 /module



 Here is the Stack Trace

 
 2010-03-10 09:35:17.026:/ssisajax:WARN:  Exception while dispatching
 incoming RPC call
 com.google.gwt.user.server.rpc.UnexpectedException: Service method
 'public abstract com.co.SSIS.client.LoginInfo
 com.co.SSIS.client.LoginService.login(java.lang.String)' threw an
 unexpected exception: java.lang.NoClassDefFoundError: com/co/

Re: beta eclipse plugin - running in noserver mode with tomcat - having troubles

2010-03-10 Thread bkbonner
OK, it looks like the -noserver doesn't get injected into the debug
configuration based on any of the GWT Toolkit settings.   I don't have
it working yet, but I've tried:

-remoteUI ${gwt_remote_ui_server_port}:${unique_id} -startupUrl
http://localhost:8080:/testproject/loganalyzer.html -logLevel INFO -
noserver -war C:\work\workspace-galileo\testproject\src\main\webapp
com.test.gwt.Application

I get:

11:38:22.194 [ERROR] [Application] Failed to load module 'Application'
from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.9.1.8) Gecko/20100202 Firefox/3.5.8' at localhost:4767
java.lang.NoSuchFieldError:
reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
at
com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
310)
at com.google.gwt.dev.javac.JdtCompiler
$CompilerImpl.init(JdtCompiler.java:148)
at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
466)
at com.google.gwt.dev.javac.CompilationStateBuilder
$CompileMoreLater.compile(CompilationStateBuilder.java:142)
at
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
281)
at
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
182)
at
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
280)
at com.google.gwt.dev.DevModeBase
$UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
180)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:595)

It would be nice to have an option to use existing server (which would
inject the -noserver option)

Also, the performance of the DebugConfiguration screen while I'm
typing is really slow... I suspect there is parsing going on?   I saw
that you have to click apply before running debug, but is there
anything else?

Any suggestions would be appreciated.







On Mar 10, 10:49 am, bkbonner brian.bon...@paraware.com wrote:
 Keith,

 I'm trying to run our app using the eclipse beta plugin.   I'm not
 sure if I have things configured correctly.

 The tree for our app is like:

 src\main\java\com\test\gwt\App.gwt.xml
 src\main\java\com\test\gwt\client\Application.java
 ...
 src\main\webapp\
 src\main\webapp\WEB-INF
 src\main\webapp\WEB-INF\classes
 src\main\webapp\WEB-INF\lib
 ...
 src\test\java\

 The setup for the google web toolkit is:

 Web Application
   X This project has a WAR directory  (checked)
      WAR Directory:  src/main/webapp
      [ ] Launch and deploy from this directory  (unchecked)  I've
 tried it checked as well

 Web Toolkit
    GWT 2.0.3

 In the Debug Configuration:

 Main
      Project
          testproject
      Main class
          com.google.gwt.dev.DevMode
 Server
      [  ] Run built-in server  (unchecked)

 GWT  (defaults)
      Available Modules
           Application - com.test.gwt

 Arguments
     Program Arguments
          -war C:\work\workspace\testproject\src\main\webapp -remoteUI $
 {gwt_remote_ui_server_port}:${unique_id} -logLevel INFO -noserver -
 startupUrlhttp://localhost:8080/testproject/index.html
 com.test.gwt.Application

 When I set a breakpoint in my client code... it doesn't recognize that
 the code is loaded.  I get this in the error console:

 Exception in thread Code server for Application from Mozilla/5.0
 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/
 3.5.8 
 onhttp://localhost:8080/testproject/index.html?gwt.codesvr=localhost:9997
 @ ;bm'fwKmW~\.LHz1 java.lang.RuntimeException:
 java.util.concurrent.ExecutionException:
 com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
 java.lang.NullPointerException
         at
 com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponse(ViewerServiceClient.java:
 309)
         at
 com.google.gwt.dev.shell.remoteui.ViewerServiceClient.createLogger(ViewerServiceClient.java:
 268)
         at
 com.google.gwt.dev.shell.remoteui.ViewerServiceClient.addModuleLog(ViewerServiceClient.java:
 167)
         at
 com.google.gwt.dev.shell.remoteui.RemoteUI.getModuleLogger(RemoteUI.java:
 75)
         at com.google.gwt.dev.DevModeBase
 $UiBrowserWidgetHostImpl.createModuleLogger(DevModeBase.java:85)
         at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 173)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 380)
         at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 222)
         at java.lang.Thread.run(Thread.java:595)
 Caused by: java.util.concurrent.ExecutionException:
 com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
 java.lang.NullPointerException
         at 

UiBinder with background-image and ImageResource

2010-03-10 Thread Michael
Hi there,

I'm having a go at using the declarative layout and was wondering if
there's a way of using an image declared in a ClientBundle as a
background-image in the ui:style section, thus:

ui:UiBinder
  xmlns:ui=urn:ui:com.google.gwt.uibinder
  xmlns:g=urn:import:com.google.gwt.user.client.ui
ui:with field=res type=com.mycompany.MyClientBundle/

ui:style
.banner {
background-image:url('res.menuBackground');
}
/ui:style
/ui:UiBinder

If not, how are you supposed to do that?

Cheers

Mike

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



Re: unable to display a pound sign

2010-03-10 Thread Paul Robinson
Try reading this:
http://www.joelonsoftware.com/articles/Unicode.html

You're probably not declaring the encoding, or you've declared an
encoding that doesn't do what you want.

HTH
Paul

smiffy wrote:
 Any bright ideas why my GWT app is unable to display the pound sign (U
 +00A3) ?

 I am using the standard style sheet which I think means my
 ToggleButton should use Arial Unicode MS, but in all browsers I have
 tried the text on the button appears as the 'Replacement Character' (U
 +FFFD - black diamond containing a question mark).

 The pound sign is a perfectly legitimate character in Arial - why
 doesn't it display ? Am I being dim here ?

 Thanks in advance.

   

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



Re: How to correct IE font size problem?

2010-03-10 Thread Thad
I was having font and other alignment issues until--on advice from
someone here--I switched to strict mode:

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/
TR/html4/strict.dtd

This has been very helpful, and I've not noticed any problems with it.

You might also see http://hsivonen.iki.fi/doctype/ for a discssion of
browser modes and doctype.

On Mar 10, 11:17 am, jaga j.annes...@gmail.com wrote:
 Hi,

 I solved this by setting the XML Doc Type to Standards mode. GWT sets
 this to quirks mode by default. A quick fix but may have far reaching
 consequences to how your app's look and feel. Look in your
 application's HTML file and set this at the top.

 Cheers,

 Jaga

 On Mar 4, 8:57 pm, Sorinel C scristescu...@hotmail.com wrote:

  Are you sure isn't it the IE8 option Page ~ Zoom set to 150% instead
  100% ?

  Cheers!

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



Re: Servlet Mapping Noob Question

2010-03-10 Thread Ed
This query returned alot of hits.  Dont think it is relevant to this
question directly.  It is the result of a bad setup somewhere or some
missing code or missing understanding on my part.

Ed

On Wed, Mar 10, 2010 at 11:38 AM, olivier nouguier 
olivier.nougu...@gmail.com wrote:

 java.lang.NoClassDefFoundError: com/co/
 SSISSERVER/users/UserServiceImpl

 On Wed, Mar 10, 2010 at 5:34 PM, Ed ej19...@gmail.com wrote:

 Thanks,  I was using that as an example to show that the service is
 answering.  It is doing what is expected because it is a rpc service.

 Any other ideas,  Perhaps it is not possible to this with separate source
 code trees.

 e

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

 I don't know now what the problem is,

 but you should start googling for GWT 405, and you will surelly have the
 solution within the first set of links.

 Greetings,

 On 10 March 2010 17:12, Ed ej19...@gmail.com wrote:

 Can some at least tell me what to search for...
 I know this has happened to others but cant seem to get any answers.

 Thanks in advance.


 On Wed, Mar 10, 2010 at 9:51 AM, Ed ej19...@gmail.com wrote:

 Hi Everyone,

 I hope I am able to get an answer to this.

 I am trying to tie a backend servlet process to a GWT servlet.

 How do I map this to work properly

 I am using Jetty 6
 GWT 2.01
 Eclipse Ganymeade





 Here is the code

 
 package com.co.SSIS.server;



 import com.co.SSISSERVER.users.User;
 import com.co.SSISSERVER.users.UserService;
 import com.co.SSISSERVER.users.UserServiceImpl;
 import com.co.SSIS.client.LoginInfo;
 import com.co.SSIS.client.LoginService;

 import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
 import com.google.gwt.user.server.rpc.RemoteServiceServlet;

 @RemoteServiceRelativePath(/ssisajaxserver/User)
 public class LoginServiceImpl extends RemoteServiceServlet implements
LoginService {

  public LoginInfo login(String loginURL) {
UserService userService = UserServiceImpl.getUserService();


User user  = userService.getCurrentUser();
LoginInfo loginInfo = new LoginInfo();

if (user != null) {
  loginInfo.setLoggedIn(true);
  loginInfo.setUserName(user.getUserName());
  loginInfo.setAuthority(user.getAuthority());
  loginInfo.setBuilding(user.getBuilding());
  loginInfo.setTeacher(user.getTeacher());

} else {
  loginInfo.setLoggedIn(false);

}
return loginInfo;
  }

 }


 Here is the web.xml for the backend

 =
 web-app
  display-nameSSISJAXSERVER/display-name
  descriptionSSIS Version 6 Web Appliction/description

 !-- Servlets SSIS Processing --
 servlet
   servlet-nameSSISAJAXSERVER/servlet-name
   servlet-classcom.co.SSISSERVER.server.SSISProducer/servlet-
 class
 /servlet

 servlet
   servlet-nameUserServiceImpl/servlet-name
   servlet-classcom.co.SSISSERVER.users.UserServiceImpl/servlet-
 class
 /servlet

 !-- SSISProducer for SSIS Processing --


 servlet-mapping
servlet-nameSSISAJAXSERVER/servlet-name
url-pattern/login.html/url-pattern
  /servlet-mapping
 servlet-mapping
servlet-nameUserServiceImpl/servlet-name
url-pattern/User/url-pattern
 /servlet-mapping



 Here is the servlet path

 
 /ssisajaxserver/User


 Here the servlet path is answering to a get which of course does not
 work

 ===

 HTTP ERROR: 405

 HTTP method GET is not supported by this URL
 RequestURI=/ssisajaxserver/User

 Here is gwt.xml

 
 ?xml version=1.0 encoding=UTF-8?
 module rename-to='ssisajax'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --

  !-- Specify the app entry point class. --
  entry-point class='com.co.SSIS.client.SSISAJAX'/

  !-- Specify the paths for translatable code--
  source path='client'/
  source path='shared'/
  servlet path='/ssisserver/User' class='com.co.SSISSERVER/users/
 UserServiceImpl'/

 /module



 Here is the Stack Trace

 
 2010-03-10 09:35:17.026:/ssisajax:WARN:  

Re: beta eclipse plugin - running in noserver mode with tomcat - having troubles

2010-03-10 Thread bkbonner
I'm trying to futz with the classpath.  Based on this link:
http://www.google.com/url?sa=tsource=webct=rescd=3ved=0CBAQFjACurl=http%3A%2F%2Fosdir.com%2Fml%2FGoogle-Web-Toolkit%2F2009-11%2Fmsg01366.htmlei=YOKXS57fKMyztgfEr83kAQusg=AFQjCNGgNeNStK2IajqxWTdSYoEfJU47tgsig2=7INbMDSFfWNrcyKbyjoNaQ

Brian

On Mar 10, 11:39 am, bkbonner brian.bon...@paraware.com wrote:
 OK, it looks like the -noserver doesn't get injected into the debug
 configuration based on any of the GWT Toolkit settings.   I don't have
 it working yet, but I've tried:

 -remoteUI ${gwt_remote_ui_server_port}:${unique_id} 
 -startupUrlhttp://localhost:8080:/testproject/loganalyzer.html-logLevel INFO -
 noserver -war C:\work\workspace-galileo\testproject\src\main\webapp
 com.test.gwt.Application

 I get:

 11:38:22.194 [ERROR] [Application] Failed to load module 'Application'
 from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
 1.9.1.8) Gecko/20100202 Firefox/3.5.8' at localhost:4767
 java.lang.NoSuchFieldError:
 reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
     at
 com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
 310)
     at com.google.gwt.dev.javac.JdtCompiler
 $CompilerImpl.init(JdtCompiler.java:148)
     at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
 466)
     at com.google.gwt.dev.javac.CompilationStateBuilder
 $CompileMoreLater.compile(CompilationStateBuilder.java:142)
     at
 com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
 281)
     at
 com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
 182)
     at
 com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
 280)
     at com.google.gwt.dev.DevModeBase
 $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
     at
 com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
 180)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
 380)
     at
 com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
 222)
     at java.lang.Thread.run(Thread.java:595)

 It would be nice to have an option to use existing server (which would
 inject the -noserver option)

 Also, the performance of the DebugConfiguration screen while I'm
 typing is really slow... I suspect there is parsing going on?   I saw
 that you have to click apply before running debug, but is there
 anything else?

 Any suggestions would be appreciated.

 On Mar 10, 10:49 am, bkbonner brian.bon...@paraware.com wrote:

  Keith,

  I'm trying to run our app using the eclipse beta plugin.   I'm not
  sure if I have things configured correctly.

  The tree for our app is like:

  src\main\java\com\test\gwt\App.gwt.xml
  src\main\java\com\test\gwt\client\Application.java
  ...
  src\main\webapp\
  src\main\webapp\WEB-INF
  src\main\webapp\WEB-INF\classes
  src\main\webapp\WEB-INF\lib
  ...
  src\test\java\

  The setup for the google web toolkit is:

  Web Application
    X This project has a WAR directory  (checked)
       WAR Directory:  src/main/webapp
       [ ] Launch and deploy from this directory  (unchecked)  I've
  tried it checked as well

  Web Toolkit
     GWT 2.0.3

  In the Debug Configuration:

  Main
       Project
           testproject
       Main class
           com.google.gwt.dev.DevMode
  Server
       [  ] Run built-in server  (unchecked)

  GWT  (defaults)
       Available Modules
            Application - com.test.gwt

  Arguments
      Program Arguments
           -war C:\work\workspace\testproject\src\main\webapp -remoteUI $
  {gwt_remote_ui_server_port}:${unique_id} -logLevel INFO -noserver -
  startupUrlhttp://localhost:8080/testproject/index.html
  com.test.gwt.Application

  When I set a breakpoint in my client code... it doesn't recognize that
  the code is loaded.  I get this in the error console:

  Exception in thread Code server for Application from Mozilla/5.0
  (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/
  3.5.8 
  onhttp://localhost:8080/testproject/index.html?gwt.codesvr=localhost:9997
  @ ;bm'fwKmW~\.LHz1 java.lang.RuntimeException:
  java.util.concurrent.ExecutionException:
  com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
  java.lang.NullPointerException
          at
  com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponse(ViewerServiceClient.java:
  309)
          at
  com.google.gwt.dev.shell.remoteui.ViewerServiceClient.createLogger(ViewerServiceClient.java:
  268)
          at
  com.google.gwt.dev.shell.remoteui.ViewerServiceClient.addModuleLog(ViewerServiceClient.java:
  167)
          at
  com.google.gwt.dev.shell.remoteui.RemoteUI.getModuleLogger(RemoteUI.java:
  75)
          at com.google.gwt.dev.DevModeBase
  $UiBrowserWidgetHostImpl.createModuleLogger(DevModeBase.java:85)
          at
  

Re: beta eclipse plugin - running in noserver mode with tomcat - having troubles

2010-03-10 Thread bkbonner
Looks like moving GWT SDK 2.0.3 to the top of the Java Build Path
(Order and Export) did the trick.   That was frustrating -- any way of
giving a better message to devs about that?

Brian

On Mar 10, 1:18 pm, bkbonner brian.bon...@paraware.com wrote:
 I'm trying to futz with the classpath.  Based on this 
 link:http://www.google.com/url?sa=tsource=webct=rescd=3ved=0CBAQFjACu...

 Brian

 On Mar 10, 11:39 am, bkbonner brian.bon...@paraware.com wrote:

  OK, it looks like the -noserver doesn't get injected into the debug
  configuration based on any of the GWT Toolkit settings.   I don't have
  it working yet, but I've tried:

  -remoteUI ${gwt_remote_ui_server_port}:${unique_id} 
  -startupUrlhttp://localhost:8080:/testproject/loganalyzer.html-logLevelINFO 
  -
  noserver -war C:\work\workspace-galileo\testproject\src\main\webapp
  com.test.gwt.Application

  I get:

  11:38:22.194 [ERROR] [Application] Failed to load module 'Application'
  from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
  1.9.1.8) Gecko/20100202 Firefox/3.5.8' at localhost:4767
  java.lang.NoSuchFieldError:
  reportUnusedDeclaredThrownExceptionIncludeDocCommentReference
      at
  com.google.gwt.dev.javac.JdtCompiler.getCompilerOptions(JdtCompiler.java:
  310)
      at com.google.gwt.dev.javac.JdtCompiler
  $CompilerImpl.init(JdtCompiler.java:148)
      at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
  466)
      at com.google.gwt.dev.javac.CompilationStateBuilder
  $CompileMoreLater.compile(CompilationStateBuilder.java:142)
      at
  com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:
  281)
      at
  com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:
  182)
      at
  com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:
  280)
      at com.google.gwt.dev.DevModeBase
  $UiBrowserWidgetHostImpl.createModuleSpaceHost(DevModeBase.java:99)
      at
  com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
  180)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
  380)
      at
  com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
  222)
      at java.lang.Thread.run(Thread.java:595)

  It would be nice to have an option to use existing server (which would
  inject the -noserver option)

  Also, the performance of the DebugConfiguration screen while I'm
  typing is really slow... I suspect there is parsing going on?   I saw
  that you have to click apply before running debug, but is there
  anything else?

  Any suggestions would be appreciated.

  On Mar 10, 10:49 am, bkbonner brian.bon...@paraware.com wrote:

   Keith,

   I'm trying to run our app using the eclipse beta plugin.   I'm not
   sure if I have things configured correctly.

   The tree for our app is like:

   src\main\java\com\test\gwt\App.gwt.xml
   src\main\java\com\test\gwt\client\Application.java
   ...
   src\main\webapp\
   src\main\webapp\WEB-INF
   src\main\webapp\WEB-INF\classes
   src\main\webapp\WEB-INF\lib
   ...
   src\test\java\

   The setup for the google web toolkit is:

   Web Application
     X This project has a WAR directory  (checked)
        WAR Directory:  src/main/webapp
        [ ] Launch and deploy from this directory  (unchecked)  I've
   tried it checked as well

   Web Toolkit
      GWT 2.0.3

   In the Debug Configuration:

   Main
        Project
            testproject
        Main class
            com.google.gwt.dev.DevMode
   Server
        [  ] Run built-in server  (unchecked)

   GWT  (defaults)
        Available Modules
             Application - com.test.gwt

   Arguments
       Program Arguments
            -war C:\work\workspace\testproject\src\main\webapp -remoteUI $
   {gwt_remote_ui_server_port}:${unique_id} -logLevel INFO -noserver -
   startupUrlhttp://localhost:8080/testproject/index.html
   com.test.gwt.Application

   When I set a breakpoint in my client code... it doesn't recognize that
   the code is loaded.  I get this in the error console:

   Exception in thread Code server for Application from Mozilla/5.0
   (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.8) Gecko/20100202 Firefox/
   3.5.8 
   onhttp://localhost:8080/testproject/index.html?gwt.codesvr=localhost:9997
   @ ;bm'fwKmW~\.LHz1 java.lang.RuntimeException:
   java.util.concurrent.ExecutionException:
   com.google.gwt.dev.shell.remoteui.MessageTransport$RequestException:
   java.lang.NullPointerException
           at
   com.google.gwt.dev.shell.remoteui.ViewerServiceClient.waitForResponse(ViewerServiceClient.java:
   309)
           at
   com.google.gwt.dev.shell.remoteui.ViewerServiceClient.createLogger(ViewerServiceClient.java:
   268)
           at
   com.google.gwt.dev.shell.remoteui.ViewerServiceClient.addModuleLog(ViewerServiceClient.java:
   167)
           at
   

Re: beta eclipse plugin - running in noserver mode with tomcat - having troubles

2010-03-10 Thread bkbonner
Oh, this is painful.  Definitely passed the 15 min test.

13:25:15.450 [DEBUG] [Application] Rebinding
com.test.gwt.client.ActivityLogView.ActivityLogViewUiBinder
13:25:15.465 [DEBUG] [Application] Invoking
com.google.gwt.dev.javac.standardgeneratorcont...@9647d6
13:25:15.543 [ERROR] [Application] Unexpected text in ui:UiBinder
xmlns:g='urn:import:com.google.gwt.user.client.ui'
xmlns:ui='urn:ui:com.google.gwt.uibinder': gt;
13:25:15.590 [ERROR] [Application] Deferred binding failed for
'com.test.gwt.client.ActivityLogView.ActivityLogViewUiBinder'; expect
subsequent failures

13:25:15.747 [ERROR] [Application] Failed to create an instance of
'com.test.gwt.client.ActivityLogView' via deferred binding
java.lang.RuntimeException: Deferred binding failed for
'com.test.gwt.client.ActivityLogView$ActivityLogViewUiBinder' (did you
forget to inherit a required module?)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
com.test.gwt.client.ActivityLogView.clinit(ActivityLogView.java:19)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
580)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
415)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.test.gwt.client.Application.onModuleLoad(Application.java:
24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
541)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
414)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at
com.test.gwt.client.ActivityLogView.clinit(ActivityLogView.java:19)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
580)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
415)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.test.gwt.client.Application.onModuleLoad(Application.java:
24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:595)

13:25:15.809 [DEBUG] [Application] Rebinding
com.google.gwt.core.client.impl.SchedulerImpl
13:25:15.809 [WARN] [Application] For the following type(s), generated
source was never committed (did you forget to call commit()?)
13:25:15.840 [WARN] [Application]
com.test.gwt.client.ActivityLogView_ActivityLogViewUiBinderImpl

13:25:15.981 [ERROR] [Application] Unable to load module entry point
class com.test.gwt.client.Application (see associated exception for
details)
java.lang.RuntimeException: Deferred binding failed for
'com.test.gwt.client.ActivityLogView' (did you forget to inherit a
required module?)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.test.gwt.client.Application.onModuleLoad(Application.java:
24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at 

Re: beta eclipse plugin - running in noserver mode with tomcat - having troubles

2010-03-10 Thread bkbonner
Gosh darn it.  I must have hit an extra '' in the
ActivityLogView.ui.xml file.  criminy.

Sorry folks.  Still having trouble:

13:48:07.582 [ERROR] [Application] Failed to create an instance of
'com.test.gwt.client.ActivityLogView' via deferred binding
java.lang.VerifyError: (class: com/google/gwt/core/client/Scheduler,
method: init signature: ()V) Illegal constant pool index
at
com.google.gwt.dom.client.StyleInjector.schedule(StyleInjector.java:
389)
at
com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:382)
at
com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:222)
at
com.google.gwt.dom.client.StyleInjector.inject(StyleInjector.java:208)
at
com.test.gwt.client.com_test_gwt_client_ActivityLogView_ActivityLogViewUiBinderImpl_GenBundle_default_InlineClientBundleGenerator
$1.ensureInjected(com_test_gwt_client_ActivityLogView_ActivityLogViewUiBinderImpl_GenBundle_default_InlineClientBundleGenerator.java:
14)
at
com.test.gwt.client.ActivityLogView_ActivityLogViewUiBinderImpl.createAndBindUi(ActivityLogView_ActivityLogViewUiBinderImpl.java:
25)
at
com.test.gwt.client.ActivityLogView_ActivityLogViewUiBinderImpl.createAndBindUi(ActivityLogView_ActivityLogViewUiBinderImpl.java:
1)
at com.test.gwt.client.ActivityLogView.init(ActivityLogView.java:
28)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
422)
at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
at com.google.gwt.core.client.GWT.create(GWT.java:98)
at com.test.gwt.client.Application.onModuleLoad(Application.java:
24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
369)
at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java:
185)
at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:
380)
at
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:
222)
at java.lang.Thread.run(Thread.java:595)

It looks like it's similar to:  
http://code.google.com/p/google-web-toolkit/issues/detail?id=4254,
but I'm running 2.0.3.   I found that link here:
http://code.google.com/p/google-web-toolkit/wiki/TroubleshootingOOPHM

The eclipse plugin has one.  I'm beaten into submission.  Giving up
for now.

Brian

On Mar 10, 1:44 pm, bkbonner brian.bon...@paraware.com wrote:
 Oh, this is painful.  Definitely passed the 15 min test.

 13:25:15.450 [DEBUG] [Application] Rebinding
 com.test.gwt.client.ActivityLogView.ActivityLogViewUiBinder
 13:25:15.465 [DEBUG] [Application] Invoking
 com.google.gwt.dev.javac.standardgeneratorcont...@9647d6
 13:25:15.543 [ERROR] [Application] Unexpected text in ui:UiBinder
 xmlns:g='urn:import:com.google.gwt.user.client.ui'
 xmlns:ui='urn:ui:com.google.gwt.uibinder': gt;
 13:25:15.590 [ERROR] [Application] Deferred binding failed for
 'com.test.gwt.client.ActivityLogView.ActivityLogViewUiBinder'; expect
 subsequent failures

 13:25:15.747 [ERROR] [Application] Failed to create an instance of
 'com.test.gwt.client.ActivityLogView' via deferred binding
 java.lang.RuntimeException: Deferred binding failed for
 'com.test.gwt.client.ActivityLogView$ActivityLogViewUiBinder' (did you
 forget to inherit a required module?)
     at
 com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
     at com.google.gwt.core.client.GWT.create(GWT.java:98)
     at
 com.test.gwt.client.ActivityLogView.clinit(ActivityLogView.java:19)
     at java.lang.Class.forName0(Native Method)
     at java.lang.Class.forName(Class.java:242)
     at
 com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName(ModuleSpace.java:
 580)
     at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 415)
     at
 com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:39)
     at com.google.gwt.core.client.GWT.create(GWT.java:98)
     at com.test.gwt.client.Application.onModuleLoad(Application.java:
 24)
     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
     at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
 39)
     at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
 25)
     at java.lang.reflect.Method.invoke(Method.java:585)
     at 

Re: UiBinder with background-image and ImageResource

2010-03-10 Thread davidroe
this is how I did it.

in whatever.css:

@sprite .myClass {
  gwt-image: myImage;
  width: auto; height: auto;
  background-repeat: repeat;
  background-position: 0% 0%;
}

in Resources.java:

public interface Resources extends ClientBundle {

  ...

  public interface WhateverCss extends CssResource {
String myClass();
  }

  @Source(com/whoever/client/resources/whatever.css)
  public WhateverCss whateverCss();

}

in WhateverClass.ui.xml:

  ui:with field=res type=com.whoever.client.resources.Resources /


  div class={res.whateverCss.myClass}

HTH,
/dave

On Mar 10, 8:52 am, Michael michael.guy...@gmail.com wrote:
 Hi there,

 I'm having a go at using the declarative layout and was wondering if
 there's a way of using an image declared in a ClientBundle as a
 background-image in the ui:style section, thus:

 ui:UiBinder
   xmlns:ui=urn:ui:com.google.gwt.uibinder
   xmlns:g=urn:import:com.google.gwt.user.client.ui
         ui:with field=res type=com.mycompany.MyClientBundle/

         ui:style
                 .banner {
                         background-image:url('res.menuBackground');
                 }
         /ui:style
 /ui:UiBinder

 If not, how are you supposed to do that?

 Cheers

 Mike

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



junit tests in Eclipse - NoSuchMethodError: org.apache.catalina.startup.Embedded.setDebug

2010-03-10 Thread gcauchon
I'm developing a lightweight webapp prototype using eclipse. Dev-wise
everything work like a charm even if I need to deploy in JBoss instead
of the built-in server (jetty?). Somehow, as soon as I try to run the
simplest juint test on my model, it fails with the following error:

java.lang.NoSuchMethodError:
org.apache.catalina.startup.Embedded.setDebug(I)V
at
com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.init(EmbeddedTomcatServer.java:
212)
at
com.google.gwt.dev.shell.tomcat.EmbeddedTomcatServer.start(EmbeddedTomcatServer.java:
74)
at com.google.gwt.dev.GWTShell.doStartUpServer(GWTShell.java:201)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:1035)
at com.google.gwt.junit.JUnitShell.getUnitTestShell(JUnitShell.java:
660)
at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:541)
at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:
406)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:282)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at
org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:
83)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:
46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:
38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:
683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:
390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:
197)

My webapp is following the MVP pattern and I don't plan on using junit
to test the views, but I would like to test the model and presenter
classes, and the async procedures if possible...

Thanks

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



Debugging GWT and Servlet Using Eclipse and WebLogic

2010-03-10 Thread Anoop
Hi,
I am new to GWT, using it only from last 2 weeks.
I am using GWT 2.0.2 with Eclipse Galileo and the web server is
WebLogic.
After deploying the project in weblogic I try to debug it using
eclipse.
But the break points are only hit for servlet code and not for GWT
related code.
I tired different options given in various threads of this forum (like
specifying -noserver), but none of them worked.
How can I debug both GWT and Servlet using Weblogic as the appserver?

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



Access ejb from ServiceImpl

2010-03-10 Thread Drolyk
Hi All.

I have a question about accessing ejb from gwt services. If i do
mannual lookup like this:

try {
  Context ctx = new InitialContext();
  testEjb = (TestEjbLocal) ctx.lookup(Test/TestEjb/local);
  testEjb.test();
} catch(Exception e) {
e.printStackTrace();
}

 testEjb.test();

from service method everything works fine, but when im trying to do
similar things with annotations i have java.lang.NullPointerException
when trying to execute testEjb.test();

@EJB
private TestEjbLocal testEjb;

public String greetServer(String input) throws
IllegalArgumentException {
testEjb.test();
}

could anyone explain me whats from with last part of code ?

Thanks

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



GWT Bender - web based RAD tool to create GWT applications in a browser

2010-03-10 Thread PyraNinja
I developed GWT Bender in august, 2009 and used it with GWT projects I
am developing.
It was improved many times.

It is web based tool where you can add widgets to tree on left panel
and set widget properties (including css) on right panel.

GWT Bender produces Java and CSS file that is copied in eclipse
(manually or automatically)

Every widget is named automatically var1, var2, var3
(You can change widget name later)

I keep this names but I write longer descriptions instead.
Descriptions appear in tree on left panel in grey color.

I had small GWT project in summer but it had 3 save and many submit
buttons. It became mess of names.
I was drawing schemes on paper and then I decided that I can make web
application to design project structure.

It is also very hard to navigate files with more then 1000 lines.
When I worked with widget I had to find many places in source code
where widget was declared, initilized, css, etc

In GWT bender I have everything on the right panel.

Instead of names I see longer descriptions and location in tree.

http://gwt-bender.appspot.com/

Service is open and free for everyone. It is not idea but it good for
development.

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



Using Maven plugin with spring 3.x results in No source code is available for type ...; did you forget to inherit a required module? while compiling

2010-03-10 Thread Ludovic JEANSON
Hi all,

I'm realizing a webapp using Spring 3.x and GWT 2.0 with deployment
supported by Maven (I use Spring IOC and MVC).
The structure of my project is as follow:

- src
   -main
  -java
 -com.ecp.gwt
 -Weather.gwt.xml
 -com.ecp.gwt.client
 -WeatherClient.java
 -com.ecp.service
 -WeatherService.java
 -WeatherServiceAsync.java
 -com.ecp.service.impl
 -WeatherServiceImpl.java
 -webapp
 -WEB-INF
 -applicationContext.xml
 -myApp-servlet.xml
 -web.xml
 -war
 -pom.xml


My WeatherClient (the entry point) references classes
WeatherService*.java in order to make RPC calls
My pom.xml file configuration in short (skiping dependencies and other
stuffs):

properties
   gwt.version2.0.2/gwt.version
   maven.compiler.source1.6/maven.compiler.source
   maven.compiler.target1.6/maven.compiler.target
/properties

 build
   finalNamemyApp/finalName
   outputDirectorywar/WEB-INF/classes/outputDirectory
   plugins
  plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdgwt-maven-plugin/artifactId
   version1.2/version
   executions
   execution
   configuration
 servicePattern**/gwt/**/*Service.java/
servicePattern
   /configuration
   goals
   goalcompile/goal
   /goals
   /execution
   /executions
   configuration
 runTargetcom.ecp.gwt.Weather/Weather.html/runTarget
   /configuration
 /plugin

   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-compiler-plugin/artifactId
 version2.0.2/version
 configuration
   source${maven.compiler.source}/source
   target${maven.compiler.target}/target
   warSourceDirectorywar/warSourceDirectory
   webXmlsrc/main/webapp/WEB-INF/web.xml/webXml
 /configuration
   /plugin
   /plugins

   resources
 resource
directorysrc/main/java/directory
includes
   include**/client/**/include
   include**/*.gwt.xml/include
/includes
 /resource
  /resources
 /build

I have the following stacktrace while launching mvn clean install
that I couldn't fix the all day:

[INFO] Scanning for projects...
[INFO]

[INFO] Building myApp Webapp
[INFO]
[INFO] Id: com.ecp:myApp:war:0.0.1-SNAPSHOT
[INFO] task-segment: [clean, install]
[INFO]

[INFO] [clean:clean]
[INFO] Deleting directory /home/ludovic/workspace/myApp_0_0_1/target
[INFO] Deleting directory /home/ludovic/workspace/myApp_0_0_1/war/WEB-
INF/classes
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 110 source files to /home/ludovic/workspace/
myApp_0_0_1/war/WEB-INF/classes
[INFO] [gwt:compile]
[INFO] using GWT jars from project dependencies : 2.0.2
[INFO] auto discovered modules [com.ecp.gwt.Weather]
[INFO] establishing classpath list (scope = compile)
[INFO] Compiling module com.ecp.gwt.Weather
[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'file:/home/ludovic/workspace/
myApp_0_0_1/src/main/java/com/ecp/gwt/client/WeatherClient.java'
[INFO]  [ERROR] Line 44: No source code is available for type
com.ecp.manager.WeatherManagerAsync; did you forget to inherit a
required module?
[INFO]  [ERROR] Line 44: No source code is available for type
com.ecp.manager.impl.WeatherManagerImpl; did you forget to inherit a
required module?
[INFO]  [ERROR] Line 46: No source code is available for type
com.ecp.business.Weather; did you forget to inherit a required module?
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type
'com.ecp.gwt.client.WeatherClient'
[INFO]  [ERROR] Hint: Previous compiler errors may have made
this type unavailable
[INFO]  [ERROR] Hint: Check the inheritance chain from your
module; it may not be inheriting a required module or a module may not
be adding its source path entries properly
[ERROR]

I'm sure the error is in the pom.xml configuration but I could not
find it. Can anyone help me or forward me to a forum?

Thanks in advance.

Ludovic

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



access ejb from gwt ServiceImpl

2010-03-10 Thread Roman Makurin
Hi All!

Its my first post here :)


my system is: linux x86_64, eclipse 3.5, gpe 1.2, gwt-2.0.3, jboss 5.1

I have a ear project which include war and ejb parts in it. Web part based on
servlets, and im using constructions like 

public class MyServlet extends HttpServlet {
@EJB
private EJBLocal ejb;

protected void doGet(HttpServletRequest request, 
HttpServletResponse response) throws ServletException, 
IOException {
// some code
ejb.doSomething();
}
}

to access EJBs

right now i want to replace my servlet code with gwt based. Questions which
i cant solve:

* How can i deploy gwt projects to jboss server instead of builtin jetty ? 
* How can i include gwt project to ear project ?

All projects - web, ejb, ear i could easily deploy to jboss, but i cant do this 
for
gwt projects.

im in stuck for now, i cant find anything usefull in google.

Thanks

PS: sory for my english

-- 
If you think of MS-DOS as mono, and Windows as stereo,
 then Linux is Dolby Digital and all the music is free...


pgpu91EjzjaVo.pgp
Description: PGP signature


Communication between two browser windows

2010-03-10 Thread Anders
Hey,

I'm working on an app where the user clicks on a link in browser
window A in order to open a new browser window B. In browser window B
the user fills out a form and submits this to the server. The response
is either an application/octet-stream (a binary file generated on the
server) or just text/plain (an error message). Ideally I'd like the
response to be submitted to window A.

My question is therefor how one would implement this in GWT?

All the best,

Anders

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



GWT code server disconnected after 150+ tests

2010-03-10 Thread matthew
using GWT 2.0.3 and Eclipse 3.4.1 and JDK/JRE 1.6; GWT 2.0 worked
excellent for over 150+ successful tests, then started to receive GWT
code server disconnected. I setup Eclipse run configuration
Environment variable to gwt.codesvr=localhost:9997; still not
connecting.

then I started Debug  found GWT ModuleSpace.onLoad entryPoints.length
is  0; and then in the try/finally/catch, the catch throws msg=A
widget that has an existing parent widget may not be added to the
detach list, and eventually the msg=Unable to load module entry point
class org.test2.client.ddmsservice

I have RootPanel.add different panels to each of the ID tags in html
below:
table width=100% border=1 cellpadding=2 style=background-
color: white
tr
td id=header colspan=2/td
/tr
tr
td id=menu_frame rowspan=3nbsp;/td
td id=main_content_keynbsp;/td
/tr
tr
td id=main_contentnbsp;/td
/tr
tr
td id=footernbsp;/td
/tr
tr
td id=credits colspan=2nbsp;/td
/tr
/table

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



GWT JFreeChart: problems with DisplayChart and getting a chart image to show

2010-03-10 Thread David Leung
Hi, everyone.

I'm trying to use JFreeChart's DisplayChart servlet to serve me back
an image.  Right now, I'm not getting anything and no errors are being
thrown, and I'm wondering if anyone can help me with that.

This is my ChartImage class:

public class ChartImage extends Image {

[...]

callback = new AsyncCallback() {
/*
 * If the call was successful, we will get back the
name of the chart
 * that was created and stored on the server.
 */
public void onSuccess(Object s) {
String chartName = (String)s;
String imageUrl = ./displayJFreeChart?filename= + 
chartName;
setUrl(imageUrl);
new ErrorPopup(success: url =  + imageUrl).center();
}

ErrorPopup is just a trivial utility class that pops up a dialog box
for me.

Here is my .gwt.xml:

?xml version=1.0 encoding=UTF-8?
module rename-to='reporting_gwt'
  inherits name='com.google.gwt.user.User'/
  inherits name='com.google.gwt.user.theme.standard.Standard'/

  entry-point class='org.me.blahblahblah.gwt.client.Reporting_GWT'/

  source path='client'/
  source path='shared'/

  servlet path='/displayJFreeChart'
class='org.jfree.chart.servlet.DisplayChart'/
/module

Thanks in advance.

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



How to generate a module to a specific (sub)path?

2010-03-10 Thread Arny
Hi,

Is there a way to force GWT to generate the Javascript files to a sub
directory instead of root?
Tried rename-to=foo/bar, but seems like a bad idea.

Thanks
Arny

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



SerializationException for InvocationException

2010-03-10 Thread Angelika
Hi!

We have written a Client/Server application with GWT 2.0 which works
fine on most computers. But on one installation we get the following
error message when we try for example to load data into the server via
a form submit:

Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type
'com.google.gwt.user.client.rpc.InvocationException' was not included
in the set of types which can be serialized by this
SerializationPolicy or its Class object could not be loaded. For
security purposes, this type will not be serialized.: instance =
com.google.gwt.user.client.rpc.InvocationException: Fehler beim Laden
der Testdaten.
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:
610)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:
129)
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter
$ValueWriter$8.write(ServerSerializationStreamWriter.java:152)
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java:
534)

Does anyone have an idea why this error happens?

Thank you very much in advance,
Angelika

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



Re: New window like Gmail has now

2010-03-10 Thread 10wattmindtrip
I'm new to GWT also. I think that feature is an iframe. Though, I
could be wrong.

On Mar 9, 6:18 pm, Dan danpr...@gmail.com wrote:
 Gmail recently added the new fast new window functionality.

 See here if you are not familiar:

 http://gmailblog.blogspot.com/2010/03/fast-new-windows.html

 It doesn't seem that a script is being loaded from the server any
 more, it's so fast.

 Any way to do this in GWT? (I'm a newbie, have pity on 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Debugging GWT 2.0 Client-side and Server-side, using Eclipse/Tomcat 6.0

2010-03-10 Thread Jay
Hi All,

I am having troubles debugging my Client-side GWT code when running it
using my data server.

I develop my GWT front-end using Mock data, to simplify development
and reduce dependency on the server, but when bringing them together,
the data sent from the server doesn't always match the ideal cases -
and my debugging starts.

Unfortunately, I do not know how to debug both sides at once. I can
debug in a hosted-only mode, for the front-end (but it uses mock
data), or run in full server mode, using Tomcat, JPDA access and the
Eclipse debugging console.

Does anyone know how to bring both together?

Thanks for your help,

Jay

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



Re: GWT Bender - web based RAD tool to create GWT applications in a browser

2010-03-10 Thread Max
Right. Artem (PyraNinja) coded it but google moderation has not
accepted his post so I re-posted it.

On Mar 9, 9:54 pm, PyraNinja pyramid.ni...@gmail.com wrote:
 I developed GWT Bender in august, 2009 and used it with GWT projects I
 am developing.
 It was improved many times.

 It is web based tool where you can add widgets to tree on left panel
 and set widget properties (including css) on right panel.

 GWT Bender produces Java and CSS file that is copied in eclipse
 (manually or automatically)

 Every widget is named automatically var1, var2, var3
 (You can change widget name later)

 I keep this names but I write longer descriptions instead.
 Descriptions appear in tree on left panel in grey color.

 I had small GWT project in summer but it had 3 save and many submit
 buttons. It became mess of names.
 I was drawing schemes on paper and then I decided that I can make web
 application to design project structure.

 It is also very hard to navigate files with more then 1000 lines.
 When I worked with widget I had to find many places in source code
 where widget was declared, initilized, css, etc

 In GWT bender I have everything on the right panel.

 Instead of names I see longer descriptions and location in tree.

 http://gwt-bender.appspot.com/

 Service is open and free for everyone. It is not idea but it good for
 development.

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



Re: Access ejb from ServiceImpl

2010-03-10 Thread Chris Lercher
Hi,

1) Make sure you're using a JavaEE container that works with EJB =
3.0.
2) If you do, you may face the same problem I had some time ago: GWT
usually uses a Deployment Descriptor (web.xml) in version 2.3. This
basically disables the EJB 3.x functionality. Make sure to change your
Deployment Descriptor to a newer version:

Open your web.xml, remove the DTD declaration, and replace the opening
tag with this:

web-app xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns=http://java.sun.com/xml/ns/javaee; xmlns:web=http://
java.sun.com/xml/ns/javaee/web-app_2_5.xsd
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
id=WebApp_ID version=2.5

HTH
Chris

On Mar 10, 3:17 pm, Drolyk dro...@gmail.com wrote:
 Hi All.

 I have a question about accessing ejb from gwt services. If i do
 mannual lookup like this:

                 try {
                       Context ctx = new InitialContext();
                       testEjb = (TestEjbLocal) 
 ctx.lookup(Test/TestEjb/local);
                       testEjb.test();
                 } catch(Exception e) {
                         e.printStackTrace();
                 }

                  testEjb.test();

 from service method everything works fine, but when im trying to do
 similar things with annotations i have java.lang.NullPointerException
 when trying to execute testEjb.test();

         @EJB
         private TestEjbLocal testEjb;

         public String greetServer(String input) throws
 IllegalArgumentException {
                 testEjb.test();
         }

 could anyone explain me whats from with last part of code ?

 Thanks

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



Re: access ejb from gwt ServiceImpl

2010-03-10 Thread Chris Lercher
Hi,

just gwt-compile the GWT parts using gwtc (In Eclipse, use the red
GWT Compile Project icon. Or alternatively use the ant target gwtc
or war from the build.xml that webAppCreator created for you.)
You can basically treat the compiled result as if it were static HTML
content in a web project - which can then be included in an EAR as you
usually do with a web project. You can also just put it into a static
content directory of your server - it doesn't have to be in an EAR.

If you want to go a step further, and have everything automated for
you by Eclipse (including all server- and clientside auto-deployment
and debugging), then I'd like to point you to my somewhat complex step-
by-step instruction here:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/7ee077bd3084e745/b58b0c90f288198c
(shouldn't be too hard to adapt to JBoss)

HTH
Chris


On Mar 10, 10:06 am, Roman Makurin dro...@gmail.com wrote:
 Hi All!

 Its my first post here :)

 my system is: linux x86_64, eclipse 3.5, gpe 1.2, gwt-2.0.3, jboss 5.1

 I have a ear project which include war and ejb parts in it. Web part based on
 servlets, and im using constructions like

 public class MyServlet extends HttpServlet {
         @EJB
         private EJBLocal ejb;

         protected void doGet(HttpServletRequest request,
                 HttpServletResponse response) throws ServletException, 
 IOException {
                 // some code
                 ejb.doSomething();
         }

 }

 to access EJBs

 right now i want to replace my servlet code with gwt based. Questions which
 i cant solve:

 * How can i deploy gwt projects to jboss server instead of builtin jetty ?
 * How can i include gwt project to ear project ?

 All projects - web, ejb, ear i could easily deploy to jboss, but i cant do 
 this for
 gwt projects.

 im in stuck for now, i cant find anything usefull in google.

 Thanks

 PS: sory for my english

 --
 If you think of MS-DOS as mono, and Windows as stereo,
  then Linux is Dolby Digital and all the music is free...

  application_pgp-signature_part
  1KViewDownload

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



Re: Inconsistant Debug-mode URL Causing Considerable Grief

2010-03-10 Thread Chris Ramsdale
Comments in line below:


 For various reasons, my application has to generate URLs for pages/
 servlets/etc. in the same webapp (for things like images held in my
 database and served by a servlet). It's incredibly annoying that, when
 I'm debugging, I need to use a URL that looks like this:

 http://127.0.0.1:/Report.html?gwt.codesvr=127.0.0.1:9997#1

 and when I've deployed the application, the URL looks completely
 different:

 http://www.mysite.com/report/Report.html#1

 This difference makes it very difficult to debug my application
 without do a full deployment to the real server, and I *hate* to be
 forced to deploy code that cannot be tested locally, first.


You don't have to do that.


 I actually
 don't mind that the server name/port is different, though even that is
 annoying.


1. Build and deploy your app to a local app server (Tomcat works for me)

2. Edit your /etc/hosts file: 127.0.0.1 www.mysite.com

3. Port forward from 80 to 8080. This can be done with Apache or the
following ipfw rule:
sudo ipfw add 1000 fwd 127.0.0.1,8080 tcp from any to 127.0.0.1 80

4. Uncheck the Run built-in server under your Debug Configurations within
Eclipse. While you're there add the following Program arguments, under the
Arguments tab:
-startupUrl http://www.mysite.com/report/Report.html under the Arguments

You should now be able to debug with a URL that resembles:
http://www.mysite.com/report/Report.html?gwt.codesvr=127.0.0.1:9997


 The real problems are the ?gwt.conesvr argument and the

lack of the the servlet-context name (/report in the above example)
 in the debug-mode URL.


See my previous post below for information on how to detect and preserve the
codesvr param:
http://groups.google.com/group/google-web-toolkit/msg/e6d2814e79bc3a45
 http://groups.google.com/group/google-web-toolkit/msg/e6d2814e79bc3a45

 Because of these differences, generating URLs is an annoying, fragile,
 and error-prone process. First, I have to detect that I'm running
 under GWT (which isn't too bad --- I can just look for localhost or
 equivalent) and then create special URLs for that situation (which is
 hideously bad, since that code runs only when I'm testing, and
 different code entirely runs when I'm deployed, and that code can't be
 tested properly).


You're generating relative URLs right?


 The fragility comes from the fact that I had to
 change all my if-in-hosted-mode-do-X code when GWT 2 came out, because
 the URL structure had changed.

 Ideally, I'd like:

 1) a way to add a servlet-context (e.g., http:/127.0.0.1:/
 myServletContext)  to a URL used in debug mode so that I can generate
 a structurally-similar URL for both debugging and deployment. This
 servlet-context part of the URL could simply be ignored by the debug-
 mode web server. I'd be perfectly happy for reasonable restrictions to
 be in place (e.g., you could use /context but not /context/
 subcontext), or I could specify the context name in the module file
 or some other reasonable place.

 2) no extra garbage (such as ?gwt.codesvr... added to the URLS.
 Surly, this information can be passed to the debug-mode web server in
 some other way.


We've talked about using cookies, but that presents it's own set of issues
for developers. Mainly detecting when you're running in development mode vs.
web mode becomes tricky (and error prone).



 If there's some sort of workaround for these problems, I'd love to
 know about it. If there is no workaround, I consider this
 inconsistency to be a serious bug in GWT.

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



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



Conditional code splitting

2010-03-10 Thread Jonathan
Has anyone come up with a good solution for conditional code
splitting?  Code splitting increases compilation time which we want to
avoid during normal development.  It would be nice if GWT provided a
simple means of disabling it through the module descriptor file
similar to how you can alter the user.agent property to avoid
compiling permutations for all browsers.

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



EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread opn
Hello!

I found an interesting blog entry today and tried to implement it in a
test application.

Here is the url: 
http://gianluigidavassiuk.blogspot.com/2009/11/ejb3-plus-guice-how-exotic-part-3.html

Now, as mentioned in the topic, im using Glassfish that runs in
netbeans or i have a tomcat 6 server accessible via lan or internet
where i am (trying to) deploying my application.

Now my only problem is that i dont know what i have to use as the
identifier for the bean to look it up in those two environments
(glassfish / tomcat).

bind(EJB3TestRemote.class) .annotatedWith(Names.named(EJB3TestRemote)) 
.toProvider(fromJndi(EJB3TestRemote.class,EJB3Test/
remote));

The author says thats specific to JBoss. What do i have to use?

-

01  public class  NiceClass {
02
03   @Inject @Named(EJB3TestRemote)
04   private EJB3TestRemote test;
05
06   public void tryJndi() throws NamingException {
07
08System.out.println( test.statelessMethod(JBOSS HELLO) );
09   }
10  }

Can i use Constructor injection in that style too?

And one last question, in the end the author mentions that the @Named
annotation is not useful. How would it look like without it?

I'd be really happy if there was someone who can give me detailed
information about this. I think while googling i found a link to a
Guice book that gives information about this but for Guice 1.0

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



Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread opn
Sorry, i dont know how to edit the text. (Is it possible?)

If i now would have a running NiceClass, could i inject it somewhere
with guice as i would with any other class?

Bye

On 10 Mrz., 22:03, opn open...@gmx.net wrote:
 Hello!

 I found an interesting blog entry today and tried to implement it in a
 test application.

 Here is the 
 url:http://gianluigidavassiuk.blogspot.com/2009/11/ejb3-plus-guice-how-ex...

 Now, as mentioned in the topic, im using Glassfish that runs in
 netbeans or i have a tomcat 6 server accessible via lan or internet
 where i am (trying to) deploying my application.

 Now my only problem is that i dont know what i have to use as the
 identifier for the bean to look it up in those two environments
 (glassfish / tomcat).

 bind(EJB3TestRemote.class) .annotatedWith(Names.named(EJB3TestRemote)) 
 .toProvider(fromJndi(EJB3TestRemote.class,EJB3Test/
 remote));

 The author says thats specific to JBoss. What do i have to use?

 -

 01      public class  NiceClass {
 02
 03       @Inject @Named(EJB3TestRemote)
 04       private EJB3TestRemote test;
 05
 06       public void tryJndi() throws NamingException {
 07
 08        System.out.println( test.statelessMethod(JBOSS HELLO) );
 09       }
 10      }

 Can i use Constructor injection in that style too?

 And one last question, in the end the author mentions that the @Named
 annotation is not useful. How would it look like without it?

 I'd be really happy if there was someone who can give me detailed
 information about this. I think while googling i found a link to a
 Guice book that gives information about this but for Guice 1.0

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



Re: EJB 3 + Guice2.0 + Tomcat 6 / Glassfish 3

2010-03-10 Thread Chris Lercher
Hi,

you're probably looking for the portable JNDI syntax, as explained
here: http://java.sun.com/javaee/6/docs/tutorial/doc/gipjf.html

 And one last question, in the end the author mentions that the @Named
 annotation is not useful. How would it look like without it?

I think he probably means that you could just do it like this:

bind(EJB3TestRemote.class).toProvider(fromJndi(EJB3TestRemote.class,EJB3Test/
remote));

And then simply:
@Inject
private EJB3TestRemote test;

...if you don't want to bind different EJB3TestRemotes to different
names.
I haven't tried this though - I'm simply using the @EJB annotation to
inject EJBs in GlassFish.

Chris

On Mar 10, 10:03 pm, opn open...@gmx.net wrote:
 Hello!

 I found an interesting blog entry today and tried to implement it in a
 test application.

 Here is the 
 url:http://gianluigidavassiuk.blogspot.com/2009/11/ejb3-plus-guice-how-ex...

 Now, as mentioned in the topic, im using Glassfish that runs in
 netbeans or i have a tomcat 6 server accessible via lan or internet
 where i am (trying to) deploying my application.

 Now my only problem is that i dont know what i have to use as the
 identifier for the bean to look it up in those two environments
 (glassfish / tomcat).

 bind(EJB3TestRemote.class) .annotatedWith(Names.named(EJB3TestRemote)) 
 .toProvider(fromJndi(EJB3TestRemote.class,EJB3Test/
 remote));

 The author says thats specific to JBoss. What do i have to use?

 -

 01      public class  NiceClass {
 02
 03       @Inject @Named(EJB3TestRemote)
 04       private EJB3TestRemote test;
 05
 06       public void tryJndi() throws NamingException {
 07
 08        System.out.println( test.statelessMethod(JBOSS HELLO) );
 09       }
 10      }

 Can i use Constructor injection in that style too?

 And one last question, in the end the author mentions that the @Named
 annotation is not useful. How would it look like without it?

 I'd be really happy if there was someone who can give me detailed
 information about this. I think while googling i found a link to a
 Guice book that gives information about this but for Guice 1.0

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



Re: UiBinder with background-image and ImageResource

2010-03-10 Thread Michael
Thanks Dave,

That will probably do the trick.

Somehow I had hoped that

ui:with field=res type=com.mycompany.MyClientBundle/
ui:style
.myClass {
background-image=url('res.myImage');
}
/ui:style

would have been enough - so much less typing! Anyone from the Dev Team
reading this?? ;)

Cheers

Mike

On Mar 10, 7:10 pm, davidroe roe.da...@gmail.com wrote:
 this is how I did it.

 in whatever.css:

 @sprite .myClass {
   gwt-image: myImage;
   width: auto; height: auto;
   background-repeat: repeat;
   background-position: 0% 0%;

 }

 in Resources.java:

 public interface Resources extends ClientBundle {

   ...

   public interface WhateverCss extends CssResource {
     String myClass();
   }

   @Source(com/whoever/client/resources/whatever.css)
   public WhateverCss whateverCss();

 }

 in WhateverClass.ui.xml:

   ui:with field=res type=com.whoever.client.resources.Resources /



   div class={res.whateverCss.myClass}

 HTH,
 /dave

 On Mar 10, 8:52 am, Michael michael.guy...@gmail.com wrote:

  Hi there,

  I'm having a go at using the declarative layout and was wondering if
  there's a way of using an image declared in a ClientBundle as a
  background-image in the ui:style section, thus:

  ui:UiBinder
    xmlns:ui=urn:ui:com.google.gwt.uibinder
    xmlns:g=urn:import:com.google.gwt.user.client.ui
          ui:with field=res type=com.mycompany.MyClientBundle/

          ui:style
                  .banner {
                          background-image:url('res.menuBackground');
                  }
          /ui:style
  /ui:UiBinder

  If not, how are you supposed to do that?

  Cheers

  Mike

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



handle to innerHTML objects

2010-03-10 Thread BCR666
I have created a table in a vertical panel like so:

String innerHtml = table id='details' class='details'
tabIndex='3'trth1/thth2/th/trtrtdA/tdtdB/td/tr/table
VericalPanel vPanel = new VerticalPanel();
vPanel.getElement().setInnerHTML(innerHtml);

This creates my table nicely and fast. But now I need to add a ClickHandler
to the table, am I am not sure how to do that. Does anybody know?

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



Re: UiBinder with background-image and ImageResource

2010-03-10 Thread MH
I'm afraid this one does not work for me.

I did exactly as mentioned, and my widget seems to be not using style at
all. Shall I also add anything to the class itself?

2010/3/10 davidroe roe.da...@gmail.com

 this is how I did it.

 in whatever.css:

 @sprite .myClass {
  gwt-image: myImage;
  width: auto; height: auto;
  background-repeat: repeat;
  background-position: 0% 0%;
 }

 in Resources.java:

 public interface Resources extends ClientBundle {

  ...

  public interface WhateverCss extends CssResource {
String myClass();
  }

  @Source(com/whoever/client/resources/whatever.css)
  public WhateverCss whateverCss();

 }

 in WhateverClass.ui.xml:

  ui:with field=res type=com.whoever.client.resources.Resources /
 

  div class={res.whateverCss.myClass}

 HTH,
 /dave

 On Mar 10, 8:52 am, Michael michael.guy...@gmail.com wrote:
  Hi there,
 
  I'm having a go at using the declarative layout and was wondering if
  there's a way of using an image declared in a ClientBundle as a
  background-image in the ui:style section, thus:
 
  ui:UiBinder
xmlns:ui=urn:ui:com.google.gwt.uibinder
xmlns:g=urn:import:com.google.gwt.user.client.ui
  ui:with field=res type=com.mycompany.MyClientBundle/
 
  ui:style
  .banner {
  background-image:url('res.menuBackground');
  }
  /ui:style
  /ui:UiBinder
 
  If not, how are you supposed to do that?
 
  Cheers
 
  Mike

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



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



Re: Communication between two browser windows

2010-03-10 Thread PKolenic
Does the form really need to be in a new window?
If not, want I would do is use a dialog box.  You can set the
dimensions however large you need.
If would then be in the same window, when they press the submit button
it could send the result to the
server, and the callback function would be in the orignal app.

On Mar 9, 2:11 pm, Anders dr.kr...@gmail.com wrote:
 Hey,

 I'm working on an app where the user clicks on a link in browser
 window A in order to open a new browser window B. In browser window B
 the user fills out a form and submits this to the server. The response
 is either an application/octet-stream (a binary file generated on the
 server) or just text/plain (an error message). Ideally I'd like the
 response to be submitted to window A.

 My question is therefor how one would implement this in GWT?

 All the best,

 Anders

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



GWT + Authorization form

2010-03-10 Thread Flippik
Hi 2 everybody.

Sorry, I'm going to ask you not a very clever question but I have to
do it.
I need to implement an authorization form for my GWT 2.0 application.
I have searched a lot in google, found tons of information but failed
to find anything to help me.
All examples are actual for GWT 1.5, 1.6 only. I have bought two books
about GWT but there is nothing there either.
Could anybody help me and send a working example? I would appreciate
it greatly.

Thank you in advance.

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



Re: GWT + Authorization form

2010-03-10 Thread maratkalibek
Hello,
try to use security filter, which determines if there special
parameter in session.
If there is no such parameter, simply redirect to login page, which
also can be another compiled gwt module.

On 11 мар, 04:59, Flippik pindryu...@gmail.com wrote:
 Hi 2 everybody.

 Sorry, I'm going to ask you not a very clever question but I have to
 do it.
 I need to implement an authorization form for my GWT 2.0 application.
 I have searched a lot in google, found tons of information but failed
 to find anything to help me.
 All examples are actual for GWT 1.5, 1.6 only. I have bought two books
 about GWT but there is nothing there either.
 Could anybody help me and send a working example? I would appreciate
 it greatly.

 Thank you in advance.

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



Re: handle to innerHTML objects

2010-03-10 Thread Paul Stockley
You can only add handlers to Widgets. So you will have to create a
widget, set the widget's element equal to the table element you
created. Then add this widget to the vertical panel. To get the table
element you can use something like
Document.get().getElementById(details);

I haven't tried this so you may need to experiment a bit to get it to
work.

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



Redraw layout on orientation change

2010-03-10 Thread Sekhar
I'm building a GWT layout (UiBinder) for mobile WebKit browsers. How
would you redraw the layout when the orientation changes, say from
portrait to landscape? I'm able to set the new width, but the layout
isn't redrawing.

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



CssResource user.agent problem?

2010-03-10 Thread dougx
Sorry if this is a double post; I thought I posted a message about
this before but it's been 24 hours and it still hasn't shown up...

So, long story short, I can't get the @if user.agent syntax to work
in gwt 2.0.3.
Does anyone know how to use this correctly?

This is my style sheet:
.Box {
border: 1px solid #000;
}
@if user.agent ie6 ie7 ie8 {
.Box {
background: #f00;
}
}
@if (com.client.Com.Check()) {
.Box {
background: #0f0;
}
}
@else {
.Box {
background: #00f;
}
}

And this is the code to Com::Check:
public static boolean Check() {
if  (Navigator.getUserAgent().toLowerCase().contains(msie))
return(true);
else
return(false);
}

The style output is style background: #0f0 on all versions on IE. That
is, the @if user.agent query string isn't working at all.

I've tried the example here too, and that also doesn't work for me:
http://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbook

I'm sure I've got this working before. Is there a syntax change or
something I should be using? I've seen some example around where
people are going @if user.agent msie7 or example, but that doesn't
work for me either. :(

~
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: CssResource user.agent problem?

2010-03-10 Thread dougx
Sorry, my bad (it did turn up:
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/40fed6fce8c222f6).
It just isn't showing up in the search results for some reason.

On Mar 11, 10:32 am, dougx douglas.lin...@gmail.com wrote:
 Sorry if this is a double post; I thought I posted a message about
 this before but it's been 24 hours and it still hasn't shown up...

 So, long story short, I can't get the @if user.agent syntax to work
 in gwt 2.0.3.
 Does anyone know how to use this correctly?

 This is my style sheet:
 .Box {
         border: 1px solid #000;}

 @if user.agent ie6 ie7 ie8 {
         .Box {
                 background: #f00;
         }}

 @if (com.client.Com.Check()) {
         .Box {
                 background: #0f0;
         }}

 @else {
         .Box {
                 background: #00f;
         }

 }

 And this is the code to Com::Check:
         public static boolean Check() {
                 if  (Navigator.getUserAgent().toLowerCase().contains(msie))
                         return(true);
                 else
                         return(false);
         }

 The style output is style background: #0f0 on all versions on IE. That
 is, the @if user.agent query string isn't working at all.

 I've tried the example here too, and that also doesn't work for 
 me:http://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbook

 I'm sure I've got this working before. Is there a syntax change or
 something I should be using? I've seen some example around where
 people are going @if user.agent msie7 or example, but that doesn't
 work for me either. :(

 ~
 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: Redraw layout on orientation change

2010-03-10 Thread Sekhar
Looks like a timing issue. I have a setWidth() for the root panel
wrapped under DeferredCommand.addCommand(), and it does resize
sometimes, but not always (may be 2/3 of the time). I'd appreciate any
help you can give!

On Mar 10, 5:29 pm, Sekhar sek...@allurefx.com wrote:
 I'm building a GWT layout (UiBinder) for mobile WebKit browsers. How
 would you redraw the layout when the orientation changes, say from
 portrait to landscape? I'm able to set the new width, but the layout
 isn't redrawing.

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



Re: CssResource user.agent problem?

2010-03-10 Thread Sekhar
BTW, I believe user.agent can only be one of: ie6 gecko gecko1_8
safari opera.

On Mar 10, 6:35 pm, dougx douglas.lin...@gmail.com wrote:
 Sorry, my bad (it did turn 
 up:http://groups.google.com/group/google-web-toolkit/browse_thread/threa...).
 It just isn't showing up in the search results for some reason.

 On Mar 11, 10:32 am, dougx douglas.lin...@gmail.com wrote:



  Sorry if this is a double post; I thought I posted a message about
  this before but it's been 24 hours and it still hasn't shown up...

  So, long story short, I can't get the @if user.agent syntax to work
  in gwt 2.0.3.
  Does anyone know how to use this correctly?

  This is my style sheet:
  .Box {
          border: 1px solid #000;}

  @if user.agent ie6 ie7 ie8 {
          .Box {
                  background: #f00;
          }}

  @if (com.client.Com.Check()) {
          .Box {
                  background: #0f0;
          }}

  @else {
          .Box {
                  background: #00f;
          }

  }

  And this is the code to Com::Check:
          public static boolean Check() {
                  if  
  (Navigator.getUserAgent().toLowerCase().contains(msie))
                          return(true);
                  else
                          return(false);
          }

  The style output is style background: #0f0 on all versions on IE. That
  is, the @if user.agent query string isn't working at all.

  I've tried the example here too, and that also doesn't work for 
  me:http://code.google.com/p/google-web-toolkit/wiki/CssResourceCookbook

  I'm sure I've got this working before. Is there a syntax change or
  something I should be using? I've seen some example around where
  people are going @if user.agent msie7 or example, but that doesn't
  work for me either. :(

  ~
  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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: handle to innerHTML objects

2010-03-10 Thread BCR666
I can't find any way to set the Widget's element.

On Wed, Mar 10, 2010 at 7:15 PM, Paul Stockley pstockl...@gmail.com wrote:

 You can only add handlers to Widgets. So you will have to create a
 widget, set the widget's element equal to the table element you
 created. Then add this widget to the vertical panel. To get the table
 element you can use something like
 Document.get().getElementById(details);

 I haven't tried this so you may need to experiment a bit to get it to
 work.

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




-- 

My work here is done!


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



Re: handle to innerHTML objects

2010-03-10 Thread Paul Stockley
I think its protected. You are going to have to subclass Widget and
create a new class that takes an element as a constructor. Take a look
at FocusWidget for an idea of how it is done.

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



Re: handle to innerHTML objects

2010-03-10 Thread BCR666
OK, not bad. I need the functionality of the FocusPanel anyway, so...

vPanel.getElement().setInnerHTML(innerHtml);
Element emtDetails = Document.get().getElementById(details);
EmbededWidget widget = new EmbededWidget(emtDetails);
TableFocusHandler handler = new TableFocusHandler();
widget.setTabIndex(3);
widget.addFocusHandler(handler);

Now I end up with a circular thing. I already added the table to the
document by setting it as the inner HTML of the vertical panel, so that is
how I am able to get the element and make it the parameter of the
EmbededWidget. But now I can't add the embededWidget to the vPanel. It
removes the innerHTML I just put in for the table.


On Wed, Mar 10, 2010 at 10:00 PM, Paul Stockley pstockl...@gmail.comwrote:

 I think its protected. You are going to have to subclass Widget and
 create a new class that takes an element as a constructor. Take a look
 at FocusWidget for an idea of how it is done.

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




-- 

My work here is done!


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



  1   2   >