Can't Get Breakpoints to Work with Ecliose Luna and GWT 2.7

2015-04-25 Thread Ray Jantz
Hi,

I've done a lot of programming, but am new to web development.  I installed 
Eclipse Luna and GWT 2.6 plugin and have beat my head against the wall 
trying to get breakpoints to work,  Thinking it might be better with GWT 
2.7, I pointed Eclipse to my local 2.7 installation, but no luck.  I've 
tried both Chrome and Firefox using super dev mode, and the console says 
the code server is running, but the breakpoints never work.  I've seen from 
googling that breakpoints can be unreliable, but as near as I can tell, 
I've got everything set up as it should be.  Does anyone have any 
suggestions?

Thanks

-- 
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: When Migrating JsInterop from GWT-Exporter to @JsInterface, JSORestrictionsChecker throws NullPointerException

2014-06-06 Thread 'Ray Cromwell' via Google Web Toolkit
JsInterop is only half implemented and not for use right now. There are
several big patches that are going to land soon which change a lot about
it. I would hold off using it until then.



On Fri, Jun 6, 2014 at 1:24 AM, 田传武  wrote:

> Hello,
>
> I tried converted two projects we are currently using GWT Exporter to
> @JsInterface for interoperate with JS. The *first project*
> 
>  only
> exports three interfaces, and translated successfully.
>
> The second project's first migration step translated successfully, here
> are the commit and compile log:
>
> https://github.com/goodow/realtime-store/commit/643e5efc2a92ac9cbcbadc8b7dd1d97e456bfe92
> https://travis-ci.org/goodow/realtime-store/builds/26914674
>
> However, i encounter a strange NullPointerException when annotates more
> @JsInterface, here are the second commit and compile log:
>
> https://github.com/goodow/realtime-store/commit/f9b2978c6a91d6afe9cd0d6d0ebd20adbf34480a
> https://travis-ci.org/goodow/realtime-store/builds/26915260
>
> Thanks for help :)
>

-- 
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: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-25 Thread Ray Cromwell

We're thinking about introducing a way of developing UI that is more like 
traditional HTML design, you create HTML, CSS, and then attach behavior via 
Java. UiBinder is sort of like this, but it is not HTML and still requires 
building. What we want to do is follow the Web Components spec, which is a 
standards-based, browser supported, way of doing templating, which means 
GWT could interop with widgets developed in JS or Dart or any other 
language easily. There's not even an internal proposal for this yet, we 
expect to hash it out before the gwt.create conference.

But I could see it working something like this:






Your final cost is {{cost}}



/* Foo.java */
class Foo {
  AcmeShipping ship; // auto-injected
  double cost; // auto-injected, both two-way databinding

  onChange() {
 cost = ship.calculateCost();
  }
}


Another option is angular-style, see my AngularGwt TodoMVC example:
https://github.com/cromwellian/angulargwt/blob/master/src/main/java/com/google/gwt/angular/client/todomvc/TodoController.java
https://github.com/cromwellian/angulargwt/blob/master/src/main/webapp/angulargwt.html

We don't expect you to 'port' your existing apps to this. Those can keep 
using the old way, but if you are designing a new mobile phone or mobile 
tablet app, than it will be recommended to use this lighter weight 
approach. The way mobile browsers work, the less JS is involved in layout 
and DOM manipulation, the better in terms of performance. Daniel Kurka will 
have a talk on this.

-Ray


On Friday, October 25, 2013 10:32:27 AM UTC-7, Timothy Spear wrote:
>
> Ray,
>
> There is already two existing versions of most container components. Are 
> you stating GWT will introduce a third? Or just migrate the Layout ones?
> In addition, do you know if there will be significant changes to UiBinder?
>
> Tim
>
> On Oct 25, 2013, at 1:21 PM, Ray Cromwell > 
> wrote:
>
>
> I think what we're really thinking about doing is preserving IE8 for the 
> existing gwt widget stuff, but any features (APIs) we add going forward are 
> going to leverage modern browser stuff, and we are not going to design 
> (poorly performing, hacky) fallback/polyfill workarounds. 
>
> For GWT 3.0, we are looking at making a new, parallel way of writing Web 
> UIs that is based on the emerging Web Components standard, and we will lean 
> heavily on modern browser layout engines, e.g. flexible box model.  We're 
> not going to break your existing apps, but we're not going to make these 
> new models work on old browsers. For example, to make data-binding working 
> efficiently in Web Components, you need mutation observers, Node.bind, 
> Object.observe(), etc. 
>
> We are not going to require Java7 or Java8 to run servlet code or even 
> invoke the compiler, but we will support compiling Java8 code to JS, and 
> we'll have super-sourced versions of java.util.function/java.util.stream.
>
> Basically, the future is easier interop with the browser APIs, external 
> libraries, and web components, and less reliance on heavy weight widgets 
> that run lots of JS and shield the browser. This is a vision more in tune 
> with the fact that mobile is increasingly becoming a bigger and bigger 
> chunk of the web, and the original GWT metaphor of a Desktop-like 
> AWT/Swing-like UI library with layout done by executing code is less 
> efficient on mobile and is suboptimal for fast browser jank-free execution. 
>  We don't want to break existing applications, and we don't want to hamper 
> designs for the future by requiring them to work on ancient browsers.
>
>
>
> On Friday, October 25, 2013 8:59:28 AM UTC-7, Andy wrote:
>>
>> Thanks for your input. It sounds like we're in the identical situation.
>>
>> Regarding onFailure, do you use an abstract implementation of 
>> AsyncCallback, like I mention in this post?
>>
>> http://stackoverflow.com/a/4725052/497700
>>
>> -Andy
>>
>> On Friday, October 25, 2013 11:47:43 AM UTC-4, stuckagain wrote:
>>>
>>> IE8/IE9 I agree, we are in the same situation. Our customers only just 
>>> migrated to IE8, so that will take at least 2 years before they will move 
>>> on.
>>> We could wait longer to move on to GWT 3.0, but the problem is that 
>>> other customers are already asking for IE11 support. 
>>>
>>> About Java8 support on the client, I am looking forward to lambdas 
>>> instead of asynccallbacks, it would make my code a lot more compact! I only 
>>> have one onFailure implementation so it would be great if the APIs would 
>>> decouple these and allow for a default implementation.
>>>
>>> But the gwt-servlet.jar will still nee

Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

2013-10-25 Thread Ray Cromwell

I think what we're really thinking about doing is preserving IE8 for the 
existing gwt widget stuff, but any features (APIs) we add going forward are 
going to leverage modern browser stuff, and we are not going to design 
(poorly performing, hacky) fallback/polyfill workarounds. 

For GWT 3.0, we are looking at making a new, parallel way of writing Web 
UIs that is based on the emerging Web Components standard, and we will lean 
heavily on modern browser layout engines, e.g. flexible box model.  We're 
not going to break your existing apps, but we're not going to make these 
new models work on old browsers. For example, to make data-binding working 
efficiently in Web Components, you need mutation observers, Node.bind, 
Object.observe(), etc. 

We are not going to require Java7 or Java8 to run servlet code or even 
invoke the compiler, but we will support compiling Java8 code to JS, and 
we'll have super-sourced versions of java.util.function/java.util.stream.

Basically, the future is easier interop with the browser APIs, external 
libraries, and web components, and less reliance on heavy weight widgets 
that run lots of JS and shield the browser. This is a vision more in tune 
with the fact that mobile is increasingly becoming a bigger and bigger 
chunk of the web, and the original GWT metaphor of a Desktop-like 
AWT/Swing-like UI library with layout done by executing code is less 
efficient on mobile and is suboptimal for fast browser jank-free execution. 
 We don't want to break existing applications, and we don't want to hamper 
designs for the future by requiring them to work on ancient browsers.



On Friday, October 25, 2013 8:59:28 AM UTC-7, Andy wrote:
>
> Thanks for your input. It sounds like we're in the identical situation.
>
> Regarding onFailure, do you use an abstract implementation of 
> AsyncCallback, like I mention in this post?
>
> http://stackoverflow.com/a/4725052/497700
>
> -Andy
>
> On Friday, October 25, 2013 11:47:43 AM UTC-4, stuckagain wrote:
>>
>> IE8/IE9 I agree, we are in the same situation. Our customers only just 
>> migrated to IE8, so that will take at least 2 years before they will move 
>> on.
>> We could wait longer to move on to GWT 3.0, but the problem is that other 
>> customers are already asking for IE11 support. 
>>
>> About Java8 support on the client, I am looking forward to lambdas 
>> instead of asynccallbacks, it would make my code a lot more compact! I only 
>> have one onFailure implementation so it would be great if the APIs would 
>> decouple these and allow for a default implementation.
>>
>> But the gwt-servlet.jar will still need to be compiled for Java 7 
>> compatibility or we will be really in big problems. A lot of customers are 
>> still running Java 6 on the server side.
>> Java 7 is about to become mandatory for us, but Java 8 that will take 
>> ages.
>>
>> David
>>
>>
>>
>> On Fri, Oct 25, 2013 at 4:50 PM, Andy  wrote:
>>
>>> I just read through the notes from the GWT steering 
>>> committeeand
>>>  would like to share our perspective. I know you have a lot of survey 
>>> results and we're just 1 company, but here's some more info based on our 
>>> needs.
>>>
>>> *Java 8 only*
>>>
>>> I would encourage and support this move. I've been writing a ton of 
>>> Javascript for the past few weeks and really miss the functional style when 
>>> I come back to Java. Lambdas in Java 8 are going to be powerful and fun and 
>>> they should be used liberally throughout the GWT 3.0 APIs. We won't be able 
>>> to move our backend to Java 8 for a while, but since we only ship the JS 
>>> output of the GWT compiler, I'm happy to use Java 8 for front-end 
>>> development.
>>>
>>> *Dropping IE 8/9*
>>> *
>>> *
>>> We just decided on Tuesday to drop IE7 with our next release. We got 
>>> tired of working around hasLayout bugs, etc. We have several major 
>>> customers that still have users with XP/IE7, but after consulting with 
>>> them, we decided we could go ahead with dropping support. Unfortunately, 
>>> many of our customers are using IE8 and we won't be able to drop IE 8/9 
>>> anytime soon. As a developer this is extremely frustrating, but it's the 
>>> sad reality of the enterprise.
>>>
>>> So Java 8 would be awesome, but dropping support for IE 8/9 would 
>>> prevent us from being about to use GWT 3.0 until our enterprise customers 
>>> upgrade their browsers.
>>>
>>> -- 
>>> 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-we...@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.
>>>
>>
>>

-- 
You received this message because yo

Re: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-20 Thread Ray Cromwell

If I told you the number of monthly active GWT developers, I think you 
would be quite impressed. A hangout sounds like a good idea, I will look 
into setting one up soon.

-Ray


On Friday, April 20, 2012 4:15:27 PM UTC-7, Joshua Kappon wrote:
>
> Thanks for commenting Ray (and also for keeping us posted on G+) - Super 
> draft mode looks great,
> and I can't wait to see what else you got up your sleeves.
>
> I understand that the GWT team is regrouping, and hope you'll keep us 
> posted.
> I also feel, that the community wants to be more informed and invloved and 
> I think that a scheduled GWT hangout could be awesome for that porpose.
> although the community isn't that big, I personally feel it's growing 
> stronger each year, and that the GWT team can use it for achieving more 
> (not just codewise).
>
> Best,
> Joshua
>
>

-- 
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/-/BcfWuePzsgEJ.
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: Call for action: Time to rethink a road-map and more frequent updates for GWT.

2012-04-20 Thread Ray Cromwell

