Re: GWT 2.0 RPC not picking up custom generated Serializable classes

2011-09-22 Thread Farid
Thank you Martin.

I think I have found a fix. GWT seems to generate the java source only
for the purpose of cross-compiling it into javascript and then
discards the generated java files. There is a compiler option to keep
the generated java code in a specific folder but the resulting .java
file is not compiled with the build.

It is possible, although very convoluted and clumsy, to change the
build process to pick up source files generated by my generator and
include them in the build path so they can be compiled and available
at runtime.

I have instead created a separate class to generate my java source
code. This class is used by the generator to generate the java source
to be cross-compiled by GWT. The same class is then used by my
application to dynamically generate and load these java classes into
the VM. They are then available at runtime and all seems to be working
fine.

Thank you again for your help and if anyone needs more information
about this workaround I will be happy to send it to them.

On Sep 22, 2:20 am, Martin Söderström martin.k.soderst...@gmail.com
wrote:
 Farid,

 FYI: my team stopped progress on this project before I had the chance to 
 supply
 Chris the code for the generated class and gwt.rpc, so we never actually 
 sorted
 this out. Maybe Chris would still be interested in seeing your code now
 instead to have a look at what's going on.

 /Martin

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



Re: GWT 2.0 RPC not picking up custom generated Serializable classes

2011-09-21 Thread Martin Söderström
Farid,

FYI: my team stopped progress on this project before I had the chance to supply 
Chris the code for the generated class and gwt.rpc, so we never actually sorted 
this out. Maybe Chris would still be interested in seeing your code now 
instead to have a look at what's going on.

/Martin

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



Re: GWT 2.0 RPC not picking up custom generated Serializable classes

2011-09-20 Thread Farid
Hello Martin and Chris,

I was wondering if there is any final answer to this issue. I happen to have 
the same problem whereby I cannot send classes generated by my generator 
through GWT RPC. The GWT RPC generator does not seem to be able to find the 
source for my generated class.

Let me know if there is any progress on this. It is holding me up at the 
moment.
Many thanks and best regards,
farid

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



Re: GWT 2.0 + maven

2010-09-27 Thread olivier nouguier
hi,
 Insure that GWT (GEP) container lib is before Maven dependency container.
HIH

On Mon, Sep 27, 2010 at 11:12 AM, aces2805 ace...@gmail.com wrote:

 Hi Guys,

 Need help on configuring maven and GWT 2.0 no idea on how to
 handle Invalid GWT home, just a newbie in it.

 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.




-- 
Computers are useless. They can only give you answers.
- Pablo Picasso -

-- 
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 2.0 + maven

2010-09-27 Thread bconoly
This article may help: 
http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html

On Sep 27, 5:12 am, aces2805 ace...@gmail.com wrote:
 Hi Guys,

      Need help on configuring maven and GWT 2.0 no idea on how to
 handle Invalid GWT home, just a newbie in it.

 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: GWT 2.0 + maven

2010-09-27 Thread aces2805
Hi,

I'm really thankful, I've tried adding the pluginrepository and use
2.0-rc1 but I'm not sure if it works as of now it does have any error
during compile and build.


On Sep 27, 10:26 pm, bconoly bcon...@gmail.com wrote:
 This article may 
 help:http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin...

 On Sep 27, 5:12 am, aces2805 ace...@gmail.com wrote:

  Hi Guys,

       Need help on configuring maven and GWT 2.0 no idea on how to
  handle Invalid GWT home, just a newbie in it.

  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: GWT 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-11 Thread dane.molotok
The documentation is frustrating, so let's all document some stuff
here so that other googlers will find help. Hilco, can you link to
your pom or post some relevant snippets?

My current configuration is broken but I feel like I am very close
with having GPE, maven, and the maven-war-plugin happy where I can run
in Development Mode in Eclipse and have everything work the same as
running mvn clean package and installing the resulting war against
geronimo. Because that's the goal, right? A GWT developer using
Eclipse and Maven wants to, and should be able to, run in Development
Mode and get the same stuff running that would be running in a full
fledged deployment.

Or are we saying that with the current state of GPE and maven-gwt-
plugin that that is not possible?

On Aug 10, 4:45 pm, Rajeev Dayal rda...@google.com wrote:
 Hey guys,

 I know that maven issues with GWT and GPE are a common theme. We're
 currently working on improving the experience within GPE. It won't solve all
 of the problems, but it will at least solve some of them. Hilco's suggestion
 is probably the best one at this point, as GPE 1.4 M2 contains some Maven
 support (in conjunction with STS).

 @abby: Can you tell me what some of the problems were that you were running
 into? I'd like to make sure that we address them in GPE 1.4 final.

 Rajeev

 On Tue, Aug 3, 2010 at 5:39 PM, Hilco Wijbenga 
 hilco.wijbe...@gmail.comwrote:



  On 3 August 2010 14:23, abby misra.a...@gmail.com wrote:
   The problem is when you try to bring maven, tomcat and google plugin
   together. I have hacked my way around with jetty and was able to get
   it working at some level.

  I know it's frustrating but you might want to consider using Jetty
  then? At least for development, you can always deploy your WAR to
  Tomcat.

   The problem is there is zero documentation on getting things working.

  :-) I know the feeling.

  --
  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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-11 Thread Andrew Hughes
Déjà vu - this tread is nothing new.

If people would like to raise the GWT steering committee's awareness of
maven related issues, try using the tool setup for just this purpose :)
http://code.google.com/p/google-web-toolkit/issues/list
http://code.google.com/p/google-web-toolkit/issues/list?can=2q=mavencolspec=ID+Type+Status+Owner+Milestone+Summary+Starscells=tiles

Some statistic's for everyone...
The most voted for (open) Maven related issue is issue
#4484http://code.google.com/p/google-web-toolkit/issues/detail?id=4484colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Starswith
27 votes. This is the currently ranked the 34th most voted for issue.
The top ten issues have votes that range from [70..228].
Take a look at the others, vote on what is affecting you and if you can't
find what you are looking for then you should raise a (sensible) issue :)

The SpringRoo work is closely tied in with Maven, and there are several
maven related issues you might find interesting...
https://jira.springframework.org/browse/ROO#selectedTab=com.atlassian.jira.plugin.system.project%3Aroadmap-panel

Also, and of course.. the gwt-maven guys - remember that these guys don't
control GWT.
http://jira.codehaus.org/browse/MGWT


On Thu, Aug 12, 2010 at 5:54 AM, Hilco Wijbenga hilco.wijbe...@gmail.comwrote:

 On 11 August 2010 11:37, dane.molotok dane.molo...@gmail.com wrote:
  The documentation is frustrating, so let's all document some stuff
  here so that other googlers will find help. Hilco, can you link to
  your pom or post some relevant snippets?

 If attachments work then you should find attached a complete project
 (11KB). It's essentially a Mavenized version of what webAppCreator
 spits out (slightly cleaned up).

 You can create a WAR file by issuing 'mvn clean package', running in
 dev mode is done by issuing 'mvn clean gwt:run -Dhosted-mode'. (I've
 added a profile to make sure that adding '-bindAddress 0.0.0.0'
 doesn't break 'mvn clean package'.)

 I've tried it with an empty local repository so there should be no
 surprises. :-) Good luck!

 --
 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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-10 Thread Rajeev Dayal
Hey guys,

I know that maven issues with GWT and GPE are a common theme. We're
currently working on improving the experience within GPE. It won't solve all
of the problems, but it will at least solve some of them. Hilco's suggestion
is probably the best one at this point, as GPE 1.4 M2 contains some Maven
support (in conjunction with STS).

@abby: Can you tell me what some of the problems were that you were running
into? I'd like to make sure that we address them in GPE 1.4 final.


Rajeev

On Tue, Aug 3, 2010 at 5:39 PM, Hilco Wijbenga hilco.wijbe...@gmail.comwrote:

 On 3 August 2010 14:23, abby misra.a...@gmail.com wrote:
  The problem is when you try to bring maven, tomcat and google plugin
  together. I have hacked my way around with jetty and was able to get
  it working at some level.

 I know it's frustrating but you might want to consider using Jetty
 then? At least for development, you can always deploy your WAR to
 Tomcat.

  The problem is there is zero documentation on getting things working.

 :-) I know the feeling.

 --
 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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-03 Thread Hilco Wijbenga
On 3 August 2010 10:44, abby misra.a...@gmail.com wrote:
 Has anyone gotten these to work? I am surprised at the lack of support
 gwt has for maven. Looking at the mojo users group, it seems that gwt-
 maven developers are equally frustrated

[I don't know why anyone in 2010 still would want to reinvent the
wheel and expect everybody else to learn how to use their unusual
build system when Maven offers a reasonably well working alternative
that most people are already familiar with. Sadly, most people simply
do not appreciate the importance of the build step (Do we really need
a separate build? Why can't we just build in Eclipse?). :-) ]

 Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
 maven play nicely? If so any documentation/howto's would be godsend.

I use Jetty instead of Tomcat but other than that: yes, it's possible.
It's not easy, though. Luckily, most of the hard work has been done
already by the good folk at Spring Framework's Roo. So what I did was:
install Roo, create a very basic GWT project (Hibernate, Hypersonic in
memory, one entity + GWT setup) and then remove any reference to Roo
and most of the Roo generated Java (use common sense and your own
judgement). That will leave you with an almost functional Maven
project (you should be able to take over from there).

This is not a perfect result but it will get you close enough for you
to fix the things that don't work. There are, however, still a few
caveats.

1. You'll have to go out and find all the various repositories that
offer you the (GWT related) Maven artifacts that you need and put
those repositories in your settings.xml. This is especially true if
you want to use any of the GWT-* projects.
2. Given the poor Maven support, the POMs Maven downloads will usually
not have any references to transitive dependencies. You'll have to add
required transitive dependencies to your project's pom.xml explicitly.
3. Roo uses AspectJ. I left in AspectJ support because I thought it
might be useful later on but if you want to remove it, you'll have a
bit more work to do.
4. Roo uses GWT 2.1.0-M2. I don't know if downgrading breaks anything.

The end result follows Maven directory rules (no silly 'war' directory
in the project root directory), it builds a proper WAR (although I
haven't tried running it), and if you leave mvn gwt:run running any
changes you make in Java or other files will be picked up
automagically.

P.S. Please note that the project built by Roo isn't bug free.
Strangely, if you create the same project but use Spring MVC (e.g.)
instead of GWT then it all works perfectly. This doesn't affect the
Maven setup, though.

-- 
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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-03 Thread Dan Billings
The maven-gae-plugin mvp archetype generates a very informative
pom.xml that might help you put it all together.

I would encourage anyone who has it working to post their pom here!

On Aug 3, 2:08 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:
 On 3 August 2010 10:44, abby misra.a...@gmail.com wrote:

  Has anyone gotten these to work? I am surprised at the lack of support
  gwt has for maven. Looking at the mojo users group, it seems that gwt-
  maven developers are equally frustrated

 [I don't know why anyone in 2010 still would want to reinvent the
 wheel and expect everybody else to learn how to use their unusual
 build system when Maven offers a reasonably well working alternative
 that most people are already familiar with. Sadly, most people simply
 do not appreciate the importance of the build step (Do we really need
 a separate build? Why can't we just build in Eclipse?). :-) ]

  Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
  maven play nicely? If so any documentation/howto's would be godsend.

 I use Jetty instead of Tomcat but other than that: yes, it's possible.
 It's not easy, though. Luckily, most of the hard work has been done
 already by the good folk at Spring Framework's Roo. So what I did was:
 install Roo, create a very basic GWT project (Hibernate, Hypersonic in
 memory, one entity + GWT setup) and then remove any reference to Roo
 and most of the Roo generated Java (use common sense and your own
 judgement). That will leave you with an almost functional Maven
 project (you should be able to take over from there).

 This is not a perfect result but it will get you close enough for you
 to fix the things that don't work. There are, however, still a few
 caveats.

 1. You'll have to go out and find all the various repositories that
 offer you the (GWT related) Maven artifacts that you need and put
 those repositories in your settings.xml. This is especially true if
 you want to use any of the GWT-* projects.
 2. Given the poor Maven support, the POMs Maven downloads will usually
 not have any references to transitive dependencies. You'll have to add
 required transitive dependencies to your project's pom.xml explicitly.
 3. Roo uses AspectJ. I left in AspectJ support because I thought it
 might be useful later on but if you want to remove it, you'll have a
 bit more work to do.
 4. Roo uses GWT 2.1.0-M2. I don't know if downgrading breaks anything.

 The end result follows Maven directory rules (no silly 'war' directory
 in the project root directory), it builds a proper WAR (although I
 haven't tried running it), and if you leave mvn gwt:run running any
 changes you make in Java or other files will be picked up
 automagically.

 P.S. Please note that the project built by Roo isn't bug free.
 Strangely, if you create the same project but use Spring MVC (e.g.)
 instead of GWT then it all works perfectly. This doesn't affect the
 Maven setup, though.

-- 
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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-03 Thread abby
The problem is when you try to bring maven, tomcat and google plugin
together. I have hacked my way around with jetty and was able to get
it working at some level.

The problem is there is zero documentation on getting things working.

On Aug 3, 4:20 pm, Dan Billings debil...@gmail.com wrote:
 The maven-gae-plugin mvp archetype generates a very informative
 pom.xml that might help you put it all together.

 I would encourage anyone who has it working to post their pom here!

 On Aug 3, 2:08 pm, Hilco Wijbenga hilco.wijbe...@gmail.com wrote:



  On 3 August 2010 10:44, abby misra.a...@gmail.com wrote:

   Has anyone gotten these to work? I am surprised at the lack of support
   gwt has for maven. Looking at the mojo users group, it seems that gwt-
   maven developers are equally frustrated

  [I don't know why anyone in 2010 still would want to reinvent the
  wheel and expect everybody else to learn how to use their unusual
  build system when Maven offers a reasonably well working alternative
  that most people are already familiar with. Sadly, most people simply
  do not appreciate the importance of the build step (Do we really need
  a separate build? Why can't we just build in Eclipse?). :-) ]

   Can someone clarify if gwt-maven 1.3.1 fix by google magically makes
   maven play nicely? If so any documentation/howto's would be godsend.

  I use Jetty instead of Tomcat but other than that: yes, it's possible.
  It's not easy, though. Luckily, most of the hard work has been done
  already by the good folk at Spring Framework's Roo. So what I did was:
  install Roo, create a very basic GWT project (Hibernate, Hypersonic in
  memory, one entity + GWT setup) and then remove any reference to Roo
  and most of the Roo generated Java (use common sense and your own
  judgement). That will leave you with an almost functional Maven
  project (you should be able to take over from there).

  This is not a perfect result but it will get you close enough for you
  to fix the things that don't work. There are, however, still a few
  caveats.

  1. You'll have to go out and find all the various repositories that
  offer you the (GWT related) Maven artifacts that you need and put
  those repositories in your settings.xml. This is especially true if
  you want to use any of the GWT-* projects.
  2. Given the poor Maven support, the POMs Maven downloads will usually
  not have any references to transitive dependencies. You'll have to add
  required transitive dependencies to your project's pom.xml explicitly.
  3. Roo uses AspectJ. I left in AspectJ support because I thought it
  might be useful later on but if you want to remove it, you'll have a
  bit more work to do.
  4. Roo uses GWT 2.1.0-M2. I don't know if downgrading breaks anything.

  The end result follows Maven directory rules (no silly 'war' directory
  in the project root directory), it builds a proper WAR (although I
  haven't tried running it), and if you leave mvn gwt:run running any
  changes you make in Java or other files will be picked up
  automagically.

  P.S. Please note that the project built by Roo isn't bug free.
  Strangely, if you create the same project but use Spring MVC (e.g.)
  instead of GWT then it all works perfectly. This doesn't affect the
  Maven setup, though.

-- 
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 2.0, Maven, Google eclipse and TOMCAT, why didn't google build maven support?

2010-08-03 Thread Hilco Wijbenga
On 3 August 2010 14:23, abby misra.a...@gmail.com wrote:
 The problem is when you try to bring maven, tomcat and google plugin
 together. I have hacked my way around with jetty and was able to get
 it working at some level.

I know it's frustrating but you might want to consider using Jetty
then? At least for development, you can always deploy your WAR to
Tomcat.

 The problem is there is zero documentation on getting things working.

:-) I know the feeling.

-- 
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 2.0 - Spring Security

2010-07-08 Thread Ladislav Gazo
Hi,

if you are interested in complex integration of Spring security on
client and also server side you might take a look on
http://code.google.com/p/acris/wiki/Security

BR

On 21. Jún, 20:07 h., Tom thomas.coz...@gmail.com wrote:
 Hi,

 I have an GWT 2.0 application using Spring and Hibernate. (GWT-SL 
 GXT)
 I would like to add a security layer and a profile handler. So I turn
 on Spring security.

 I don't find any samples of a GWT 2.0  Spring security 3.0.
 In fact, I would like a snippet of Spring security configuration.
 If anyone can help me to find the good way to start?

 Best regards
 Tom

-- 
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 2.0 - Spring Security

2010-06-22 Thread olivier nouguier
Helo Tom,
 Please take a look at

http://code.google.com/p/orcades-gwt-spring/ for MVP integration
http://code.google.com/p/orcades-gwt-spring/and
http://code.google.com/p/net-orcades-spring/

http://code.google.com/p/net-orcades-spring/You will find some info.




On Mon, Jun 21, 2010 at 8:07 PM, Tom thomas.coz...@gmail.com wrote:

 Hi,

 I have an GWT 2.0 application using Spring and Hibernate. (GWT-SL 
 GXT)
 I would like to add a security layer and a profile handler. So I turn
 on Spring security.

 I don't find any samples of a GWT 2.0  Spring security 3.0.
 In fact, I would like a snippet of Spring security configuration.
 If anyone can help me to find the good way to start?

 Best regards
 Tom

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




-- 
Computers are useless. They can only give you answers.
- Pablo Picasso -

-- 
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 2.0 and JDK 1.4

2010-06-09 Thread Ravuthakumar
Thanks to all, the limitation is due to other dependent components/
infrastructure.
Migrating all applications is not a viable option now, thanks for your
input.

On Jun 7, 11:45 pm, Jim Douglas jdoug...@basis.com wrote:
 Just out of interest...what's keeping you on 1.4?  It reached EOSL
 more than a year and a half ago:

 http://java.sun.com/products/archive/eol.policy.html

 On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote:



  Hi,

  Does GWT 2.0 requires JSDK 1.5 or higher version?
  There is a limitation, we have to use only jdk1.4.

  Other thought is, use 1.5 in deveopment environment(till compiling to
  JS) then 1.4 during runtime. Is it possible? I wish to utilize the
  features in GWT 2.0(latest version).

  Planning to use GWT RPC for communication. Server side it is spring +
  hibernate(JDK 1.4 compatiple version).

  Thanks for you time,
  Regards,
  Ravuthakumar- Hide quoted text -

 - Show quoted text -

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

2010-06-09 Thread Ravuthakumar
Do we need any GWT related libraries at Runtime? Or is just Java
script?

On Jun 7, 11:45 pm, Jim Douglas jdoug...@basis.com wrote:
 Just out of interest...what's keeping you on 1.4?  It reached EOSL
 more than a year and a half ago:

 http://java.sun.com/products/archive/eol.policy.html

 On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote:



  Hi,

  Does GWT 2.0 requires JSDK 1.5 or higher version?
  There is a limitation, we have to use only jdk1.4.

  Other thought is, use 1.5 in deveopment environment(till compiling to
  JS) then 1.4 during runtime. Is it possible? I wish to utilize the
  features in GWT 2.0(latest version).

  Planning to use GWT RPC for communication. Server side it is spring +
  hibernate(JDK 1.4 compatiple version).

  Thanks for you time,
  Regards,
  Ravuthakumar- Hide quoted text -

 - Show quoted text -

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

2010-06-09 Thread Sripathi Krishnan

 Do we need any GWT related libraries at Runtime? Or is just Java
 script?

GWT has a mandatory client component and an optional server component. The
client component is just javascript at runtime. So, you just need to ensure
developers have JDK 1.5 at compile time. At runtime, it just doesn't matter.

Server side code is required if you are using GWTs proprietary RPC services.
As Kozura mentioned, RPC requires JDK 1.5, so you definitely cannot use it.

So, only option is to avoid RPC, and use JSON for data transfer between
client and server. Lots of people already do this, so its definitely a
viable option.

--Sri


On 9 June 2010 14:07, Ravuthakumar ravuthaku...@gmail.com wrote:

 Do we need any GWT related libraries at Runtime? Or is just Java
 script?

 On Jun 7, 11:45 pm, Jim Douglas jdoug...@basis.com wrote:
  Just out of interest...what's keeping you on 1.4?  It reached EOSL
  more than a year and a half ago:
 
  http://java.sun.com/products/archive/eol.policy.html
 
  On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote:
 
 
 
   Hi,
 
   Does GWT 2.0 requires JSDK 1.5 or higher version?
   There is a limitation, we have to use only jdk1.4.
 
   Other thought is, use 1.5 in deveopment environment(till compiling to
   JS) then 1.4 during runtime. Is it possible? I wish to utilize the
   features in GWT 2.0(latest version).
 
   Planning to use GWT RPC for communication. Server side it is spring +
   hibernate(JDK 1.4 compatiple version).
 
   Thanks for you time,
   Regards,
   Ravuthakumar- Hide quoted text -
 
  - Show quoted text -

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

2010-06-07 Thread Jim Douglas
http://code.google.com/webtoolkit/doc/latest/FAQ_GettingStarted.html#What_are_the_system_requirements_for_GWT?
What are the system requirements for GWT?
Google Web Toolkit is designed to run on systems that meet the
following requirements:
Java: Sun Java 2 Runtime Environment 1.5
Operating system: Windows Vista/XP/2000, Mac OS X 10.4+ (Tiger or
Leopard), or Linux with GTK+ 2.2.1+
Hardware: ~100MB of free disk space, 512MB RAM

On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote:
 Hi,

 Does GWT 2.0 requires JSDK 1.5 or higher version?
 There is a limitation, we have to use only jdk1.4.

 Other thought is, use 1.5 in deveopment environment(till compiling to
 JS) then 1.4 during runtime. Is it possible? I wish to utilize the
 features in GWT 2.0(latest version).

 Planning to use GWT RPC for communication. Server side it is spring +
 hibernate(JDK 1.4 compatiple version).

 Thanks for you time,
 Regards,
 Ravuthakumar

-- 
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 2.0 and JDK 1.4

2010-06-07 Thread kozura
Nope, and the alternate plan won't work either; since GWT1.5 the code
has made full use of the generics and other features available in Java
1.5.  To use java 1.4 you'd have to go back to GWT 1.4, and I don't
believe the RPC formats are compatible such that you could do the
server in 1.4 and the client in 2.0.

On Jun 7, 4:56 am, Ravuthakumar ravuthaku...@gmail.com wrote:
 Hi,

 Does GWT 2.0 requires JSDK 1.5 or higher version?
 There is a limitation, we have to use only jdk1.4.

 Other thought is, use 1.5 in deveopment environment(till compiling to
 JS) then 1.4 during runtime. Is it possible? I wish to utilize the
 features in GWT 2.0(latest version).

 Planning to use GWT RPC for communication. Server side it is spring +
 hibernate(JDK 1.4 compatiple version).

 Thanks for you time,
 Regards,
 Ravuthakumar

-- 
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 2.0 and JDK 1.4

2010-06-07 Thread Jim Douglas
Just out of interest...what's keeping you on 1.4?  It reached EOSL
more than a year and a half ago:

http://java.sun.com/products/archive/eol.policy.html

On Jun 7, 3:56 am, Ravuthakumar ravuthaku...@gmail.com wrote:
 Hi,

 Does GWT 2.0 requires JSDK 1.5 or higher version?
 There is a limitation, we have to use only jdk1.4.

 Other thought is, use 1.5 in deveopment environment(till compiling to
 JS) then 1.4 during runtime. Is it possible? I wish to utilize the
 features in GWT 2.0(latest version).

 Planning to use GWT RPC for communication. Server side it is spring +
 hibernate(JDK 1.4 compatiple version).

 Thanks for you time,
 Regards,
 Ravuthakumar

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

2010-06-04 Thread Kapil Kulkarni
Hi Sri,

Thanks for your reply. The issue got already resolved.
My os is windows 7 64 bit. I was using eclipse 32 bit and jdk 32 bit.
I just switched to 64 bit version of eclipse and jdk and everything
was all set.

On Jun 3, 10:01 am, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
  java.lang.Class.getCanonicalName()Ljava/lang/String;

 Can you double check your JDK Version? Do you have multiple versions of JRE
 libraries in your classpath?

 --Sri

 On 1 June 2010 15:24, Kapil Kulkarni kapilkulkarnip...@gmail.com wrote:

  Hi,
  I am new to GWT and in learning mode.
  I working with GWT 2.0 / Eclipse 3.5 / JDK 1.5 / IE 8.0

  As per getting started guide if I paste the url which i get in
  deployment mode to IE 8.0, then I get following
  but browser is not displaying text box

  Web Application Starter Project

  Please enter your name:

  And in eclipse I am getting following error:

  09:50:37.302 [ERROR] [test_gwt] Failed to create an instance of
  'com.kapil.test.client.Test_GWT' via deferred binding
  java.lang.RuntimeException: Deferred binding failed for
  'com.kapil.test.client.GreetingService' (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.kapil.test.client.Test_GWT.init(Test_GWT.java:36)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
  Source)
     at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at
  com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
  422)
     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
  361)
     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(Unknown Source)
  Caused by: java.lang.NoSuchMethodError:
  java.lang.Class.getCanonicalName()Ljava/lang/String;
     at

  com.google.gwt.user.rebind.rpc.ProxyCreator.getSourceWriter(ProxyCreator.java:
  759)
     at
  com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:
  225)
     at

  com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generate(ServiceInterfaceProxyGenerator.java:
  57)
     at

  com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
  418)
     at
  com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
  38)
     at com.google.gwt.dev.shell.StandardRebindOracle
  $Rebinder.tryRebind(StandardRebindOracle.java:108)
     at com.google.gwt.dev.shell.StandardRebindOracle
  $Rebinder.rebind(StandardRebindOracle.java:54)
     at

  com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
  154)
     at

  com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
  119)
     at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
  531)
     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.kapil.test.client.Test_GWT.init(Test_GWT.java:36)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
  Source)
     at
  sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
  Source)
     at java.lang.reflect.Constructor.newInstance(Unknown Source)
     at
  com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
  422)
     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
  361)
     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(Unknown Source)

  09:50:37.369 [DEBUG] [test_gwt] Rebinding
  com.google.gwt.core.client.impl.SchedulerImpl
  09:50:37.380 [WARN] [test_gwt] For the following type(s), generated
  source was never committed (did you forget to call commit()?)
  09:50:37.427 [WARN] [test_gwt]
  com.kapil.test.client.GreetingService_Proxy
  09:50:37.489 [ERROR] [test_gwt] Unable to load module entry point
  class com.kapil.test.client.Test_GWT (see associated exception for
  details)
  09:50:37.531 [ERROR] [test_gwt] Failed to load module 'test_gwt' from
  user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; 

