Re: Can IntelliJ show variable values rather than type when debugging via SDM?

2015-01-07 Thread Richard Wallis
Thanks will give it a try.

On Wed, Jan 7, 2015 at 4:27 PM, Jens  wrote:

> Only manually. Right click on a node in the variables section and select
> "evaluate expression...". In the new window add .toString() to the
> expression and hit evaluate.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/qAN3TrfQZ50/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Can IntelliJ show variable values rather than type when debugging via SDM?

2015-01-07 Thread Richard Wallis
Trying out IntelliJ and the one thing keeping me from switching is that the 
debugger shows a variable's type instead of value.

eg: an ArrayList containing "Foo" and "BAR" will show as ArrayList$ 
instead of ["FOO", "BAR"]

Has anyone got the debugger to show the value of toString() instead of the 
varaible's type?

---

It should be possible because SDBG manages it in eclipse using the 
callToString() method in it's WebkitRuntime class:

https://github.com/sdbg/sdbg/blob/master/com.github.sdbg.debug.core/src/com/github/sdbg/debug/core/internal/webkit/protocol/WebkitRuntime.java#L191

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


Re: Source Maps suddenly don't show java source

2014-12-10 Thread Richard Wallis
Got sourcemaps working on Chromium.  Still doesn't work on Chrome but it
solves the problem.

On Wed, Dec 10, 2014 at 1:35 PM, Richard Wallis  wrote:

> Reverting to 2.6.1 and using the old Dev Mode On bookmarklet works.
>
> Anyone have an idea of what I'm doing wrong?
>
> On Wed, Dec 10, 2014 at 12:07 PM, Richard Wallis 
> wrote:
>
>> @Jens I tracked down the sourcemap.json file and I can manually add it in
>> Chrome Source tab and then source maps will work until the recompile causes
>> the hash to change.
>>
>> Any idea what could be causing Chrome not to autoload the maps?
>>
>> On Wed, Dec 10, 2014 at 11:31 AM, Richard Wallis 
>> wrote:
>>
>>> Just an update.  Problem occurs with Chromium too.
>>>
>>> On Wed, Dec 10, 2014 at 11:15 AM, Richard Wallis 
>>> wrote:
>>>
>>>> Thanks Jens, I've checked multiple times that Source Maps is enabled.
>>>>
>>>> The problem occurs in multiple unrelated gwt projects.  It occurs on
>>>> chrome dev and chrome stable channel and it occurs after deleting Chrome's
>>>> UserData dir so I'm using a completely clean version of Chrome.
>>>>
>>>> I'll try any ideas no matter how stupid, this has completely halted all
>>>> my projects.
>>>>
>>>> On Wed, Dec 10, 2014 at 11:03 AM, Jens 
>>>> wrote:
>>>>
>>>>> If the CodeServer does not show the log output:
>>>>>
>>>>> GET /sourcemaps/app/4EA51AEEB40A4AB0358CAE52B6668036_sourcemap.json
>>>>>sent source map for module 'app' in 257 ms
>>>>>
>>>>> Then Chrome probably did not ask for source maps. Maybe you
>>>>> accidentally disabled JS source map support in Chrome Dev Tool settings.
>>>>>
>>>>> -- J.
>>>>>
>>>>> --
>>>>> You received this message because you are subscribed to a topic in the
>>>>> Google Groups "Google Web Toolkit" group.
>>>>> To unsubscribe from this topic, visit
>>>>> https://groups.google.com/d/topic/google-web-toolkit/dE8b875dXEU/unsubscribe
>>>>> .
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>>>> To post to this group, send email to
>>>>> google-web-toolkit@googlegroups.com.
>>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>
>>>
>>
>

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


Re: Source Maps suddenly don't show java source

2014-12-10 Thread Richard Wallis
Reverting to 2.6.1 and using the old Dev Mode On bookmarklet works.

Anyone have an idea of what I'm doing wrong?

On Wed, Dec 10, 2014 at 12:07 PM, Richard Wallis  wrote:

> @Jens I tracked down the sourcemap.json file and I can manually add it in
> Chrome Source tab and then source maps will work until the recompile causes
> the hash to change.
>
> Any idea what could be causing Chrome not to autoload the maps?
>
> On Wed, Dec 10, 2014 at 11:31 AM, Richard Wallis 
> wrote:
>
>> Just an update.  Problem occurs with Chromium too.
>>
>> On Wed, Dec 10, 2014 at 11:15 AM, Richard Wallis 
>> wrote:
>>
>>> Thanks Jens, I've checked multiple times that Source Maps is enabled.
>>>
>>> The problem occurs in multiple unrelated gwt projects.  It occurs on
>>> chrome dev and chrome stable channel and it occurs after deleting Chrome's
>>> UserData dir so I'm using a completely clean version of Chrome.
>>>
>>> I'll try any ideas no matter how stupid, this has completely halted all
>>> my projects.
>>>
>>> On Wed, Dec 10, 2014 at 11:03 AM, Jens  wrote:
>>>
>>>> If the CodeServer does not show the log output:
>>>>
>>>> GET /sourcemaps/app/4EA51AEEB40A4AB0358CAE52B6668036_sourcemap.json
>>>>sent source map for module 'app' in 257 ms
>>>>
>>>> Then Chrome probably did not ask for source maps. Maybe you
>>>> accidentally disabled JS source map support in Chrome Dev Tool settings.
>>>>
>>>> -- J.
>>>>
>>>> --
>>>> You received this message because you are subscribed to a topic in the
>>>> Google Groups "Google Web Toolkit" group.
>>>> To unsubscribe from this topic, visit
>>>> https://groups.google.com/d/topic/google-web-toolkit/dE8b875dXEU/unsubscribe
>>>> .
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>>> To post to this group, send email to
>>>> google-web-toolkit@googlegroups.com.
>>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>
>

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


Re: Source Maps suddenly don't show java source

2014-12-10 Thread Richard Wallis
@Jens I tracked down the sourcemap.json file and I can manually add it in
Chrome Source tab and then source maps will work until the recompile causes
the hash to change.

Any idea what could be causing Chrome not to autoload the maps?

On Wed, Dec 10, 2014 at 11:31 AM, Richard Wallis  wrote:

> Just an update.  Problem occurs with Chromium too.
>
> On Wed, Dec 10, 2014 at 11:15 AM, Richard Wallis 
> wrote:
>
>> Thanks Jens, I've checked multiple times that Source Maps is enabled.
>>
>> The problem occurs in multiple unrelated gwt projects.  It occurs on
>> chrome dev and chrome stable channel and it occurs after deleting Chrome's
>> UserData dir so I'm using a completely clean version of Chrome.
>>
>> I'll try any ideas no matter how stupid, this has completely halted all
>> my projects.
>>
>> On Wed, Dec 10, 2014 at 11:03 AM, Jens  wrote:
>>
>>> If the CodeServer does not show the log output:
>>>
>>> GET /sourcemaps/app/4EA51AEEB40A4AB0358CAE52B6668036_sourcemap.json
>>>sent source map for module 'app' in 257 ms
>>>
>>> Then Chrome probably did not ask for source maps. Maybe you accidentally
>>> disabled JS source map support in Chrome Dev Tool settings.
>>>
>>> -- J.
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Google Web Toolkit" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/google-web-toolkit/dE8b875dXEU/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to
>>> google-web-toolkit+unsubscr...@googlegroups.com.
>>> To post to this group, send email to google-web-toolkit@googlegroups.com
>>> .
>>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

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


Re: Source Maps suddenly don't show java source

2014-12-10 Thread Richard Wallis
Just an update.  Problem occurs with Chromium too.

On Wed, Dec 10, 2014 at 11:15 AM, Richard Wallis  wrote:

> Thanks Jens, I've checked multiple times that Source Maps is enabled.
>
> The problem occurs in multiple unrelated gwt projects.  It occurs on
> chrome dev and chrome stable channel and it occurs after deleting Chrome's
> UserData dir so I'm using a completely clean version of Chrome.
>
> I'll try any ideas no matter how stupid, this has completely halted all my
> projects.
>
> On Wed, Dec 10, 2014 at 11:03 AM, Jens  wrote:
>
>> If the CodeServer does not show the log output:
>>
>> GET /sourcemaps/app/4EA51AEEB40A4AB0358CAE52B6668036_sourcemap.json
>>sent source map for module 'app' in 257 ms
>>
>> Then Chrome probably did not ask for source maps. Maybe you accidentally
>> disabled JS source map support in Chrome Dev Tool settings.
>>
>> -- J.
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Google Web Toolkit" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/google-web-toolkit/dE8b875dXEU/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-web-toolkit@googlegroups.com.
>> Visit this group at http://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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


Re: Source Maps suddenly don't show java source

2014-12-10 Thread Richard Wallis
Thanks Jens, I've checked multiple times that Source Maps is enabled.

The problem occurs in multiple unrelated gwt projects.  It occurs on chrome
dev and chrome stable channel and it occurs after deleting Chrome's
UserData dir so I'm using a completely clean version of Chrome.

I'll try any ideas no matter how stupid, this has completely halted all my
projects.

On Wed, Dec 10, 2014 at 11:03 AM, Jens  wrote:

> If the CodeServer does not show the log output:
>
> GET /sourcemaps/app/4EA51AEEB40A4AB0358CAE52B6668036_sourcemap.json
>sent source map for module 'app' in 257 ms
>
> Then Chrome probably did not ask for source maps. Maybe you accidentally
> disabled JS source map support in Chrome Dev Tool settings.
>
> -- J.
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/dE8b875dXEU/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


Source Maps suddenly don't show java source

2014-12-10 Thread Richard Wallis
I've been using source maps for the last few months without trouble.

Yesterday everything worked fine.  Today the java sourcemaps won't appear.

I've attached an image to show that the codeserver is running correctly on 
port 9876 it just isn't serving the java source.

I'm launching from maven, the problem occurs with gwt:run & gwt:debug.

Incremental compilation still works correctly.

My Console log below:

z:\ws1\watchwords>mvn gwt:debug
[INFO] Scanning for projects...
[INFO]
[INFO] 

[INFO] Building Wave 1.0
[INFO] 

[INFO]
[INFO] >>> gwt-maven-plugin:2.7.0:debug (default-cli) > process-classes @ 
wave >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ wave 
---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory 
z:\ws1\watchwords\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.2:compile (default-compile) @ wave ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< gwt-maven-plugin:2.7.0:debug (default-cli) < process-classes @ 
wave <<<
[INFO]
[INFO] --- gwt-maven-plugin:2.7.0:debug (default-cli) @ wave ---
[INFO] starting debugger on port 8000 in suspend mode
[INFO] create exploded Jetty webapp in z:\ws1\watchwords\target\wave-1.0
[INFO] Listening for transport dt_socket at address: 8000
[ERROR] Dec 10, 2014 10:32:17 AM java.util.prefs.WindowsPreferences 
[ERROR] WARNING: Could not open/create prefs root node 
Software\JavaSoft\Prefs at root 0x8002. Windows RegCreateKeyEx(...) 
returned error code 5.
[INFO] Super Dev Mode starting up
[INFO]workDir: a:\temp\gwt-codeserver-2579418874325485548.tmp
[INFO]Loading Java files in com.wallissoftware.wave.WaveWithLogging.
[ERROR] Dec 10, 2014 10:32:20 AM 
com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml
[ERROR] INFO: Successfully processed 
z:\ws1\watchwords\target\wave-1.0\WEB-INF/appengine-web.xml
[ERROR] Dec 10, 2014 10:32:20 AM 
com.google.apphosting.utils.config.AbstractConfigXmlReader readConfigXml
[ERROR] INFO: Successfully processed 
z:\ws1\watchwords\target\wave-1.0\WEB-INF/web.xml
[ERROR] Dec 10, 2014 10:32:20 AM 
com.google.appengine.tools.development.SystemPropertiesManager 
setSystemProperties
[ERROR] INFO: Overwriting system property key 
'java.util.logging.config.file', value 
'C:\Users\Richard\.m2\repository\com\google\appengine\appengine-java-sdk\1.9.17\appengine-java-sdk\appengine-java-sdk-1.9.17\config\sdk\logging.properties'
 
with value 'WEB-INF/logging.properties' from 
'z:\ws1\watchwords\target\wave-1.0\WEB-INF\appengine-web.xml'
[ERROR] Dec 10, 2014 10:32:20 AM 
com.google.apphosting.utils.jetty.JettyLogger info
[ERROR] INFO: Logging to JettyLogger(null) via 
com.google.apphosting.utils.jetty.JettyLogger
[ERROR] Dec 10, 2014 10:32:20 AM 
com.google.appengine.tools.development.IsolatedAppClassLoader 
checkWorkingDirectory
[ERROR] WARNING: Your working directory, (z:\ws1\watchwords) is not equal 
to your
[ERROR] web application root (Z:\ws1\watchwords\target\wave-1.0)
[ERROR] You will not be able to access files from your working directory on 
the production server.
[ERROR]
[ERROR] Dec 10, 2014 10:32:21 AM 
com.google.apphosting.utils.jetty.JettyLogger info
[ERROR] INFO: jetty-6.1.x
[INFO]Module setup completed in 5044 ms
[ERROR] 2014-12-10 10:32:22.345:INFO:oejs.Server:jetty-8.y.z-SNAPSHOT
[ERROR] 2014-12-10 10:32:22.396:INFO:oejs.AbstractConnector:Started 
SelectChannelConnector@127.0.0.1:9876
[INFO]
[INFO] The code server is ready at http://127.0.0.1:9876/
[ERROR] Dec 10, 2014 10:32:22 AM 
com.google.apphosting.utils.jetty.JettyLogger info
[ERROR] INFO: Started SelectChannelConnector@0.0.0.0:
[ERROR] Dec 10, 2014 10:32:22 AM 
com.google.appengine.tools.development.AbstractModule startup
[ERROR] INFO: Module instance default is running at http://localhost:/
[ERROR] Dec 10, 2014 10:32:22 AM 
com.google.appengine.tools.development.AbstractModule startup
[ERROR] INFO: The admin console is running at 
http://localhost:/_ah/admin
[ERROR] Dec 10, 2014 10:32:22 AM 
com.google.appengine.tools.development.DevAppServerImpl doStart
[ERROR] INFO: Dev App Server is now running
[INFO] GET /recompile/wave
[INFO]Job com.wallissoftware.wave.WaveWithLogging_1_0
[INFO]   starting job: com.wallissoftware.wave.WaveWithLogging_1_0
[INFO]   binding: codec.base64Supported=yes
[INFO]   Compiling module com.wallissoftware.wave.WaveWithLogging
[INFO]  Computing all possible rebind results for 
'com.google.gwt.logging.shared.RemoteLoggingService'
[INFO] Rebinding 
com.google.gwt.logging.shared.RemoteLoggingService
[INFO]Invoking generator 
com.go

Re: DART vs. GWT

2014-11-22 Thread Richard Eng
I believe you're right. A lot of people, myself included, are turned off by 
Java. (It's no coincidence that Java is one of the most despised languages 
in the world, along with PHP, Visual Basic, C++, and JavaScript, with Perl 
often mentioned, too.) Java is too "heavy" a language, and it is by no 
means a "fun" language. (I personally favour Go, Python, and Smalltalk.)

For both GWT and Dart project, Google should've focused on a much simpler 
and more elegant language. Google should *not* have tried to appeal to Java 
developers. Making Dart *Java-like* may well be the nail in the coffin.

I agree that JS is the 'assembler' language of the web. Given that, I am 
drawn to Amber Smalltalk...


