InlineLabel doesn't display a subsequent blank space in IE (but does otherwise.)

2011-04-08 Thread dindeman
The following simple structure in UiBinder produces different results
in IE than in other browsers:

 world!

When debugging the bound widget I find
in IE:
HTML: Helloworld!
Display: Helloworld!

in Firefox:
HTML: Hello world!
Display: Hello world!

Is this a bug? If yes, any workarounds?

Cheers.
Luc.

* Config *
GWT 2.1.1 / IE7

-- 
You received 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: CellTree question about varying cell composition

2011-04-08 Thread tomInNewEngland
Is there a way to persuade people to answer questions here?  Or even
to suggest possibilities?  Searching allows me to find lots of
questions like this about CellTree, but I can't find any answers.
Help?  Someone?

Thank you.

On Apr 2, 11:52 pm, tomInNewEngland  wrote:
> Hi All:
>
> I have a CellTree and I want to use two different cells for the leaf
> and branch nodes.  The leaf nodes are all to have a checkbox and the
> brances are not.  Leaves and branches appear on the same levels.
>
> I constructed a CompositeCell out of a CheckboxCell and a homegrown
> cell (based on AbstractCell), and I put a test in the
> CompositeCell.render() method, that looked something like this:
>
> if (cell instanceof CheckboxCell) {
>   if (value.isLeaf()) {
>     cell.render(context, hasCell.getValue(value), sb);
>   }
>
> }
>
> With this code, the checkbox cell wasn't rendered at all for the
> branch nodes.  This appeared to work at first, but selecting a branch
> node would give me an error that seemed to be at the Javascript
> level.  It read: "(Typeerror) elem is null".  None of my code was
> identified in the stack trace, so I don't get what was wrong.
>
> Can someone suggest what that error might have meant, or better,
> suggest the right way to go about designing a cell that's different
> for leaf and branch nodes that might be siblings in the CellTree.
>
> Another question: when designing a cell to use, what is the right way
> to test the values that will be displayed in that cell?  Besides
> including the checkbox or not, I'd like to vary the look based on
> other parameters.
>
> Many thanks,
>
>  -Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: "mouseover" is fired twice within the scope of the same cell

2011-04-08 Thread Christian Goudreau
It's not even for that... lol Anyway, even with a deffered it happen.

On Fri, Apr 8, 2011 at 7:35 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Ok no, it's not because of the text... it's fired the first time when the
> cell is white... then a second time when the cell is turning "blue".
>
>
> On Fri, Apr 8, 2011 at 7:33 PM, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> Here's a little snippet of the code:
>>
>> if ("click".equals(event.getType())) {
>>   onEnterKeyDown(context, parent, value, event, valueUpdater);
>> } else if ("mouseover".equals(event.getType())) {
>>   onMouseOver(context.getIndex(), event);
>> } else if ("mouseout".equals(event.getType())) {
>>   onMouseOut(context.getIndex(), event);
>> }
>>
>> Well, when I first enter the cell with my mouse, onMouseOver is called,
>> then when I move inside the same cell and mouse over  the texte, onmouseover
>> is called a second time.
>>
>> Someone have an idea how to fix this ?
>>
>> --
>> Christian Goudreau
>> www.arcbees.com
>>
>>
>
>
> --
> Christian Goudreau
> www.arcbees.com
>
>


-- 
Christian Goudreau
www.arcbees.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: "mouseover" is fired twice within the scope of the same cell

2011-04-08 Thread Christian Goudreau
Ok no, it's not because of the text... it's fired the first time when the
cell is white... then a second time when the cell is turning "blue".

On Fri, Apr 8, 2011 at 7:33 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Here's a little snippet of the code:
>
> if ("click".equals(event.getType())) {
>   onEnterKeyDown(context, parent, value, event, valueUpdater);
> } else if ("mouseover".equals(event.getType())) {
>   onMouseOver(context.getIndex(), event);
> } else if ("mouseout".equals(event.getType())) {
>   onMouseOut(context.getIndex(), event);
> }
>
> Well, when I first enter the cell with my mouse, onMouseOver is called,
> then when I move inside the same cell and mouse over  the texte, onmouseover
> is called a second time.
>
> Someone have an idea how to fix this ?
>
> --
> Christian Goudreau
> www.arcbees.com
>
>


-- 
Christian Goudreau
www.arcbees.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.



"mouseover" is fired twice within the scope of the same cell

2011-04-08 Thread Christian Goudreau
Here's a little snippet of the code:

if ("click".equals(event.getType())) {
  onEnterKeyDown(context, parent, value, event, valueUpdater);
} else if ("mouseover".equals(event.getType())) {
  onMouseOver(context.getIndex(), event);
} else if ("mouseout".equals(event.getType())) {
  onMouseOut(context.getIndex(), event);
}

Well, when I first enter the cell with my mouse, onMouseOver is called, then
when I move inside the same cell and mouse over  the texte, onmouseover is
called a second time.

Someone have an idea how to fix this ?

-- 
Christian Goudreau
www.arcbees.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: Tutorial: Using the HTML5 Canvas Element with the Google Web Toolkit (GWT)

2011-04-08 Thread Thomas Broyer
You don't! It's "bitmap painting", not vectors, not SVG.