Re: GWT 2.0

2010-06-04 Thread Sorinel C
If you want more info about GWT you can find it here:

http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

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: GWT 2.0

2010-06-02 Thread Sripathi Krishnan

 java.lang.Class.getCanonicalName()Ljava/lang/String;


Can you double check your JDK Version? Do you have multiple versions of JRE
libraries in your classpath?

--Sri


On 1 June 2010 15:24, Kapil Kulkarni kapilkulkarnip...@gmail.com wrote:

 Hi,
 I am new to GWT and in learning mode.
 I working with GWT 2.0 / Eclipse 3.5 / JDK 1.5 / IE 8.0

 As per getting started guide if I paste the url which i get in
 deployment mode to IE 8.0, then I get following
 but browser is not displaying text box

 Web Application Starter Project

 Please enter your name:


 And in eclipse I am getting following error:

 09:50:37.302 [ERROR] [test_gwt] Failed to create an instance of
 'com.kapil.test.client.Test_GWT' via deferred binding
 java.lang.RuntimeException: Deferred binding failed for
 'com.kapil.test.client.GreetingService' (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.kapil.test.client.Test_GWT.init(Test_GWT.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 422)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
 361)
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(Unknown Source)
 Caused by: java.lang.NoSuchMethodError:
 java.lang.Class.getCanonicalName()Ljava/lang/String;
at

 com.google.gwt.user.rebind.rpc.ProxyCreator.getSourceWriter(ProxyCreator.java:
 759)
at
 com.google.gwt.user.rebind.rpc.ProxyCreator.create(ProxyCreator.java:
 225)
at

 com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator.generate(ServiceInterfaceProxyGenerator.java:
 57)
at

 com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:
 418)
at
 com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
 38)
at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.tryRebind(StandardRebindOracle.java:108)
at com.google.gwt.dev.shell.StandardRebindOracle
 $Rebinder.rebind(StandardRebindOracle.java:54)
at

 com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:
 154)
at

 com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.java:
 119)
at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
 531)
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.kapil.test.client.Test_GWT.init(Test_GWT.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
 Source)
at
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
 Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at
 com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
 422)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
 361)
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(Unknown Source)

 09:50:37.369 [DEBUG] [test_gwt] Rebinding
 com.google.gwt.core.client.impl.SchedulerImpl
 09:50:37.380 [WARN] [test_gwt] For the following type(s), generated
 source was never committed (did you forget to call commit()?)
 09:50:37.427 [WARN] [test_gwt]
 com.kapil.test.client.GreetingService_Proxy
 09:50:37.489 [ERROR] [test_gwt] Unable to load module entry point
 class com.kapil.test.client.Test_GWT (see associated exception for
 details)
 09:50:37.531 [ERROR] [test_gwt] Failed to load module 'test_gwt' from
 user agent 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
 Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR
 3.0.30729; Media Center PC 6.0; MASN)' at 127.0.0.1:49935

 Any idea what's causing 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

Re: GWT 2.0 integration with Spring Security 3.0

2010-05-13 Thread sylvain.saurel
Thanks for your answer.

I put in place that solution. I have an HTML login form that posts to /
j_spring_security_check. The authentification is realized correctly
and I secure all my GWT pages with Spring Security.

For my RPC service, for the moment I only secured URL with Spring
Security. I will see later if I secure more for that services.

For the logout, I use Spring Security fonctionnality with /
j_spring_security_logout. On Firefox, it works fine. On Chrome, there
is a cache problem. When I do a logout after a login succeeded, Chrome
must put in cache Application.html because when I try to access to
Application.html the page is well displayed but the rpc call are not
succeeded because the server knows that user is not connected. By
doing, CRTL + F5 on the page, Application.html becomes not accesible.

So, is there a solution to force Chrome to clear cache for that page
for example ?

Sylvain.

On 12 mai, 23:21, Sripathi Krishnan sripathi.krish...@gmail.com
wrote:
 The problem is that /#login and #securepage are the same page as far as
 Spring is concerned. The part of the url after the # is not sent to the
 server, and so Spring never really sees it.

 I'd recommend creating the login page outside of GWT, as a simple html page.
 Then, protect your GWT page (Application.html) using standard spring
 security. When someone goes to your application, he will automatically be
 redirected to the login page.

 Apart from this, you should also protect all your RPC service urls. If you
 want fine grained authorization (eg. prevent one user from modifying records
 of another user), then you override the onAfterRequestDeserialized() method
 in your RPC Servlet and figure out if the current user has the necessary
 authorization.

 --Sri

 On 11 May 2010 22:09, sylvain.saurel sylvain.sau...@gmail.com wrote:





  Hello,

  I used GWT 2.0 since a few days. So, I try to code an basic
  application with a login form and a page accessible only if i am
  logged.

  Usually in my web application with jsf for example, I use Spring
  Security 3.0 to configure and secure that kind of application.
  So, I decided to try to do the same thing with my GWT 2.0
  application.

  I've well configured the server part of Spring Security. So from my
  GWT login page, I can enter my login/password and the authentication
  via Spring Security is performed. The redirection to the secured page
  is done and I can get the connected user via an rpc call to security
  service that uses the SecurityContext of Spring Security. So, I think
  that part is ok.

  But, I have got a big problem to secure urls. Indeed, I would like to
  secure the page to restrict access to specific Role like I do with
  Spring Security usually.

  In my GWT application, I use MVP pattern with central application
  controller. So, I have got only one page and for that page I'm going
  to differents views when adding #name_of_view to the end of the URL.
  For example, to access to my login page in development mode, I use the
  following URL on my browser :

 http://127.0.0.1:/fr.myapp.Application/Application.html?gwt.codes...

  Once i am correctly logged, I'm going to the following view :

 http://127.0.0.1:/fr.myapp.Application/Application.html?gwt.codes...

  Because of that, I don't know how to configure the http tag in Spring
  Security and how to define URL to intercept to affect them specific
  roles to restrict access.
  Furthermore, I think there will be a problem to use these URL between
  development mode and a classic production mode. No ?

  So, someone would have any idea to help me to configure and secure my
  application using these URLs ? or by using an other technic to secure
  application with form login ?

  Thanks by advance for your help.

  Sylvain.

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

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



Re: GWT 2.0 integration with Spring Security 3.0

2010-05-12 Thread Sripathi Krishnan
The problem is that /#login and #securepage are the same page as far as
Spring is concerned. The part of the url after the # is not sent to the
server, and so Spring never really sees it.

I'd recommend creating the login page outside of GWT, as a simple html page.
Then, protect your GWT page (Application.html) using standard spring
security. When someone goes to your application, he will automatically be
redirected to the login page.

Apart from this, you should also protect all your RPC service urls. If you
want fine grained authorization (eg. prevent one user from modifying records
of another user), then you override the onAfterRequestDeserialized() method
in your RPC Servlet and figure out if the current user has the necessary
authorization.

--Sri


On 11 May 2010 22:09, sylvain.saurel sylvain.sau...@gmail.com wrote:

 Hello,

 I used GWT 2.0 since a few days. So, I try to code an basic
 application with a login form and a page accessible only if i am
 logged.

 Usually in my web application with jsf for example, I use Spring
 Security 3.0 to configure and secure that kind of application.
 So, I decided to try to do the same thing with my GWT 2.0
 application.

 I've well configured the server part of Spring Security. So from my
 GWT login page, I can enter my login/password and the authentication
 via Spring Security is performed. The redirection to the secured page
 is done and I can get the connected user via an rpc call to security
 service that uses the SecurityContext of Spring Security. So, I think
 that part is ok.

 But, I have got a big problem to secure urls. Indeed, I would like to
 secure the page to restrict access to specific Role like I do with
 Spring Security usually.

 In my GWT application, I use MVP pattern with central application
 controller. So, I have got only one page and for that page I'm going
 to differents views when adding #name_of_view to the end of the URL.
 For example, to access to my login page in development mode, I use the
 following URL on my browser :


 http://127.0.0.1:/fr.myapp.Application/Application.html?gwt.codesvr=127.0.0.1:9997#login

 Once i am correctly logged, I'm going to the following view :


 http://127.0.0.1:/fr.myapp.Application/Application.html?gwt.codesvr=127.0.0.1:9997#pagesecured

 Because of that, I don't know how to configure the http tag in Spring
 Security and how to define URL to intercept to affect them specific
 roles to restrict access.
 Furthermore, I think there will be a problem to use these URL between
 development mode and a classic production mode. No ?

 So, someone would have any idea to help me to configure and secure my
 application using these URLs ? or by using an other technic to secure
 application with form login ?

 Thanks by advance for your help.

 Sylvain.

 --
 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 2.0 jars that should be part of a Web apps' class path during installation

2010-03-24 Thread Sripathi Krishnan
Yes, your understanding is correct.
If you are not using RPC, you can even eliminate gwt-servlet.jar.

--Sri

On 25 March 2010 01:35, jayanth jay.sesha...@gmail.com wrote:

 I have a question concerning GWT 2.0 jars that should be part of a web
 applications' class path (WEB-INF/lib) during installation. The
 application server I am targeting is WAS 6.1.

 Is my understanding correct that the following jars need to be
 installed and that the rest of the jars are for development alone?

 ===INSTALL===
 gwt-servlet.jar



 ==DO NOT INSTALL (Development mode only) ===
 gwt-dev.jar
 gwt-user.jar
 gwt-soyc-vis.jar
 gwt-api-checker.jar

 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: GWT 2.0 - Hibernate - Eclipse: Problem with testing

2010-03-19 Thread pau2bk
Hello,

I found it. The solution was, not to use the App Engine (disable Use
Google App Engine in the project properties.

Dieter

On 18 Mrz., 22:38, Mathieu mathieu.chau...@gmail.com wrote:
 Hi Dieter,

 There is an intersting article written here 
 :http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib...

 Mathieu

 On 17 mar, 13:45,pau2bki...@dpaul.de wrote:

  Hello,

  I tried to develop a small server / client program in the following
  environment:

  Eclipse 3.5
  GWT 2.0
  Hibernate

  When starting the program inside of of eclipse, I got the following
  exception

  java.lang.NoClassDefFoundError: java.io.FileOutputStream is a
  restricted class. Please see the Google  App Engine developer's guide
  for more details.

  This happens during creation of the hibernate SessionFactory (factory
  = new Configuration().configure().buildSessionFactory();)

  When deploying the application to a tomcat server everything works
  fine.

  Is there any possibility to test such an application inside of
  Eclipse?

  Dieter

-- 
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 2.0 - Hibernate - Eclipse: Problem with testing

2010-03-18 Thread Mathieu
Hi Dieter,

There is an intersting article written here :
http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hibernate.html

Mathieu

On 17 mar, 13:45, pau2bk i...@dpaul.de wrote:
 Hello,

 I tried to develop a small server / client program in the following
 environment:

 Eclipse 3.5
 GWT 2.0
 Hibernate

 When starting the program inside of of eclipse, I got the following
 exception

 java.lang.NoClassDefFoundError: java.io.FileOutputStream is a
 restricted class. Please see the Google  App Engine developer's guide
 for more details.

 This happens during creation of the hibernate SessionFactory (factory
 = new Configuration().configure().buildSessionFactory();)

 When deploying the application to a tomcat server everything works
 fine.

 Is there any possibility to test such an application inside of
 Eclipse?

 Dieter

-- 
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 2.0 - Hibernate - Eclipse: Problem with testing

2010-03-18 Thread Sripathi Krishnan
Disable Google App Engine in your Eclipse settings. GAE doesn't allow you to
work with databases or files.


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


On 17 March 2010 18:15, pau2bk i...@dpaul.de wrote:

 Hello,

 I tried to develop a small server / client program in the following
 environment:

 Eclipse 3.5
 GWT 2.0
 Hibernate

 When starting the program inside of of eclipse, I got the following
 exception

 java.lang.NoClassDefFoundError: java.io.FileOutputStream is a
 restricted class. Please see the Google  App Engine developer's guide
 for more details.

 This happens during creation of the hibernate SessionFactory (factory
 = new Configuration().configure().buildSessionFactory();)

 When deploying the application to a tomcat server everything works
 fine.

 Is there any possibility to test such an application inside of
 Eclipse?

 Dieter

 --
 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 2.0 + Hibernate + Gilead

2010-03-13 Thread Olivier
I am wondering if an other way could be to use maps instead of
serializable objects (for a small application).
Could not it increase performances ?

On 13 mar, 03:21, Jeff Larsen larse...@gmail.com wrote:
 Instead of setting them to null, you could declare them as transient.
 That would cause them to not be transported over the wire.

 On Mar 12, 4:57 pm, andreas andreas.kn...@nikem.de wrote:



  I have used Gilead, too. First I was very happy with it as it saved me
  a lot of time.
  But when my application grew larger, I also experienced that in some
  situations it's reducing performance. Another reason to not use Gilead
  was that I started to set properties of my mapped entities to null
  which I didn't want to transport to the client (for example security
  issues). I think this is even worse than using DTOs.

  I have written a comment about the topic in this 
  blog:http://www.dotnetguru2.org/bmarchesson/index.php/2008/12/20/gilead_se...

  best regards

  Andreas

  On 12 Mrz., 21:38, Giuseppe La Scaleia glascal...@gmail.com wrote:

   Olivier ha scritto:

Hi, thanks for your answer Giuseppe,

I tried Dozer when I did not succeed in Gilead. But now I resolved the
problem, I prefer use Gilead which allows me to use an existing code
without duplicating data.
If my model changes, I will not have to modify the DTO according to
the modifications : only use Hibernate Tools to generate the new
domain.

Regards.

On 11 mar, 14:49, Giuseppe La Scaleia glascal...@gmail.com wrote:

Hi Oliver i suggest you to use Apache Dozer with Hibernate , that 
allows you
to create objects as a mirror of your model bean.
For Information
 http://dozer.sourceforge.net/

