Re: MouseOverHandler not called for text of Checkbox

2009-11-19 Thread vaibhav saxena
Hi,
Why do you not create a composite which will act as the wrapper for the
check box and add the mouse handler to the composite. This will solve your
problem and you can use that composite anywhere where you need check box in
your app.

On Fri, Nov 20, 2009 at 6:31 AM, dave  wrote:

> First and only time I'll bump this, but I've yet to find a solution.
>
> Adding a MouseOverHandler to the GWT CheckBox widget only fires when
> mousing over the checkbox itself from the top, left, or bottom.  It
> does not fire when mousing over the text label or  when moving from
> the text over the actual checkbox.
>
> How can I add a MouseOverHandler that will fire when over the label of
> a CheckBox?
>
>
> On Nov 5, 9:34 am, dave  wrote:
> > I've got a GWTCheckbox(created with text label) to which I add a
> > MouseOverHandler and MouseOutHandler with the goal of doing some
> > action on hover (and closing when leaving).
> >
> > The problem is that the OverHandler is only called when hovering over
> > the actualcheckboxsquare from the top, left, or right.  It does not
> > fire when hovering over the text (or entering the actualcheckboxfrom
> > the left, when already over the text label).
> >
> > The MouseOutHandler handles the text label correctly, as it is not
> > called when moving the mouse from over the textbox to over the text.
> > It is only fired (correctly) when leaving the text.
> >
> > What am I missing?  There's nothing fancy to my example: just aCheckboxin
> a FlowPanel that adds the mouse handlers.
> >
> > Thanks for any tips!
> > dave
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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




Re: listbox that contains widgets instead of just text..

2009-11-19 Thread Miroslav Genov
Hello, 
 You could use MVP to make things much easier and to make client code to
use only objects instead of primitive widgets such as listbox.

 Here is some example that could make things more clear: 
  
 // this class should be used by your code
 class CustomerListBox {
interface Display {
  void addListBoxItem(String item);
  void removeListBoxItem(Integer index);
  //.
  Integer getSelectedItemIndex();
}
 
private final Display display;
private final List customers = new ArrayList();
  
public CustomerListBox(Display display) {
this.display = display;
}

public void addCustomer(Customer customer) {
  display.addListBoxItem(customer.getCustomerName());
  customers.add(customer);
}

public Customer getSelectedCustomer() {
   return customer.get(display.getSelectedItemIndex());
}

public void go(HasWidgets parent) {
   parent.add((Widget)display);
}
 }
 
 class CustomerListBoxDisplay extends Composite implements
CustomerListBox.Display {
 private ListBox listBox = new ListBox(); 

 public CustomerListBoxDisplay() {
   initWidget(listBox);
 }
 
 public Integer getSelectedItemIndex() {
return listBox.getSelectedIndex();
 }
 // and etc

 }

CustomerListBox customerListBox = new CustomerListBox(new
CustomerListBoxDisplay());

customerListBox.addCustomer(new Customer("1"));
customerListBox.addCustomer(new Customer("2"));

Customer selectedCustomer = customerListBox.getSelectedCustomer();
and etc

Hope this would help. 

Regards,
  Miroslav


On Thu, 2009-11-19 at 14:05 -0800, Jaimon wrote:
> hi,
> 
> i have need to create a listbox/drop down that create something other
> then just plain text,
> can some one show me how to do it? or tell me if it is possible to do
> it?
> 
> regards
> Me
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=.
> 
> 


--

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




Re: cross site linker in GWT 2.0 RC1 vs trunk

2009-11-19 Thread Chris Ramsdale
John,

Trunk should definitely compile standard apps with the xs linker. Let me
take a look at this tomorrow morning and I'll get back to you.

- Chris


On Thu, Nov 19, 2009 at 8:23 PM, John O'Conner  wrote:

