GWT Eclipse Plugin 4 Problem

2023-12-11 Thread Bob Lacatena
Hey. My coworker and I ran into trouble installing the GWT plugin on 
Eclipse 2023-12 (worked fine on 2023-09, so this isn't urgent, I'm just 
letting you know).
 
A couple of weeks ago I got a new Mac, installed Eclipse 2023-09 and the 
GWT plugin, no problem.

My coworker just got a new PC (Windows 11), and got Eclipse 2023-12 (just 
released), tried to install the GWT plugin as I did, and could not.  It 
first required JustJ Adoptium OpenJDK 21.

  JustJ Adoptium OpenJDK Hotspot JRE Complete 21.0.1.v20231028-0937 
org.eclipse.justj.openjdk.hotspot.jre.full.feature.group Eclipse JustJ

After doing so, getting the GWT plugin still failed.  First it says "Cannot 
complete operation.  Computing alternate solutions, may take a while: X/15"

Then it tells you it failed, giving you a chance to select other features 
(but there is only one).

I confirmed that this also happens with 2023-12 on my Mac.

My co-worker dropped back to 2023-09 on his PC, and it installed fine.

Just an FYI.


-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/536eb3ac-b486-4e6d-8ce3-e72085dc7b5cn%40googlegroups.com.


Re: GWT - Still Active ?

2019-05-30 Thread Bob Lacatena
I just posted this elsewhere, but as this thread has more current 
responses, I'm reposing it in the hopes that someone will read it:


GWT is suffering from a very serious publicity debacle.  I'm actively doing 
GWT development, and regretting every moment of it right now.  Years ago I 
loved GWT.  Today, I'm dreading it.

My biggest problem for the past year has been the fact that unless one 
hunts for threads like this, GWT does appear to be dead.  I don't know what 
the developers are doing.  I just know there were occasional hints that 
something was coming (a year ago), with not a sound since then.

Update gwtproject.org!  Put a few news items on it a month, at least.  Let 
people know you are working.  No matter how good your work is, more and 
more developers like me are going to abandon it as time drags on.

Or create a GWT 3.0 blog.  Something.  Anything other than the black hole 
of silence you have now.

I'm also very concerned that with the rewrite, every bit of code I'm 
working on now will be useless.  GWT before 3.0, from a developer who uses 
it, was and still is a nightmare if you don't want to use every widget, as 
it exists, out of the box, because too many of the classes use private 
members and methods, making them completely impossible to extend (which, I 
believe, is sort of the point of a lot of OOP concepts).

With GWT getting old, this is becoming painful, because GWT did cool 
things, like animation and date pickers and rich text editors, by brute 
force back when that was necessary.  Now, however, HTML5 and other things 
have evolved to offer better, cleaner solutions, but often it's difficult 
to impossible to make GWT work with those solutions, because of the private 
members.

I've even gotten into vicious cycles; copy the source for class X, to be 
able to fix it, but that requites a copy of private class Y, which requires 
a copy of private class Z, and on and on until I give up.

Instead, I have to "roll my own", which takes too much effort that could be 
spend on more productive pursuits.  I'd rather use a framework with working 
widgets.

I didn't start out intending this to be a rant, but the bottom line is that 
I like GWT, I like being able to work exclusively in one language/framework 
instead of four at one time (Java + Angular + TypeScript + JQuery), but as 
a professional who is paid to make decisions that will have a decade-long 
impact on my company, I am very hard-pressed not to advise my company to 
immediately abandon all efforts using GWT.

*Put some effort into communication! * [Which should be tattooed on the 
backs of every software engineer's hands, because as a species they seem to 
be oblivious to the concept.]

I am somewhat heartened by the existence of this thread, but I can't wait 6 
months for GWT 3.0, only to find out it's not backwards compatible with 
much of our efforts, and it's lost so much popularity in the wild that it's 
considered a death-mark on one's resume.

- Bob

On Wednesday, May 29, 2019 at 8:54:05 PM UTC-4, Craig Mitchell wrote:
>
> Also, see here for more comments:  
> https://groups.google.com/forum/#!topic/Google-Web-Toolkit/-6KuZjHFD5c
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/aa688813-7e77-454e-af26-4b06ad2b1b06%40googlegroups.com.


Re: Is this project active?

2019-05-30 Thread Bob Lacatena
GWT is suffering from a very serious publicity debacle.  I'm actively doing 
GWT development, and regretting every moment of it right now.  Years ago I 
loved GWT.  Today, I'm dreading it.

My biggest problem for the past year has been the fact that unless one 
hunts for threads like this, GWT does appear to be dead.  I don't know what 
the developers are doing.  I just know there were occasional hints that 
something was coming (a year ago), with not a sound since then.

Update gwtproject.org!  Put a few news items on it a month, at least.  Let 
people know you are working.  No matter how good your work is, more and 
more developers like me are going to abandon it as time drags on.

Or create a GWT 3.0 blog.  Something.  Anything other than the black hole 
of silence you have now.

I'm also very concerned that with the rewrite, every bit of code I'm 
working on now will be useless.  GWT before 3.0, from a developer who uses 
it, was and still is a nightmare if you don't want to use every widget, as 
it exists, out of the box, because too many of the classes use private 
members and methods, making them completely impossible to extend (which, I 
believe, is sort of the point of a lot of OOP concepts).

With GWT getting old, this is becoming painful, because GWT did cool 
things, like animation and date pickers and rich text editors, by brute 
force back when that was necessary.  Now, however, HTML5 and other things 
have evolved to offer better, cleaner solutions, but often it's difficult 
to impossible to make GWT work with those solutions, because of the private 
members.

I've even gotten into vicious cycles; copy the source for class X, to be 
able to fix it, but that requites a copy of private class Y, which requires 
a copy of private class Z, and on and on until I give up.

Instead, I have to "roll my own", which takes too much effort that could be 
spend on more productive pursuits.  I'd rather use a framework with working 
widgets.

I didn't start out intending this to be a rant, but the bottom line is that 
I like GWT, I like being able to work exclusively in one language/framework 
instead of four at one time (Java + Angular + TypeScript + JQuery), but as 
a professional who is paid to make decisions that will have a decade-long 
impact on my company, I am very hard-pressed not to advise my company to 
immediately abandon all efforts using GWT.

*Put some effort into communication! * [Which should be tattooed on the 
backs of every software engineer's hands, because as a species they seem to 
be oblivious to the concept.]

I am somewhat heartened by the existence of this thread, but I can't wait 6 
months for GWT 3.0, only to find out it's not backwards compatible with 
much of our efforts, and it's lost so much popularity in the wild that it's 
considered a death-mark on one's resume.

- Bob

On Thursday, March 28, 2019 at 2:58:47 AM UTC-4, carl.hos...@gmail.com 
wrote:
>
> Hello all!  I am wondering how active this project is?  Don't see much 
> action on the releases and comments. 
>
> Another question I have is if this project is still active, when will Java 
> 11 support be released?
>
> Thanks  in advance,
>
> Carl
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/11671aa6-f1c9-44ee-a8d3-1e584d2d953d%40googlegroups.com.


Re: JsInterop: annotations not found

2017-12-03 Thread Bob Woodbury
In the bright light of morning, I can see the problem. The javac message 
tells me javac is searching my srcdir for some of the jsinterop sources. 
They are in the jar files in my class path, but not in my srcdir. I will 
experiment to find the best way to handle this.

Thanks for your help.



On Saturday, December 2, 2017 at 11:00:29 PM UTC-8, Bob Woodbury wrote:
>
> I am learning to use jsinterop, and I am stuck at square one -- javac 
> won't recognize the @JsType annotation.
>
> I'm using the jdk1.8.0_102 and apache-ant-1.10.1 and gwt-2.8.2 on Linux 
> (Fedora).
>
> My project compiles without problems until I try to add "MyClass" with the 
> @JsType annotation.
>
> I lifted the following code from the tutorial at: 
> http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJsInterop.html
>
>
> package com.webshoz.insight.client.iaol;
>
>
> import jsinterop.annotations.*;  // I have tried compiling with and 
> without this import, without success.
>
>
> @JsType
> public class MyClass {
>
>
> public String name;
>
>
> public MyClass(String name) {
> this.name = name;
> }
>
>
> public void sayHello() {
> return "Hello" + this.name;
> }
> }
>
>
>
> The relevant parts of my Ant build file are:
>
>
> 
> 
>
>
>   
> 
> 
>   
>
>
>   
>  destdir="war/WEB-INF/classes"
> source="1.8" target="1.8" nowarn="false"
> includeantruntime="false"
> debug="true" debuglevel="lines,vars,source">
>   
>   
>   
>   
>   
>   
> 
>   
>
>
>   
>  "com.google.gwt.dev.Compiler">
>   
> 
> 
>   
>   
>   
>   
>   
> 
>   
>
>
> 
>
>
> The javac compiler puts out the following:
>
> [javac] Processor com.google.web.bindery.requestfactory.apt.RfValidator 
> matches [java.lang.Override, jsinterop.annotations.JsType] and returns 
> false.
> [javac] warning: No processor claimed any of these annotations: 
> jsinterop.annotations.JsType
> [javac] [search path for source files: 
> /house/Dev/Insight/branches/IAOL/src]
>
> Can anyone tell me what I'm missing? Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


JsInterop: annotations not found

2017-12-02 Thread Bob Woodbury
I am learning to use jsinterop, and I am stuck at square one -- javac won't 
recognize the @JsType annotation.

I'm using the jdk1.8.0_102 and apache-ant-1.10.1 and gwt-2.8.2 on Linux 
(Fedora).

My project compiles without problems until I try to add "MyClass" with the 
@JsType annotation.

I lifted the following code from the tutorial at: 
http://www.gwtproject.org/doc/latest/DevGuideCodingBasicsJsInterop.html


package com.webshoz.insight.client.iaol;


import jsinterop.annotations.*;  // I have tried compiling with and without 
this import, without success.


@JsType
public class MyClass {


public String name;


public MyClass(String name) {
this.name = name;
}


public void sayHello() {
return "Hello" + this.name;
}
}



The relevant parts of my Ant build file are:






  


  


  

  
  
  
  
  
  

  


  

  


  
  
  
  
  

  





The javac compiler puts out the following:

[javac] Processor com.google.web.bindery.requestfactory.apt.RfValidator 
matches [java.lang.Override, jsinterop.annotations.JsType] and returns 
false.
[javac] warning: No processor claimed any of these annotations: 
jsinterop.annotations.JsType
[javac] [search path for source files: /house/Dev/Insight/branches/IAOL/src]

Can anyone tell me what I'm missing? Thanks!

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: SelectionCell with unique list of options for every row

2014-01-24 Thread Bob
I have been trying to do the same thing with no success. Does anyone have 
any pointers on this? I created a custom DynamicSelectionCell that lets me 
populate the list from the datagrid by overriding render. This works OK and 
I get selections with the unique values for each row OK.