Regards Giuseppe
2010/
3/11 Olivier olivier.be...@gmail.com

Hello,

I finally solved the problem here :

   https://sourceforge.net/projects/gilead/forums/forum/868076/topic/358...

Regards.

On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:

Hello,

I am trying to integrate gilead in my GWT - Hibernate application. I
followed this article to set up my project :

   http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib

But at the compilation time I have the following error :

[INFO] Compiling module fr.csie.Application
[INFO]    Validating newly compiled units
[INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
annotations/AnnotationsHelper.java'
[INFO]          [ERROR] Line 3: The import java.beans cannot be
resolved
[INFO]          [ERROR] Line 4: The import java.beans cannot be
resolved
[INFO]          [ERROR] Line 5: The import java.beans cannot be
resolved
[INFO]          [ERROR] Line 6: The import java.beans cannot be
resolved
[INFO]          [ERROR] Line 7: The import java.lang.reflect cannot 
be
resolved
[INFO]          [ERROR] Line 213: Field cannot be resolved to a type
[INFO]          [ERROR] Line 214: Field cannot be resolved to a type
[INFO]          [ERROR] Line 248: BeanInfo cannot be resolved to a
type
[INFO]          [ERROR] Line 248: Introspector cannot be resolved
[INFO]          [ERROR] Line 249: PropertyDescriptor cannot be
resolved to a type
[INFO]          [ERROR] Line 252: PropertyDescriptor cannot be
resolved to a type
[INFO]          [ERROR] Line 275: IntrospectionException cannot be
resolved to a type
[INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
pojo/gwt/LightEntity.java'
[INFO]          [ERROR] Line 104: The return type is incompatible 
with
ILightEntity.getProxyInformation(String)
[INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
pojo/java5/legacy/LightEntity.java'
[INFO]          [ERROR] Line 105: The return type is incompatible 
with
ILightEntity.getProxyInformation(String)
[INFO]    Finding entry point classes
[INFO]       [ERROR] Unable to find type 'fr.csie.client.Application'
[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
[INFO]


I am using Maven2 and here are my dependencies for using Gilead :

                dependency
                        groupIdnet.sf.gilead/groupId
                        artifactIdadapter-core/artifactId
                        version1.2.3/version
                /dependency
              

Re: GWT 2.0 + Hibernate + Gilead

2010-03-12 Thread Olivier
Hi, thanks for your answer Giuseppe,

I tried Dozer when I did not succeed in Gilead. But now I resolved the
problem, I prefer use Gilead which allows me to use an existing code
without duplicating data.
If my model changes, I will not have to modify the DTO according to
the modifications : only use Hibernate Tools to generate the new
domain.

Regards.

On 11 mar, 14:49, Giuseppe La Scaleia glascal...@gmail.com wrote:
 Hi Oliver i suggest you to use Apache Dozer with Hibernate , that allows you
 to create objects as a mirror of your model bean.
 For Information
  http://dozer.sourceforge.net/

 Regards Giuseppe
 2010/
 3/11 Olivier olivier.be...@gmail.com

  Hello,

  I finally solved the problem here :

 https://sourceforge.net/projects/gilead/forums/forum/868076/topic/358...

  Regards.

  On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:
   Hello,

   I am trying to integrate gilead in my GWT - Hibernate application. I
   followed this article to set up my project :
 http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib

   But at the compilation time I have the following error :

   [INFO] Compiling module fr.csie.Application
   [INFO]    Validating newly compiled units
   [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
   net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
   annotations/AnnotationsHelper.java'
   [INFO]          [ERROR] Line 3: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 4: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 5: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 6: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 7: The import java.lang.reflect cannot be
   resolved
   [INFO]          [ERROR] Line 213: Field cannot be resolved to a type
   [INFO]          [ERROR] Line 214: Field cannot be resolved to a type
   [INFO]          [ERROR] Line 248: BeanInfo cannot be resolved to a
   type
   [INFO]          [ERROR] Line 248: Introspector cannot be resolved
   [INFO]          [ERROR] Line 249: PropertyDescriptor cannot be
   resolved to a type
   [INFO]          [ERROR] Line 252: PropertyDescriptor cannot be
   resolved to a type
   [INFO]          [ERROR] Line 275: IntrospectionException cannot be
   resolved to a type
   [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
   net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
   pojo/gwt/LightEntity.java'
   [INFO]          [ERROR] Line 104: The return type is incompatible with
   ILightEntity.getProxyInformation(String)
   [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
   net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
   pojo/java5/legacy/LightEntity.java'
   [INFO]          [ERROR] Line 105: The return type is incompatible with
   ILightEntity.getProxyInformation(String)
   [INFO]    Finding entry point classes
   [INFO]       [ERROR] Unable to find type 'fr.csie.client.Application'
   [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
   [INFO]
   

   I am using Maven2 and here are my dependencies for using Gilead :

                   dependency
                           groupIdnet.sf.gilead/groupId
                           artifactIdadapter-core/artifactId
                           version1.2.3/version
                   /dependency
                   dependency
                           groupIdnet.sf.gilead/groupId
                           artifactIdgilead4gwt/artifactId
                           version1.3.0/version
                           typejar/type
                   /dependency
                   dependency
                           groupIdnet.sf.gilead/groupId
                           artifactIdgilead-hibernate/artifactId
                           typejar/type
                           version1.3.0/version
                   /dependency
                   dependency
                           groupIdnet.sf.gilead/groupId
                           artifactIdhibernate-util/artifactId
                           typejar/type
                           version1.2.3/version
                   /dependency

   Could anybody help me to understand why I get that error please ?
   Thank you very much !

  --
  You received this message because you are subscribed to the Google Groups
  Google Web Toolkit group.
  To post to this group, send email to google-web-tool...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
  .
  For more 

Re: GWT 2.0 + Hibernate + Gilead

2010-03-12 Thread Giuseppe La Scaleia

Olivier ha scritto:

Hi, thanks for your answer Giuseppe,

I tried Dozer when I did not succeed in Gilead. But now I resolved the
problem, I prefer use Gilead which allows me to use an existing code
without duplicating data.
If my model changes, I will not have to modify the DTO according to
the modifications : only use Hibernate Tools to generate the new
domain.

Regards.

On 11 mar, 14:49, Giuseppe La Scaleia glascal...@gmail.com wrote:
  

Hi Oliver i suggest you to use Apache Dozer with Hibernate , that allows you
to create objects as a mirror of your model bean.
For Information
 http://dozer.sourceforge.net/

Regards Giuseppe
2010/
3/11 Olivier olivier.be...@gmail.com



Hello,
  
I finally solved the problem here :
  
https://sourceforge.net/projects/gilead/forums/forum/868076/topic/358...
  
Regards.
  
On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:
  

Hello,

I am trying to integrate gilead in my GWT - Hibernate application. I

followed this article to set up my project :


http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib
  

But at the compilation time I have the following error :

[INFO] Compiling module fr.csie.Application

[INFO]Validating newly compiled units
[INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
annotations/AnnotationsHelper.java'
[INFO]  [ERROR] Line 3: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 4: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 5: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 6: The import java.beans cannot be
resolved
[INFO]  [ERROR] Line 7: The import java.lang.reflect cannot be
resolved
[INFO]  [ERROR] Line 213: Field cannot be resolved to a type
[INFO]  [ERROR] Line 214: Field cannot be resolved to a type
[INFO]  [ERROR] Line 248: BeanInfo cannot be resolved to a
type
[INFO]  [ERROR] Line 248: Introspector cannot be resolved
[INFO]  [ERROR] Line 249: PropertyDescriptor cannot be
resolved to a type
[INFO]  [ERROR] Line 252: PropertyDescriptor cannot be
resolved to a type
[INFO]  [ERROR] Line 275: IntrospectionException cannot be
resolved to a type
[INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
pojo/gwt/LightEntity.java'
[INFO]  [ERROR] Line 104: The return type is incompatible with
ILightEntity.getProxyInformation(String)
[INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
pojo/java5/legacy/LightEntity.java'
[INFO]  [ERROR] Line 105: The return type is incompatible with
ILightEntity.getProxyInformation(String)
[INFO]Finding entry point classes
[INFO]   [ERROR] Unable to find type 'fr.csie.client.Application'
[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
[INFO]


I am using Maven2 and here are my dependencies for using Gilead :

dependency

groupIdnet.sf.gilead/groupId
artifactIdadapter-core/artifactId
version1.2.3/version
/dependency
dependency
groupIdnet.sf.gilead/groupId
artifactIdgilead4gwt/artifactId
version1.3.0/version
typejar/type
/dependency
dependency
groupIdnet.sf.gilead/groupId
artifactIdgilead-hibernate/artifactId
typejar/type
version1.3.0/version
/dependency
dependency
groupIdnet.sf.gilead/groupId
artifactIdhibernate-util/artifactId
typejar/type
version1.2.3/version
/dependency

Could anybody help me to understand why I get that error please ?

Thank you very much !


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


  

Yes i understand.
I use gilead 

Re: GWT 2.0 + Hibernate + Gilead

2010-03-12 Thread andreas
I have used Gilead, too. First I was very happy with it as it saved me
a lot of time.
But when my application grew larger, I also experienced that in some
situations it's reducing performance. Another reason to not use Gilead
was that I started to set properties of my mapped entities to null
which I didn't want to transport to the client (for example security
issues). I think this is even worse than using DTOs.

I have written a comment about the topic in this blog:
http://www.dotnetguru2.org/bmarchesson/index.php/2008/12/20/gilead_send_your_hibernate_entities_well#c6849

best regards

Andreas

On 12 Mrz., 21:38, Giuseppe La Scaleia glascal...@gmail.com wrote:
 Olivier ha scritto:



  Hi, thanks for your answer Giuseppe,

  I tried Dozer when I did not succeed in Gilead. But now I resolved the
  problem, I prefer use Gilead which allows me to use an existing code
  without duplicating data.
  If my model changes, I will not have to modify the DTO according to
  the modifications : only use Hibernate Tools to generate the new
  domain.

  Regards.

  On 11 mar, 14:49, Giuseppe La Scaleia glascal...@gmail.com wrote:

  Hi Oliver i suggest you to use Apache Dozer with Hibernate , that allows 
  you
  to create objects as a mirror of your model bean.
  For Information
   http://dozer.sourceforge.net/

  Regards Giuseppe
  2010/
  3/11 Olivier olivier.be...@gmail.com

  Hello,

  I finally solved the problem here :

 https://sourceforge.net/projects/gilead/forums/forum/868076/topic/358...

  Regards.

  On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:

  Hello,

  I am trying to integrate gilead in my GWT - Hibernate application. I
  followed this article to set up my project :

 http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib

  But at the compilation time I have the following error :

  [INFO] Compiling module fr.csie.Application
  [INFO]    Validating newly compiled units
  [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
  net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
  annotations/AnnotationsHelper.java'
  [INFO]          [ERROR] Line 3: The import java.beans cannot be
  resolved
  [INFO]          [ERROR] Line 4: The import java.beans cannot be
  resolved
  [INFO]          [ERROR] Line 5: The import java.beans cannot be
  resolved
  [INFO]          [ERROR] Line 6: The import java.beans cannot be
  resolved
  [INFO]          [ERROR] Line 7: The import java.lang.reflect cannot be
  resolved
  [INFO]          [ERROR] Line 213: Field cannot be resolved to a type
  [INFO]          [ERROR] Line 214: Field cannot be resolved to a type
  [INFO]          [ERROR] Line 248: BeanInfo cannot be resolved to a
  type
  [INFO]          [ERROR] Line 248: Introspector cannot be resolved
  [INFO]          [ERROR] Line 249: PropertyDescriptor cannot be
  resolved to a type
  [INFO]          [ERROR] Line 252: PropertyDescriptor cannot be
  resolved to a type
  [INFO]          [ERROR] Line 275: IntrospectionException cannot be
  resolved to a type
  [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
  net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
  pojo/gwt/LightEntity.java'
  [INFO]          [ERROR] Line 104: The return type is incompatible with
  ILightEntity.getProxyInformation(String)
  [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
  net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
  pojo/java5/legacy/LightEntity.java'
  [INFO]          [ERROR] Line 105: The return type is incompatible with
  ILightEntity.getProxyInformation(String)
  [INFO]    Finding entry point classes
  [INFO]       [ERROR] Unable to find type 'fr.csie.client.Application'
  [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
  [INFO]
  

  I am using Maven2 and here are my dependencies for using Gilead :

                  dependency
                          groupIdnet.sf.gilead/groupId
                          artifactIdadapter-core/artifactId
                          version1.2.3/version
                  /dependency
                  dependency
                          groupIdnet.sf.gilead/groupId
                          artifactIdgilead4gwt/artifactId
                          version1.3.0/version
                          typejar/type
                  /dependency
                  dependency
                          groupIdnet.sf.gilead/groupId
                          artifactIdgilead-hibernate/artifactId
                          typejar/type
                          version1.3.0/version
                  /dependency
                  dependency
                          

Re: GWT 2.0 + Hibernate + Gilead

2010-03-12 Thread Jeff Larsen
Instead of setting them to null, you could declare them as transient.
That would cause them to not be transported over the wire.

On Mar 12, 4:57 pm, andreas andreas.kn...@nikem.de wrote:
 I have used Gilead, too. First I was very happy with it as it saved me
 a lot of time.
 But when my application grew larger, I also experienced that in some
 situations it's reducing performance. Another reason to not use Gilead
 was that I started to set properties of my mapped entities to null
 which I didn't want to transport to the client (for example security
 issues). I think this is even worse than using DTOs.

 I have written a comment about the topic in this 
 blog:http://www.dotnetguru2.org/bmarchesson/index.php/2008/12/20/gilead_se...

 best regards

 Andreas

 On 12 Mrz., 21:38, Giuseppe La Scaleia glascal...@gmail.com wrote:



  Olivier ha scritto:

   Hi, thanks for your answer Giuseppe,

   I tried Dozer when I did not succeed in Gilead. But now I resolved the
   problem, I prefer use Gilead which allows me to use an existing code
   without duplicating data.
   If my model changes, I will not have to modify the DTO according to
   the modifications : only use Hibernate Tools to generate the new
   domain.

   Regards.

   On 11 mar, 14:49, Giuseppe La Scaleia glascal...@gmail.com wrote:

   Hi Oliver i suggest you to use Apache Dozer with Hibernate , that allows 
   you
   to create objects as a mirror of your model bean.
   For Information
    http://dozer.sourceforge.net/

   Regards Giuseppe
   2010/
   3/11 Olivier olivier.be...@gmail.com

   Hello,

   I finally solved the problem here :

  https://sourceforge.net/projects/gilead/forums/forum/868076/topic/358...

   Regards.

   On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:

   Hello,

   I am trying to integrate gilead in my GWT - Hibernate application. I
   followed this article to set up my project :

  http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib

   But at the compilation time I have the following error :

   [INFO] Compiling module fr.csie.Application
   [INFO]    Validating newly compiled units
   [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
   net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
   annotations/AnnotationsHelper.java'
   [INFO]          [ERROR] Line 3: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 4: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 5: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 6: The import java.beans cannot be
   resolved
   [INFO]          [ERROR] Line 7: The import java.lang.reflect cannot be
   resolved
   [INFO]          [ERROR] Line 213: Field cannot be resolved to a type
   [INFO]          [ERROR] Line 214: Field cannot be resolved to a type
   [INFO]          [ERROR] Line 248: BeanInfo cannot be resolved to a
   type
   [INFO]          [ERROR] Line 248: Introspector cannot be resolved
   [INFO]          [ERROR] Line 249: PropertyDescriptor cannot be
   resolved to a type
   [INFO]          [ERROR] Line 252: PropertyDescriptor cannot be
   resolved to a type
   [INFO]          [ERROR] Line 275: IntrospectionException cannot be
   resolved to a type
   [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
   net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
   pojo/gwt/LightEntity.java'
   [INFO]          [ERROR] Line 104: The return type is incompatible with
   ILightEntity.getProxyInformation(String)
   [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
   net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
   pojo/java5/legacy/LightEntity.java'
   [INFO]          [ERROR] Line 105: The return type is incompatible with
   ILightEntity.getProxyInformation(String)
   [INFO]    Finding entry point classes
   [INFO]       [ERROR] Unable to find type 'fr.csie.client.Application'
   [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
   [INFO]
   

   I am using Maven2 and here are my dependencies for using Gilead :

                   dependency
                           groupIdnet.sf.gilead/groupId
                           artifactIdadapter-core/artifactId
                           version1.2.3/version
                   /dependency
                   dependency
                           groupIdnet.sf.gilead/groupId
                           artifactIdgilead4gwt/artifactId
                           version1.3.0/version
                           typejar/type
                   /dependency
                   dependency
                           

Re: GWT 2.0 + Hibernate + Gilead

2010-03-11 Thread Olivier
Hello,

I finally solved the problem here :
https://sourceforge.net/projects/gilead/forums/forum/868076/topic/3585579/index/page/1

Regards.

On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:
 Hello,

 I am trying to integrate gilead in my GWT - Hibernate application. I
 followed this article to set up my project 
 :http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib

 But at the compilation time I have the following error :

 [INFO] Compiling module fr.csie.Application
 [INFO]    Validating newly compiled units
 [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
 net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
 annotations/AnnotationsHelper.java'
 [INFO]          [ERROR] Line 3: The import java.beans cannot be
 resolved
 [INFO]          [ERROR] Line 4: The import java.beans cannot be
 resolved
 [INFO]          [ERROR] Line 5: The import java.beans cannot be
 resolved
 [INFO]          [ERROR] Line 6: The import java.beans cannot be
 resolved
 [INFO]          [ERROR] Line 7: The import java.lang.reflect cannot be
 resolved
 [INFO]          [ERROR] Line 213: Field cannot be resolved to a type
 [INFO]          [ERROR] Line 214: Field cannot be resolved to a type
 [INFO]          [ERROR] Line 248: BeanInfo cannot be resolved to a
 type
 [INFO]          [ERROR] Line 248: Introspector cannot be resolved
 [INFO]          [ERROR] Line 249: PropertyDescriptor cannot be
 resolved to a type
 [INFO]          [ERROR] Line 252: PropertyDescriptor cannot be
 resolved to a type
 [INFO]          [ERROR] Line 275: IntrospectionException cannot be
 resolved to a type
 [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
 net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
 pojo/gwt/LightEntity.java'
 [INFO]          [ERROR] Line 104: The return type is incompatible with
 ILightEntity.getProxyInformation(String)
 [INFO]       [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
 net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
 pojo/java5/legacy/LightEntity.java'
 [INFO]          [ERROR] Line 105: The return type is incompatible with
 ILightEntity.getProxyInformation(String)
 [INFO]    Finding entry point classes
 [INFO]       [ERROR] Unable to find type 'fr.csie.client.Application'
 [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
 [INFO]
 

 I am using Maven2 and here are my dependencies for using Gilead :

                 dependency
                         groupIdnet.sf.gilead/groupId
                         artifactIdadapter-core/artifactId
                         version1.2.3/version
                 /dependency
                 dependency
                         groupIdnet.sf.gilead/groupId
                         artifactIdgilead4gwt/artifactId
                         version1.3.0/version
                         typejar/type
                 /dependency
                 dependency
                         groupIdnet.sf.gilead/groupId
                         artifactIdgilead-hibernate/artifactId
                         typejar/type
                         version1.3.0/version
                 /dependency
                 dependency
                         groupIdnet.sf.gilead/groupId
                         artifactIdhibernate-util/artifactId
                         typejar/type
                         version1.2.3/version
                 /dependency

 Could anybody help me to understand why I get that error please ?
 Thank you very much !

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



Re: GWT 2.0 + Hibernate + Gilead

2010-03-11 Thread Giuseppe La Scaleia
Hi Oliver i suggest you to use Apache Dozer with Hibernate , that allows you
to create objects as a mirror of your model bean.
For Information
 http://dozer.sourceforge.net/

Regards Giuseppe
2010/
3/11 Olivier olivier.be...@gmail.com

 Hello,

 I finally solved the problem here :

 https://sourceforge.net/projects/gilead/forums/forum/868076/topic/3585579/index/page/1

 Regards.

 On 9 mar, 10:54, Olivier olivier.be...@gmail.com wrote:
  Hello,
 
  I am trying to integrate gilead in my GWT - Hibernate application. I
  followed this article to set up my project :
 http://code.google.com/intl/fr/webtoolkit/articles/using_gwt_with_hib
 
  But at the compilation time I have the following error :
 
  [INFO] Compiling module fr.csie.Application
  [INFO]Validating newly compiled units
  [INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
  net/sf/gilead/adapter-core/1.2.3/adapter-core-1.2.3.jar!/net/sf/gilead/
  annotations/AnnotationsHelper.java'
  [INFO]  [ERROR] Line 3: The import java.beans cannot be
  resolved
  [INFO]  [ERROR] Line 4: The import java.beans cannot be
  resolved
  [INFO]  [ERROR] Line 5: The import java.beans cannot be
  resolved
  [INFO]  [ERROR] Line 6: The import java.beans cannot be
  resolved
  [INFO]  [ERROR] Line 7: The import java.lang.reflect cannot be
  resolved
  [INFO]  [ERROR] Line 213: Field cannot be resolved to a type
  [INFO]  [ERROR] Line 214: Field cannot be resolved to a type
  [INFO]  [ERROR] Line 248: BeanInfo cannot be resolved to a
  type
  [INFO]  [ERROR] Line 248: Introspector cannot be resolved
  [INFO]  [ERROR] Line 249: PropertyDescriptor cannot be
  resolved to a type
  [INFO]  [ERROR] Line 252: PropertyDescriptor cannot be
  resolved to a type
  [INFO]  [ERROR] Line 275: IntrospectionException cannot be
  resolved to a type
  [INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
  net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
  pojo/gwt/LightEntity.java'
  [INFO]  [ERROR] Line 104: The return type is incompatible with
  ILightEntity.getProxyInformation(String)
  [INFO]   [ERROR] Errors in 'jar:file:/home/admin/.m2/repository/
  net/sf/gilead/gilead-core/1.3.0/gilead-core-1.3.0.jar!/net/sf/gilead/
  pojo/java5/legacy/LightEntity.java'
  [INFO]  [ERROR] Line 105: The return type is incompatible with
  ILightEntity.getProxyInformation(String)
  [INFO]Finding entry point classes
  [INFO]   [ERROR] Unable to find type 'fr.csie.client.Application'
  [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
  [INFO]
  
 
  I am using Maven2 and here are my dependencies for using Gilead :
 
  dependency
  groupIdnet.sf.gilead/groupId
  artifactIdadapter-core/artifactId
  version1.2.3/version
  /dependency
  dependency
  groupIdnet.sf.gilead/groupId
  artifactIdgilead4gwt/artifactId
  version1.3.0/version
  typejar/type
  /dependency
  dependency
  groupIdnet.sf.gilead/groupId
  artifactIdgilead-hibernate/artifactId
  typejar/type
  version1.3.0/version
  /dependency
  dependency
  groupIdnet.sf.gilead/groupId
  artifactIdhibernate-util/artifactId
  typejar/type
  version1.2.3/version
  /dependency
 
  Could anybody help me to understand why I get that error please ?
  Thank you very much !

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



-- 
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 2.0.x and Maven

2010-03-08 Thread Nathan Wells
You should also be aware of the gwt-maven-plugin here:

http://mojo.codehaus.org/gwt-maven-plugin/

That site has some good examples with archetypes to get you up and
running.

On Mar 7, 7:08 pm, Ignat Alexeyenko ignatalexeye...@gmail.com wrote:
 Hi, Steve!

 I'm using maven with GWT2.0 but I'm not using eclipse.
 Actually before every project launch my IDE calls 'package' target of maven
 lifecycle.

 You can view pom.xml file configuration sample.
 Follow the instructions to checkout the 
 project:http://sourceforge.net/projects/simpleworklog/develop

 --
 Kind regards,
 Ignat Alexeyenko.



 On Sun, Mar 7, 2010 at 8:19 PM, Steve steveahlst...@gmail.com wrote:
  After a few days of confusion, I thought I'd ask here ...

  What are the parts and pieces I need to set up a GTW/Maven project?

  I've got Eclipse 3.5.2, m2eclipse 0.10, the beta GPE 1.3 plugin, what
  else?  What's the sequence of events I need to do to get a working
  project going?

  Steve

  --
  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 2.0.x and Maven

2010-03-07 Thread Ignat Alexeyenko
Hi, Steve!

I'm using maven with GWT2.0 but I'm not using eclipse.
Actually before every project launch my IDE calls 'package' target of maven
lifecycle.

You can view pom.xml file configuration sample.
Follow the instructions to checkout the project:
http://sourceforge.net/projects/simpleworklog/develop

--
Kind regards,
Ignat Alexeyenko.


On Sun, Mar 7, 2010 at 8:19 PM, Steve steveahlst...@gmail.com wrote:

 After a few days of confusion, I thought I'd ask here ...

 What are the parts and pieces I need to set up a GTW/Maven project?

 I've got Eclipse 3.5.2, m2eclipse 0.10, the beta GPE 1.3 plugin, what
 else?  What's the sequence of events I need to do to get a working
 project going?

 Steve

 --
 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 2.0 is unusable in IE7

2010-02-26 Thread Joel Webber
I can assure you that this is not a general problem -- we've built plenty of
applications (including the Mail sample) which work fine using a structure
very much like the one you describe. If it's only happening on IE, there's a
very good probability that you're running using a quirks-mode doctype (i.e.,
no !doctype html). If that fixes the problem, would you please update
issue 4532 to reflect that?

On Fri, Feb 26, 2010 at 9:45 AM, nagin naginkoth...@gmail.com wrote:

 I am developing Web application using GWT 2.0. I am using Layout panel
 which is added to RootLayout panel.

 In IE 7 when we open dialog box, popup panel, menu item or date picker
 or any thing that pop ups , then all widgets  on the screen except
 popup disappears . when these pop ups are closed then everything
 reappears. This is very irritating to user and make application
 unusable . I had open issue #4532 a month back, but nobody from GWT
 team  have attended or accepted and looked into it yet . It is very
 surprising that such critical issue is not been attended to. I hope
 that GWT team will look into it and try to resolve this earliest.

 thanks

 Nagin


-- 
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 2.0 is unusable in IE7

2010-02-26 Thread Stefano Ciccarelli
I have the same problem described here and I can assure you that I'm using
the standard mode. The problem is only with IE7 and I've solved it using the
popup implementation for IE8 (without iframe) in IE6/IE7 dropping support
for IE6.


On Fri, Feb 26, 2010 at 7:46 PM, Joel Webber j...@google.com wrote:

 I can assure you that this is not a general problem -- we've built plenty
 of applications (including the Mail sample) which work fine using a
 structure very much like the one you describe. If it's only happening on IE,
 there's a very good probability that you're running using a quirks-mode
 doctype (i.e., no !doctype html). If that fixes the problem, would you
 please update issue 4532 to reflect that?

 On Fri, Feb 26, 2010 at 9:45 AM, nagin naginkoth...@gmail.com wrote:

 I am developing Web application using GWT 2.0. I am using Layout panel
 which is added to RootLayout panel.

 In IE 7 when we open dialog box, popup panel, menu item or date picker
 or any thing that pop ups , then all widgets  on the screen except
 popup disappears . when these pop ups are closed then everything
 reappears. This is very irritating to user and make application
 unusable . I had open issue #4532 a month back, but nobody from GWT
 team  have attended or accepted and looked into it yet . It is very
 surprising that such critical issue is not been attended to. I hope
 that GWT team will look into it and try to resolve this earliest.

 thanks

 Nagin


  --
 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 2.0 as general purpose Java to Javascript compiler

2010-02-26 Thread Fabiano
I -suppose- you need cross site linker, the magic words are cross
site linker or xs linker, let's serach into this forum and into GWT
ocumentation.
 there are few rows into the documentation too (this feature is not so
documented) .
+ by compiling with xs linker you are going to loose few features.
(split load?(don't remind the exact name)
This linker creates a javascript inside the current context, no need
of iframe etc...
This is  way to solve cross site application loading but in your case
could solve your 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.



Re: GWT 2.0 plugin for Firefox 3.6

2010-02-23 Thread kolstae
Thanks Lukas! Worked like charm!

On Feb 19, 6:07 pm, Thad thad.humphr...@gmail.com wrote:
 Thanks, Lukas. That's it. I've built 1.0.7591M.etc (the timestamp) in
 SuSELinux11.2, and installed it successfully inFirefox3.6.  This
 is working with GWT 2.0.2.

 On Feb 18, 5:06 pm, Lukas Laag laa...@gmail.com wrote:



  Actually, you do not want to use the version of the SDK files which
  come with your distribution. The Makefile is designed to build the
  code using the gecko-1.9.2 which is available from the GWT svn
  repository (see:http://google-web-toolkit.googlecode.com/svn/plugin-sdks/).
  Sorry I forgot to mention that.

  So in the same directory where your checked out the GWT trunk, you
  should also do:

  svn 
  cohttp://google-web-toolkit.googlecode.com/svn/plugin-sdks/gecko-sdks/g...
  plugin-sdks/gecko-sdks/gecko-1.9.2

  On Feb 18, 9:20 pm, Thad thad.humphr...@gmail.com wrote:

   I've gotFirefoxinstalled at /opt/firefox, so in trunk/plugins/
   xpcomand/Makefile I set DEFAULT_FIREFOX_LIBS to /opt/firefox.

   On my system (SuSELinux11.2), theXPCOMfiles are in /usr/include/
   xulrunner-1.9.1.7/unstable
   I must be brain-dead today, but I'm not seeing where to set that in
   the Makefile.

   On Feb 17, 3:40 am, Lukas Laag laa...@gmail.com wrote:

The version in the trunk works fine with FF3.6.
I had no problem building it.
+ Check out the source and tools from the svn repository as described
in:http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
+ Go to trunk/plugins/xpcomand type: make ARCH=x86 BROWSER=ff36
This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
gwt-dev-plugin.xpi
+ In FF3.6, go to File  Open File... and open the .xpi resulting from
the build

Beware though no to accept updates to v. 1.0.7511 since as you noticed
this version does not work with FF36

On Feb 16, 8:05 pm, Thad thad.humphr...@gmail.com wrote:

 When will this be available?  I have v. 1.0.7511.  This works with
Firefox3.5.7 but will not work with3.6.

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

2010-02-22 Thread Rajeev Dayal
Hi Paul,

Hotswapping should work if the following are true:

1) Your project's output folder is set to war/WEB-INF/classes (as all
WAR-based projects created with GPE do)
2) Your GPE launch configuration uses the embedded server (i.e. not
-noserver mode)
3) You run the GPE launch configuration in DEBUG mode
4) Your project has the Build Automatically option turned on

Let me know if you see different results.


Rajeev

On Fri, Feb 19, 2010 at 3:09 AM, Paul S paulsschw...@gmail.com wrote:

 Rajeev, please elaborate on this. I thought is was just part of the
 fact that we had to restart the server if functionality there changed.
 Would be very nice if server code could be hot swapped. Naturally I
 would think that changes to web.xml and so on would require a server
 restart, but that's to be expected. So you are saying that normal Java
 code in the server side servlets can be changed? Please give a bit
 more instruction on how to do this (I'm using GWT 2 in Eclipse).

 Thanks
 Paul

 On Feb 18, 7:27 pm, Rajeev Dayal rda...@google.com wrote:
  How are you restarting the server? Are you using the Restart Server
 option
  in the Development Mode view?
 
  Also, if you are running your launch configuration using Debug (not
 Run),
  and you've set Eclipse to Build Automatically, then server-side changes
  should be hotswapped in most cases.
 
 
 
  On Thu, Feb 18, 2010 at 10:44 AM, paata paata...@gmail.com wrote:
   Hi all,
   I'm newbie on gwt.
   I've eclipse gwt project with smartgwt.
 
   When i make changes on client side code, changes appeard after saving,
   but when i make changes on server side (change  anything into servlet
   method ) it is required to restart server.
   I need redeployment not server restart
   Restart needs long time, approximately 3-4 minute.
any idea?
 
   regards
   paata
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google Web Toolkit group.
   To post to this group, send email to
 google-web-tool...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs
 cr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-web-toolkit?hl=en.

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



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



Re: GWT 2.0 and Eclipse, Project redeployment

2010-02-22 Thread Chris Lercher
Keep in mind, that it hot-swaps code, but doesn't rebuild the objects.
This may be confusing, because when something on the client side
changes, you typically reload the page - thereby re-initializing all
instances.

On the server side you don't do that when hot-swapping. So (at least
for me) hot-swapping of server side code works. But keep in mind, that
this is not the same as a server restart. e.g. if you change a
constructor, it won't affect already constructed instances.

Chris

On Feb 22, 6:57 pm, Rajeev Dayal rda...@google.com wrote:
 Hi Paul,

 Hotswapping should work if the following are true:

 1) Your project's output folder is set to war/WEB-INF/classes (as all
 WAR-based projects created with GPE do)
 2) Your GPE launch configuration uses the embedded server (i.e. not
 -noserver mode)
 3) You run the GPE launch configuration in DEBUG mode
 4) Your project has the Build Automatically option turned on

 Let me know if you see different results.

 Rajeev



 On Fri, Feb 19, 2010 at 3:09 AM, Paul S paulsschw...@gmail.com wrote:
  Rajeev, please elaborate on this. I thought is was just part of the
  fact that we had to restart the server if functionality there changed.
  Would be very nice if server code could be hot swapped. Naturally I
  would think that changes to web.xml and so on would require a server
  restart, but that's to be expected. So you are saying that normal Java
  code in the server side servlets can be changed? Please give a bit
  more instruction on how to do this (I'm using GWT 2 in Eclipse).

  Thanks
  Paul

  On Feb 18, 7:27 pm, Rajeev Dayal rda...@google.com wrote:
   How are you restarting the server? Are you using the Restart Server
  option
   in the Development Mode view?

   Also, if you are running your launch configuration using Debug (not
  Run),
   and you've set Eclipse to Build Automatically, then server-side changes
   should be hotswapped in most cases.

   On Thu, Feb 18, 2010 at 10:44 AM, paata paata...@gmail.com wrote:
Hi all,
I'm newbie on gwt.
I've eclipse gwt project with smartgwt.

When i make changes on client side code, changes appeard after saving,
but when i make changes on server side (change  anything into servlet
method ) it is required to restart server.
I need redeployment not server restart
Restart needs long time, approximately 3-4 minute.
 any idea?

regards
paata

--
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 2.0 and Eclipse, Project redeployment

2010-02-19 Thread Paul S
Rajeev, please elaborate on this. I thought is was just part of the
fact that we had to restart the server if functionality there changed.
Would be very nice if server code could be hot swapped. Naturally I
would think that changes to web.xml and so on would require a server
restart, but that's to be expected. So you are saying that normal Java
code in the server side servlets can be changed? Please give a bit
more instruction on how to do this (I'm using GWT 2 in Eclipse).

Thanks
Paul

On Feb 18, 7:27 pm, Rajeev Dayal rda...@google.com wrote:
 How are you restarting the server? Are you using the Restart Server option
 in the Development Mode view?

 Also, if you are running your launch configuration using Debug (not Run),
 and you've set Eclipse to Build Automatically, then server-side changes
 should be hotswapped in most cases.



 On Thu, Feb 18, 2010 at 10:44 AM, paata paata...@gmail.com wrote:
  Hi all,
  I'm newbie on gwt.
  I've eclipse gwt project with smartgwt.

  When i make changes on client side code, changes appeard after saving,
  but when i make changes on server side (change  anything into servlet
  method ) it is required to restart server.
  I need redeployment not server restart
  Restart needs long time, approximately 3-4 minute.
   any idea?

  regards
  paata

  --
  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 2.0 and Eclipse, Project redeployment

2010-02-18 Thread Rajeev Dayal
How are you restarting the server? Are you using the Restart Server option
in the Development Mode view?

Also, if you are running your launch configuration using Debug (not Run),
and you've set Eclipse to Build Automatically, then server-side changes
should be hotswapped in most cases.

On Thu, Feb 18, 2010 at 10:44 AM, paata paata...@gmail.com wrote:

 Hi all,
 I'm newbie on gwt.
 I've eclipse gwt project with smartgwt.

 When i make changes on client side code, changes appeard after saving,
 but when i make changes on server side (change  anything into servlet
 method ) it is required to restart server.
 I need redeployment not server restart
 Restart needs long time, approximately 3-4 minute.
  any idea?


 regards
 paata

 --
 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 2.0 plugin for Firefox 3.6

2010-02-18 Thread Thad
I've got Firefox installed at /opt/firefox, so in trunk/plugins/
xpcomand/Makefile I set DEFAULT_FIREFOX_LIBS to /opt/firefox.

On my system (SuSE Linux 11.2), the XPCOM files are in /usr/include/
xulrunner-1.9.1.7/unstable
I must be brain-dead today, but I'm not seeing where to set that in
the Makefile.

On Feb 17, 3:40 am, Lukas Laag laa...@gmail.com wrote:
 The version in the trunk works fine with FF3.6.
 I had no problem building it.
 + Check out the source and tools from the svn repository as described
 in:http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
 + Go to trunk/plugins/xpcomand type: make ARCH=x86 BROWSER=ff36
 This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
 gwt-dev-plugin.xpi
 + In FF3.6, go to File  Open File... and open the .xpi resulting from
 the build

 Beware though no to accept updates to v. 1.0.7511 since as you noticed
 this version does not work with FF36

 On Feb 16, 8:05 pm, Thad thad.humphr...@gmail.com wrote:

  When will this be available?  I have v. 1.0.7511.  This works with
  Firefox 3.5.7 but will not work with 3.6.

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

2010-02-18 Thread Lukas Laag
Actually, you do not want to use the version of the SDK files which
come with your distribution. The Makefile is designed to build the
code using the gecko-1.9.2 which is available from the GWT svn
repository (see: http://google-web-toolkit.googlecode.com/svn/plugin-sdks/).
Sorry I forgot to mention that.

So in the same directory where your checked out the GWT trunk, you
should also do:

svn co 
http://google-web-toolkit.googlecode.com/svn/plugin-sdks/gecko-sdks/gecko-1.9.2
plugin-sdks/gecko-sdks/gecko-1.9.2


On Feb 18, 9:20 pm, Thad thad.humphr...@gmail.com wrote:
 I've got Firefox installed at /opt/firefox, so in trunk/plugins/
 xpcomand/Makefile I set DEFAULT_FIREFOX_LIBS to /opt/firefox.

 On my system (SuSE Linux 11.2), the XPCOM files are in /usr/include/
 xulrunner-1.9.1.7/unstable
 I must be brain-dead today, but I'm not seeing where to set that in
 the Makefile.

 On Feb 17, 3:40 am, Lukas Laag laa...@gmail.com wrote:

  The version in the trunk works fine with FF3.6.
  I had no problem building it.
  + Check out the source and tools from the svn repository as described
  in:http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
  + Go to trunk/plugins/xpcomand type: make ARCH=x86 BROWSER=ff36
  This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
  gwt-dev-plugin.xpi
  + In FF3.6, go to File  Open File... and open the .xpi resulting from
  the build

  Beware though no to accept updates to v. 1.0.7511 since as you noticed
  this version does not work with FF36

  On Feb 16, 8:05 pm, Thad thad.humphr...@gmail.com wrote:

   When will this be available?  I have v. 1.0.7511.  This works with
   Firefox 3.5.7 but will not work with 3.6.



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

2010-02-18 Thread paata
uupss,
It works,
My project wasn't running using debug.


Thank you very much.


Regards,
Paata Lominadze.

-- 
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 2.0 plugin for Firefox 3.6

2010-02-17 Thread Lukas Laag
The version in the trunk works fine with FF3.6.
I had no problem building it.
+ Check out the source and tools from the svn repository as described
in: http://code.google.com/webtoolkit/makinggwtbetter.html#checkingout
+ Go to trunk/plugins/xpcom and type: make ARCH=x86 BROWSER=ff36
This will build a plugin in the directory trunk/plugins/xpcom/prebuilt/
gwt-dev-plugin.xpi
+ In FF3.6, go to File  Open File... and open the .xpi resulting from
the build

Beware though no to accept updates to v. 1.0.7511 since as you noticed
this version does not work with FF36


On Feb 16, 8:05 pm, Thad thad.humphr...@gmail.com wrote:
 When will this be available?  I have v. 1.0.7511.  This works with
 Firefox 3.5.7 but will not work with 3.6.

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

2010-02-17 Thread Thomas Broyer

On Feb 16, 8:05 pm, Thad thad.humphr...@gmail.com wrote:
 When will this be available?  I have v. 1.0.7511.  This works with
 Firefox 3.5.7 but will not work with 3.6.

Just a clarification (I think): 1.0.7511 works very well in FF3.6 on
Windows (I'm using it). It might not work on Linux though:
http://code.google.com/p/google-web-toolkit/issues/detail?id=4141

-- 
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 2.0 Upgrade Problem

2010-02-10 Thread Christian Goudreau
I have now a similar problem... I had an enormous bug and I switched to
Eclipse EE 64bit. Since then, it's like I only have half of the google
plugin, I have no contextual menus when I right click in project explorer
and some other minor issues.

Christian

On Tue, Jan 26, 2010 at 10:51 AM, m.mil...@newelements.de 
m.mil...@newelements.de wrote:

 hi, i´m impressed about the quick reply!

 at first i develop the application on jboss 5.1.0. everything works
 fine in development mode but since i tried it on the joss i have a
 couple of problems.

 so the first application is the name of the application.
 the second application is the name of the directory where the
 compiled js files are placed.
 http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA493...

 i absolutely aggree with you that my problem is caused by mixing up
 something :-)
 in fact i tried mixing GWT, Isomorphic SmartGWT and CometServlet.
 I have one main GWT Project and a couple of java projects to create
 some sort of moduled structure.

 i use smartgwt for the user interface and gwt for the client server
 communication with the server side servlet.

 in fact i´m not absolutely clear if my problems are caused by
 compiling the gwt or the smartgwt parts.

 but as soon as i can localize the code that causes the problems i will
 post it here.


 On 26 Jan., 15:37, Chris Ramsdale cramsd...@google.com wrote:
  On Tue, Jan 26, 2010 at 6:21 AM, m.mil...@newelements.de 
 
  m.mil...@newelements.de wrote:
   No, i definetly mean not the XYZ.nochache.js.
 
   Here is a line from my firebug:
  http://localhost:8080/application/64CE9F3B21EDFDB2ADBA49308C361972.ca.
 ..
 
   this is what gwt tries to load, but the file is definetly reachable
   under this path:
 
  http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA493.
 ..
 
  Are you trying to run this under an external app server (e.g. Tomcat), or
  have you simply changed the port that the embedded server uses? If you're
  deploying your app to an external app server, I can see how you might end
 up
  with an application/application path (although I don't know how correct
 it
  would be).
 
  Let's take a step back, can you describe the directory structure that you
  see after you run the GWT compiler?
 
 
 
   i think the gwt compiler has a problem with it´s pathes and the
   folders within the war file.
   i have a new problem, when i compile the application and start it at
   the application server all pathes to the images folder are wrong, but
   this time the name of the application instance is missing in the image
   pathes.
 
   i´m absolutely sure both problems had nothing to do with the upgrade
   but are compiler errors. i had similar problems before when ich made
   an if statement on an Tree.
 
   my original code was something like:
   if ( tree != null )
 
   that caused compiler error that have not been displayed but the
   XYZ.cache.js couldn´t been found
 
   wehn ich changed the line to:
   if ( tree.getRoot() != null )
 
   the compiled code worked.
 
  I was able to successfully run the following code in both Development and
  Web mode:
 
  public class Test implements EntryPoint {
 
public void onModuleLoad() {
  Tree t = new Tree();
  TreeItem ti = null;
 
  if (ti != null) {
 
  }
  else {
ti = new TreeItem(hello there);
  }
 
  t.addItem(ti);
  RootPanel.get().add(t);
}
 
  }
 
  Is there something different between your app and the above snippet?
 
  So i guess, you google folks have to do a coulpe of fixes to your
 
   compiler :-)
 
  I think several, mutually exclusive issues are being confused here. Would
  you mind sending me your project, or a sample project that reproduces the
  issues you mention above?
 
   On 11 Jan., 20:37, Chris Ramsdale cramsd...@google.com wrote:
I second Rajeev's comments, there are a couple of oddities that you
 may
experience when upgrading.
 
That said, I'm wondering about the following (@m.militz):
 
1. I'm assuming you meant XYZ.nocache.js and not XYZ.cache.js. Is
 this
correct?
2. While GWT does produce a .html when you create a new project, it
 does
   not
create this file every time, and it does not alter it once created.
 Put
another way, I don't believe that GWT is mucking with your
 Project.html
   file
(not even during upgarde). Is your script tag, within Project.html,
incorrect for some reason? What happens if you simply change it to
   reference
module/module.nocache.js?
 
- Chris
 
On Mon, Jan 11, 2010 at 12:33 PM, Rajeev Dayal rda...@google.com
   wrote:
 Hi,
 
 Have you seen an instance where GWT tries to load the nocache.js
 file
 directly from the root of your war folder? What does the HTTP GET
   request
 look like?
 
 There is definitely a bug in GWT when switching between SDKs. The
   problem
 is twofold:
 
 1) The hosted.html file does not get regenerated. The 

Re: GWT 2.0 required Tomcat version?

2010-02-10 Thread dhoffer
Let me clarify, I'll be using GWT RPC feature for server side
communicaiton.

On Feb 10, 12:44 pm, dhoffer dhoff...@gmail.com wrote:
 What's the oldest version of Tomcat that will run GWT 2.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: GWT 2.0 internet explorer 7 devmode issue?

2010-02-09 Thread fark
I tried your suggestion and it still does not work in ie dev mode. It
works fine in chrome and ff dev mode (and ie compiled). Ie looks like
it is still reposting the url and reloading the application.

Let me elaborate more on the issue I have 2 cases which are failing in
ie dev mode. One is the link above, and the other is a smart gwt combo
box.
The combo box dropdown arrow is a image link and when I click on it,
the application reloads with the same behavior as above. note: the
combo box works fine in chrome and ff.

thanks


On Feb 4, 5:21 am, Thomas Broyer t.bro...@gmail.com wrote:
 On Feb 2, 10:09 pm, fark ffej.sak...@gmail.com wrote:

  I'm having difficulties with ie7 devmode on windows xp and gwt 2.0.
  Basically if I click a link in ie while running the app, the url is
  replaced and the application reloads if there are history tokens.

  A simple test showing the url modification (note this does not reload
  the app as there are no tokens, but does show the url modification I
  am seeing) . Create a generic test application using eclipse gwt
  plugin and add this code to onModuleLoad()

                  StringBuilder htmlString = new StringBuilder(
                                  ul id='breadcrumb'
                                                  + lia href='#' 
  onclick='javascript:navigateTo(\HOME
  \);return false;'

 onclick='navigateTo(\HOME\);return false;'

 Not sure if it'll fix your issue, but using javascript: within
 event attributes isn't even supposed 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.



Re: GWT 2.0 JPA hibernate enhanced

2010-02-07 Thread Thomas Broyer


On Feb 7, 8:17 am, PierreR p.radermec...@gmail.com wrote:
 I can be a little more precise here.

 GWT 2.0  will probably correctly serialize enhanced classes. But there
 are case such as for List where Hibernate uses a PersistentBag to
 implement List.

Hibernate doesn't do enhanced classes, or rather it does it on the
fly. That's why (AFAIK) Gilead or similar solutions are needed.
If you wonder what enhanced classes then means, have a look at
DataNucleus: 
http://www.datanucleus.org/products/accessplatform/bytecode_enhancement.html
DataNucleus uses a simple ArrayList, which GWT knows how to serialize.

I just did a prototype with DataNucleus (JDO though, not JPA, but it
makes no difference in DataNucleus actually) and it just works. I've
never used Hibernate in a GWT context though, so I cannot compare.

-- 
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 2.0 JPA hibernate enhanced

2010-02-07 Thread stam
I've actually used both and frankly I have been pretty disappointed
with DataNucleus (the JDO/JPA impl that comes with the app engine).
Although using JDO annotations on datanucleus was successful from a
POC point of view, but I couldn't for the love of god get the POJO
attach/detach mechanism to work, something that is crucial when you
have to send objects down to the client, have them sent back with
changes and updated into the datastore. The testcase posted on
datanucleus' website didn't work for me for this scenario and no one
on their forum could advice me on why it was failing.

I've hence abandoned datanucleus for hibernate + gilead. Hibernate
supports JPA annotations as well along with some extentions. I am a
happy clam now :)

The current roadblock I see with GWt and the data model is the absence
of a data binding framework that I can use to bind POJOs to elements
such as grid/tree etc. If I find something that does that (and is
freeware), I'm going to send the author a box of chocolates.

On Feb 7, 2:17 am, PierreR p.radermec...@gmail.com wrote:
 I can be a little more precise here.

 GWT 2.0  will probably correctly serialize enhanced classes. But there
 are case such as for List where Hibernate uses a PersistentBag to
 implement List.

 At that point, GWT will not be able to serialize/deserialize the class
 containing the List field.

 Is this right ?

 Thanks

 On Feb 6, 12:03 pm, PierreR p.radermec...@gmail.com wrote:



  Hello,

  I am still very confused about the enhanced serialized class issue
  in GWT version 2.0.

  I would like to use GWT for a CRUD application. One of the advantages
  I can see over Flex, is the possibility to use shared entity java pojo
  both on the client (detached) and the server. I don't want to use DTO
  (even if there are generated with Dozer) or Gilead. The French book
  Programmation GWT 2 seems to say it does not work as is while
  Google help seems to say the issue has been fixed in 2.0.

  I know there is a solution called objectify for the App Engine but I
  am using JPA/hibernate right now.

  Thanks for your 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 2.0 with PHP on apache2 (xampp)

2010-02-07 Thread Jeff Chimene
On Sat, Feb 6, 2010 at 9:43 PM, PC_Nerd isjackawes...@gmail.com wrote:

 Hi,

 I'm not sure I understand correctly which parts of what url's are used
 for the FF plugin.

The stuff after the ?


 From what I can read into the error message above ( from apache's
 error.log) the SampleApplication.html is found, and it makes a
 reference or call to this file/executable/thing named
 sampleapplication which is in ./  yes?


If that's C:/xampp/htdocs/sampleapplication/,  then yes. I think there's
also a filename case matching error. However, you say that the basic page is
rendered, so it's obviously finding something.


 This unknown thing is then not found, but is this the part where the
 rest of the url is swallowed by the FF plugin?


Apache doesn't use the URL query compnent to find the file, it uses the path
component.


 I'm certain that the
 SampleApplication.html is found - all of the HTML is rendered but the
 locations where the button/ui from GWT are added to the page, none of
 these GWT elements are rendered/created.

 If this is the case then what am I missing in my directory?  The
 current file list is:

 hosted.html
 response.php
 SampleApplication.css
 SampleApplication.html
 sapleapplication.nocache.js


You're missing the stuff in step 4 from the URL mentioned earlier

 Compile your application once using the ant build target. Ideally, you can
 use GWT's -war option to generate output files directly into your external
 server's static content folder. Otherwise, you'll need to copy the the GWT
 output folder from war/moduleName to your external server's static
 content.


-- 
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 2.0 with PHP on apache2 (xampp)

2010-02-07 Thread PC_Nerd
Yay!!!  working!

Thankyou soo much.

It was that /SampleApplication.html is actually meant to be in  ../
compared to the compiled gwt code... so when I placed it all in
SampleApplication/  it was actually requesting /SampleApplicaton/
sampleapplication/sampleapplication.nocache.js - therefore causing a
404 in access.log.

Is there any way for me to set it that it is all in the same
directory, ie that I dont have to have a SampleApplication/  ?

Thanks,
PC_Nerd

On Feb 8, 3:06 am, Jeff Chimene jchim...@gmail.com wrote:
 On Sat, Feb 6, 2010 at 9:43 PM, PC_Nerd isjackawes...@gmail.com wrote:
  Hi,

  I'm not sure I understand correctly which parts of what url's are used
  for the FF plugin.

 The stuff after the ?



  From what I can read into the error message above ( from apache's
  error.log) the SampleApplication.html is found, and it makes a
  reference or call to this file/executable/thing named
  sampleapplication which is in ./  yes?

 If that's C:/xampp/htdocs/sampleapplication/,  then yes. I think there's
 also a filename case matching error. However, you say that the basic page is
 rendered, so it's obviously finding something.

  This unknown thing is then not found, but is this the part where the
  rest of the url is swallowed by the FF plugin?

 Apache doesn't use the URL query compnent to find the file, it uses the path
 component.

  I'm certain that the
  SampleApplication.html is found - all of the HTML is rendered but the
  locations where the button/ui from GWT are added to the page, none of
  these GWT elements are rendered/created.

  If this is the case then what am I missing in my directory?  The
  current file list is:

  hosted.html
  response.php
  SampleApplication.css
  SampleApplication.html
  sapleapplication.nocache.js

 You're missing the stuff in step 4 from the URL mentioned earlier

  Compile your application once using the ant build target. Ideally, you can
  use GWT's -war option to generate output files directly into your external
  server's static content folder. Otherwise, you'll need to copy the the GWT
  output folder from war/moduleName to your external server's static
  content.

-- 
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 2.0 with PHP on apache2 (xampp)

2010-02-06 Thread PC_Nerd
Hi,

I've received this entry in my error.log from apache when I attempt to
load the developer mode url/page.

[Sun Feb 07 00:18:26 2010] [error] [client 127.0.0.1] File does not
exist: C:/xampp/htdocs/sampleapplication/sampleapplication, referer:
http://localhost/SampleApplication/SampleApplication.html?gwt.codesvr=192.168.0.10:9997

There is obviously no application/executable/file located at said
location, however I do not know what is meant to be there to actually
run.

Thanks,
PC_Nerd

On Feb 6, 3:28 am, Jeff Chimene jchim...@gmail.com wrote:
 On 02/04/2010 06:46 PM, PC_Nerd wrote:



  Hi,

  I've been playing with GWT and managed to get a basic XML request
  working to response.xml.  However after reading through
 http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompilin...
  I'm slightly confused as to whether or not this will allow me to run
  my PHP from apache, and still be able to serve that content to the GWT
  app.

  When requesting response.xml ( which is just plain xml, no server side
  code at all) from a jetty instance, default setup It all works...
  However the app loads when -noserver is added, but the request does
  not complete ( response.getStatusCode() is 0).

  a)   does response.getStatusCode() ==0 mean that there was no response
  at all?
  b)   is there any way to get PHP content(JSON or XML) served from eg
  127.0.0.1:80 where the app is intejected through the browser plugin
  from 9997?  

 Sure. Many on this list test using this technique. I don't know how many
 use XAMPP.

 You should be using a URL like

 http://127.0.0.1/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

 You don't need 80, as that's the default. When you're talking to
 Jetty, the URL will usually be

 http://127.0.0.1:/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

 I suspect that what I'm running into is a SOP issue, but

  the SOP I'm catching is not thrown/displayed

 No, that's not the problem.

  Thanks for any ideas on how to get PHP backend running.

 Check your Apache access/error logs to see if there's anything interesting.

-- 
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 2.0 with PHP on apache2 (xampp)

2010-02-06 Thread Jeff Chimene
On Sat, Feb 6, 2010 at 6:26 AM, PC_Nerd isjackawes...@gmail.com wrote:

 Hi,

 I've received this entry in my error.log from apache when I attempt to
 load the developer mode url/page.

 [Sun Feb 07 00:18:26 2010] [error] [client 127.0.0.1] File does not
 exist: C:/xampp/htdocs/sampleapplication/sampleapplication, referer:

 http://localhost/SampleApplication/SampleApplication.html?gwt.codesvr=192.168.0.10:9997

 There is obviously no application/executable/file located at said
 location, however I do not know what is meant to be there to actually
 run.

 Thanks,
 PC_Nerd


The  Debugging and Compling link you referred to earlier describes what
must go into that directory. According to your Apache configuration, that is
the location in which Apache expects to find SampleApplication.html. Did you
copy the files to that directory?

The rest of the path info is swallowed by the Google FF plugin and used to
make a connection with the runtime debugging session.


 On Feb 6, 3:28 am, Jeff Chimene jchim...@gmail.com wrote:
  On 02/04/2010 06:46 PM, PC_Nerd wrote:
 
 
 
   Hi,
 
   I've been playing with GWT and managed to get a basic XML request
   working to response.xml.  However after reading through
  http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompilin.
 ..
   I'm slightly confused as to whether or not this will allow me to run
   my PHP from apache, and still be able to serve that content to the GWT
   app.
 
   When requesting response.xml ( which is just plain xml, no server side
   code at all) from a jetty instance, default setup It all works...
   However the app loads when -noserver is added, but the request does
   not complete ( response.getStatusCode() is 0).
 
   a)   does response.getStatusCode() ==0 mean that there was no response
   at all?
   b)   is there any way to get PHP content(JSON or XML) served from eg
   127.0.0.1:80 where the app is intejected through the browser plugin
   from 9997?
 
  Sure. Many on this list test using this technique. I don't know how many
  use XAMPP.
 
  You should be using a URL like
 
  http://127.0.0.1/MyWebPage.html?gwt.codesvr=127.0.0.1:9997
 
  You don't need 80, as that's the default. When you're talking to
  Jetty, the URL will usually be
 
  http://127.0.0.1:/MyWebPage.html?gwt.codesvr=127.0.0.1:9997
 
  I suspect that what I'm running into is a SOP issue, but
 
   the SOP I'm catching is not thrown/displayed
 
  No, that's not the problem.
 
   Thanks for any ideas on how to get PHP backend running.
 
  Check your Apache access/error logs to see if there's anything
 interesting.

 --
 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 2.0 with PHP on apache2 (xampp)

2010-02-06 Thread PC_Nerd
Hi,

I'm not sure I understand correctly which parts of what url's are used
for the FF plugin.

From what I can read into the error message above ( from apache's
error.log) the SampleApplication.html is found, and it makes a
reference or call to this file/executable/thing named
sampleapplication which is in ./  yes?

This unknown thing is then not found, but is this the part where the
rest of the url is swallowed by the FF plugin?  I'm certain that the
SampleApplication.html is found - all of the HTML is rendered but the
locations where the button/ui from GWT are added to the page, none of
these GWT elements are rendered/created.

If this is the case then what am I missing in my directory?  The
current file list is:

hosted.html
response.php
SampleApplication.css
SampleApplication.html
sapleapplication.nocache.js

Thanks,
PC_Nerd


On Feb 7, 11:52 am, Jeff Chimene jchim...@gmail.com wrote:
 On Sat, Feb 6, 2010 at 6:26 AM, PC_Nerd isjackawes...@gmail.com wrote:
  Hi,

  I've received this entry in my error.log from apache when I attempt to
  load the developer mode url/page.

  [Sun Feb 07 00:18:26 2010] [error] [client 127.0.0.1] File does not
  exist: C:/xampp/htdocs/sampleapplication/sampleapplication, referer:

 http://localhost/SampleApplication/SampleApplication.html?gwt.codesvr...

  There is obviously no application/executable/file located at said
  location, however I do not know what is meant to be there to actually
  run.

  Thanks,
  PC_Nerd

 The  Debugging and Compling link you referred to earlier describes what
 must go into that directory. According to your Apache configuration, that is
 the location in which Apache expects to find SampleApplication.html. Did you
 copy the files to that directory?

 The rest of the path info is swallowed by the Google FF plugin and used to
 make a connection with the runtime debugging session.



  On Feb 6, 3:28 am, Jeff Chimene jchim...@gmail.com wrote:
   On 02/04/2010 06:46 PM, PC_Nerd wrote:

Hi,

I've been playing with GWT and managed to get a basic XML request
working to response.xml.  However after reading through
   http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompilin.
  ..
I'm slightly confused as to whether or not this will allow me to run
my PHP from apache, and still be able to serve that content to the GWT
app.

When requesting response.xml ( which is just plain xml, no server side
code at all) from a jetty instance, default setup It all works...
However the app loads when -noserver is added, but the request does
not complete ( response.getStatusCode() is 0).

a)   does response.getStatusCode() ==0 mean that there was no response
at all?
b)   is there any way to get PHP content(JSON or XML) served from eg
127.0.0.1:80 where the app is intejected through the browser plugin
from 9997?

   Sure. Many on this list test using this technique. I don't know how many
   use XAMPP.

   You should be using a URL like

  http://127.0.0.1/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

   You don't need 80, as that's the default. When you're talking to
   Jetty, the URL will usually be

  http://127.0.0.1:/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

   I suspect that what I'm running into is a SOP issue, but

the SOP I'm catching is not thrown/displayed

   No, that's not the problem.

Thanks for any ideas on how to get PHP backend running.

   Check your Apache access/error logs to see if there's anything
  interesting.

  --
  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 2.0 JPA hibernate enhanced

2010-02-06 Thread PierreR
I can be a little more precise here.

GWT 2.0  will probably correctly serialize enhanced classes. But there
are case such as for List where Hibernate uses a PersistentBag to
implement List.

At that point, GWT will not be able to serialize/deserialize the class
containing the List field.

Is this right ?

Thanks

On Feb 6, 12:03 pm, PierreR p.radermec...@gmail.com wrote:
 Hello,

 I am still very confused about the enhanced serialized class issue
 in GWT version 2.0.

 I would like to use GWT for a CRUD application. One of the advantages
 I can see over Flex, is the possibility to use shared entity java pojo
 both on the client (detached) and the server. I don't want to use DTO
 (even if there are generated with Dozer) or Gilead. The French book
 Programmation GWT 2 seems to say it does not work as is while
 Google help seems to say the issue has been fixed in 2.0.

 I know there is a solution called objectify for the App Engine but I
 am using JPA/hibernate right now.

 Thanks for your 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 2.0 with PHP on apache2 (xampp)

2010-02-05 Thread Jeff Chimene
On 02/04/2010 06:46 PM, PC_Nerd wrote:
 Hi,
 
 I've been playing with GWT and managed to get a basic XML request
 working to response.xml.  However after reading through
 http://code.google.com/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s
 I'm slightly confused as to whether or not this will allow me to run
 my PHP from apache, and still be able to serve that content to the GWT
 app.
 
 When requesting response.xml ( which is just plain xml, no server side
 code at all) from a jetty instance, default setup It all works...
 However the app loads when -noserver is added, but the request does
 not complete ( response.getStatusCode() is 0).
 
 a)   does response.getStatusCode() ==0 mean that there was no response
 at all?
 b)   is there any way to get PHP content(JSON or XML) served from eg
 127.0.0.1:80 where the app is intejected through the browser plugin
 from 9997?  

Sure. Many on this list test using this technique. I don't know how many
use XAMPP.

You should be using a URL like

http://127.0.0.1/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

You don't need 80, as that's the default. When you're talking to
Jetty, the URL will usually be

http://127.0.0.1:/MyWebPage.html?gwt.codesvr=127.0.0.1:9997

I suspect that what I'm running into is a SOP issue, but
 the SOP I'm catching is not thrown/displayed

No, that's not the problem.

 Thanks for any ideas on how to get PHP backend running.

Check your Apache access/error logs to see if there's anything interesting.

-- 
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 2.0 and java Generic

2010-02-04 Thread Thomas Broyer

On Feb 2, 4:25 pm, Jinat rehana0...@gmail.com wrote:
 Does GWT 2.0 surpports java 1.6 Generic syntax?

Er, you mean Java 5 ?
http://java.sun.com/javase/6/docs/technotes/guides/language/enhancements.html

Support for generics was added in GWT 1.5.

-- 
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 2.0 internet explorer 7 devmode issue?

2010-02-04 Thread Thomas Broyer


On Feb 2, 10:09 pm, fark ffej.sak...@gmail.com wrote:
 I'm having difficulties with ie7 devmode on windows xp and gwt 2.0.
 Basically if I click a link in ie while running the app, the url is
 replaced and the application reloads if there are history tokens.

 A simple test showing the url modification (note this does not reload
 the app as there are no tokens, but does show the url modification I
 am seeing) . Create a generic test application using eclipse gwt
 plugin and add this code to onModuleLoad()

                 StringBuilder htmlString = new StringBuilder(
                                 ul id='breadcrumb'
                                                 + lia href='#' 
 onclick='javascript:navigateTo(\HOME
 \);return false;'

onclick='navigateTo(\HOME\);return false;'

Not sure if it'll fix your issue, but using javascript: within
event attributes isn't even supposed 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.



Re: GWT 2.0 and EclEmma code coverage

2010-01-30 Thread Nir Feldman
I am facing the same issue exactly.

On Jan 28, 10:09 am, CVdS ni...@zykov.com wrote:
 Hi All,

 Did someone manage to correctly run EclEmma code coverage with GWT
 2.0?

 I tried it many times with Eclipse 3.5, with both EclEmma 1.3.2 and
 1.4.3, both updated (with emma.jar published on the GWT site) and not,
 the results are always the same:

 The console says something like
 [WARN]
 com.crofthawk.mgmt.Management.JUnit:com.crofthawk.mgmt.gwt.GwtTestAdminsMan 
 agementViewImpl.testShowErrorMessage
 is being retried, retry attempt = 1
 ...for every test and I have the following stack trace:

 java.lang.RuntimeException: Remote test failed at 78.106.163.8 /
 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/
 2008070208 Firefox/3.0.1
         at com.google.gwt.junit.JUnitShell.processTestResult(JUnitShell.java:
 1083)
         at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1203)
         at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1198)
         at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1198)
         at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1104)
         at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:523)
         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)
 Caused by: java.lang.NullPointerException
         at com.google.gwt.dev.shell.CompilingClassLoader
 $MyInstanceMethodOracle.findOriginalDeclaringClass
 (CompilingClassLoader.java:409)
         at com.google.gwt.dev.shell.rewrite.RewriteRefsToJsoClasses
 $MyMethodAdapter.visitMethodInsn(RewriteRefsToJsoClasses.java:83)
         at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:1371)
         at com.google.gwt.dev.asm.ClassReader.accept(ClassReader.java:420)
         at com.google.gwt.dev.shell.rewrite.HostedModeClassRewriter.rewrite
 (HostedModeClassRewriter.java:244)
         at com.google.gwt.dev.shell.CompilingClassLoader.findClassBytes
 (CompilingClassLoader.java:1157)
         at com.google.gwt.dev.shell.CompilingClassLoader.findClass
 (CompilingClassLoader.java:985)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
         at com.google.gwt.dev.shell.CompilingClassLoader.findClass
 (CompilingClassLoader.java:1011)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
         at com.google.gwt.dev.shell.CompilingClassLoader.findClass
 (CompilingClassLoader.java:1011)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:462)
         at com.google.gwt.dev.shell.CompilingClassLoader.findClass
 (CompilingClassLoader.java:1011)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:303)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