> Anyone have any ideas about this? If my question is too vague or ill-
> formed, please let me know. I'm curious about your answers to this and
> want to make the question as easy to respond to as possible.
>
> Thanks again!
>
>
> On Nov 19, 12:51 am, "John O'Conner"  wrote:
> > I noticed that the XSTemplate.js file is differs between 2.0 RC1 and
> > the trunk (specifically r7021). I am wondering what the implications
> > are.
> >
> > In RC1, the XSTemplate.js (the cross-site linker template for the
> > selection/landing js file) loads the target js file with a
> > document.write("

Re: JSOs, SingleJsoImpl, and Generators

2009-11-19 Thread br...@google.com
Your thinking makes perfect sense, but if I recall correctly, there's
an implementation detail that prevents this exact scenario (that is,
generating JSO impls of interfaces). It's a feature we haven't gotten
to yet, and it won't make it into 2.0, sadly.

On Nov 19, 7:09 am, Brendan  wrote:
> Now that a javascript overlay can inherit an interface, so long as it
> is the only JSO that does, is there anything preventing the use of
> Generators to define new JSOs?
>
> The use case I'm thinking of would be a javascript object that is
> partially (or entirely) defined by browser specific fields and methods
> (Moz*(), Webkit*(), etc). Since only one JSO would be generated per
> permutation, this would guarantee that only one JSO was implementing
> that interface for any particular permutation.
>
> While this can be accomplished by a wrapper class with overridden
> methods, the boilerplate code (even auto-generated), is lengthy and
> annoying to maintain for objects which need only a few methods
> overridden. And more people than me must find the spread of
> "impl" (impl-itis?) and decorator classes grating on a code-aesthetics
> level.
>
> Does the compilation sequence still prevent this? Has anyone come up
> with a better workaround?

--

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




Re: GWT Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5

2009-11-19 Thread br...@google.com
The FF 3.5 crash (assuming you're seeing the same thing we are) is
definitely a known thing, and it's a very high priority bug.

On Nov 19, 5:27 pm, Yozons Support on Gmail  wrote:
> I wish I had a fixed way to make it happen, but it seems like I get a few
> different scenarios.
>
> Sometimes, after lots of code changes while the debugger is running, when I
> save the client .java file in Eclipse and it's compiled, FF will crash.
> Other times, it's when I click RELOAD after making changes.
>
> Sadly, FF is my main browser for all sorts of apps, so having it crash is a
> pain.  I'll post back if I can make heads or tails out of what I see
> happening.

--

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




Re: GWT vs ExtJs

2009-11-19 Thread Palani
Thank y'all for your feedback.


On Nov 19, 11:58 am, David Durham  wrote:
> > On Thu, Nov 19, 2009 at 12:11 PM, Palani  wrote:
> >> We are evaluating GWT and Ext-JS for our application development.
>
> >> With GWT,  I do not need to mess with Java Script and all the
> >> development can be done in Java.
>
> >> With Ext-Js, I need to learn JavaScript and it is not strongly typed
> >> language.
>
> >> Any other guidance would be appreciated.
>
> if you end up going the extgwt route:http://www.extjs.com/products/gxt/, I 
> wrote a library that might be
> useful to you.
>
> My library here:  http://code.google.com/p/gxtforms/
>
> Demo here:http://gxtforms.appspot.com/
>
> -Dave

--

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




Re: cross site linker in GWT 2.0 RC1 vs trunk

2009-11-19 Thread John O'Conner
Anyone have any ideas about this? If my question is too vague or ill-
formed, please let me know. I'm curious about your answers to this and
want to make the question as easy to respond to as possible.

Thanks again!


On Nov 19, 12:51 am, "John O'Conner"  wrote:
> I noticed that the XSTemplate.js file is differs between 2.0 RC1 and
> the trunk (specifically r7021). I am wondering what the implications
> are.
>
> In RC1, the XSTemplate.js (the cross-site linker template for the
> selection/landing js file) loads the target js file with a
> document.write("

Re: MouseOverHandler not called for text of Checkbox

2009-11-19 Thread dave
First and only time I'll bump this, but I've yet to find a solution.

Adding a MouseOverHandler to the GWT CheckBox widget only fires when
mousing over the checkbox itself from the top, left, or bottom.  It
does not fire when mousing over the text label or  when moving from
the text over the actual checkbox.

How can I add a MouseOverHandler that will fire when over the label of
a CheckBox?


On Nov 5, 9:34 am, dave  wrote:
> I've got a GWTCheckbox(created with text label) to which I add a
> MouseOverHandler and MouseOutHandler with the goal of doing some
> action on hover (and closing when leaving).
>
> The problem is that the OverHandler is only called when hovering over
> the actualcheckboxsquare from the top, left, or right.  It does not
> fire when hovering over the text (or entering the actualcheckboxfrom
> the left, when already over the text label).
>
> The MouseOutHandler handles the text label correctly, as it is not
> called when moving the mouse from over the textbox to over the text.
> It is only fired (correctly) when leaving the text.
>
> What am I missing?  There's nothing fancy to my example: just aCheckboxin a 
> FlowPanel that adds the mouse handlers.
>
> Thanks for any tips!
> dave

--

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




Re: UiBinder and "no appropriate method" error

2009-11-19 Thread Jeff Chimene
On Thu, Nov 19, 2009 at 10:55 AM, Thomas Matthijs  wrote:

> On Thu, Nov 19, 2009 at 18:35, Jeff Chimene
>  wrote:
> > Hi,
> >
> > I'm trying to decode the following error using 2.0-rc1:
> > 10:21:33.040 [ERROR] In ,
> > class TextBox has no appropriate setMaxLength() method
> >
> > Am I doing this right? Do I have to set such attributes in the class?
>
>
> It converts the case i believe, probably need to begin with a lower case
> letter
>
> 
>
> The following is good example source:
> trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml
>

Excellent! Thank you, Thomas.


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

--

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




Re: JSNI syntax question - calling Java methods from JSNI

2009-11-19 Thread Bryan
I came up with something that works by making 'javaMethod' static.  I
can call it like so that way.

@com.foo.bar.MyClass::javaMethod

This feels a bit like I'm jumping through a hackish hoop simply
because I don't know the syntax that is likely available to me for
doing the job.  Any help would be greatly appreciated.

On Nov 19, 5:07 pm, Bryan  wrote:
> I'm following the example seen here for 'calling Java methods from
> JSNI' and it works great.
>
> http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-g...
>
> I'm trying to do something slightly different though.  Here's what it
> is.
>
> package com.foo.bar;
>
> public class MyClass {
>
>         private void javaMethod(String s) {
>                 Window.alert("called the java method with String " + s);
>         }
>
>         private native String nativeMethod() /*-{
>
>                 var myFunc = function() {
>                         // trying to call the 'javaMethod' method from here 
> and the
> notation
>                         // at the link above does not work
>                         //
>                         // notation that is not working for me
>                         // 
> th...@com.foo.bar.myclass::javaMethod(Ljava/lang/String;)
> ('coming from nativeMethod.myFunc');
>                 }
>
>     }-*/;
>
> }
>
> It doesn't surprise me that what I'm trying doesn't work, I'm assuming
> the 'this' I'm trying to use is in the wrong scope.  Anyone have any
> suggestions for how I can get to that java method from within a native
> method that defines a function?

--

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




Re: GWT on PlayStation 3 (PS3) browser

2009-11-19 Thread bosco monkey
I just used this browser test - http://design215.com/browser2.php - on
my PS3 and its browser respond to a lot of IE5, 6, &7 features. I
suspect that since the reported user-agent string is "Mozilla/5.0
(PLAYSTATION 3; 1.00)", none of GWT's IE code is being loaded.

I'll try to figure out how to force my GWT app to always use it's IE
code.

-- Bosco


On Nov 18, 8:58 pm, Angel Marquez  wrote:
> I have been using the PS3 browser with TVersity and my primary objective is
> to use GWT in a similar fashion. BD-J apps are embedded java applications
> and I want to create the menu systems discless. If I could get the app
> engine tutorial to deploy I would check for you; but, I can't. I tried the
> PS3 browser with hulu, youtubeMovies to no avail. If you come up with
> resources for this please share.
>
> If you have a link to check on the browser post and I'll check it out on my
> end.
>
> On Wed, Nov 18, 2009 at 6:27 PM, bosco monkey wrote:
>
> > Has anyone gotten GWT to work on the PS3 browser? I tried the
> > barebones app created by the Eclipse GWT plugin on the PS3 and it
> > didn't work (only the static HTML showed up).
>
> > On the other hand, a simple window.onload does work. So at least the
> > PS3 browser has some JavaScript support. For example:
>
> >                window.onload = function() {
>
> >  document.getElementById("nameFieldContainer").innerHTML = "John";
>
> >  document.getElementById("sendButtonContainer").innerHTML = "Adams";
> >                }
>
> > -- Bosco
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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




JSNI syntax question - calling Java methods from JSNI

2009-11-19 Thread Bryan
I'm following the example seen here for 'calling Java methods from
JSNI' and it works great.

http://googlewebtoolkit.blogspot.com/2008/07/getting-to-really-know-gwt-part-1-jsni.html

I'm trying to do something slightly different though.  Here's what it
is.

package com.foo.bar;

public class MyClass {

private void javaMethod(String s) {
Window.alert("called the java method with String " + s);
}

private native String nativeMethod() /*-{

var myFunc = function() {
// trying to call the 'javaMethod' method from here and 
the
notation
// at the link above does not work
//
// notation that is not working for me
// 
th...@com.foo.bar.myclass::javaMethod(Ljava/lang/String;)
('coming from nativeMethod.myFunc');
}

}-*/;

}

It doesn't surprise me that what I'm trying doesn't work, I'm assuming
the 'this' I'm trying to use is in the wrong scope.  Anyone have any
suggestions for how I can get to that java method from within a native
method that defines a function?

--

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




Bloquear copy - paste

2009-11-19 Thread Jochelo
Ya tengo bloqueado el segundo botón con una función java script, ahora
quisiera saber cómo bloquear "ctrl + v" de forma genérica con una
función global o con alguna función para cada campo.
Lo que quiero llegar a hacer es que no peguen letras con "ctrl + v" en
un campo numérico.
Gracias.

--

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




Re: GWT Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5

2009-11-19 Thread Yozons Support on Gmail
I wish I had a fixed way to make it happen, but it seems like I get a few
different scenarios.

Sometimes, after lots of code changes while the debugger is running, when I
save the client .java file in Eclipse and it's compiled, FF will crash.
Other times, it's when I click RELOAD after making changes.

Sadly, FF is my main browser for all sorts of apps, so having it crash is a
pain.  I'll post back if I can make heads or tails out of what I see
happening.

--

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




listbox that contains widgets instead of just text..

2009-11-19 Thread Jaimon
hi,

i have need to create a listbox/drop down that create something other
then just plain text,
can some one show me how to do it? or tell me if it is possible to do
it?

regards
Me

--

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




Re: Problems using SliderBar from incubator project

2009-11-19 Thread Steve Souza
http://groups.google.com/group/google-web-toolkit

On Thu, Nov 19, 2009 at 4:15 PM, steve souza  wrote:

> I am using the SliderBar in the incubation project and have a few
> questions.   My general question is how do I use the Slider bar with
> the incubator project for GWT 1.7?
>
> I did the following.
>
> 1) Followed the instructions for using the incubator here.
>
> http://code.google.com/p/google-web-toolkit-incubator/wiki/HowToUseTheIncubator
> In particular I downloaded the jar from this link.   One thing I
> noticed this didn't have a version on it, so I am not sure or not it
> is for 1.7?
>
> 2) I saw that there was a download for 1.7 incubator here.  What is
> the difference between this and the above jar?  Eclipse needed this
> jar and gwt needed the previous one, however they don't seem to be
> compatible.
> http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?tm=2
>
> 3) I had read that the newer slider is
> import com.google.gwt.gen2.picker.client.SliderBar;
> and not
> import com.google.gwt.widgetideas.client.SliderBar
>
>
> However,