However when I use the setFieldUpdater to override update the value is 
based on the very last set of options passed to the DynamicSelectionCell 
from the last row. The issue I seem to have is that the 
DynamicSelectionCell is shared for the entire column. Is there a way to 
create a unique cell per row for a column?


selectionColumn.setFieldUpdater(new FieldUpdaterVmDTO, String() {

  @Override
  public void update(int index, VmDTO vmDTO, String value) {
value here is always equals to an option set from the last row. 
  }
});


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


[gwt-contrib] Latest update to GWT plugin for Eclipse crashes Indigo

2013-12-23 Thread Bob Murrell
So I develop using Indigo. I got a message saying there was an update. 
After installing and restarting, Eclipse crashes. I tried a fresh install 
of Indigo, installing the GWT plugin from the instructions, and the same 
occurs.

Java 1.7, Mac OSX 10.8.5

To reproduce:

1) Install Indigo
2) Follow GWT plugin instructions for Indigo
3) After installation, restart Indigo - it crashes.

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


[ERROR] 500 - MySQL Hibernate

2013-08-29 Thread Bob Spero
I have a basic Java project that I created to connect to a mysql data base 
and uses Hibernate. So I have a method that does a sysout to the console of 
the query results. I copied everything to a GWT project with the example 
code and put on the server side put in the method that prints the results 
to the console. The constructor looks like 
ManageEmployee me = new ManageEmployee();
me.main();

I am just trying to get a feel on dB connections with GWT and can not 
figure it out.

What am I missing here?

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


Inheriting a required module [Error] - Trying to get an understanding

2013-08-26 Thread Bob Spero
I have a GWT project where I created a folder named common for shared 
tasks. I tried a simple public static void testme() method doing a system 
out print line to see if it fires. 

When running I getting: 

[ERROR] [org.dash.board.Main] - Line 40: No source code is available for 
type org.dash.board.common.OutterClass; did you forget to inherit a 
required module?

I added to the gwt.xml:

inherits name=org.dash.board/ 

resulting in 
[ERROR] Unable to find 'org/dash/board.gwt.xml'

Only when I add the below does the system out print line fire. I guess my 
question is why does the compiler complain about inheritance when the fix 
is not inheriting anything? 

  source path='client'/
  source path='common'/


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


Proper Project Layout and CSS practices

2013-08-12 Thread Bob Spero
When creating a GWT project the CSS is associated with the entry point from 
the wizard. Is the proper framework to have a CSS file for every class that 
is a UI entry point or composite?

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




Basic Understanding of the role Request Factory RPC rpc play

2013-07-07 Thread Bob Spero
I am developing the basic understanding of hibernate and i want to know the 
roles that rpc and rf play. I want to make sure i am follwing, if i have a java 
hibernate project that i am converting to gwt project where i want the server 
side implementation to make the database connection and have the context 
session make the db connection so there is only one database connection and not 
evey client to make their own db connection. Right there in that i want to do 
it through the context session it does not apply to rpb, correct? Any other 
info would greatly be apprecitaed. 

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




Adding data to from arry to create list data in widgets [list, cobmo, flex, etc]

2013-07-06 Thread Bob Spero
I want to test the following code to get a better understanding of how to add 
an array to a widget. In loking at code i can see how to add a list item. But 
to add days to a list or cobmo widget do you need to go through the list one at 
a time with a for or while method or is there somthing like 
listboxDays.listsource = days? Gwt is really a great technologhy but there is a 
big curve coming from a  .net and ms access world. My problem is i know how to 
mine the data but displaying is another story

private static final ListString DAYS = Arrays.asList(Sunday, Monday, 
Tuesday, Wednesday, Thursday, Friday, Saturday);

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




Re: Adding data to from arry to create list data in widgets [list, cobmo, flex, etc]

2013-07-06 Thread Bob Spero
Are you saying the array can be handeled as an item ?

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




Re: Killing myself for a good database example GWT Combo and Listbox

2013-07-04 Thread Bob Spero


 Looking at the stock watch example it is helpful, love open source but it 
 makes things so hard because there are so many solutions to choose from.


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




Requestfactort To Existing MSSql Database Example

2013-07-04 Thread Bob Spero
I have been doing some reading finding that RequestFactory may be a good 
solution for me. I would like to connect to an existing MSSql database but 
can not find any good step by step example like a StockWatcher example. 
Does anyone have any good resources because a lot of the documentation I 
find assumes there is not an existing database.
 
Thankss

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




Listbox addItem from sql database from select statement

2013-07-03 Thread Bob Spero
I have a gwt app that I am working on, on the root panel I have a combo box 
and a list box. I want to populate the list box based on the selection from 
the combo box. Example would be select first name, last name where id = 
empComboBox.value
 
How can this be accomplished???

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




Killing myself for a good database example GWT Combo and Listbox

2013-07-03 Thread Bob Spero
I can really use some direction, I worked all day on this and made little 
progress. I have a GWT application that has a combo box and list box, I 
want the selection of the combo box to load values from my MSSql server 
2008 box, I want my list box to populate the value based on the selected 
value of the combo box so I can select the values as select from emp where 
id = gwt_cobmo_box. But I keep veering off because you search and you go 
down the session factory, hibernate, etc...
 
I would love to use hibernate to allow for growth, I have tried so many 
tutorials any sample code or good web site would be so much appreciated.
 
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/groups/opt_out.




Have server open web location to client

2013-06-20 Thread Bob Spero
I do not even know where to begin here so any help would be great!
 
I have a GWT application hosted in a private network, users come into my 
application from a NATéd IP.  The server that hosts my application has 
access to IP addresses that my users do not have access too. There is a 
text box where users can enter an IP address of one of the servers on the 
host network side, so I want the client package to take the IP send it to 
my sever package and have the server load a website from one of the IPs 
that the users do not have access too. Where do I start? 

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




WYSIWYG w/ GWT Suggestions

2013-06-09 Thread Bob Spero
I am just starting out with this so baer with me!

What does the avg user use to create the graphical user interface for a form? 
Coming from the VB world it was really not much you had to put thought into. 
Now I would like to convert one of my VB applications into a web application. 
What can i use for the form desing? Windows builder pro seems the oviouse 
choice but there is not much out there that takes you step by step!

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Private versus Protected definitions

2013-02-14 Thread Bob Lacatena
Okay, I can't emphasize how important this is, because GWT is not perfect, 
and it needs fixing from time to time.  I just wasted two days on just such 
a problem.

I don't understand your argument that the implementation would become 
locked down because changing methods from private to protected is opening 
it up, not locking it down.  Can you give an example of what you mean?  How 
can this possibly break existing code (barring a name conflict -- in which 
case you should create new classes, created the right way, so that new 
projects can use them without damaging the old projects)?

I can give you the example of what I just ran into.  I have a page with a 
date range for a search (for which I use two date boxes), among other 
criteria.  Whenever any criteria changes I want to highlight the search 
button, to show that it needs to be pressed (or, alternately, I could fire 
the search automatically).

This works fine when the user uses the GUI DatePicker, because it fires a 
ValueChangedEvent.  But keystrokes do not.. they trigger the (private) 
updateDateFromTextBox() method, which in turn triggers the (private) 
setValue(Date oldDate, Date date, boolean fireEvents) method.  Because 
these are private, I can't override them.  I also attempted to simply list 
for the fairly basic DateChangeEvent class, and was blocked because that 
entire class is private.

[Listen for key events?  Nope, sorry, the internal box field is private, so 
we can't attach a listener to that, and DateBox doesn't expose it's own 
listener for access.]