Re: GWT 2.0 ParseException with SerializationPolicyLoader

2010-01-27 Thread George Georgovassilis
Hello Papick,

I had some of that too. You're not doing deRPC by any chance? Mind
pasting some stacktraces?

On Jan 26, 10:22 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 Hi,

 I am having trouble with GWT 2.0. I am trying to switch from 1.7 to
 2.0, everything compiles fine, but...

 When I deploy my app I (unfortunately) have my rpc servlets in a
 different path. Don't ask me why, I simply can't change this.

 So my RPC servlets are

 /somewhere/here

 and my GWT app is being loaded from

 /somewhere/completely/different/dont/ask/me/why/

 Well, since loading the gwt.rpc file was miserable failing, I simply
 created my own doGetSerializationPolicy method that loads the rpc
 files from classpath.

 Since GWT 2.0 this is failing with different errors: someones not
 being found, someones throwing parseexception.

 Is there any document explaining what has changed with 2.0?

 brgds,

 Papick

-- 
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 2.0 ParseException with SerializationPolicyLoader

2010-01-27 Thread Alexander
You mean gwt-servlet?

2010/1/27 Papick Garcia Taboada p...@pgt.de

 Hi George,

 sorry to disapoint - no, I just didn't have the time to post that I solved
 my problem by re-checking my libs in the classpath. I happend to have an old
 gwt-server jar in the classpath...



 Am 27.01.2010 um 11:15 schrieb George Georgovassilis:

  Hello Papick,
 
  I had some of that too. You're not doing deRPC by any chance? Mind
  pasting some stacktraces?
 
  On Jan 26, 10:22 am, P.G.Taboada pgtabo...@googlemail.com wrote:
  Hi,
 
  I am having trouble with GWT 2.0. I am trying to switch from 1.7 to
  2.0, everything compiles fine, but...
 
  When I deploy my app I (unfortunately) have my rpc servlets in a
  different path. Don't ask me why, I simply can't change this.
 
  So my RPC servlets are
 
  /somewhere/here
 
  and my GWT app is being loaded from
 
  /somewhere/completely/different/dont/ask/me/why/
 
  Well, since loading the gwt.rpc file was miserable failing, I simply
  created my own doGetSerializationPolicy method that loads the rpc
  files from classpath.
 
  Since GWT 2.0 this is failing with different errors: someones not
  being found, someones throwing parseexception.
 
  Is there any document explaining what has changed with 2.0?
 
  brgds,
 
  Papick
 
  --
  You received this message because you are subscribed to the Google Groups
 Google Web Toolkit group.
  To post to this group, send email to google-web-toolkit@googlegroups.com
 .
  To unsubscribe from this group, send email to
 google-web-toolkit+unsubscr...@googlegroups.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.