--

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




Problems using SliderBar from incubator project

2009-11-19 Thread steve souza
I am using the SliderBar in the incubation project and have a few
questions.   My general question is how do I use the Slider bar with
the incubator project for GWT 1.7?

I did the following.

1) Followed the instructions for using the incubator here.
http://code.google.com/p/google-web-toolkit-incubator/wiki/HowToUseTheIncubator
In particular I downloaded the jar from this link.   One thing I
noticed this didn't have a version on it, so I am not sure or not it
is for 1.7?

2) I saw that there was a download for 1.7 incubator here.  What is
the difference between this and the above jar?  Eclipse needed this
jar and gwt needed the previous one, however they don't seem to be
compatible.
http://code.google.com/p/google-web-toolkit-incubator/wiki/Downloads?tm=2

3) I had read that the newer slider is
import com.google.gwt.gen2.picker.client.SliderBar;
and not
import com.google.gwt.widgetideas.client.SliderBar


However,

--

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




Re: GWT Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5

2009-11-19 Thread Chris Ramsdale
The terminate option in the Debug pane will behave just as it has in 1.7 and
will terminate you application (thus terminating all open browser sessions).
The new Web Application Debug View provides information regarding each
browser session that is currently open. Thus is you were connected via FF,
Safari, and IE (each with a single open tab) you would see three open
sessions, each providing their own debug information.

In regards to the FF crash, would you mind responding with more detailed
steps so that we can attempt to reproduce it. Does it happen in previous
versions of FF?

- Chris

On Thu, Nov 19, 2009 at 2:48 PM, Open eSignForms  wrote:

> I am not sure why, but it seems after I start/stop debugging sessions
> one or two times, FF will crash when I try to launch a new debug
> session.  I do submit the bug report when FF prompts, so not sure if
> that gets to anybody who can help resolve it.
>
> One thing I'm not clear about is when I need to restart the debug
> session in Eclipse in this model.  It seems that my Debug page has a
> way to terminate (like before), but there also Web Application Debug
> View that shows launches with a terminate button, too.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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




Avoiding memory leaks during page/view changes in GWT module

2009-11-19 Thread Open eSignForms
My GWT module switches in different views based on what the user is
doing...starting with a login page view, then a main menu view, which
itself switches sub-views based on the option selected to work on.

When I switch to a new view, I call a "deactivate" method on the view
that's being taken out of commission.  It basically takes whatever
widget comprises its main container (typically a VerticalPanel) and
calls clear() to remove all widgets that were added to it.

Is that enough, or do I have to worry about other things?

I do use my own EventBus (HandlerManager) that panels often connect
to, so I am also removing those registrations.  And I do the same for
my Window resize handler when present.

But what about all the clickhandlers and other handlers added to
buttons, TextFields, etc.  Do these all have to be removed, or will
they go away when I clear the main component that contains all of
those fields?

--

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




Design Patterns

2009-11-19 Thread Lúcio Camilo
The component Composite and the object Command have something in common with
the design patterns with same name?

--

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




GWT Developer Plugin (GWT 2.0 RC1) crashes FF 3.5.5

2009-11-19 Thread Open eSignForms
I am not sure why, but it seems after I start/stop debugging sessions
one or two times, FF will crash when I try to launch a new debug
session.  I do submit the bug report when FF prompts, so not sure if
that gets to anybody who can help resolve it.

One thing I'm not clear about is when I need to restart the debug
session in Eclipse in this model.  It seems that my Debug page has a
way to terminate (like before), but there also Web Application Debug
View that shows launches with a terminate button, too.

--

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




Re: How create an EAR with GWT and other jars?

2009-11-19 Thread Parvez Shah
try this
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/39e0ff6325e4d504/55bfd342d77ec910#55bfd342d77ec910
this will make your gwt project a normal dynamic web project, from then on
it should be regular deployment

On Fri, Nov 20, 2009 at 12:20 AM, Jason Essington <
jas...@greenrivercomputing.com> wrote:

> That is simply a packaging question, not really a GWT question ...
>
> Simply add your .war file to your ear and specify that it is there in
> your application.xml file
>
> -jason
> On Nov 19, 2009, at 9:47 AM, iaio81 wrote:
>
> > Hi all,
> > Iìve deployed GWT as WAR in JBOSS and EJBS as jars, I would put all
> > them in EAR. How can I include with Eclipse, GWT application in EAR
> > module?
> >
> > --
> >
> > You received 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=
> > .
> >
> >
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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




Re: How to handle image/gif response

2009-11-19 Thread Martin Trummer
if you only want to display an image there's no need for a form

this might be useful:
http://bit.ly/2Wgvtm