-- 
You received 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: Tutorial: Using the HTML5 Canvas Element with the Google Web Toolkit (GWT)

2011-04-08 Thread trout
Thanks for the links/demos.  Could you possibly post some code of how you 
would manipulate items you draw on the canvas?  I would like to be able to 
draw a box then be able to click on it and move it around etc...  I can't 
seem to understand how you track the items in the canvas.  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.



Re: GWT Developper plugin without internet connection

2011-04-08 Thread Juan Pablo Gardella
The web browser plugin install when you need. Check that the url have
append 
gwt.codesvr=127.0.0.7:9997


See here
http://code.google.com/intl/sv-SE/webtoolkit/doc/latest/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s


2011/4/7 guymage 

> Hi,
>
> This link only contains files for eclipse plugin installation, not for
> the web browser plugin ?
>
> On 7 avr, 22:12, Juan Pablo Gardella 
> wrote:
> > Seehttp://code.google.com/intl/es/eclipse/docs/install-from-zip.html<
> http://www.google.com/url?sa=D&q=http://code.google.com/intl/es/eclip...>
> >
> > Juan
> >
> > 2011/4/6 guymage 
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > I'm working on a computer which does not have any internet connection.
> >
> > > I try to install the GWT Developper plugin for IE on this computer but
> > > it does not work because the installer (GwtDevPluginSetup.exe) tries
> > > to find the latest plugin version on the google web site.
> >
> > > Is there any way to directly download the installer (gwt-dev-
> > > plugin.msi ?) ?
> >
> > > 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-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: GWT Mobile invite you to develop mobile apps with GWT

2011-04-08 Thread Tonte Pouncil
Will the GWT Mobile project use Maven to build?

Thanks.

Tonté Pouncil





From: Dennis Z Jiang 
To: Google Web Toolkit 
Sent: Fri, April 8, 2011 12:03:31 AM
Subject: GWT Mobile invite you to develop mobile apps with GWT

GWT Mobile is an open-source project that focus on developing mobile
apps with GWT. It has three main features:

1. A set of mobile optimized UI widgets.
2. A PhoneGap wrapper that enables native phone functions for GWT
apps.
3. A ORM module to persist objects to the browser database.

As the creator of GWT Mobile, I invite anyone who is interested in
developing mobile apps to to join the development of the open-source
GWT Mobile project, to test it, or to use it in your mobile apps.

http://www.gwtmobile.com

Happy coding!

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



HTML 5 Audio onComplete Listener

2011-04-08 Thread stymie
I am using the new features of the HTML 5 audio available in gwt 2.2.

Is there any way for an onComplete Listener for the audio.Right now I
am using a timer and checking if the currentTime >= to the duration
and then firing my own "complete" listener.

I thought there should be something built in for this.


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.



Re: gwt autocompile ;)

2011-04-08 Thread Diego Lovison
> I have no idea what an 'adm' is.
"adm" = administrator
Can be the people that is responsible of the application in the
organization.. (IT resource)
Organization is whom buy my software..


> Why would an application 'like Google contacts' require more source code for
> more users?
No
For example: In google contacts, when you edit a contact, you can add
fields to the form...
But you cannot add business rules for the field that you added...
I would like allow the "adm" modify the application, adding fields,
business rules, etc...


> Or you could run DevMode...
Is the final product.
The organization that buy my software won't edit the real source
code...
I would like to offers to the client the possibility of customize my
software according to your needs


> Is this an actual question or some kind of elaborate troll?
For example in JavaScript I can write the code, save on database,
return for the application and run the same code, and will work...
But in GWT I need compile all my application again...




The manner on that GWT was designed, this isn't possible...
I would like to discuss one manner to do this... GWT is the best tool
for develop web applications, on my oppinion..


is now more clear?
thanks for your reply...

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



Re: How can I intercept various event on cells ?

2011-04-08 Thread Thierry
thanks a lot !

On 8 avr, 18:24, Thomas Broyer  wrote:
> onBrowserEvent is only called for those event types returned by
> getConsumedEvents

-- 
You received 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 autocompile ;)

2011-04-08 Thread Chris Conroy
On Fri, Apr 8, 2011 at 8:23 AM, Diego Lovison wrote:

>
> hello,
>
> I would like to develop an application that the "adm" of the system
> can modify the view, add rules, buttons, fields, and others
>
I have no idea what an 'adm' is.


> ok I can create something like google contacts, when you can add
> fields to edit...
> but in google contacts I cannot edit the source code...
> for example:
> *client1: validate for this field
> *client2: validate for this other fields...
> *client3: get the list of my database
>
> keep 3 source code for 3 client is easy, but if I have 5000 clients...
> is very difficult..
>
Why would an application 'like Google contacts' require more source code for
more users?


> gwt problem:
> I can create "dynamic code" using javascript when I write and run...
> in gwt I need write, compile and so will run...
>
Or you could run DevMode...

gwt solution:
> gwt in my opinion is the best framework for web app, and I would like
> to use it for this project...
>
> any ideias?
> someone understood what I told? lol
>
Is this an actual question or some kind of elaborate troll?

-- 
You received 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: RPC in onWindowClosing() problem