-- 
Regards,
Alexander

-- 
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 2.0 ParseException with SerializationPolicyLoader

2010-01-27 Thread Papick Garcia Taboada

Yes.


Am 27.01.2010 um 14:18 schrieb Alexander the.malk...@gmail.com:


You mean gwt-servlet?

2010/1/27 Papick Garcia Taboada p...@pgt.de
Hi George,

sorry to disapoint - no, I just didn't have the time to post that I  
solved my problem by re-checking my libs in the classpath. I happend  
to have an old gwt-server jar in the classpath...




Am 27.01.2010 um 11:15 schrieb George Georgovassilis:

 Hello Papick,

 I had some of that too. You're not doing deRPC by any chance? Mind
 pasting some stacktraces?

 On Jan 26, 10:22 am, P.G.Taboada pgtabo...@googlemail.com wrote:
 Hi,

 I am having trouble with GWT 2.0. I am trying to switch from 1.7 to
 2.0, everything compiles fine, but...

 When I deploy my app I (unfortunately) have my rpc servlets in a
 different path. Don't ask me why, I simply can't change this.

 So my RPC servlets are

 /somewhere/here

 and my GWT app is being loaded from

 /somewhere/completely/different/dont/ask/me/why/

 Well, since loading the gwt.rpc file was miserable failing, I  