On 19 Nov., 20:22, Martin Trummer  wrote:
> what are you trying to do?
>
> what is the form good for?
> does it upload the image and afterwards you want to display this
> uploaded image?
>
> On 19 Nov., 13:01, zhangj5  wrote:
>
> > Hi all,
> > I have a question about how to handle image/gif type response on
> > client side, any suggestion will be great.
> > There is a service which responds for retrieving image (only one each
> > time at the moment) from database. The code is something like,
>
> > JDBC Connection
> > Construct MYSQL query.
> > Execute query
> > If has ResultSet, retrieve first one {
> > image = rs.getBlob("img"); //save image into Blob image, “img” is the
> > only entity in the image table.
>
> > }
>
> > Then,
> > response.setContentType("image/gif"); //set response type
> > InputStream in = image.getBinaryStream();       //output Blob image to
> > InputStream
> > int bufferSize = 1024;  //buffer size
> > byte[] buffer = new byte[bufferSize];           //initial buffer
> > int length =0;
> > while ((length = in.read(buffer)) != -1) {//read length data from
> > inputstream and store into buffer
> >         out.write(buffer, 0, length);           //write into
> > ServletOutputStream}
>
> > in.close();
> > out.flush();            //write out
>
> > The code on client side
> > 
> > imgform.setAction(GWT.getModuleBaseURL() + "serviceexample/
> > ImgRetrieve");
> > 
> > ClickListener {
> > OnClick, then imgform.submit();
>
> > }
>
> > formHandler {
>
> >         onSubmit, form validation
>
> >         onSubmitComplete
> >             ??? //handle response, and display image
> >         Here is my question, i had tried
> >         Image img = new Image(GWT.getHostPageBaseURL()
> > +"serviceexample/ImgRetrieve");
> >         mg.setSize("300", "300");
> >         imgpanel.add(img);
> >         but i only got a non-displayed image with 300X300 size.
>
> > }
>
> > So, how should i handle the responde in this case?
>
> > 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=.




Re: How to handle image/gif response

2009-11-19 Thread Martin Trummer
what are you trying to do?

what is the form good for?
does it upload the image and afterwards you want to display this
uploaded image?

On 19 Nov., 13:01, zhangj5  wrote:
> Hi all,
> I have a question about how to handle image/gif type response on
> client side, any suggestion will be great.
> There is a service which responds for retrieving image (only one each
> time at the moment) from database. The code is something like,
>
> JDBC Connection
> Construct MYSQL query.
> Execute query
> If has ResultSet, retrieve first one {
> image = rs.getBlob("img"); //save image into Blob image, “img” is the
> only entity in the image table.
>
> }
>
> Then,
> response.setContentType("image/gif"); //set response type
> InputStream in = image.getBinaryStream();       //output Blob image to
> InputStream
> int bufferSize = 1024;  //buffer size
> byte[] buffer = new byte[bufferSize];           //initial buffer
> int length =0;
> while ((length = in.read(buffer)) != -1) {//read length data from
> inputstream and store into buffer
>         out.write(buffer, 0, length);           //write into
> ServletOutputStream}
>
> in.close();
> out.flush();            //write out
>
> The code on client side
> 
> imgform.setAction(GWT.getModuleBaseURL() + "serviceexample/
> ImgRetrieve");
> 
> ClickListener {
> OnClick, then imgform.submit();
>
> }
>
> formHandler {
>
>         onSubmit, form validation
>
>         onSubmitComplete
>             ??? //handle response, and display image
>         Here is my question, i had tried
>         Image img = new Image(GWT.getHostPageBaseURL()
> +"serviceexample/ImgRetrieve");
>         mg.setSize("300", "300");
>         imgpanel.add(img);
>         but i only got a non-displayed image with 300X300 size.
>
> }
>
> So, how should i handle the responde in this case?
>
> 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=.




Re: How create an EAR with GWT and other jars?

2009-11-19 Thread Jason Essington
That is simply a packaging question, not really a GWT question ...

Simply add your .war file to your ear and specify that it is there in  
your application.xml file

-jason
On Nov 19, 2009, at 9:47 AM, iaio81 wrote:

> Hi all,
> Iìve deployed GWT as WAR in JBOSS and EJBS as jars, I would put all
> them in EAR. How can I include with Eclipse, GWT application in EAR
> module?
>
> --
>
> You received 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= 
> .
>
>

--

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




Re: How create an EAR with GWT and other jars?

2009-11-19 Thread Dalla
I guess you could do it with maven somehow, but I´m not that good with
maven,
and tbh I have been asking myself this exact same question. Let´s hope
someone can help :-)

On 19 Nov, 17:47, iaio81  wrote:
> Hi all,
> Iìve deployed GWT as WAR in JBOSS and EJBS as jars, I would put all
> them in EAR. How can I include with Eclipse, GWT application in EAR
> module?

--

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




Re: GWT compiler option to simply validate code

2009-11-19 Thread MonkeyMike
Awesome!  Thanks! :)

On Nov 19, 2:19 am, Thomas Broyer  wrote:
> On Nov 19, 2:52 am, MonkeyMike  wrote:
>
>
>
> > Hello,
>
> >    I am creating a GWT Overlay Type library, and have just written an
> > ant build file for creating the JAR file that GWT applications will
> > import.  To maintain code integrity, I make the JAR creation depend on
> > a java compile of all the code, and also a gwt compile.  Obviously,
> > this is meant to ensure that the code in the library is acceptable
> > Java, and also that it is acceptable GWT.
>
> >    When I run the GWT compiler, however, I get an error related to the
> > fact that my library has no entry point...
>
> > -
> > Buildfile: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml
> > javac-compile:
> >     [javac] Compiling 2 source files to C:\Data\Dev
> > \EclipseWorkspaceTrunk\gwtgfx\build\javac
> > gwt-compile:
> >      [java] Compiling module gwtgfx.GwtGfx
> >      [java]    [ERROR] Module has no entry points defined
>
> > BUILD FAILED
> > C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:25: The following
> > error occurred while executing this line:
> > C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:45: Java returned:
> > 1
>
> > Total time: 3 seconds
> > -
>
> >   Of course, it makes perfect sense that my library has no entry point
> > since it is, in fact, a library... not an application.
>
> >    Is there an option for the GWT compiler to do only the parts that I
> > want here?  I want the GWT compiler to ensure, for example, that all
> > of my JavaScriptObject subclasses follow the specified restrictions
> > (has a protected no-arg constructor, instance methods are final,
> > etc)... and anything else that the GWT compiler might do now, or in
> > the future, to check that the GWT code is valid.  If not having an
> > entry point means that there is no reasonable way to do one or more of
> > the compiler steps, then that should be okay because those steps
> > probably aren't relevant for a library anyways.
>
> >    As a temporary hack, I guess I am going to include an entry point,
> > but I really don't want to ship this.  Is there a better alternative?
>
> > Thanks in advance. :)
>
> There's a -validateOnly flag that doesn't mandate an entry point (and
> should check that all public classes can be compiled).

--

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




Re: GWT vs ExtJs

2009-11-19 Thread David Durham
> On Thu, Nov 19, 2009 at 12:11 PM, Palani  wrote:
>> We are evaluating GWT and Ext-JS for our application development.
>>
>> With GWT,  I do not need to mess with Java Script and all the
>> development can be done in Java.
>>
>> With Ext-Js, I need to learn JavaScript and it is not strongly typed
>> language.
>>
>> Any other guidance would be appreciated.


if you end up going the extgwt route:
http://www.extjs.com/products/gxt/, I wrote a library that might be
useful to you.

My library here:  http://code.google.com/p/gxtforms/

Demo here: http://gxtforms.appspot.com/

-Dave

--

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




Re: GWT vs ExtJs

2009-11-19 Thread Yozons Support on Gmail
Remember, too, that EXTJS is GPL code so you either have to be pure open
source or you need a commercial license.  GWT's Apache license is more
liberal and allows it to be used in commercial settings.

--

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




Re: UiBinder and "no appropriate method" error

2009-11-19 Thread Thomas Matthijs
On Thu, Nov 19, 2009 at 18:35, Jeff Chimene
 wrote:
> Hi,
>
> I'm trying to decode the following error using 2.0-rc1:
> 10:21:33.040 [ERROR] In ,
> class TextBox has no appropriate setMaxLength() method
>
> Am I doing this right? Do I have to set such attributes in the class?


It converts the case i believe, probably need to begin with a lower case letter



The following is good example source:
trunk/user/test/com/google/gwt/uibinder/test/client/WidgetBasedUi.ui.xml

--

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




Re: GWT with IntelliJ?

2009-11-19 Thread Brian
I use IntelliJ and have never used the Eclipse GWT plugin (other than
a hello world example long before I actually started creating
something real in GWT). I find the GWT facet to be extremely helpful,
mostly for code navigation and detecting errors with conventions that
normally wouldn't be checked until runtime. For example, it
understands that the ID that you pass into RootPanel.get() should have
a corresponding element in the HTML page. It also knows the methods
for setting the style name on a GWT widget and will let you browse
between those IDs and your CSS file.

Where I think it really shines is if you use GWT-RPC because it
understands the relationships between the client-side async interface
and the server-side interface and implementation. What this means is
that if you say "go to implementation" on an async method call, it
will take you to the implementation of the server-side interface. The
navigation works in the other direction, too; if you say "find usages"
on the server-side method, it will find invocations of the
corresponding method of the corresponding async interface.

It may be that the Eclipse plugin has these features too. At any rate,
I think those kinds of features are really valuable when it comes to
IDE support.

-Brian