So... my only resolution was to do the worst possible thing 
(breaking-code-wise) and to copy the GWT DateBox and DateChangeEvent 
classes, creating my own versions where I change the private methods to 
protected, and am then able to override them as necessary (in this case, 
overriding updateDateFromTextBox() to first call 
super.updateDateFromTextBox(), and then to trigger an onValueChange 
event/method.  This sort of subterfuge is infuriating to have to wind one's 
way into.  And if you make any fixes or changes to those classes, the code 
cannot take advantage of them... and the fact that this has even been done 
is buried in the javadoc for those classes (although at least I added it in 
bold caps).

I've also run into other cases where even this brute-force-and-dreaded 
solution to a simple problem just is not possible, where key components in 
the class ancestry are private and the complex evolution from BasicThingy 
to UsefulThingy is too convoluted to overcome.

The easy answer?  Make the updateDateFromTextBox() method trigger a value 
changed event.  

But longer term?  Recognize that Google makes mistakes from time to time, 
and use protected methods so that competent programmers can overcome your 
mistakes without juggling hand-grenades.


On Friday, February 17, 2012 1:06:02 PM UTC-5, Tony Edgin wrote:

 I can understand your frustration, but moving most implementation
 details of library to its interface would put a chokehold on the
 library's development.  Most of the implementation would become locked
 down for fear of breaking client code.

 I know its painful, but if you need access to a field or a private
 method of a class, first reconsider your design.  You are attempting
 to use the class in a way the designer of the class didn't intend.
 After reconsidering your design.  If you still think the class's
 interface needs to be extended, put in a change request.  Then the
 designer of the class can see if it makes sense to have in the
 internal functionality exposed through the class's interface.

 On Thu, Feb 16, 2012 at 07:28, Bob Lacatena b...@lacatena.netjavascript: 
 wrote:
  I invariably find that GWT doesn't do exactly what I need.  Too often,
  however, I'm frustrated in my efforts to extend a class because too
  many elements or methods are private (rather than protected) and such
  private fields are not even exposed by getters and setters.
 
  Please go through all of your code and change private to
  protected.  In the rare case where you really don't want someone
  touching something (e.g. deprecated methods) that's fine, but think
  ten times about having a private field without a getter/setter, or a
  private method of any sort.  Such a situation should be very, very
  rare in a toolkit that's meant to be extensible, and is obviously
  limited in functionality and absolutely will require that the
  programmer roll up his sleeves.
 
  --
  You received this message because you are subscribed to the Google 
 Groups Google Web Toolkit group.
  To post to this group, send email to 
  google-we...@googlegroups.comjavascript:
 .
  To unsubscribe from this group, send email to 
 google-web-toolkit+unsubscr...@googlegroups.com javascript:.
  For more options, visit this group at 
 http://groups.google.com/group/google-web-toolkit?hl=en.
 

 -- 
 Tony Edgin
 Software Architecture and Design Leader
 LBT Observatory
 933 N. Cherry Ave., Tucson AZ 85721

Re: Private versus Protected definitions

2013-02-14 Thread Bob Lacatena
To further clarify, the problem in DateBox occurs more specifically not on 
a date change to a new date, but when using the keyboard to blank out a 
date.  Neither the keystroke nor the blur event on the text box fire a 
value change event, but the value of the date for the box *is* set to null.

On Thursday, February 16, 2012 9:28:32 AM UTC-5, Bob Lacatena wrote:

 I invariably find that GWT doesn't do exactly what I need.  Too often, 
 however, I'm frustrated in my efforts to extend a class because too 
 many elements or methods are private (rather than protected) and such 
 private fields are not even exposed by getters and setters. 

 Please go through all of your code and change private to 
 protected.  In the rare case where you really don't want someone 
 touching something (e.g. deprecated methods) that's fine, but think 
 ten times about having a private field without a getter/setter, or a 
 private method of any sort.  Such a situation should be very, very 
 rare in a toolkit that's meant to be extensible, and is obviously 
 limited in functionality and absolutely will require that the 
 programmer roll up his sleeves.

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




ExternalTextResource Feature Request (or Bug?)

2012-03-12 Thread Bob Lacatena
Unless I'm missing something...

I'd like to be able to specify the file encoding on an
ExternalTextResource in a client bundle.  I'm writing an international
app, and diacritics and such come out correctly for a synchronous
read / TextResource (as long as I save the file as UTF-8 encoded) but
not for an asynchronous read.

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



Private versus Protected definitions

2012-02-16 Thread Bob Lacatena
I invariably find that GWT doesn't do exactly what I need.  Too often,
however, I'm frustrated in my efforts to extend a class because too
many elements or methods are private (rather than protected) and such
private fields are not even exposed by getters and setters.

Please go through all of your code and change private to
protected.  In the rare case where you really don't want someone
touching something (e.g. deprecated methods) that's fine, but think
ten times about having a private field without a getter/setter, or a
private method of any sort.  Such a situation should be very, very
rare in a toolkit that's meant to be extensible, and is obviously
limited in functionality and absolutely will require that the
programmer roll up his sleeves.

-- 
You received 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: DataGrid and EditTextCell not working properly on blur in IE

2012-02-02 Thread Bob
I had the same problem. During development i have tested in Chrome and 
Safari (on iPad) and all works perfectly. I almost finish development and 
try application in IE but DataGrid is not working properly. I 
was disappointed due the IE still has about 40% market share, and 
I supposed for application to be fully approachable. Is there any solution 
for this. 
Maybe we should send a email to Google GWT team.

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



In ListBox, how to you format first item Select... to italic and gray?

2011-06-30 Thread Bob
In ListBox, how to you format *Select*... to italic and gray?

GWT 2.3, still learning...
It is standard to have select visibile in the drop down box in italic and 
grayed out a bit.  I presume Select is simply the first item added.
   myrListBox.addItem(Select...);
with other real  items after that added.

but I don't see how to format the word select.  You cannot attach at CSS to 
an added item (that I can see).

Any ideas?
Thanks!
Make it a great day!
bob

-- 
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/-/qB62FoY9KUsJ.
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: Don't follow how to put toolbar in RichTextAra

2011-06-27 Thread Bob
Thanks!  I will give it a try!  Bob

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



Mac terminal, getting a Permission Denied for webAppCreator

2011-06-25 Thread Bob
In Mac terminal, i am getting a Permission Denied when I try to run 
webAppCreator (part of Google Web Tool Kit).  This is used to create starter 
applications for tutorials.  I am accessing the correct file in the correct 
folder.

Any ideas?

Thanks!

Bob

-- 
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/-/w7NSgsfMOiIJ.
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 add JUnit testing to an existing project in eclipse.

2011-06-25 Thread Bob
When you create a new GWT web project in eclipse, and generate starting code 
automatically, it does not generate JUnit testing code to be able to add 
test cases.  How do you add this?

I have been trying to get this done with webAppCreator, but always get 
permission denied.

Any ideas?

thanks
bob

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



font-size: does not work for GWT button and flextable

2011-06-24 Thread Bob
How do you change the font size in a GWT Button or a GWT Flextable?

The standard CSS of
font-size: 150%; does not work, but
color: red; does work.

Also, font-family does not work for flexible (but does for button)

I am new to GWT.

thanks
Bob

-- 
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/-/bkOmJmZin-sJ.
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.



Don't follow how to put toolbar in RichTextAra

2011-06-24 Thread Bob
 

I am able to get RichTextArea working with no tool bars (not to hard).

The showcase source indicates the following line: 

RichTextToolbar toolbar = *new* RichTextToolbar(taskRichTextArea);

I don't see that RichTextToolbar can be imported via eclipse like RichText 
Area can.

So, I am stuck.  How do you create toolbars in a Rich Text Area?

Any tutorials on this, using GWT 2.3 would be great.  I am new to this.

Thanks

Bob

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



StockWatcher - reading the error in Junit test Eclipse Failure Trace

2011-06-07 Thread Bob
http://code.google.com/webtoolkit/doc/latest/tutorial/JUnit.html

On the Junit testing part of StockWatcher tutorial.

As instructed, I have introduced the bug indicated and the test case fail. 
 But, I don't follow how to read the Eclipse Failure Trace (lower left 
corner of IDE).  Specifically, from the failure trace, I don't see how to 
identify the line in code that failed.

You would think it would give a line number or you could double click on it 
in the trace and it would show you the line that failed, but I don't see it.

Can someone direct to a URL or something that would explain how to read it?

Thanks in advance.
bob

-- 
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/-/Y0VuSnBYTzlZT2dK.
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: JUnitCreator not found

2011-06-07 Thread Bob
Ok, my bad, it looks like in 2+ it is part of webAppCreator.

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



Rewriting a JUnit test suite from JUnit 3 to JUnit 4

2011-06-07 Thread Bob
http://code.google.com/webtoolkit/doc/latest/DevGuideTesting.html#DevGuideJUnitCreation

Section: Combining TestCase classes into a TestSuite.

I am new to this!!!  I am upgrading the StockWatcher tutorial to junit  4 
(that all went fine).  I want to add a test suite, like below.  I believe 
below is written for Junit 3, and I would like to see it written for junit 4 
(I have tried, but cannot get it to work).  I realize below is not part of 
the stockwatcher tutorial, just trying to add a test suite for learning 
purposes.  Comments on the JUnit 4 code would be helpful too.

Thanks!
Bob

public class MapsTestSuite extends GWTTestSuite {
  public static Test suite() {
TestSuite suite = new TestSuite(Test for a Maps Application);
suite.addTestSuite(MapTest.class); 
suite.addTestSuite(EventTest.class);
suite.addTestSuite(CopyTest.class);
return suite;
  }
}

-- 
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/-/RWViSEtfTDI3S2NK.
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: StockWatcher javascript compile does not open browser

2011-05-28 Thread Bob
Thanks...yes, I am using gwt 2.3, but yes I was doing the gwt 1.6 
stockwatcher tutorial...dumb...thanks for clearing this up!!

-- 
You received 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: What is the difference between GWT Designer and Windows Builder Pro?

2011-05-28 Thread Bob
Perfect answer, thanks again!

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



GWT Designer was not able to show the GUI...

2011-05-28 Thread Bob
New to GWT on mac osx using eclipse

I have now gone through two tutorials (Stockwatcher and Login Manager) for 
GWT Designer.  In both tutorials, GWT Designer crashed without warning with 
the following:

GWT Designer was not able to show the GUI...

I have googled the error, without much luck.  Not knowing how to fix this 
problem, it essentially disabled GWT Designer permanently for that 
application...which, of course, would be unacceptable while working on a 
real program.

Any suggestions?  I have reinstalled eclipse, GWT and GWT Designer twice, 
but that did not fix the problem.

thanks
bob

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



What is the difference between GWT Designer and Windows Builder Pro?

2011-05-27 Thread Bob
What is the difference between GWT Designer and Windows Builder Pro?  Both 
are available from the Eclipse project pane.

Which should I use?  I am new and learning GWT.

Thanks
bob

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



JUnitCreator not found

2011-05-26 Thread Bob
On Mac OSX, new to GWT, working through tutorials.

I don't understand where JUnitCreator creator is...I cannot find it 
anywhere, as if i did not install with GWT 2.3 with Eclipse.

It looks like (from the web) it should be installed in something like:

/Applications/eclipse/plugins/com.google.gwt.junit.tools.JUnitCreator

but there is no such .junit. folder.  I have Junit 3 and 4 installed.

Any ideas?
thanks
bob

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



StockWatcher javascript compile does not open browser

2011-05-25 Thread Bob
I am working my way through the STockWatcher tutorial at
http://code.google.com/webtoolkit/doc/1.6/tutorial/compile.html

but have a problem at this section: 2. testing in web mode

Everything works fine in host mode, but the instructions say when you 
compile to JavaScript (the red tool box with a G on it icon), after it 
successfully compiles, and browser window will open.  The browser window is 
not opening.

I checked under PreferencesGeneralWeb browser, both internal and external 
set to chrome, and it seems to be fine.

Any ideas?  I am on a MAc

Thanks
bob

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



Null pointer exception while calling RootPanel cancelBtnPanel = RootPanel.get(Btn1);

2011-05-23 Thread Bob
Hi,

I am new to GWT, stuck with a basic problem.

I have 2 html pages, my first page is index.html ( which is a static
page ) and my second page is register.html page which is partly static
and I am trying to create the buttons using GWT.

In my register.html, I have defined a table and 2 tds with ids. and
for those Ids I am trying to create 2 buttons.

but when my index.html files renders on the browser, its complaining
that the ids on the second page are not found...

can somebody help me on this, how should I load the GWT classes
conditionally..

thanks,
Bob

-- 
You received 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: Application works locally, but not from remote server?

2011-04-29 Thread Bob Wirka
Karl,

The application is under the root, too; so you can go to
http://www.rtcworks.com/TestModule.html and see it working.

Bob

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser karld...@gmail.com wrote:

 Bob,

 Does your hosting service provide Tomcat or something similar? The HTML
 won't just work by itself unfortunately.

 I can try to help you more but I need more information.

 Karl

 On Thu, Apr 28, 2011 at 1:32 PM, BobWirka bobwi...@gmail.com wrote:

 I've created a GWT Java Application from the wizard (the one with the
 Click Me! button). It compiles, and if I open the html file from
 Firefox, all is good; the button appears as does the popup dialog box
 when the button is clicked.

 However, when the files are ftp'd to my web hosting service the button
 does not appear. The web page is found and loaded, but the GWT button
 does not display.

 Windows Internet Explorer behaves the same way.

 Google Chrome will not even display the button locally, though the
 page does load.

 There are no elements in the html body, as I'd like to generate a
 purely javaScript html element to be a part of a larger html page.

 Would anyone know why this may be happening? I've transferred the
 whole war directory to the web host, but no luck yet.

 Thanks,

 Bob Wirka

 --

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


-- 
You received 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: Application works locally, but not from remote server?

2011-04-29 Thread Bob Wirka
Karl,

Don't mean to pester, but interestingly the subdirectory setup works on one
of my local machines running Boa (a small web server).

So, *some* web servers can handle the subfolder location.

Thanks again,

Bob