simply

 created my own doGetSerializationPolicy method that loads the rpc
 files from classpath.

 Since GWT 2.0 this is failing with different errors: someones not
 being found, someones throwing parseexception.

 Is there any document explaining what has changed with 2.0?

 brgds,

 Papick

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



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





--
Regards,
Alexander

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


--
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 2.0 UI BINDER MVP

2010-01-27 Thread Dalla
If someone is interested, I solved this by injecting my child view
both into their respective presenters, aswell as into the parent view,
like so:


CouponWidget couponWidget = new CouponWidget();
GameStatsWidget gameStatsWidget = new GameStatsWidget();
CouponPresenter coupon = new CouponPresenter(rpcService,
eventBus, couponWidget);
GameStatsPresenter gameStats = new GameStatsPresenter
(rpcService, eventBus, gameStatsWidget);
presenter = new MainPresenter(rpcService, eventBus, coupon,
gameStats, new MainPanel(couponWidget,gameStatsWidget));

Coupon and Gamestats are child widgets here, they are injected into
their presenters as usual.
MainPresenter is the presenter responsible for the parent view,
MainPanel.

Beside this, I pretty much used code similar to the one suggested by
jarrod above.


On 26 Jan, 16:46, Dalla dalla_man...@hotmail.com wrote:
 To clarify what I´m looking for, let´s assume that I´m working with
 GooglesMVPContacts example.

 Instead of having EditContactView and ContactsView as completly
 separate views, I want to add them to a DockLayoutPanel,
 showing both views at the same time.
 Let´s assume that I want to put the ContactsView in the center panel,
 and the EditContactView in the south panel.

 I guess I would do this by creating a third view, called e.g. MainView
 (and MainPresenter),
 and then putting my existing views in this third view? But I´m still
 confused as to how I would set this up,
 or if creating a third view would even be the correct approach.

 Please advice :-)

-- 
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 2.0 uiBinder not completely working with DockPanelLayout (for me that is)

2010-01-26 Thread Djay
Hi,

I had the same problem. Actually, I want to put on the right side of
the screen a widget that can have different size.
Is there a way to specify a dynamic size ?

Thanks

On 25 jan, 02:50, Phil mikan...@gmail.com wrote:
 Hi Joe,

 I tried the code you pasted. I think your problem is the size of your
 g:west element.
 You defined unit as EM in the g:DockLayoutPanel, so the west panel
 is 210em.

 I changed the g:west size=20 to 20em, and the Body and South areas
 showed up. They had been pushed far to the right before (remember,
 LayoutPanels use absolute positioning).

 Let me know if this helped.

 Cheers
 Phil

 On Jan 25, 4:26 am, Joe Hudson joe...@gmail.com wrote:



  Hello,

  I am new to GWT 2.0 and was trying out the uiBinder.  I have a simple
  test project to get my feet wet and it isn't working as expected.  I
  am only seeing the north and west sections in FireFox (not the center
  and south sections)  and in IE I see nothing at all.  Could anyone
  please help me understand what I am doing wrong?

  I do see the DOM for the missing sections (center and south) in
  Firebug but can't understand why they are not showing up.

  Thank you very much.

  -- FILES -
  public class Test implements EntryPoint {
          @Override
          public void onModuleLoad() {
                  RootLayoutPanel.get().add(new MainPanel());
          }}

  
  public class MainPanel extends Composite {

          interface MyUiBinder extends UiBinderDockLayoutPanel, MainPanel {
          }

          private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

          public MainPanel() {
                  initWidget(uiBinder.createAndBindUi(this));
          }}

  --
  ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
          xmlns:g='urn:import:com.google.gwt.user.client.ui'
                  g:DockLayoutPanel unit='EM'
                          g:north size='5'
                                  g:LabelTop/g:Label
                          /g:north
                          g:center
                                  g:LabelBody/g:Label
                          /g:center
                          g:west size='210'
                                  g:LabelWest/g:Label
                          /g:west
                          g:south size=3
                                  g:LabelSouth/g:Label
                          /g:south
                  /g:DockLayoutPanel
  /ui:UiBinder

-- 
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 2.0 Upgrade Problem

2010-01-26 Thread m.mil...@newelements.de
No, i definetly mean not the XYZ.nochache.js.

Here is a line from my firebug:
http://localhost:8080/application/64CE9F3B21EDFDB2ADBA49308C361972.cache.js

this is what gwt tries to load, but the file is definetly reachable
under this path:
http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA49308C361972.cache.js

i think the gwt compiler has a problem with it´s pathes and the
folders within the war file.
i have a new problem, when i compile the application and start it at
the application server all pathes to the images folder are wrong, but
this time the name of the application instance is missing in the image
pathes.

i´m absolutely sure both problems had nothing to do with the upgrade
but are compiler errors. i had similar problems before when ich made
an if statement on an Tree.

my original code was something like:
if ( tree != null )

that caused compiler error that have not been displayed but the
XYZ.cache.js couldn´t been found

wehn ich changed the line to:
if ( tree.getRoot() != null )

the compiled code worked.

So i guess, you google folks have to do a coulpe of fixes to your
compiler :-)


On 11 Jan., 20:37, Chris Ramsdale cramsd...@google.com wrote:
 I second Rajeev's comments, there are a couple of oddities that you may
 experience when upgrading.

 That said, I'm wondering about the following (@m.militz):

 1. I'm assuming you meant XYZ.nocache.js and not XYZ.cache.js. Is this
 correct?
 2. While GWT does produce a .html when you create a new project, it does not
 create this file every time, and it does not alter it once created. Put
 another way, I don't believe that GWT is mucking with your Project.html file
 (not even during upgarde). Is your script tag, within Project.html,
 incorrect for some reason? What happens if you simply change it to reference
 module/module.nocache.js?

 - Chris

 On Mon, Jan 11, 2010 at 12:33 PM, Rajeev Dayal rda...@google.com wrote:
  Hi,

  Have you seen an instance where GWT tries to load the nocache.js file
  directly from the root of your war folder? What does the HTTP GET request
  look like?

  There is definitely a bug in GWT when switching between SDKs. The problem
  is twofold:

  1) The hosted.html file does not get regenerated. The workaround for this
  is to blow away the generated subdirectories of the war directory after
  switching SDKs.
  2) Because of the caching rules that GWT's embedded Jetty uses, hosted.html
  is not re-requested by the browser whenever it is requested. The workaround
  for this is to clear your browser's cache.

  Rajeev

  On Mon, Jan 11, 2010 at 11:16 AM, m.mil...@newelements.de 
  m.mil...@newelements.de wrote:

  Thanks for the hints, but all of this issues i could handle by myself.
  the problem is gwt produces erroneus code. it tries loading
  XYZ.cache.js files from the war folder, but into the war fiolder are
  subdirectories where the js files lies.
  It looks like this only happens on special occasions but i still can´t
  fire out what is responsible for that.

  On 9 Jan., 23:15, Sorinel C scristescu...@hotmail.com wrote:
   Hi all,

   There small tricks related with the environment, which aren't
   documented, in the GWT tutorial.

   Here you can find what helped me to solve the migration issues:

  http://ui-programming.blogspot.com/2009/12/update-your-application-to.
  ..

   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.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: GWT 2.0 Upgrade Problem

2010-01-26 Thread m.mil...@newelements.de
No, i definetly mean not the XYZ.nochache.js.

Here is a line from my firebug:
http://localhost:8080/application/64CE9F3B21EDFDB2ADBA49308C361972.cache.js

this is what gwt tries to load, but the file is definetly reachable
under this path:
http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA49308C361972.cache.js

i think the gwt compiler has a problem with it´s pathes and the
folders within the war file.
i have a new problem, when i compile the application and start it at
the application server all pathes to the images folder are wrong, but
this time the name of the application instance is missing in the image
pathes.

i´m absolutely sure both problems had nothing to do with the upgrade
but are compiler errors. i had similar problems before when ich made
an if statement on an Tree.

my original code was something like:
if ( tree != null )

that caused compiler error that have not been displayed but the
XYZ.cache.js couldn´t been found

wehn ich changed the line to:
if ( tree.getRoot() != null )

the compiled code worked.

So i guess, you google folks have to do a coulpe of fixes to your
compiler :-)


On 11 Jan., 20:37, Chris Ramsdale cramsd...@google.com wrote:
 I second Rajeev's comments, there are a couple of oddities that you may
 experience when upgrading.

 That said, I'm wondering about the following (@m.militz):

 1. I'm assuming you meant XYZ.nocache.js and not XYZ.cache.js. Is this
 correct?
 2. While GWT does produce a .html when you create a new project, it does not
 create this file every time, and it does not alter it once created. Put
 another way, I don't believe that GWT is mucking with your Project.html file
 (not even during upgarde). Is your script tag, within Project.html,
 incorrect for some reason? What happens if you simply change it to reference
 module/module.nocache.js?

 - Chris

 On Mon, Jan 11, 2010 at 12:33 PM, Rajeev Dayal rda...@google.com wrote:
  Hi,

  Have you seen an instance where GWT tries to load the nocache.js file
  directly from the root of your war folder? What does the HTTP GET request
  look like?

  There is definitely a bug in GWT when switching between SDKs. The problem
  is twofold:

  1) The hosted.html file does not get regenerated. The workaround for this
  is to blow away the generated subdirectories of the war directory after
  switching SDKs.
  2) Because of the caching rules that GWT's embedded Jetty uses, hosted.html
  is not re-requested by the browser whenever it is requested. The workaround
  for this is to clear your browser's cache.

  Rajeev

  On Mon, Jan 11, 2010 at 11:16 AM, m.mil...@newelements.de 
  m.mil...@newelements.de wrote:

  Thanks for the hints, but all of this issues i could handle by myself.
  the problem is gwt produces erroneus code. it tries loading
  XYZ.cache.js files from the war folder, but into the war fiolder are
  subdirectories where the js files lies.
  It looks like this only happens on special occasions but i still can´t
  fire out what is responsible for that.

  On 9 Jan., 23:15, Sorinel C scristescu...@hotmail.com wrote:
   Hi all,

   There small tricks related with the environment, which aren't
   documented, in the GWT tutorial.

   Here you can find what helped me to solve the migration issues:

  http://ui-programming.blogspot.com/2009/12/update-your-application-to.
  ..

   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.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: GWT 2.0 UI BINDER MVP

2010-01-26 Thread Stine Søndergaard
That is the question I felt like asking as well, Dalla.

-- 
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 2.0 Serialization policy strongName changes on refresh

2010-01-26 Thread PKolenic
The only time I have this kind of problem is when I am working in Dev
mode.
It seems that Eclipse caches the nocache.js file (Which tells the
browser which gwt.rpc to load).
Normally I don't do a rebuild unless I have changed something on the
backend so I remember most of the time to stop and restart Dev mode.