On Nov 18, 2:52 pm, Jason Rosenberg  wrote:
> I see in the docs that there seems to be special support for GWT in
> Eclipse (with the developer plugin).
>
> I have been using IntelliJ, I'm wondering if I will be ok, or  should
> really switch to Eclipse.
>
> IntelliJ does seem to have a GWT 'facet', but I don't think it has all
> that the eclipse plugin has.
>
> What are the main benefits of using the Eclipse GWT plugin?
>
> Thanks,
>
> Jason

--

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




UiBinder and "no appropriate method" error

2009-11-19 Thread Jeff Chimene
Hi,

I'm trying to decode the following error using 2.0-rc1:
10:21:33.040 [ERROR] In ,
class TextBox has no appropriate setMaxLength() method

Am I doing this right? Do I have to set such attributes in the class?

I found an earlier post from TBroyer that seems to indicate that one just
references appropriate method widgets. I see that the XML attribute gets
turned into "setXXX()"
However, I can't find any documentation on this technique.

--

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




Re: GWT vs ExtJs

2009-11-19 Thread Christian Goudreau
The Ext-JS component library is richer than what comes with GWT only. Ext Js
have done some nice work to get the JS library available in Java trough the
GWT-EXT. You can see that on their website.

There's also a EXT-GWT project based on Ext-JS, but you'll need the Js open
sources library anyway.

So it's no like you need to choose betweed them... Ext-JS is not the same
thing as GWT... You can have both !

Christian

On Thu, Nov 19, 2009 at 12:11 PM, Palani  wrote:

> We are evaluating GWT and Ext-JS for our application development.
>
> With GWT,  I do not need to mess with Java Script and all the
> development can be done in Java.
>
> With Ext-Js, I need to learn JavaScript and it is not strongly typed
> language.
>
> Any other guidance would be appreciated.
>
>
> Thank you in advance.
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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




GWT vs ExtJs

2009-11-19 Thread Palani
We are evaluating GWT and Ext-JS for our application development.

With GWT,  I do not need to mess with Java Script and all the
development can be done in Java.

With Ext-Js, I need to learn JavaScript and it is not strongly typed
language.

Any other guidance would be appreciated.


Thank you in advance.

--

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




Re: NT User name

2009-11-19 Thread Chad
Ben,