On Thu, Apr 28, 2011 at 5:56 PM, Karl Meiser karld...@gmail.com wrote:

 Bob,

 Does your hosting service provide Tomcat or something similar? The HTML
 won't just work by itself unfortunately.

 I can try to help you more but I need more information.

 Karl

 On Thu, Apr 28, 2011 at 1:32 PM, BobWirka bobwi...@gmail.com wrote:

 I've created a GWT Java Application from the wizard (the one with the
 Click Me! button). It compiles, and if I open the html file from
 Firefox, all is good; the button appears as does the popup dialog box
 when the button is clicked.

 However, when the files are ftp'd to my web hosting service the button
 does not appear. The web page is found and loaded, but the GWT button
 does not display.

 Windows Internet Explorer behaves the same way.

 Google Chrome will not even display the button locally, though the
 page does load.

 There are no elements in the html body, as I'd like to generate a
 purely javaScript html element to be a part of a larger html page.

 Would anyone know why this may be happening? I've transferred the
 whole war directory to the web host, but no luck yet.

 Thanks,

 Bob Wirka

 --

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


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



Calling server-side rpc method from server-side code

2011-04-15 Thread Bob
I have a bit of an unusual need.  I have a server-side method which is
normally called from the client via GWT-RPC but I now want to call it
from server-side code.

How do I do this?

I could make a static version of the method and have the rpc-
accessible-method just wrap the static method...but alas, all the
methods that the static method would need must also be static.  kudzu
being kudzu...this is a difficult (and messy)  refactoring.

I'm bouncing this question off the grand-masters in this group to see
if there is yet a cleaner and simpler solution to my query.

Any help would be very much appreciated.

Thank you!!

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



Web application starter project send button missing

2011-04-13 Thread Bob
I am following the instructions at 
http://code.google.com/webtoolkit/usingeclipse.html#deploying, Run Locally 
in Development Mode…

...when displaying the web application starter project, there is nothing 
under Please Enter Your Name (there should be a field and a send button) in 
Chrome or FF browsers on Mac osx.  Every now and then, they do appear (not 
sure what the difference it).

They always appear properly in the GAE on appspot.com.

It makes me very nervous if the Run Locally in Development Mode doesn't work 
as expected by google's own demo app.

Any ideas?
Thanks
bob

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



No App Identifier is available

2011-03-28 Thread Bob
Trying to follow the instructions at 
http://code.google.com/webtoolkit/usingeclipse.html the last part, deploy to 
google app engine.

I am an absolute newbe to GWT.

Everything has worked fine up to here.  But I cannot get an application 
identifier.  Regardless of what i put in at 
https://appengine.google.com/start/createapp.do (got there by clicking on 
App Engine Administrative Console link in instructions above) in the 
Application Identifier field, it comes back and says that identifier is not 
available.  I have tried very long random strings of numbers, everything.  

So I am stuck.  Any ideas?

Thanks,
Bob 

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



Embeding GWT app in another site without iFrame

2011-02-23 Thread Bob Graton
Hello,

I have my demo GWT app  running fine at : http://site1.com/
Inside my Html Host file on this site I load the GWT app with:
script type=text/javascript language=javascript src=myapp1/
myapp1.nocache.js/script
Work fine.

I would like to embeded this App on another site 'http://site2.com'
without iFrame.
The new HTML page on site2.com tries to load the GWT js file from site
1 like this.

script type=text/javascript language=javascript src=http://
site1.com/myapp1/myapp1.nocache.js/script

This technique should not be restricted to Cross-site-scripting and
SoP.

The code is loaded but then I get the following JS Error:

Permission refusée à http://site1.com d'obtenir la propriété
Window.myhvgwt1 de http://site2.com.
http://site1.com/myapp1/82F202B9CDA2AEB236F4E6F6C9C1A8ED.cache.html
Line 775

Any Idea ?

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



[gwt-contrib] Re: Fixes issue http://code.google.com/p/google-web-toolkit/issues/detail?id=5578 (issue1098801)

2010-11-11 Thread bob


http://gwt-code-reviews.appspot.com/1098801/diff/1/2
File user/src/com/google/gwt/requestfactory/server/Logging.java (right):

http://gwt-code-reviews.appspot.com/1098801/diff/1/2#newcode45
user/src/com/google/gwt/requestfactory/server/Logging.java:45: // by the
deobfuscation code.
Make this a block comment while you're in the area.

http://gwt-code-reviews.appspot.com/1098801/diff/1/4
File user/src/com/google/gwt/requestfactory/server/UserInformation.java
(right):

http://gwt-code-reviews.appspot.com/1098801/diff/1/4#newcode26
user/src/com/google/gwt/requestfactory/server/UserInformation.java:26:
new ThreadLocalUserInformation();
Add a comment explaining why thread re-use won't cause old user
information to be associated with the current request.

http://gwt-code-reviews.appspot.com/1098801/diff/1/6
File
user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java
(right):