2011-04-08 Thread Ania
Thanks a lot! I kept onwindowclosing for some database 
deletions,but definitely i'm gonna do this keep alive mechanism for logging 
out. 

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



Re: How do I apply styles??? Strange lack of expected behaviour...

2011-04-08 Thread Jeff Larsen
you're going to need to make those styles marked as @External or @NotStrict 
on the CssResource inside the client bundle. 

Then you also have to do ClientBundle#CssResource()#ensureInjected() 
somewhere that is guaranteed to be called before you need it, to actually 
have those styles injected into your webpage. 

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



How do I apply styles??? Strange lack of expected behaviour...

2011-04-08 Thread Terry Bachard
Hi,

I have a CSS file and CssResource.

I define styles like .gwt-DatePicker, or .dateBoxPopup, in my CSS file,
which I can see are applied to the GWT compeonents, but they are never used.

I am adding the styles to my CssResource file, for example:

String datePicker();

String dateBoxPopup();

@ClassName("gwt-DatePicker")
String gwtDatePicker();

I am not referencing them anywhere lese in code, but I should not have to. I
cannot figure this out. I was using the standard theme and thought that it
may have been the cause, but to narow the problem down I am now not using
ANY theme so it's not standard.css taking precedence.

Help in understanding this greatly appreciated!



Regards,
Terra

-- 
You received 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: RequestFactory, Hibernate and versioned data

2011-04-08 Thread Bappy
I stopped using hbm.xml files and used annotations instead, all is
well now.

On Apr 8, 10:39 am, Bappy  wrote:
> Hi there,
>
> Since going from 2.1 to 2.2 RequestFactory has stopped transferring my
> Hibernate generated objects back to the client. The first error was
> this:
>
> com.google.gwt.requestfactory.server.UnexpectedException: The domain
> type Foo_$$_javassist_45 cannot be sent to the client
>
> I managed to fix this using a custom decorator, however now I get the
> following error:
>
> com.google.gwt.requestfactory.server.UnexpectedException: The
> persisted entity with id 1 has a null version
>
> As I don't use versioned data I'm not sure what to do to fix this, I
> just set the version to "1" before returning it and it works although
> this is a bit contrived! Do I need to get Hibernate to put a dummy
> version on it even if I don't use versioned data?
>
> Clearly now RequestFactory needs a non-null version, is there any way
> I can change this behaviour?
>
> Cheers,
>
> Bappy

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



Re: How can I intercept various event on cells ?

2011-04-08 Thread Thomas Broyer
onBrowserEvent is only called for those event types returned by 
getConsumedEvents

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



How can I intercept various event on cells ?

2011-04-08 Thread Thierry
Hi !

I'm still attempting to extend the cells standard behaviour, like I
used to do in Swing years ago. Maybe the similarities are decepting ?

I tried overiding the onBrowserEvent on a TextColumn. Nothing fired
I tried overiding the onBrowserEvent on a Cell in a Column : no better
result.

What is the standard way to extend the behaviour of cell components ?

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.



Re: why IsWidget is interface?

2011-04-08 Thread Jens
To decouple actual widget implementations so we can provide fake widgets to 
methods during testing. Its primary use case is not to be a marker interface 
for widgets.

JavaDoc of IsWidget:

*Extended by view interfaces that are likely to be implemented by Widgets. 
Provides access to that widget, if it exists, without compromising the 
ability to provide a mock view instance in JRE unit tests.*
*
*
*
*
If you do not have the ability to provide a mock/fake view instance during 
testing then you have to use a slow GWTTestCase instead of a fast JRE JUnit 
TestCase.


-- 
You received 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: development/production mode - different paths to same file?

2011-04-08 Thread Ed
cool thanks for the info.


On Fri, Apr 8, 2011 at 9:41 AM, Thomas Broyer  wrote:
> That's what the getContextPath() is for on the server-side, and
> getHostPageBaseURL can be used on the client-side to approximate this
> (appending a relative path from your host 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-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.



Eclipse Plugin 2.2.1, GWT 1.5.2, Wont Run

2011-04-08 Thread aisling
Hi all

New installation of Open Suse 11.3 with Eclipse Version: Helios
Release Build id: 20100617-1415.

I installed the GWT plugin manually from a downloaded zip
(com.google.gdt.eclipse.suite.e36.update.site_2.2.1.v201103311225.zip).

The new plugin works fine with GWT 2.1 which we use for our new
prejects. However I have one project written using GWT 1.5.2. I have
check that the project's Google properties uses the correct SDK (gwt-
linux-1.5.2).

If I right-click and attempt to run the project as Web Application, I
get the following error in the Eclipse console:

Unknown argument: -remoteUI
Google Web Toolkit 1.5.2
GWTShell [-port port-number | "auto"] [-noserver] [-whitelist
whitelist-string] [-blacklist blacklist-string] [-logLevel level] [-
gen dir] [-out dir] [-style style] [-ea] [url]

where
  -port   Runs an embedded Tomcat instance on the specified port
(defaults to )
  -noserver   Prevents the embedded Tomcat server from running, even
if a port is specified
  -whitelist  Allows the user to browse URLs that match the specified
regexes (comma or space separated)
  -blacklist  Prevents the user browsing URLs that match the specified