You can use NTLM, LDAP, or Kerberos for that. The easiest (for both
you and your users) is NTLM. You'll want to use the Jespa library
(http://www.ioplex.com/). I am not affiliated with them in any way,
but I do use the product. With that, all you need to do is add some
settings to your web.xml file and you will be able to get the username
from your server-side code. Everything you will need is in their
documentation and they have a 60-day trial. After that it is limited
to 25 users. If you have 25 or fewer users, you can use their product
for free.

HTH,
Chad

On Nov 19, 10:13 am, Benjamin  wrote:
> A little stuck on this today, there are some posts on the subject but
> the seem outdated.
>
> I'm building a web app using GWT the is running internally on a JBOSS
> Server. I need to get the user name of the current user logged into
> the XP Workstation (via Active Directory) who is viewing the web
> site.
>
> In ASP.NET i would have set IIS to NT authentication and used
> request.servervaraibles("LOGON_USER") to get it
>
> I'm having trouble finding out the equivilitent in this framework. Any
> guidence would be much appreciated. I just need their user name and
> don't need to pass on any security tokens etc)
>
> Ben

--

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




Re: GWT 2.0 + Netbeans

2009-11-19 Thread Aekold
Yes, gwt4nb is working with GWT 2.0 as you can see by Description of
GWT4NBV2.6.9 on their downloads page.

--

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




How create an EAR with GWT and other jars?

2009-11-19 Thread iaio81
Hi all,
Iìve deployed GWT as WAR in JBOSS and EJBS as jars, I would put all
them in EAR. How can I include with Eclipse, GWT application in EAR
module?

--

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




GWT 2.0 + Netbeans

2009-11-19 Thread MN
i see there is a eclipse plugin. and some write with the gwt 2.0
milestone you need the eclipse plugin to get it work

is there also a netbeans plugin from google planned?


is 2.0 working with the exisiting GWT4NB plugin?

--

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




Re: Error from build checking for updates

2009-11-19 Thread ian12312
It is 1.7.1 - it has been working fine until it started trying to
check for updates.

On Nov 19, 11:30 am, Chris Ramsdale  wrote:
> Ian,
>
> What version of GWT are you attempting to build with?
>
> On Thu, Nov 19, 2009 at 10:27 AM, ian12312  wrote:
> > I am building my GWT using ant and it has been working great until
> > now.  I am now getting an error when GWT is attempting to check for
> > updates (see the error below).  How can I either fix the URL that it
> > is attempting to access or simply stop it from trying to check for
> > updates?
>
> > Error:
>
> > gwtc:
> >     [java] java.net.MalformedURLException: unknown protocol: c
> >     [java]     at java.net.URL.(URL.java:608)
> >     [java]     at java.net.URL.(URL.java:498)
> >     [java]     at sun.misc.URLClassPath$JarLoader.parseClassPath
> > (URLClassPath.java:1118)
> >     [java]     at sun.misc.URLClassPath$JarLoader.getClassPath
> > (URLClassPath.java:1091)
> >     [java]     at sun.misc.URLClassPath.getLoader(URLClassPath.java:476)
> >     [java]     at sun.misc.URLClassPath.getResource(URLClassPath.java:
> > 322)
> >     [java]     at java.net.URLClassLoader$ClassFinder.run
> > (URLClassLoader.java:959)
> >     [java]     at java.security.AccessController.doPrivileged
> > (AccessController.java:275)
> >     [java]     at java.net.URLClassLoader.findClass(URLClassLoader.java:
> > 487)
> >     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:606)
> >     [java]     at sun.misc.Launcher$AppClassLoader.loadClass
> > (Launcher.java:327)
> >     [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
> >     [java]     at java.util.ResourceBundle.loadBundle
> > (ResourceBundle.java:1075)
> >     [java]     at java.util.ResourceBundle.findBundle
> > (ResourceBundle.java:942)
> >     [java]     at java.util.ResourceBundle.getBundleImpl
> > (ResourceBundle.java:779)
> >     [java]     at java.util.ResourceBundle.getBundle(ResourceBundle.java:
> > 593)
> >     [java]     at sun.text.resources.LocaleData$1.run(LocaleData.java:
> > 137)
> >     [java]     at java.security.AccessController.doPrivileged
> > (AccessController.java:193)
> >     [java]     at sun.text.resources.LocaleData.getBundle
> > (LocaleData.java:135)
> >     [java]     at sun.text.resources.LocaleData.getDateFormatZoneData
> > (LocaleData.java:131)
> >     [java]     at java.text.DateFormatSymbols.cacheLookup
> > (DateFormatSymbols.java:436)
> >     [java]     at java.text.DateFormatSymbols.initializeData
> > (DateFormatSymbols.java:486)
> >     [java]     at java.text.DateFormatSymbols.
> > (DateFormatSymbols.java:115)
> >     [java]     at java.util.TimeZone.retrieveDisplayNames(TimeZone.java:
> > 427)
> >     [java]     at java.util.TimeZone.getDisplayNames(TimeZone.java:415)
> >     [java]     at java.util.TimeZone.getDisplayName(TimeZone.java:364)
> >     [java]     at java.util.Date.toString(Date.java:1039)
> >     [java]     at java.lang.String.valueOf(String.java:1499)
> >     [java]     at java.lang.StringBuilder.append(StringBuilder.java:194)
> >     [java]     at com.google.gwt.dev.shell.CheckForUpdates.check
> > (CheckForUpdates.java:288)
> >     [java]     at com.google.gwt.dev.shell.PlatformSpecific$1.call
> > (PlatformSpecific.java:65)
> >     [java]     at com.google.gwt.dev.shell.PlatformSpecific$1.call
> > (PlatformSpecific.java:62)
> >     [java]     at java.util.concurrent.FutureTask$Sync.innerRun
> > (FutureTask.java:284)
> >     [java]     at java.util.concurrent.FutureTask.run(FutureTask.java:
> > 138)
> >     [java]     at java.lang.Thread.run(Thread.java:799)
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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




Re: Error from build checking for updates

2009-11-19 Thread Chris Ramsdale
Ian,

What version of GWT are you attempting to build with?

On Thu, Nov 19, 2009 at 10:27 AM, ian12312  wrote:

> I am building my GWT using ant and it has been working great until
> now.  I am now getting an error when GWT is attempting to check for
> updates (see the error below).  How can I either fix the URL that it
> is attempting to access or simply stop it from trying to check for
> updates?
>
> Error:
>
> gwtc:
> [java] java.net.MalformedURLException: unknown protocol: c
> [java] at java.net.URL.(URL.java:608)
> [java] at java.net.URL.(URL.java:498)
> [java] at sun.misc.URLClassPath$JarLoader.parseClassPath
> (URLClassPath.java:1118)
> [java] at sun.misc.URLClassPath$JarLoader.getClassPath
> (URLClassPath.java:1091)
> [java] at sun.misc.URLClassPath.getLoader(URLClassPath.java:476)
> [java] at sun.misc.URLClassPath.getResource(URLClassPath.java:
> 322)
> [java] at java.net.URLClassLoader$ClassFinder.run
> (URLClassLoader.java:959)
> [java] at java.security.AccessController.doPrivileged
> (AccessController.java:275)
> [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:
> 487)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:606)
> [java] at sun.misc.Launcher$AppClassLoader.loadClass
> (Launcher.java:327)
> [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
> [java] at java.util.ResourceBundle.loadBundle
> (ResourceBundle.java:1075)
> [java] at java.util.ResourceBundle.findBundle
> (ResourceBundle.java:942)
> [java] at java.util.ResourceBundle.getBundleImpl
> (ResourceBundle.java:779)
> [java] at java.util.ResourceBundle.getBundle(ResourceBundle.java:
> 593)
> [java] at sun.text.resources.LocaleData$1.run(LocaleData.java:
> 137)
> [java] at java.security.AccessController.doPrivileged
> (AccessController.java:193)
> [java] at sun.text.resources.LocaleData.getBundle
> (LocaleData.java:135)
> [java] at sun.text.resources.LocaleData.getDateFormatZoneData
> (LocaleData.java:131)
> [java] at java.text.DateFormatSymbols.cacheLookup
> (DateFormatSymbols.java:436)
> [java] at java.text.DateFormatSymbols.initializeData
> (DateFormatSymbols.java:486)
> [java] at java.text.DateFormatSymbols.
> (DateFormatSymbols.java:115)
> [java] at java.util.TimeZone.retrieveDisplayNames(TimeZone.java:
> 427)
> [java] at java.util.TimeZone.getDisplayNames(TimeZone.java:415)
> [java] at java.util.TimeZone.getDisplayName(TimeZone.java:364)
> [java] at java.util.Date.toString(Date.java:1039)
> [java] at java.lang.String.valueOf(String.java:1499)
> [java] at java.lang.StringBuilder.append(StringBuilder.java:194)
> [java] at com.google.gwt.dev.shell.CheckForUpdates.check
> (CheckForUpdates.java:288)
> [java] at com.google.gwt.dev.shell.PlatformSpecific$1.call
> (PlatformSpecific.java:65)
> [java] at com.google.gwt.dev.shell.PlatformSpecific$1.call
> (PlatformSpecific.java:62)
> [java] at java.util.concurrent.FutureTask$Sync.innerRun
> (FutureTask.java:284)
> [java] at java.util.concurrent.FutureTask.run(FutureTask.java:
> 138)
> [java] at java.lang.Thread.run(Thread.java:799)
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=.
>
>
>

--

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




Re: GWT application that can run on the server and client?

2009-11-19 Thread Ezra
Thanks for the info. It'll be useful as I develop my app.

Ezra

On Nov 17, 6:22 pm, Chris Ramsdale  wrote:
> Since both the client and server portions of GWT apps are written in Java
> there's no reason why you couldn't run the client portion of your app on the
> server. That said, there are a couple of items you should keep in mind:
>
> 1. Code that will be executed on the server side has the ability to utilize
> more of the JRE since it won't be run in the browser, and as such won't be
> limited to the classes and libraries available within the browser.
> 2. Client side code that expects a UI might not run correctly on the server
> side.
> 3. A model you might find more powerful is the ability to "share" code
> between the client and the server. For example, model objects such as
> Contacts or Addresses can have a common code base that that allow both the
> client and the server to manipulate and extract data. Therefore an update to
> the model doesn't require an update to both the client and server code base.
>
> - Chris
>
> On Tue, Nov 17, 2009 at 5:26 PM, Ezra  wrote:
> > Hi GWT community,
>
> > Is it possible to have a gwt application run on the server and the
> > client?  Basically, can a GWT app that was written for the client be
> > ported to run on a server?
>
> > The benefit of using GWT would be that it is written in Java (which
> > can run on a server) and it can be compiled into JavaScript (which can
> > run on the client). Having the ability to pick where the code runs
> > would be a big benefit for the application I am developing. Has anyone
> > tried this before? Can you give me some advice?
>
> > Thanks,
> > Ezra
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=.

--

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




NT User name

2009-11-19 Thread Benjamin
A little stuck on this today, there are some posts on the subject but
the seem outdated.

I'm building a web app using GWT the is running internally on a JBOSS
Server. I need to get the user name of the current user logged into
the XP Workstation (via Active Directory) who is viewing the web
site.

In ASP.NET i would have set IIS to NT authentication and used
request.servervaraibles("LOGON_USER") to get it

I'm having trouble finding out the equivilitent in this framework. Any
guidence would be much appreciated. I just need their user name and
don't need to pass on any security tokens etc)


Ben

--

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




Error from build checking for updates

2009-11-19 Thread ian12312
I am building my GWT using ant and it has been working great until
now.  I am now getting an error when GWT is attempting to check for
updates (see the error below).  How can I either fix the URL that it
is attempting to access or simply stop it from trying to check for
updates?

Error:

gwtc:
 [java] java.net.MalformedURLException: unknown protocol: c
 [java] at java.net.URL.(URL.java:608)
 [java] at java.net.URL.(URL.java:498)
 [java] at sun.misc.URLClassPath$JarLoader.parseClassPath
(URLClassPath.java:1118)
 [java] at sun.misc.URLClassPath$JarLoader.getClassPath
(URLClassPath.java:1091)
 [java] at sun.misc.URLClassPath.getLoader(URLClassPath.java:476)
 [java] at sun.misc.URLClassPath.getResource(URLClassPath.java:
322)
 [java] at java.net.URLClassLoader$ClassFinder.run
(URLClassLoader.java:959)
 [java] at java.security.AccessController.doPrivileged
(AccessController.java:275)
 [java] at java.net.URLClassLoader.findClass(URLClassLoader.java:
487)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:606)
 [java] at sun.misc.Launcher$AppClassLoader.loadClass
(Launcher.java:327)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:563)
 [java] at java.util.ResourceBundle.loadBundle
(ResourceBundle.java:1075)
 [java] at java.util.ResourceBundle.findBundle
(ResourceBundle.java:942)
 [java] at java.util.ResourceBundle.getBundleImpl