http://gwt-code-reviews.appspot.com/1098801/diff/1/6#newcode751
user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java:751:
String logRecordJson = new StringBuilder({).append(\level\:
\ALL\, )
Do you have time to convert the logging stuff to AutoBeans?

http://gwt-code-reviews.appspot.com/1098801/diff/1/6#newcode2011
user/test/com/google/gwt/requestfactory/client/RequestFactoryTest.java:2011:
EntityProxyIdUserInformationProxy stableId =
(EntityProxyIdUserInformationProxy) getResponse.stableId();
This test is going to break when UIP is made into a value object, since
it will no longer have a stableId().

http://gwt-code-reviews.appspot.com/1098801/diff/1/7
File
user/test/com/google/gwt/requestfactory/client/RequestFactoryTestBase.java
(right):

http://gwt-code-reviews.appspot.com/1098801/diff/1/7#newcode23
user/test/com/google/gwt/requestfactory/client/RequestFactoryTestBase.java:23:
import com.google.gwt.requestfactory.server.UserInformationSimpleImpl;
Unused imports?

http://gwt-code-reviews.appspot.com/1098801/diff/1/10
File
user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java
(right):

http://gwt-code-reviews.appspot.com/1098801/diff/1/10#newcode30
user/test/com/google/gwt/requestfactory/shared/SimpleRequestFactory.java:30:
LoggingRequest loggingRequest();
Sort order.

http://gwt-code-reviews.appspot.com/1098801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


[gwt-contrib] Re: Checkpoint patch on the way to making samples/expenses bookmarkable via (issue1013801)

2010-10-18 Thread bob


http://gwt-code-reviews.appspot.com/1013801/diff/1/2
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/ExpensesCommon.gwt.xml
(right):

http://gwt-code-reviews.appspot.com/1013801/diff/1/2#newcode18
samples/expenses/src/main/java/com/google/gwt/sample/expenses/ExpensesCommon.gwt.xml:18:
inherits name='com.google.gwt.logging.Logging'/
Too verbose.

http://gwt-code-reviews.appspot.com/1013801/diff/1/3
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/Approval.java
(right):

http://gwt-code-reviews.appspot.com/1013801/diff/1/3#newcode1
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/Approval.java:1:
package com.google.gwt.sample.expenses.client;
Copyright.

http://gwt-code-reviews.appspot.com/1013801/diff/1/8
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java
(right):

http://gwt-code-reviews.appspot.com/1013801/diff/1/8#newcode42
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java:42:
* TODO: This belongs on the server, probably as an entity
Move to an interface in a shared package?

http://gwt-code-reviews.appspot.com/1013801/diff/1/8#newcode53
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java:53:
private final PlaceController placeController;
Sort fields?

http://gwt-code-reviews.appspot.com/1013801/diff/1/8#newcode68
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java:68:
public void run(HasWidgets root) {
doc

http://gwt-code-reviews.appspot.com/1013801/diff/1/8#newcode69
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java:69:
GWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {
Wouldn't it make sense for the logging onModuleLoad() to install this if
one is not already set?

http://gwt-code-reviews.appspot.com/1013801/diff/1/8#newcode114
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java:114:
// happen onLoad
block comment.

http://gwt-code-reviews.appspot.com/1013801/diff/1/8#newcode118
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ExpensesApp.java:118:
/* Browser history integration */
Single-line comment

http://gwt-code-reviews.appspot.com/1013801/diff/1/19
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ioc/Factory.java
(right):

http://gwt-code-reviews.appspot.com/1013801/diff/1/19#newcode37
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/ioc/Factory.java:37:
public class Factory {
DTRF needs this, too.

http://gwt-code-reviews.appspot.com/1013801/diff/1/24
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/place/ExpensesPlaceHistoryMapper.java
(right):

http://gwt-code-reviews.appspot.com/1013801/diff/1/24#newcode1
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/place/ExpensesPlaceHistoryMapper.java:1:
package com.google.gwt.sample.expenses.client.place;
Copyright.

http://gwt-code-reviews.appspot.com/1013801/diff/1/33
File
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/place/ReportListPlace.java
(right):

http://gwt-code-reviews.appspot.com/1013801/diff/1/33#newcode32
samples/expenses/src/main/java/com/google/gwt/sample/expenses/client/place/ReportListPlace.java:32:
* Tokenizer.
Isn't it?

http://gwt-code-reviews.appspot.com/1013801/show

--
http://groups.google.com/group/Google-Web-Toolkit-Contributors


Re: Resizing of Frame within a SplitLayoutPanel

2010-08-25 Thread Bob Woodbury
Follow up:

The problem is that when dragging the splitter, the mouse cursor gets
ahead of the splitter and finds itself over the Frame. Once over the
Frame, all events appear to go to the browser frame, and resizing
stops until the cursor is moved outside the Frame.

I've tested with Firefox, IE8, Google Chrome, and Opera, and they all
show the problem except Opera. Surprisingly, the drag action in Opera
is so fast that the mouse cursor never leaves the splitter -- the
splitter always keeps up with the mouse.

I have a partial work-around. I put a 20px buffer zone (SimplePanel)
between the splitter and the Frame. This way, when the mouse cursor
gets ahead of the splitter, it finds itself over the buffer zone, not
the Frame (as long as I don't drag too fast), and resizing continues.

Is there a way to keep the mouse events flowing to the splitter even
when the mouse cursor gets ahead of the splitter and over the Frame?

Thanks!

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



Resizing of Frame within a SplitLayoutPanel

2010-08-24 Thread Bob Woodbury
I am trying to have a Frame inside a SplitLayoutPanel. The left side
of the SplitLayoutPanel contains a simple widget such as a
SimplePanel. The Frame goes in the right of the SplitLayoutPanel.

I have it working, but with a serious problem: when I drag the
splitter to the right (so that the mouse cursor moves over the Frame
as the splitter tries to keep up), the resizing action stops.

In the example code (below) I added a header panel above the Frame.
When I click on the splitter and drag the mouse cursor up and to the
right, so it hovers over the header panel rather than over the Frame
itself, the resizing works perfectly.

Can anyone give me a clue about having a Frame resize properly within
a SplitLayoutPanel?

Thanks!


import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Frame;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.SplitLayoutPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.dom.client.Style.Unit;

public class Problem implements EntryPoint
{
  public void onModuleLoad()
  {
DockLayoutPanel mainPanel = new DockLayoutPanel(Unit.EM);
SplitLayoutPanel splitPanel = new SplitLayoutPanel();

SimplePanel westPanel = new SimplePanel();
DOM.setStyleAttribute(westPanel.getElement(), backgroundColor,
red);

Frame frame = new Frame(http://www.google.com/;);
frame.setWidth(100%);
frame.setHeight(100%);

splitPanel.addWest(westPanel, 200);
splitPanel.add(frame);

SimplePanel headerPanel = new SimplePanel();
DOM.setStyleAttribute(headerPanel.getElement(), backgroundColor,
yellow);
SimplePanel footerPanel = new SimplePanel();
DOM.setStyleAttribute(footerPanel.getElement(), backgroundColor,
green);
mainPanel.addNorth(headerPanel, 8);
mainPanel.addSouth(footerPanel, 5);
mainPanel.add(splitPanel);

RootLayoutPanel.get().add(mainPanel);
  }
}

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



Root Panel

2010-06-04 Thread bob
hi i have created Ui using rootpanel ,nut i have some problem using
rootpanel i want use other than rootpanel is it possible to create ui
with out using rootpanel.plz help me in get rid of this.

Thanks Regards
   bobby

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



Re: Sever Degradation in peformance from pre-2.0

2010-02-23 Thread Bob Rozelle
After some digging, I found I had some lazy coding when working with
JSON objects, I was just getting the value inside a try...catch.  with
the catch supplying a default on a failed try.  This was very fast in
GWT 1.7.1, but slow in GWT 2.0 (very slow).  Recoded to do explicit
checking rather than the try...catch and performance is back up to
pre-2.0 (might be better).


On Feb 21, 11:50 pm, Bob Rozelle broze...@eatlocalfood.com wrote:
 I am seeing a sever degradation in performance after moving to GWT
 2.02 from pre-2.0.  This is happening both in development and compiled
 mode.  I am running on Ubuntu 9.10 64-bit.  Pre 2.0 compiled code will
 run and bring up my first page in about 3 seconds.  In 2.02 it takes
 over 20 seconds with no code change.

 Any ideas on how to move forward on recovering this lost performance
 would be appreciated.

 Regards

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



Sever Degradation in peformance from pre-2.0

2010-02-21 Thread Bob Rozelle
I am seeing a sever degradation in performance after moving to GWT
2.02 from pre-2.0.  This is happening both in development and compiled
mode.  I am running on Ubuntu 9.10 64-bit.  Pre 2.0 compiled code will
run and bring up my first page in about 3 seconds.  In 2.02 it takes
over 20 seconds with no code change.

Any ideas on how to move forward on recovering this lost performance
would be appreciated.

Regards

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



Re: using ClientBundle for a themeable image set

2010-02-04 Thread Bob
Nobody? :-(

On Feb 3, 10:40 am, Bob holom...@gmail.com wrote:
 Hi,

 I have a set of static objects which are retrieved from the server and
 rendered in a custom widget on the client.  Each of these objects has
 an image associated with it.  I want these images to be themeable,
 such that the entire set of images used for these objects can be
 swapped out.  For example, say there is a Cat object and a Dog object,
 and there is a 'domestic' theme and a 'wild' theme.   The theme is a
 user option.  If the wild theme is selected, the images should be a
 cheetah and a dingo.  With the domestic theme they would be a calico
 cat and a golden retriever.

 My thought was that I could distribute these image themes as
 ClientBundles.  So I implemented something like this:

 public interface ImageTheme {
     ImageResource cat();
     ImageResource dog();

 }

 public interface WildImageTheme extends ClientBundle, ImageTheme {
     @Source(cheetah.jpg)
     ImageResource cat();

     @Source(dingo.jpg)
     ImageResource dog();

 }

 public interface DomesticImageTheme extends ClientBundle, ImageTheme {
     @Source(calico.jpg)
     ImageResource cat();

     @Source(golden-retriever.jpg)
     ImageResource dog();

 }

 But then I end up needing some ugly and hard-to-maintain binding code
 on the client like this:

 public static ImageTheme CURRENT_THEME = (ImageTheme) GWT.create
 (DomesticImageTheme.class)

 public ImageResource getImageResource(String animalName) {
     if (Cat.equals(animalName)) {
         return CURRENT_THEME.cat();
     } else if (Dog.equals(animalName)) {
         return CURRENT_THEME.dog();
     }
     [...]

 }

 If it were available to me, I could use reflection to bind the animal
 names to matching method names, but obviously it isn't.  Deferred
 binding is described as GWT's answer to reflection, but does it fit
 here?  Is my ClientBundle as theme pack paradigm flawed?  Does anyone
 have a suggestion for a better way to accomplish this?

 Thanks,
 Bob

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



using ClientBundle for a themeable image set

2010-02-03 Thread Bob
Hi,

I have a set of static objects which are retrieved from the server and
rendered in a custom widget on the client.  Each of these objects has
an image associated with it.  I want these images to be themeable,
such that the entire set of images used for these objects can be
swapped out.  For example, say there is a Cat object and a Dog object,
and there is a 'domestic' theme and a 'wild' theme.   The theme is a
user option.  If the wild theme is selected, the images should be a
cheetah and a dingo.  With the domestic theme they would be a calico
cat and a golden retriever.

My thought was that I could distribute these image themes as
ClientBundles.  So I implemented something like this:

public interface ImageTheme {
ImageResource cat();
ImageResource dog();
}

public interface WildImageTheme extends ClientBundle, ImageTheme {
@Source(cheetah.jpg)
ImageResource cat();

@Source(dingo.jpg)
ImageResource dog();
}

public interface DomesticImageTheme extends ClientBundle, ImageTheme {
@Source(calico.jpg)
ImageResource cat();

@Source(golden-retriever.jpg)
ImageResource dog();
}

But then I end up needing some ugly and hard-to-maintain binding code
on the client like this:

public static ImageTheme CURRENT_THEME = (ImageTheme) GWT.create
(DomesticImageTheme.class)

public ImageResource getImageResource(String animalName) {
if (Cat.equals(animalName)) {
return CURRENT_THEME.cat();
} else if (Dog.equals(animalName)) {
return CURRENT_THEME.dog();
}
[...]
}

If it were available to me, I could use reflection to bind the animal
names to matching method names, but obviously it isn't.  Deferred
binding is described as GWT's answer to reflection, but does it fit
here?  Is my ClientBundle as theme pack paradigm flawed?  Does anyone
have a suggestion for a better way to accomplish this?

Thanks,
Bob

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
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 Tomcat in Eclipse: Tomcat loads its classes from gwt-dev.jar instead of its own.

2010-01-29 Thread Bob Luo
Hello,

Just to let any reader know, I managed to solve my problem by
separating the backend stuff from the frontend stuff, with the
creation of 2 eclipse projects.  I also created a source directory
named shared which is imported in both projects.

This way, I fixed every problem I had and would have had in the long
run.

I can:
Run tomcat in debug with the front-end compiled as production (Debug
in backend, no debug in front end) with only the backend project open
Run tomcat in debug with the front-end running in GWT in debug mode
(Debug in both projects means I can debug either side) requires both
projects open
I can easily deploy both sides compiled as production in a stand-alone
tomcat (No Eclipse at all)

We configure JNDI ressources etc, all of this included in Spring, with
AJDT.  Using only the Google App Engine in an integrated project would
have come with its set of problems in the long run (I could not find
how to define JNDI ressources in GAE, etc)

We work the same way with our integration with Flex.  We are used to
it.

Regards,
Bob

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
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 Tomcat in Eclipse: Tomcat loads its classes from gwt-dev.jar instead of its own.

2010-01-27 Thread Bob Luo
Hi Cristian,

Thank you for your answer!

You are right, the wizard did copy gwt-servlet.jar in my WEB-INF/lib.

I am sorry if I my post was not 100% clear, as I am new to GWT.  This
is what I did: When I created the project, I used Google Web App
Wizard.  I UNCHECKED GAE but kept GWT 2.0 CHECKED.  Even though I
unchecked GAE at creation, the wizard created a Web Application
launch configuration, which I started and it worked.

When I wanted to integrate tomcat in my project, I went in this launch
configuration, I disabled Embedded Server.  I started tomcat and I
have the class path problems.

Bob

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
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 Tomcat in Eclipse: Tomcat loads its classes from gwt-dev.jar instead of its own.

2010-01-27 Thread Bob Luo
Hi,

No, when I start tomcat from eclipse, it still have errors like:

java.lang.NoSuchFieldError: IS_DIR
at org.apache.catalina.startup.Bootstrap.createClassLoader
(Bootstrap.java:173)
at org.apache.catalina.startup.Bootstrap.initClassLoaders
(Bootstrap.java:98)

or, if I move bootstrap.jar higher than GWT SDK from the Java Build
Path of my project:

java.lang.ClassNotFoundException:
org.apache.catalina.core.AprLifecycleListener
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

It either finds wrong classes in gwt-dev.jar instead of from jars in
d:/tomcat-5.5.26/bin, d:/tomcat-5.5.26/common/lib or d:/tomcat-5.5.26/
server/lib or does not find classes at all.

I only added bootstrap.jar from the tomcat directory, because it is
the only jar we usually add to our projects.

I added gwt-servlet.jar to the Java Build Path with no difference.

If I add catalina.jar, tomcat-util.jar, catalina-storeconfig.jar to
the Java Build Path, it goes further.  I don't like the idea but at
some point, I guess I would get it working if I added ALL the tomcat
jars.

If I completely remove gwt-dev.jar from the run configuration class
path, or if I disable GWT from my project, tomcat starts up no
problem.

Regards,
Bob

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email 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 Tomcat in Eclipse: Tomcat loads its classes from gwt-dev.jar instead of its own.

2010-01-26 Thread Bob Luo
Hi,

I am actually experimenting with GWT to replace our UI. (We actually
use struts)  I like GWT a lot so far.

I thus pushed the experiment further by trying to integrate it in our
solutions.  I must work within a few parameters set by my employer.
Among those, it must be possible for my team to debug/trace GWT stuff
(Take advantage of the devmode) but while the main application still
runs in tomcat 5.5.26. (-noserver switch).  All of this inside the
same Eclipse.

I came close to get this to work, really close, but here's my problem:
The tomcat ClassLoader loads tomcat classes found in gwt-dev.jar
instead of reading its own jar files.  If both those tomcats (Mine and
GWT's) were of the same version, I would probably not even know
there's a problem.

This is how i am set up:

1. I have a tomcat installed outside of my project, say, d:/
tomcat-5.5.26
2. I have an eclipse project which was created fully by the GWT
wizard. (say, d:/projects/myproject)
3. I activated the AJDT builder in this project.
Up until here, everything works great, but inside Google App Engine.
(no -noserver switch)

4. I deactivate the Google App Engine (add the -noserver switch)
5. I create a server.xml inside my project, rig everything up
6. I create a Run Configuration this way:
6a. Main class: org.apache.catalina.startup.Bootstrap
6b. Working directory: d:/tomcat-5.5.26/bin
7. I add bootstrap.jar in the classpath of my project.

I try to launch it, bang problems arise because of the mixup.  I tried
tampering with the classpath in my Run Configuration to eliminate GWT,
and my tomcat loads allright.  (Obviously the GWT classes on the
server-side fail to load since they extend RemoteService, which,
without GWT jars, is not found of course)

I suppose that if the tomcat jars were earlier in the classpath, I
would not have this problem?

A solution for me to try would be to open gwt-dev.jar and erase tomcat
classes.  I don't like this solution.  Would it even work?  Is there a
better way?

Thanks a lot!
Bob

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



Re: Issues using Eclipse and GWT Plugin in Ubuntu Karmic (9.10)

2009-11-03 Thread Bob Rozelle

Jason,

Thanks for looking into this.  When I get time I'm going to report the
search problem on Build id: 20090920-1017 to Ubuntu and Eclipse.  Just
a little busy right now.  I found that search is working if I hit
return while in the search box, but not when I press the search
button.

On Nov 2, 2:15 pm, Jason Parekh jasonpar...@gmail.com wrote:
 Hey guys,

 Typically when this happens, the flavor of Eclipse (e.g. Eclipse for Java)
 does not have the necessary update sites bundled to get the missing
 dependencies (in this case, WST).  I'll try verifying this tonight on a
 Karmic machine.

 jason

 2009/11/1 ddawster zhang ddaws...@gmail.com



  On 11月1日, 下午7时10分, Bob Rozelle broze...@eatlocalfood.com wrote:
   Upgraded to Ubuntu Karmic and now I'm having issues:

   I've got my own copy of Eclipse Gallileo (Build id: 20090920-1017),
   everything worked fine before the upgrade, but now the search
   mechanisms are broken (in file and through the search tab). Click the
   Search Button and nothing happens.

   So I thought, let me check out the official Ubuntu version of
   eclipse (Version: 3.5.1
   Build id: M20090917-0800).  I started that up and attempted to install
   the GWT Plugin and got the following error:

   one or more required items could not be found.
 Software being installed: Google Plugin for Eclipse 3.5
   1.1.2.v200910131704
   (com.google.gdt.eclipse.suite.e35.feature.feature.group
   1.1.2.v200910131704)
 Missing requirement: Google Plugin for Eclipse 3.5
   1.1.2.v200910131704
   (com.google.gdt.eclipse.suite.e35.feature.feature.group
   1.1.2.v200910131704) requires 'org.eclipse.wst.sse.ui 0.0.0' but it
   could not be found

   Any thoughts?

   Bob

  me too

  The problem if you had solved.Please send a email to  me. my email is
  ddaws...@gmail.com  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
-~--~~~~--~~--~--~---



Issues using Eclipse and GWT Plugin in Ubuntu Karmic (9.10)

2009-11-01 Thread Bob Rozelle

Upgraded to Ubuntu Karmic and now I'm having issues:

I've got my own copy of Eclipse Gallileo (Build id: 20090920-1017),
everything worked fine before the upgrade, but now the search
mechanisms are broken (in file and through the search tab). Click the
Search Button and nothing happens.

So I thought, let me check out the official Ubuntu version of
eclipse (Version: 3.5.1
Build id: M20090917-0800).  I started that up and attempted to install
the GWT Plugin and got the following error:

one or more required items could not be found.
  Software being installed: Google Plugin for Eclipse 3.5
1.1.2.v200910131704
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.1.2.v200910131704)
  Missing requirement: Google Plugin for Eclipse 3.5
1.1.2.v200910131704
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.1.2.v200910131704) requires 'org.eclipse.wst.sse.ui 0.0.0' but it
could not be found

Any thoughts?

Bob
--~--~-~--~~~---~--~~
You received 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: Repeating http requests

2009-09-15 Thread Bob Rozelle

I'm curious, what is the use case is that requires a heartbeat from
the client to the server?

On Sep 14, 8:51 am, Ittai etai...@gmail.com wrote:
 I actually did what you suggested but oddly enough it did not work.
 I still had to add a dummy data to fool the IE into thinking it's a
 different URL.
 Anyone has any ideas? Because I would sure love to get rid of this
 ugly hack

 TIA
 Ittai

 On Sep 2, 12:17 am, Thomas Broyer t.bro...@gmail.com wrote:

  On 1 sep, 18:06, Adligo sc...@adligo.com wrote:

   Hi All,

      This is my quick hack that fixes that issue;
  http://yourserver/yourPath?yourCgiParams=yourValuesrequest=1
  http://yourserver/yourPath?yourCgiParams=yourValuesrequest=2
  http://yourserver/yourPath?yourCgiParams=yourValuesrequest=3
   exc

   Also note this can be applied to html and property files (or any
   files)http://yourserver/funky.htmlrequest=1http://yourserver/drummer.prope...

   I have been using a static int counter to accomplish this trick.
   I think GWT should add some caching options to its http api, because
   this is quite hoaky.

  Something like the following? ;-)

  RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
  yourPath?yourCgiParams=yourValues);
  builder.setHeader(Cache-Control, no-cache);
  ...
--~--~-~--~~~---~--~~
You received 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: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-15 Thread Bob Rozelle
 in?
   - Switch to the Java perspective and see if anything different happens (I
 doubt it, since you mentioned the Google folder wasn't even there in the New
 project wizard)
 - Check your logs (WORKSPACE_DIRECTORY/.metadata/.log) for any strange
 issues
 - Check your list of installed plugins (Help  About  Installation details
 - Plugins tab, sort by Plug-in ID and look for com.google) to ensure it is
 indeed installed

 Thanks,
 jason

 On Sun, Sep 13, 2009 at 4:18 PM, Bob Rozelle broze...@eatlocalfood.comwrote:



  Google folder wasn't there.

  Changed to Galileo for Java, I was using Galileo for JEE.  This fixed
  the problem.  I can now see Google folder and icons.  It looks like
  there is something wrong with using Subclipse with Eclipse 3.5 for
  JEE.

  On Sep 13, 12:33 pm, Paul Grenyer paul.gren...@gmail.com wrote:
   Hi

I use subclipse all the time w/ GWT plugin. They seem to co-exist.

   Yes, it works for a colleague of mine in the office, but not for me.

Even under the Other  Google  Web Application Project you don't get a
Wizard?

   Will have to try that.

   --
   Thanks
   Paul

   Paul Grenyer
   e: paul.gren...@gmail.com
   b: paulgrenyer.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-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: Disabling SOP in GWTs built-in browser?

2009-09-15 Thread Bob Rozelle

You can also very easily proxy the calls through the Jetty Server.

1. Download or create a proxy servlet, I use http://www.servletsuite.com/
HttpProxy1 servlet.  Its got a restrictive license (non-commercial 
non governement), so just use it for personal development.

2.  Setup your web.xml to redirect to your Apache/php server, for
example:

servlet
  servlet-nameHttpProxy/servlet-name
  servlet-classcom.jsos.httpproxy.HttpProxyServlet/servlet-class
init-param
  param-namehost/param-name
  param-valuehttp://localhost/php/action_component.php/param-
value
/init-param
/servlet
servlet-mapping
  servlet-nameHttpProxy/servlet-name
  url-pattern/php/action_component.php/url-pattern
/servlet-mapping

On Sep 14, 12:42 pm, Thomas Broyer t.bro...@gmail.com wrote:
 On 14 sep, 16:01, ReubenH reuben.har...@gmail.com wrote:





  Hi,

  As far as I can tell, the Single Origin Policy (SOP) cannot presently
  be disabled in GWTs built-in browser... if so, I would like to ask the
  Googlers to reconsider this choice.

  My hosting provider does not let me run java servlets of any kind, so
  for my app I am stuck with using a JSON feed via PHP. During
  development, this feed has to run from a second webserver, since the
  GWT's built-in webserver does not seem to support PHP. I imagine many
  people find themselves in the same boat.

  Unfortunately I find that, while in development mode, my GWT app
  cannot access the second server, thanks to SOP. I have just seen the
  atrocious Javascript callback hack presently needed to work around it,
  but I have no great desire to pollute my pristine Java code with
  something so hideous and misbegotten as that.

  Surely the simple, obvious, and better solution is to allow developers
  to turn off SOP while in development mode? Can we do this? If not, why
  not?

 See:http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...
 andhttp://code.google.com/p/google-web-toolkit/issues/detail?id=3131- Hide 
 quoted text -

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



Re: Disabling SOP in GWTs built-in browser?

2009-09-15 Thread Bob Rozelle

Sorry, I didn't read the comments, just the detailed description.

On Sep 15, 10:08 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 15 sep, 15:27, Bob Rozelle broze...@eatlocalfood.com wrote:

  You can also very easily proxy the calls through the Jetty Server.

  1. Download or create a proxy servlet, I usehttp://www.servletsuite.com/
  HttpProxy1 servlet.  Its got a restrictive license (non-commercial 
  non governement), so just use it for personal development.

  2.  Setup your web.xml to redirect to your Apache/php server, for
  example:

 That's exactly what issue #3131 proposes, with several implementations
 of such a proxy servlet to 
 download:http://code.google.com/p/google-web-toolkit/issues/detail?id=3131
--~--~-~--~~~---~--~~
You received 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: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-15 Thread Bob Rozelle

I went back and followed the successful steps using Eclipse Galileo
JEE and it also worked.  I know at the time that it wasn't working
that I was working with Galileo.  I'm not sure, but I think I created
a conflict with the workspace by opening it in Galileo before I had
installed subclipse.  If I find time, I'll go back and try to recreate
my steps.  Sorry if this lead you down a rabbit hole.

On Sep 15, 11:40 am, Jason Parekh jasonpar...@gmail.com wrote:
 Thanks Bob.
 Very strange that GPE was indeed installed but not exposing anything.

 One thing thats strange is the buildid for Eclipse in your logs is:
 eclipse.buildId=M20070212-1330
 .  This seems to be 3.2.2, could your OS-packaged Eclipse been launching
 instead of the downloaded Galileo?  Or perhaps that was from before you
 upgraded to Galileo?

 jason

 On Tue, Sep 15, 2009 at 7:58 AM, Bob Rozelle broze...@eatlocalfood.comwrote:



  I'm working off of memory from 2 days ago.

  I had an existing project setup that was hooked to a main SVN branch
  as an editor.
  I installed Eclipse JavaEE and opened the workspace.  I didn't bother
  to check the logs, but I bet there were errors with the project
  wanting to hook up with subclipse and it not being there.  I then
  installed subclipse, thought I had it working and then installed GPE.
  I could not find anything Google in any of the perspectives (I
  switched around, quite a bit). I did find Google stuff in the plugin
  directory and google was present in the in Help-About-Installation
  Details.  I did check the logs and found an error in relation to
  eclipse after I did the original post.  I still had one of the log
  files, I'll put the error at the bottom of my post.  Anyway, a little
  searching on the internet and I found people with complaints about
  Subclipse and Eclipse Java EE.  I decided to reinstall from scratch
  with Eclipse Java.  This time I decided to not open my workspace but
  instead open a dummy workspace until after I had installed Eclipse,
  Subclipse and GPE.  I then opened an original version of my workspace
  that I had backed up.  So in retrospect, it may not have anything to
  do with Eclipse Java EE or it might.

  !ENTRY org.eclipse.search 2 0 2009-08-22 17:43:09.314
  !MESSAGE Problems encountered during text search.
  !SUBENTRY 1 org.eclipse.search 2 2 2009-08-22 17:43:09.314
  !MESSAGE File 'GWTCommerce/war/gwtCommerce/GWTCommerce.css' has been
  skipped, problem while reading: ('Resource is out of sync with the
  file system: /GWTCommerce/war/gwtCommerce/GWTCommerce.css.').
  !STACK 1
  org.eclipse.core.internal.resources.ResourceException: Resource is out
  of sync with the file system: /GWTCommerce/war/gwtCommerce/
  GWTCommerce.css.
         at
  org.eclipse.core.internal.localstore.FileSystemResourceManager.read
  (FileSystemResourceManager.java:606)
         at org.eclipse.core.internal.resources.File.getContents(File.java:
  290)
         at org.eclipse.core.internal.resources.File.getContents(File.java:
  279)
         at org.eclipse.search.internal.core.text.FileCharSequenceProvider
  $FileCharSequence.getInputStream(FileCharSequenceProvider.java:282)
         at org.eclipse.search.internal.core.text.FileCharSequenceProvider
  $FileCharSequence.initializeReader(FileCharSequenceProvider.java:276)
         at org.eclipse.search.internal.core.text.FileCharSequenceProvider
  $FileCharSequence.reset(FileCharSequenceProvider.java:268)
         at

  org.eclipse.search.internal.core.text.FileCharSequenceProvider.newCharSequence
  (FileCharSequenceProvider.java:40)
         at
  org.eclipse.search.internal.core.text.TextSearchVisitor.processFile
  (TextSearchVisitor.java:254)
         at
  org.eclipse.search.internal.core.text.TextSearchVisitor.processFiles
  (TextSearchVisitor.java:189)
         at org.eclipse.search.internal.core.text.TextSearchVisitor.search
  (TextSearchVisitor.java:170)
         at org.eclipse.search.internal.core.text.TextSearchVisitor.search
  (TextSearchVisitor.java:182)
         at org.eclipse.search.core.text.TextSearchEngine$1.search
  (TextSearchEngine.java:54)
         at org.eclipse.search.internal.ui.text.FileSearchQuery.run
  (FileSearchQuery.java:122)
         at org.eclipse.search2.internal.ui.InternalSearchUI
  $InternalSearchJob.run(InternalSearchUI.java:93)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
  !SUBENTRY 2 org.eclipse.core.resources 4 274 2009-08-22 17:43:09.316
  !MESSAGE Resource is out of sync with the file system: /GWTCommerce/
  war/gwtCommerce/GWTCommerce.css.
  !SESSION 2009-08-23 06:13:25.107
  ---
  eclipse.buildId=M20070212-1330
  java.version=1.6.0_14
  java.vendor=Sun Microsystems Inc.
  BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
  Command-line arguments:  -os linux -ws gtk -arch x86_64

  !ENTRY org.eclipse.osgi 2 1 2009-08-23 06:13:27.586
  !MESSAGE NLS missing message: initializer_error

Re: rpc vs RequestBuilder

2009-09-14 Thread Bob Rozelle

In my open source application gwt-commerce 
http://code.google.com/p/gwt-commerce/

I am using RequestBuilder and sending compressed JSON back from the
server.  My server is Apache/PHP and I find the low volume performance
to be quite good for the limited testing that I've done.  I would love
to have the time to rebuild the back-end as Java and then do some load
testing in the Google App Engine environment and see if the cloud
computing they've put in place really scales.

I originally choose this approach for a couple of reasons.

1.  I could run my new front-end next to my old front-end
(osCommerce).
2.  I believe I can economically scale Apache/PHP using shared hosting
services like Go Daddy.

I think the real issue here is not low volume performance or the
transport medium (RPC or compressed JSON), but performance of the
server under load and amount of hardware or cloud that is eaten up
getting acceptable performance at projected maximum load.

I work in a Java house during the day and I have found that JEE (at
least J2EE 1.4) is a bit of a resource hog.  I think one of the
fundamental advantages of an Apache/PHP architecture is that if
written correctly each Request/Response cycle is completely
independent, therefore scaling is linear.  Of course, the elves are
improving JEE everyday, so my issues with JEE may be obsolete.

Regards,
Bob

On Sep 13, 4:37 pm, ben fenster fenster@gmail.com wrote:
  i know that but i just wanted to know if the  performence margin
 considering having efficient serialization algoritem could be big
 enough too be worth the invesment in developing such php server side
 request handler

 i also wanted to know about shear power of request handling per
 second ? , i belive that php combined with apache would prove too be
 much stronger but i would like too hear from someone that checked it
 out
 On Sep 13, 4:16 am, Thomas Broyer t.bro...@gmail.com wrote:

  On 13 sep, 07:50, ben fenster fenster@gmail.com wrote:

   have anyone checked what is the better way to comunicate with server
   performence wize rpc or RequestBuilder(using php)

  It would all depend on your serialization algorithm when not using GWT-
  RPC; so there's no real answer to your question.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-13 Thread Bob Rozelle

Hi,

Decided I wanted to see how the new plugin worked so I installed it
into Galileo, followed all the install instructions, restarted
everything, but I cannot find the wizard or the icon

Any suggestions?

Thanks,
Bob
--~--~-~--~~~---~--~~
You received 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: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-13 Thread Bob Rozelle

Yes.  I am using subclipse.

On Sep 13, 11:26 am, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

  Decided I wanted to see how the new plugin worked so I installed it
  into Galileo, followed all the install instructions, restarted
  everything, but I cannot find the wizard or the icon

  Any suggestions?

 I've been having a similar problem I still haven't got to the bottom
 off. Have you also got subclipse installed? They don't seem to work
 together very well.

 --
 Thanks
 Paul

 Paul Grenyer
 e: paul.gren...@gmail.com
 b: paulgrenyer.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-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: Installed GWT Plugin into Eclipse 3.5 Galileo and cannot find wizard

2009-09-13 Thread Bob Rozelle

Google folder wasn't there.

Changed to Galileo for Java, I was using Galileo for JEE.  This fixed
the problem.  I can now see Google folder and icons.  It looks like
there is something wrong with using Subclipse with Eclipse 3.5 for
JEE.



On Sep 13, 12:33 pm, Paul Grenyer paul.gren...@gmail.com wrote:
 Hi

  I use subclipse all the time w/ GWT plugin. They seem to co-exist.

 Yes, it works for a colleague of mine in the office, but not for me.

  Even under the Other  Google  Web Application Project you don't get a
  Wizard?

 Will have to try that.

 --
 Thanks
 Paul

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



Re: Is it a bug in DialogBox?

2009-09-04 Thread Bob L.

Good workaround. thanks Parvez!

On Sep 4, 12:11 pm, Parvez Shah parvezs...@gmail.com wrote:
 Not sure if its a Bug of DialogBox
 my guess is its a bug of decorator panel

 any way your problem is you are setting size of DialogBox which is creating
 the problem
 solution 1) remove setSize
 solution 2) if you want to use setSize then wrap your content in vertical
 panel
 something like this

 class ClothingForm extends DialogBox {
         public ClothingForm() {
             setText(Clothing);
             //setSize(30em, 30em);

             Button ok = new Button(OK);
             ok.addClickHandler(new ClickHandler() {
                 public void onClick(ClickEvent event) {
                     ClothingForm.this.hide();
                 }
             });

             VerticalPanel content = new VerticalPanel();
             content.setSize(30em, 30em);
             setWidget(content);
             content.add(ok);
         }
     }



 On Thu, Sep 3, 2009 at 8:05 PM, Bob L. bob.net2...@gmail.com wrote:

  public class ClothingForm extends DialogBox {
             public ClothingForm() {
               setText(Clothing);
               setSize(30em, 30em);

               Button ok = new Button(OK);
               ok.addClickHandler(new ClickHandler() {
                 public void onClick(ClickEvent event) {
                         ClothingForm.this.hide();
                 }
               });

               setWidget(ok);
             }
  }

  The result:

 http://lh3.ggpht.com/_HQyyXYqJEaE/Sp_TxaB6FII/AMk/F3pqmFFjG4s...- 
 Hide quoted text -

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



Is it a bug in DialogBox?

2009-09-03 Thread Bob L.

public class ClothingForm extends DialogBox {
public ClothingForm() {
  setText(Clothing);
  setSize(30em, 30em);

  Button ok = new Button(OK);
  ok.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
ClothingForm.this.hide();
}
  });

  setWidget(ok);
}
}