regexes (comma or space separated)
  -logLevel   The level of logging detail: ERROR, WARN, INFO, TRACE,
DEBUG, SPAM, or ALL
  -genThe directory into which generated files will be written
for review
  -outThe directory to write output files into (defaults to
current)
  -style  Script output style: OBF[USCATED], PRETTY, or DETAILED
(defaults to OBF)
  -ea Debugging: causes the compiled output to check assert
statements.
and
  url Automatically launches the specified URL

Any ideas how I can get the GWT 1.5.2 project to run with the Eclipse
plugin 2.2.1 or do I have to use an older version of the plugin and
where can I download it from please?

Thanks very much
Aisling

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



java.lang.AssertionError after upgrading from gwt 1.5.2 to gwt 1.6.4 (when run in hosted mode)

2011-04-08 Thread scono1986
After upgrading from gwt 1.5.2 to gwt 1.6.4, I run my application in
hosted mode, it occurs the following errors:

== Error 1 ==

[ERROR] Uncaught exception escaped
java.lang.AssertionError: A widget that has an existing parent widget
may not be added to the detach list
at
com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java:
122)
at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:197)

== Error 2 ==
[ERROR] Uncaught exception escaped
java.lang.AssertionError: The style name 'margin-top' should be in
camelCase format
at com.google.gwt.dom.client.Style$.assertCamelCase$(Style.java:63)
at com.google.gwt.dom.client.Style$.setProperty$(Style.java:42)
at com.google.gwt.user.client.DOM.setStyleAttribute(DOM.java:1208)



Please help me fix these errors.
Thanks so much :))

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



Question about compilation

2011-04-08 Thread Rafa
Hi,

im trying to put a new image in the directory of images (gwt/images)
of my project. The problem is, when i compile, the compiler delete my
new image. I think is a problem about cache, but im not sure. Can i
solve the problem?

Thank you all ;)

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



Automatic browser language detection

2011-04-08 Thread stintorero
Hi,

I am using GWT 2.2.0 and firefox 4.0. I would like my web app detect
automatically the client property "locale" from Edit > Preferences >
Languages.

I have seem some solutions in GWT 2.3.0-M1 using  in the .gwt.xml file, but
this detects the language of the browser not the language choose by
the user into Preferences.

Somebody know what should I do?

Thanks in advance. Regards.

Sebastian.

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



CellTable : can't do both Selection and Edit on lines ?

2011-04-08 Thread Thierry
Hi !

I'm using GWT 2.2.
I tried to have a celltable where I can both select lines and modify
them.
I added a SingleSectionModel to the celltable. It works. But as soon
as I click on a DatePickerCell on any line, the selection stops
working.

To check if I did something wrong, I executed the
CellTableFieldUpdaterExample from GWT documentation.
I just added a SingleSelectionModel to the contact table.
The selection mechanism breaks as soon as I click on the
DatePickerCell that modifies Contact birthdate on the example.

Maybee it's not possible to do both selection and edit on lines ?

What I was trying to achieve is to display statistics on the 'clicked'
line on another panel. And allow the user to edit the line on the
celltable. I didn't want the user to click on a icon / button on the
line, but just select the line.

Is there another way to achieve this ? Any way to intercept a 'user
clicked on a line' event on the celltable ?

Thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-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: TextBox KeyPressEvent doesn't function in Firefox 4

2011-04-08 Thread Gabriel Volpe
Thanks Nicolas, that's work!

2011/4/8 Nicolas Antoniazzi 

> As a workaround, you can use event.getNativeEvent().getKeyCode() ==
> KeyCodes.KEY_ENTER
>
> 2011/4/8 Gabriel 
>
>> Eg.
>>
>> txtPwd.addKeyPressHandler(new KeyPressHandler() {
>>
>>@Override
>>public void onKeyPress(KeyPressEvent event) {
>>if (event.getCharCode() ==
>> KeyCodes.KEY_ENTER) {
>>btnLogin.click();
>>}
>>}
>>});
>>
>> Regards.
>>
>> PD: I think in Firefox 3.x doesn't 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-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.
>>
>>
>


-- 
 **
*   Duke 'n' Tux*

-- 
You received 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: RPC in onWindowClosing() problem

2011-04-08 Thread George Georgovassilis
Hello Ania,

This might be a browser related behavior - if the window is closed,
all activities related with it are cancelled.
It might be best if you tried an alternative aproach: instead of
having the browser explicitly signing the user out of your application
(which is what you are trying to implement by handling
onWindowClosing), you might want to implement a keep alive mechanism.
The browser would notify the server every X seconds, which counts as a
logged in user. If the last notification is older than Y > X seconds,
your server may assume that the user logged out or just closed the
window.

On Apr 5, 1:40 am, Ania  wrote:
> Hi,
> I'm using RPC within onWindowClosing().It is supposed to delete certain data
> from database based on passed username but nothing happens.Is there any
> alternative way to modify database without using rpc on tab or browser
> closing?
> Thank you for any help!
> Ania

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



Anyone in Rome to catch up?

2011-04-08 Thread George Georgovassilis
Hi all,

I'll be until Monday in Rome - if anybody wants to catch up for an
espresso or to, please drop me a line.