(ResourceBundle.java:779)
 [java] at java.util.ResourceBundle.getBundle(ResourceBundle.java:
593)
 [java] at sun.text.resources.LocaleData$1.run(LocaleData.java:
137)
 [java] at java.security.AccessController.doPrivileged
(AccessController.java:193)
 [java] at sun.text.resources.LocaleData.getBundle
(LocaleData.java:135)
 [java] at sun.text.resources.LocaleData.getDateFormatZoneData
(LocaleData.java:131)
 [java] at java.text.DateFormatSymbols.cacheLookup
(DateFormatSymbols.java:436)
 [java] at java.text.DateFormatSymbols.initializeData
(DateFormatSymbols.java:486)
 [java] at java.text.DateFormatSymbols.
(DateFormatSymbols.java:115)
 [java] at java.util.TimeZone.retrieveDisplayNames(TimeZone.java:
427)
 [java] at java.util.TimeZone.getDisplayNames(TimeZone.java:415)
 [java] at java.util.TimeZone.getDisplayName(TimeZone.java:364)
 [java] at java.util.Date.toString(Date.java:1039)
 [java] at java.lang.String.valueOf(String.java:1499)
 [java] at java.lang.StringBuilder.append(StringBuilder.java:194)
 [java] at com.google.gwt.dev.shell.CheckForUpdates.check
(CheckForUpdates.java:288)
 [java] at com.google.gwt.dev.shell.PlatformSpecific$1.call
(PlatformSpecific.java:65)
 [java] at com.google.gwt.dev.shell.PlatformSpecific$1.call
(PlatformSpecific.java:62)
 [java] at java.util.concurrent.FutureTask$Sync.innerRun
(FutureTask.java:284)
 [java] at java.util.concurrent.FutureTask.run(FutureTask.java:
138)
 [java] at java.lang.Thread.run(Thread.java:799)

--

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




Re: Support for Streaming Video