On Friday, 21 November 2014 10:23:43 UTC-5, Ümit Seren wrote:
>
> I guess it is largely related to the fact that it's Java and most people 
> in web-development come from the Javascript side of things and for them 
> Java is much more verbose than Javascript (this will change when GWT 
> supports the Java 8 syntax). 
> Dart has basically the same problem. People are asking why Dart hasn't yet 
> replaced Javascript yet although as a language it combines the powerful 
> features from different languages (Java, C#, smalltalk, etc).
> Javascript is not going anywhere and is becomming more and more the new 
> assembler language/intermediate (IL)/VM (whatever you want to call it) of 
> the web. 
> Even Javascript itself can nowadays be compiled down to a simpler form of 
> Javascript (Traceur ES6 -> ES5).
>   
> A lot of high level languages have emerged that try to solve the pitfalls 
> of Javascript (Dart, GWT, Typescript, Atscript). You can even compile C++ 
> down to Javascript but none of them will replace Javascript. 
>
> I think future Javascript versions might evolve more towards the direction 
> of Typescript/Atscript and solve some of the issues.  
>
>
> On Thursday, November 20, 2014 9:38:32 PM UTC+1, Richard Eng wrote:
>>
>> I've been trying to understand the reasons GWT has not become a 
>> widespread JS alternative. It has lost a great deal of mindshare; it's 
>> pretty much a niche market now. Dart appears to be Google's second crack at 
>> the whip (possibly learning from GWT's mistakes?).
>>
>> There is very little discussion on the web about these reasons. Is it 
>> really because of Java's reputation for being complicated and difficult?
>>
>> Or could the elephant in the room be issues surrounding compiling to JS? 
>> If so, this would be the same obstacle Dart faces.
>>
>> So, why *did* GWT not take the world by storm?
>>
>>
>> On Wednesday, 22 August 2012 18:10:38 UTC-4, Joseph Lust wrote:
>>>
>>> Frankly the only issue GWT has, which Dart likely does not, is that it 
>>> requires intelligent Java developers. You know, that language that is all 
>>> strict and requires you to really understand what you're doing. Generics, 
>>> oh my!
>>>
>>> Script kiddies don't much care for XML, unit testing frameworks, Aria, 
>>> UiBinder, i18n, hyper optmized JS and the like. To them these are hoops. I 
>>> would not expect frameworks that really are best in class at making RIA's 
>>> to be the 'most popular' for this reason. And it's not just the kiddies. To 
>>> others like seasoned JSP developers, many of the concepts are still new in 
>>> GWT, and why would they want to change?
>>>
>>> So I'd never expect GWT to become super popular or to surpass PHP/jQuery 
>>> mashups. But I can say from experience that in the enterprise space, where 
>>> these features are sought afters, it is continuing to gain popularity. 
>>> We've got 70 GWT devs in my office alone.
>>>
>>>
>>>
>>> Sincerely,
>>> Joseph 
>>>
>>

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


Re: DART vs. GWT

2014-11-20 Thread Richard Eng
I've been trying to understand the reasons GWT has not become a widespread 
JS alternative. It has lost a great deal of mindshare; it's pretty much a 
niche market now. Dart appears to be Google's second crack at the whip 
(possibly learning from GWT's mistakes?).

There is very little discussion on the web about these reasons. Is it 
really because of Java's reputation for being complicated and difficult?

Or could the elephant in the room be issues surrounding compiling to JS? If 
so, this would be the same obstacle Dart faces.

So, why *did* GWT not take the world by storm?


On Wednesday, 22 August 2012 18:10:38 UTC-4, Joseph Lust wrote:
>
> Frankly the only issue GWT has, which Dart likely does not, is that it 
> requires intelligent Java developers. You know, that language that is all 
> strict and requires you to really understand what you're doing. Generics, 
> oh my!
>
> Script kiddies don't much care for XML, unit testing frameworks, Aria, 
> UiBinder, i18n, hyper optmized JS and the like. To them these are hoops. I 
> would not expect frameworks that really are best in class at making RIA's 
> to be the 'most popular' for this reason. And it's not just the kiddies. To 
> others like seasoned JSP developers, many of the concepts are still new in 
> GWT, and why would they want to change?
>
> So I'd never expect GWT to become super popular or to surpass PHP/jQuery 
> mashups. But I can say from experience that in the enterprise space, where 
> these features are sought afters, it is continuing to gain popularity. 
> We've got 70 GWT devs in my office alone.
>
>
>
> Sincerely,
> Joseph 
>

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


Re: Manipulating current history token

2014-07-24 Thread Richard Wallis
If the page isn't reloaded between navigation then I think the presenter
should remember it's state.

Otherwise I think storing which objects are open in localStorage and then
reading the state from that might be better than trying to store state in
the historyToken.


On Thu, Jul 24, 2014 at 9:49 PM, Shaun Tarves  wrote:

> I am using Places in my GWT app, but I've encountered a scenario in which
> I want to manually manipulate the current history token, and I'm having
> trouble:
>
> I have a screen showing a collection of objects, where the user can click
> a button to load more results (similar to an infinite scrolling scenario).
> Each time I add more results, I want to make note of that in the current
> history token so that if a user navigates back to the page, I have that
> number and can initially load that many results.
>
> I DON'T want to change the visible URL token whenever they load more
> results.
>
> I've tried doing placeController.getWhere and manipulating the actual
> place to set a value, but that doesn't help when going forward/back, since
> the altered place was never hashed on the history stack.
>
> I've also tried to alter the history item that is on the history stack by
> calling History.getValue() and just making changes to it, but that doesn't
> seem to work either.
>
> History.newItem(string, false) also doesn't work because it will change my
> visible token, which is exactly what I don't want to do.
>
> Thoughts?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at http://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

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


code generation?

2014-03-07 Thread Richard
Do you have any cool techniques or tools to share that help generate code 
for GWT?

I'm about to add a class to a project.  Due to the set of GWT features I'm 
using, I'll likely add a corresponding DAO, a Locator, a RequestContext, a 
Proxy, likely two or three of: Place, Activity, Presenter, View, maybe a 
few events, event handlers etc.  I'd love to right-click the class, fill 
out a wizard, click a few checkboxes and get a basic set of files that I 
can modify.  It's about a decade since I last looked at Java code 
generation - surely the state of the art is awesome? What should I be 
looking at?

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


Re: Creating charts using GWT

2013-09-14 Thread Richard
GWT Highcharts is great looking but don't ignore the pricing. It's not 
exactly front-and-center on the website.

http://shop.highsoft.com/highcharts.html

If you use it on a non-app website it's $90. That won't cover most GWT use, 
so for commercial GWT app use it starts at $390, multiple developers $1500.

On Friday, September 13, 2013 1:30:23 PM UTC+2, Seamus McMorrow wrote:
>
> I am using GWT Highcharts
>
> http://www.moxiegroup.com/moxieapps/gwt-highcharts/
>
> Works well for us.
>
> On Friday, 13 September 2013 01:47:13 UTC+1, Wayne Rasmuss wrote:
>>
>> I don't think Google charts actually makes requests in general usage. You 
>> may be able to download the js files and use them. You should first check 
>> and see if that it's acceptable in their terms of use. I have never tried 
>> it myself. There was an old version where images were rendered on Google 
>> servers but I don't think that it's still the case. This may also break the 
>> gwt bindings out there but Google charts is really nice and it would be 
>> worth the effort.
>
>

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


Re: Restrict PopupPanel glass size?

2013-01-14 Thread Richard
Aha, I might have it. Just throw out all the PopupPanel stuff, and add the 
transparent style directly to the widget that I want greyed out.  If I hit 
issues I'll just mirror whatever the PopupPanel internal code does.

On Monday, January 14, 2013 1:01:51 PM UTC+2, Richard wrote:
>
> I'm trying out the PopupPanel.setGlassEnabled() functionality. So far, it 
> seems to grey out the whole screen irrespective of what I do.
>
> Is there a way I can get it to hide only one widget, or one part of the 
> screen?  I'd prefer to grey out just the part that is changing, and leave 
> the user with the rest so they can still manipulate the app.  I've tried 
> setting the location, setting the z-order of widgets above that of the 
> glass panel. No dice (yet).
>

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



Restrict PopupPanel glass size?

2013-01-14 Thread Richard
I'm trying out the PopupPanel.setGlassEnabled() functionality. So far, it 
seems to grey out the whole screen irrespective of what I do.

Is there a way I can get it to hide only one widget, or one part of the 
screen?  I'd prefer to grey out just the part that is changing, and leave 
the user with the rest so they can still manipulate the app.  I've tried 
setting the location, setting the z-order of widgets above that of the 
glass panel. No dice (yet).

-- 
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/-/Clynd9IYL3sJ.
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: RequestFactory: possible to load the whole object graph

2012-10-30 Thread Richard
Alternatively, just fetch all objects in a flat list, have each object hold 
their parent id, and build up the tree on the client end. A little bit of 
work but it'll be one fetch.

On Tuesday, October 30, 2012 5:30:48 PM UTC+2, Tiago wrote:
>
> Thank you for your reply.
>
> I'm actually displaying it in a Tree widget, not on a HasData. I guess 
> I'll load it dynamically while the user clicks through the nodes. Or load 
> it all at once in a series of recursive requests, don't know yet.
>
> On Tuesday, October 30, 2012 4:11:57 PM UTC+1, Alex opn wrote:
>>
>> Is there a way to load the entire tree with a single request in Request 
>>> Factory?
>>>
>>
>> No, there is not : / Although it would be nice and there was already an 
>> open issue for it. (
>> http://code.google.com/p/google-web-toolkit/issues/detail?id=6697)
>>  
>> What you can do is use an async data provider if you show your tree 
>> structure through a celltree or a cellbrowser. But that introduces other 
>> problems. It's not that easy to refresh the data or traverse the tree to 
>> open all nodes or similar things. I'd really like to provide an example for 
>> an async data provider but don't have the time now.
>>
>> HTH
>> opn
>>
>> Am Dienstag, 30. Oktober 2012 13:13:24 UTC+1 schrieb Tiago:
>>>
>>> Hello all,
>>>
>>> I found this topic through Google. I have a similar problem.
>>>
>>> I have a tree structure, with an arbitrary (dynamic) number of levels. 
>>> Ex, an entity A which has a "children" relation which is a Set.
>>> Is there a way to load the entire tree with a single request in Request 
>>> Factory?
>>>
>>> I can't use the solution proposed in this discussion 
>>> (with("child.grandchild...")) because I don't know in advance how many 
>>> levels the tree will have. All I know is that it's a tree (no cycles) and 
>>> that I may assume it's small enough to be downloaded in a HTTP request and 
>>> stored locally on the client, in memory.
>>>
>>> Thank you!
>>>
>>

-- 
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/-/q30kGhXqe64J.
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: RequestFactory - how to fetch object graph

2012-10-18 Thread Richard
AFAIK one thing the "with" does for you is call the method named, so 
with("lines") will call getLines(), which I imagine would let you build up 
any structure, including a recursive one.

I haven't tried deeply nested structures, though - please update if you 
know better.

On Tuesday, November 23, 2010 5:59:47 PM UTC+2, mp31415 wrote:
>
> By default RequestFactory(RF) fetches an entity proxy itself(the root) 
> but does not fetch other entity proxies referenced from the root. In 
> order to fetch referenced properties their names must be provided 
> using with() method on the request(context). Is there a syntax to 
> request proxies nested even deeper (referenced from those referenced 
> entities of the first level)? 
>
> For example, if there are three classes(entities): User, Line, Point: 
>
> class User 
> { 
>   Set lines; 
> } 
> class Line 
> { 
>   Point start; 
>   Point end; 
> } 
> class Point 
> { 
>   int x; 
>   int y; 
> } 
>
> How can I fetch User proxy with all its lines and points? 
>
> Please don't tell me about denormalizing, workarounds like referencing 
> everything directly from User or about upcoming in GWT 2.1.1 
> value(embedded) objects. The question is about entity graph and the 
> classes above are just an illustration. 
>
> Thanks.

-- 
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/-/oApCEbMh6PcJ.
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-Textarea Problem

2012-10-09 Thread Richard
textArea.setText(textArea.getText() + newText); should let you append the 
data.

To get data continuously you'll either need to poll the server, which will 
be expensive if you have many clients, or use something like long-polling 
to push data from the server to each client as it's generated. That'll be 
more work, but it's probably the right way to do it.  Maybe poll for now, 
and then add comet when you have time.

http://code.google.com/p/gwt-comet/ for one implementation of the client 
side.

On Tuesday, October 9, 2012 5:20:42 PM UTC+2, tnagarnaik wrote:
>
> Hello, 
>   I am currently working on a module in which I want that logs should 
> be 
> fetched from the server and should get displayed on client in a 
> Textarea(GUI) 
> continuously.How can I append the new data at the end of already present 
> information in textarea and is there any function for getting the info 
> continuously from the server because the function is returning a single 
> String? 
> Plz do reply as soon as possible.Thanks. 
>
>

-- 
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/-/JgObz6iD3AYJ.
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: Are you happy with GWT?

2012-10-09 Thread Richard
A couple warnings.

I'd
 
suggest starting off slowly, rather than dumping the whole team onto GWT on 
day 1. There are a ton of gotchas or WTF's that the good GWT devs likely 
don't remember. Adding an intermediate layer can frustrate you if you're 
used to bare-metal web dev, so you'll definitely get some pushback at some 
point.

Also, since Java's now considered a bit of an older language compared to 
the dynamic stuff the cool kids are using, that can affect resourcing. Are 
the cool kids happy to write Java for their front-end work? Are they happy 
that it'll have a positive effect on their career and not paint them into a 
corner?

Personally, I love it. It can drive me nuts at times, but it gives me too 
many benefits to ignore. Once you learn the intricacies, it's very powerful.

-- 
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/-/R436N4yJOKQJ.
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: Easy GWT Podcast Episode 04 has been released.

2012-10-05 Thread Richard
Looks great, and thanks for the contribution. Maybe put a small 
headings-only summary in the Google Group post?

On Friday, October 5, 2012 7:26:47 AM UTC+2, gpike wrote:
>
> *Easy GWT Podcast Episode 04 has been 
> released.We
>  
> are pleased to announce the fourth episode of Easy GWT Podcast where we 
> bring you the GWT news from around the net. If you develop with Google Web 
> Toolkit then stay informed about GWT news. Find us at easygwt.com or on 
> iTunes at 
> easygwt-podcast
> .*
>

-- 
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/-/vMMBEv-TLO4J.
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: Scary: GWT Team does not fix serious GWT Compiler Bugs

2012-10-03 Thread Richard
On Wednesday, October 3, 2012 12:22:57 AM UTC+2, Manuel Carrasco wrote:

>
>> But any gwt developer knows that the gwt compiler has a set of 
> limitations which are widely admitted and documented (regex, number 
> arithmetic, etc), I have spent a lot of time trying to figure out why some 
> tests passed in dev and not in production though. 
>
>>
>>
Number arithmetic? Is this still an issue, even though we can now use 
BigDecimal?  Is the relevant JS not reliable? 

-- 
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/-/-1Ki9SdziY0J.
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 podcasts?

2012-10-01 Thread Richard
I subbed by right-clicking and copying the RSS posts link, and then pasting 
it in the new feed box in Google Reader.

On Monday, October 1, 2012 3:45:25 PM UTC+2, Ian Mayo wrote:
>
> Hi there, thanks for putting in the effort to produce the podcasts.
>
> I may be missing something, but I'm struggling to see how to subscribe to 
> the podcast using my podcast-reader, Google Listen in Reader.  You only 
> appear to support downloading the m4a files.
>
> Are you able to make them podcast-reader compliant?
>
> cheers,
> Ian
>
>

-- 
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/-/vERFYeiMdL8J.
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: DevMode not working in Chrome after update

2012-09-25 Thread Richard
Such a pain.  Try this (it worked for me on Mac OS X)... 

1)  Get an older version at
http://mac.oldapps.com/google_chrome.php
-- I chose Google Chrome 21.0.1180.89 from August 30, 2012.. the direct 
link is
http://mac.oldapps.com/google_chrome.php?old_chrome=1260

2)  Drop it somewhere other than your Applications folder.  Rename it to 
Google Chrome.older (or whatever), THEN put it into your Applications 
folder.  Leave the more recent Google Chrome app right were it is... it 
will remain the target of updates, even if your Google Chrome.older 
triggers an update (i.e. the ".older" version won't get overwritten).

3)  For me, that ".older" one runs the GWT DevMode Plugin just fine... just 
like in .older times.

4)  For kicks, it seems you can tune Google's update interval.  Here's an 
example where you can stop it entirely (notice the zero...)
>From the command prompt:  defaults write com.google.Keystone.Agent 
checkInterval 0
I found that one 
at http://support.google.com/installer/bin/answer.py?hl=en&ctx=go&answer=147176

5)  Good luck.


On Tuesday, July 17, 2012 9:16:03 AM UTC-5, Andy wrote:
>
> I updated Chrome this morning and now when I try to use DevMode I get an 
> error "Could not load GWT DevMode Plugin" and an offer to Download the GWT 
> Developer Plugin. When I try to download it (it's already installed), it 
> says "Extensions, apps, and user scripts can only be added from the Chrome 
> Web Store." and there's no GWT plugin in the store.

-- 
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/-/q36pWEIIXh4J.
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: In page (html) anchors don't work - they interfere with history tokens

2012-09-22 Thread Richard
That's quite something. The hashtag was originally meant for the use 
tanteanni intends (jumping to points within a document), but it's been so 
heavily abused that we now have to write workarounds to get the original 
behaviour back.

On Friday, September 21, 2012 4:55:51 PM UTC+2, Jens wrote:
>
> Have you tried to attach an event listener (DOM.addEventListener()) to 
> these anchors and call ClickEvent.preventDefault() when you click on them? 
> That could suppress the history change and you can scroll your html 
> document yourself by reading the href attribute and searching the anchor 
> you need to scroll to. But don't forget to remove the event listener if you 
> don't need the html anymore.
>
> If ClickEvent.preventDefault() does not work you need to modify your 
> anchors to
>
> Chapter 1
>
> or use  instead of  because you can't use href anyways. So remove 
> the href attribute and put the information in a custom attribute. Your 
> click handler would use the custom attribute to get the information where 
> to scroll to.
>
> Obviously you have to do the scrolling yourself 
> (Element.scrollIntoView()). 
>
> In modern browsers you could maybe use HTML5 pushState instead of hash 
> tokens for history management. In that case you probably don't have to 
> change anything in your html document. But if you want IE compatibility 
> this is not an option.
>
> -- J.
>

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



Re: need help in calling servlet on gwt +gae

2012-09-13 Thread Richard
I just posted a reply on SO.

On Thursday, September 13, 2012 6:09:42 AM UTC+2, vikceo wrote:
>
> some one please advise we are really stuck on this
>
> Thankx and Regards
>
> Vik
> Founder
> http://www.sakshum.org
> http://blog.sakshum.org
>
>
> On Tue, Sep 11, 2012 at 12:22 PM, Vik >wrote:
>
>> anyone on this plz ? we are stuck here
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> http://www.sakshum.org
>> http://blog.sakshum.org
>>
>>
>> On Sat, Sep 8, 2012 at 2:15 PM, Vik >wrote:
>>
>>> Hello
>>>
>>> Can someone please assist us on 
>>> http://stackoverflow.com/questions/12327308/redirecting-from-xfbml-to-gwt-does-not-work
>>>
>>>
>>> Thankx and Regards
>>>
>>> Vik
>>> Founder
>>> http://www.sakshum.org
>>> http://blog.sakshum.org
>>>
>>
>>
>

-- 
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/-/Mhw1AzkpU0wJ.
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: GwtChosen: make your select boxes much more user-friendly

2012-08-31 Thread Richard
Agreed, awesome work.

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



CellTable TextInputCell styling

2012-08-27 Thread Richard
I've been trying out various methods of getting a table-like page for 1-10 
rows of data for an invoice editor.  One approach uses the CellTable and 5 
columns containing TextInputCells.  I want to style them with a specific 
border, and each column has a different width.  After much head-knocking of 
searching for style settings and trying separate CellTable style bundles 
and who knows what else, I overrode the TextInputCell render method to 
hammer actual HTML out.  When I saw that I have to manually fiddle with the 
tab index as well, I thought I'd just check here. Is there a cleaner way of 
doing all this?

Current favourite idea is to just have a widget for the table, and widgets 
for each row. Those at least will play with the editor framework and I can 
style them reasonably easily.

Richard

-- 
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/-/0WrbaEO99HMJ.
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 Delevoper Plugin for Chrome must be installed from Web Store

2012-08-12 Thread Richard Vorp
I'm having the same issue. I'm not able to install the plugin and cannot 
find it in the webstore.

On Friday, July 13, 2012 12:28:01 PM UTC-7, Peter Nees wrote:
>
> I'am not able to run my application anymore in development mode. (I work 
> on Vista.)
> I lost my plugin for Chrome.
> 1. I open my test url 
> (http://127.0.0.1:/...),
>  
> I get the normal prompt: Development Mode requires the Google Web Toolkit 
> Developer Plugin.
> 2. I try to install it from there, but I get the message "extension, apps 
> and user scripts can only be installed from the Chrome Web Store". 
> => No problem with that, but, I don't find the plugin in the WebStore !
>
>
>
>
>

-- 
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/-/hMHXUku_PMsJ.
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 future

2012-08-07 Thread Richard
IE10 will be able to work as if it's a previous version.  This page should 
explain it:
http://msdn.microsoft.com/en-us/library/ff955275(v=vs.85).aspx 

On Tuesday, August 7, 2012 4:10:22 PM UTC+2, funkforce wrote:
>
> Thanks Thomas,
>
> But what do you mean by  IE=9 mode ?
>
> Den tisdagen den 7:e augusti 2012 kl. 10:48:11 UTC+2 skrev Thomas Broyer:
>>
>> Generally it should work, but it cannot be guaranteed: workarounds now 
>> breaking, etc. IE10 is going to be a major change though, so you'll either 
>> have to use the IE=9 mode, or recompile with a newer GWT.
>
>

-- 
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/-/0R9n5ehNJsYJ.
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: Does the Google App Engine Support Java/J2EE Web Application

2012-08-06 Thread Richard
This is the GWT forum, so I'd suggest posting GAE questions on the GAE 
forum instead. That's here:
https://groups.google.com/forum/?fromgroups#!forum/google-appengine 

Having said that, if you have a standard Java app, it's likely not going to 
"just work" on App Engine, which comes with lots of restrictions and 
platform-related gotchas.  App Engine doesn't have a goal of being a 
standard J2EE stack.

If your app is already built and you just need somewhere to put it, use a 
normal VM-based hosting service.  From your other question it looks like 
you want something free, which is also unlikely.  Unless you want to do a 
lot of re-development (which will likely cost a lot more than the hosting 
fees), I'd suggest paying for the hosting while you test your proof of 
concept.

On Monday, August 6, 2012 7:50:51 AM UTC+2, vikash@Atos wrote:
>
> Any help would be appreciated. Urgent guys!!! 
>
> On Aug 3, 7:38 am, "vikash@Atos"  wrote: 
> > Hi, 
> > 
> > I have two questions: 
> > 
> > 1) Does the Google App Engine supports web application (java/j2ee)? 
> > I have a java/j2ee web app, can I deploy it on Google App Engine (with 
> > my gmail account)? 
> > 
> > 2) If my application is using MySQL, how can I run it on GAE? 
> > 
> > Thanks in advance. 
> > Vikash 
>