Best,
G.

-- 
You received 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: TextBox KeyPressEvent doesn't function in Firefox 4

2011-04-08 Thread Nicolas Antoniazzi
As a workaround, you can use event.getNativeEvent().getKeyCode() ==
KeyCodes.KEY_ENTER

2011/4/8 Gabriel 

> Eg.
>
> txtPwd.addKeyPressHandler(new KeyPressHandler() {
>
>@Override
>public void onKeyPress(KeyPressEvent event) {
>if (event.getCharCode() ==
> KeyCodes.KEY_ENTER) {
>btnLogin.click();
>}
>}
>});
>
> Regards.
>
> PD: I think in Firefox 3.x doesn't 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-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.



TextBox KeyPressEvent doesn't function in Firefox 4

2011-04-08 Thread Gabriel
Eg.

txtPwd.addKeyPressHandler(new KeyPressHandler() {

@Override
public void onKeyPress(KeyPressEvent event) {
if (event.getCharCode() == KeyCodes.KEY_ENTER) {
btnLogin.click();
}
}
});

Regards.

PD: I think in Firefox 3.x doesn't 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-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: development/production mode - different paths to same file?

2011-04-08 Thread Thomas Broyer
That's what the getContextPath() is for on the server-side, and 
getHostPageBaseURL can be used on the client-side to approximate this 
(appending a relative path from your host 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-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: Cell widgets selection and EventTranslators

2011-04-08 Thread Javier
Issue: http://code.google.com/p/google-web-toolkit/issues/detail?id=6245

Thanks

On 8 abr, 15:23, John LaBanca  wrote:
> It appears that you are correct.  Can you create an issue to track this?
>
> Thanks,
> John LaBanca
> jlaba...@google.com
>
> On Fri, Apr 8, 2011 at 7:57 AM, Javier  wrote:
> > I want to select a cell on mouse down event instead of click. This is
> > how selection works in windows explorer (among others) and is very
> > useful if for instance you want to start a drag operation inmediatelly
> > after the mouse down.
>
> > Creating a custom EventTranslator is great as it allows me to select
> > the action to perform depending on the event type. However when doing
> > multiple selection the action I return is ignored unless it is a click
> > event. Said with different words, the DefaultSelectionEventManager
> > only takes into consideration the Action returned by the translator if
> > the event is a click event.
>
> > IMO the correct behaviour would be that the EventManager performs the
> > action returned by the translator no matter the event type. In fact
> > this is the behaviour for a single-selection model but not for a multi-
> > selection model.
>
> > A'm I missing something? Many 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.2 CellTable dragging column widths with mouse ...

2011-04-08 Thread Diego Lovison
you have 100...
the time to order in database is more fast that you return 10 and
sort on a client side...
;)

On 8 abr, 10:30, Musicman75  wrote:
> I don't want to render 10 rows, that's why I use the celltable and
> it's paging functionality.
> To handle the whole datatable on client side (sorting, filtering, ..)
> without server calls every time.
>
> CellTable can handle a big amount of data, the only thing I miss is
> column resizing on mouse dragging.
>
> GXT, SmartGWT look nice, but the datastructure needed to fit with this
> framework isn't useful for me and I don't want to use third party
> libraries in my project.
>
> On 8 Apr., 15:18, Diego Lovison  wrote:
>
>
>
>
>
>
>
> > If you would like rende 1000 rows I suggest you use lazy render...
> > you can find this in gxt and smartgwt
>
> > On 8 abr, 09:23, Gal Dolber  wrote:
>
> > > why would you want to render 10 rows? :)
>
> > > On Fri, Apr 8, 2011 at 4:02 AM, Musicman75 
> > > wrote:
>
> > > > @Sky
> > > > Nice idea to include resizing on mouse dragging.
>
> > > > Any implementation available?
> > > > I checked out the ScrollTable from incubator, but it's too slow
> > > > (rendering with more than 10 rows is impossible).
>
> > > > The resizing functionallity from the Scrolltable implemented together
> > > > with CellTable would be a great thing.
>
> > > > Thanks
> > > > Stephan
>
> > > > On 17 Feb., 10:35, dflorey  wrote:
> > > > > Did you check out the tables in the gwt incubator? They support 
> > > > > resizing
> > > > of
> > > > > columns, fixed headers etc.
>
> > > > --
> > > > You received 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.
>
> > > --
> > > Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> > >http://code.google.com/p/guit/

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



Re: GWT 2.2 CellTable dragging column widths with mouse ...

2011-04-08 Thread Musicman75
I don't want to render 10 rows, that's why I use the celltable and
it's paging functionality.
To handle the whole datatable on client side (sorting, filtering, ..)
without server calls every time.

CellTable can handle a big amount of data, the only thing I miss is
column resizing on mouse dragging.

GXT, SmartGWT look nice, but the datastructure needed to fit with this
framework isn't useful for me and I don't want to use third party
libraries in my project.