The result:
http://lh3.ggpht.com/_HQyyXYqJEaE/Sp_TxaB6FII/AMk/F3pqmFFjG4s/s800/dialogbox.png.jpg

--~--~-~--~~~---~--~~
You received 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: DOM.getElementById() vs $doc.getElementById()

2009-09-02 Thread Bob Rozelle

I'm using the approach of wrapping the form in a FormPanel

FormPanel form = FormPanel.wrap(element, false);
Style style = element.getStyle();
style.setProperty(display, block);//Statically set to
display:none
parentPanel.add(form);//Moves the form in the DOM
Element formElement = form.getElement();
NodeListElement inputs = formElement.getElementsByTagName(input);
int ln = inputs.getLength();
for (int i = 0; i  ln; i++)
{
Element element = inputs.getItem(i);
InputElement inelement = (InputElement)element;
String name = inelement.getName();
String value = inelement.getValue();
//Modify values here.
}

I've gotten username/password autofill working in Firefox, Chrome,
Opera, Safari, but not IE; still trying to figure that out.

Bob

--~--~-~--~~~---~--~~
You received 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: DOM.getElementById() vs $doc.getElementById()

2009-09-02 Thread Bob Rozelle



FYI, I'm using UIObject.setVisible(element, true) with the same effect
but a bit more readable IMO ;-)
Thanks, there are a lot of ways to skin a cat, but 1 line for 3 is a
nice trade off.

 I've gotten username/password autofill working in Firefox, Chrome,
 Opera, Safari, but not IE; still trying to figure that out.