-- 
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/-/AHikyhBKCGIJ.
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: Random-seeming "Uncaught exception escaped" with no reference to my code

2012-08-04 Thread Richard
That's probably it, thanks Alfredo.

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



Random-seeming "Uncaught exception escaped" with no reference to my code

2012-08-04 Thread Richard
Every so often, while running in Dev Mode, I'll get this exception (or 
something like it). Is this some under the hood local-only issue I don't 
need to worry about, or does it hint as something I should fix?  Is there 
anything I can do about it?

Uncaught exception escaped
com.google.gwt.dev.shell.HostedModeException: Something other than an int 
was returned from JSNI method 
'@com.google.gwt.query.client.js.JsCache::length()': JS value of type 
boolean, expected int
at 
com.google.gwt.dev.shell.JsValueGlue.getIntRange(JsValueGlue.java:266)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:144)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeInt(ModuleSpace.java:247)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeInt(JavaScriptHost.java:75)
at com.google.gwt.query.client.js.JsCache$.length$(JsCache.java)
at 
com.google.gwt.query.client.js.JsObjectArray$.length$(JsObjectArray.java:52)
at 
com.google.gwt.query.client.plugins.events.EventsListener.dispatchEvent(EventsListener.java:372)
at 
com.google.gwt.query.client.plugins.events.EventsListener.onBrowserEvent(EventsListener.java:435)
at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351)
at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307)
at sun.reflect.GeneratedMethodAccessor65.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213)
at sun.reflect.GeneratedMethodAccessor60.invoke(Unknown Source)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292)
at 
com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546)
at 
com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363)
at java.lang.Thread.run(Thread.java:662)

-- 
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/-/Af7k-0f7aU4J.
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: Working with Dates/Timezones

2012-08-01 Thread Richard
I use a timezone-agnostic value for the user's intent (X time on Y day), 
e.g. a string or long value that I create with my own format (e.g. 
201207052030, which has date and time).  I store that, and translate it 
into server-understandable values.  I store the account's default timezone, 
and the users timezone if they have a different one to the account, and do 
all important calcs on the server.

This way, if the user timezone changes, or an entity is re-assigned to a 
new user, the original intent is maintained and simply translated into that 
users timezone.

On Wednesday, August 1, 2012 5:12:46 PM UTC+2, Jens wrote:
>
> Hi,
>
> how do you work with dates/timezones in your apps? I have the following 
> situation:
>
> (Client browser, app server, database server live in Germany and we have 
> UTC+1 or UTC+2 when daylight saving time is active)
>
> A user chooses a Date + Time (e.g. from GWT's DateBox) and we send that 
> date object to the server and store it in database. On the client side 
> everything is visually consistent until we want to print something. The 
> report is generated on the server and the date that the user has entered *
> can* be off by 1 hour on the server which results in wrong dates in the 
> report compared to the information visible inside the client app. Also if 
> you use DateBox and only display the day portion of a date the date will 
> still be off by one hour but to the user it is visible as being off by one 
> day in the report because the date contains 00:00:00 as time portion which 
> will become 23:00:00 for the previous day on the server.
>
> As an example the user may chooses 26.10.1951 12:00:00 via the GWT 
> DateBox. Chrome, Safari, IE and Opera think (java.util.Date delegates to 
> JsDate class in compiled app) that daylight saving time is active for that 
> date (UTC+2 and thus date.getTimezoneOffset() returns -120 minutes). 
> Unfortunately we don't have daylight saving time from 1950 to 1979 at all 
> in Germany and our app server (= JVM) / database server knows this fact 
> which results in a differently rendered date on the server. So if we render 
> that date on the server its off by one hour (UTC+2 on client vs. UTC+1 on 
> server). Firefox does correctly treat the date as UTC+1. On the other hand 
> there are other dates where Firefox fails but other browsers do it 
> correctly.
>
> As the GWT DateBox uses a DefaultFormat that uses DateTimeFormat and calls 
> dtf.format(date) without a timezone I provided a custom Formatter that 
> explicitly uses GWT's europeBerlin timezone. Now the GWT DateBox shows 
> 26.10.1951 11:00:00 because GWT's timezone provided to the DateTimeFormat 
> detects that no day light saving time is active at this date. Now client 
> and server render the date the same although the browser created it 
> incorrectly with UTC+2. BUT sadly there are other dates where GWT's 
> timezone information also failes and differs from the server timezone 
> information.
>
> So short story: Its currently impossible to create a consistent behavior 
> between client and server for certain dates. It seems like that GWT's 
> timezone info and the browsers native timezone infos have different data 
> than the tz database used by Unix / Linux / Java / database server. There 
> are also differences between browsers itself.
>
> So how do you guy work with dates in your app? I mean as an example it can 
> be as easy as selecting a birthday (without time => 00:00:00) and use that 
> birthday on server side in a report. Now you are maybe a day older in the 
> report if you live in germany :-)
>
> The only "partial" solution we can think of is to always use 12:00:00 as 
> time if you are only interested in the day portion of date (to avoid off by 
> one day problem) and to use a fixed non DST day (maybe 01.01.1970) which is 
> safe in all browsers if you are only interested in the time portion of date 
> (to make sure its rendered the same on client/server). Obviously this also 
> means that we can never store day and time in a single date instance.
>
> So whats your experience with timezones and/or do you have other possible 
> solutions? Or have you never noticed this discrepancy in your timezone? In 
> Dev mode everything works fine, because its Java like on the app server.
>
> -- J.
>

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

2012-07-26 Thread Richard
I suspect you'll never get a promise out of Google.  However, GWT isn't so 
much an internal project anymore as it moves to become more 
community-driven, so hopefully that lowers the chances of dying off. 
Hopefully.

And Google is hiring for GWT:
https://plus.google.com/u/0/110412141990454266397/posts/Nvdeq3vR7Fr 

On Monday, July 23, 2012 9:14:49 AM UTC+2, AG wrote:
>
> I'm an Architect and we have been looking to port our legacy HTML w/ Java 
> Script based web app  (with java backend) to a next generation web 
> application. We are a java shop so GWT is very popular with our developers 
> and I have been so called GWT fan-boy all along.
>
> However, lately I'm strongly considering moving away from GWT. Following 
> are my observations that are scaring me to start looking for GWT 
> alternatives:
>
> 1. Larry Page has been killing no-so-happening (or revenue generating) 
> projects from google. I was reading that 30+ projects have already been 
> killed/shelved ever since Larry became CEO.
>   -- I understand the need for this and I also understand that GWT 
> currently enjoys a healthy developer community. 
>
> 2. DART - Looks like its the next big thing within google to develop web 
> applications. As a google outsider, at least this is what it seems like. 
> Google IO 2012 has no sessions for GWT while DART had several and there is 
> even a session to convert GWT apps to DART.
>
> 3. The latest update to Google Developer portal (
> http://developers.google.com) has no direct links to GWT. The web 
> development section goes to chrome. 
>
> I think the GWT team can address some of my concerns but it would be great 
> if Google's management can stand behind GWT as a platform of choice for web 
> development - similar to how Microsoft stands behind theirs development 
> platforms. 
>
> AG
>
>
>

-- 
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/-/Omkc6StHx90J.
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: When one has the option to use XML or JSON to communicate with JS libraries, which one would be better?

2012-07-18 Thread Richard
It's likely json will be processed more quickly on the client since it can 
be done natively, although it does depend on your use case. And json is 
usually smaller.
http://en.wikipedia.org/wiki/JSON#Native_encoding_and_decoding_in_browsers 
http://stackoverflow.com/questions/4596465/is-parsing-json-faster-than-parsing-xml
 
http://stackoverflow.com/questions/325085/when-to-prefer-json-over-xml  
(and vice versa)

On Wednesday, July 18, 2012 3:50:20 PM UTC+2, Ümit Seren wrote:
>
> I would go with JSON. 
> It's more compact than XML and seems to become more and more the defacto 
> standard for data communication in the web. 
>
>
> On Wednesday, July 18, 2012 7:18:42 AM UTC+2, MAQ wrote:
>>
>> Sorry, I meant 2 options provided by Google APIs.
>>
>> On Wednesday, July 18, 2012 2:50:51 PM UTC+10, Robert W wrote:
>>>
>>> I don't understant in what context you use "solution" word but generally 
>>> json is standard for api use, with gwt overlays mechanism it easy to use in 
>>> java typing model.
>>>
>>> On Wednesday, July 18, 2012 4:52:32 AM UTC+2, MAQ wrote:

 Hi,

 I hope the question is clear, I'm a total GWT newbie. My project 
 requires the use of some of Google's APIs. Two main solutions are provided 
 one for XML and another for JSON (gdata-java-client and 
 google-api-java-client).

 Which one would be more suitable (easier, more compatible etc.)? Or is 
 it a mere personal choice?

 Regards,
 Mo

>>>

-- 
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/-/wWpftg3kSskJ.
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: Application size due to Internationalization

2012-07-18 Thread Richard
Rana - are you combining class files into a jar? That'll help reduce the 
file count for GAE, if that's an issue for you.

Wishlist:
upload the code/basic .classes, have GWT compilation happen on Google 
infrastructure.

On Wednesday, July 18, 2012 9:49:19 AM UTC+2, Rana wrote:
>
> Hi Joseph,
>
> Thanks a lot for the information. I will go through both links, and see if 
> it helps in solving the problem.
>
> Many thanks again
> Rana
>
> On Wednesday, July 18, 2012 3:07:48 AM UTC+2, Joseph Lust wrote:
>>
>> Rana,
>>
>> I've read that internal Google apps must build to 240 permutations for 
>> the supported browsers and languages. To support this they:
>>
>>- Conduct draft compilations only using their desired dev permutation
>>- Do complete compiles for releases/CI/test on a server farm
>>
>> There are instructions out there that do this sort of thing:
>>
>>- gwt-distcc  
>>- GWT Distributed Build 
>> documentation
>>
>> Of course you probably don't need to do a complete build that often (CI 
>> machine, pre-release), so collapsing the permutations or just doing a 
>> single permutation draft compile might suffice.
>>
>>
>> Sincerely,
>> Joseph
>>
>

-- 
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/-/qLQkl-aALboJ.
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: Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
No, I hadn't!  Simple solution, fixed.  I've been on that page all day but 
missed that!

Thanks Thomas,
Richard

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



Force RequestFactory to retrieve data from domain object getters?

2012-02-09 Thread Richard
I have a Map in a domain object and I'd really like to pass it through 
RequestFactory.  RF doesn't do Maps, so I now generate a List of KeyValue 
in a getter in my domain object and they have KeyValueProxy equivalents on 
the client side.  It seems that RF bypasses the getter when populating the 
EntityProxy, so that method isn't called.

Is there a simple solution to this that I'm missing?  I'd prefer to stop 
adding levels of hackery to this essentially simple problem.

Richard

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



Developer Plugin documentation?

2011-11-17 Thread Richard Allen
Is there any documentation for the GWT Developer Plugin, such as what 
browsers it supports? Sadly, the documentation for GWT appears to lack 
information on the Developer Plugin. You have to dig around the site to 
find the URL: http://gwt.google.com/missing-plugin. Seems appropriate to 
have a section of the documentation devoted to details about the plugin.

-- 
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/-/naQwRMiA-YsJ.
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: AutoBean Deserialization of JSON that can be an Array or single Object

2011-09-30 Thread Richard Turner
Thanks for the reply, the server is using JSON-lib to serialize an XML
representation of the data (as two REST APIs are provided), I will look into
altering the servers JSON output to force arrays where needed.

Thanks again,

Rich

On 30 September 2011 05:56, -sowdri-  wrote:

> >> but I cannot guarantee the JSON format.
>
> What library are you using on the server?
>
> >> Should I look to change my JSON server output so that even if a
> single object is returned it is still wrapped in an array?
>
> Yes!
>
> --
> 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/-/sUIzUnQtICkJ.
> 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.



Re: How "exclude attribute" can resolve "No source code is available" issue?

2011-09-23 Thread Richard
Got it. Thanks very much!

On Sep 23, 3:54 pm, Alexandre Dupriez 
wrote:
> See my last answer. If the class is in your method signature, and thus
> your code contains a reference to it, you cannot get rid of the class
> with an "exclude".
>
> This directive works only if you want to ignore classes which are on
> the path of the client side of the application (ie translated in JS)
> but not referred to in other classes of the client side.
>
> Alexandre.

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



Re: How "exclude attribute" can resolve "No source code is available" issue?

2011-09-23 Thread Richard
Could you clarify your example?

For example,

Let's say I have "com.test.gwt_client.Client.java" which refers
"javax.xml.bind.Unmarshaller", but Unmarshaller is *NOT* really used -
it only exists in method signature.

What does XML look like?

  
    
  

or

  
    
  

or something else?

Thanks,
Richard

On Sep 23, 6:51 am, Alexandre Dupriez 
wrote:
> You cannot exclude XmlAdapter or Unmarshaller if they are transitively
> refereed to in your client code (ie, if a class in your client code
> depends on it), since, as you might guess, every classes in your graph
> hierarchy must be translatable in JavaScript on client side.
>
> However, to ignore a class which is not refereed to in your code, you
> can just write for instance
>
>   
>       
>   
>
> Alexandre

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



Re: How "exclude attribute" can resolve "No source code is available" issue?

2011-09-23 Thread Richard
Yes, that is my workaround. :-) But it is a hack, we want to have a
*proper* way to fix it.

On Sep 23, 4:05 am, Thomas Broyer  wrote:
> On Friday, September 23, 2011 12:38:36 AM UTC+2, Richard wrote:
>
> > Thanks for the reply.
>
> > I read the link but still do not get it.
>
> > Does "exclude attribute" exclude files match the pattern or exclude
> > the file from the compile list? What I want is to tell gwtc to
> > *ignore* XmlAdapter or Unmarshaller even they are referenced in the
> > code.
>
> That won't work.
>
> But you can provide an "emulated" version that is a no-op. See “Overriding
> one package implementation with another” 
> inhttp://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...
>
>
>
>
>
>
>
>
>
> > BTW, I could not find the examples you mentioned linked from the
> > issue.
>
> > Thanks,
> > Richard
>
> > On Sep 22, 12:19 pm, Thomas Broyer  wrote:
> > > Seehttp://
> > code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...(and
> > > there was examples linked from the issue; AntLR.gwt.xml for instance)

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



Re: How "exclude attribute" can resolve "No source code is available" issue?

2011-09-22 Thread Richard
Thanks for the reply.

I read the link but still do not get it.

Does "exclude attribute" exclude files match the pattern or exclude
the file from the compile list? What I want is to tell gwtc to
*ignore* XmlAdapter or Unmarshaller even they are referenced in the
code.

BTW, I could not find the examples you mentioned linked from the
issue.

Thanks,
Richard

On Sep 22, 12:19 pm, Thomas Broyer  wrote:
> Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...(and
> there was examples linked from the issue; AntLR.gwt.xml for instance)

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



How "exclude attribute" can resolve "No source code is available" issue?

2011-09-22 Thread Richard
Hi,

I have model classes shared by server side and client side, so I can
not remove JAXB, JPA etc annotations and class.

By either including source code (in an extra jar) or binary jar file
has compiled class files, the "No source code is available" issue can
be resolved for *most* of classes like "javax.persistence.Entity" or
"javax.xml.bind.annotation.XmlElement". But there are some classes
like "javax.xml.bind.annotation.adapters.XmlAdapter",
"javax.xml.bind.Unmarshaller" still cause trouble.

I had a workaround by including source code of "XmlAdapter" and a fake
*empty* file of "Unmarshaller" (using empty file due to Unmarshaller
is too complex and it refers to *a lot* of other classes) in the GWT
project directly. But this is kind of hack.

My question is is there any *proper* way to resolve this issue?

It seem "exclude attribute" is one of the solutions from the following
link:

"...You can fix your issue by excluding CollapsedStringAdapter from
being considered by the GWT compiler.
Use the exclude attribute on the source element in you GWT module
file..."

http://code.google.com/p/google-web-toolkit/issues/detail?id=4020

But I could not make it work. Is there more information or example?

Thanks,
Richard

-- 
You received 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: Floating a GWT-built page above an existing "conventional" page

2011-04-26 Thread Richard
Please... how to get that PopupPanel instance to come to life if it's
being called from (and meant to overlay) a page that has nothing to do
with GWT???  Thanks so much.


On Apr 26, 9:13 am, jhulford  wrote:
> See the PopupPanel or DialogBox class...that should allow you to do
> exactly what you want.
>
> In GWT terms your "standard" page will be acting as the host page for
> your GWT popup stuff you plan on displaying.  Your use case fits in
> with all the tutorials of how to get up an going in GWT.  You're just
> not inserting widgets, etc into existing slots on the screen, you're
> showing a popup (which handles inserting itself into the page).
>
> On Apr 25, 10:28 am, Richard  wrote:
>
>
>
>
>
>
>
> > First, thanks for taking this question on, second all kinds of
> > apologies in advance if I mess-up on terminologies / technologies as I
> > attempt to describe the problem:
>
> > Can a GWT-built page be made to "float" above an existing HTML/CSS/
> > Javascript page that has been built with typical (but non-GWT) tools
> > and frameworks?
>
> > By "float" I mean the kind of cool trickery you can get out of JQuery,
> > etc. to have some HTML up above the existing page, where the existing
> > page suddenly is covered with a translucent "smoked glass" effect, and
> > the "floating" stuff is clear, has focus, and is usable, before you
> > close it to return to the underlying original page.
>
> > Initial attempts at this have failed.
>
> > Is GWT too comprehensive to end up in an iFrame (or whatever DOM
> > object JQuery is using)... does it need to own the  and / or
> >  tags so it can present its nocache statement?
>
> > Altogether:
>
> > Is there any way to get my GWT page (which works beautifully as a
> > stand-alone) to live in the same window as (as top layer above) a pre-
> > existing page???
>
> > Thank you so 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-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.



Floating a GWT-built page above an existing "conventional" page

2011-04-25 Thread Richard
First, thanks for taking this question on, second all kinds of
apologies in advance if I mess-up on terminologies / technologies as I
attempt to describe the problem:

Can a GWT-built page be made to "float" above an existing HTML/CSS/
Javascript page that has been built with typical (but non-GWT) tools
and frameworks?

By "float" I mean the kind of cool trickery you can get out of JQuery,
etc. to have some HTML up above the existing page, where the existing
page suddenly is covered with a translucent "smoked glass" effect, and
the "floating" stuff is clear, has focus, and is usable, before you
close it to return to the underlying original page.

Initial attempts at this have failed.

Is GWT too comprehensive to end up in an iFrame (or whatever DOM
object JQuery is using)... does it need to own the  and / or
 tags so it can present its nocache statement?

Altogether:

Is there any way to get my GWT page (which works beautifully as a
stand-alone) to live in the same window as (as top layer above) a pre-
existing page???

Thank you so 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-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: Giving wrong value for Date of month

2011-04-24 Thread Richard
You aren't saying what the type is for startDate and endDate.
If they are java.util.Date, I suggest looking ate the javadoc b/c the
method returns 0-11 and is also deprecated.

Richard

On Apr 23, 11:14 am, andy  wrote:
> int startMonth = startDate.getMonth();
> int endMonth = endDate.getMonth();
> giving wrong value 
> what to do now?

-- 
You received 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.2 on linux: Designer not wokring

2011-02-28 Thread Richard van der Wath
Problem disappeared after I installed GWT Designer BETA from
http://code.google.com/intl/af/webtoolkit/tools/download-gwtdesigner-beta.html

Thanks for everybody's help!
Richard

On 28 February 2011 21:17, Richard van der Wath wrote:

> I see the discussion refers to 64 bit systems. I have the issue on a 32 bit
> system and libwebkit seems to be fine:
> /usr/lib> ls -l libweb*
> lrwxrwxrwx 1 root root   23 2011-02-28 21:12 libwebkit-1.0.so ->
> libwebkit-1.0.so.2.17.8
> lrwxrwxrwx 1 root root   23 2011-01-12 21:58 libwebkit-1.0.so.2 ->
> libwebkit-1.0.so.2.17.8
> -rwxr-xr-x 1 root root 16578456 2011-01-11 16:24 libwebkit-1.0.so.2.17.8
>
> Also, I'm not running the os-version of eclipse, but downloaded and
> installed from the eclipse website.
>
> I'll have a go with the GWT beta release.
>
> Cheers
> Richard
>
>
>
> On 25 February 2011 21:47, Eric Clayberg  wrote:
>
>> See the discussion and suggestions here...
>>
>> http://code.google.com/p/google-web-toolkit/issues/detail?id=6029
>>
>> --
>> You received 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.



Re: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-28 Thread Richard Allen
I never knew of i_log until now. I suggest you write some documentation and 
provide a website if you want to attract users.

Anyway, we aren't using JME, and SF4J/Logback with a simple GWT emulation is 
working fine for us.

-Richard

-- 
You received 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.2 on linux: Designer not wokring

2011-02-28 Thread Richard van der Wath
I see the discussion refers to 64 bit systems. I have the issue on a 32 bit
system and libwebkit seems to be fine:
/usr/lib> ls -l libweb*
lrwxrwxrwx 1 root root   23 2011-02-28 21:12 libwebkit-1.0.so ->
libwebkit-1.0.so.2.17.8
lrwxrwxrwx 1 root root   23 2011-01-12 21:58 libwebkit-1.0.so.2 ->
libwebkit-1.0.so.2.17.8
-rwxr-xr-x 1 root root 16578456 2011-01-11 16:24 libwebkit-1.0.so.2.17.8

Also, I'm not running the os-version of eclipse, but downloaded and
installed from the eclipse website.

I'll have a go with the GWT beta release.

Cheers
Richard


On 25 February 2011 21:47, Eric Clayberg  wrote:

> See the discussion and suggestions here...
>
> http://code.google.com/p/google-web-toolkit/issues/detail?id=6029
>
> --
> You received 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.



Re: is it possible to use an SLF4J adapter in GWT to wrap java.util.logging ?

2011-02-25 Thread Richard Allen
I'm also currently working on an emulation of org.slf4j.Logger and 
org.slf4j.LoggerFactory. The emulated LoggerFactory class simply calls 
java.util.logging.Logger.getLogger(String) to create a logger, and the 
emulation of org.slf4j.Logger that is returned from LoggerFactory wraps the 
java.util.logging.Logger. I didn't bother emulating the Marker methods 
because we aren't using them. The org.slf4j.Logger emulation is loosely 
based on org.slf4j.impl.JDK14LoggerAdapter.

-- 
You received 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: SAXParseException when using SafeHtml Template

2011-02-21 Thread Richard

Valid XML requires there to be a single root element.

That is why it works when you wrap the two elements in a block.

Richard

On Feb 19, 6:13 pm, zixzigma  wrote:
> Thank you Ryan, it Worked !!!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-15 Thread Richard
Perhaps you forgot to update your gwt.xml files?
http://code.google.com/p/gwt-java-math/wiki/GettingStarted

>From Richard.

On Jan 15, 2:33 am, smriti sharma  wrote:
> Richard,
>
> I have upgraded the application to gwt-math-2.1.jar, but the issue
> persists. I am still receiving the same error message
> URI:http://dev3.compiere.org/apps/js/bigdecimal.js
> for  HTMLTable (package:com.google.gwt.widgetideas.table.client.overrides)
> setText function.
>
> Thanks,
> SmritiOn Sat, Jan 8, 2011 at 3:28 AM, Richard  wrote:
> > Your error message's URI:http://dev3.compiere.org/apps/js/bigdecimal.js
> > implies that you are using gwt-math project
> >http://code.google.com/p/gwt-math/
> > for BigDecimal, which has many issues and missing features, not the
> > BigDecimal built into GWT 2.1.
>
> > If you cant upgrade to GWT 2.1 then I recommend using gwt-java-math
> > projecthttp://code.google.com/p/gwt-java-math/which is what was
> > merged into GWT 2.1
>
> > From Richard
>
> > On Jan 7, 3:28 pm, smriti sharma  wrote:
> > >  I am using BigDecimal  constructor to initialize the BigDecimal value.
>
> > >  m_table.setText(row, col, text);   //m_table here is of type HTMLTable
>
> > >  setText for Hashtable is erroring for simple values for the "text"
> > > parameter e.g.- "60.00", "23.57"
>
> > >  javascript error occurs only when  I run the application in web mode in
> > > internet explorer 8.
>
> > > Thanks,
> > > Smriti
>
> > > On Thu, Jan 6, 2011 at 8:56 PM, Jeff Schwartz  > >wrote:
>
> > > > **Use either BigDecimal's constructor to initialize its value or one of
> > > > its valueOf methods to set its value.
>
> > > > Jeff
>
> > > > On Thu, Jan 6, 2011 at 4:58 AM, sims  wrote:
>
> > > >> I am receiving following js error when I am trying to set a Bigdecimal
> > > >> value for a grid column using
> > > >> HTMLTable  setText function.
>
> > > >> This is happening only in IE8 . Works fine in Firefox.
>
> > > >> User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64;
> > > >> Trident/4.0; SLCC2; .NET CLR2.0.50727; .NET CLR3.5.30729; .NET CLR
> > > >>3.0.30729; Media Center PC 6.0)
> > > >> Timestamp: Thu, 30 Dec 2010 18:51:16 UTC
>
> > > >> Message: Exception thrown and not caught
> > > >> Line: 1
> > > >> Char: 21338
> > > >> Code: 0
> > > >> URI:http://dev3.compiere.org/apps/js/bigdecimal.js
>
> > > >> This issue happens only when i run the application in hosted mode.
> > > >> In development mode of eclipse it is working fine.
>
> > > >> --
> > > >> You received 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 > > >>  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > >> .
> > > >> For more options, visit this group at
> > > >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > > --
> > > > *Jeff Schwartz*
>
> > > >  --
> > > > You received 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 > > >  cr...@googlegroups.com> > 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-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > 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-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 + GILEAD OR REQUEST FACTORY?

2011-01-11 Thread Richard Berger
FWIW, I made the switch from Gilead to RequestFactory and was pleased
with the outcome.  I am sure that both will work fine, but I seem to
recall fewer setup/configuration issues with RequestFactory.  Gilead
is wonderful, but perhaps because RequestFactory is "built-in" it is a
little easier to get started with.

RB

On Jan 10, 5:36 am, bond  wrote:
> Hi,
> actually I'm using gwt 2.1.1 with hibernate and gilead. Gilead is very
> comfortable because I don't have to create DTO class for my domain.
> I would like an opinion on the new system "RequestFactory"  compared
> with Gilead. What do you recommend?
>
> Thanks very much
>
> Best regards
>
> Daniele

-- 
You received 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: Not able to set BigDecimal value in a grid column using HTMLTable setText function in IE8

2011-01-07 Thread Richard
Your error message's URI: http://dev3.compiere.org/apps/js/bigdecimal.js
implies that you are using gwt-math project http://code.google.com/p/gwt-math/
for BigDecimal, which has many issues and missing features, not the
BigDecimal built into GWT 2.1.

If you cant upgrade to GWT 2.1 then I recommend using gwt-java-math
project http://code.google.com/p/gwt-java-math/ which is what was
merged into GWT 2.1

>From Richard

On Jan 7, 3:28 pm, smriti sharma  wrote:
>  I am using BigDecimal  constructor to initialize the BigDecimal value.
>
>  m_table.setText(row, col, text);   //m_table here is of type HTMLTable
>
>  setText for Hashtable is erroring for simple values for the "text"
> parameter e.g.- "60.00", "23.57"
>
>  javascript error occurs only when  I run the application in web mode in
> internet explorer 8.
>
> Thanks,
> Smriti
>
> On Thu, Jan 6, 2011 at 8:56 PM, Jeff Schwartz wrote:
>
>
>
> > **Use either BigDecimal's constructor to initialize its value or one of
> > its valueOf methods to set its value.
>
> > Jeff
>
> > On Thu, Jan 6, 2011 at 4:58 AM, sims  wrote:
>
> >> I am receiving following js error when I am trying to set a Bigdecimal
> >> value for a grid column using
> >> HTMLTable  setText function.
>
> >> This is happening only in IE8 . Works fine in Firefox.
>
> >> 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)
> >> Timestamp: Thu, 30 Dec 2010 18:51:16 UTC
>
> >> Message: Exception thrown and not caught
> >> Line: 1
> >> Char: 21338
> >> Code: 0
> >> URI:http://dev3.compiere.org/apps/js/bigdecimal.js
>
> >> This issue happens only when i run the application in hosted mode.
> >> In development mode of eclipse it is working fine.
>
> >> --
> >> You received 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 >>  cr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > *Jeff Schwartz*
>
> >  --
> > You received 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 > 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: Exposing my GWT API via web/RESTful service - can it be done (easilyish)?

2010-12-26 Thread Richard Berger
Thanks to all for the feedback - just wanted to share some
reactions
1. I was surprised by the lack of responses re: restlets - that seemed
to be a promising technology
2. Some of the suggestions/links seemed a little bit over my head -
but that is probably just because my head is at a pretty low place :).

But, pondering this a little more, I thought of a different approach
that might make a lot more sense.  The bottom line is that my
application will need an API that can be called by many clients,
including the GWT UI that we would like to build.  I was thinking of
trying to expose the Service API that is in the GWT application.  But
wouldn't another approach be to build a RESTful interface to my data
as the API and then use that API from my GWT application (as there
seem to be standard ways of accessing REST APIs from the GWT server
side).  Other apps could get to the REST API using whatever method
they chose and I don't have to end up implementing the API twice.

Thoughts and comments are definitely appreciated!  Esp those using
short words :).

RB

On Dec 21, 9:40 pm, zixzigma  wrote:
> Two great open-source projects I came across today are:
>
> RestyGWThttp://restygwt.fusesource.org/documentation/index.html
>
> GWT-JSON-CommandPatternhttp://code.google.com/p/gwt-json-commandpattern/
>
> they are pretty straight forward with clean API.

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



Exposing my GWT API via web/RESTful service - can it be done (easilyish)?

2010-12-20 Thread Richard Berger
Apologies in advance if I am not using the right terminology in
describing my question.  English is my first language.  But COBOL was
my first programming language :).

I am investigating using GWT/GAE for an upcoming project and one of
the requirements is that we provide an engine that will be used by our
GWT front-end as well as potentially being used by other clients -
perhaps over a web service (or a RESTful interface).

In creating the GWT application, one obviously has to define an API
between the "client side" and the "server side".  This appears to be
precisely the API I would want to expose to others.  It would also
seem to be redundant to have a second implementation of the API that
works with non-GWT front ends.

Thus, I am guessing there is a way to expose my GWT API to others.
More specifically, since I am using RequestFactory, I am talking about
exposing the methods defined in the RequestContext for each of my
entities (and implemented in the entity itself - at least as of GWT
2.1.0).

I have looked at the restlet project and it seems that that *might* be
what I need.  But it's hard for an ex-COBOL programmer to know for
sure :).

Thanks in advance for your help!
RB

-- 
You received 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: Title: EntityProxyChange not being called?

2010-12-20 Thread Richard Berger
Problem resolved.  The issue was that I had declared two eventBus
properties - and not noticed.  So the "real" event bus wasn't getting
any handlers assigned, so although the hasVersionChanged() was being
called (and was returning true), the doFire method in SimpleEventBus
did not have any handlers to invoke.

Bottom line - nothing to do with Objectify, no problems with GWT, just
the usual user error.

Thanks again for the pointers to that code - helped me work through
things more carefully.

RB

On Dec 19, 11:21 pm, Richard Berger  wrote:
> Sorry for not noticing this reply earlier.  Thank you for the
> explanation as to when the event fires.  I did try incrementing the
> version number in my persist() method - something very simple, just
> incrementing the version by 1 before putting it back to the
> datastore.  I will restore that code and debug it as you suggest and
> post back with results (and probably questions :) ).
>
> Thanks again!
> RB
>
> On Dec 15, 6:35 am, David Chandler  wrote:
>
>
>
>
>
>
>
> > Hi Richard,
>
> > It looks like AbstractRequestContext.processReturnRecord() fires an
> > EntityProxyChange event only when the version has changed. See lines
> > 270-285 here:
>
> >http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/...
>
> > The answer to your question likely lies in the implementation of
> > hasVersionChanged() in the same file. Perhaps you could set a
> > breakpoint on the server or client to confirm that the version has
> > indeed changed for the entity?
>
> > HTH,
> > /dmc
>
> > On Sun, Dec 12, 2010 at 5:52 PM, Richard Berger  
> > wrote:
> > > I am following the model of DynaTableRf in building a sample app
> > > combining RequestFactory, EditorFramework, CellTable, and Objectify.
> > > In tracing the code for DynaTableRf after a new Person is created
> > > (when the user clicks on New Person), the onPersonChanged method is
> > > called, since it was registered using the following code:
>
> > > EntityProxyChange.registerForProxyType(eventBus, PersonProxy.class,
> > >    new EntityProxyChange.Handler() {
> > >      public void onProxyChange(EntityProxyChange event)
> > > {
> > >        SummaryWidget.this.onPersonChanged(event);
> > >      }
> > >    });
>
> > > However, in my code (which is essentially identical - same type of
> > > "workflow", usage of RequestFactory, cellTable) my onProxyChange() is
> > > NOT being called.  My code is shown below - yes, it looks quite
> > > similar :).
> > > EntityProxyChange.registerForProxyType(eventBus,
> > > CommitmentProxy.class,
> > >    new EntityProxyChange.Handler() {
> > >      public void onProxyChange(EntityProxyChange
> > > event) {
> > >        SummaryWidget.this.onCommitmentChanged(event);
> > >        System.out.println("In onCommitmentChanged");
> > >      }
> > >    });
>
> > > In both cases (DynaTableRf, my code) the new objects (Person,
> > > Commitment) are created - it is a matter of how to get the
> > > EntityProxyChange to be called to update the display.
>
> > > Two things I Hadn't noticed at first (but which had no effect when I
> > > tried them):
> > > 1. To my CommitmentProxy class, I added the following line to match
> > > the equivalent in PersonProxy
> > >        EntityProxyId stableId();  // For 
> > > EntityProxyChange
> > > - but no help
> > > 2. To my persist() method, I added a manual update to the version
> > > field, thinking that might be necessary to trigger the
> > > EntityProxyChange.
>
> > > The one significant difference between my code and DynaTableRf is that
> > > I am using Objectify, whereas DynaTableRf appears to use an in-memory
> > > datastore.
>
> > > So my questions are:
> > > 1. What is it that should trigger the EntityProxyChange event?  The
> > > code for when the user presses the New Person button is:
> > > PersonRequest context = requestFactory.personRequest();
> > > AddressProxy address = context.create(AddressProxy.class);
> > > PersonProxy person = context.edit(context.create(PersonProxy.class));
> > > person.setAddress(address);
> > > context.persist().using(person);
> > > eventBus.fireEvent(new EditPersonEvent(person, context));
>
> > > My code for the new Commitment button is:
> > > CommitmentRequest context = requestFactory.commitmentRequest();
> > > CommitmentProxy commitment =
> &g

Re: Title: EntityProxyChange not being called?

2010-12-19 Thread Richard Berger
Sorry for not noticing this reply earlier.  Thank you for the
explanation as to when the event fires.  I did try incrementing the
version number in my persist() method - something very simple, just
incrementing the version by 1 before putting it back to the
datastore.  I will restore that code and debug it as you suggest and
post back with results (and probably questions :) ).

Thanks again!
RB