On 8 Apr., 15:18, Diego Lovison  wrote:
> If you would like rende 1000 rows I suggest you use lazy render...
> you can find this in gxt and smartgwt
>
> On 8 abr, 09:23, Gal Dolber  wrote:
>
>
>
>
>
>
>
> > why would you want to render 10 rows? :)
>
> > On Fri, Apr 8, 2011 at 4:02 AM, Musicman75 
> > wrote:
>
> > > @Sky
> > > Nice idea to include resizing on mouse dragging.
>
> > > Any implementation available?
> > > I checked out the ScrollTable from incubator, but it's too slow
> > > (rendering with more than 10 rows is impossible).
>
> > > The resizing functionallity from the Scrolltable implemented together
> > > with CellTable would be a great thing.
>
> > > Thanks
> > > Stephan
>
> > > On 17 Feb., 10:35, dflorey  wrote:
> > > > Did you check out the tables in the gwt incubator? They support resizing
> > > of
> > > > columns, fixed headers etc.
>
> > > --
> > > You received 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.
>
> > --
> > Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> >http://code.google.com/p/guit/

-- 
You received 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 validation on client side enough or do I need both?

2011-04-08 Thread Diego Lovison
or http://code.google.com/p/google-web-toolkit/wiki/BeanValidation

On 8 abr, 10:17, Ben Imp  wrote:
> Never trust a client.
>
> -Ben
>
> On Apr 8, 6:52 am, Stephan T  wrote:
>
>
>
>
>
>
>
> > The scenario:
> > I have a form where you can create a new person by entering name in a
> > textbox and click a button. When the user clicks the button I grab the
> > value from the textbox and sets it on the Person object. The Person
> > object validates the value and makes sure the name on the object only
> > contains a-z. If not execution stops and an error is presented to the
> > user. If all is good I send the Person object via an RPC call to the
> > server.
>
> > The question:
> > When continuing execution on the server, can I be sure that the name
> > only contains a-z or do I have to do server validation as well for
> > protection from attackers?

-- 
You received 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 validation on client side enough or do I need both?

2011-04-08 Thread Diego Lovison
if is the same validation... I will create a shared class like
FieldValidation on GwtExample

On 8 abr, 10:17, Ben Imp  wrote:
> Never trust a client.
>
> -Ben
>
> On Apr 8, 6:52 am, Stephan T  wrote:
>
>
>
>
>
>
>
> > The scenario:
> > I have a form where you can create a new person by entering name in a
> > textbox and click a button. When the user clicks the button I grab the
> > value from the textbox and sets it on the Person object. The Person
> > object validates the value and makes sure the name on the object only
> > contains a-z. If not execution stops and an error is presented to the
> > user. If all is good I send the Person object via an RPC call to the
> > server.
>
> > The question:
> > When continuing execution on the server, can I be sure that the name
> > only contains a-z or do I have to do server validation as well for
> > protection from attackers?

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



why IsWidget is interface?

2011-04-08 Thread Diego Lovison
why the class IsWidget is interface and not an annotation?

-- 
You received 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: Cell widgets selection and EventTranslators

2011-04-08 Thread John LaBanca
It appears that you are correct.  Can you create an issue to track this?

Thanks,
John LaBanca
jlaba...@google.com


On Fri, Apr 8, 2011 at 7:57 AM, Javier  wrote:

> I want to select a cell on mouse down event instead of click. This is
> how selection works in windows explorer (among others) and is very
> useful if for instance you want to start a drag operation inmediatelly
> after the mouse down.
>
> Creating a custom EventTranslator is great as it allows me to select
> the action to perform depending on the event type. However when doing
> multiple selection the action I return is ignored unless it is a click
> event. Said with different words, the DefaultSelectionEventManager
> only takes into consideration the Action returned by the translator if
> the event is a click event.
>
> IMO the correct behaviour would be that the EventManager performs the
> action returned by the translator no matter the event type. In fact
> this is the behaviour for a single-selection model but not for a multi-
> selection model.
>
> A'm I missing something? Many 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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: GWT 2.2 CellTable dragging column widths with mouse ...

2011-04-08 Thread Diego Lovison
If you would like rende 1000 rows I suggest you use lazy render...
you can find this in gxt and smartgwt


On 8 abr, 09:23, Gal Dolber  wrote:
> why would you want to render 10 rows? :)
>
> On Fri, Apr 8, 2011 at 4:02 AM, Musicman75 
> wrote:
>
>
>
>
>
>
>
>
>
> > @Sky
> > Nice idea to include resizing on mouse dragging.
>
> > Any implementation available?
> > I checked out the ScrollTable from incubator, but it's too slow
> > (rendering with more than 10 rows is impossible).
>
> > The resizing functionallity from the Scrolltable implemented together
> > with CellTable would be a great thing.
>
> > Thanks
> > Stephan
>
> > On 17 Feb., 10:35, dflorey  wrote:
> > > Did you check out the tables in the gwt incubator? They support resizing
> > of
> > > columns, fixed headers etc.
>
> > --
> > You received 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.
>
> --
> Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> http://code.google.com/p/guit/

-- 
You received 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 validation on client side enough or do I need both?

2011-04-08 Thread Ben Imp
Never trust a client.

-Ben