If you are having this issue outside Dev mode I would look to see if
your server is caching the nocache.js file

On Jan 26, 2:57 am, mijaelovic miguelangel...@gmail.com wrote:
 I was having problems with deploying my web app  in external server
 Jboss. I recently figured out that the strongName of the gwt.rpc
 changes every time I refresh the page. Can someone explains me how to
 avoid this?, or if this is a bug?. An output here:

 10:49:52,593 INFO  [STDOUT] Module base 
 URLhttp://localhost:8080/activa/activ8/
 10:49:52,593 INFO  [STDOUT] Strong name
 3DCC320CE6689ACF9B59549914237A6F
 10:49:52,609 INFO  [STDOUT] Serialization policy file path /
 activ8/3DCC320CE6689
 ACF9B59549914237A6F.gwt.rpc
 ...
 10:50:45,000 INFO  [STDOUT] Module base 
 URLhttp://localhost:8080/activa/activ8/
 10:50:45,000 INFO  [STDOUT] Strong
 nameA1BA880388289FA4FFF6A08E96127310
 10:50:45,000 INFO  [STDOUT] Serialization policy file path /activ8/
 A1BA880388289
 FA4FFF6A08E96127310.gwt.rpc
 10:50:45,015 ERROR [[/activa]] serviceImpl: ERROR: The serialization
 policy file
  '/activ8/A1BA880388289FA4FFF6A08E96127310.gwt.rpc' was not found; did
 you forge
 t to include it in this deployment?
 10:50:45,015 ERROR [[/activa]] serviceImpl: WARNING: Failed to get the
 Serializa
 tionPolicy 'A1BA880388289FA4FFF6A08E96127310' for module 'http://
 localhost:8080/
 activa/activ8/'; a legacy, 1.3.3 compatible, serialization policy will
 be used.
  You may experience SerializationExceptions as a result.
 10:50:45,156 ERROR [[/activa]] Exception while dispatching incoming
 RPC call
 com.google.gwt.user.client.rpc.SerializationException: Type
 'com.o2hlink.activ8.
 client.entity.Clinician' was not assignable to
 'com.google.gwt.user.client.rpc.I
 sSerializable' and did not have a custom field serializer.For security
 purposes,
  this type will not be serialized.: instance =
 com.o2hlink.activ8.client.entity.
 clinic...@2d4185

-- 
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 2.0 Upgrade Problem

2010-01-26 Thread Chris Ramsdale
On Tue, Jan 26, 2010 at 6:21 AM, m.mil...@newelements.de 
m.mil...@newelements.de wrote:

 No, i definetly mean not the XYZ.nochache.js.

 Here is a line from my firebug:
 http://localhost:8080/application/64CE9F3B21EDFDB2ADBA49308C361972.cache.js

 this is what gwt tries to load, but the file is definetly reachable
 under this path:

 http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA49308C361972.cache.js


Are you trying to run this under an external app server (e.g. Tomcat), or
have you simply changed the port that the embedded server uses? If you're
deploying your app to an external app server, I can see how you might end up
with an application/application path (although I don't know how correct it
would be).

Let's take a step back, can you describe the directory structure that you
see after you run the GWT compiler?


 i think the gwt compiler has a problem with it´s pathes and the
 folders within the war file.
 i have a new problem, when i compile the application and start it at
 the application server all pathes to the images folder are wrong, but
 this time the name of the application instance is missing in the image
 pathes.

 i´m absolutely sure both problems had nothing to do with the upgrade
 but are compiler errors. i had similar problems before when ich made
 an if statement on an Tree.

 my original code was something like:
 if ( tree != null )

 that caused compiler error that have not been displayed but the
 XYZ.cache.js couldn´t been found

 wehn ich changed the line to:
 if ( tree.getRoot() != null )

 the compiled code worked.


I was able to successfully run the following code in both Development and
Web mode:

public class Test implements EntryPoint {

  public void onModuleLoad() {
Tree t = new Tree();
TreeItem ti = null;

if (ti != null) {

}
else {
  ti = new TreeItem(hello there);
}

t.addItem(ti);
RootPanel.get().add(t);
  }
}

Is there something different between your app and the above snippet?


So i guess, you google folks have to do a coulpe of fixes to your
 compiler :-)


I think several, mutually exclusive issues are being confused here. Would
you mind sending me your project, or a sample project that reproduces the
issues you mention above?


 On 11 Jan., 20:37, Chris Ramsdale cramsd...@google.com wrote:
  I second Rajeev's comments, there are a couple of oddities that you may
  experience when upgrading.
 
  That said, I'm wondering about the following (@m.militz):
 
  1. I'm assuming you meant XYZ.nocache.js and not XYZ.cache.js. Is this
  correct?
  2. While GWT does produce a .html when you create a new project, it does
 not
  create this file every time, and it does not alter it once created. Put
  another way, I don't believe that GWT is mucking with your Project.html
 file
  (not even during upgarde). Is your script tag, within Project.html,
  incorrect for some reason? What happens if you simply change it to
 reference
  module/module.nocache.js?
 
  - Chris
 
  On Mon, Jan 11, 2010 at 12:33 PM, Rajeev Dayal rda...@google.com
 wrote:
   Hi,
 
   Have you seen an instance where GWT tries to load the nocache.js file
   directly from the root of your war folder? What does the HTTP GET
 request
   look like?
 
   There is definitely a bug in GWT when switching between SDKs. The
 problem
   is twofold:
 
   1) The hosted.html file does not get regenerated. The workaround for
 this
   is to blow away the generated subdirectories of the war directory after
   switching SDKs.
   2) Because of the caching rules that GWT's embedded Jetty uses,
 hosted.html
   is not re-requested by the browser whenever it is requested. The
 workaround
   for this is to clear your browser's cache.
 
   Rajeev
 
   On Mon, Jan 11, 2010 at 11:16 AM, m.mil...@newelements.de 
   m.mil...@newelements.de wrote:
 
   Thanks for the hints, but all of this issues i could handle by myself.
   the problem is gwt produces erroneus code. it tries loading
   XYZ.cache.js files from the war folder, but into the war fiolder are
   subdirectories where the js files lies.
   It looks like this only happens on special occasions but i still can´t
   fire out what is responsible for that.
 
   On 9 Jan., 23:15, Sorinel C scristescu...@hotmail.com wrote:
Hi all,
 
There small tricks related with the environment, which aren't
documented, in the GWT tutorial.
 
Here you can find what helped me to solve the migration issues:
 
   
 http://ui-programming.blogspot.com/2009/12/update-your-application-to.
   ..
 
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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com
 

Re: GWT 2.0 UI BINDER MVP

2010-01-26 Thread Dalla
To clarify what I´m looking for, let´s assume that I´m working with
Googles MVP Contacts example.

Instead of having EditContactView and ContactsView as completly
separate views, I want to add them to a DockLayoutPanel,
showing both views at the same time.
Let´s assume that I want to put the ContactsView in the center panel,
and the EditContactView in the south panel.

I guess I would do this by creating a third view, called e.g. MainView
(and MainPresenter),
and then putting my existing views in this third view? But I´m still
confused as to how I would set this up,
or if creating a third view would even be the correct approach.

Please advice :-)

-- 
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 2.0 Upgrade Problem

2010-01-26 Thread m.mil...@newelements.de
hi, i´m impressed about the quick reply!

at first i develop the application on jboss 5.1.0. everything works
fine in development mode but since i tried it on the joss i have a
couple of problems.

so the first application is the name of the application.
the second application is the name of the directory where the
compiled js files are placed.
http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA493...

i absolutely aggree with you that my problem is caused by mixing up
something :-)
in fact i tried mixing GWT, Isomorphic SmartGWT and CometServlet.
I have one main GWT Project and a couple of java projects to create
some sort of moduled structure.

i use smartgwt for the user interface and gwt for the client server
communication with the server side servlet.

in fact i´m not absolutely clear if my problems are caused by
compiling the gwt or the smartgwt parts.

but as soon as i can localize the code that causes the problems i will
post it here.


On 26 Jan., 15:37, Chris Ramsdale cramsd...@google.com wrote:
 On Tue, Jan 26, 2010 at 6:21 AM, m.mil...@newelements.de 

 m.mil...@newelements.de wrote:
  No, i definetly mean not the XYZ.nochache.js.

  Here is a line from my firebug:
 http://localhost:8080/application/64CE9F3B21EDFDB2ADBA49308C361972.ca...

  this is what gwt tries to load, but the file is definetly reachable
  under this path:

 http://localhost:8080/application/application/64CE9F3B21EDFDB2ADBA493...

 Are you trying to run this under an external app server (e.g. Tomcat), or
 have you simply changed the port that the embedded server uses? If you're
 deploying your app to an external app server, I can see how you might end up
 with an application/application path (although I don't know how correct it
 would be).

 Let's take a step back, can you describe the directory structure that you
 see after you run the GWT compiler?



  i think the gwt compiler has a problem with it´s pathes and the
  folders within the war file.
  i have a new problem, when i compile the application and start it at
  the application server all pathes to the images folder are wrong, but
  this time the name of the application instance is missing in the image
  pathes.

  i´m absolutely sure both problems had nothing to do with the upgrade
  but are compiler errors. i had similar problems before when ich made
  an if statement on an Tree.

  my original code was something like:
  if ( tree != null )

  that caused compiler error that have not been displayed but the
  XYZ.cache.js couldn´t been found

  wehn ich changed the line to:
  if ( tree.getRoot() != null )

  the compiled code worked.

 I was able to successfully run the following code in both Development and
 Web mode:

 public class Test implements EntryPoint {

   public void onModuleLoad() {
     Tree t = new Tree();
     TreeItem ti = null;

     if (ti != null) {

     }
     else {
       ti = new TreeItem(hello there);
     }

     t.addItem(ti);
     RootPanel.get().add(t);
   }

 }

 Is there something different between your app and the above snippet?

 So i guess, you google folks have to do a coulpe of fixes to your

  compiler :-)

 I think several, mutually exclusive issues are being confused here. Would
 you mind sending me your project, or a sample project that reproduces the
 issues you mention above?

  On 11 Jan., 20:37, Chris Ramsdale cramsd...@google.com wrote:
   I second Rajeev's comments, there are a couple of oddities that you may
   experience when upgrading.

   That said, I'm wondering about the following (@m.militz):

   1. I'm assuming you meant XYZ.nocache.js and not XYZ.cache.js. Is this
   correct?
   2. While GWT does produce a .html when you create a new project, it does
  not
   create this file every time, and it does not alter it once created. Put
   another way, I don't believe that GWT is mucking with your Project.html
  file
   (not even during upgarde). Is your script tag, within Project.html,
   incorrect for some reason? What happens if you simply change it to
  reference
   module/module.nocache.js?

   - Chris

   On Mon, Jan 11, 2010 at 12:33 PM, Rajeev Dayal rda...@google.com
  wrote:
Hi,

Have you seen an instance where GWT tries to load the nocache.js file
directly from the root of your war folder? What does the HTTP GET
  request
look like?

There is definitely a bug in GWT when switching between SDKs. The
  problem
is twofold:

1) The hosted.html file does not get regenerated. The workaround for
  this
is to blow away the generated subdirectories of the war directory after
switching SDKs.
2) Because of the caching rules that GWT's embedded Jetty uses,
  hosted.html
is not re-requested by the browser whenever it is requested. The
  workaround
for this is to clear your browser's cache.

Rajeev

On Mon, Jan 11, 2010 at 11:16 AM, m.mil...@newelements.de 
m.mil...@newelements.de wrote:

Thanks for the hints, but all of this issues i could 

Re: GWT 2.0 UI BINDER MVP

2010-01-25 Thread Stine Søndergaard
... And how would the code example look if it was done the way you describe
in your first paragraph?

-- 
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 2.0 uiBinder not completely working with DockPanelLayout (for me that is)

2010-01-25 Thread Ewald Pankratz
The number is too high.

!DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/xhtml.ent;
ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui'
g:DockLayoutPanel unit='EM'
g:north size='5'
g:LabelTop/g:Label
/g:north
g:center
g:LabelBody/g:Label
/g:center
g:west size='15'
g:LabelWest/g:Label
/g:west
g:south size=3
g:LabelSouth/g:Label
/g:south
/g:DockLayoutPanel
/ui:UiBinder



On Jan 24, 8:26 pm, Joe Hudson joe...@gmail.com wrote:
 Hello,

 I am new to GWT 2.0 and was trying out the uiBinder.  I have a simple
 test project to get my feet wet and it isn't working as expected.  I
 am only seeing the north and west sections in FireFox (not the center
 and south sections)  and in IE I see nothing at all.  Could anyone
 please help me understand what I am doing wrong?

 I do see the DOM for the missing sections (center and south) in
 Firebug but can't understand why they are not showing up.

 Thank you very much.

 -- FILES -
 public class Test implements EntryPoint {
         @Override
         public void onModuleLoad() {
                 RootLayoutPanel.get().add(new MainPanel());
         }}

 
 public class MainPanel extends Composite {

         interface MyUiBinder extends UiBinderDockLayoutPanel, MainPanel {
         }

         private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

         public MainPanel() {
                 initWidget(uiBinder.createAndBindUi(this));
         }}

 --
 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
         xmlns:g='urn:import:com.google.gwt.user.client.ui'
                 g:DockLayoutPanel unit='EM'
                         g:north size='5'
                                 g:LabelTop/g:Label
                         /g:north
                         g:center
                                 g:LabelBody/g:Label
                         /g:center
                         g:west size='210'
                                 g:LabelWest/g:Label
                         /g:west
                         g:south size=3
                                 g:LabelSouth/g:Label
                         /g:south
                 /g:DockLayoutPanel
 /ui:UiBinder

-- 
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 2.0 UI BINDER MVP

2010-01-25 Thread Dalla
And what would you do, if the AppController does not contain both the
presenter and the view (which should be the case IMHO).
How would that code look?


On 25 Jan, 18:35, jarrod jarrod.carl...@gmail.com wrote:
 The constructors in the last post should have been as follows:

   public AppControler(ServiceAsync service, HandlerManager eventBus,
 HeaderPresenter header, ContentPresenter content) {
     this.service = service;
     this.eventBus = eventBus;
     this.header = header.getView().asWidget();
     this.content = content.getView().asWidget();
     widget = binder.createAndBind(this);
   }

 I mistyped the name of the ContentPresenter argument...

 On Jan 25, 12:32 pm, jarrod jarrod.carl...@gmail.com wrote:



  Were the HeaderView, HeaderPresenter, ContentView and ContentPresenter
  split out accordingly, your AppPresenter might look something more
  like this:

  public class AppController implements Presenter, View {

    interface Binder extends UiBinderDockLayoutPanel, AppController
  {}

    private static Binder binder = GWT.create(Binder.class);

    @UiField(provided=true)
    HeaderView header;

    @UiField(provided=true)
    ContentView content;

    ServiceAsync service;

    HandlerManager eventBus;

    DockLayoutPanel widget;

    public AppControler(ServiceAsync service, HandlerManager eventBus,
  HeaderPresenter header, ContentPresenter presenter) {
      this.service = service;
      this.eventBus = eventBus;
      this.header = header.getView();
      this.content = content.getView();
      widget = binder.createAndBind(this);
    }

    @Override
    public void bind() {
      // when I bind you bind we bind!
      header.bind();
      content.bind();
    }
    @Override
    public void unbind() {
      header.unbind();
      content.unbind();
    }

    // the remaining methods will vary,
    // depending on your framework of choice

    @Override
    public void go(Panel panel) {
      panel.add(widget);
    }

    @Override
    public View getView() {
      return this;
    }

    @Override
    public Widget asWidget() {
      return widget;
    }

  }

  This should work with the same App.ui.xml I previously posted above.

  I should also note that I haven't specifically tested this code. It's
  possible that the View classes will need to extend Widget to be
  included in the UI by UiBinder. If that is the case, then the
  following might be more appropriate:

  g:DockLayoutPanel unit='PX'
    g:north size='121'
      my:HeaderViewWidget ui:field=header / !-- NB: ui:field --
    /g:north
    g:center size=200
      g:ScrollPanel
        my:ContentViewWidget ui:field=content / !-- NB: ui:field --

      /g:ScrollPanel
    /g:center
  /g:DockLayoutPanel

  public class AppController implements Presenter, View {

    interface Binder extends UiBinderDockLayoutPanel, AppController
  {}

    private static Binder binder = GWT.create(Binder.class);

    @UiField(provided=true)
    HeaderViewWidget header;

    @UiField(provided=true)
    ContentViewWidget content;

    ServiceAsync service;

    HandlerManager eventBus;

    DockLayoutPanel widget;

    public AppControler(ServiceAsync service, HandlerManager eventBus,
  HeaderPresenter header, ContentPresenter presenter) {
      this.service = service;
      this.eventBus = eventBus;
      this.header = header.getView().asWidget();
      this.content = content.getView().asWidget();
      widget = binder.createAndBind(this);
    }

    // the remainder is unchanged

  }

  On Jan 25, 4:16 am, Stine Søndergaard stinespl...@gmail.com wrote:

   ... And how would the code example look if it was done the way you 
   describe
   in your first paragraph?

-- 
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 2.0 - SOP and Development Mode

2010-01-24 Thread Fabiano
On 23 Gen, 02:45, Ashish Khivesara ashish.khives...@gmail.com wrote:
 Actually I was able to bypass the SOP issue using a client-side solution.

 GWT Documentation provides an
 Examplehttp://code.google.com/intl/ja/webtoolkit/doc/1.6/

I'm quite new on these issues(I hope my cent is usefulright) and the
SOP issue seems hard to solve.
I think the easier way is to configure the webserver(which provide the
GWT executable,  and could be local or remote) in order to redirect
requests to the application server, look for apache tomcat deployement
here:
http://code.google.com/intl/it-IT/webtoolkit/doc/latest/DevGuideServerCommunication.html

-- 
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 2.0 uiBinder not completely working with DockPanelLayout (for me that is)

2010-01-24 Thread Sebastian
I cannot describe the best way to do it. From my understanding the
layout panel are mostly used to define a general layout and you need
to push the
areas using nested elements with defined sizes. If you have a look at
the mail sample application, you can see that there make frequent use
of htmlpanels

Best Regards
Sebastian Hennebrueder

On Jan 24, 8:26 pm, Joe Hudson joe...@gmail.com wrote:
 Hello,

 I am new to GWT 2.0 and was trying out the uiBinder.  I have a simple
 test project to get my feet wet and it isn't working as expected.  I
 am only seeing the north and west sections in FireFox (not the center
 and south sections)  and in IE I see nothing at all.  Could anyone
 please help me understand what I am doing wrong?

 I do see the DOM for the missing sections (center and south) in
 Firebug but can't understand why they are not showing up.

 Thank you very much.

 -- FILES -
 public class Test implements EntryPoint {
         @Override
         public void onModuleLoad() {
                 RootLayoutPanel.get().add(new MainPanel());
         }}

 
 public class MainPanel extends Composite {

         interface MyUiBinder extends UiBinderDockLayoutPanel, MainPanel {
         }

         private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

         public MainPanel() {
                 initWidget(uiBinder.createAndBindUi(this));
         }}

 --
 ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
         xmlns:g='urn:import:com.google.gwt.user.client.ui'
                 g:DockLayoutPanel unit='EM'
                         g:north size='5'
                                 g:LabelTop/g:Label
                         /g:north
                         g:center
                                 g:LabelBody/g:Label
                         /g:center
                         g:west size='210'
                                 g:LabelWest/g:Label
                         /g:west
                         g:south size=3
                                 g:LabelSouth/g:Label
                         /g:south
                 /g:DockLayoutPanel
 /ui:UiBinder

-- 
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 2.0 UI BINDER MVP

2010-01-24 Thread jarrod
From what I've read and done with MVP, you would generally implement
your View as two separate classes (HeaderView and HeaderPresenter).
Were that the case, your App.ui.xml wouldn't contain the actual views,
but rather placeholder slots for the children that the Presenter would
get from the child Presenters (HeaderPresenter, which has a
HeaderView, and ContentPresenter, which has a ContentView). You would
inject the HeaderPresenter and ContentPresenter into your
AppPresenter, which could then get and insert the child Views into
it's own slots.

It looks like, though, you're combining the Presenter and View roles
for your App, Header, and Content classes. That's not necessarily a
bad thing, but it means that your unit tests (you are unit testing,
right?) won't work in plain old JUnit... they'll have to use the
(slower) GWTTestCase harness, since they explicitly depend on
UiBinder, which won't work outside of a development mode.