That's most probably because of the following line:

 parentPanel.add(form);//Moves the form in the DOM

Try keeping the form where it originally lives in the markup and see
if it changes something (I bet it does!)

I know its because of that line, but I want the form to show up
there.  I guess, if IE requires that, I'll try a Z-axis and position
move to get it sitting over where I want it to be without adding to my
panel.

Regards,
Bob

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



GWT 1.7 compiles null.nullMethod() into javascript for HTMLTable sub-class

2009-08-17 Thread Bob The Cheese

OK, so I'm making a custom type of table which manages a datastore,
has expandable sections, etc.

I've borrowed a couple of things off FlexTable, but modified/
simplified them.

When I run the project, I get this:
==
[ERROR] Failed to create an instance of 'vdc.module.billing.Billing'
via deferred binding
java.lang.NullPointerException: null
at com.google.gwt.user.client.ui.HTMLTable$CellFormatter.access$0
(HTMLTable.java:373)
at com.google.gwt.user.client.ui.HTMLTable.cleanCell(HTMLTable.java:
1370)
at com.google.gwt.user.client.ui.HTMLTable.setHTML(HTMLTable.java:
1006)
at vdc.module.billing.clients.invoices.widget.InvoiceGrid.init
(InvoiceGrid.java:18)
at vdc.module.billing.clients.invoices.Invoices.makeInvoiceGrid
(Invoices.java:169)
at vdc.module.billing.clients.invoices.Invoices.init(Invoices.java:
110)
at vdc.module.billing.clients.Clients.init(Clients.java:66)
at vdc.module.billing.Billing.init(Billing.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate
(ModuleSpace.java:373)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:318)
at com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace
(BrowserWidget.java:343)
at com.google.gwt.dev.shell.moz.BrowserWidgetMoz.access$100
(BrowserWidgetMoz.java:35)
at com.google.gwt.dev.shell.moz.BrowserWidgetMoz
$ExternalObjectImpl.gwtOnLoad(BrowserWidgetMoz.java:58)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native
Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:
1428)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2840)
at com.google.gwt.dev.SwtHostedModeBase.processEvents
(SwtHostedModeBase.java:235)
at com.google.gwt.dev.HostedModeBase.pumpEventLoop
(HostedModeBase.java:558)
at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
==