On Apr 8, 6:52 am, Stephan T  wrote:
> The scenario:
> I have a form where you can create a new person by entering name in a
> textbox and click a button. When the user clicks the button I grab the
> value from the textbox and sets it on the Person object. The Person
> object validates the value and makes sure the name on the object only
> contains a-z. If not execution stops and an error is presented to the
> user. If all is good I send the Person object via an RPC call to the
> server.
>
> The question:
> When continuing execution on the server, can I be sure that the name
> only contains a-z or do I have to do server validation as well for
> protection from attackers?

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



Re: GWT 2.2 CellTable dragging column widths with mouse ...

2011-04-08 Thread Gal Dolber
why would you want to render 10 rows? :)

On Fri, Apr 8, 2011 at 4:02 AM, Musicman75 wrote:

> @Sky
> Nice idea to include resizing on mouse dragging.
>
> Any implementation available?
> I checked out the ScrollTable from incubator, but it's too slow
> (rendering with more than 10 rows is impossible).
>
> The resizing functionallity from the Scrolltable implemented together
> with CellTable would be a great thing.
>
> Thanks
> Stephan
>
> On 17 Feb., 10:35, dflorey  wrote:
> > Did you check out the tables in the gwt incubator? They support resizing
> of
> > columns, fixed headers etc.
>
> --
> You received 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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received 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 autocompile ;)

2011-04-08 Thread Diego Lovison

hello,

I would like to develop an application that the "adm" of the system
can modify the view, add rules, buttons, fields, and others

ok I can create something like google contacts, when you can add
fields to edit...
but in google contacts I cannot edit the source code...
for example:
*client1: validate for this field
*client2: validate for this other fields...
*client3: get the list of my database

keep 3 source code for 3 client is easy, but if I have 5000 clients...
is very difficult..

gwt problem:
I can create "dynamic code" using javascript when I write and run...
in gwt I need write, compile and so will run...

gwt solution:
gwt in my opinion is the best framework for web app, and I would like
to use it for this project...

any ideias?
someone understood what I told? lol

regards
Diego Lovison

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



Cell widgets selection and EventTranslators

2011-04-08 Thread Javier
I want to select a cell on mouse down event instead of click. This is
how selection works in windows explorer (among others) and is very
useful if for instance you want to start a drag operation inmediatelly
after the mouse down.

Creating a custom EventTranslator is great as it allows me to select
the action to perform depending on the event type. However when doing
multiple selection the action I return is ignored unless it is a click
event. Said with different words, the DefaultSelectionEventManager
only takes into consideration the Action returned by the translator if
the event is a click event.

IMO the correct behaviour would be that the EventManager performs the
action returned by the translator no matter the event type. In fact
this is the behaviour for a single-selection model but not for a multi-
selection model.

A'm I missing something? Many 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.



Re: Is validation on client side enough or do I need both?

2011-04-08 Thread nino ekambi
Server validation is allways a good thing  no matter which scenario. Dont
trust what s coming from the client.

Best,

Alain

2011/4/8 Stephan T 

> The scenario:
> I have a form where you can create a new person by entering name in a
> textbox and click a button. When the user clicks the button I grab the
> value from the textbox and sets it on the Person object. The Person
> object validates the value and makes sure the name on the object only
> contains a-z. If not execution stops and an error is presented to the
> user. If all is good I send the Person object via an RPC call to the
> server.
>
> The question:
> When continuing execution on the server, can I be sure that the name
> only contains a-z or do I have to do server validation as well for
> protection from attackers?
>
> --
> You received 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 API for the Flash Platform
http://code.google.com/p/gwt4air/
http://www.gwt4air.appspot.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.



Is validation on client side enough or do I need both?

2011-04-08 Thread Stephan T
The scenario:
I have a form where you can create a new person by entering name in a
textbox and click a button. When the user clicks the button I grab the
value from the textbox and sets it on the Person object. The Person
object validates the value and makes sure the name on the object only
contains a-z. If not execution stops and an error is presented to the
user. If all is good I send the Person object via an RPC call to the
server.

The question:
When continuing execution on the server, can I be sure that the name
only contains a-z or do I have to do server validation as well for
protection from attackers?

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



Am I over using layout panels?

2011-04-08 Thread Terry Bachard
Hi,

The GWT docs specify thet the layout panels should be used to define overall
application layout; but when looking at the mail example, there's
DockLayoutPanels within DockLayoutPanels , etc. Personally, on my project, I
have DockLayoutPanels (or SplitLayoutPanels) embedded 5 or 6 deep in some
places. They define the overall layout, the layouts without layouts, and
even layouts within those layouts...(i.e., 'centers' contain other layour
panels, of which themselves have centers which contain layout
panels,...etc.)

It does the job for me...but I wonder about performance issues or changes in
the future? Is this bad practise?




Regards,
Terra

-- 
You received 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: development/production mode - different paths to same file?

2011-04-08 Thread Ed
I have run into this when changing deployments from dev at localhost
and a standalone jetty instance.

Standalone Jetty URL and web.xml
https://ajax.abc.com:443/HR/cyberobjects/CyberObjects.html
/cyberobjects/CyberObjects.html

Dev mode url and web.xml
https://ajax.abc.com:443/HR/CyberObjects.html
/HR/cyberobjects/CyberObjects.html


HTH.

Ed