2009-11-19 Thread Cristiano
it is a complex matter...
what do you mean for "streaming video"?
A. just to play a video file that reside on a server and it is
accessed by HTTP,
B. play a real video stream like:
   1. RTSP + RTP (ietf standards) stream (i.e. 
rtsp://mystreamingserver:554/myStream)
   2. RTMP (flash technology) stream (i.e.
rtmp://mystreamingserver:1935/streamApp/appInstance/myStream)
   3. HTTP stream (tricky technology that sends a infinite video file
as response) (i.e. http://mystreamingserver:80/myStream)
   4. other streaming solution not using an URL

(Point 4 solutions require some SDK, mainly ActiveX, which allow to
start the playback of a video file by calling method using javascript)







On 19 Nov, 14:31, Arthur Kalmenson  wrote:
> No, you would have to use flash or the HTML 5 video tag for that.
>
> --
> Arthur Kalmenson
>
> On Tue, Oct 27, 2009 at 10:24 PM, compuroad
>
>  wrote:
>
> > Do GWT and AppEngine support streaming video?
> > --~--~-~--~~~---~--~~
> > You received 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 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en
> > -~--~~~~--~~--~--~---

--

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




How to handle image/gif response

2009-11-19 Thread zhangj5
Hi all,
I have a question about how to handle image/gif type response on
client side, any suggestion will be great.
There is a service which responds for retrieving image (only one each
time at the moment) from database. The code is something like,

JDBC Connection
Construct MYSQL query.
Execute query
If has ResultSet, retrieve first one {
image = rs.getBlob("img"); //save image into Blob image, “img” is the
only entity in the image table.
}

Then,
response.setContentType("image/gif");   //set response type
InputStream in = image.getBinaryStream();   //output Blob image to
InputStream
int bufferSize = 1024;  //buffer size
byte[] buffer = new byte[bufferSize];   //initial buffer
int length =0;
while ((length = in.read(buffer)) != -1) {//read length data from
inputstream and store into buffer
out.write(buffer, 0, length);   //write into
ServletOutputStream
}
in.close();
out.flush();//write out

The code on client side

imgform.setAction(GWT.getModuleBaseURL() + "serviceexample/
ImgRetrieve");

ClickListener {
OnClick, then imgform.submit();
}


formHandler {

onSubmit, form validation

onSubmitComplete
??? //handle response, and display image
Here is my question, i had tried
Image img = new Image(GWT.getHostPageBaseURL()
+"serviceexample/ImgRetrieve");
mg.setSize("300", "300");
imgpanel.add(img);
but i only got a non-displayed image with 300X300 size.
}

So, how should i handle the responde in this case?


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




Component Widget not visible in firefox

2009-11-19 Thread NTDeaf
Hi all...

I'm taking the first steps on my own after successfully completing a couple
of tutorials and books.
However when I want to test my code on a real server, it does not display in
the browser..When the code is compiled in the hosted browser, there is no
problem.  When I press the button
Compile/Browse in the hosted browser, I only see the html contents
displayed: only the Title which is set in the index.html file.

I suspect the javascript file is not found in the browser, but there is no
error / message indicating as such. Where can I find out where it is going
wrong?

This are the contents of the files:

index.html:


Financial App





FinAp
 



finAp.java:

package org.blackbox.finap.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.DOM;

public class FinAp implements EntryPoint {

public void onModuleLoad() {

finApComponent finAppie = new finApComponent();
RootPanel.get("mainScreen").add(finAppie);
}
}

finApComponent.java:
package org.blackbox.finap.client;

import com.google.gwt.user.client.ui.*;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.core.client.GWT;


public class finApComponent extends Composite {


private DockPanel composite = new DockPanel();
private Label testLabel1 = new Label();
private Label testLabel2  = new Label();
private Button button1 = new Button("North1");

public  finApComponent() {

// Build the North - Menu Panel
composite.add(button1,composite.NORTH);
composite.setCellHeight(button1,"80px");

//Build the South- Overview Panel
HorizontalPanel overview = new HorizontalPanel();
overview.add(testLabel1);
overview.add(testLabel2);

composite.add(overview,composite.SOUTH);

// Build the West - IncomePanel
VerticalPanel incomePanel = new VerticalPanel();

   //Build the Center - ExpensesPanel
Grid expensesGrid = new Grid(3,4);

  //set up the grid for the expenses.
   //create the grid structure
  for (int r=0;r<3;++r) {
for (int c=0;c<4;++c) {
expensesGrid.setWidget(r,c,new HTML("A"));
}
  }
composite.add(expensesGrid,composite.CENTER);

initWidget(composite);
}

--

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




Internalization in GWT application..

2009-11-19 Thread Parasuraman
Hi All,

How we can Localize the "OK" button in the Window.alert("Message"); in
GWT..?

Can you please tell me how we can localize OK button.. Please help to
localize Window.alert();

Thanks in Advance...

--

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




background image issue - loading in gwt .js file to html page destroys background jpg

2009-11-19 Thread chewy
Hi,

My HTML page has a background image jpg - set in the css file.
When the page starts up - the image is displayed , but as soon as my
GWT x.nocache.js file is being loaded in - the background image
dissappears.

Anybody got any ideas why this is and how I can fix the issue

Thank you

Chewy

--

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




Navigation Canceled

2009-11-19 Thread A.M
I used gwt for one project more than one month without any problems.
Yesterday, I worked it. It was OK. I closed project and run it after
several minutes. But I saw Navigation Canceled in localhost. I use
windows vista. But I don’t think it is related to my operating system.
I did reset internet explorer setting, I reinstall firefox. But the
problem is not resolved.
Would you please help me?

--

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




External jars

2009-11-19 Thread bradrover
I've got a library I'm using in a GWT project. I exported it from
another project and put it in a /lib folder in my GWT project. Is
there a way I can get it to automatically copy to my WEB-INF/Lib
folder during a compile, or do people normally just copy the jar there
manually? I'm a java newbie so sorry if this is a faq. I've been
struggling to figure out why my app fails in tomcat but this is why.

--

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




GwtTestCase + ElcEmma

2009-11-19 Thread Jeff Larsen
I'm trying to get emma to work with GwtTestCase. I've followed the
directions in

http://code.google.com/p/google-web-toolkit/source/browse/tools/redist/emma/README.TXT
but when I swap out the emma.jar in the
com.mountainminds.eclemma.core_1.4.3.jar with the one from the
previous repository and then restart eclipse EclEmma is gone. I have
to uninstall and reinstall eclemma in order for it to start.

Has anyone been able to get Eclemma to work with the patched emma.jar
since they changed the plugin to 1.4.3?

--

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




Re: Is there a UIBinder DTD or Schema?

2009-11-19 Thread Thomas Broyer


On Nov 19, 2:46 pm, Arthur Kalmenson  wrote:
> From what I've heard, it's being worked on, not sure when it'll be
> released though.

There's an XSD (two actually) on the SVN, that AFAIK is used in the
Eclipse Plug-in "RC" (see [1]), but the SVN commit log said they would
be removed for the 2.0 "final".

[1] http://code.google.com/p/google-web-toolkit/wiki/GWT_2_0_RC

--

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




Re: Is there a UIBinder DTD or Schema?

2009-11-19 Thread Arthur Kalmenson
>From what I've heard, it's being worked on, not sure when it'll be
released though.

--
Arthur Kalmenson



On Sat, Oct 31, 2009 at 7:01 AM, Maarten Volders
 wrote:
>
> Is there a UIBinder DTD or Schema so that I can enable it for xml auto-
> completion within my IDE (IntelliJ).
>
> 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
> -~--~~~~--~~--~--~---
>
>

--

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




Re: Support for Streaming Video

2009-11-19 Thread Arthur Kalmenson
No, you would have to use flash or the HTML 5 video tag for that.

--
Arthur Kalmenson



On Tue, Oct 27, 2009 at 10:24 PM, compuroad
 wrote:
>
> Do GWT and AppEngine support streaming video?
> --~--~-~--~~~---~--~~
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en
> -~--~~~~--~~--~--~---
>
>

--

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




Re: Navigation and GWT

2009-11-19 Thread Nathan Wells
1) Navigation: GWT doesn't specifically handle navigation, but rather,
gives you tools to handle navigation. We use the EventBus paradigm
described here:

http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

That video also gives a lot of great ideas for architecting your
application.

2) 
http://www.google.com/search?rlz=1C1GGLS_enUS352US352&sourceid=chrome&ie=UTF-8&q=gwt+widget+showcase

On Nov 18, 1:18 am, Jaber  wrote:
> Hi,
>
> iam on the process of evaluating GWT for a new project, i have 2
> questions:
>
> - How does GWT handles or lets say simulate the navigation between
> pages, and is there any atricles/best practices for handling that.
>
> - Where can i find a list of GWT widgets demo, where i can introduce
> GWT in action, and here i mean the basic ones which is already shipped
> with the GWT libraries not the extended ones.

--

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




JSOs, SingleJsoImpl, and Generators

2009-11-19 Thread Brendan
Now that a javascript overlay can inherit an interface, so long as it
is the only JSO that does, is there anything preventing the use of
Generators to define new JSOs?

The use case I'm thinking of would be a javascript object that is
partially (or entirely) defined by browser specific fields and methods
(Moz*(), Webkit*(), etc). Since only one JSO would be generated per
permutation, this would guarantee that only one JSO was implementing
that interface for any particular permutation.

While this can be accomplished by a wrapper class with overridden
methods, the boilerplate code (even auto-generated), is lengthy and
annoying to maintain for objects which need only a few methods
overridden. And more people than me must find the spread of
"impl" (impl-itis?) and decorator classes grating on a code-aesthetics
level.

Does the compilation sequence still prevent this? Has anyone come up
with a better workaround?

--

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




Re: GWT compiler option to simply validate code

2009-11-19 Thread Thomas Broyer


On Nov 19, 2:52 am, MonkeyMike  wrote:
> Hello,
>
>    I am creating a GWT Overlay Type library, and have just written an
> ant build file for creating the JAR file that GWT applications will
> import.  To maintain code integrity, I make the JAR creation depend on
> a java compile of all the code, and also a gwt compile.  Obviously,
> this is meant to ensure that the code in the library is acceptable
> Java, and also that it is acceptable GWT.
>
>    When I run the GWT compiler, however, I get an error related to the
> fact that my library has no entry point...
>
> -
> Buildfile: C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml
> javac-compile:
>     [javac] Compiling 2 source files to C:\Data\Dev
> \EclipseWorkspaceTrunk\gwtgfx\build\javac
> gwt-compile:
>      [java] Compiling module gwtgfx.GwtGfx
>      [java]    [ERROR] Module has no entry points defined
>
> BUILD FAILED
> C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:25: The following
> error occurred while executing this line:
> C:\Data\Dev\EclipseWorkspaceTrunk\gwtgfx\build.xml:45: Java returned:
> 1
>
> Total time: 3 seconds
> -
>
>   Of course, it makes perfect sense that my library has no entry point
> since it is, in fact, a library... not an application.
>
>    Is there an option for the GWT compiler to do only the parts that I
> want here?  I want the GWT compiler to ensure, for example, that all
> of my JavaScriptObject subclasses follow the specified restrictions
> (has a protected no-arg constructor, instance methods are final,
> etc)... and anything else that the GWT compiler might do now, or in
> the future, to check that the GWT code is valid.  If not having an
> entry point means that there is no reasonable way to do one or more of
> the compiler steps, then that should be okay because those steps
> probably aren't relevant for a library anyways.
>
>    As a temporary hack, I guess I am going to include an entry point,
> but I really don't want to ship this.  Is there a better alternative?
>
> Thanks in advance. :)

There's a -validateOnly flag that doesn't mandate an entry point (and
should check that all public classes can be compiled).

--

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




Re: Decent development hardware for GWT ?

2009-11-19 Thread Paul Robinson
Zé Vicente wrote:
> What means to have many permutations? Is it bad? In terms of code,
> what it means?
>   
When gwt compiles to javascript, one of the output lines says something
like "Compiling 6 permutations". The number of permutations is the
number of browsers your compiling for, multiplied by the number of
languages. You can also get more permutations for other reasons,
depending on what you're doing.

Each permutation takes time to process. The more you have, the longer
the compile.

There's nothing wrong with lots of permutations, except that for
development, you generally only need to compile for one browser and one
language at a time. So your dev cycle should involve compiling for only
one permutation so that the compile is as quick as possible.

Paul

--

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




cross site linker in GWT 2.0 RC1 vs trunk

2009-11-19 Thread John O'Conner
I noticed that the XSTemplate.js file is differs between 2.0 RC1 and
the trunk (specifically r7021). I am wondering what the implications
are.

In RC1, the XSTemplate.js (the cross-site linker template for the
selection/landing js file) loads the target js file with a
document.write("

Grid + horizontal split panel + form binding

2009-11-19 Thread noob_boy
I have a page with grid on top and a horizontal split panel below.
Based on what is selected, I show some info in the two panels. The
issue is that the form binding doesnt work at all.
But if the remove the split panel and directly display the bottom half
info, it works perfectly. This case I  just display some Labels. Am I
missing something. and my knowledge on formBinding also sux. Any good
tutorials ?

--

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