Over the past year, the GWT team did lose some people (Ray Ryan/Bob 
Vawter), some moved to other projects, and some recently left for a startup 
(Bruce/Joel/Kelly). One of our team members went for maternity leave, as a 
result, we didn't have enough resources to simultaneously focus on the 
external community and internal users. I feel really bad about that, but 
there's nothing really we could do, especially with the loss of David to 
Android as a liason with the external community. However, the good news is, 
this will be changing soon and things will be improving. I can't say more, 
but we are planning to announce things at or around Google I/O.

https://plus.google.com/u/1/110412141990454266397/posts/NnSqFaQRRJx

>From time to time, I post GWT oriented things on my public G+ feed, for 
those who want to track news.

-Ray


On Thursday, April 19, 2012 12:11:38 PM UTC-7, Supercobra Thatbytes wrote:
>
> Obviously something is happening.
>
> One of the first thing you do as a team lead of a project that is going to 
> "disappear" is to remove the developer relations people and reassign team 
> members, which both have been happening in the GWT team. David Chandler, 
> GWT developer relations left the team (https://turbomanage.wordpress.com/) 
> to work on Android and some GWT developers are now working on Dart as per 
> GWT team lead Bruce Johnson (
> http://googlewebtoolkit.blogspot.com/2011/11/gwt-and-dart.html)
>
> 
> 1. I think the GWT team is creating a Dart equivalent to GWT then will 
> retire GWT. However talking about this would scare lots of people off so 
> until they have something big to show and a concrete roadmap they keep 
> silent. If GWT was dropped we would hear about but and I think we are in a 
> transition phase.
>
> 2. Since Dart is close to Java in many ways, they could offer Dart on App 
> Engine thus providing a complete solution, UI and backend all on Dart, 
> which would be really cool. That would be a replacement for Java on Android 
> which would break the java-lawsuit-leach Oracle has on Google.
> 
>
> But it's too silent out there... The community needs to be more vocal 
> about requesting some information and the GWT team needs to be more 
> proactive engaging with us.
>
>
>
> On Monday, April 2, 2012 10:19:16 AM UTC-5, Joshua Kappon wrote:
>>
>> With the rise of the new developers.google.com, and with Google trying 
>> to rally up developers using Google technologies and products, and the rise 
>> of Dart and unclear future of GWT, I think it's about time that Google will 
>> rethink the all "We don't and won't have a road map, and there are no 
>> release dates for new GWT versions" and embrace the GWT developers 
>> community.
>>
>> What do you guys think? (if you agree, +1 this)
>>
>> Best,
>> Josh 
>>
>

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



GWT POPUP Z AXiS Order and after Keypress data change handler

2011-12-20 Thread RAY RAY
Dear Friends,

i have a project on going and i need some help from you guys

I have 2  questions

I create a TabSet and a newTAB in it.  inside the TAB i put a TextBox

1-   I add an eventhandler to text box
every time event fired a popup is set to be shown and after a while
set to be hide.
unfortunetly my popups Z-Axis ( in other words from back to front
oder )  always stays at the back of the tabset
could some body help me out with this?

2 -   i add keypress event handler to text box
this eventhandler is called before the data changes inside the textbox
so i recall keypress handler twice to get the data change after every
key press.   this is a work around,  how can i handle the data change
after a keypress

-- 
You received 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-contrib] [ANN] Scala+GWT 0.1-M1 released

2011-09-01 Thread Ray Ryan
Woo hoo!

On Thu Sep 01 09:26:47 GMT-700 2011, Grzegorz Kossakowski wrote:

> Hello,
>
> I'm excited to announce first milestone of Scala+GWT project.
>
> Download (and then follow README instructions) from here:
> http://goo.gl/Ym3xU
>
> Release notes (included below) can be found here: 
> http://goo.gl/H8san
>
>
>
> Scala+GWT 0.1-M1
> 
>
> The first official milestone release from the Scala+GWT project.
>
> This release consists of just samples packaged along with snapshot
> of jars needed to build them. Those jars include our own version
> of both GWT and Scala.
>
> This release doesn't come with any official artifacts apart from the
> tarball you can download from 
> http://github.com/scalagwt/scalagwt-sample
> .
>
> ### What works
>
> Samples show it the best. Here are some highlights:
>
>   * Mixed Scala/Java projects work very well (for GWT-supported Java
> subset)
>   * Most of Scala language constructs are supported
>   * Most of Scala library code that makes sense in a browser context is
> supported, including Scala collections
>
> It's fair to say that we are not sure how far one can go with this release.
> It might be that you can already
> build something useful with what we already have. The only way to be sure
> is start hacking!
>
> ### Known issues
>
>   * Compilation is very, very slow.
>   * `scala.immutable.{TreeMap, TreeSet}` are not supported due to various
> bugs (thus sorted collections don't work)
>   * many patterns in pattern matching logic are not supported (tough issue)
> examples include
> * pattern alternatives (`|`)
> * guard patterns (`if` guard)
>   * GWT's development mode is broken
>   * We are compiling with all optimizations turned off. This results in a
> slow and very large JavaScript code.
>
> ### Reporting issues
>
> We appreciate feedback. If you find something that doesn't work (e.g.
> crashes either Scala or GWT compiler)
> or JavaScript gives you weird results we'd love to hear about it. The most
> effective way of reporting issues
> is to modify `Hello World` sample to show your problem. Exact steps are:
>
>   1. Fork `scalagwt-sample` repo from here:
> http://github.com/scalagwt/scalagwt-sample
>   2. Clone it: `git clone git://
> github.com/YOUR_USER_NAME/scalagwt-sample.git`
>   3. Modify hello world sample located in
> `src/com/google/gwt/sample/jribble/client`
>   4. Commit and publish your example.
>   5. File a ticket here: 
> http://github.com/scalagwt/scalagwt-sample
>  and
> mention your
>  fork while explaining your issue.
>
> If you want to discuss your problem before reporting it, join
> [scala...@googlegroups.com
> ](http://groups.google.com/group/scalagwt).
>
> ### What if I don't know GWT?
>
> That shouldn't be a big problem. You've got Scala source code for samples
> that show basic functionality
> and provides basic setup. You may want to start with channging hello world
> sample, recompiling it and
> testing in a browser.
>
> ### What if I don't know Scala?
>
> You might still want to check out samples to see how they might look like
> in other language than Java.
> We'll be cutting a lot more of boilerplate code once GWT libraries and APIs
> receive enough of Scala's
> [pimp-love](http://www.artima.com/weblogs/viewpost.jsp?thread=179766
> ).
>
> ### Need help? Want to discuss something?
>
> Join us here: 
> [scala...@googlegroups.com
> ](http://groups.google.com/group/scalagwt).
>
>
> Happy playing!
>
> --
> Grzegorz Kossakowski
>
>  --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors

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



Positioning a Widget using CSS

2011-03-21 Thread Ray Mammola
How do I control the position of a widget in a LayoutPantel, for
instance a button or textbox, using CSS?

-- 
You received 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: Server Push

2011-02-20 Thread Ray Tayek

At 03:07 PM 2/20/2011, you wrote:

...
On 2/20/2011 11:02 AM, Nate wrote:
...

The user will establish a connection at some
point.  Only one user will connect at any time.


if you only have a small number of clients, 
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ#Server_Push_in_GWT 
may work for you.


i implemented this for a very simple project and it seemed to work ok.

thanks


---
co-chair http://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-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-contrib] Re: Announcing GPE/GWT 2.2 RC1

2011-02-08 Thread Ray Ryan
It's not so much about missing features (although it will be nice to be
allowed to use and emulate features that were added to the language more
than four years ago). It's more about being in step with the rest of
Google's code base. Having to keep an eye out for 1.6'ism creeping in has
been a non-negligible tax on the GWT team, and it's one we would like to
stop paying.

rjrjr

On Mon, Feb 7, 2011 at 11:47 PM, stuckagain  wrote:

> What features in Java 6 would be so fundamental to GWT that 1.5 becomes
> deprecated ?
>
>
> --
> http://groups.google.com/group/Google-Web-Toolkit-Contributors
>

-- 
You received 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: cannot install gwt IE developer plugin

2011-01-24 Thread Ray Marceau
I am also having the same issue when installing on 2 separate Windows
XP 32bit machine.  With Antivirus turned off.

I was able to install the plugin using an offline installation from
the following site: 
http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html
but it appears to be an outdated version of the plugin, as well as an
untrusted source.

On Jan 24, 10:13 am, FabioV  wrote:
> We are investigating the issue and will post back here once we have a
> solution.

-- 
You received 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: Deprecation of DockPanel

2011-01-19 Thread Ray Ryan
@shahidza...@gmail.com, this will happen faster if you're able to contribute
a patch. Either way, thanks for the report.

On Wed, Jan 19, 2011 at 7:48 AM, John LaBanca  wrote:

> Created an issue to track this:
> http://code.google.com/p/google-web-toolkit/issues/detail?id=5888
>  <http://code.google.com/p/google-web-toolkit/issues/detail?id=5888>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
> On Wed, Jan 19, 2011 at 10:42 AM, Ray Ryan  wrote:
>
>> Fine with me.
>>
>>
>> On Wed, Jan 19, 2011 at 7:37 AM, John LaBanca wrote:
>>
>>> DockPanel doesn't always work correctly in standards mode.  Specifically,
>>> setting the cell width/height via DockPanel.setCellWidth/Height() is almost
>>> meaningless and will lead to incorrect behavior in standards mode.  However,
>>> to be honest, even I don't know why its actually deprecated since it is
>>> still useful.  Maybe we can just deprecate and remove the methods that are
>>> specific to quirks mode?
>>>
>>> FYI - GWT no longer supports quirks mode and hasn't for a while.  I'd
>>> strongly encourage you to switch to standards mode.  It should provide a
>>> much more consistent experience across browsers, saving you a lot of
>>> debugging and testing.
>>>
>>> Thanks,
>>> John LaBanca
>>> jlaba...@google.com
>>>
>>>
>>> On Wed, Jan 19, 2011 at 10:17 AM, shahid  wrote:
>>>
>>>> We have been using GWT since version version 1.6 and have been
>>>> upgrading to the newest versions. In the 2.1 version, similar to some
>>>> other widgets, the DockPanel has been deprecated. I wonder if someone
>>>> could through a light on that. I personally think most of the users
>>>> are still going to be using the DockPanel for 2 reasons. One is you
>>>> need a RootLayoutPanel for the new DockLayoutPanel to work properly
>>>> and secondly the new DockLayoutPanel only works in standards mode
>>>> which is something people wouldn't want their users to restrict to.
>>>> Also does any one knows the reason behind the deprecation?
>>>>
>>>> --
>>>> You received 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: Deprecation of DockPanel

2011-01-19 Thread Ray Ryan
Fine with me.

On Wed, Jan 19, 2011 at 7:37 AM, John LaBanca  wrote:

> DockPanel doesn't always work correctly in standards mode.  Specifically,
> setting the cell width/height via DockPanel.setCellWidth/Height() is almost
> meaningless and will lead to incorrect behavior in standards mode.  However,
> to be honest, even I don't know why its actually deprecated since it is
> still useful.  Maybe we can just deprecate and remove the methods that are
> specific to quirks mode?
>
> FYI - GWT no longer supports quirks mode and hasn't for a while.  I'd
> strongly encourage you to switch to standards mode.  It should provide a
> much more consistent experience across browsers, saving you a lot of
> debugging and testing.
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
>
> On Wed, Jan 19, 2011 at 10:17 AM, shahid  wrote:
>
>> We have been using GWT since version version 1.6 and have been
>> upgrading to the newest versions. In the 2.1 version, similar to some
>> other widgets, the DockPanel has been deprecated. I wonder if someone
>> could through a light on that. I personally think most of the users
>> are still going to be using the DockPanel for 2 reasons. One is you
>> need a RootLayoutPanel for the new DockLayoutPanel to work properly
>> and secondly the new DockLayoutPanel only works in standards mode
>> which is something people wouldn't want their users to restrict to.
>> Also does any one knows the reason behind the deprecation?
>>
>> --
>> You received 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.



newbie: wrap a an input radio button modified by jquery

2010-12-12 Thread Ray Tayek
hi, my html person wants to use jquery. the html starts looking like: 
value="choice-1" checked="checked" />.


this gets turned into some kind of JavaScript$ obect. i can wrap get 
this by id and wrap it in a simple radio button:


Element on = Element.as(RootPanel.get("poweron").getElement());
SimpleRadioButton poweron = SimpleRadioButton.wrap(on);

i can add a click handler to this radio button and get the clicks.

but i can not seem to change the style or enable and disable.

firebug says it's:

checked="checked" value="choice-1" id="poweron" name="radio-group-1" 
class="-disabled" style="color: green; background-color: 
green;">Power On


looks like he fools around with putting "disabled" into the class 
into the div and input.


i would like to disable the button for a while and then re-enable it.

how does one deal with this kind of thing?

is there a way to navigate down to the elements that you want to fool 
around with?


thanks





---
co-chair http://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: Best practises in automatic test and deployment

2010-12-01 Thread Ray Tayek

At 06:10 AM 12/1/2010, you wrote:

... I am looking for some good tools which help me with
deploying my application automaticly in a tomcat test server and later
on the production server. ...
What I am still missing is a automatic way of generating war files
which are deployed on the test server(with different properties like
db connection and user)  ,,,


if you are not already aware of it, this may be of interest: 
http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html#Deploying_using_the_Client_Deployer_Package


thanks

---
co-chair http://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: "Large scale application development and MVP" tutorial / no Places or Activities

2010-11-30 Thread Ray Ryan
+1

I think the community has inferred a linkage between place and presenter
that I never meant to imply. The MVP pattern is a lot more generally useful
than the place notion — it's all about decoupling view and app logic, a
pretty universal concern. IMHO Place is mainly useful for apps that are
about navigating around an object graph, like AdWords and most most simple
CRUD apps, a much narrower set. A concrete example: Wave made great use of
MVP, but never used the place notion because it was too limiting for them.
For details see Dan Danilatos's presentation from I/O 2010, which I never
get tired of flogging:

http://www.google.com/events/io/2010/sessions/gwt-continuous-build-testing.html

The activity and place packages in GWT 2.1 are pretty minimal first stabs,
kind of rushed out the door. One focus of GWT 2.2 will be improving their
flexibility and reducing the boilerplate they require.

On Tue, Nov 30, 2010 at 8:40 AM, David Chandler wrote:

> There are two reasons for this, actually:
>
> 1. The MVP tutorials were written months before Activities and Places
> became available in GWT 2.1.0.
> 2. The concepts are somewhat orthogonal, that is, Activity != Presenter.
>
> I think some of the reason for the confusion around Activity vs.
> Presenter has been that the community has different definitions of
> what is a presenter. In the first version of the gwt-presenter
> framework (and perhaps Ray Ryan's MVP talk at I/O '09--I'd have to go
> back and listen to be sure), a presenter was associated with a place,
> and this is the way many continue to think about presenters. Others
> take the more narrow view that it's just the biz logic behind a view
> or widget and is not tied to the concept of a place at all. In the
> latter concept, an Activity might load a view which consists of
> multiple sub-views or widgets, each backed by a presenter. Only the
> Activity itself is mapped to a Place.
>
> HTH,
> /dmc
>
> On Tue, Nov 30, 2010 at 9:03 AM, cri  wrote:
> > I've used the articles "Large scale application development and MVP" I
> > and II to model our MVP application. I notice that these tutorials
> > don't use either of the "Place" or "Activity" classes made available
> > by GWT. I'm wondering why this is. Does anyone know? 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.



Re: Generating build.xml file for web app

2010-11-29 Thread Ray Tayek

At 02:00 PM 11/29/2010, you wrote:

... but I don't know how to generate the ant build script ...


i'm a newbie also. if you have the command line versio, create an app 
and copy and modify the build.xml (please see below).


i just chabge the app name in about 7 places and it seems to work ok

thanks



  
  

  
  

  





  

  




file="D:/dev/htmlunit-2.8/lib/apache-mime4j-0.6.jar" />
file="D:/dev/htmlunit-2.8/lib/commons-codec-1.4.jar" />
file="D:/dev/htmlunit-2.8/lib/commons-collections-3.2.1.jar" />
file="D:/dev/htmlunit-2.8/lib/commons-io-1.4.jar" />
file="D:/dev/htmlunit-2.8/lib/commons-lang-2.4.jar" />
file="D:/dev/htmlunit-2.8/lib/cssparser-0.9.5.jar" />
file="D:/dev/htmlunit-2.8/lib/htmlunit-2.8.jar" />
file="D:/dev/htmlunit-2.8/lib/htmlunit-core-js-2.8.jar" />
file="D:/dev/htmlunit-2.8/lib/httpclient-4.0.1.jar" />
file="D:/dev/htmlunit-2.8/lib/httpcore-4.0.1.jar" />
file="D:/dev/htmlunit-2.8/lib/httpmime-4.0.1.jar" />
file="D:/dev/htmlunit-2.8/lib/nekohtml-1.9.14.jar" />
file="D:/dev/htmlunit-2.8/lib/sac-1.3.jar" />
file="D:/dev/htmlunit-2.8/lib/serializer-2.7.1.jar" />
file="D:/dev/htmlunit-2.8/lib/xalan-2.7.1.jar" />
file="D:/dev/htmlunit-2.8/lib/xercesImpl-2.9.1.jar" />
file="D:/dev/htmlunit-2.8/lib/xml-apis-1.3.04.jar" />



file="D:/lib/commons-logging-adapters.jar" />


file="D:/lib/commons-logging-adapters-1.1.1.jar" />







  

  



  


  

  

  
classname="com.google.gwt.dev.Compiler">

  


  
  
  
  
  
  
  
  

  

  
classname="com.google.gwt.dev.DevMode">

  


  
  
  
  
  
  
  
  
  

  



  


  

  

  

  


  





---
co-chair http://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: is there a way to see or export the dynamic html?

2010-11-29 Thread Ray Tayek

At 06:25 PM 11/29/2010, you wrote:

Snapshot (Firefox plugin) to the rescue...

http://turbomanage.wordpress.com/2010/05/22/how-to-save-a-snapshot-of-a-web-page-including-gwt/


got it.

thanks


On Mon, Nov 29, 2010 at 8:23 PM, Ray Tayek  wrote:
> hi, is any way to grab a copy of the dynamic stuff that my gwt app added to
> the dom? i have fierbug and see some of it, but i have poor vision and it
> would be nice to save it somehow. ...


---
co-chair http://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.



is there a way to see or export the dynamic html?

2010-11-29 Thread Ray Tayek
hi, is any way to grab a copy of the dynamic stuff that my gwt app 
added to the dom? i have fierbug and see some of it, but i have poor 
vision and it would be nice to save it somehow.


thanks

---
co-chair http://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: newbie trying to use htmlunit & gwt 2.1 to test greet example

2010-11-27 Thread Ray Tayek

At 04:36 AM 11/27/2010, you wrote:

You aren't finding any buttons because HTML doesn't have a 
tag.  Use one of the methods described under "Finding a specific
element" at this page: http://htmlunit.sourceforge.net/gettingStarted.html.
I generally find myself needing xpath sooner or later.


the tests below all pass.

i have: Click Me! in the 
html, so it finds that one. but it does not find any of the dynamic 
ones that i made with: final Button b = new Button(commandId); in the 
clinet code.


so i am still puzzled.

thanks


package hw;

import org.junit.*;
import static org.junit.Assert.*;
import com.gargoylesoftware.htmlunit.*;
import com.gargoylesoftware.htmlunit.html.*;

public class BasicHtmlUnitRPCTestCase {

@BeforeClass public static void setUpBeforeClass() throws Exception {

}
static final String 
url="http://127.0.0.1:/Reasy.html?gwt.codesvr=127.0.0.1:9997";;
@AfterClass public static void tearDownAfterClass() throws 
Exception {}


@Before public void setUp() throws Exception {}

@After public void tearDown() throws Exception {}

@Test public void testVanilla() throws Exception {
System.out.println("testVanilla");
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
final DomNodeList buttons = 
page.getElementsByTagName("button");

assertTrue(buttons.size() >= 1);
}

@Test public void testNicelyResynchronizingAjaxController() 
throws Exception {

System.out.println("testNicelyResynchronizingAjaxController");
final WebClient webClient = new WebClient();
webClient.setAjaxController(new 
NicelyResynchronizingAjaxController());

final HtmlPage page = webClient.getPage(url);
final DomNodeList buttons = 
page.getElementsByTagName("button");

assertTrue(buttons.size() >= 1);
}

@Test public void testwaitForBackgroundJavaScript() throws Exception {
System.out.println("testwaitForBackgroundJavaScript");
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
webClient.waitForBackgroundJavaScript(1);
final DomNodeList buttons = 
page.getElementsByTagName("button");

assertTrue(buttons.size() >= 1);
}
@Test public void 
testwaitForBackgroundJavaScriptStartingBefore() throws Exception {


System.out.println("testwaitForBackgroundJavaScriptStartingBefore");
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
webClient.waitForBackgroundJavaScript(1);
final DomNodeList buttons = 
page.getElementsByTagName("button");

assertTrue(buttons.size() >= 1);
}

@Test public void testWait() throws Exception {
System.out.println("testWait");
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
Thread.sleep(1);
final DomNodeList buttons = 
page.getElementsByTagName("button");

assertTrue(buttons.size() >= 1);
}

@Test public void testWaitForCondition() throws Exception {
final WebClient webClient = new WebClient();
final HtmlPage page = webClient.getPage(url);
DomNodeList buttons = 
page.getElementsByTagName("button");

for (int i = 0; i < 20; i++) {
buttons = page.getElementsByTagName("button");
System.out.println(buttons.size());
if (buttons.size() >= 1) {
break;
}
synchronized (page) {
page.wait(1000);
}
}
assertTrue(buttons.size() >= 1);
}

}



---
co-chair http://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: Server Push with GWT

2010-11-23 Thread Ray Tayek

At 01:07 PM 11/23/2010, you wrote:

can someone guide me or points me to some tutorial which shows the
implementation of server push technology with gwt


i did this part: 
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ#Server_Push_in_GWT 
and it seems to work ok.


thanks

---
co-chair http://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: server push

2010-11-09 Thread Ray Tayek

At 07:12 PM 11/8/2010, you wrote:

My project gwt-comet implements server push:

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


how are you testing it?

i have not been able to do any kind of load testing withe either 
hymlunt or synctest.


thanks



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.


---
co-chair http://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: server push

2010-11-07 Thread Ray Tayek

At 08:33 PM 11/3/2010, you wrote:
hi, trying to do this:: 
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ#Server_Push_in_GWT.

...
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 of 
http://docs.codehaus.org/display/JETTY/Continuations and 
http://tomcat.apache.org/tomcat-6.0-doc/aio.html?


thanks


---
co-chair http://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.



newbie trying to use htmlunit & gwt 2.1 to test greet example

2010-11-06 Thread Ray Tayek
hi, i am trying to use htmlunit to test the greeting service that 
gets generated in eclipse when you make a new web application project.


i am trying to find the send button in the project.

i tried some of the suggestions at 
http://htmlunit.sourceforge.net/faq.html#AJAXDoesNotWork, but all of 
my tests fail (please see below)


i can not find any buttons and some tests get a bunch of css warnings.

if i run this test on the real app that i want to test i get similar 
results with *no* warnings. this real app uses htmlunit 2.8, while 
the greet service uses whatever came with gwt 2.1. so i am sorta confused.


what should i try next?

any pointers will be appreciated.

thanks

package p;

import org.junit.*;
import static org.junit.Assert.*;
import com.gargoylesoftware.htmlunit.*;
import com.gargoylesoftware.htmlunit.html.*;

public class SimpleTestCase {

@Test public void testVanilla() throws Exception {
System.out.println("testVanilla");
final WebClient webClient = new WebClient();
final HtmlPage page = 
webClient.getPage("http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997";);

final DomNodeList buttons = page.getElementsByTagName("button");
assertTrue(buttons.size() > 0);
}

@Test public void testNicelyResynchronizingAjaxController() throws Exception {
System.out.println("testNicelyResynchronizingAjaxController");
final WebClient webClient = new WebClient();
webClient.setAjaxController(new NicelyResynchronizingAjaxController());
final HtmlPage page = 
webClient.getPage("http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997";);

final DomNodeList buttons = page.getElementsByTagName("button");
assertTrue(buttons.size() > 0);
}

@Test public void testwaitForBackgroundJavaScript() throws Exception {
System.out.println("testwaitForBackgroundJavaScript");
final WebClient webClient = new WebClient();
final HtmlPage page = 
webClient.getPage("http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997";);

webClient.waitForBackgroundJavaScript(1);
final DomNodeList buttons = page.getElementsByTagName("button");
assertTrue(buttons.size() > 0);
}
@Test public void testwaitForBackgroundJavaScriptStartingBefore() 
throws Exception {

System.out.println("testwaitForBackgroundJavaScriptStartingBefore");
final WebClient webClient = new WebClient();
final HtmlPage page = 
webClient.getPage("http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997";);

webClient.waitForBackgroundJavaScript(1);
final DomNodeList buttons = page.getElementsByTagName("button");
assertTrue(buttons.size() > 0);
}

@Test public void testWait() throws Exception {
System.out.println("testWait");
final WebClient webClient = new WebClient();
final HtmlPage page = 
webClient.getPage("http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997";);

Thread.sleep(1);
final DomNodeList buttons = page.getElementsByTagName("button");
assertTrue(buttons.size() > 0);
}

@Test public void testWaitForCondition() throws Exception {
final WebClient webClient = new WebClient();
final HtmlPage page = 
webClient.getPage("http://127.0.0.1:/Reasx.html?gwt.codesvr=127.0.0.1:9997";);

DomNodeList buttons = page.getElementsByTagName("button");
for (int i = 0; i < 20; i++) {
buttons = page.getElementsByTagName("button");
System.out.println(buttons.size());
if (buttons.size() > 0) {
break;
}
synchronized (page) {
page.wait(1000);
}
}
assertTrue(buttons.size() > 0);
}

}

//console output

testVanilla
Nov 5, 2010 3:23:10 PM 
com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Expected content type of 'application/javascript' or 
'application/ecmascript' for remotely loaded JavaScript element at 
'http://127.0.0.1:/reasx/reasx.nocache.js', but got 
'application/x-javascript'.

testNicelyResynchronizingAjaxController
Nov 5, 2010 3:23:10 PM 
com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Expected content type of 'application/javascript' or 
'application/ecmascript' for remotely loaded JavaScript element at 
'http://127.0.0.1:/reasx/reasx.nocache.js', but got 
'application/x-javascript'.

testwaitForBackgroundJavaScript
Nov 5, 2010 3:23:10 PM 
com.gargoylesoftware.htmlunit.IncorrectnessListenerImpl notify
WARNING: Expected content type of 'application/javascript' or 
'application/ecmascript' for remotely loaded JavaScript element at 
'http://127.0.0.1:/reasx/reasx.nocache.js', but got 
'application/x-javascript'.
Nov 5, 2010 3:23:10 PM 
com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
WARNING: CSS error: null [488:24] Error in expression. Invalid token 
"=". Was expecting one of: , , "/", , "-", , 
, ")", , "inherit", , , , 
, , , , , 
, , , , , 
, , , , , 
, .
Nov 5, 2010 3:23:10 PM 
com.gargoylesoftware.htmlunit.DefaultCssErrorHandler error
WARNING: CSS error: null [488:29] Error in style rule. Invalid token 
"\n". Was expecting one of: "}", ";".
Nov 5, 2010 3:23:10 PM 
com.gargoylesoftware.htmlunit.DefaultCssErrorHandler warning
WARNING: CSS warning: null [488:29] Igno

htmlunit - how to access widgets added by client?

2010-11-04 Thread Ray Tayek
hi, trying out htmlunit. it's easy to find static elements using 
page.getElementsByTagName().


but this does not seem to work for any of the widgets that i added in 
the client.


can some tell whether or not the above works or is there another way 
to get at them?


thanks

---
co-chair http://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: server push

2010-11-04 Thread Ray Tayek

At 07:38 AM 11/4/2010, you wrote:

What is the question? ;)


does anyone have any experience with this? (that they are willing to shore)

any pointers will be appreciated.

thanks


On Nov 4, 5:33 am, Ray Tayek  wrote:
> hi, trying to do 
this::http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPush

>
> does anyone have any experience with this?
>
> i know there may be other options, but i want to roll my own for demo. ...


---
co-chair http://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.



server push

2010-11-03 Thread Ray Tayek
hi, trying to do this:: 
http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPushFAQ#Server_Push_in_GWT.


does anyone have any experience with this?

i know there may be other options, but i want to roll my own for demo.

thanks

---
co-chair http://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: newbie: looking for very simple chat like thing

2010-11-01 Thread Ray Tayek

At 10:16 PM 11/1/2010, you wrote:

... I can suggest the IM service (xmpp) of Google App Engine: see
http://code.google.com/appengine/docs/java/xmpp/overview.html
You gain scalability for free.


ths will probably never need that.

thanks


On Nov 2, 12:55 am, Ray Tayek  wrote:
> hi, i have this web app that needs to keep an connection open for
> server side push. the messages are short (< 128 characters) and
> fairly infrequent.
>
> i have googled and found comet, 
websockets,http://www.google.com/events/io/2010/sessions/building-real-time-apps...,

> bosh, and a chat athttp://code.google.com/p/gwt-eclipsecon-chat/
>
> i will at most have a few clients. they will send a few messages.
> each message will be processed and a response sent to all clients.
>
> seems like hacking the eclipsecon thing might work. maybe someone
> knows of something a bit more simple? ...


---
co-chair http://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: newbie - basic questions

2010-11-01 Thread Ray Tayek

At 10:14 PM 11/1/2010, you wrote:

... To answer your second question, I would suggest using Google App
Engine in addition to GWT: you can deploy right away to GAE (with no
infrastructure on your own) after your local test with 127.0..0.1
tests.


i don't know anything about gae. this app won't have to scale for 
along time if ever.



If you use GAE, then the sdk of GAE will also allow you to run your
app directly with no need for tomcat (they've jetty included in the
sdk)


sounds like i do need to deploy it. i thought there was a way on the 
command line, but maybe that is just for static pages.




On Nov 2, 1:01 am, Ray Tayek  wrote:
> hi, i have a simple gwt app workng.
>
> can i run the app after compiling it in/from eclispe or do i have to
> deploy it to tomcat?
>
> is there a way to do that from the command line (i only see
> webAppCreator.cmd and  benchmarkViewer.cmd in my gwt download).
>
> if i am running in dev mode in eclipse
> (http://127.0.0.1:/Chattr.html?gwt.codesvr=127.0.0.1:9997), is
> there a way to use a similar url from another compute? ...


---
co-chair http://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.



newbie - basic questions

2010-11-01 Thread Ray Tayek

hi, i have a simple gwt app workng.

can i run the app after compiling it in/from eclispe or do i have to 
deploy it to tomcat?


is there a way to do that from the command line (i only see 
webAppCreator.cmd and  benchmarkViewer.cmd in my gwt download).


if i am running in dev mode in eclipse 
(http://127.0.0.1:/Chattr.html?gwt.codesvr=127.0.0.1:9997), is 
there a way to use a similar url from another compute?


thanks

---
co-chair http://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.



newbie: looking for very simple chat like thing

2010-11-01 Thread Ray Tayek
hi, i have this web app that needs to keep an connection open for 
server side push. the messages are short (< 128 characters) and 
fairly infrequent.


i have googled and found comet, websockets, 
http://www.google.com/events/io/2010/sessions/building-real-time-apps-app-engine-feed-api.html, 
bosh, and a chat at http://code.google.com/p/gwt-eclipsecon-chat/


i will at most have a few clients. they will send a few messages. 
each message will be processed and a response sent to all clients.


seems like hacking the eclipsecon thing might work. maybe someone 
knows of something a bit more simple?


thanks

---
co-chair http://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: newbie - unit test (solved)

2010-10-17 Thread Ray Tayek

At 06:08 PM 10/16/2010, you wrote:



On 16 oct, 23:25, Ray Tayek  wrote:
> hi, i added a unit test to the greet example (please see code below). i get
>
> ...
> The development shell servlet received a request for 'greet' in
> module 'p.R.JUnit.gwt.xml'
> [WARN] Resource not found: greet; (could a file be missing from
> the public path or a  tag misconfigured in module 
p.R.JUnit.gwt.xml ?)

> ...

JUnit tests do not use your web.xml, so you have to declare your
servlets in the gwt.xml.

... So if you don't want to include a  tag in your module, you
can create a "test module" that inherits your "normal" module and adds
the  tag, and return this module's name from your unit test.

The  tag is documented here:
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideModuleXml
and here http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html


i added servlet tag like:

  
  

and it works.

thanks


---
co-chair http://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.



newbie - unit test

2010-10-16 Thread Ray Tayek

hi, i added a unit test to the greet example (please see code below). i get

Starting HTTP on port 0
   HTTP listening on port 4889
Starting 
http://192.168.1.105:4889/p.R.JUnit/junit.html?gwt.codesvr=192.168.1.105:4887 
on browser FF3

Module p.R.JUnit has been loaded
The development shell servlet received a request for 'greet' in 
module 'p.R.JUnit.gwt.xml'
   [WARN] Resource not found: greet; (could a file be missing from 
the public path or a  tag misconfigured in module p.R.JUnit.gwt.xml ?)
lose: com.google.gwt.user.client.rpc.StatusCodeException: Cannot find 
resource 'greet' in the public path of module 'p.R.JUnit'


All clients connected (Limiting future permutations to: gecko1_8)

the :"lose" message is mine, coming from onFailure() in the async callback.

i don't think i changed anything except the on module load file.

seems like it's confused about the module name.

thanks

package p.client;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.Timer;

public class ATestCase extends GWTTestCase {

public ATestCase(String name) {
setName(name);
}

public ATestCase() {
}

protected void gwtSetUp() throws Exception {
super.gwtSetUp();
}

protected void gwrTearDown() throws Exception {
super.gwtTearDown();
}

@Override
public String getModuleName() {
return "p.R";
}

public void testAnRpc() throws Exception {
R module = new R();
final String id="xx";
final Label label=new Label();
module.send2(id, label);
 Timer timer = new Timer() {
   public void run() {
System.out.println(label.getText());
finishTest();
   }
  };
  timer.schedule(200);
  delayTestFinish(500);
}
}

package p.client;

import p.shared.FieldVerifier;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.event.dom.client.KeyCodes;
import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.KeyUpHandler;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;

/**
 * Entry point classes define onModuleLoad().
 */
public class R implements EntryPoint {
/**
 * The message displayed to the user when the server cannot 
be reached or

 * returns an error.
 */
private static final String SERVER_ERROR = "An error 
occurred while " + "attempting to contact the server. Please check 
your network "

+ "connection and try again.";

/**
 * Create a remote service proxy to talk to the server-side 
Greeting service.

 */
private final GreetingServiceAsync greetingService = 
GWT.create(GreetingService.class);


/**
 * This is the entry point method.
 */
public void onModuleLoad() {
final Button sendButton = new Button("Send");
final TextBox nameField = new TextBox();
nameField.setText("GWT User");
final Label errorLabel = new Label();

// We can add style names to widgets
sendButton.addStyleName("sendButton");

// Add the nameField and sendButton to the RootPanel
// Use RootPanel.get() to get the entire body element
RootPanel.get("nameFieldContainer").add(nameField);
RootPanel.get("sendButtonContainer").add(sendButton);
RootPanel.get("errorLabelContainer").add(errorLabel);

// Focus the cursor on the name field when the app loads
nameField.setFocus(true);
nameField.selectAll();

// Create the popup dialog box
final DialogBox dialogBox = new DialogBox();
dialogBox.setText("Remote Procedure Call");
dialogBox.setAnimationEnabled(true);
final Button closeButton = new Button("Close");
// We can set the id of a widget by accessing its Element
closeButton.getElement().setId("closeButton");
final Label textToServerLabel = new Label();
final HTML serverResponseLabel = new HTML();
VerticalPanel dialogVPanel = new

newbie - unit test fails with: Resource not found: greet

2010-10-15 Thread Ray Tayek
hi, trying to add a test to my simple app - a hacked up greet server 
(please see test code below).


error says:

Starting HTTP on port 0
   HTTP listening on port 3518
Starting 
http://192.168.1.105:3518/p.Rtecg2.JUnit/junit.html?gwt.codesvr=192.168.1.105:3516 
on browser FF3

Module p.Rtecg2.JUnit has been loaded
All clients connected (Limiting future permutations to: gecko1_8)
   [WARN] CSS error: null [485:24] Error in expression. Invalid 
token "=". Was expecting one of: , , "/", ,  ...


(there is a buch of the above).

then:

The development shell servlet received a request for 'greet' in 
module 'p.Rtecg2.JUnit.gwt.xml'
   [WARN] Resource not found: greet; (could a file be missing from 
the public path or a  tag misconfigured in module 
p.Rtecg2.JUnit.gwt.xml ?)
(Rtecg2.java:105) 2010-10-15 14:56:35,937 [ERROR] clickhandler: An 
error occurred while attempting to contact the server. Please check 
your network connection and try again.


this kind of error also happens if i add a test to the generated 
greet server code (but without the css errors - i did change the css 
stuff in my app).


Starting HTTP on port 0
   HTTP listening on port 3552
Starting 
http://192.168.1.105:3552/p.R.JUnit/junit.html?gwt.codesvr=192.168.1.105:3551 
on browser FF3

Module p.R.JUnit has been loaded
The development shell servlet received a request for 'greet' in 
module 'p.R.JUnit.gwt.xml'
   [WARN] Resource not found: greet; (could a file be missing from 
the public path or a  tag misconfigured in module p.R.JUnit.gwt.xml ?)
lose: com.google.gwt.user.client.rpc.StatusCodeException: Cannot find 
resource 'greet' in the public path of module 'p.R.JUnit'


All clients connected (Limiting future permutations to: gecko1_8)


this module name: p.Rtecg2.JUnit.gwt.xml - seems strange. also so 
does: p.R.JUnit.gwt.xml


thanks






package p.client;
import com.google.gwt.junit.client.GWTTestCase;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.Timer;

public class ATestCase extends GWTTestCase {

public ATestCase(String name) {
setName(name);
}

public ATestCase() {
}

protected void gwtSetUp() throws Exception {
super.gwtSetUp();
}

protected void gwrTearDown() throws Exception {
super.gwtTearDown();
}

@Override
public String getModuleName() {
return "p.Rtecg2";
}

public void testAnRpc() throws Exception {
Rtecg2 module = new Rtecg2();
final String id="xx";
final Label label=new Label();
module.oldSend(id, label);
 Timer timer = new Timer() {
   public void run() {
System.out.println(label.getText());
finishTest();
   }
  };
  timer.schedule(200);
  delayTestFinish(500);
}}


---
co-chair http://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: GWT Eclipse not working -- newbie question

2010-10-13 Thread Ray Tayek

At 08:04 AM 10/13/2010, you wrote:

... I'm new to this. I'm trying to create a simple GWT component with
Eclipse 3.5 plugin in the following way:

1. I create a new Module (new > other > ...). All it does for me is
generate a MyPage.gwt.xml in com.myApp package.

2. I create a MyPage.java class in com.myApp.client and I have it
extend EntryPoint.

3. I created a MyPage.html and MyPage.css in the war directory.

4. I went to web.xml and specified MyPage as the welcome-file.

Now I run the application and go to the appropriate address,
http://127.0.0.1:/MyPage.html?gwt.codesvr=127.0.0.1:9997, and I
get the page, MyPage.html, but all it has in the static information on
it. It doesn't call the MyPage.java, and doesn't do anything with it.
I know this for sure because I put a simple System.out line in
onModuleLoad() and it's not called.


try just making a new "web application project" and it should make a 
working project using the greeting service.


thanks

---
co-chair http://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.



newbie: add timeout to greet service

2010-10-13 Thread Ray Tayek

hi, trying to add a timeout to the greeting service.

there does not seem to ne any way to add a timeout on the client 
stide, so i am trying a request builder using this example: 
http://jagadesh4java.blogspot.com/2009/04/gwt-rpc-using-request-builder-hi.html


the server complains using the code below with a:

javax.servlet.ServletException: Content-Type was 'text/plain; 
charset=utf-8'. Expected 'text/x-gwt-rpc'.


is there a way to set the content type on the client side?

thanks

private void send(final String string, final Label label) {
RequestCallback requestCallback;
RequestBuilder builder;
final int STATUS_CODE_OK = 200;
final String request = GWT.getModuleBaseURL() + "greet?input=" + string;
requestCallback = new RequestCallback() {
public void onError(Request request, Throwable exception) {
exception.printStackTrace();
}

public void onResponseReceived(Request request, Response response) {
if (response.getStatusCode() == STATUS_CODE_OK) {
Log.info("it worked: " + response);
sleep(2000);
if (label != null)
label.setText(response.getText());

} else
Log.info("bad news: " + response);
}
};
try {
builder = new RequestBuilder(RequestBuilder.POST, request);
//builder.setTimeoutMillis(6);
builder.sendRequest(null, requestCallback);
} catch (RequestException e) {
throw new RuntimeException(e);
}

---
co-chair http://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: how to get rid of "GWT Code Server Disconnected" (solved)

2010-10-11 Thread Ray Tayek

At 10:11 PM 10/11/2010, you wrote:

You can also find all the information in the Development view in
Eclipse.


i can see the logs there just fine.



On Oct 11, 5:20 pm, Ray Tayek  wrote:
> At 03:09 PM 10/11/2010, you wrote:
>
> >i have poor vision, is there some way to get rid of  ...
>
> seems like i shoud be able to: In Firebug or any developer tool, set
> display:none on the DIV. ...


i can find the div and get it into edit mode (not sure how to get out 
of edit mode and save changes) it's pretty small type :(.


hopefully i will only have to edit the one div.

thanks


---
co-chair http://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: how to get rid of "GWT Code Server Disconnected" (solved)

2010-10-11 Thread Ray Tayek

At 03:09 PM 10/11/2010, you wrote:
hi, when things go south, i am getting this get this big grey thing 
that says: "GWT Code Server Disconnected " which hides the log stiff 
and my html stuff.


i have poor vision, is there some way to get rid of  ...


seems like i shoud be able to: In Firebug or any developer tool, set 
display:none on the DIV.


thanks

---
co-chair http://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: newbie - GWT.getHostPageBaseURL() + "greetingService?input=" + string);

2010-10-11 Thread Ray Tayek

At 07:07 AM 10/11/2010, you wrote:

Are you still using the provided GreetingServiceImpl on server side
that expects a GWT RPC call?


yes. that code is the same except for choosing a response to send to 
the client.



Because the way you're setting this up is not sending a GWT RPC
request, you're just get/put/post'ing that plaintext
request.  It's perfectly valid to do that, but if your GreetingService
servlet is
still extending RemoteServiceServlet it's going to be expecting a GWT
RPC request..hence the check for 'text/x-gwt-rpc' content-type..and
reject your non-RPC request.

If you want to stick with GWT RPC, you don't use RequestBuilder like
this.


ok.
i am a newbie, so i don't really know. so far all of the stuff that i 
want to send and receive is just strings.




Based on just your simple use case for timing out an RPC call you can
do something like this with an RpcRequestBuilder implementation that
sets the request timeout to 6:

ServiceDefTarget async = GWT.create(MyAsync.class);
async.setRpcRequestBuilder(builder);
((MyAsync) async).method(data, callback);


i will try this.

thanks



On Oct 11, 5:29 am, Ray Tayek  wrote:
> At 11:22 PM 10/10/2010, you wrote:
>
> >Hello Ray,
>
> >if you are wondering what url the gwt async uses, you can see this
> >in firebug (network tab).
>
> cool
>
> >I think you are missing your module in the url.
> >Dont use  GWT.getHostPageBaseURL() use GWT.getModuleBaseURL() and
> >you should be fine.
>
> that and changing greetingService to greet gets 
me:http://127.0.0.1:/rtecg2/greet?input=Command2, and a 405 HTTP

> method GET is not supported by this URL .
>
> changing get to put does not help
> trying a post , gets a 505: javax.servlet.ServletException:
> Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt-rpc'.
>
> i am sending just a string. my code (please see below) tries to build
> a request with a timeout. the normal code that works uses:
>
> greetingService.greetServer(id, new AsyncCallback() { ... }
>
> thanks
>
> private void sendStringToServer(final String string, final Label label) {
> Log.info("sending: " + string + ", label=" + label);
> final String request = GWT.getModuleBaseURL() + "greet?input=" + string;
> Log.info(request);
> RequestBuilder requestBuilder = new
> RequestBuilder(RequestBuilder.POST, request);
> requestBuilder.setTimeoutMillis(6);
> RequestCallback requestCallback = new RequestCallback() {
> @Override
> public void onError(Request request, Throwable exception) {
> Log.error("fail! " + exception);
> label.setText("fail! " + exception);
>
> }
>
> @Override
> public void onResponseReceived(Request request, Response response) {
> int statusCode = response.getStatusCode();
> if (statusCode != Response.SC_OK) {
> this.onError(request, null);
> return;}
>
> final String answer = response.getText();
> Log.info("answer=" + answer);
> if (label != null)
> label.setText(answer);
>
> }
> };
>
> try {
> requestBuilder.sendRequest(null, requestCallback);} catch 
(RequestException e) {

>
> requestCallback.onError(null, e);
>
>
>
> }
> }
> >-Daniel Kurka
>
> >2010/10/11 Ray Tayek <<mailto:rta...@ca.rr.com>rta...@ca.rr.com>
> >At 03:47 PM 10/10/2010, you wrote:
> >hi, i would like to add a timeout to some of my async callbacks. i
> >am using a hacked up version of greet server. the normal code:
> >greetingService.greetServer(id, new AsyncCallback() { ... }
>
> >...
>
> >using the second (please see code below),  the
> >code:  GWT.getHostPageBaseURL() + "greetingService?input=" + string);
>
> >returns:
> ><http://127.0.0.1:/greetingService?input=Command1>http://127. 
0.0.1:/greetingService?input=Command1

>
> >the url that the browser uses is:
> ><http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997>htt 
p://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997

>
> >can someone tell me the correct url to use or how to fix the code to
> >get it programatically?
>
> >i'm geting a 404, the console says: [WARN] 404 - GET
> >/greetingService?input=command0id (127.0.0.1) 1401 bytes ... ...


---
co-chair http://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.



how to get rid of "GWT Code Server Disconnected"

2010-10-11 Thread Ray Tayek
hi, when things go south, i am getting this get this big grey thing 
that says: "GWT Code Server Disconnected " which hides the log stiff 
and my html stuff.


i have poor vision, is there some way to get rid of or move the thing 
that has the "GWT Code Server Disconnected " so i can see what's underneath?


thanks


---
co-chair http://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: some newbie questions

2010-10-11 Thread Ray Tayek

At 02:25 AM 10/11/2010, you wrote:



On 9 oct, 04:15, Ray Tayek  wrote:
> ... i sometime get a: "A widget that has an existing parent widget may
> not be added to the detach list" error  ...

You cannot have "root" widgets whose elements are nested (i.e. there's
no parent/child relationship between the widgets, but there's one
between their elements in the DOM).  ...


ok.


...
> also, i am using gwt-logger. when this crashes, i get this big grey
> thing that says: "GWT Code Server Disconnected " which hides the log
> stiff and my html stuff. i have poor vision, is there some way to
> move the thing that  ...

In Firebug or any developer tool, set display:none on the DIV.


great, i will try that.

thanks

---
co-chair http://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: newbie - GWT.getHostPageBaseURL() + "greetingService?input=" + string);

2010-10-11 Thread Ray Tayek

At 11:22 PM 10/10/2010, you wrote:

Hello Ray,

if you are wondering what url the gwt async uses, you can see this 
in firebug (network tab).


cool


I think you are missing your module in the url.
Dont use  GWT.getHostPageBaseURL() use GWT.getModuleBaseURL() and 
you should be fine.


that and changing greetingService to greet gets me: 
http://127.0.0.1:/rtecg2/greet?input=Command2, and a 405 HTTP 
method GET is not supported by this URL .


changing get to put does not help
trying a post , gets a 505: javax.servlet.ServletException: 
Content-Type was 'text/plain; charset=utf-8'. Expected 'text/x-gwt-rpc'.


i am sending just a string. my code (please see below) tries to build 
a request with a timeout. the normal code that works uses:


greetingService.greetServer(id, new AsyncCallback() { ... }

thanks


private void sendStringToServer(final String string, final Label label) {
Log.info("sending: " + string + ", label=" + label);
final String request = GWT.getModuleBaseURL() + "greet?input=" + string;
Log.info(request);
RequestBuilder requestBuilder = new 
RequestBuilder(RequestBuilder.POST, request);

requestBuilder.setTimeoutMillis(6);
RequestCallback requestCallback = new RequestCallback() {
@Override
public void onError(Request request, Throwable exception) {
Log.error("fail! " + exception);
label.setText("fail! " + exception);
}

@Override
public void onResponseReceived(Request request, Response response) {
int statusCode = response.getStatusCode();
if (statusCode != Response.SC_OK) {
this.onError(request, null);
return;
}
final String answer = response.getText();
Log.info("answer=" + answer);
if (label != null)
label.setText(answer);
}
};

try {
requestBuilder.sendRequest(null, requestCallback);
} catch (RequestException e) {
requestCallback.onError(null, e);
}
}





-Daniel Kurka

2010/10/11 Ray Tayek <<mailto:rta...@ca.rr.com>rta...@ca.rr.com>
At 03:47 PM 10/10/2010, you wrote:
hi, i would like to add a timeout to some of my async callbacks. i 
am using a hacked up version of greet server. the normal code: 
greetingService.greetServer(id, new AsyncCallback() { ... }


...

using the second (please see code below),  the 
code:  GWT.getHostPageBaseURL() + "greetingService?input=" + string);


returns: 
<http://127.0.0.1:/greetingService?input=Command1>http://127.0.0.1:/greetingService?input=Command1


the url that the browser uses is: 
<http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997>http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997


can someone tell me the correct url to use or how to fix the code to 
get it programatically?



i'm geting a 404, the console says: [WARN] 404 - GET 
/greetingService?input=command0id (127.0.0.1) 1401 bytes ...


---
co-chair http://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: newbie - GWT.getHostPageBaseURL() + "greetingService?input=" + string);

2010-10-10 Thread Ray Tayek

At 03:47 PM 10/10/2010, you wrote:
hi, i would like to add a timeout to some of my async callbacks. i 
am using a hacked up version of greet server. the normal code: 
greetingService.greetServer(id, new AsyncCallback() { ... }


...
using the second (please see code below),  the 
code:  GWT.getHostPageBaseURL() + "greetingService?input=" + string);


returns: http://127.0.0.1:/greetingService?input=Command1

the url that the browser uses is: 
http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997


can someone tell me the correct url to use or how to fix the code to 
get it programatically?


i'm geting a 404, the console says: [WARN] 404 - GET 
/greetingService?input=command0id (127.0.0.1) 1401 bytes


the complete console log is below.

so i am trying to find out what the correct url is. the other normal 
async calls work fine, but i do not know what url that uses.


thanks

(Rtecg2.java:61) 2010-10-10 16:17:31,640 [INFO ] got wire: command0 fail!
(Rtecg2.java:103) 2010-10-10 16:17:31,640 [INFO ] 
http://127.0.0.1:/greetingService?input=command0id

[WARN] 404 - GET /greetingService?input=command0id (127.0.0.1) 1401 bytes
   Request headers
  Host: 127.0.0.1:
  User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; 
rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10 ( .NET CLR 3.5.30729)

  Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
  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
  Content-Type: text/plain; charset=utf-8
  Referer: http://127.0.0.1:/rtecg2/hosted.html?rtecg2
   Response headers
  Content-Type: text/html; charset=iso-8859-1
  Content-Length: 1401
(Rtecg2.java:109) 2010-10-10 16:17:31,671 [ERROR] fail!



---
co-chair http://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.



newbie - GWT.getHostPageBaseURL() + "greetingService?input=" + string);

2010-10-10 Thread Ray Tayek
hi, i would like to add a timeout to some of my async callbacks. i am 
using a hacked up version of greet server. the normal code: 
greetingService.greetServer(id, new AsyncCallback() { ... }


works fine.

i found this: 
http://www.mail-archive.com/google-web-toolkit@googlegroups.com/msg25955.html, 
and this: http://code.google.com/p/json-object/wiki/ExampleApplicationit.


using the second (please see code below),  the 
code:  GWT.getHostPageBaseURL() + "greetingService?input=" + string);


returns: http://127.0.0.1:/greetingService?input=Command1

the url that the browser uses is: 
http://127.0.0.1:/Rtecg2.html?gwt.codesvr=127.0.0.1:9997


can someone tell me the correct url to use or how to fix the code to 
get it programatically?


thanks

private void sendStringToServer(final String string,final Label label) {
final String request= GWT.getHostPageBaseURL() + 
"greetingService?input=" + string;

Log.info(request);
RequestBuilder requestBuilder = new 
RequestBuilder(RequestBuilder.GET, GWT.getHostPageBaseURL() + 
"greetingService?input=" + string);

requestBuilder.setTimeoutMillis(6);
RequestCallback requestCallback = new RequestCallback() {
@Override
public void onError(Request request, Throwable exception) {
Log.error("fail!");
label.setText("fail!");
}

@Override
public void onResponseReceived(Request request, Response response) {
int statusCode = response.getStatusCode();
if (statusCode != Response.SC_OK) {
this.onError(request, null);
return;
}
final String answer = response.getText();
Log.info("answer=" + answer);
label.setText(answer);
}
};

try {
requestBuilder.sendRequest(null, requestCallback);
} catch (RequestException e) {
requestCallback.onError(null, e);
}
}





---
co-chair http://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: some newbie questions

2010-10-09 Thread Ray Tayek

At 01:00 AM 10/9/2010, you wrote:

... I can't see why the exact piece of code you posted should fail. You've
got probably more going on.


ok.



You can avoid this problem if you programmatically construct the page.
Thus, the html should contain only a  with an ID, which you get
through RootPanel.get(id) and then you keep adding your widgets to
that.


ok. i can do that. but does it have to be a div? i want to arrange 
buttons and statuses in row?


the widgets that i attach will be just buttons and labels (i guess). 
my static html looks like:










If you prefer designing your page as static html and wrapping widgets
around them you need to understand how the widget hierarchy works. For
my taste, it's ill-documented but follows more or less this rule: if
widget A contains widget B, you need to attach first widget B and then
A.  ...


ok,. i think i can avoid those problems now.

thanks


On Oct 9, 4:15 am, Ray Tayek  wrote:
> hi, starting a project using eclipse galileo and a week old download
> of gwt eclipse plugin..
>
> i sometime get a: "A widget that has an existing parent widget may
> not be added to the detach list" error when doing the following 
type of thing:

>
> //static bar
> Label bar = new Label("bar label);
> bar.getElement().setId("barid");
> RootPanel.get("bar").add(bar);
> RootPanel rp = RootPanel.get("barid");
>
> this usually fails. doesn't seem to matter whether bar is a panel, an
> html, or a label (does seem to work with buttons though). seems like
> i am not using gwt properly and breaking some rule 
like:http://markmail.org/message/l3okzeqycanf5alg

>
> can someone point me to some doc on this?
>
> also, i am using gwt-logger. when this crashes, i get this big grey
> thing that says: "GWT Code Server Disconnected " which hides the log
> stiff and my html stuff. i have poor vision, is there some way to
> move the thing that has the "GWT Code Server Disconnected " so i can
> see what's underneath?
>
> what i am trying to do is to wire up a bunch of buttons (each of
> which makes an rpc call) with their corresponding status/result
> widgets. the staus/result can be just text for now (maybe some
> graphic that changes later).
>
> the button case fails if i try to do a RootPanel.get() immediately.
> if i do it in a click handler, it seems to work ok, so maybe it's a
> timing problem? ...


---
co-chair http://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.



some newbie questions

2010-10-08 Thread Ray Tayek
hi, starting a project using eclipse galileo and a week old download 
of gwt eclipse plugin..


i sometime get a: "A widget that has an existing parent widget may 
not be added to the detach list" error when doing the following type of thing:


//static bar
Label bar = new Label("bar label);
bar.getElement().setId("barid");
RootPanel.get("bar").add(bar);
RootPanel rp = RootPanel.get("barid");

this usually fails. doesn't seem to matter whether bar is a panel, an 
html, or a label (does seem to work with buttons though). seems like 
i am not using gwt properly and breaking some rule like: 
http://markmail.org/message/l3okzeqycanf5alg


can someone point me to some doc on this?

also, i am using gwt-logger. when this crashes, i get this big grey 
thing that says: "GWT Code Server Disconnected " which hides the log 
stiff and my html stuff. i have poor vision, is there some way to 
move the thing that has the "GWT Code Server Disconnected " so i can 
see what's underneath?


what i am trying to do is to wire up a bunch of buttons (each of 
which makes an rpc call) with their corresponding status/result 
widgets. the staus/result can be just text for now (maybe some 
graphic that changes later).


the button case fails if i try to do a RootPanel.get() immediately. 
if i do it in a click handler, it seems to work ok, so maybe it's a 
timing problem?


thanks

---
co-chair http://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: ui:image, image within an anchor or a button

2010-05-30 Thread Ray
I got the same situation.
Currently my solution is only has anchor in ***.ui.xml image part was
added using code.
eg:
Image myImage = new Image();
monitorOverImage = new Image();

monitorImage.setUrl(IFMResources.INSTANCE.vehicleMonitor().getURL());

monitorOverImage.setUrl(IFMResources.INSTANCE.vehicleMonitor_over().getURL());
Is there any better solution?

On 4月24日, 上午12時38分, Carlos Aguayo  wrote:
> I'd like to have an image within an anchor or a button tag. I'm using
> the UiBinder and I need the anchor or button to be a widget so I can
> use their "HasClickHandlers" interface.
>
> I wanted to use an image widget so I can use an ImageResource,
> something like this:
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>               xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>
>   
>
>   
>      Add
>   
>
> 
>
> But since neither the Anchor nor the Button can take widgets, I get
> the "Found widget in an HTML context" error.
>
> I've seen posts mentioning the "ui:image" tag but couldn't find
> documentation on how to use it and I couldn't get it to work.
>
> If I do:
>
> http://dl.google.com/gwt/DTD/xhtml.ent";>
>               xmlns:g='urn:import:com.google.gwt.user.client.ui'>
>
>   
>     
>   
>
> 
>
> It's doing something since it won't compile if "add.gif" is not under
> the right package. However when I see it in the browser, the ui:image
> didn't get compiled into an image.
>
> Do you know what am I missing here?
>
> 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 
> 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.



Unable to find type 'com.foo.client.MyApp'

2010-04-23 Thread Ray
I am getting following error in GWT development console when I try to
use "Run Configuration" from Eclipse.

00:00:20.360 [TRACE] Finding entry point classes
00:00:20.360 [ERROR] Unable to find type
'org.drools.guvnor.client.JBRMSEntryPoint'
00:00:20.407 [ERROR] Hint: Check that the type name
'org.drools.guvnor.client.JBRMSEntryPoint' is really what you meant
00:00:20.407 [ERROR] Hint: Check that your classpath
includes all required source roots
00:00:20.407 [ERROR] Failed to load module 'org.drools.guvnor.Guvnor'
from user agent 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.1.249.1059 Safari/
532.5' at localhost:2247

I tried workaround listed on following web link (Unable to find type
'com.foo.client.MyApp') without any success. Any ideas on resolution
will be helpful.

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

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



Re: Unable to Use GWT Developer Plugin with Firefox 3.6

2010-03-24 Thread J Robert Ray
The binary component of the extension (libgwt_dev_ff36.so) comes built
with a runtime dependency on libnspr4.so.0d.

On my linux system, I do not have this '0d' version, just /lib/libnspr4.so.

I was able to get the plugin to load by creating a symlink
libnspr4.so.0d -> libnspr4.so in /lib.

On Mon, Mar 15, 2010 at 11:17 AM, bkbonner  wrote:
> I had a problem with this with Windows XP, but I uninstalled the old
> GWT Firefox Plugin (from Tools -> Addons) and reinstalled it and it
> seems to work fine -- I'm running the GWT Firefox Plugin version
> 1.0.7511 without any issues on Windows XP.
>
> On Mar 15, 4:23 am, NUll  wrote:
>> Well, i think that they already told you the solution, I compiled to
>> my plug in, in case of you don't know hoe to do it, check out my blog,
>> there I wrote the steps for compiling the xpi file. Good luck
>> Blog:http://devshell.blogspot.com/
>>
>> Translation:http://translate.google.com.mx/translate?u=http%3A%2F%2Fdevshell.blog...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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



Re: gwt test suite: did you forget to inherit a required module? (solved!)

2010-02-03 Thread Ray Tayek

At 12:54 AM 2/3/2010, you wrote:
Hi, I have the same error for one of my own custom class. I entered 
the following


 where the path is the 
exact location of the class I am using.


However, now I'm no longer having not being able to find the source, 
Compiler tells me that an EntryPoint cannot be found.


it seems it's complaining about: source for GWTTestSuite along with 
my test suite.


looks like there may be a workaround: 
http://code.google.com/p/google-web-toolkit/issues/detail?id=2486


moving the test suit up one package worked for me.

thanks

---
co-chair http://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.



gwt test suite: did you forget to inherit a required module?

2010-02-02 Thread Ray Tayek
hi, working through the tutorials. got some test cases to work fine. 
made a gwt test suite. ran in dev mode. eclipse (sts) thinks all of 
the test have been run (green bar). test reports have output for just 
one test case.


console has warnings (please see below). my suite is in the same 
package as the test cases.


ant runs all of the tests if i include: name="**/*TestCase.java" />, but the text output for each test case 
is similar to the console errors. running the suite explicitly from 
ant gets similar results (same errors for the test suite class).


seems like i need to inherit something?

any pointers will be appreciated.

thanks

Starting HTTP on port 0
   HTTP listening on port 3689
Validating newly compiled units
   [ERROR] Errors in 
'file:/D:/home/ray/gwtapps/StockWatcher/test/com/google/gwt/sample/stockwatcher/client/MySuite.java'
  [ERROR] Line 8: No source code is available for type 
com.google.gwt.junit.tools.GWTTestSuite; did you forget to inherit a 
required module?
  [ERROR] Line 10: No source code is available for type 
junit.framework.TestSuite; did you forget to inherit a required module?
Starting 
http://192.168.1.105:3689/com.google.gwt.sample.stockwatcher.StockWatcher.JUnit/junit.html?gwt.codesvr=192.168.1.105:3688 
on browser FF3

Validating newly compiled units
   [ERROR] Errors in 
'file:/D:/home/ray/gwtapps/StockWatcher/test/com/google/gwt/sample/stockwatcher/client/MySuite.java'
  [ERROR] Line 8: No source code is available for type 
com.google.gwt.junit.tools.GWTTestSuite; did you forget to inherit a 
required module?
  [ERROR] Line 10: No source code is available for type 
junit.framework.TestSuite; did you forget to inherit a required module?

Module com.google.gwt.sample.stockwatcher.StockWatcher.JUnit has been loaded
All clients connected (Limiting future permutations to: gecko1_8)


---
co-chair http://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: Google Web Toolkit 2.0 RC2 Now Available

2009-11-26 Thread - Ray
Hi,
I've got the same issue as you did. The same Date Object gives me the Time
with different TImezone, sometimes with CET, sometimes with UTC. It happens
randomly. Now i am using Calender instead of Date.



2009/11/25 armogur 

> is it possible, that java.util.Date behaves differently in devmode
> than production mode?
>
> i am using hungarian locale, and the getTimezoneOffset() function
> gives me different values on a Date object in devmode than production
> mode!
>
> On nov. 25, 21:52, John LaBanca  wrote:
> > Hi everyone,
> >
> > We're getting close! GWT 2.0 SDK RC2 and Google Plugin for
> > Eclipse 1.2 RC2 are now available for you to try.
> >
> > Download the GWT 2.0 SDK RC2 here:
> http://code.google.com/p/google-web-toolkit/downloads/list?can=1&q=gw...
> >
> > The full documentation is still a work in progress, but you can find
> > instructions for using the updated SDK and Eclipse plugin here:
> http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC
> >
> > We've resolved several issues since RC1 and we feel pretty darn good
> > about it, but as always, we caution you against using RC2 in production.
> >
> > Windows users who have previously installed the Google Web Toolkit
> Developer
> > Plugin for IE will have to uninstall the old version and
> > install the new version. This action is required because the file
> locations
> > have changed. The RC1 installer required administrative
> > privileges, but the new installer does not. Use the following steps:
> > 1. Open Control Panel
> > 2. Select Add/Remove Programs
> > 3. Select Google Web Toolkit Developer Plugin for IE and click uninstall
> > 4. During your next attempt to use GWT 2.0 development mode in IE, you
> will
> > be prompted to install the GWT Developer Plugin, which will
> > download an updated installer that does not require administrative
> > privileges
> >
> > We are eager to get your feedback, both good and bad, in the Google Web
> > Toolkit Developer Forum:
> http://groups.google.com/group/google-web-toolkit
> >
> > If you find specific bugs to report, please do so at the GWT Issue
> Tracker:http://code.google.com/p/google-web-toolkit/issues
> >
> > Cheers,
> > John LaBanca, on behalf of the GWT team
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: how to use a server class in client code

2009-11-16 Thread Ray
Hello,

I have my model classes inside an library on the server-side which I
want user for different applications (not only GWT)

Copying my domain classes to the client side of the GWT-Client-App
doesn't seem to be very convienient, as I have to maintain the same
code in two different locations.

Is there no way to include the library and GWT creates the client-side
java-script whith the model automatically?

Thanks
Ray


On 11 Nov., 20:58, Dominik Steiner 
wrote:
> Sanjith,
>
> you can move the model classes to anywhere under the client folder,  
> the client/domain example is just what i use here with me. And then  
> the server will reuse those classes on server side where he will read  
> the jdo annotations.
>
> Let me know if it works for you
>
> Dominik

--

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




Re: how to use a server class in client code

2009-11-16 Thread Ray
Hello,

I have my DTO (domain model) classes - which are serializeable POJOs
without annotations - inside jar files on the server, as i want to use
them not only in GWT applications.

Is there no other solution of reusing them on my GWT-client-side
without copying the source
code to the client. Because in the case of changes I don't want to
change the DTO classes at two different places (GWT-Client+Server-
api.jar)

Thanks,
Ray


On 11 Nov., 20:58, Dominik Steiner 
wrote:
> Sanjith,
>
> you can move the model classes to anywhere under the client folder,  
> the client/domain example is just what i use here with me. And then  
> the server will reuse those classes on server side where he will read  
> the jdo annotations.
>
> Let me know if it works for you
>
> Dominik

--

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




A newb needs your help with hyperlinks

2009-08-11 Thread Ray

I been assigned the task of making hyperlinks work, change color on
hovering and clicking, and being able to enable and disable the
links.  I have the color changing part working and I thought I had the
disable/enble working, but now I can not get the onClick to be
reconized.  Below is the code to extend the hyperlink so I can add the
enable/disable methods.

public class lawHyperlink extends Hyperlink implements
SourcesClickEvents, HasClickHandlers {
// define the HTML hyperlink
private Html hyperLink;
private final String str;
private static HyperlinkImpl impl = GWT.create(HyperlinkImpl.class);

public lawHyperlink(String s1, String s2) {
str = s1;
hyperLink = new Html("" + s1 + "")
{
  protected void onRender(Element target, int index) {
  super.onRender(target, index);
  el().addEventsSunk(Event.MOUSEEVENTS);
  el().addEventsSunk(Event.ONCLICK);
  }
  };

  enabled();

}  // end of lawHyperlink constructor

public Html displayHyperlink() {
return hyperLink;
}

public void disabled() {
hyperLink.removeAllListeners();
hyperLink.addStyleName("gwt-Hyperlink-disabled");
hyperLink.setStyleAttribute("color", "#E0E0DA");
} // end of disabled method

public void enabled() {
Listener listener = new Listener() {
  public void handleEvent(BaseEvent be) {
 Html h = (Html) be.getSource();
 String c = h.el().getStyleAttribute("color");
//   Info.display("Listener color before test ", c);
 c = c .equals("#ff00ff") ? "#ff" : "#FF00FF";
//   Info.display("Listener color after test ", c);
 h.setStyleAttribute("color", c);
  }};

hyperLink.addStyleName("gwt-Hyperlink");
hyperLink.setStyleAttribute("color", "#00ff00");
hyperLink.addListener(Events.OnMouseOver, listener);
hyperLink.addListener(Events.OnMouseOut, listener);

}  //end of enabled method

@Override
public HandlerRegistration addClickHandler(ClickHandler handler) {
Info.display("addClickHanler called ", "from lawHyperlink");
return addHandler(handler, ClickEvent.getType());
} // end of addClickHandler method override

@Override
public void onBrowserEvent(Event event) {
super.onBrowserEvent(event);
if (DOM.eventGetType(event) == Event.ONCLICK && 
impl.handleAsClick
(event)) {
History.newItem(getTargetHistoryToken());
DOM.eventPreventDefault(event);
}
} // end of onBrowserEvent method override


} // end of lawHyperlink class definition

I add the onClick handler in another class that puts it on a panel
that gets added to the rootPanel.

 lawHyperlink firstPage = new lawHyperlink("|< First Page",
"FirstPage");
  firstPage.addClickHandler(new ClickHandler() {
  public void onClick(ClickEvent event) {
  MessageBox.alert("onClick", "Clicked First Page", null);
  }});
  linkPanel.add(firstPage.displayHyperlink());

Everything displays fine and the trace looks good, but the onClick
event is not being reconized.  I believe I'm missing something from my
lawHyperlink class, but I have not been able to determine what.  Any
help will be greatly appreciated.

Thanks,
Ray

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



Re: GWT 1.6.4: .../war/WEB-INF/classes/log4j.properties trashed by Eclipse build

2009-05-03 Thread J Robert Ray

Things you want to live in war/WEB-INF/ you can put directly there.

Things you want to live in war/WEB-INF/classes/ you put in your src/
path. Eclipse will copy src/log4j.properties to
war/WEB-INF/classes/log4j.properties for you.

On Sat, May 2, 2009 at 8:32 PM, Allen Holub  wrote:
>
> I'd like to put the file .../war/WEB-INF/classes/log4j.properties into
> my build, but it looks as if either the GWT 1.6.4 compiler or Eclipse
> wipes out the entire classes directory as a side effect of the build
> (when I launch the app under Eclipse).  That is,  I put
> log4j.properties into .../war/WEB-INF/classes, but when I launch the
> app from Eclipse, the file magically disappears. I'm guessing that
> something is throwing away the entire classes directory during the
> rebuild.
>
> Is there any way for me either to get a properties file onto the
> classpath inside the war?
> >
>

--~--~-~--~~~---~--~~
You received 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: Login form auto-complete and GWT-RPC (or RequestBuilder), a solution!

2009-04-23 Thread J Robert Ray

Thanks. I see now that this is discussed in the GWT FAQ and I
understand why my attempt at using "this" in a callback doesn't work.


On Wed, Apr 22, 2009 at 7:17 PM, Thomas Broyer  wrote:
>
>
>
> On 21 avr, 04:21, jrray  wrote:
>>
>> This technique would be more convenient if "doLogin" wasn't a static
>> method.
>>
>> I tried to change to non-static, such as:
>>
>>    private native void injectLoginFunction() /*-{
>>       $wnd.__gwt_login = th...@com.example.myapp.client.app::doLogin
>> ();
>>    }-*/;
>
> var that = this;
> $wnd.__gwt_login = function() {
>    th...@com.example.myapp.client.app::doLogin()();
> }
>
> or change the method's signature:
> private native void injectLoginFunction(App that) /*-{
>    $wnd.__gwt_login = function() {
>        th...@com.example.myapp.client.app::doLogin()();
>    }
> }-*/;
> and call it like that:
>    injectLoginFunction(this);
>
> That's "JSNI 101" ;-)
>
>
> >
>

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



Hosted mode, restart server, classloader errors

2009-04-22 Thread J Robert Ray

I get classloader errors from (re-)loading the Oracle JDBC driver when
I attempt to "Restart Server" in hosted mode.

java.lang.UnsatisfiedLinkError: Native Library
/.../oracle/product/10.2.0.4.0/libocijdbc10.so already loaded in
another classloader

Is there something I can do to get pass this?

I'm currently adding the oracle jar to the classpath on the ant hosted target:

oracle.home: /.../oracle/product/10.2.0.4.0
oracle.jar: /.../oracle/product/10.2.0.4.0/ojdbc14.jar

  

  
  



  
  
  
  
  
  

  

ojdbc14.jar is not in war/WEB-INF/lib.

--~--~-~--~~~---~--~~
You received 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 to override style?

2009-02-26 Thread Ray

Hi,I have a CSS file which has something as follow:
a {
color: #77;
font-size: 12px;
text-decoration: none ;
}

.Login{
color:#FF
}
Now in my GWT application when I using widget Hyperlink  like:
 Hyperlink link = new Hyperlink();
 link.setText("Login");
 link.setStyleName("Login");

that link will always using color of #77 not #FF. If CSS
setting of a is necessary,how can I override it in my widget?
--~--~-~--~~~---~--~~
You received 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: JDBC postrges under gwt

2009-01-11 Thread Aka ray

Great!! Thanks to all of you!!
I will try it out soon!
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



JDBC postrges under gwt

2009-01-08 Thread Aka ray

Hello everybody.
Im new in using gwt.

Almost everything is working but when I compile my project to run it
on an external Browser, I get a ClassnotFoundException when I try to
connect to the database ( jdbc: postgres)

It works perfectly in hosted mode.

Where do I have to copy / link the file in order that the gwt shell
finds the class ?

Thanks in advance
  R.Klapfer

--~--~-~--~~~---~--~~
You received 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-contrib] Call for critical 1.6 bugs

2009-01-07 Thread Ray Cromwell

Well, my own wishlist includes Issue #1032,
http://code.google.com/p/google-web-toolkit/issues/detail?id=1032. It
only effects Maven users, and is somewhat mitigated by the GWT maven
plugin, but it is an annoyance because GWT unit tests cannot run
inside of the standard maven test harness, which impacts
down-the-chain tools like CI servers, report generators, etc.  For
example, we use TeamCity as our CI build server, which keeps
historical timeseries for each unit test, and provides graphs, even
performance regression data, but because of #1032, we have to mock out
alot of GWT and use TestCase instead of GwtTestCase. I don't know if
this will be mitigated by OOPHM or Jetty inclusion.

Java 1.6 support on OSX would be nice as well, but I assume this is
pending OOPHM and the jettisoning of SWT.

-Ray


On Wed, Jan 7, 2009 at 2:48 PM, Scott Blum  wrote:
> Hi all,
> We've narrowed down the set of bugs we'd like to fix for GWT 1.6. Our plan
> is for a very short release cycle this time, which forces us to fix only a
> small set of bugs.  Of course, we don't want to miss anything critical.
>
> Here is the current set of Critical 1.6 bugs we intend to fix:
> http://code.google.com/p/google-web-toolkit/issues/list?can=2&q=milestone:1_6_RC+-status:FixedNotReleased+priority:Critical
>
> If you know of some burning issue that we've missed, please use this thread
> to suggest bugs to add to this list, and explain why it's critically
> important.  The kinds of issues we consider to be critical include bugs that
> affect a large number of users, possible security issues, or bugs that
> cannot be worked around easily (such as GWT compiler crashes).
> Please DO NOT use this thread to debate whether any particular issue should
> be in our out.  We just want to collect a list of critical issues, and we
> will consider each suggestion individually.
> Thanks!
> Scott
>
> >
>

--~--~-~--~~~---~--~~
You received 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: Suggestion: GWT port to Desktop

2008-11-12 Thread Ray Cromwell



On Oct 29, 6:29 am, lkcl <[EMAIL PROTECTED]> wrote:
> rummikub has 110 images loaded onto the page.  firefox takes about 5-8
> seconds to add all the tokens, one-by-one with javascript (compiled
> from python of course). pyjamas-desktop, usingwebkit, takes about 2
> seconds.  the javascript is gone in pyjamas-desktop; it's a glib /
> gobject binding direct to the c++ function which adds the image to the
> DOM model, direct.

If you use GWT ImmutableResourceBundles/ClientBundles, you get the
same benefits, without the hassle, and GWT will combine multiple
images into a single image, and turn it into a data URL, eliminating
File/Network I/O, and requiring the image to be loaded and decoded
once from a data: URL.

I personally think what's being proposed sounds a little backwards to
me. It's overly complex and error prone relying too much on native
interfacing (are you telling me it's impossible to memory leak or
cause a segfault with pyjamas?). If you're going to use the browser
for rendering anyway, you may as well let the DOM get manipulated by
Javascript, which is currently quite fast in SquirrelFish, Firefox 3,
and Opera. Really, all you're doing is using an IDL call of
element.appendChild(foo) instead asking WebKit to eval
"element.appendChild(foo)"

What you really want is access to native platform features, and to run
numerically intensive code in Java, that is, you want the ability to
call Java methods from Javascript. This is what I implemented in
Syndroid (http://timepedia.blogspot.com/2008/01/project-
syndroidsynthesis-of-gwt-and.html) for Android. This is a GWT
generator/linker library that allows calls between Java/Javascript. I
demonstrated at Google I/O, the capability of developing a GWT app
that can access native Android APIs painlessly.  What's more, my own
GWT product, Chronoscope, compiles to Android natively (no Javascript)
and runs 100% in Dalvik.

There is alot of functionality that can be delivered without getting
into the overly complex and error approach of trying to expose all the
guts and internals of WebKit as JNI functions. The speedup benefit of
running the UI modification thread inside of WebKit as JS, but running
the business logic in Java, vs running everything in Java simply
doesn't justify the downsides IMHO.

-Ray

p.s. my Syndroid presentation is here, at roughly 32 minutes in:
http://www.youtube.com/watch?v=2ScPbu8ga1Q


--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Announcing GWT 1.5.3

2008-10-17 Thread Ray Ryan

Hi, all.

We have just deprecated GWT 1.5.2, and replaced it with GWT 1.5.3.
This new release has a small handful of patches, mainly aimed at
fixing RPC problems with Android. You can download the update from the
usual location:

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

You may find that this pretty page hasn't updated yet in your neck of
the woods. If so, try going straight to the download server:
http://code.google.com/p/google-web-toolkit/downloads/list.

Enjoy,
rjrjr

Release Notes for 1.5.3

Fixed Issues

 - RPC requests no longer fail on the embedded Android web browser

 - Leaf TreeItems now line up with their non-leaf siblings

 - Removing the last child node from a TreeItem no longer creates
extra margins on the left

 - HTTPRequest no longer uses POST instead of GET on some IE installs
because of incorrect XHR selection

 - Compiler now uses a more reliable check to prevent methods with
local variables from being inlined
getAbsoluteTop()/Left() can no longer return non-integral values

 - Time.valueOf() no longer fails to parse "08:00:00" or incorrectly
accepts "0xC:0xB:0xA".

--~--~-~--~~~---~--~~
You received 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: EASYMOCK or JMOCK?

2008-10-10 Thread Ray Ryan

Actually, our mocking story improved in 1.5, with the addition of
GWTMockUtilities. See that class's javadoc for a sample use with
EasyMock.

Note that this allows normal JUnit test cases to create mock instances
of GWT widgets. E.g., if you have a controller class and you want a
mock of the widget that it drives without having to incur the 20
second GWTTestCase start up penalty, this is for you.

If you need to test a widget itself, this won't help you.

Oh, and EasyMock rocks.

rjrjr

On Oct 10, 6:07 am, Ponthiaux Eric <[EMAIL PROTECTED]> wrote:
> If you have the time to "mock" your project you're lucky : ).
>
> Anyway JMock looks better .
>
> regards .
>
> Arthur Kalmenson a écrit :
>
> > This question was already asked a number of times.
>
> > For server side testing, you can use any mocking framework you want.
> > However, for client side testing of GWT specific code, you cannot use
> > either mocking frameworks since they utilize reflection. Reflection is
> > not supported on the client side for performance reasons.
>
> > Regards,
> > Arthur Kalmenson
>
> > On Oct 8, 10:02 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> >> Can you use either EASYMOCK or JMOCK for unit testing purposes? Are
> >> there any restrictions or problems?
>
> >> 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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---