On Fri, Apr 8, 2011 at 4:32 AM, Magnus  wrote:
> Sorry,
>
> its "ptl". I made a mistake in my posting.
>
> Magnus
>
> On Apr 8, 7:19 am, "A. Stevko"  wrote:
>> Is it ptl or portal ?
>>
>>
>>
>> On Thu, Apr 7, 2011 at 8:53 PM, Magnus  wrote:
>> > Hello,
>>
>> > in my webProject "myProject" is a directory "war/portal" which
>> > contains a file "login.jsp":
>> > myProject/war/portal/login.jsp
>>
>> > Within my code I want to redirect to this page.
>>
>> > In development mode, this works:
>> > Window.Location.assign ("/ptl/login.jsp");
>>
>> > In production mode, this does not work. I found out that "/myProject/
>> > ptl/login.jsp" would be the correct path.
>> > However, this does not work in development mode.
>>
>> > How can I do this so that it works the same in development and
>> > production mode?
>>
>> > Thanks
>> > Magnus
>>
>> > --
>> > You received 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.
>>
>> --
>> -- A. Stevko
>> ===
>> "If everything seems under control, you're just not going fast enough." M.
>> Andretti
>
> --
> You received 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.



RequestFactory Hibernate One to many mapping datatype

2011-04-08 Thread mfiandesio
Hi to all,

I am trying to retrieve an object with Hibernate User which has a one-
to-many relationship with a Role object.

This is mapped as a Collection roles but requestfactory
validation complains if the proxy interface has the method
Collection getRoles as the data type is not Set nor List.

If i change the UserProxy method to Set getRoles it
complains that in the User object does not exists a matching datatype
method.

All the hibernate mapped entity are in a jar that we use across
various applications and it would be quite painful to change all the
Collection to a Set or a List.

Is there any way to change the validation beahviour?

Thanks a lot,
Matteo

-- 
You received 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: For UIBinder,how to react event when creating UI based on HTML?

2011-04-08 Thread Gal Dolber
The difference between Widget and UiObject is that a Widget can handle
events and a UiObject can't

On Fri, Apr 8, 2011 at 4:28 AM, Alex Luya  wrote:

> sinkEvents() and onBrowserEvent() only work for Widget,so How can I get
> UIObject react event?
>
> --
> You received 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.
>
>


-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
You received 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: code snippet

2011-04-08 Thread maticpetek
I'm using CodeBox for Mac (available in Mac App Store). Because it has 
code formatting and it does not "shrink" your sample sometimes, like 
Evernote. 

Regards,
   Matic

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



RequestFactory, Hibernate and versioned data

2011-04-08 Thread Bappy
Hi there,

Since going from 2.1 to 2.2 RequestFactory has stopped transferring my
Hibernate generated objects back to the client. The first error was
this:

com.google.gwt.requestfactory.server.UnexpectedException: The domain
type Foo_$$_javassist_45 cannot be sent to the client

I managed to fix this using a custom decorator, however now I get the
following error:

com.google.gwt.requestfactory.server.UnexpectedException: The
persisted entity with id 1 has a null version

As I don't use versioned data I'm not sure what to do to fix this, I
just set the version to "1" before returning it and it works although
this is a bit contrived! Do I need to get Hibernate to put a dummy
version on it even if I don't use versioned data?

Clearly now RequestFactory needs a non-null version, is there any way
I can change this behaviour?

Cheers,

Bappy

-- 
You received 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: development/production mode - different paths to same file?

2011-04-08 Thread Magnus
Sorry,

its "ptl". I made a mistake in my posting.

Magnus

On Apr 8, 7:19 am, "A. Stevko"  wrote:
> Is it ptl or portal ?
>
>
>
> On Thu, Apr 7, 2011 at 8:53 PM, Magnus  wrote:
> > Hello,
>
> > in my webProject "myProject" is a directory "war/portal" which
> > contains a file "login.jsp":
> > myProject/war/portal/login.jsp
>
> > Within my code I want to redirect to this page.
>
> > In development mode, this works:
> > Window.Location.assign ("/ptl/login.jsp");
>
> > In production mode, this does not work. I found out that "/myProject/
> > ptl/login.jsp" would be the correct path.
> > However, this does not work in development mode.
>
> > How can I do this so that it works the same in development and
> > production mode?
>
> > Thanks
> > Magnus
>
> > --
> > You received 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.
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti

-- 
You received 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: code snippet

2011-04-08 Thread Jens
Eclipse code templates can help if you configure custom templates. You find 
them under Preferences -> Java -> Editor -> Templates

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



For UIBinder,how to react event when creating UI based on HTML?

2011-04-08 Thread Alex Luya
sinkEvents() and onBrowserEvent() only work for Widget,so How can I get
UIObject react event?

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



Re: GWT 2.2 CellTable dragging column widths with mouse ...

2011-04-08 Thread Musicman75
@Sky
Nice idea to include resizing on mouse dragging.

Any implementation available?
I checked out the ScrollTable from incubator, but it's too slow
(rendering with more than 10 rows is impossible).

The resizing functionallity from the Scrolltable implemented together
with CellTable would be a great thing.

Thanks
Stephan

On 17 Feb., 10:35, dflorey  wrote:
> Did you check out the tables in the gwt incubator? They support resizing of
> columns, fixed headers etc.

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