On Dec 15, 6:35 am, David Chandler  wrote:
> Hi Richard,
>
> It looks like AbstractRequestContext.processReturnRecord() fires an
> EntityProxyChange event only when the version has changed. See lines
> 270-285 here:
>
> http://code.google.com/p/google-web-toolkit/source/browse/tags/2.1.0/...
>
> The answer to your question likely lies in the implementation of
> hasVersionChanged() in the same file. Perhaps you could set a
> breakpoint on the server or client to confirm that the version has
> indeed changed for the entity?
>
> HTH,
> /dmc
>
>
>
>
>
>
>
>
>
> On Sun, Dec 12, 2010 at 5:52 PM, Richard Berger  
> wrote:
> > I am following the model of DynaTableRf in building a sample app
> > combining RequestFactory, EditorFramework, CellTable, and Objectify.
> > In tracing the code for DynaTableRf after a new Person is created
> > (when the user clicks on New Person), the onPersonChanged method is
> > called, since it was registered using the following code:
>
> > EntityProxyChange.registerForProxyType(eventBus, PersonProxy.class,
> >    new EntityProxyChange.Handler() {
> >      public void onProxyChange(EntityProxyChange event)
> > {
> >        SummaryWidget.this.onPersonChanged(event);
> >      }
> >    });
>
> > However, in my code (which is essentially identical - same type of
> > "workflow", usage of RequestFactory, cellTable) my onProxyChange() is
> > NOT being called.  My code is shown below - yes, it looks quite
> > similar :).
> > EntityProxyChange.registerForProxyType(eventBus,
> > CommitmentProxy.class,
> >    new EntityProxyChange.Handler() {
> >      public void onProxyChange(EntityProxyChange
> > event) {
> >        SummaryWidget.this.onCommitmentChanged(event);
> >        System.out.println("In onCommitmentChanged");
> >      }
> >    });
>
> > In both cases (DynaTableRf, my code) the new objects (Person,
> > Commitment) are created - it is a matter of how to get the
> > EntityProxyChange to be called to update the display.
>
> > Two things I Hadn't noticed at first (but which had no effect when I
> > tried them):
> > 1. To my CommitmentProxy class, I added the following line to match
> > the equivalent in PersonProxy
> >        EntityProxyId stableId();  // For EntityProxyChange
> > - but no help
> > 2. To my persist() method, I added a manual update to the version
> > field, thinking that might be necessary to trigger the
> > EntityProxyChange.
>
> > The one significant difference between my code and DynaTableRf is that
> > I am using Objectify, whereas DynaTableRf appears to use an in-memory
> > datastore.
>
> > So my questions are:
> > 1. What is it that should trigger the EntityProxyChange event?  The
> > code for when the user presses the New Person button is:
> > PersonRequest context = requestFactory.personRequest();
> > AddressProxy address = context.create(AddressProxy.class);
> > PersonProxy person = context.edit(context.create(PersonProxy.class));
> > person.setAddress(address);
> > context.persist().using(person);
> > eventBus.fireEvent(new EditPersonEvent(person, context));
>
> > My code for the new Commitment button is:
> > CommitmentRequest context = requestFactory.commitmentRequest();
> > CommitmentProxy commitment =
> > context.edit(context.create(CommitmentProxy.class));
> > commitment.setPhase("Negotiation");
> > context.persist(currentCommitUserProxy).using(commitment);
> > eventBus.fireEvent(new EditCommitmentEvent(commitment, context));
>
> > 2. Is Objectify the problem?  Does it interfere with the magic that
> > triggers EntityProxyChange?
>
> > Thanks so much for any assistance!
> > RB
>
> > --
> > You received 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.
>
> --
> David Chandler
> Developer Programs Engineer, Google Web 
> Toolkithttp://googlewebtoolkit.blogspot.com/

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



Exposing RequestContext methods to non-GWT clients.... (newbie question)...

2010-12-16 Thread Richard Berger
In building very simple "learning application" using GWT-RPC and then
RequestFactory, I was wondering whether it was possible to expose the
methods that are in my RequestContext interface (in the RequestFactory-
based app).  In particular, I have:

public interface CommitmentRequest extends RequestContext {
  // bunch of useful methods
}

These methods are obviously what my GWT client side needs to get the
job done.  But now let's say I want some other type of client to
access the same functionality that is provided by the "engine" (GWT
server side).  Perhaps an iPhone client or an Android client, or some
other application (Java, .Net, something else) wants to use my
engine's capabilities.

Is there some way to "expose" the methods in CommitmentRequest so that
they can used from those other clients?  It seems to me that this
would not be an uncommon request.

I have started looking at the RESTlet project - but didn't want to go
too far in case I was going in the wrong direction.

Thanks so much for any guidance you can provide!
RB

PS - If it matters, I was also planning on hosting this on GAE and am
using Objectify for persistence.

-- 
You received 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: importing sample and tutorial apps

2010-12-15 Thread Richard Hall
It is what I'm trying to do, but the install of the GWT SDK samples
directory seems to be missing whatever build and/or configuration files are
required to tell Eclipse that there are Java GWT projects in that folder -
this is what my SDK folder contains:

build.xml
\DynaTable
\DynaTableRf
\Expenses
\LogExample
\Mail
   \src
   \test
   \war
   build.xml
   README.txt
Showcase

The result of trying to use the Import Wizard on the samples directory or
the Mail subdirectory is:

"No projects are found to import"

Do I need to use another utility to process the sample apps directory? (the
build.xml files seem to imply ANT, but that seems a little heavy handed for
importing sample source code)  Perhaps the process for importing in Eclipse
has changed since the last publishing of the sample source code? - but I
haven't yet discovered any alternatives...

I am moderately new to Eclipse, but moderately experienced with coding
platforms.  If I know what direction to take, I'm sure I can make it work.
 This just doesn't seem to adhere to anything I've experienced before.

Thanks for your help.

BTW - From what I have done so far with GWT, it looks to be a fantastic
platform.  Great work.  I'm very much looking forward to using it and GAE in
the near future.

On Wed, Dec 15, 2010 at 2:08 PM, David Chandler wrote:

> Richard,
>
> Agreed, we need better docs on this. All the Eclipse sample projects
> are under the eclipse folder in the root dir. You should be able to
> import them into Eclipse with File | Import existing project. Or is
> that what you're trying?
>
> /dmc
>
> On Wed, Dec 15, 2010 at 3:41 PM, Richard Hall  wrote:
> > Like my noob friend above, I've also had lots of difficulty trying to
> > import GWT sample apps, and other than slowly copy-pasting portions of
> > code and reconfiguring, I cannot find any other way to import apps
> > like the "Sample Mail app" or others like it.
> >
> > I absolutely cannot believe that this kind of functionality has been
> > overlooked by those smart eclipse / GWT developers.  But I have been
> > searching for days for alternatives, without success.  Either it's
> > overly obvious or very subtle that I am not "getting it".
> >
> > I'm running GWT 2.0.4 and Eclipse 3.5.
> >
> > BTW, The link above seems to be redirected now to an irrelevant
> > article.
> >
> > Any help is appreciated - Thanks,
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com
> .
> > To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> >
>
>
>
> --
> David Chandler
> Developer Programs Engineer, Google Web Toolkit
> http://googlewebtoolkit.blogspot.com/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



importing sample and tutorial apps

2010-12-15 Thread Richard Hall
Like my noob friend above, I've also had lots of difficulty trying to
import GWT sample apps, and other than slowly copy-pasting portions of
code and reconfiguring, I cannot find any other way to import apps
like the "Sample Mail app" or others like it.

I absolutely cannot believe that this kind of functionality has been
overlooked by those smart eclipse / GWT developers.  But I have been
searching for days for alternatives, without success.  Either it's
overly obvious or very subtle that I am not "getting it".

I'm running GWT 2.0.4 and Eclipse 3.5.

BTW, The link above seems to be redirected now to an irrelevant
article.

Any help is appreciated - 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.



Title: EntityProxyChange not being called?

2010-12-12 Thread Richard Berger
I am following the model of DynaTableRf in building a sample app
combining RequestFactory, EditorFramework, CellTable, and Objectify.
In tracing the code for DynaTableRf after a new Person is created
(when the user clicks on New Person), the onPersonChanged method is
called, since it was registered using the following code:

EntityProxyChange.registerForProxyType(eventBus, PersonProxy.class,
new EntityProxyChange.Handler() {
  public void onProxyChange(EntityProxyChange event)
{
SummaryWidget.this.onPersonChanged(event);
  }
});

However, in my code (which is essentially identical - same type of
"workflow", usage of RequestFactory, cellTable) my onProxyChange() is
NOT being called.  My code is shown below - yes, it looks quite
similar :).
EntityProxyChange.registerForProxyType(eventBus,
CommitmentProxy.class,
new EntityProxyChange.Handler() {
  public void onProxyChange(EntityProxyChange
event) {
SummaryWidget.this.onCommitmentChanged(event);
System.out.println("In onCommitmentChanged");
  }
});

In both cases (DynaTableRf, my code) the new objects (Person,
Commitment) are created - it is a matter of how to get the
EntityProxyChange to be called to update the display.

Two things I Hadn't noticed at first (but which had no effect when I
tried them):
1. To my CommitmentProxy class, I added the following line to match
the equivalent in PersonProxy
EntityProxyId stableId();  // For EntityProxyChange
- but no help
2. To my persist() method, I added a manual update to the version
field, thinking that might be necessary to trigger the
EntityProxyChange.

The one significant difference between my code and DynaTableRf is that
I am using Objectify, whereas DynaTableRf appears to use an in-memory
datastore.

So my questions are:
1. What is it that should trigger the EntityProxyChange event?  The
code for when the user presses the New Person button is:
PersonRequest context = requestFactory.personRequest();
AddressProxy address = context.create(AddressProxy.class);
PersonProxy person = context.edit(context.create(PersonProxy.class));
person.setAddress(address);
context.persist().using(person);
eventBus.fireEvent(new EditPersonEvent(person, context));

My code for the new Commitment button is:
CommitmentRequest context = requestFactory.commitmentRequest();
CommitmentProxy commitment =
context.edit(context.create(CommitmentProxy.class));
commitment.setPhase("Negotiation");
context.persist(currentCommitUserProxy).using(commitment);
eventBus.fireEvent(new EditCommitmentEvent(commitment, context));

2. Is Objectify the problem?  Does it interfere with the magic that
triggers EntityProxyChange?

Thanks so much for any assistance!
RB

-- 
You received 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: Request factory: java.lang.NoClassDefFoundError: org/json/JSONException

2010-12-07 Thread Richard Berger
Just noting that this does solve the problem and that the gwt-servlet-
deps.jar is in the GWT 2.1 distribution.  (I hit this problem today
and adding the jar resolved the issue).

RB

On Nov 28, 1:42 am, Thomas Broyer  wrote:
> On 27 nov, 15:46, Simon Majou  wrote:
>
> > Hello,
>
> > I am trying to run the dynatablerf example for request factory, and I
> > get :
>
> > HTTP ERROR: 500org/json/JSONException
> > RequestURI=/gwtRequestCaused by: > h3>java.lang.NoClassDefFoundError: org/json/JSONException
> [...]
> > Can you tell which jar to use to resolve that ? Shouldn't the classes
> > be included into GWT 2.1 ?
>
> They are in gwt-servlet-deps.jar (which the build.xml should correctly
> copy to war/WEB-INF/lib, but maybe the Google Plugin for Eclipse
> doesn't –can't tell, I'm using Maven for my 2.1 projects–)

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



Modeling a simple 1 to Many relationship using Request Factory, Objectify...

2010-11-29 Thread Richard Berger
With much help from web sources and others, I got this working - won't
be of any help to the smart folks out there - just the Morons Like Me
(tm) :).

Here's a link - don't make fun of my ancient MovableType blog - it was
all the rage in the late 90s -
http://landisfamily.dnsalias.org:90/rblog/2010/11/one_to_many_relationships_with.html

Enjoy,
RB

-- 
You received 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: RequestFactory - A request is already in progress

2010-11-28 Thread Richard Berger
Problem solved...
I was confused about two key points (sadly confusion is an
occupational hazard for us morons):
1) When to "reuse" a RequestContext vs. creating a new RequestContext
2) What Objectify.put() actually does

For #1, I believe that the same dynatablerf code put it as "using the
given RequestContext to accumulate the edits."  My usage had been
somewhat random prior to that.  So, when calling the persist() I now
made sure to use the right RequestContext.

For #2, I had been making the change to the Commitment, then calling
put() and then making a change to the CommitUser, and then calling
put() again.  Now I make the changes to both entities and call put()
once.  This seemed to be the more important of the two.

These items may be obvious to all others, but on the off-chance there
are other old folks trying to write code

Enjoy,
RB

On Nov 28, 2:04 pm, Richard Berger  wrote:
> Similar problem, but I was not able to implement your solution - any
> guidance is suggested.  And I promise, once I get my simple app
> working, I will write the "GWT/Objectify 1-to-Many Relationships for
> Moron Like Me" guide :).
>
> The problem in the small...
> CommitUsers can have Commitments.  I create a new Commitment and try
> to associate that with the CommitUser.  But the properties on the
> CommitUser (even just a string) are not persisted.  So, 
> following:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h...
> in the section on Using RequestFactory, I figure I must be falling
> into the trap of not having an editable CommitUser (since I didn't
> create it, the CommitUseralreadyexists).
>
> So I change my code from:
>  Request createReq =
> commitmentRequest.persist(currentCommitUserProxy).using(newCommitment);
>
> To:
>   CommitUserProxy editableCommitUserProxy =
> commitUserReq.edit(currentCommitUserProxy);
>  Request createReq =
> commitmentRequest.persist(editableCommitUserProxy).using(newCommitment);
>
> Where:
>   commitUserReq is:
>         private CommitUserRequest commitUserReq =
> requestFactory.commitUserRequest();
>  requestFactory is:
>         CommitmentSystemRequestFactory requestFactory =
> GWT.create(CommitmentSystemRequestFactory.class);
>
> This gives me the error:
> Caused by: java.lang.IllegalStateException: Arequestisalreadyinprogress
>     at
> com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocke 
> d(AbstractRequestContext.java:
> 307)
>
> Following the advice you provided, I tried to create a new
> RequestContext, so my code became...
>   CommitUserRequest commitUserReq2 =
> requestFactory.commitUserRequest();
>   CommitUserProxy editableCommitUserProxy =
> commitUserReq2.edit(currentCommitUserProxy);
>  Request createReq =
> commitmentRequest.persist(editableCommitUserProxy).using(newCommitment);
> But that gave me the error:
>
> Caused by: java.lang.IllegalArgumentException: Attempting to edit an
> EntityProxy previously edited by another RequestContext
>   at
> com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkStrea 
> msNotCrossed(AbstractRequestContext.java:
> 334)
>
> Stepping back a little bit, the slightly bigger picture is that I am
> following the article 
> at:http://www.ibm.com/developerworks/java/library/j-javadev2-13/index.html
> (Java development 2.0: Twitter mining with Objectify-Appengine, Part
> 1).  But that article doesn't use GWT.  But the idea is that the
> Commitment stores a Key so that I can query the
> Commitment.class to find all the Commitments whose Key matches the Key
> of the current user.  When I save a Commitment, I first save the
> Commitment itself and then establish the relationship by modifying the
> CommitUser (as the article demonstrates).  So, my persist method
> (fired above) is...
>
>   public void persist(CommitUser commitUser) {
>     // Save commitment first
>     DAO dao = new DAO();
>     Objectify ofy = dao.ofy();
>     ofy.put(this);
>     dao = null;
>     // Then establish relationship
>     commitUser.addCommitment(this);  // Owner is in charge
>   }
>
> And the addCommitment method on the CommitUser is:
>   public  void addCommitment(Commitment commitment) {
>     DAO dao = new DAO();
>     Objectify ofy = dao.ofy();
>     commitment.setRequesterKey(this);
>     commitment.setDescription("Updated in addCommitment");
>     ofy.put(this);
>     dao = null;
>   }
>
> And finally, the commitment.setRequestKey() is:
>   public void setRequesterKey(CommitUser commitUser) {
>     this.requesterKey = new Key(CommitUser.class,
> commitUser.getId());
>   }
>
> In the debugger I can see that all the properties - e.g. "Description"
> ge

Re: RequestFactory - A request is already in progress

2010-11-28 Thread Richard Berger
Similar problem, but I was not able to implement your solution - any
guidance is suggested.  And I promise, once I get my simple app
working, I will write the "GWT/Objectify 1-to-Many Relationships for
Moron Like Me" guide :).

The problem in the small...
CommitUsers can have Commitments.  I create a new Commitment and try
to associate that with the CommitUser.  But the properties on the
CommitUser (even just a string) are not persisted.  So, following:
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#relationships
in the section on Using RequestFactory, I figure I must be falling
into the trap of not having an editable CommitUser (since I didn't
create it, the CommitUser already exists).

So I change my code from:
  Request createReq =
commitmentRequest.persist(currentCommitUserProxy).using(newCommitment);

To:
  CommitUserProxy editableCommitUserProxy =
commitUserReq.edit(currentCommitUserProxy);
  Request createReq =
commitmentRequest.persist(editableCommitUserProxy).using(newCommitment);

Where:
  commitUserReq is:
private CommitUserRequest commitUserReq =
requestFactory.commitUserRequest();
  request Factory is:
CommitmentSystemRequestFactory requestFactory =
GWT.create(CommitmentSystemRequestFactory.class);

This gives me the error:
Caused by: java.lang.IllegalStateException: A request is already in
progress
at
com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocked(AbstractRequestContext.java:
307)

Following the advice you provided, I tried to create a new
RequestContext, so my code became...
  CommitUserRequest commitUserReq2 =
requestFactory.commitUserRequest();
  CommitUserProxy editableCommitUserProxy =
commitUserReq2.edit(currentCommitUserProxy);
  Request createReq =
commitmentRequest.persist(editableCommitUserProxy).using(newCommitment);
But that gave me the error:

Caused by: java.lang.IllegalArgumentException: Attempting to edit an
EntityProxy previously edited by another RequestContext
  at
com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkStreamsNotCrossed(AbstractRequestContext.java:
334)

Stepping back a little bit, the slightly bigger picture is that I am
following the article at:
http://www.ibm.com/developerworks/java/library/j-javadev2-13/index.html
(Java development 2.0: Twitter mining with Objectify-Appengine, Part
1).  But that article doesn't use GWT.  But the idea is that the
Commitment stores a Key so that I can query the
Commitment.class to find all the Commitments whose Key matches the Key
of the current user.  When I save a Commitment, I first save the
Commitment itself and then establish the relationship by modifying the
CommitUser (as the article demonstrates).  So, my persist method
(fired above) is...

  public void persist(CommitUser commitUser) {
// Save commitment first
DAO dao = new DAO();
Objectify ofy = dao.ofy();
ofy.put(this);
dao = null;
// Then establish relationship
commitUser.addCommitment(this);  // Owner is in charge
  }

And the addCommitment method on the CommitUser is:
  public  void addCommitment(Commitment commitment) {
DAO dao = new DAO();
Objectify ofy = dao.ofy();
commitment.setRequesterKey(this);
commitment.setDescription("Updated in addCommitment");
ofy.put(this);
dao = null;
  }

And finally, the commitment.setRequestKey() is:
  public void setRequesterKey(CommitUser commitUser) {
this.requesterKey = new Key(CommitUser.class,
commitUser.getId());
  }

In the debugger I can see that all the properties - e.g. "Description"
get set, but they are not persisted to the Datastore.

I am sure this is common, but it seems that I am very close to getting
this simple example to work - so any assistance is greatly appreciated
and I will do my best to provide assistance to the community.  I think
my qualifications as a moron have to be helpful in some way.  I am
also old if that helps :) :).

Thanks all!
RB




On Nov 9, 7:01 am, Ramon Buckland  wrote:
> Thanks Tobias,
>
> That explanation was good. I had it right logically, but omitted
> calling one of my "special - create me a new " methods, that replaced
> my RequestContext for me.
>
> All good niow. it saves data!
>
> On Nov 9, 2:28 pm, Tobias  wrote:
>
>
>
>
>
>
>
> > I *think* that happens after you have fired a RequestContext. From
> > looking at the code, which is a bit hard because of the
> > DeferredBinding that's going on there, the "locked" variable in a
> > RequestContext gets only reset to "false", if the firedRequestfails.
> > So I think you need to use a new RequestContext.
>
> > Regards,
> > Tobias
>
> > On Nov 9, 12:48 pm, Ramon Buckland  wrote:
>
> > > Hi All,
>
> > > I am currently in the process of building an app, initally based off
> > > the Roo framework.
> > > I am getting a "Arequestisalreadyinprogress" at the point where I
> > > call create for a child entity.
>
> > > Is there a way I can see what "requestcontexts" are inprogress, so I
> > > c