I compile the project out and run it in firefox, and pull up the error
here in the javascript:
==
function $setHTML(this$static, row, column, html){
var td;
$prepareCell(this$static, row, column);
td = null.nullMethod();
$internalClearCell(this$static, td, html == null);
if (html != null) {
null.nullMethod();
}
}
==

in particular this line:
td = null.nullMethod();

I've looked around, and can't find anything which really explains to
me what's going wrong.

Here are the methods that I've overwritten

==
@Override
protected void prepareRow(int row) {
if (row  0) {
throw new IndexOutOfBoundsException(
Cannot create a row with a negative index:  + row);
}

int rowCount = getRowCount();
for (int i = rowCount; i = row; i++) {
insertRow(i);
}
}

@Override
protected void prepareCell(int row, int column) {
prepareRow(row);
if (column  0) {
throw new IndexOutOfBoundsException(
Cannot create a column with a negative index:  + 
column);
}

int cellCount = getCellCount(row);
for (int i = cellCount; i  column; i++) {
insertCell(row, i);
}
}

@Override
public int getCellCount(int row) {
if (row  0) {
throw new IndexOutOfBoundsException(
Cannot find a row with a negative index:  + 
row);
}

// Initialize - 0 cells in a row
int count = 0;

// check if the row exists yet
int rows = getRowCount();
if (rows = row) {
count = getDOMCellCount(row);
}

return count;
}

// and the constructor
public InvoiceGrid () {
// set the headers
setHTML(0,0,nbsp;);
setText(0,1,Invoice Number);
setText(0,2,Client Name);
setText(0,3,Invoice Date);
setText(0,4,Due Date);
setText(0,5,Terms);
setText(0,6,Ageing);
setText(0,7,Amount);
setText(0,8,Status);
}
==

Can anyone help me with this? Any clues as to what I've done wrong
here?

Thanks guys.

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

Re: Pre-Compress GWT compiler output for web server

2009-07-22 Thread Bob Rozelle

A solution for the *.cache.html files is to gzip them
to .cache.html.gz files.

If you are using Apache as your web server you can then modify the
mime.conf file (found at /etc/apache2/mods-enabled/mime.conf) by
uncommenting:

AddEncoding x-gzip .gz .tgz

and commenting:

#AddType application/x-gzip .gz .tgz


This means that my apache server will send the .cache.html.gz files in
replacement for the .cache.html files and also send the response
header: content-encoding=gzip

This can also be done in a .htaccess file (RemoveType and AddEncoding)
placed in the cache folder.


On Jul 22, 7:06 am, martinhansen martin.hanse...@googlemail.com
wrote:
 Hello,

 I am evaluating some approaches to reduce the amount of data being
 transmitted to the client browser. I am using the Apache Tomcat web
 server. I successfully managed to enable GZIP output for the Tomcat
 server by editing the server config file. It works fine. However, this
 way the data is compressed on-the-fly by the web server for every
 request which considerably increases server CPU load. Is this
 assumption correct?

 Is there a way to pre-compress the contents of my GWT app and have
 this pre-compressed content delivered by the web server?

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



GWT Commerce - A rewrite of OSCommerce using GWT and PHP

2009-07-18 Thread Bob Rozelle

Hi,

I've opened a project called GWT Commerce at 
http://code.google.com/p/gwt-commerce/,
my goal is to provide a rewrite of OSCommerce using GWT.  I've made a
lot of progress and was recently contacted by a Software Engineer who
wanted to help, I've agreed and he is going to work on Administrative
use cases.

I think I am at the point that I would like some real community
involvement.  I am looking for help with: Documentation (isn't
everyone), testing, some design, coding and best practice advice.

Code (written so far) is checked in, I still have to get an example
database checked in so that other people can run it.  Also plan on
placing a working demo on a domain I own, hopefully all of this by the
end of the month.

Please contact me if interested.


--~--~-~--~~~---~--~~
You received 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 applications memory management

2009-01-15 Thread Bob Stachel

Try this article as a starting point in understanding IE memory leaks.
Internet Explorer is far worse than other browsers in memory
managment.

http://msdn.microsoft.com/en-us/library/bb250448.aspx

If your application uses pure GWT you will be somewhat protected
from leaks, but perhaps you have some native methods that employ
function closures (by far the easiest way to incur major leaks).

On Jan 14, 9:00 am, Lex alexey.tsiunc...@gmail.com wrote:
 Hello all.

 I'd like to ask the question about the approaches normally used to
 manage memory in GWT applications. Till the moment I wrote this post,
 I read most of discussions on the group related to this topik, but
 unfortunately have no answer on my question.

 What I'm actually looking for: is some guide or list of rules What is
 necessary to be done in GWT code, to prevent GWT application to
 consume more and more memory. This problem occurs in Internet
 Explorer.

 Currently we are developing rather big application using GWT. During
 developement process we had noticed that Internet Explorer consumes
 memory more and more and never release it. We had also noticed that
 after we press refresh button in IE, it finally releases most of
 consumed memory (but not all). We try to check out pages with IE leak
 detectors, sIEve, and Microsoft JS Memory Leak Detector. Those tools
 are not detect any memory leaks in our application.

 After this we create very simple test. We create SimplePanelwidget,
 and put some FlexTable on it. After this we put in this flex table
 different widgets (Buttons, checkboxes, etc.). After we add
 SimplePanel to the rootPanel, and remove it from root panel. Do this
 several times (using timer). After each cycle (add, remove SimplePanel
 from RootPanel) some amount of memory ~200 KB is not released.

 So my questions are following:
 -  Does the situation when IE is not released all memory it consumes
 is know issue or not?
 -  Does anybody know what may be done to reduce or remove at all
 memory leaking?
 -  Does anybody have URL to some guides of memory management in GWT
 applications?

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



gwt_module_id property

2009-01-05 Thread Braudes, Robert (Bob)
I ran into a problem with the integration of GWT and Gears, and was told
to post it to this group rather than the Gears group.
 
I have no problems running the SimpleGadget sample application
directly on iGoogle, but when I try to run it out of Eclipse I get the
stack trace:

[ERROR] Failure to load module 'com.simplegadget.SimpleGadget'
java.lang.RuntimeException: No such property __gwt_module_id
   at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.setIntProperty
(BrowserWidgetIE6.java:219)
   at com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200
(BrowserWidgetIE6.java:37)
   at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad
(BrowserWidgetIE6.java:68)
   at com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke
(BrowserWidgetIE6.java:139)
   at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke
(IDispatchImpl.java:294)
   at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
(IDispatchImpl.java:194)
   at org.eclipse.swt.internal.ole.win32.COMObject.callback6
(COMObject.java:117)
   at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native
Method)
   at
org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
   at
org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
   at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
   at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
   at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)

Looking through the javadoc and past email threads I can't find
anything on how to set this property, or what is expected.  Any help
would be greatly appreciated.  I apologize in advance if this has
already been discussed.

Regards,

Bob

 
Bob Braudes | Consulting Member of the Technical Staff | CTO Office
Application Architecture and Strategy | 
Avaya | 150 Apollo Drive | Chelmsford, MA 01824 | W: +1 978 677 5031 M:
+1 978 973 5199 | brau...@avaya.com
 

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



Eclipse GWT UI App Engine Backend

2008-11-17 Thread Bob

I am building an app with a GWT Javascript UI and a Python App Engine
back end. I setup 2 projects in Eclipse. The App Engine project uses a
linked resource folder from the GWT project to access the compiled GWT
UI. The problem: I need to use path = os.path.join(os.path.dirname
(__file__), 'GWT filesl') in App Engine. The 2 projects are in 2
different directories so App Engine does not see 'GWT files' and run
time. My first guess is path variables but I haven't been able
configure.  Any suggestions? Thanks.-Bob
--~--~-~--~~~---~--~~
You received 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: gData API

2008-10-22 Thread Bob

Cool. Plus after a quick search I also know what orthogonal means
now. Thank you.-Bob Go Rays!

On Oct 22, 6:48 am, walden [EMAIL PROTECTED] wrote:
 No, it won't compile into Javascript.  That's all server side stuff.
 It's orthogonal to your GWT client.

 On Oct 21, 10:04 am, Bob [EMAIL PROTECTED] wrote:

  I have a gData API project that I would like to use GWT. The gData API
  requires 3 dependencies, mail.jar (Sun), activation.jar (JavaBeans)
  and Servlet-api.jar (Apache). Does anyone know off hand if GWT is
  capable of compiling the dependencies into JavaScript? I recall
  reading somewhere in the docs that GTWis primarily designed to work
  with Java.Lang. Sorry if this is a no brain'er question. This is my
  first attempt at a GTW project. Go Bears!-Bob
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



gData API

2008-10-21 Thread Bob

I have a gData API project that I would like to use GWT. The gData API
requires 3 dependencies, mail.jar (Sun), activation.jar (JavaBeans)
and Servlet-api.jar (Apache). Does anyone know off hand if GWT is
capable of compiling the dependencies into JavaScript? I recall
reading somewhere in the docs that GTWis primarily designed to work
with Java.Lang. Sorry if this is a no brain'er question. This is my
first attempt at a GTW project. Go Bears!-Bob

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