Nonetheless, since you have combined them, I'll assume you are at
least using an MVP framework to help you? If you are using an MVP
framework like gwt-presenter or gwt-mvp, then the Presenter classes
have a bind() method (or something similar).

When one Presenter contains other presenters, as is the case here
for your AppController, then when it binds, it should take
responsibility for binding it's contained presenters at the right
time.

You'll need to use UiBinder to get references to your child
presenters. For the sake of this post, I will assume that, like
AppController below, your Header and Content classes also implement
both Presenter and View interfaces.

g:DockLayoutPanel unit='PX'
  g:north size='121'
my:Header ui:field=header / !-- NB: ui:field --
  /g:north
  g:center size=200
g:ScrollPanel
  my:Content ui:field=content / !-- NB: ui:field --
/g:ScrollPanel
  /g:center
/g:DockLayoutPanel


In AppController, you'll have something like:

public class AppController implements Presenter, View {

  interface Binder extends UiBinderDockLayoutPanel, AppController {}

  private static Binder binder = GWT.create(Binder.class);

  @UiField
  Header header; // will be populated by UiBinder with your Header
  // alternatively, you could set @UiField(provided=true) and use DI
  // to get the instance of Header; pass it in as a constructor
arg ;-)

  @UiField
  Content content; // will be populated by UiBinder with your Content

  ServiceAsync service;
  HandlerManager eventBus;
  DockLayoutPanel widget;

  public AppControler(ServiceAsync service, HandlerManager eventBus) {
this.service = service;
this.eventBus = eventBus;
widget = binder.createAndBind(this);
  }

  @Override
  public void bind() {
// when I bind you bind we bind!
header.bind();
content.bind();
  }

  @Override
  public void unbind() {
header.unbind();
content.unbind();
  }

  // the remaining methods will vary,
  // depending on your framework of choice

  @Override
  public void go(Panel panel) {
panel.add(widget);
  }

  @Override
  public View getView() {
return this;
  }

  @Override
  public Widget asWidget() {
return widget;
  }

}


On Jan 22, 4:40 pm, Ahmet Recep Navruz navruzah...@gmail.com wrote:
 Waiting for the answer too :)

-- 
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 2.0 UI BINDER MVP

2010-01-22 Thread Stine Søndergaard
Looking so much forward to read the answers to this issue :) I am totally
stuck in a similar situation...

-- 
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 2.0 - Eclipse Plugin - Maven: 404 running in DevMode

2010-01-22 Thread Keith Platfoot
Hi Jim,

I believe the solution here is to just add a -startupUrl parameter to your
Java launch configuration.  In the absence of that parameter, DevMode tries
to guess which HTML host page you want to open, but I don't think it
searches subdirectories.  You can instead tell it exactly which page to open
with an argument like: *-startupUrl /subdir/page.html*

Regarding the Web Application launch configuration: there are currently
some incompatibilities between the Google Plugin for Eclipse and typical
Maven usage, so you're probably better off for now continuing to use a
regular Java launch.  However, we're planning on addressing this issue in
the next release of the plugin, so stay tuned.

Keith

On Mon, Jan 18, 2010 at 9:35 AM, Jim Adkins ade...@gmail.com wrote:

 I'm receiving a 404 status code when attempting to use the GWT 2.0
 Eclipse plug-in.

 The project was originally created with GWT 1.7 and used an Eclipse
 Run Configuration based on a Java Application run type.

 I modified the run configuration to use DevMode and GWT 2.0 library.
 When I copy the DevMode dialog supplied URL into a browser, I
 receive a 404.

 I suspect that this is occurring, because our project does not host
 the project_name.hmtl file directly under the war directory, but
 in a sub directory under war.

 We are using Maven2 and are setting a gwt.madule.alias as well.

 I have noticed that all of the documentation for the GWT 2.0 Eclipse
 plugin indicates that the the Web Application run type is the
 standard way to designate a GWT launch profile...

 Any ideas?

 Thanks

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

2010-01-21 Thread preacher860
Ok, nevermind.  I took the brute force approach and recompiled firefox
with the SOP feature disabled.

In case anyone needs to do that:  I just made a change in the
SecurityCompareURIs() function so that it would always return
PR_TRUE.

Ajax works again in the debugger, ahhh!

On Jan 19, 9:37 pm, preacher860 mathieu.lanoue...@gmail.com wrote:
 Hi there,

 As many people, I'm experiencing troubles while trying to debug an
 application in Development Mode when it tries to retrieve some JSON
 data from a remote server.  It's obviously a Same Origin Policy
 problem but I can't find a satisfying solution to this issue.  The
 setup is quite simple:

 - GWT application running in Firefox for Linux with Developer Plugin
 installed
 - Embedded target with webserver providing some JSON data through
 RequestBuilder POST statements.

 This works fine when the embedded board is also the server for the
 application pages (No SOP issues) and also used to work fine in GWT
 1.7 with SOP checks disabled in the embedded browser.

 Now, the Firefox plugin seems to provide some way of allowing security
 exceptions, but no matter how I try to use this, I still get an SOP
 violation message from the browser.  Is there any special syntax to
 use for the exceptions?  Full URL or only server name?  Or IP?
 Documentation is not very clear on that...

 Did anyone actually made the exceptions work in the FF plugin under
 Linux?

 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: GWT 2.0 + Gogle Maps V3 using JSNI

2010-01-19 Thread Eric Ayers
take a look at this project, which is a beginning for a Google Maps v3 API
for GWT:

http://code.google.com/p/gwt-maps3/

http://code.google.com/p/gwt-maps3/The developers are discussing it on the
gwt-google-apis group as we speak

http://groups.google.com/group/gwt-google-apis

On Sun, Jan 17, 2010 at 3:22 PM, Ilya lisichkin.i...@googlemail.com wrote:

 Hi,

 I'm looking for an example of using GWT 2.0 + Gogle Maps V3 using
 JSNI.
 I've trying to do it for whole week already but failed even to display
 the map :(
 If somebody using this method could you please share some simple
 example?
 Any help will be appreciated.

 Thanks in advance,
 -Ilya.

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






-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA
Sign up now for Google I/O 2010: May 19-20, http://code.google.com/io
-- 

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 2.0 lockup

2010-01-19 Thread Joe Cole
For weird errors like that you can either use something like gwt-log
and trace where you suspect it's happening, or use firebug with
debugging on exceptions.

On Jan 20, 5:01 am, Cliff Newton cliff.new...@gmail.com wrote:
 I recently upgraded from GWT 1.5 to 2.0 and since I started running
 2.0 my app will occasionally lock up. When refreshing the page JBoss
 still serves up my login page, however when I try to actually log in
 it just sits there. Also, once the app freezes and you are already
 logged in and try to do anything that accesses the database via RPC/
 servlet the app just sits there ticking away. I am able to access my
 mysql database from query analyzer and the command line without any
 problem, other apps on JBoss work fine, and there is nothing in the
 JBoss logs to indicate any problem. Also, I can roll my project back
 to GWT 1.5 and it works fine.

 I don't expect anyone to magically know the answer, but I'm stuck and
 was hoping that someone might have some suggestions as to how I should
 continue testing. Are there any tools you know of to help me find an
 issue like this? Any techniques?

 I would really appreciate any feedback given. I've been stuck on this
 for 3 days now.

 Server Environment:
 Ubuntu 8.04.1
 JBoss Web/2.1.1.CR3
 Java version 1.5.0_16
 Mysql 5.0.5
-- 
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 2.0 Eclipse Breakpoint Not Working

2010-01-18 Thread Ana
Hello,

In our project I have specified a different output directory for the
javascript to be compatible with our previous project structure.

Everything works fine except debug mode because breakpoint are not
hit.

I have tried the suggestions above and nothing worked. Do you think
this is related to not have js output in war directory but in a
different place?

On Dec 10 2009, 4:38 pm, Rajeev Dayal rda...@google.com wrote:
 Glad you got it working. Usually, this problem stems from two areas:

 1) Not deleting the generated files in your war directory when you switch
 SDKs. This is really something that we need  to fix in the Google Plugin for
 Eclipse or GWT itself, as developers should not be expected to do this when
 they switch SDKs.

 2) The browser storing a cached version of hosted.html. This may also be a
 GWT bug in terms of how we have the caching rules set up for the built-in
 servlet that we provide. Holding down SHIFT and hitting RELOAD will cause
 all pages to be re-fetched, regardless of whether or not they've been
 cached.



 On Thu, Dec 10, 2009 at 10:36 AM, Nick Powers powers.n...@gmail.com wrote:
  I ran across that fun problem a while back, and fixed it. This, however,
  was due to upgrading to GWT 2.0 and the switch between hosted mode and dev
  mode.
  -Nick

  On Thu, Dec 10, 2009 at 9:29 AM, Paul Robinson ukcue...@gmail.com wrote:

  Failing to stop at breakpoints was a bug in one of the JVM releases
  (1.6.0_14 IIRC). Make sure you're using the latest JVM.

  Nick wrote:
   I just updated my Eclipse plugin from GWT 1.7 to GWT 2.0. I got my
   application to run in a separate browser, however, it does not ask me
   to install a plugin, nor does it stop on breakpoints.

   Can anyone help me convert my 1.7 Eclipse GWT/App Engine project to
   GWT 2.0?

   What I've done:
   -Updated my Eclipse Plugin
   -Changed my GWT version to 2.0
   -Changed my App Engine version to 1.2.8
   -Deleted by current launch configurations
   -I launch by Right Click--Debug As--Web Application (the one with
   the 'G' on it).
   -I copy the URL give in the Development Mode tab in Eclipse and paste
   that into Chrome (I've tried FF and IE 7 as well).
   -My App appears and seems to work properly, but no question to install
   a plugin nor does it pay attention to breakpoints.

   If I can avoid creating a new project and copying it into that, I'd
   prefer it.

   I appreciate any help.

   -Nick

  --

  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.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 2.0 - Eclipse Plugin - Maven: 404 running in DevMode

2010-01-18 Thread UJ
You can always change that HTML's location in welcome file list in the
web.xml
-- 
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 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-15 Thread Matt Moriarity
I'm not sure about this, but I would guess that GWT doesn't actually
do any code-splitting when in development mode because there isn't
much point. It's really only useful when you compile.

On Jan 14, 12:07 pm, mably fm2...@mably.com wrote:
 Oops, sorry...  It's asynchronous, so my list object is most probably
 always null when I read it.

 What is strange is why it's not null in development mode

 Is runAsync running synchronously in dev mode ?

 On 14 jan, 13:29, mably fm2...@mably.com wrote:

  Hi everybody,

  I have some GWT 2.0 runAsync code that works perfectly fine in dev
  mode but fails in normal mode.

  Is it a GWT bug or am I doing something wrong ?

  Is there some way to identify where the probleme comes from exactly ?

  The only information I have is a Chrome Developer Tools javascript
  error that says : Uncaught TypeError: Cannot call method 'Lc' of
  null.  And nothing in Eclipse while running in dev mode.

  Here is my java code using runAsync :

  public class GwtListHelper {

          private MapString, GwtList lists = new HashMapString, GwtList();

          public GwtList getList(String type) {
                  GwtList list = lists.get(type);
                  if (list == null) {
                          ListWrapper lw = new ListWrapper();
                          getListAsync(type, lw);
                          list = lw.getList();
                          lists.put(type, list);
                  }
                  return list;
          }

          private void getListAsync(final String type, final ListWrapper lw) {
                  if (user.equals(type)) {
                          GWT.runAsync(new RunAsyncCallback() {
                                  public void onSuccess() {
                                          lw.setList(new UserList());
                                  }
                                  public void onFailure(Throwable reason) {
                                          Window.alert(type +  list not 
  loaded !);
                                  }
                          });
                  }
          }

          private class ListWrapper {
                  GwtList list;
                  public void setList(GwtList list) {
                          this.list = list;
                  }
                  public GwtList getList() {
                          return this.list;
                  }
          }

  }
-- 
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 2.0 + JBoss

2010-01-15 Thread jayanth
Thanks Szemere .. you really saved my day. I was scratching my head
trying to figure out what could be the cause and it turned out to be
an older version of gwt-servlet.jar as you've indicated.

On Jan 1, 9:09 am, Szemere szemereszem...@googlemail.com wrote:
 I've found this can be caused by an old version of gwt-servlet.jar in
 the path.

 Szemere
-- 
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 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-15 Thread mably
Ok, you're certainly right, thanx for the answer.

On 15 jan, 15:45, Matt Moriarity matt.moriar...@gmail.com wrote:
 I'm not sure about this, but I would guess that GWT doesn't actually
 do any code-splitting when in development mode because there isn't
 much point. It's really only useful when you compile.

 On Jan 14, 12:07 pm, mably fm2...@mably.com wrote:



  Oops, sorry...  It's asynchronous, so my list object is most probably
  always null when I read it.

  What is strange is why it's not null in development mode

  Is runAsync running synchronously in dev mode ?

  On 14 jan, 13:29, mably fm2...@mably.com wrote:

   Hi everybody,

   I have some GWT 2.0 runAsync code that works perfectly fine in dev
   mode but fails in normal mode.

   Is it a GWT bug or am I doing something wrong ?

   Is there some way to identify where the probleme comes from exactly ?

   The only information I have is a Chrome Developer Tools javascript
   error that says : Uncaught TypeError: Cannot call method 'Lc' of
   null.  And nothing in Eclipse while running in dev mode.

   Here is my java code using runAsync :

   public class GwtListHelper {

           private MapString, GwtList lists = new HashMapString, 
   GwtList();

           public GwtList getList(String type) {
                   GwtList list = lists.get(type);
                   if (list == null) {
                           ListWrapper lw = new ListWrapper();
                           getListAsync(type, lw);
                           list = lw.getList();
                           lists.put(type, list);
                   }
                   return list;
           }

           private void getListAsync(final String type, final ListWrapper 
   lw) {
                   if (user.equals(type)) {
                           GWT.runAsync(new RunAsyncCallback() {
                                   public void onSuccess() {
                                           lw.setList(new UserList());
                                   }
                                   public void onFailure(Throwable reason) {
                                           Window.alert(type +  list not 
   loaded !);
                                   }
                           });
                   }
           }

           private class ListWrapper {
                   GwtList list;
                   public void setList(GwtList list) {
                           this.list = list;
                   }
                   public GwtList getList() {
                           return this.list;
                   }
           }

   }
-- 
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 2.0 - Problem with Eclipse plugin and UiBinder Field xxx has no corresponding field in template file yyy.ui.xml

2010-01-14 Thread nickajderian
I also had this problem. I had 2 files:

1. HitTimeSheet/src/TimeSheetItem.ui.xml
2. HitTimeSheet/src/uk.co.hattjoys.hittimesheet.client/
TimeSheetItem.ui.xml

I do not know where 1 came from but I spent 15 minutes editing it and
pulling out my hair before I realised 2 existed. 1 is not needed.
Hope this helps save someone else's hair...
-- 
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 2.0 with C# back-end

2010-01-14 Thread ChorltonTheDragon
On Dec 16 2009, 6:49 pm, joe joe.krat...@gmail.com wrote:
 yeah it looks like the link was butchered when I send the post.

 http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html

 I have tried what you are using. However, after looking into the
 problem more I see that Same Origin Policy seems to be my issue. It
 looks like without using JSONP I can not call my self hosted C#WCF
 application. This is due to the port miss match (Jetty server runs on
  and my self hostedWCfapp runs on 80) which violates S.O.P.

 According to Google's docs I can not do this without some 'hack' on
 the GWT 
 side.http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#How_can_I_d...

 I have looked into using JSONP withWCFbut I have been unable to
 locate a way to send a pure JSONP object to GWT. The only thing I have
 been able to do it send a string that holds my JSONP string. so there
 are leading and trailing . I would assume that GWT won't like this.

 So right now I have no other option but to write a GWT back-end proxy
 so that GWT front end can call my C# app to request data, unless
 anyone has any ideas.

 Thank you

 On Dec 16, 3:25 am, rjcarr rjc...@gmail.com wrote:

  The link you posted is dead, and I didn't completely understand what
  you were asking.  However, I make some non-GWTrequests in my project
  so maybe this will help you out.

  RequestBuilder reqbuilder = new RequestBuilder(RequestBuilder.GET,
  URL);

  reqbuilder.sendRequest(
          null, // OK to use null for GET type
          new RequestCallback() {
                  public void onResponseReceived(Request request, Response 
  response) {
                          if(response.getStatusCode() == 200) {
                                  // SUCCESS
                                  log(response.getText());

                          } else {
                                  // ERROR
                                  log(response.getStatusCode());
                                  log(response.getStatusText());
                          }
                  }

                  public void onError(Request request, Throwable t) {
                          // ERROR
                          log(t.getMessage());
                  }
          }
  );

  On Dec 15, 7:59 am, joe joe.krat...@gmail.com wrote:

   I'm having an issue withGWT2.0requesting XML data from aC#self
   hosted Web Service. Using the GET request tutorial 
   (http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html) I was 
   able
   to retrieve the XML data usingGWT1.7. After upgrading to2.0all I
   return is an empty String using response.getTest(). The headers are
   also empty and response.getStatusCode() returned is 0.

   Running theC#app in debug I find that it is sending the XML data
   out, but it looks like theGWTside isn't receiving it. If I call the
   URL from the browser I see the XML data.

   I have also tried to use this same method to call other web services
   as well as websites. Still status code 0 and no text in the
   response.getTest().

   This leads me to believe that I missed some configuration in setting
   up my app toGWT2.0. However, I have clue where to start.

   Any help would be greatly appreciated.

This post is a few weeks old and you've probably solved your problem
by now - but, in case you haven't, it is possible to fix the same
origin policy issue for a JSON WCF web service by doing this in your
operation implementation:

public SomeData MyOperation(SomeParameters args)
{
WebOperationContext.Current.OutgoingResponse.Headers.Add
(Access-Control-Allow-Origin:*);

// Rest of operation code...
}

You only have to do this during development. In a production scenario
you definitely don't want to be setting this header! Note that it's
also possible to do the above in a WCF behavior which extends
DispatchRuntime or DispatchOperation. That way you can decide in
configuration whether this header gets set.

CTD
-- 
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 2.0 runAsync code works fine in development mode but fails in normal mode

2010-01-14 Thread mably
Oops, sorry...  It's asynchronous, so my list object is most probably
always null when I read it.

What is strange is why it's not null in development mode

Is runAsync running synchronously in dev mode ?

On 14 jan, 13:29, mably fm2...@mably.com wrote:
 Hi everybody,

 I have some GWT 2.0 runAsync code that works perfectly fine in dev
 mode but fails in normal mode.

 Is it a GWT bug or am I doing something wrong ?

 Is there some way to identify where the probleme comes from exactly ?

 The only information I have is a Chrome Developer Tools javascript
 error that says : Uncaught TypeError: Cannot call method 'Lc' of
 null.  And nothing in Eclipse while running in dev mode.

 Here is my java code using runAsync :

 public class GwtListHelper {

         private MapString, GwtList lists = new HashMapString, GwtList();

         public GwtList getList(String type) {
                 GwtList list = lists.get(type);
                 if (list == null) {
                         ListWrapper lw = new ListWrapper();
                         getListAsync(type, lw);
                         list = lw.getList();
                         lists.put(type, list);
                 }
                 return list;
         }

         private void getListAsync(final String type, final ListWrapper lw) {
                 if (user.equals(type)) {
                         GWT.runAsync(new RunAsyncCallback() {
                                 public void onSuccess() {
                                         lw.setList(new UserList());
                                 }
                                 public void onFailure(Throwable reason) {
                                         Window.alert(type +  list not loaded 
 !);
                                 }
                         });
                 }
         }

         private class ListWrapper {
                 GwtList list;
                 public void setList(GwtList list) {
                         this.list = list;
                 }
                 public GwtList getList() {
                         return this.list;
                 }
         }



 }
-- 
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 2.0 books

2010-01-13 Thread Idris
Even I would like to see much work on UI Binder side. This will easy
soo many processes.

On Dec 15 2009, 12:01 am, cmcg cmcgru...@gmail.com wrote:
 Great - how much of an emphasis are you going to place on UiBinder?

 On Dec 2, 5:30 pm, FKereki fker...@gmail.com wrote:

  Personally, I'm authoring a book on GWT 2.0 for Addison Wesley; I
  expect the Rough Cut to be available on Safari Books Online early next
  year.
-- 
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 2.0 books

2010-01-13 Thread Stine Søndergaard
Sounds great with a book!!
-- 

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   3   4   >