Re: Gilead AND GWT

2010-11-27 Thread Richard Berger
I had some difficulties getting Gilead/Hibernate/GWT working together,
but here is something I posted about 11 months ago after I got it all
working - hope it helps you... 
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg34602.html

Enjoy,
RB

On Nov 25, 12:00 pm, Noor  wrote:
> Hi, thanks, yes i think i should place there as well. I just hope to
> get out of this problem. We here are almost all programmers, when we
> get a problem its a fun to debug it. When u have tried to debug for
> one whole, at end of the one day it become a stress and then at the
> end of the second, it is hopeless case if time is limited, and that's
> my case fooo!!

-- 
You received 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: Comet and GWT problem

2010-11-26 Thread Richard
This is a cross post. The original is here
http://groups.google.com/group/gwt-comet/browse_thread/thread/c154c425911222c5

>From Richard.

On Nov 27, 8:17 am, Noor  wrote:
> I am getting this error when using the gwt-comet
>
> [WARN] 405 - GET /trycomet/greet?t=2UGMNJ&c=45 (127.0.0.1) 1470 bytes
>    Request headers
>       Host: 127.0.0.1:
>       User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:
> 1.9.2.12) Gecko/20101026 Firefox/3.6.12
>       Accept: application/comet
>       Accept-Language: en-us,en;q=0.5
>       Accept-Encoding: gzip,deflate
>       Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
>       Keep-Alive: 115
>       Connection: keep-alive
>       Referer:http://127.0.0.1:/TryComet.html?gwt.codesvr=127.0.0.1:9997
>       Cookie: JSESSIONID=964bqzlrkbll
>    Response headers
>       Content-Type: text/html; charset=iso-8859-1
>       Content-Length: 1470
> com.google.gwt.user.client.rpc.StatusCodeException: 405 
> 
> 
> Error 405 HTTP method GET is not supported by this URL
> 
> HTTP ERROR: 405HTTP method GET is not supported by
> this URL
> RequestURI=/trycomet/greetPowered by Jetty://
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
>
>         at
> net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.onReceiving(HTT 
> PRequestCometTransport.java:
> 150)
>         at
> net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.onLoaded(HTTPRe 
> questCometTransport.java:
> 139)
>         at net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport.access
> $1(HTTPRequestCometTransport.java:136)
>         at net.zschech.gwt.comet.client.impl.HTTPRequestCometTransport
> $2.onReadyStateChange(HTTPRequestCometTransport.java:112)
>         at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 157)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingFo 
> rReturn(BrowserChannelServer.java:
> 326)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> elServer.java:
> 207)
>         at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 126)
>         at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 561)
>         at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 269)
>         at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> ava:
> 91)
>         at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
>         at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)
>         at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> 103)
>         at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)
>         at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 157)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChanne 
> lServer.java:
> 281)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 531)
>         at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 352)
>         at java.lang.Thread.run(Thread.java:662)

-- 
You received 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: RequestFactory, Objectify, saving a new object with collections

2010-11-24 Thread Richard Berger
Thanks again - I will give that a try RB

On Nov 23, 2:44 pm, David Chandler  wrote:
> You're welcome, Richard, glad to help.
>
> My understanding is that Objectify always uses Keys to express
> relationships. If you want to retrieve the entity directly, you can
> add a getter/setter that calls Objectify to get / put an entity by its
> Key. These helper methods are likely what you would expose in the
> EntityProxy so client-side code won't have any references to Key. This
> works today.
>
> /dmc
>
> On Tue, Nov 23, 2010 at 5:23 PM, Richard Berger  
> wrote:
> > Thank you for the quick and clear reply which completely fixed my
> > problem.  On a higher level, when support for Keys is added, should I
> > use the Key or the Entity?  I can see that there may be some value in
> > just having the Key and getting the Entity when I need it - although
> > it seems like I will nearly always be needing the Entity.  But perhaps
> > I am missing some key distinction.
>
> > Thanks so much for taking the time to share your advice!
> > RB
>
> > On Nov 23, 12:26 pm, David Chandler  wrote:
> >> Hi Richard,
>
> >> RequestFactory doesn't yet support arrays. Use List instead. Also
> >> ensure that your Proxy doesn't expose the Objectify Key type, as only
> >> entity types and a few value types are supported until 2.1.1.
>
> >> /dmc
>
> >> On Tue, Nov 23, 2010 at 2:23 PM, Richard Berger  
> >> wrote:
> >> > Goal: Save an object an associated collection
> >> > How to do this with Request Factory and Objectify?
>
> >> > I have an object that looks like:
> >> > Commitment.java (in com.br.commit2.server.domain)
> >> > public class Commitment {
> >> > �...@id private Long id;
> >> >        private String title;
> >> >  // other simple fields
> >> >  private Integer version;
>
> >> >  // Methods exposed through Request factory
>
> >> >  // Getters, setters
> >> > }
>
> >> > Since I am trying to use RequestFactory, I also have:
> >> > CommitmentProxy.java (in com.rb.commit2.shared)
> >> > @ProxyFor (Commitment.class)
> >> > public interface CommitmentProxy extends EntityProxy {
> >> >        public String getTitle();
> >> >        public void setTitle(String title);
> >> >  // rest of interface
> >> > }
>
> >> > Also have
> >> > public interface CommitmentSystemRequestFactory extends RequestFactory
> >> > {
> >> >  CommitmentRequest commitmentRequest();
> >> >  ...
> >> > }
>
> >> > And...
> >> > @Service (Commitment.class)
> >> > public interface CommitmentRequest extends RequestContext {
> >> >        Request countCommitments();
> >> >        // Other methods, implemented in Commitment.java above)
> >> > }
>
> >> > Finally, in my Commit2Binder.java, I have code that works to create a
> >> > commitment when a button is clicked (this is just a test app)
> >> >        CommitmentRequest request = requestFactory.commitmentRequest();
> >> >        CommitmentProxy newCommitment =
> >> > request.create(CommitmentProxy.class);
> >> >        newCommitment.setTitle("Test Objectify title");
> >> >        newCommitment.setDescription("Test Objectify Description");
> >> >        Request createReq =
> >> > request.persistCommitment().using(newCommitment);
>
> >> >        createReq.fire(new Receiver()     {
> >> >               �...@override
> >> >                public void onSuccess(Void response) {
> >> >                        Window.alert("Created Commitment!");
>
> >> >                }
> >> >        });
>
> >> > Surprisingly enough it all works fine.  Now, I want to model a new
> >> > object, a user with two collections of the Commitment object above.
> >> > These are unowned collections.  Following the objectify-appengine/
> >> > wiki//IntroductionToObjectify#Relationships, I create CommitUser
>
> >> > public class CommitUser implements Serializable {
> >> >        private static final long serialVersionUID = 1L;
> >> >       �...@id private Long id;
> >> >        private String googleEmail;
> >> >  ...
> >> >        private Key[] dueByMeCommitments;
> >> >        private Key[] dueToMeCommitments;
> &

Re: RequestFactory, Objectify, saving a new object with collections

2010-11-23 Thread Richard Berger
Thank you for the quick and clear reply which completely fixed my
problem.  On a higher level, when support for Keys is added, should I
use the Key or the Entity?  I can see that there may be some value in
just having the Key and getting the Entity when I need it - although
it seems like I will nearly always be needing the Entity.  But perhaps
I am missing some key distinction.

Thanks so much for taking the time to share your advice!
RB

On Nov 23, 12:26 pm, David Chandler  wrote:
> Hi Richard,
>
> RequestFactory doesn't yet support arrays. Use List instead. Also
> ensure that your Proxy doesn't expose the Objectify Key type, as only
> entity types and a few value types are supported until 2.1.1.
>
> /dmc
>
>
>
>
>
>
>
>
>
> On Tue, Nov 23, 2010 at 2:23 PM, Richard Berger  
> wrote:
> > Goal: Save an object an associated collection
> > How to do this with Request Factory and Objectify?
>
> > I have an object that looks like:
> > Commitment.java (in com.br.commit2.server.domain)
> > public class Commitment {
> > �...@id private Long id;
> >        private String title;
> >  // other simple fields
> >  private Integer version;
>
> >  // Methods exposed through Request factory
>
> >  // Getters, setters
> > }
>
> > Since I am trying to use RequestFactory, I also have:
> > CommitmentProxy.java (in com.rb.commit2.shared)
> > @ProxyFor (Commitment.class)
> > public interface CommitmentProxy extends EntityProxy {
> >        public String getTitle();
> >        public void setTitle(String title);
> >  // rest of interface
> > }
>
> > Also have
> > public interface CommitmentSystemRequestFactory extends RequestFactory
> > {
> >  CommitmentRequest commitmentRequest();
> >  ...
> > }
>
> > And...
> > @Service (Commitment.class)
> > public interface CommitmentRequest extends RequestContext {
> >        Request countCommitments();
> >        // Other methods, implemented in Commitment.java above)
> > }
>
> > Finally, in my Commit2Binder.java, I have code that works to create a
> > commitment when a button is clicked (this is just a test app)
> >        CommitmentRequest request = requestFactory.commitmentRequest();
> >        CommitmentProxy newCommitment =
> > request.create(CommitmentProxy.class);
> >        newCommitment.setTitle("Test Objectify title");
> >        newCommitment.setDescription("Test Objectify Description");
> >        Request createReq =
> > request.persistCommitment().using(newCommitment);
>
> >        createReq.fire(new Receiver()     {
> >               �...@override
> >                public void onSuccess(Void response) {
> >                        Window.alert("Created Commitment!");
>
> >                }
> >        });
>
> > Surprisingly enough it all works fine.  Now, I want to model a new
> > object, a user with two collections of the Commitment object above.
> > These are unowned collections.  Following the objectify-appengine/
> > wiki//IntroductionToObjectify#Relationships, I create CommitUser
>
> > public class CommitUser implements Serializable {
> >        private static final long serialVersionUID = 1L;
> >       �...@id private Long id;
> >        private String googleEmail;
> >  ...
> >        private Key[] dueByMeCommitments;
> >        private Key[] dueToMeCommitments;
> > }
>
> > And the related CommitUserProxy
> > @ProxyFor (CommitUser.class)
> > public interface CommitUserProxy extends EntityProxy {
> >        public int getUserLevel();
> >        
> > }
>
> > And a new Request Interface
> > @Service (CommitUser.class)
> > public interface CommitUserRequest extends RequestContext {
> >        InstanceRequest persistCommitUser();
> > }
>
> > And add a line to my CommitmentSystemRequestFactory.java for
> > CommitUserRequest.
>
> > Now, in my Commit2Binder, I want to create a new CommitUser - empty
> > collections are fine to start with.  But the code I have, essentially
> > the code that works for creating a Commitment, fails.  The code is:
> >        CommitUserRequest request = requestFactory.commitUserRequest();
> >        CommitUserProxy newCommitUser =
> > request.create(CommitUserProxy.class);
> >        newCommitUser.setGoogleNickname("Richard");
> >        newCommitUser.setGoogleEmail("richardlan...@gmail.com");
> >        newCommitUser.setUserLevel(1);
> >        newCommitUser.setDueByMeCommitments(null);
> >        n

RequestFactory, Objectify, saving a new object with collections

2010-11-23 Thread Richard Berger
Goal: Save an object an associated collection
How to do this with Request Factory and Objectify?

I have an object that looks like:
Commitment.java (in com.br.commit2.server.domain)
public class Commitment {
  @Id private Long id;
private String title;
  // other simple fields
  private Integer version;

  // Methods exposed through Request factory

  // Getters, setters
}

Since I am trying to use RequestFactory, I also have:
CommitmentProxy.java (in com.rb.commit2.shared)
@ProxyFor (Commitment.class)
public interface CommitmentProxy extends EntityProxy {
public String getTitle();
public void setTitle(String title);
  // rest of interface
}

Also have
public interface CommitmentSystemRequestFactory extends RequestFactory
{
  CommitmentRequest commitmentRequest();
  ...
}

And...
@Service (Commitment.class)
public interface CommitmentRequest extends RequestContext {
Request countCommitments();
// Other methods, implemented in Commitment.java above)
}

Finally, in my Commit2Binder.java, I have code that works to create a
commitment when a button is clicked (this is just a test app)
CommitmentRequest request = requestFactory.commitmentRequest();
CommitmentProxy newCommitment =
request.create(CommitmentProxy.class);
newCommitment.setTitle("Test Objectify title");
newCommitment.setDescription("Test Objectify Description");
Request createReq =
request.persistCommitment().using(newCommitment);

createReq.fire(new Receiver() {
@Override
public void onSuccess(Void response) {
Window.alert("Created Commitment!");

}
});

Surprisingly enough it all works fine.  Now, I want to model a new
object, a user with two collections of the Commitment object above.
These are unowned collections.  Following the objectify-appengine/
wiki//IntroductionToObjectify#Relationships, I create CommitUser

public class CommitUser implements Serializable {
private static final long serialVersionUID = 1L;
@Id private Long id;
private String googleEmail;
  ...
private Key[] dueByMeCommitments;
private Key[] dueToMeCommitments;
}

And the related CommitUserProxy
@ProxyFor (CommitUser.class)
public interface CommitUserProxy extends EntityProxy {
public int getUserLevel();

}

And a new Request Interface
@Service (CommitUser.class)
public interface CommitUserRequest extends RequestContext {
InstanceRequest persistCommitUser();
}

And add a line to my CommitmentSystemRequestFactory.java for
CommitUserRequest.

Now, in my Commit2Binder, I want to create a new CommitUser - empty
collections are fine to start with.  But the code I have, essentially
the code that works for creating a Commitment, fails.  The code is:
CommitUserRequest request = requestFactory.commitUserRequest();
CommitUserProxy newCommitUser =
request.create(CommitUserProxy.class);
newCommitUser.setGoogleNickname("Richard");
newCommitUser.setGoogleEmail("richardlan...@gmail.com");
newCommitUser.setUserLevel(1);
newCommitUser.setDueByMeCommitments(null);
newCommitUser.setDueToMeCommitments(null);
Request createReq =
request.persistCommitUser().using(newCommitUser);

createReq.fire(new Receiver() {
@Override
public void onSuccess(Void response) {
Window.alert("Created User!");

}
@Override
public void onFailure(ServerFailure error) {
Window.alert(error.getMessage());
}
});
;

The failure occurs when the rquest is fired and the error is:
Caused by: java.lang.ClassCastException:
sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl cannot be
cast to java.lang.Class
If I remove the calls to setDueByMeCommitments, setDueToMeCommitments
I get the same error.

I start to look at other ideas, but it starts to seem that I am going
down the wrong path, since this should be something relative.  Any
pointers and thoughts would be greatly appreciated.

Thanks!
RB

-- 
You received 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 MVP and RequestFactory

2010-11-18 Thread Richard Berger
As is typical - after working on this for hours, I think I found my
problem 10 minutes after posting.  Since I am trying to avoid MVP (for
now, until the brain cell count improves), I had not initialized my
RequestFactory.  Adding:
  final EventBus eventBus = new SimpleEventBus();
  requestFactory.initialize(eventBus);
has moved me past my NPE.  Into other errors of course...

Thanks for listening

RB

On Nov 18, 11:50 am, Richard Berger  wrote:
> I am having a very similar problem - NullPointerException when I call
> fire() (the NPE is in AbstractRequestContext.doFire()).  So I am
> wondering if you have found a solution to your problem.
>
> The code with the fire() is:
> CommitmentSystemRequestFactory requestFactory =
>         GWT.create(CommitmentSystemRequestFactory.class);
> requestFactory.commitmentRequest().countCommitments().fire(
>   new Receiver() {
>                 @Override
>                 public void onSuccess(Long response) {
>                         Window.alert("Done!");
>                 }
>   });
>
> My CommitmentRequest class has:
> @Service (Commitment.class)
> public interface CommitmentRequest extends RequestContext {
>   Request countCommitments();
>
> My Commitment.java class has:
>   public static long countCommitments() {
>     
>   }
>
> Some other notes...
> * I have also been going through the Expenses sample app, both the
> description 
> at:http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.h...
> and the sample code.
> * I am NOT using JPA.  My first learning project for GWT/GAE was with
> JPA, but now I wanted to try the RequestFactory and then add
> Objectify.
> * I am NOT using MVP.  I just don't yet have the critical mass of
> brain cells necessary.
>
> Thanks for any updates or advice...
> RB
>
> On Nov 18, 9:05 am, Nicholas  wrote:
>
>
>
>
>
>
>
> > Thanks, you got me on the right rack.  I didn't realize that more
> > information on the exceptions was available in the dev mode console of
> > eclipse.  My domain entity objects had some Boolean accessors which I
> > had named isProperty() instead of getProperty().  I changed all of
> > those, and also made the domain service methods 'static' like you
> > suggested.
>
> > Now the application is running, but when it fires a request for
> > UserInformation, I get a null pointer exception.  After debugging, it
> > gets into AbstractRequestContext.doFire(receiver) method, which
> > attempts to call requestFactory.getRequestTransport().send(...).
> > requestFactory.getRequestTransport() returns NULL so it throws a Null
> > Pointer Exception.  Do I need to configure the transport somewhere?  I
> > didn't see anything in the documentation or the Expenses sample app.
>
> > The portion of my code that is initiating this is (~ line 60) 
> > in:http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > On Nov 17, 6:28 pm, Thomas Broyer  wrote:
>
> > > On 17 nov, 21:06, Nicholas  wrote:
>
> > > > I am working on a small GWT app (I have used GWT in the past but it
> > > > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > > > am not sure if I am just approaching this wrong, or have some error I
> > > > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > > > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > > > request factory.
>
> > > > I went back and double-checked the domain / entity objects and I think
> > > > I have the required pattern in place (implicit no-arg constructor,
> > > > getId(), findEntity(id) and getVersion()).
>
> > > > Some of the relevant code:
>
> > > > Domain 
> > > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > > EntityRequest and Proxy 
> > > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > > This class instantiates the RequestFactory (line 35) and passes it to
> > > > the Activity (line 
> > > > 41)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > > This class is where I have a method utilizing the request factory. (~
> > > > line 
> > > > 49)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > >http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > > Any ideas?
>
> > > Your "service methods" in your domain objects aren't static, but
> > > aren't declared as InstanceRequest in your RequestContext.
> > > (don't you have more specific errors than "deferred binding failed"?)

-- 
You received 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 MVP and RequestFactory

2010-11-18 Thread Richard Berger
I am having a very similar problem - NullPointerException when I call
fire() (the NPE is in AbstractRequestContext.doFire()).  So I am
wondering if you have found a solution to your problem.

The code with the fire() is:
CommitmentSystemRequestFactory requestFactory =
GWT.create(CommitmentSystemRequestFactory.class);
requestFactory.commitmentRequest().countCommitments().fire(
  new Receiver() {
@Override
public void onSuccess(Long response) {
Window.alert("Done!");
}
  });

My CommitmentRequest class has:
@Service (Commitment.class)
public interface CommitmentRequest extends RequestContext {
  Request countCommitments();

My Commitment.java class has:
  public static long countCommitments() {

  }

Some other notes...
* I have also been going through the Expenses sample app, both the
description at: 
http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#proxies
and the sample code.
* I am NOT using JPA.  My first learning project for GWT/GAE was with
JPA, but now I wanted to try the RequestFactory and then add
Objectify.
* I am NOT using MVP.  I just don't yet have the critical mass of
brain cells necessary.

Thanks for any updates or advice...
RB

On Nov 18, 9:05 am, Nicholas  wrote:
> Thanks, you got me on the right rack.  I didn't realize that more
> information on the exceptions was available in the dev mode console of
> eclipse.  My domain entity objects had some Boolean accessors which I
> had named isProperty() instead of getProperty().  I changed all of
> those, and also made the domain service methods 'static' like you
> suggested.
>
> Now the application is running, but when it fires a request for
> UserInformation, I get a null pointer exception.  After debugging, it
> gets into AbstractRequestContext.doFire(receiver) method, which
> attempts to call requestFactory.getRequestTransport().send(...).
> requestFactory.getRequestTransport() returns NULL so it throws a Null
> Pointer Exception.  Do I need to configure the transport somewhere?  I
> didn't see anything in the documentation or the Expenses sample app.
>
> The portion of my code that is initiating this is (~ line 60) 
> in:http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> On Nov 17, 6:28 pm, Thomas Broyer  wrote:
>
>
>
>
>
>
>
> > On 17 nov, 21:06, Nicholas  wrote:
>
> > > I am working on a small GWT app (I have used GWT in the past but it
> > > was a while ago), trying to learn the new MVP and RequestFactory.  I
> > > am not sure if I am just approaching this wrong, or have some error I
> > > can't spot.  When I add a call to instantiate my app's RequestFactory,
> > > it no longer runs.  It gives me "Deferred Binding Failed" for my
> > > request factory.
>
> > > I went back and double-checked the domain / entity objects and I think
> > > I have the required pattern in place (implicit no-arg constructor,
> > > getId(), findEntity(id) and getVersion()).
>
> > > Some of the relevant code:
>
> > > Domain 
> > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > EntityRequest and Proxy 
> > > objects:http://code.google.com/p/eatright/source/browse/#svn/trunk/EatRightAp...
>
> > > This class instantiates the RequestFactory (line 35) and passes it to
> > > the Activity (line 
> > > 41)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > This class is where I have a method utilizing the request factory. (~
> > > line 
> > > 49)http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > >http://code.google.com/p/eatright/source/browse/trunk/EatRightApp/src...
>
> > > Any ideas?
>
> > Your "service methods" in your domain objects aren't static, but
> > aren't declared as InstanceRequest in your RequestContext.
> > (don't you have more specific errors than "deferred binding failed"?)

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



How can I use applySortedColumnIndicator

2010-11-15 Thread Richard Berger
I have a ScrollTable that I sometimes need to sort programmatically
and would like to indicate to the user which column has been used to
sort.

In the javadocs at http://collectionofdemos.appspot.com, I find that
the AbstractScrollTable has the applySortedColumnIndicator method that
seems just what I need.

But when I try to use it:
// currentView is my ScrollTable
currentView.applySortedColumnIndicator(headerElem, isAscending);
or
((AbstractScrollTable)currentView).applySortedColumnIndicator(headerElem,
isAscending);

I get the error:
The method applySortedColumnIndicator(Element, boolean) from the type
AbstractScrollTable is not visible

Am I doing something very wrong?  Is there a workaround?
http://collectionofdemos.appspot.com/javadoc/com/google/gwt/widgetideas/table/client/ScrollTable.html#applySortedColumnIndicator(com.google.gwt.user.client.Element,
boolean) indicates this method is deprecated, but I don't see any
mention of a replacement.

Perhaps I am just running into bug 56, reported at:
http://code.google.com/p/google-web-toolkit-incubator/issues/detail?id=56
?

That last thought may be the correct conclusion, but it is late in my
timezone and I am not the sharpest knife in the drawer on my best
days :)

Thanks in advance for help/advice/etc
RB

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



Re: server push

2010-11-08 Thread Richard
My project gwt-comet implements server push:

http://code.google.com/p/gwt-comet

>From Richard.

On Nov 8, 11:27 am, Ray Tayek  wrote:
> At 08:33 PM 11/3/2010, you wrote:
>
> >hi, trying to do this::
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPush
> >...
> >i know there may be other options, but i want to roll my own for demo.
>
> the basic idea seems to work. but my server threads are waiting.
> trying to do some load testing.
>
> does anyone know the state 
> ofhttp://docs.codehaus.org/display/JETTY/Continuationsandhttp://tomcat.apache.org/tomcat-6.0-doc/aio.html?
>
> thanks
>
> ---
> co-chairhttp://ocjug.org/

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



Re: UiBinder fails after upgrading to gwt 2.1.0

2010-11-03 Thread Richard Berger
OK, this won't help much, but... I was having the same problem just
going through some basic tutorial using UiBinder and GWT 2.1.  So, I
redid everything, writing down each step - and, of course, the problem
vanished.

So, there exists the possibility that 2.1 and UiBinder do actually
work together.

I can only offer the truly lame suggestion of restarting Eclipse to
clean up any old invocations of the dev server.

Good luck,
RB

On Nov 3, 8:34 am, pgraham  wrote:
> Update:
>
> I have commented out all code in the two files listed above so that
> they are as follows:
>
> MainMenu.ui.xml:
>
>      xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> 
>
> MainMenu.java:
>
> public class MainMenu extends Composite {
>
>     interface Binder extends UiBinder {}
>
>     private static Binder uiBinder = GWT.create(Binder.class);
>
>     public MainMenu() {
>         initWidget(uiBinder.createAndBindUi(this));
>     }
>
> }
>
> When I do this I get the same error so it is not related to the
> content.
>
> At this point I am thinking that there is a version conflict with
> xerces.  Does anyone know if Dev Mode relies on xerces to parse
> *.ui.xml files and if so which version?
>
> NOTE:  I am using the gwt-maven-plugin to compile the app and it works
> fine if I compile it and deploy it in Tomcat
>
> Thanks,
> Philip
>
> On Nov 2, 1:54 pm, pgraham  wrote:
>
>
>
>
>
>
>
> > MainMenu.ui.xml:
>
> >  >     xmlns:g="urn:import:com.google.gwt.user.client.ui">
>
> >      > type="org.sitebrand.ui.gwt.resources.UiResources.MainMenuCss" />
> >      > type="org.sitebrand.ui.gwt.resources.MainMenuLbls" />
> >      > type="org.sitebrand.gwt.constants.DebugConstants" />
>
> >     
> >          > debugId="{debugIds.menuitem_campaigns}" text="{lbls.campaigns}">
> >             
> >                  >                     text="{lbls.createCampaign}" />
> >                  >                     text="{lbls.viewCampaigns}" />
> >                  >                     text="{lbls.campaignPriority}" />
> >                  >                     text="{lbls.reports}" />
> >             
> >         
>
> >          > debugId="{debugIds.menuitem_content}" text="{lbls.content}">
> >             
> >                  >                     ui:field="createContent"
> >                     text="{lbls.createContent}" />
> >                  >                     ui:field="viewContent"
> >                     text="{lbls.viewContent}" />
> >                  >                     ui:field="integrate"
> >                     text="{lbls.integrate}" />
> >             
> >         
>
> >          > debugId="{debugIds.menuitem_segments}" text="{lbls.segments}">
> >             
> >                  >                     ui:field="createSegment"
> >                     text="{lbls.createSegment}" />
> >                  >                     ui:field="viewSegments"
> >                     text="{lbls.viewSegments}" />
> >             
> >         
>
> >          > debugId="{debugIds.menuitem_layout}" text="{lbls.layout}">
> >             
> >                  >                     ui:field="addTemplate"
> >                     text="{lbls.addTemplate}" />
> >                  >                     ui:field="viewTemplates"
> >                     text="{lbls.viewTemplates}" />
> >             
> >         
>
> >          > debugId="{debugIds.menuitem_account_mgmt}" text="{lbls.account}">
> >             
> >                  >                     ui:field="myAccount"
> >                     text="{lbls.myAccount}" />
> >                  >                     ui:field="organizations"
> >                     text="{lbls.organizations}" />
> >                  >                     ui:field="sites"
> >                     text="{lbls.sites}" />
> >                  >                     ui:field="users"
> >                     text="{lbls.users}" />
> >                  >                     ui:field="globalSettings"
> >                     text="{lbls.globalSettings}" />
> >             
> >         
>
> >          > text="{lbls.help}">
> >             
> >                  >                     ui:field="manual"
> >                     text="{lbls.manual}" />
> >                  >                     ui:field="support"
> >                     text="{lbls.support}" />
> >             
> >         
> >     
>
> > 
>
> > MainMenu.java:
>
> > public class MainMenu extends Composite {
>
> >     /*
> >      *
> > =
> >      * UiBinder
> >      *
> > =
> >      */
>
> >     interface Binder extends UiBinder {}
>
> >     private static Binder uiBinder = GWT.create(Binder.class);
>
> >     static {
> >         getCss().ensureInjected();
> >     }
>
> >     @UiFactory
> >     public static MainMenuCss getCss() {
> >         return UiResources.INST.mainMenuCss();
> >     }
>
> >     @UiFactory
> >     public sta

Re: GWT 2.1 gwt-servlet sources JAR

2010-10-27 Thread Richard Allen
After I wrote the above, I checked the Maven central repo again and
saw that it now has GWT 2.1.0, including gwt-servlet-2.1.0-
sources.jar. Is GWT 2.1 now GA? Should developers be using
http://google-web-toolkit.googlecode.com/svn/2.1.0 or 
http://repo2.maven.org/maven2/
for GWT 2.1?

Sorry if I'm jumping in front of a press release. I'm just trying to
get my work done :)

On Oct 27, 7:55 am, Richard Allen  wrote:
> Why is there no sources JAR for gwt-servlet 2.1.0? I'm using the
> following Maven 
> repo.http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven/com/goog...
>
> With GWT 2.0.4, I'm using the central Maven repo, which has published
> the sources 
> JAR.http://repo2.maven.org/maven2/com/google/gwt/gwt-servlet/2.0.4/
>
> Having published sources JARs in the Maven repo enables the maven-
> eclipse-plugin to link to the source when it generates the Eclipse
> project. This enables the developer to navigate into the source from
> within Eclipse, which helps greatly when trying to understand the
> framework.

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



GWT 2.1 gwt-servlet sources JAR

2010-10-27 Thread Richard Allen
Why is there no sources JAR for gwt-servlet 2.1.0? I'm using the
following Maven repo.
http://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven/com/google/gwt/gwt-servlet/2.1.0.RC1/

With GWT 2.0.4, I'm using the central Maven repo, which has published
the sources JAR.
http://repo2.maven.org/maven2/com/google/gwt/gwt-servlet/2.0.4/

Having published sources JARs in the Maven repo enables the maven-
eclipse-plugin to link to the source when it generates the Eclipse
project. This enables the developer to navigate into the source from
within Eclipse, which helps greatly when trying to understand the
framework.

-- 
You received 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.1 hellomvp using GIN

2010-10-22 Thread Richard Allen
How would you all envision code splitting working with these examples?
For example, if you want to code split an activity and view, and then
restrict access to that code with a permission check.

I would like to be able to split out code that the user does not have
permission to use so they don't even get that code loaded in the
browser. If the user tries to navigate to a place for which they do
not have permission, then the application can either treat that place
as unknown or have only enough knowledge (code) of the place to let
the user know they don't have permission to access it.

I have just recently starting prototyping using the GWT 2.1 MVP
framework, and I don't yet see a path for a solution to this problem
with the current design of the mappers. Of course, I may simply be
missing the key.

-Richard

On Oct 22, 10:34 am, David Chandler  wrote:
> Thanks for sharing your code also, Aodhagán. As both you and Amir have
> pointed out, there is not necessarily a 1:1 correspondence between
> Activity and Place, so the notion of an ActivityPlace may not fit
> every situation.
>
> > Where I do have an issue now though is actually going to a new Place?
>
> > From HelloMVP - HelloView:
> > listener.goTo(new GoodbyePlace(name));
>
> You would need to inject Provider into HelloViewImpl in
> order to obtain a GoodbyePlace on which you would then call setName().
>
> Perhaps this better belongs in the HelloActivity instead, in which
> case you might use a method like listener.sayGoodbye(String name),
> which in turn calls the injected Provider.
>
> HTH,
>
>
>
>
>
>
>
> On Fri, Oct 22, 2010 at 5:48 AM, Aigeec  wrote:
> > Hey Amir,
>
> > That is pretty much where I got to. I don't use a clientfactory and
> > have replaced it with GIN injection. I don't use a Factory to create
> > the Activity as I have implemented my ActivityPlace slightly
> > differently.
>
> > Let me know if I have gone completely crazy or have missed some
> > fundamental point of the Activities/Places :
>
> > public abstract class ActivityPlace extends Place
> > {
>
> >        private T activity;
>
> >        public ActivityPlace(T activity) {
> >                this.activity = activity;
> >        }
>
> >        public T getActivity(){
> >                return activity;
> >        }
>
> > }
>
> > My Place class then looks like this:
>
> > public class AboutPlace extends ActivityPlace {
>
> > private String name;
>
> >       �...@inject
> >        public AboutPlace(AboutActivity activity)
> >        {
> >                super(activity);
> >        }
>
> >        public void setName(String token){
> >                this.name = token;
> >        }
>
> >        public String getName()
> >        {
> >                return name;
> >        }
>
> >        public static class Tokenizer implements PlaceTokenizer
> >        {
> >                private final Provider placeProvider;
>
> >               �...@inject
> >                public Tokenizer(Provider placeProvider){
> >                        this.placeProvider = placeProvider;
> >                }
>
> >                public AboutPlace getPlace(String token) {
>
> >                        AboutPlace place = placeProvider.get();
>
> >                        place.setName(token);
>
> >                        return place;
>
> >                }
>
> >                public String getToken(AboutPlace place) {
>
> >                        return place.getName();
>
> >                }
>
> >        }
>
> > }
>
> > The bit I had been missing was the PlaceProvider within the Tokenizer
> > but thanks to your post was able to resolve this.
>
> > Again I am are binding a place to an activity which as you have stated
> > could be an issue with regard to scalability.
> > However was this not the case using the "sounding less onerous" if
> > statements and where activities were bound to places.
>
> > I may have missed something be how do you facilitate the passing of a
> > token to the place?
>
> > Where I do have an issue now though is actually going to a new Place?
>
> > From HelloMVP - HelloView:
> > listener.goTo(new GoodbyePlace(name));
>
> > Regards,
>
> > Aodhagán
>
> > On Oct 21, 9:34 pm, Amir Kashani  wrote:
> >> I work with Tolga, who started the thread on GWTC. Here's the solution
> >> we came up with based on David's initial suggestion there.
>
> >> 1) We created a

NS_ERROR_NOT_AVAILABLE in DevMode when not connected to network

2010-10-21 Thread Richard Rattigan
I have a problem I don't understand. If I run my GWT app in DevMode
while I am connected to the network, it seems to work just fine.
However, when I turn off Airport (disconnect from the network on my
Mac), I get the NS_ERROR_NOT_AVAILABLE error. From looking around, it
seems that this is related to Single-Origin Policy violation. The
error occurs during a HTTP request to my server. I'm running with -
noserver.

I can't think of a reason why disconnecting from the network would
introduce this problem. Any ideas?

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

2010-10-21 Thread Richard Allen
There is another thread on the GWT contributors group about this
topic.
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/732e66a858a8ef0b/38a3f36ffc1767a0

-Richard

On Oct 21, 5:59 am, Sebastian Beigel  wrote:
> Thank you Thomas,
>
> that's what I was thinking -- and I'm playing with a custom code
> generator already :)
>
> Just wondering what "they" mean with the GIN comments in the doc/code...
>
> In my pre-2.1 homegrown framework I use a code-generated presenter
> config based on a Ginjector (declaring all the getFooPresenter()
> methods annotated with location (place) and security informations). My
> presenters were singletons and were "started" with the actual Place.
> That way I could use GIN to (constructor) inject all my dependencies.
> I'm not sure if I like this 2.1-design (constructing activities with
> the actual place) which means I cannot use GIN to construct them.
> Maybe I make my activities extends some AbstractBaseActivity
> containing a setPlace(P place) method which is called in the
> ActivityMapper...
>
> Sebastian
>
>
>
>
>
>
>
> On Wed, Oct 20, 2010 at 11:22 PM, Thomas Broyer  wrote:
>
> > On 20 oct, 11:42, Sebastian Beigel  wrote:
> >> Hi,
>
> >> I'm looking at 2.1 (RC1) for the first time right now and I try to
> >> refactor the hellomvp sample to use GIN.
>
> >> Unfortunately, I have some problems with the places -> activities
> >> mapping. The doc says "A better way to implement the chain of nested
> >> ifs would be with a GIN module." and the code is commented "Map each
> >> Place to its corresponding Activity. This would be a great use for
> >> GIN.".
>
> >> I agree, but I don't really know how to do this mapping :) Has anyone
> >> refactored this code to use GIN?
>
> > You just can't actually. What could work is using a Ginjector as the
> > factory of a PlaceHistoryMapperWithFactory, but for ActivityMapper
> > this is not possible (it could be by adding a code generator using a
> > factory of activity factories, similar to the factory of place
> > tokenizers (which are kind of factories for places) for
> > PlaceHistoryMapperWithFactory).
> > I wrote an code generator for ActivityMapper some time ago <http://gwt-
> > code-reviews.appspot.com/845802/show> it won't do what you're asking
> > for but could probably be used as a basis for it. But you'd first have
> > to decide how to model a "factory of activities" that would be
> > returned by your "Ginjector as a factory for
> > ActivityMapperWithFactory".
>
> > --
> > You received 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: TabLayoutPanel with Activity

2010-10-11 Thread Richard Allen
Try setting the CSS height property to 100% on the TabLayoutPanel.

-Richard


On Oct 10, 11:13 pm, Rud  wrote:
> On further exploration I find that the "overflow" is not the culprit.
> I compared the information in the developer tools for the working and
> non-working versions. In the working version the 'div' containing the
> tabLayoutPanel  style as "position: absolute" and some other styles
> applied. In the non-working version it has "position: relative" and no
> other styles. That is applied as the element style so it is not
> changeable by style inheritance. Disabling the "relative" displays the
> data.
>
> I replaced the tabLayoutPanel with some others but they don't show the
> same change on the 'div'.
>
> Rudhttp://www.mysticlakesoftware.com
>
> On Oct 9, 9:25 pm, Rud  wrote:
>
>
>
> > I converted my application to work with the M3 activities. It has a
> > DockLayoutPanel and 'center' has a TabLayoutPanel. All the other
> > panels work fine through the Activity and Mapper process. The
> > TabLayoutPanel show the tabs but not the panels below it. If I go into
> > Chrome developer tools I see that all the panels have 'overflow:
> > hidden' set. If I disable the hidden style a panel appears.
>
> > I made the small changes necessary for the TabLayoutPanel to be
> > directly in 'center' and it works fine.
>
> > I further investigate by looking at the TabLayoutPanel code and it
> > appears selectTab(0) is being called during initialization,  the first
> > tab is highlighted, the panel setWidgetVisible(0,true) is called, but
> > the panel not displayed.
>
> > Any thoughts or suggestions?
>
> > Rudhttp://www.mysticlakesoftware.com

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

2010-08-10 Thread Richard
Hi Noosy,

Yes gwt-comet will maintain a streaming based (non-polling) connection
between the browser and server.
You will just have to write the code to hook together the web service
event into the comet send.

>From Richard.

On Aug 10, 12:27 am, noosy  wrote:
> I'm after some advice regarding having a web service inside my GWT
> project. The web service is an event consumer and I would like to
> update my client side GWT code everytime it consumes a new event. Is
> there a reverse ajax/comet approach that I could use here? Is it
> possible for my web service to call my GWT server side code on the
> event firing, and in turn have the GWT server side code return the
> results back to the client side code? I'm trying to avoid a polling
> approach. All ideas are welcome, thanks.
>
> I have found StreamHub, GWT-Comet (and more) online but I'm not sure
> if I can use these libaries in the manner I am proposing...

-- 
You received 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: Making GWT look good...

2010-08-07 Thread Richard Allen
I appreciate that Google is working on improving the UI. I understand
Chris asked for example business apps, like the expenses demo, but
since others are mentioning good looking widget libraries, I thought
I'd toss another in.

Vaadin has very nice looking widgets and their code is Apache 2
licensed: http://demo.vaadin.com/sampler

-Richard


On Aug 6, 5:53 pm, gcstang  wrote:
> The widgets in this showcase look nice with the Enterprise Blue or
> Gray.
>
> http://www.smartclient.com/smartgwt/showcase/
>
> On Aug 6, 2:57 pm, "dolcra...@gmail.com"  wrote:
>
> > +1 for working towards a Nimbus implementation
>
> > On Aug 6, 8:44 am, Chris Ramsdale  wrote:
>
> > > Hey GWT(ers),
>
> > > I've heard from many of you that GWT apps simply don't look that good out 
> > > of
> > > the box, and styling the default app would go a long way. We couldn't 
> > > agree
> > > more. As some of you know, GWT 2.1 (with the help of Spring Roo 1.1) will
> > > generate a full-fledged scaffolding app that users can then go customize,
> > > and build on top of. The current incarnation looks like this:
>
> > >http://gwt-bikeshed.appspot.com/Scaffold.html
>
> > > And while it's a start, it's long from being...well...good looking. I'm
> > > working with some UI/UX people back at Google, but in the spirit of 
> > > openness
> > > I wanted to get feedback from the real users -- you. Specifically we're
> > > looking for "business" apps that are a good example of UI and/or UX. Apps
> > > that allow you to track tasks, expenses, travel, projects, etc.
>
> > > If you have ideas, simply post a link in a follow-up to this thread.
>
> > > Cheers,
> > > -- Chris

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



Re: Which library for Money/Time-Format

2010-07-15 Thread Richard
Hi Alex,

http://code.google.com/p/gwt-java-math is a pure Java implementation
of BigDecimal for GWT and is the one that is getting merged into GWT
itself.

>From Richard.



On Jul 15, 7:01 pm, AlexG 
wrote:
> Hi,
>
> i got what I needed, thanks to you both.
>
> Greets
> Alex
>
> On 14 Jul., 18:10, Jaroslav Záruba  wrote:
>
>
>
> > I used gwt-math on my previous project. works fine.
> > 2.1 (m1, m2) has BigDecimal support built in.
>
> > On Wed, Jul 14, 2010 at 5:52 PM, Scott Fines  wrote:
> > > I don't know about the money situation, but gwttime(http://
> > > code.google.com/p/gwttime) is a port of JodaTime to GWT. Despite
> > > appearances, it is actually still being worked on.
>
> > > For Money, I have heard people talk about using gwt-math(http://
> > > code.google.com/p/gwt-math), which has the BigDecimal class emulated
> > > in it. I don't know much about it, though, so don't take my word as
> > > holy writ.
>
> > > (Disclaimer: I'm the principal committer of gwttime)
>
> > > Hope this helps,
>
> > > Scott Fines
>
> > > On Jul 14, 7:56 am, AlexG 
> > > wrote:
> > > > Hi,
>
> > > > I´m trying to develop some business applications in the cloud. To
> > > > calculate with money, I need a library, whicht provides a Money class
> > > > and methods, to calculate with it. The same for Date.
>
> > > > I tried to use JodaMoney and JodaTime, but there are some dependencies
> > > > on non-supported Java classes,
> > > > for example java.lang.reflect ...
>
> > > > Anybody knows a library that provides the desired functionality,
> > > > without using non-supported Java-classes?
>
> > > > Thanks.
>
> > > > Greets
>
> > > --
> > > You received 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 > >  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: This is getting beyond a joke

2010-07-13 Thread Richard Vowles
We do host our own repository - thats not the point. The point is that
thousands of people use GWT and use dependency management, not having
it go into central as a matter of course is simply ridiculous! It is
absolutely, point blank unprofessional.

On Jul 13, 4:32 pm, "Paul Grenyer"  wrote:
> Hi
>
> If you need it that much, why don't you host your own repository, such as 
> Nexus? That's what we do for Ivy.

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



This is getting beyond a joke

2010-07-12 Thread Richard Vowles
GWT 2.0.4 has been out for at least two weeks now and it still isn't
in maven central. I understand that the Google guys don't use maven or
ivy, but for those who do (i.e. anyone serious about their builds
reliability and repeatability) the releases of GWT not being available
in central within a day or two of release is an incredible pain in the
backside and a very negative image for GWT in corporate. We are
suffering this Safari problem and now I'm going to have to manually
insert these artefacts into our repository.

This is *not* hard, Sonatype have been really good about making this
straight forward. Who is responsible for doing this and who has done
it in the past? Whoever you are, if you can't do it quickly I
volunteer to take over the responsibility for it and make sure it is
in within a couple of days. If I get to do it it, I'll also create a
new googlecode repository for the nightlies for people to version
range over if they wish.

Richard

-- 
You received 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: Best practice to serialize a org.w3c.dom.Document over RPC?

2010-07-05 Thread Richard Kennard
Perfect! Thanks for the detailed and fast responses guys.

Richard.

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



Best practice to serialize a org.w3c.dom.Document over RPC?

2010-07-05 Thread Richard Kennard
Hi guys,

A (hopefully easy) question: what is the GWT 'best practice' to take a
server-side DOM built with org.w3c.dom.Document and pass it over RPC?

Clearly once on the client-side it needs to become a
com.google.gwt.xml.client.Document, and I can achieve this by
serializing to and from a String of XML, but is there a better way?
Something more performant that uses some built-in DOM serialization
capabilities?

Regards,

Richard.

-- 
You received 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: BigDecimal - Can you add it to 2.1 version

2010-07-02 Thread Richard
The Harmony team is not involved, I'm just some random guy.

>From Richard.

On Jul 2, 8:06 am, Carl Pritchett  wrote:
> >http://code.google.com/p/gwt-java-math/
>
> We use this in our finance based application and it works well. It's
> based on the Apache Harmony BigDecimal class I think. Initially I
> found a few differences from the java BigDecimal but they were fixed
> instantly by the Harmony team and integrated into gwt-java-math
> overnight.

-- 
You received 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: BigDecimal - Can you add it to 2.1 version

2010-06-29 Thread Richard
Hi Dor,

My project gwt-java-math is what GWT 2.1's implementation will be
based on. It is available now here:

http://code.google.com/p/gwt-java-math/

>From Richard.

On Jun 28, 9:39 pm, Dor  wrote:
> Hi All,
>
> I am responsible on innovative financial platform which is based on
> GWT.
>
> One of our problems is the lack of BigDecimal on client side.
>
> Because of this lack we are using double / Double object and many
> other manipulations to overcome this lack.
>
> Consider for example, having a number like 1.49393829 and you want to
> simply set his scale half even but with Double.
>
> Is there any chance to have this object in GWT 2.1 version ?
>
> Regards,
>
> Dor

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



Re: Need to build a WYSIWYG XML editor

2010-06-22 Thread Richard Allen
You may want to simply wrap the excellent code editor CodeMirror
(http://marijn.haverbeke.nl/codemirror/). Someone has already wrapped
it for GWT: http://code.google.com/p/gwt-codemirror/

-Richard


On Jun 18, 1:45 am, NS Gopikrishnan  wrote:
> Hi all,
>
> I want to develop a WYSIWYG XML editor for a custom schema.
> I am new to GWT.
> I wanted to know whether GWT will be  the right framework for that.
>
> * Whether XML DOM builders are available.
> * I need to provide the view side using CSS.
> * Validation of XML for every change in nodes.
> * view the XML while editing the view (Not necessarily simultaneously)
>
> Thanks in advance !

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



Re: GWT and Spring - with Spring Web MVC or without it?

2010-06-15 Thread Richard Allen
For operations like file upload which cannot be done with Ajax, GWT
provides no server-side facilities. With Spring MVC, you can easily
wire up a Spring Controller that handles the file upload request that
a GWT client submits to.

See: 
http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html#mvc-multipart

Yes, Spring MVC is a page-based framework with both server-side and
client-side facilities, and GWT is a component-based mostly client-
side only framework that was designed for web applications that
execute in a single page, such as Gmail, Google Maps, and Google Wave.
However, even an app like Gmail has a login page that is separate from
the actual application which submits a form post, then redirects the
browser to a separate page that loads the application. Spring MVC is
well suited for serving pages like that login page and handling the
form post.

Additionally, there is great benefit derived from using Spring Core
for dependency injection and AOP of your server-side code. All serious
Java web applications that I have worked on have significantly more
server-side code than client-side code.

-Richard



On Jun 13, 7:59 am, Stefan Bachert  wrote:
> Hi,
>
> Spring MVC does not fit to GWT at all.
>
> GWT considers the browser to be a thin/rich client, and the server to
> be the data source/model
>
> Spring MVC considers the browser to be an ultra thin client (something
> like an x-server), and considers the "server" to be a fat client,
> where presentation, business logic and persistence live.
> Spring MVC is an artefact of the pre-AJAX-era.
>
> Use GWT for real application (RIA) and use Spring MVC for hyperlinked
> documents.
>
> In a complex website you may switch between real applications and
> hyperlinked documents, so you will find both in one site.
> But it makes NO sense to drive GWT with Spring MVC.
>
> When you look at Spring Roo and its GWT support, it comes without
> Spring MVC (Spring Roo can generate Spring MVC controller but without
> GWT). It is "either or"
>
> Stefan Bacherthttp://gwtworld.de
>
> On Jun 8, 5:32 pm, ezamur  wrote:
>
>
>
> > Hi all...
>
> > I am new to GWT - had some contact with it earlier but not enough to
> > say I am confident with it.
>
> > My task is to investigate this technology and pair it with Spring
> > framework. There are a lot of tutorials explaining how this can be
> > done, but what is bothering me is I can't decide which approach to
> > choose. For example, I've seen one using Spring's MVC (like this 
> > one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
> > but also other where integration is done without it 
> > (e.g.http://code.google.com/p/gwt-spring-starter-app/)
>
> > I am afraid to miss something important by choosing one of these
> > approaches and possibly lose some of Web MVC functionalities that
> > might be needed later or end up in dead end street using it.
>
> > I would be grateful if anyone explained me what are the pros and cons
> > of these approaches from practical point of view - is there a need for
> > DispatcherServlet and Controllers while having GWT and its RPC
> > mechanism.
>
> > Thanks in advance.

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



Re: Page Navigation

2010-06-11 Thread Richard Allen
Sounds like when your entry point loads (that happens on refresh) it
needs to check if the user is logged in (check a cookie or make an
AJAX request to the server) and then display the appropriate widgets
(view).

However, I suggest that you make the login page a separate page from
the page that loads your GWT application. When the user tries to
access your GWT application and is not logged in, redirect the browser
to the login page. After the user successfully authenticates, redirect
the browser to your GWT application. This approach avoids the problem
you are having, and it prevents the user from being able to download
your GWT application (JavaScript code) when they don't have access.

-Richard


On Jun 10, 1:31 am, CIAO  wrote:
> Hi I am a newbie to GWT and am working on an application Dev that has
> a login page and when the user successfully identifies itself it goes
> to a data page (loads the new data widgets after removing the login
> widgets) that shows it all the data s/he requires
> the problem i am facing is
> whenever i press the refresh button (or F5) it goes back to the login
> widgets..
> i need to arrest this behavior and user should *NOT* be sent back once
> user has logged in...
>
> thanks in advance
> CIAO

-- 
You received 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 and Spring - with Spring Web MVC or without it?

2010-06-11 Thread Richard Allen
There is also the GWT Server Library from the GWT Widget Library
project: http://gwt-widget.sourceforge.net/

You should also check out the support for GWT that is now built into
Spring Roo. If you already use (or want to use) the technologies that
Spring Roo builds in, like JPA, then Roo will get you running fast
with a solid architecture that uses best practices:
http://www.springsource.org/roo
http://blog.springsource.com/2010/05/19/spring-roo-1-1-0-m1-released/
http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/

I don't think there is one right answer to your question. How you use
Spring with GWT depends on your project and your team's preferences.
However, it is quite useful using Spring MVC (or some other Java web
framework) with GWT because GWT doesn't provide much server-side
facilities. In a large project, you are likely to need some static web
pages that do not use GWT, and Spring MVC makes that easy (among many
other things). Additionally, we have used Spring MVC controllers for
file upload and download, and to serve up resources from the
classpath.

I also believe it is very useful to avoid having your actual service
implementation extend from GWT's RemoteServiceServlet. Spring MVC
allows your controllers to be implemented as POJOs, and most Spring-
GWT integration libraries strive to allow you to use GWT RPC while
still implementing your services as POJOs. Some benefits to this
approach are the ease of unit testing POJOs and no dependence on GWT
libraries in your services.

Hope that helps,
-Richard


On Jun 8, 11:32 am, ezamur  wrote:
> Hi all...
>
> I am new to GWT - had some contact with it earlier but not enough to
> say I am confident with it.
>
> My task is to investigate this technology and pair it with Spring
> framework. There are a lot of tutorials explaining how this can be
> done, but what is bothering me is I can't decide which approach to
> choose. For example, I've seen one using Spring's MVC (like this 
> one:http://technophiliac.wordpress.com/2008/08/24/giving-gwt-a-spring-in-...),
> but also other where integration is done without it 
> (e.g.http://code.google.com/p/gwt-spring-starter-app/)
>
> I am afraid to miss something important by choosing one of these
> approaches and possibly lose some of Web MVC functionalities that
> might be needed later or end up in dead end street using it.
>
> I would be grateful if anyone explained me what are the pros and cons
> of these approaches from practical point of view - is there a need for
> DispatcherServlet and Controllers while having GWT and its RPC
> mechanism.
>
> Thanks in advance.

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



Re: Metawidget, who has used metawidget

2010-06-03 Thread Richard Kennard
Sergio,

Thanks for your interest in Metawidget!

Metawidget is currently at v0.95, so it is not quite yet mature.
However it has already been used in several production GWT projects
and has decent documentation, examples, and test coverage. If you get
chance to give it a try, I'd be happy to help you work through any
issues you may encounter.

Metawidget is a purely *runtime* UI generator, so it is not like code
generation (which is static), nor quite like scaffolding (which is
runtime, but if you want to change anything you have to generate it
statically).

Regards,

Richard.

P.S. The project URL actually *is* http://metawidget.org, it just
redirects to http://metawidget.sourceforge.net. But in case one day I
want to change repository providers I don't want to hardcode
sourceforge.net into all the links :)

On Jun 4, 12:18 am, Sergio A. Campos Valdés  wrote:
> Excuse me. The project url is metawidget.sourceforge.net, it's not
> metawidget.org
>
> 2010/6/3 Chech0x - Segio Campos V. 
>
> > who has used metawidget (metawidget.org) with GWT and Spring javabeans
> > facade? is it mature? does it work like scaffolding or codegeneration?
>
> --
> Deseando que Dios le bendiga se despide:
>
> Sergio Andrés Campos Valdés
> Ingeniero Informático.
> Perfil LinkedIn:http://cl.linkedin.com/in/scamposv
> Twitter: chech0x

-- 
You received 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: real web apps with gwt + push framework

2010-03-20 Thread Richard
Thanks Christian,

As the author of gwt-comet I can tell you I'm using it to push
hundreds of messages a second to each of hundreds of browsers with
very low latency.

>From Richard.

On Mar 20, 11:10 pm, Christian Goudreau 
wrote:
> Take a look at the project Gwt-Comet.
>
> I think you'll find what you're searching for with that.
>
> Christian
>
> On Sat, Mar 20, 2010 at 6:13 AM, mariyan nenchev
> wrote:
>
>
>
> > Hi,
>
> > Could you point me to some real web apps that are developed with gwt and
> > use push technology. By pushing i mean streaming data to the browser every
> > second (very frequently). I need to choose some push framework, but not all
> > are suitable for very frequent updates (3-5 updates per sec). I used
> > lightstreamer for other projects but it is paid, and i can't afford it for
> > my current project. So i am looking for real app where i can see how pushing
> > is done and is it suitable for my needs.
>
> > Regards.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > 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: server push framework + app engine?

2010-03-04 Thread Richard
gwt-comet has some support for GAE, the primary issues with GAE is
that HTTP sessions are not sticky to a particular node. GAE only
allows a HTTP response to be open for 30 so when the connection gets
refreshed it may end up on a different node. This causes problems with
message queueing and routing on the server side. I've done some
initial work on using the data store to queue messages so when the
connection migrates to a different node the messages in the data store
can be fetched by the new node.

I would very much like to improve gwt-comet's support for GAE.

Another issue that needs to be looked into is how the pricing works.
Do they charge for 30 seconds of CPU per request even though the
thread processing the request is mainly idle?

>From Richard.


On Mar 5, 1:56 am, Thomas Broyer  wrote:
> On Mar 4, 10:30 am, mariyan nenchev  wrote:
>
> > Hi,
>
> >    Is it possible to use app engine with some server push framework? Could
> > you suggest any?
>
> Have you looked 
> athttp://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ
> (don't forget the comments)
>
> Here are two free "comet" implementations with special handling for
> AppEngine (though I don't know the impact on pricing once 
> deployed)http://code.google.com/p/gwt-comet/https://atmosphere.dev.java.net/
>
> But I'd rather ask the appengine group if I were you...

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