Re: java.util.ConcurrentModificationException after installing GWT 2.2

2011-03-09 Thread tdk
Juan,

On 9 Mrz., 12:37, Juan Pablo Gardella 
wrote:
> Is SmartGWT compatible with GWT 2.2? 
> Seehttp://groups.google.com/group/google-web-toolkit-contributors/browse...

thanx for the link, good point!

But, alas, it doesn't apply for my case. I don't get any error as
listed and my app actually works with both versions.

The error in my OP appears only every now and then. I start my app in
Dev Mode and get the error, I restart it, say 3 or 4 times, with the
same error, and then, on the next restart it all of a sudden works
just fine.
Until now, I have not been able to figure out under which
circumstances/conditions it either works or doesn't.

Being a ConcurrentModificationException it points to a timing problem,
which could be caused by tons of things...

-- 
You received 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: Unable to run GWTP app after migration to 2.2

2011-03-09 Thread Christofer Jennings
You need to get GWTP 0.6 for GWT 2.2.0

see:
http://groups.google.com/group/gwt-platform/browse_thread/thread/21e40e8d332a667e#

Hope this helps.
,boz

On Mar 9, 2011, at 3:56 PM, natas wrote:

> I'm having the same issue :s
> 
> On Feb 21, 9:18 pm, Karthik  wrote:
>> I need a solution to the following problem :
>> 
>> I am running eclispe 3.6, GWT 2.2, Guice 3.0 rc2, gin 10 r137 and gwt-
>> p 0.5, the code compiles fine but when I try to run the app i end up
>> with the following error :
>> 
>> 13:40:24.062 [ERROR] [gwtphplacesample] Failed to create an instance
>> of 'com.gwtplatform.samples.hplace.client.Gwtphplacesample' via
>> deferred binding
>> 
>> java.lang.RuntimeException: Deferred binding failed for
>> 'com.gwtplatform.samples.hplace.client.gin.ClientGinjector' (did you
>> forget to inherit a required module?)
>> at
>> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>> at com.google.gwt.core.client.GWT.create(GWT.java:98)
>> at
>> com.gwtplatform.samples.hplace.client.Gwtphplacesample.
>> (Gwtphplacesample.java:29)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> at
>> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
>> 465)
>> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
>> 375)
>> at
>> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
>> .java:
>> 183)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
>> nelServer.java:
>> 510)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
>> 352)
>> at java.lang.Thread.run(Unknown Source)
>> Caused by: java.lang.NoClassDefFoundError: com/google/inject/
>> assistedinject/FactoryModuleBuilder
>> at
>> com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe 
>> neratorModule.java:
>> 74)
>> at com.google.inject.AbstractModule.configure(AbstractModule.java:
>> 59)
>> at com.google.inject.spi.Elements
>> $RecordingBinder.install(Elements.java:223)
>> at com.google.inject.spi.Elements.getElements(Elements.java:101)
>> at com.google.inject.internal.InjectorShell
>> $Builder.build(InjectorShell.java:132)
>> at
>> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCr 
>> eator.java:
>> 103)
>> at com.google.inject.Guice.createInjector(Guice.java:95)
>> at com.google.inject.Guice.createInjector(Guice.java:72)
>> at com.google.inject.Guice.createInjector(Guice.java:62)
>> at
>> com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator 
>> .java:
>> 66)
>> at
>> com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja 
>> va:
>> 48)
>> at
>> com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator 
>> ExtWrapper.java:
>> 60)
>> at
>> com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally 
>> (StandardGeneratorContext.java:
>> 662)
>> at
>> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
>> 41)
>> at com.google.gwt.dev.shell.StandardRebindOracle
>> $Rebinder.rebind(StandardRebindOracle.java:74)
>> at
>> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j 
>> ava:
>> 259)
>> at
>> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j 
>> ava:
>> 141)
>> at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
>> 585)
>> at
>> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
>> 455)
>> at
>> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>> at com.google.gwt.core.client.GWT.create(GWT.java:98)
>> at
>> com.gwtplatform.samples.hplace.client.Gwtphplacesample.
>> (Gwtphplacesample.java:29)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
>> Method)
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> at
>> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>> Source)
>> at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> at
>> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
>> 465)
>> at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
>> 375)
>> at
>> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
>> .java:
>> 183)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
>> nelServer.java:
>> 510)
>> at
>> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
>> 352)
>> at java.lang.Thread.run(Unknown Source)
> 
> -- 
> You received this me

Re: javax.naming.InitialContext is not supported by Google App Engine's Java runtime environment

2011-03-09 Thread JosephLi
A limitation of GAE, bottom of the page indicated JNDI lookup is not
supported:  http://code.google.com/appengine/docs/java/config/webxml.html

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



Class files in src directory? (Google Eclipse Plugin Debug Mode)

2011-03-09 Thread euzuro
I seem to have run up against a wall and am curious if anyone else out there 
has seen this behaviour. 

I perform the following steps: 


   - Get latest from trunk of repository
   - Refresh Project in Navigator view of Eclipse
   - Check "svn status" -> no modified files
   - Project->Clean... (cleans and rebuilds project)
   - Check "svn status" -> no modified files
   - Run the application in "Debug" mode[1]
   - Check "svn status" -> no modified files
   - Open link to the application in Browser
   - Check "svn status" -> no modified files
   - ...wait until application fully loads...
   - Check "svn status" -> .class files are littered throughout the /src 
   directory

First of all, this doesn't seem to be happening to any of the other 
developers who are part of the team (and working with the same repository).
Furthermore, this doesn't happen when I am running a full deploy (we use ant 
for deploy build, war is deployed via tomcat)... 

Both of which lead me to think that it must be something to do with my local 
Debug configuration. 

The salient tabs there seem to be:

*Arguments

*
*Program Arguments: *
-remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO 
-codeServerPort 9997 -port  -war 
C:\cygwin\home\euzuro\tt\trunk\StargazerWeb\war 
com.traveltripper.stargazer.Stargazer
*
VM arguments: 
*-Xmx1024M -XX:MaxPermSize=384m -Denv=LOCAL 
-DconfigBase=classpath:com/traveltripper/config

*Classpath
*
*Bootstrap Entries *
JRE System Library
*User Entries*
**src
gwt-dev.jar
WEB-INF
ProjectName (default classpath)   

Anyone have any ideas? Infinitely grateful for any guidance. As you can 
probably guess, I'm not terribly versed at Eclipse so any help is 
appreciated.

Cheers,
Erik


-- 
You received 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: Unable to run GWTP app after migration to 2.2

2011-03-09 Thread natas
I'm having the same issue :s

On Feb 21, 9:18 pm, Karthik  wrote:
> I need a solution to the following problem :
>
> I am running eclispe 3.6, GWT 2.2, Guice 3.0 rc2, gin 10 r137 and gwt-
> p 0.5, the code compiles fine but when I try to run the app i end up
> with the following error :
>
> 13:40:24.062 [ERROR] [gwtphplacesample] Failed to create an instance
> of 'com.gwtplatform.samples.hplace.client.Gwtphplacesample' via
> deferred binding
>
> java.lang.RuntimeException: Deferred binding failed for
> 'com.gwtplatform.samples.hplace.client.gin.ClientGinjector' (did you
> forget to inherit a required module?)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:53)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at
> com.gwtplatform.samples.hplace.client.Gwtphplacesample.
> (Gwtphplacesample.java:29)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 465)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 375)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
> .java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 352)
>     at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NoClassDefFoundError: com/google/inject/
> assistedinject/FactoryModuleBuilder
>     at
> com.google.gwt.inject.rebind.GinjectorGeneratorModule.configure(GinjectorGe 
> neratorModule.java:
> 74)
>     at com.google.inject.AbstractModule.configure(AbstractModule.java:
> 59)
>     at com.google.inject.spi.Elements
> $RecordingBinder.install(Elements.java:223)
>     at com.google.inject.spi.Elements.getElements(Elements.java:101)
>     at com.google.inject.internal.InjectorShell
> $Builder.build(InjectorShell.java:132)
>     at
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCr 
> eator.java:
> 103)
>     at com.google.inject.Guice.createInjector(Guice.java:95)
>     at com.google.inject.Guice.createInjector(Guice.java:72)
>     at com.google.inject.Guice.createInjector(Guice.java:62)
>     at
> com.google.gwt.inject.rebind.GinjectorGenerator.generate(GinjectorGenerator 
> .java:
> 66)
>     at
> com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.ja 
> va:
> 48)
>     at
> com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(Generator 
> ExtWrapper.java:
> 60)
>     at
> com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally 
> (StandardGeneratorContext.java:
> 662)
>     at
> com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:
> 41)
>     at com.google.gwt.dev.shell.StandardRebindOracle
> $Rebinder.rebind(StandardRebindOracle.java:74)
>     at
> com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.j 
> ava:
> 259)
>     at
> com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind(ShellModuleSpaceHost.j 
> ava:
> 141)
>     at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
> 585)
>     at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 455)
>     at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:49)
>     at com.google.gwt.core.client.GWT.create(GWT.java:98)
>     at
> com.gwtplatform.samples.hplace.client.Gwtphplacesample.
> (Gwtphplacesample.java:29)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
>     at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
> Source)
>     at java.lang.reflect.Constructor.newInstance(Unknown Source)
>     at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 465)
>     at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
> 375)
>     at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler 
> .java:
> 183)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 510)
>     at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 352)
>     at java.lang.Thread.run(Unknown Source)

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

Re: RequestFactoryEditorDriver example?

2011-03-09 Thread Vasily
Yes, thank you! I already found a description of that exception and
can confirm, what
modifying of setter for phoneList as you described solving the issue.

Thanks for your time!

On Mar 10, 12:08 am, Thomas Broyer  wrote:
> I don't know JPA/JDO much, but wouldn't implementing the setPhoneList as a
> clear/addAll fix it?

-- 
You received 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 Designer - full version

2011-03-09 Thread gina
You can install GWT Designer from the Updates sites found here...

http://code.google.com/webtoolkit/tools/download-gwtdesigner.html


On Mar 9, 1:02 pm, András Csányi  wrote:
> The eclipse version isnt the full version?
> On 9 Mar 2011 22:00, "Eve"  wrote:> For evaluation, is the 
> full version available for download anywhere?
> > I can only find the Eclipse plug-in from the download site.
>
> > 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: RequestFactoryEditorDriver example?

2011-03-09 Thread Thomas Broyer
I don't know JPA/JDO much, but wouldn't implementing the setPhoneList as a 
clear/addAll fix it?

-- 
You received 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: Netbeans plugin

2011-03-09 Thread András Csányi
I was clearing my head abnd reinstall again and its working fine.
On 8 Mar 2011 17:39, "khiem nguyen"  wrote:
> there's one, works with normal AsyncService , just go to
> preference-plugins... u'll find it.
> but i dont think u can use GWT-Designer.
> if u u maven, it doesnt matter which ide u're using
>
> On Tue, Mar 8, 2011 at 3:27 PM, András Csányi 
wrote:
>
>> Hi all!
>>
>> Does anybody use the GWT Netbeans plugin?
>>
>> Thanks in advance!
>>
>> András
>>
>> --
>> - -
>> -- Csanyi Andras (Sayusi Ando) -- http://sayusi.hu --
>> http://facebook.com/andras.csanyi
>> -- ""Trust in God and keep your gunpowder dry!" - Cromwell
>>
>> --
>> You received 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 Designer - full version

2011-03-09 Thread András Csányi
The eclipse version isnt the full version?
On 9 Mar 2011 22:00, "Eve"  wrote:
> For evaluation, is the full version available for download anywhere?
> I can only find the Eclipse plug-in from the download site.
>
> 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.



2.2.0 - EditTextCell - How to reset previous value

2011-03-09 Thread bobbassen
I am having trouble retreiving the previous value of the the cell and
placing it back on the actual table in the panel/

I am trying to capture when user enters a blank.  I am posting an
alert message but I am not able to retrieve and display the original
value.

I see options to do this in the TextInputCell.

The text cell will actually shrink (I am using a CellTable with just
one column).  When I select that row again, the field will then expand
with no value.  If I then select another row, it will finally show the
original value.

There is no way for me to get ahold of the ViewData to replace the
text value for this Cell?

Here is a snapshot of my code:

docName.setFieldUpdater(new FieldUpdater()
{
public void update(int index, MyDocument
myDocumentToBeUpdated, final String changeValueFromScreen)
{
//Check if old and new are different before
updating to DB
if (!
myDocumentToBeUpdated.getDisplayName().equals(changeValueFromScreen))
{
if (changeValueFromScreen.trim().equals(""))
{
docScrollPanel.remove(cellTable);

Window.alert("Document name can not be
blank.");
//trying to refresh the list and the table
in the panel
retrieveDocsFromService(null);
docScrollPanel.add(cellTable);
docScrollPanel.remove(cellTable);

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



Problem using activemq with GWT

2011-03-09 Thread Ramya
Hi,
 I am using activemq inside a GWT project. I follwed the steps
give in http://code.google.com/p/gwt-activemq/..
But when I run the GWT project I get the following error:


[ERROR] javax.servlet.ServletContext log: unavailable
java.security.AccessControlException: access denied
(java.lang.RuntimePermission modifyThreadGroup)


Can anyone help me?

Ramya

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



GWT Designer - full version

2011-03-09 Thread Eve
For evaluation, is the full version available for download anywhere?
I can only find the Eclipse plug-in from the download site.

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.



Overriding JSNI methods causes crash ?

2011-03-09 Thread Pierre
Hi all,

I am experiencing problems when using GWT / JSNI :

For tests, let's have a parent class with a JSNI method such as
public class TestParent {
public native void show()/*-{
$doc.write("PARENT JSNI");
}-*/;
}

and a child class overriding the parent JSNI method, such as
public class TestChild extends TestParent {
@Override
public void show() {
super.show();
RootPanel.get().add(new HTML("TestChild.show"));
}
}

and a basic EntryPoint :
public class Helloworld implements EntryPoint {

public void onModuleLoad() {
TestChild t = new TestChild();
t.show();
}
}

When calling the TestChild .show() method, we could assume getting the
result :
"PARENT JSNI" + "TestChild.show"

And in fact, we get the following result :
On Google Chrome 11 in development mode with GWT plugin :
"PARENT JSNI" and an error in the GWT plugin Development mode tab :

[DEBUG] [helloworld] - Rebinding
com.google.gwt.user.client.impl.WindowImpl
[DEBUG] [helloworld] - Checking rule 
[ERROR] [helloworld] - Error while executing the JavaScript 
provider
for property 'user.agent'
[ERROR] [helloworld] - Unable to get value of property 
'user.agent'
[ERROR] [helloworld] - Deferred binding failed for
'com.google.gwt.user.client.impl.WindowImpl'; expect subsequent
failures
[ERROR] [helloworld] - Unable to load module entry point class
fr.helloworld.client.Helloworld (see associated exception for details)
[ERROR] [helloworld] - Failed to load module 'helloworld' from user
agent 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/534.24 (KHTML, like
Gecko) Chrome/11.0.696.0 Safari/534.24' at localhost:

This error stops any further instruction in the application.

On Firefox 3.6 in development mode with GWT plugin:
"PARENT JSNI" + "TestChild.show"  (fine) but the browser is redirected
to http://127.0.0.1:/helloworld/hosted.html?helloworld and keeps
loading forever

When building the GWT project, the result are also different :
Chrome :
correct , works fine

Firefox 3.6 :
correct text displayed but the browser is redirected to helloworld/
F0E90C8F76FAE58BAB597BFF7095D19A.cache.html (compiled version for
firefox user agent) and keeps loading forever. I encountered the
problem on a real application, and of course the compiled application
was unable to run correctly.

Should I conclude that developer should never try to override JSNI
methods ?
Should we guess that it is a GWT compiler bug ?

-- 
You received 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 Refreshing Issues With Safari

2011-03-09 Thread Oleksi Derkatch
Hey,

I am having a problem adding rows to a CellTable in Safari.

It seems that Safari doesn't render the content of the CellTable
occasionally. That is, the ListDataProvider table has data, but it's
not being reflected in the cell table widget. Refreshing the page
sometimes solves this issue. In general it works ~60% of the time.

Here's the code I am using to add the data (variable named data):

tableData.add(data);
cellTable.setRowCount(tableData.size(), true);

where tableData is defined like so in the constructor:
tableData = dataProvider.getList();

The type of tableData is just a List.

This seems to work without a problem in Firefox 3.6.15 and Chrome
10.0.648.127, and seems to be broken in Safari 5.0.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-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: Netbeans plugin

2011-03-09 Thread Radoslav
Hi Andras,

Yes, I am using it.

Rad

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



Unable to download zipped plugin site

2011-03-09 Thread GWT Group
Hi -

I have tried multiple times to download from this site:

http://code.google.com/eclipse/docs/install-from-zip.html

to install the GWT plugin for Eclipse 3.5 (Galileo). I keep getting a
timeout error. I'm using Firefox via a proxy server which works fine
for all other downloads. I don't have this issue with any of the other
plugin downloads I've tried.

Please let me know. We're trying to evaluate Sencha's EXT GWT set up
and one of the downloads is this plugin so we can start development.

Thanks

Archana

-- 
You received 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: Editor Framework for large set of properties

2011-03-09 Thread Kathiravan Tamilvanan
Thanks Thomas.

I am returning a List from the RequestFactory. Is it the 
correct that ListEditor can only have homogeneous children widget types? The 
requirement for me is to use different widget types based on the Parameter 
types. ( could be text field, checkbox and so on).

We have already got the UI part done using UIBinder. I am really confused 
how to use the Editor approach to bind the values in to the UI now. ( The 
dynatablerf FavoritesWidget uses the ListEditor approach, and i dont think i 
can use it in this scenario )

-- 
You received 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: RequestFactoryEditorDriver example?

2011-03-09 Thread Vasily
Hi All,

public class Contact {
@OneToMany(cascade=CascadeType.ALL, fetch =
FetchType.EAGER,mappedBy="contact", orphanRemoval=true)
private List phoneList = new ArrayList();
}

public class Phone {
@ManyToOne(optional = false)
private Contact contact;
}

I've got an exception during persist of Contact entity after edit with
RequestFactoryEditorDriver:
org.springframework.orm.jpa.JpaSystemException:
org.hibernate.HibernateException: A collection with cascade="all-
delete-orphan" was no longer referenced by the owning entity instance:
server.domain.Contact.phoneList; nested exception is
javax.persistence.PersistenceException:
org.hibernate.HibernateException: A collection with cascade="all-
delete-orphan" was no longer referenced by the owning entity instance:
server.domain.Contact.phoneList

It seems, somewhere (in Editor framework?) a new collection of phone's
creating & then used during persist()... That cause an original
collection to become unreferenced & cause that exception.

Could anybody suggest a workaround? Thx!

On Mar 6, 12:44 am, Thomas Broyer  wrote:
> On Saturday, March 5, 2011 4:56:42 PM UTC+1, Vasily wrote:
>
> > > > 2. User may add/edit/remove phones, so I wrote my own editor...
>
> > > The second step is not required; it entirely depends how persisting the
> > > ContactProxy works (whether it would persist a new Phone or the Phone has
> > to
> > > be persisted on its own).
>
> > C'est bon :) I want Phones to be persisted by edit activity for
> > ContactProxy... cause I'm trying to implement following use cases:
> > 1. User edit fields of ContactProxy...
> > 2. User edit list of PhoneProxy for current ContactProxy... It means
> > he's able to add/remove/edit phones...
> > 3. User click 'Save' and all changes persisting in DB.
> > It means I want 'Save' to be like a transaction... I defenitely don't
> > want to persist phones on it's own.
>
> > Here is some code.
>
> > I have ContactProxy{
> >    some_fields
> >    List phoneList;
> > }
>
> > Also have an edit activity & edit view for ContactProxy.
>
> > ContactView{
> >     some_contact_proxy_fields
> >     PhoneListEditor phoneListEditor;
>
> >     Button saveBtn;
> > }
>
> > ListEditor seems to provide a good boilerplate code to manage UI of
> > list items, so, I've implemented PhoneListEditor on the base of
> > ListEditor.
>
> > PhoneListEditor implements ValueAwareEditor>,
> > LeafValueEditor>{
> >    VerticalPanel container = new VerticalPanel();
>
> >    public interface Driver extends
> > RequestFactoryEditorDriver, ListEditor > PhoneEditView>> {}
>
> I thought you were saying you're editing the ContactProxy, so why do you
> have another Driver for the phoneList property?
> Also, I don't understand why PhoneListEditor isn't just a
> IsEditor> (your PhoneProxy and
> PhoneNumProxy seem to be interchangeable, is this a copy/paste bug?)
>
>
>
> >    private ListEditor listEditor;
>
> >    private List displayedList;
>
> >    PhoneListEditor(){
> >       initWidget(container);
> >       listEditor= ListEditor.of(new PhoneEditorSource());
>
> >       driver = GWT. create(Driver.class);
> >       driver.initialize(eventBus, factory, listEditor);
> >       driver.display(new ArrayList());
>
> >       displayedList=listEditor.getList();
> >    }
>
> >    public void addClicked() {
> > PhoneRequest rq=factory.phoneRequest();
> > PhoneProxy proxy=rq.create(PhoneProxy.class);
> > rq.persist().using(proxy);
> > displayedList.add(proxy);
>
> You're creating a new PhoneRequest to create() and persist() a PhoneProxy
> (that you never actually persist, as you never fire() the Request, and don't
> even keep a reference to it)
>
>   public List getValue() {
>
>
>
> >         return new ArrayList(displayedList);
> >   }
>
> >   public void setValue(List value) {
> > for (PhoneNumProxy itemValue : value) {
> > displayedList.add(itemValue);
> > }
> >   }
>
> >   public void flush() {
> >         driver.flush();
> >   }
>
> > }
>
> > It seems to work ok when I start edit activity... I'm creating editor
> > driver for ContactProxy, editing proxy with save request...
>
> > editorDriver = view.createEditorDriver();
> > editorDriver.edit(getProxy(), createSaveRequest(getProxy()));
>
> > ... so, all Contact data & list of phones displayed properly...
>
> > The problem occured when I try to save a new phone... I see what
> > flush() in AbstractRequestFactory called twice... One time for
> > ContactProxy & second - for PhoneProxy... For PhoneProxy I've got a
> > "java.lang.Throwable: edit() was called with a null Request" which is
> > true... for ContactProxy I'm callind edit(...) manually with my own
> > save request, but for PhoneProxy I don't now how to do that as edit()
> > should be called by RFED, right?
>
> No, you're display()ing the List in a distinct RFED (and
> display(proxy) is equivalent to edit(proxy, null))
>
> > I'm planning to implement all those bells & whistles with validation
> > later... so I'm trying to use RFED... but, HOW TO MAKE IT WORK 

Re: Offline devmode firefox plugin problem

2011-03-09 Thread Gail

I do have a /usr/lib/libnspr4.so.

Any other ideas??


On Mar 8, 1:55 pm, Chris Conroy  wrote:
> Some distros repackaged libnspr in a way that breaks our linkage to it. Do
> you have a /usr/lib/libnspr4.so? If not, see if you have a similarly named
> lib and trying making /usr/lib/libnspr4.so symlink to your installed nspr.
>
> On Tue, Mar 8, 2011 at 1:40 PM, Gail  wrote:
> > Hello again,
>
> > Okay, I found in the Release notes for Red Hat JBoss Web Framework Kit
> > v 1.1 that GWT Developer plugin is not compatible with Red Hat
> > Enterprise Linux 4.  This was in Chapter 8 "Known Issues with this
> > release" with a JIRA reference of JBPAPP-5099.  Looking at the JIRA
> > comments, the fix was to add the issue to the list of issues in the
> > release notes where they also say it is tested and certified to work
> > with Red Hat Enterprise Linux 5.  I don't have an option to go to 5 at
> > this point.  I certainly hope that doesn't mean I shouldn't use GWT
> > 2.0!!
>
> > Given that, how do I see what is going on when things don't render in
> > GWT?  I am new to this framework so am probably making simple mistakes
> > in setting things up.  When that results in something just not
> > rendering, I'm not sure where to look for what is wrong.
>
> > For example, I eventually want a horizontal split panel with the right
> > panel being a vertical split panel and I want one of those panels to
> > contain a table of data.  I had modified the code generated by the
> > webAppCreator script to have the three panels using SplitLayoutPanel.
> > I put  the name / password boxes in one of the three panels and the
> > dialog box in another part just to ensure things are displayed.  All
> > was well.  Using code from the GWT Showcase as an example, I tried to
> > add a CellTable to one of those panels.  It just didn't render.  At
> > that point, I'm not sure how to determine the source of the problem.
> > The Firefox logs and output don't show any errors or issues.  I used
> > Window.alert to pop up messages as the table was built to make sure it
> > was populated so I know I had a table with data in it.  Using Firebug,
> > I can see the html where the table is supposed to be (it highlights as
> > just a line across the panel) but it doesn't mean anything to me.
>
> > So now what?  Obviously I am missing a step in setting things up.  Is
> > there a way to have the GWT processing provide some output in verbose
> > mode or something so I can get an idea of what I am missing.  Perhaps
> > if I can see what is happening when it is adding the widget to the
> > panel and possibly see why there is nothing being added to the html
> > for the rows?
>
> > Any ideas would be appreciated.
>
> > Gail
>
> > On Feb 24, 12:24 pm, Gail  wrote:
> > > Hello,
>
> > > I am working in an environment that is not connected to the Internet
> > > so I installed the GWT Developer Plugin for Firefox by downloading it,
> > > copying it to my developer workstation and using Firefox plugin
> > > manager to install it.  The plugin version that is successfully
> > > installed is 1.09.9639 -- downloaded from the Internet today.
>
> > > I just set up a new GWT 2 project using webAppCreator.  In the project
> > > directory, I type the command 'ant devmode'.  The GWT Development Mode
> > > window comes up and when I click on the "Launch Default Browser"
> > > button, the missing plugin message comes up indicating that
> > > 'Additional plugins are required...' and the browser tries to connect
> > > to the Internet to get the plugin.
>
> > > In build.xml, I added -logLevel TRACE to the gwt args and can see that
> > > the code and web servers are started on the default ports (confirmed
> > > by netstat -a) and there are no error messages.
>
> > > If I copy the url and paste it into the Firefox browser, I get the
> > > same error.  If I take off the gwt.codesvr part of the url, the Web
> > > App Starter Project page comes up fine, asking for a name and
> > > successfully completes the RPC, reporting that it is running
> > > jetty-6.1.x and I am using Mozilla/5.0 ... Linux i686 ... Red Hat/
> > > 3.6-1.el4 Firefox/3.6.9.  I get the same results if I build a war and
> > > drop it in my tomcat webapps directory.
>
> > > How do I get GWT devmode to stop asking for the plugin that is already
> > > installed?
>
> > > Thank you in advance for any help anyone can provide!
>
> > > Regards,
> > > Gail
>
> > --
> > You received 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.

Where to find latest GWT IE developer plugin for offline installation?

2011-03-09 Thread Yaakov
Hi,

Could someone share a URL where I can get the latest GWT IE developer
plugin? However, I need one that can be installed into IE on a machine
that's disconnected from the Internet.

Thanks,
Yaakov.

-- 
You received 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 changes not reflected on browser refresh

2011-03-09 Thread Andrew Pikler
Thank you! This fixed it.

I had been using that URL in the past, which is why I said it used to
work... but for one reason or another, I switched to using just
http://localhost: for another app where that URL worked, and didn't
realize I had to go back to the long URL for this one.

On Wed, Mar 9, 2011 at 11:15 AM, Chris Conroy  wrote:

> You need to point your browser at
> http://localhost:?gwt.codesvr=127.0.0.1:9997 (assuming you are running
> with the default settings). This URL also shows up in the DevMode tab when
> it starts up in Eclipse for you to copy paste or launch your browser.
>
> On Wed, Mar 9, 2011 at 3:23 AM, Andrew  wrote:
>
>> Hi-
>>
>> I'm using Eclipse 3.5.2 under Ubuntu with Google Web Toolkit SDK
>> 2.2.0, and Google App Engine Java SDK 1.4.2.
>>
>> Recently I worked through the StockWatcher example, found at
>>
>> http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html
>>
>> It used to work such that I could make changes to the java code in the
>> project (for example, in StockWatcher.java) while the development
>> server was running, then refresh my browser (pointed to
>> http://localhost:),
>> and the changes in my code would immediately be reflected on the page.
>>
>> However, something has changed. I have no idea what, or why. Now, if I
>> refresh my browser the code changes are not reflected on the page that
>> comes up. I have to recompile the entire project by clicking on the
>> red "G" icon labeled "GWT Compile Project" in the toolbar, which takes
>> a long time, then restart the development server, in order for my
>> changes to become visible in the browser (upon refresh). This is true
>> for both Firefox and Chrome.
>>
>> I've tried a bunch of things to fix this... Project->Build
>> Automatically is checked, and I even tried reinstalling the GWT plugin
>> for eclipse.
>>
>> If I make a change to an HTML file instead., for example
>> StockWatcher.html, the changes are reflected in the browser upon
>> refresh, as normal.
>>
>> Please help! Recompiling the entire project every time is very
>> annoying.
>> Thanks.
>> Andrew
>>
>> --
>> You received 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: RequestFactory + Hibernate + MySql + OrphanRemoval = not working.

2011-03-09 Thread Vasily
Ok, I've got an exception...

2011-03-09 22:29:17,230 [btpool0-2] DEBUG
org.springframework.orm.jpa.JpaTransactionManager - Initiating
transaction rollback after commit exception
org.springframework.orm.jpa.JpaSystemException:
org.hibernate.HibernateException: A collection with cascade="all-
delete-orphan" was no longer referenced by the owning entity instance:
com.happycoders.server.domain.Contact.phoneList; nested exception is
javax.persistence.PersistenceException:
org.hibernate.HibernateException: A collection with cascade="all-
delete-orphan" was no longer referenced by the owning entity instance:
com.happycoders.server.domain.Contact.phoneList
at
org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:
311)
at
org.springframework.orm.jpa.DefaultJpaDialect.translateExceptionIfPossible(DefaultJpaDialect.java:
120)
at
org.springframework.orm.jpa.JpaTransactionManager.doCommit(JpaTransactionManager.java:
471)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:
754)
at
org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:
723)
at
org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:
393)
at
org.springframework.transaction.aspectj.AbstractTransactionAspect.ajc
$afterReturning
$org_springframework_transaction_aspectj_AbstractTransactionAspect
$3$2a73e96c(AbstractTransactionAspect.aj:78)
at com.happycoders.server.domain.Contact_Roo_Entity.ajc$interMethod
$com_happycoders_server_domain_Contact_Roo_Entity
$com_happycoders_server_domain_Contact$persist(Contact_Roo_Entity.aj:
56)
at com.happycoders.server.domain.Contact.persist(Contact.java:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.requestfactory.server.ReflectiveServiceLayer.invoke(ReflectiveServiceLayer.java:
164)
at
com.google.gwt.requestfactory.server.ServiceLayerDecorator.invoke(ServiceLayerDecorator.java:
89)
at
com.google.gwt.requestfactory.server.ServiceLayerDecorator.invoke(ServiceLayerDecorator.java:
89)
at
com.google.gwt.requestfactory.server.SimpleRequestProcessor.processInvocationMessages(SimpleRequestProcessor.java:
440)
at
com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
218)
at
com.google.gwt.requestfactory.server.SimpleRequestProcessor.process(SimpleRequestProcessor.java:
125)
at
com.google.gwt.requestfactory.server.RequestFactoryServlet.doPost(RequestFactoryServlet.java:
118)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1097)
at
org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:
113)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
76)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:
77)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
76)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:
88)
at
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:
76)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1088)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at
org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:
49)
at
org.mortbay.jetty.handler.HandlerWrapper

Re: Installing GWT to eclipse 3.6 (helios)

2011-03-09 Thread gina
What's the update site you're trying to install from?

On Mar 9, 2:42 am, Rajeshwar Mitra  wrote:
> I'm trying install GWT SDK and GWT designer. The installation getting
> aborted in between. Approximately after downloading about 50% of the
> contents. I'm exactly following the steps provided in the GWT site.
>
> I tried downloading the archive file and installing through that. In
> that case as well it is informing that some file are missing. Is there
> any one who can 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-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 + MySql + OrphanRemoval = not working.

2011-03-09 Thread Juan Pablo Gardella
orphanRemoval is an entirely ORM-specific thing. It marks "child" entity to
be removed when it's no longer referenced from the "parent" entity, e.g.
when you remove the child entity from the corresponding collection of the
parent entity.
Perhaps don't remove because you have a reference in Contact to the phone
that you want remove. Try do a Test.

Juan

2011/3/9 Vasily 

> That's fine Juan...
>
> Actually, I'm editing Contact with Editor framework via
> RequestFactoryEditorDriver...
> List of phones are edited by my custom editor on the base of
> ListEditor:
>
> public class PhoneEditor extends Composite implements
> IsEditor> {
>
>...
>
>@Override
>public void deleteClicked(PhoneNumEditView view) {
>int index=listEditor.getEditors().indexOf(view);
>if(index!=-1){
>PhoneNumProxy proxy=listEditor.getList().get(index);
>listEditor.getList().remove(index);
>}
>
>}
>   ...
> }
>
> When delete btn clicked, I simply remove phone item from ListEditor.
> When 'Save' btn clicked I just simply persisting Contact, so Editor
> framework do all it's magic by mapping UI dat to object...
>
> Again, all things stop working when I'm adding 'orphanRemoval=true' to
> Contact annotation... Without that, I can add, edit phones in the list
> and it works perfectly...
>
> On Mar 9, 7:58 pm, Juan Pablo Gardella 
> wrote:
> > Sorry my english... Where are you do the operation? Paste the code
> >
> > Juan
> >
> > 2011/3/9 Juan Pablo Gardella 
> >
> > > Where are you this? Post the code
> >
> > > Juan
> >
> > > 2011/3/9 Vasily 
> >
> > > Hi All, have simple case:
> >
> > >> @RooJavaBean
> > >> @RooToString
> > >> @RooEntity
> > >> public class Contact {
> >
> > >> @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER,
> > >> mappedBy="contact", orphanRemoval=true)
> > >> private List phoneList = new ArrayList();
> > >> }
> >
> > >> @RooJavaBean
> > >> @RooToString
> > >> @RooEntity
> > >> public class Phone{
> > >>private String phone;
> >
> > >>@ManyToOne(optional = false)
> > >>private Contact contact;
> > >> }
> >
> > >> I want to remove Phone items from DB table as soon as I'm removing
> > >> them from Contact.phoneList so I found I can use 'orphanRemoval=true'.
> >
> > >> All works fine, until I'm adding 'orphanRemoval=true' to
> > >> annotations... After that, I have no errors, but any changes to
> > >> entities not persisting at all... :/
> >
> > >> MySql 5.5.8
> > >> Hibernate 3.6.1 (3.6.0 also tested with same results)
> >
> > >> Ideas? Thx!
> >
> > >> --
> > >> You received 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.



GWT Testing Window.alert

2011-03-09 Thread Noor
Is it possible to test whether a Window.alert has been launched using
Junit GWTTEstCase?? If this is not possible how can I know if a
window.alert has been raised??

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



Generic EntityLocator

2011-03-09 Thread Kathiravan Tamilvanan
We have created a BaseEntity with the following fields,


   - primary key
   - version
   - date

I have created an ApplicationEntityLocator to get the getID, getVersion, 
find(Entity) instead of writing them on each entity object. 

public class EntityLocator extends Locator
{

@Override
public BaseEntity create(Class clazz)
{
try
{
return clazz.newInstance();
}
catch (InstantiationException e)
{
e.printStackTrace();
}
catch (IllegalAccessException e)
{
e.printStackTrace();
}
return null;
}

@Override
public BaseEntity find(Class clazz, Long id)
{
return null;
}

@Override
public Class getDomainType()
{
return BaseEntity.class;
}

@Override
public Long getId(BaseEntity domainObject)
{
return domainObject.getPrimaryKey();
}

@Override
public Class getIdType()
{
return Long.class;
}

@Override
public Object getVersion(BaseEntity domainObject)
{
return domainObject.getEntityVersion();
}
}

I am not sure of how to use the existing Spring service layer to implement 
the find method on the EntityLocator. How do i locate the service 
implementation from inside EntityLocator, can i do the following in the find 
method

HttpServletRequest request = RequestFactoryServlet.getThreadLocalRequest();
ApplicationContext context = 
WebApplicationContextUtils.getWebApplicationContext(request.getSession()
.getServletContext());
context.getBean(clazz).find(id);

is this a good approach?

-- 
You received 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 + MySql + OrphanRemoval = not working.

2011-03-09 Thread Vasily
That's fine Juan...

Actually, I'm editing Contact with Editor framework via
RequestFactoryEditorDriver...
List of phones are edited by my custom editor on the base of
ListEditor:

public class PhoneEditor extends Composite implements
IsEditor> {

...

@Override
public void deleteClicked(PhoneNumEditView view) {
int index=listEditor.getEditors().indexOf(view);
if(index!=-1){
PhoneNumProxy proxy=listEditor.getList().get(index);
listEditor.getList().remove(index);
}

}
   ...
}

When delete btn clicked, I simply remove phone item from ListEditor.
When 'Save' btn clicked I just simply persisting Contact, so Editor
framework do all it's magic by mapping UI dat to object...

Again, all things stop working when I'm adding 'orphanRemoval=true' to
Contact annotation... Without that, I can add, edit phones in the list
and it works perfectly...

On Mar 9, 7:58 pm, Juan Pablo Gardella 
wrote:
> Sorry my english... Where are you do the operation? Paste the code
>
> Juan
>
> 2011/3/9 Juan Pablo Gardella 
>
> > Where are you this? Post the code
>
> > Juan
>
> > 2011/3/9 Vasily 
>
> > Hi All, have simple case:
>
> >> @RooJavaBean
> >> @RooToString
> >> @RooEntity
> >> public class Contact {
>
> >> @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER,
> >> mappedBy="contact", orphanRemoval=true)
> >> private List phoneList = new ArrayList();
> >> }
>
> >> @RooJavaBean
> >> @RooToString
> >> @RooEntity
> >> public class Phone{
> >>    private String phone;
>
> >>    @ManyToOne(optional = false)
> >>    private Contact contact;
> >> }
>
> >> I want to remove Phone items from DB table as soon as I'm removing
> >> them from Contact.phoneList so I found I can use 'orphanRemoval=true'.
>
> >> All works fine, until I'm adding 'orphanRemoval=true' to
> >> annotations... After that, I have no errors, but any changes to
> >> entities not persisting at all... :/
>
> >> MySql 5.5.8
> >> Hibernate 3.6.1 (3.6.0 also tested with same results)
>
> >> Ideas? Thx!
>
> >> --
> >> You received 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-Designer bug ?

2011-03-09 Thread khiem nguyen
yes, i'm using maven. will try the latest beta
thanx

On Wed, Mar 9, 2011 at 5:15 PM, Eric Clayberg  wrote:

> Are you using Maven? This looks like a Maven-related issue we have
> seen before.
>
> Have you tried the latest GWT Designer build?
>
>http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html
>
> On Mar 8, 5:44 pm, khiem nguyen  wrote:
> > sorry
> >
> > Version: Helios Service Release 2
> > Build id: 20110218-0911
> >
> > gpe: 3.6
> > gwt-design 2.2
> > gwt 2.2.0
> >
> > jdk  1.6.0_24
> > linux  2.6.35.11-83.fc14.x86_64
> >
> > (same problem on OSX 10.6.6, jdk 1.6 with the same gwt+ eclipse + gpe +
> > gwt-design version)
> >
> > Full context stack trace:
> >
> > java.lang.NullPointerException
> > at
> >
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClass
> Loader(HostedModeSupport.java:184)
> > at
> >
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoa
> ders(HostedModeSupport.java:92)
> > at
> >
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.(HostedM
> odeSupport.java:62)
> > at
> >
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create(
> HostedModeSupportFactory.java:22)
> > at
> >
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedMod
> eSupport(GwtState.java:1195)
> > at
> >
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0(
> GwtState.java:243)
> > at
> >
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(G
> wtState.java:219)
> > at
> >
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createGWTSt
> ate(UiBinderContext.java:373)
> > at
> >
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createProje
> ctClassLoader(UiBinderContext.java:246)
> > at
> >
> org.eclipse.wb.internal.core.xml.model.EditorContext.createClassLoader(Edit
> orContext.java:146)
> > at
> >
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createClass
> Loader(UiBinderContext.java:229)
> > at
> >
> org.eclipse.wb.internal.core.xml.model.EditorContext.initialize(EditorConte
> xt.java:100)
> > at
> >
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBind
> erParser.java:89)
> > at
> >
> com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(Ui
> BinderDesignPage.java:93)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X
> mlDesignPage.java:408)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access$2(XmlDesignPag
> e.java:400)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7$1.run(XmlDesignPage
> .java:374)
> > at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
> > at
> org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
> > at org.eclipse.swt.widgets.Display.syncExec(Display.java:4282)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7.run(XmlDesignPage.j
> ava:371)
> > at
> >
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.ja
> va:464)
> > at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
> > at
> >
> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.j
> ava:507)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_w
> ithProgress(XmlDesignPage.java:392)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X
> mlDesignPage.java:345)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(U
> ndoManager.java:229)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.ja
> va:85)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPa
> ge.java:164)
> > at
> >
> org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(Abstra
> ctXmlEditor.java:314)
> > at
> >
> org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPar
> t.java:290)
> > at
> org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
> > at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
> > at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
> > at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
> > at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
> > at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> > at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> > at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
> > at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
> > at or

Re: Issue with ValueListBox

2011-03-09 Thread Steve
On Mar 9, 11:27 am, Thomas Broyer  wrote:
> ValueListBox automatically adds any value passed to setValue() to the list
> of "acceptable values", so you probably have some setValue(null) somewhere,
> or it might rather be that you don't have a setValue() anywhere, so the
> ValueListBox tries to select the default value (null) in the list, and adds
> it to the list of "acceptable values" as a consequence.

Thanks, that was it!

For anyone who gets to this post by a search, Thomas was correct --
the problem was that I had not set a value, but added acceptible
values.  So since it had no value, it added "null" to the list.  I
resolved it by setting the value PRIOR to setting the acceptible
values, like this --

storeListBox.setValue(currentStore);
storeListBox.setAcceptableValues(app.getStoresList());

And that resolved the issue.

-- 
You received 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: Possible to use RequestFactory with a non-java server?

2011-03-09 Thread Andi
hey fturtle,

please take a look at restygwt. it works very well for us :)

andi

(vom fon)

On 09.03.2011, at 16:00, fturtle  wrote:

> Hi,
> 
> Is it possible to use RequestFactory with a non-java server (maybe by
> creating a custom requestfactory transport?). Was request factory
> designed with this in mind. I'm looking to map it to a restful json
> service.
> 
> Many thanks,
> fturtle
> 
> -- 
> You received 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: Editor Framework for large set of properties

2011-03-09 Thread Thomas Broyer
You can probably have an Editor>, but you'd have to either make it 
a LeafValueEditor> (probably not what you want: this means the 
Editor framework gives you the map for you to "edit" it) or some sort of 
MapEditor extending CompositeEditor (have a look at how ListEditor works).

Note that you cannot (as of today) send Maps over RequestFactory though. You 
could convert them to/from a List and then use the ListEditor though.

-- 
You received 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: Editor Framework for large set of properties

2011-03-09 Thread Kathiravan Tamilvanan
I have some properties which are getters and setters. But i also have a map 
of properties which are to be shown on the UI. Is there anyway to use the 
editor driver to connect the map of properties to the UI 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-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.



Datagrid Json

2011-03-09 Thread Marco Gadaleta
Hi, this is the possibility to use json object inside celltable ?
I hope in a response.
Thx,

-- 
Marco

-- 
You received 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: Possible to use RequestFactory with a non-java server?

2011-03-09 Thread David Chandler
It's theoretically possible because RF is JSON-based, but hasn't been done
yet to my knowledge.

/dmc

On Wed, Mar 9, 2011 at 10:00 AM, fturtle  wrote:

> Hi,
>
> Is it possible to use RequestFactory with a non-java server (maybe by
> creating a custom requestfactory transport?). Was request factory
> designed with this in mind. I'm looking to map it to a restful json
> service.
>
> Many thanks,
> fturtle
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>


-- 
David Chandler
Developer Programs Engineer, Google Web Toolkit
w: http://code.google.com/
b: http://googlewebtoolkit.blogspot.com/
t: @googledevtools

-- 
You received 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: External Tomcat in hosted mode

2011-03-09 Thread Martin Trummer
here's a good description:
http://code.google.com/eclipse/docs/faq.html#gwt_with_maven

On Mar 9, 3:34 pm, Eduardo Palma  wrote:
> I'm working on a project that's currently using:
>   GWT - 2.0.4
>   Spring - 3.0.5
>   Hibernate - 3.3.1
>   Maven - 2.2.1
>   Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0
>
> I'm having a lot of troubles using the embedded jetty on this project.
> I already tried many workarounds but nothing worked. So now I'm trying
> to use an external Tomcat in hosted mode but I'm also facing some
> issues. The GWT documentation about this is not very clear, and it
> talks about using ant to build the project, which we do not currently
> use.
>
> Is it possible to do this, while maintaining the ability to debug the
> code in Eclipse? If so, how can I do it?

-- 
You received 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 + MySql + OrphanRemoval = not working.

2011-03-09 Thread Juan Pablo Gardella
Sorry my english... Where are you do the operation? Paste the code

Juan

2011/3/9 Juan Pablo Gardella 

> Where are you this? Post the code
>
> Juan
>
> 2011/3/9 Vasily 
>
> Hi All, have simple case:
>>
>> @RooJavaBean
>> @RooToString
>> @RooEntity
>> public class Contact {
>>
>> @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER,
>> mappedBy="contact", orphanRemoval=true)
>> private List phoneList = new ArrayList();
>> }
>>
>> @RooJavaBean
>> @RooToString
>> @RooEntity
>> public class Phone{
>>private String phone;
>>
>>@ManyToOne(optional = false)
>>private Contact contact;
>> }
>>
>> I want to remove Phone items from DB table as soon as I'm removing
>> them from Contact.phoneList so I found I can use 'orphanRemoval=true'.
>>
>> All works fine, until I'm adding 'orphanRemoval=true' to
>> annotations... After that, I have no errors, but any changes to
>> entities not persisting at all... :/
>>
>> MySql 5.5.8
>> Hibernate 3.6.1 (3.6.0 also tested with same results)
>>
>> Ideas? Thx!
>>
>> --
>> You received 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: RequestFactory + Hibernate + MySql + OrphanRemoval = not working.

2011-03-09 Thread Juan Pablo Gardella
Where are you this? Post the code

Juan

2011/3/9 Vasily 

> Hi All, have simple case:
>
> @RooJavaBean
> @RooToString
> @RooEntity
> public class Contact {
>
> @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER,
> mappedBy="contact", orphanRemoval=true)
> private List phoneList = new ArrayList();
> }
>
> @RooJavaBean
> @RooToString
> @RooEntity
> public class Phone{
>private String phone;
>
>@ManyToOne(optional = false)
>private Contact contact;
> }
>
> I want to remove Phone items from DB table as soon as I'm removing
> them from Contact.phoneList so I found I can use 'orphanRemoval=true'.
>
> All works fine, until I'm adding 'orphanRemoval=true' to
> annotations... After that, I have no errors, but any changes to
> entities not persisting at all... :/
>
> MySql 5.5.8
> Hibernate 3.6.1 (3.6.0 also tested with same results)
>
> Ideas? Thx!
>
> --
> You received 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-Designer bug ?

2011-03-09 Thread Eric Clayberg
Are you using Maven? This looks like a Maven-related issue we have
seen before.

Have you tried the latest GWT Designer build?

http://code.google.com/webtoolkit/tools/download-gwtdesigner-beta.html

On Mar 8, 5:44 pm, khiem nguyen  wrote:
> sorry
>
> Version: Helios Service Release 2
> Build id: 20110218-0911
>
> gpe: 3.6
> gwt-design 2.2
> gwt 2.2.0
>
> jdk  1.6.0_24
> linux  2.6.35.11-83.fc14.x86_64
>
> (same problem on OSX 10.6.6, jdk 1.6 with the same gwt+ eclipse + gpe +
> gwt-design version)
>
> Full context stack trace:
>
> java.lang.NullPointerException
> at
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.getSharedClass 
> Loader(HostedModeSupport.java:184)
> at
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.createClassLoa 
> ders(HostedModeSupport.java:92)
> at
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupport.(HostedM 
> odeSupport.java:62)
> at
> com.google.gdt.eclipse.designer.hosted.tdt.HostedModeSupportFactory.create( 
> HostedModeSupportFactory.java:22)
> at
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.getHostedMod 
> eSupport(GwtState.java:1195)
> at
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize0( 
> GwtState.java:243)
> at
> com.google.gdt.eclipse.designer.model.widgets.support.GwtState.initialize(G 
> wtState.java:219)
> at
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createGWTSt 
> ate(UiBinderContext.java:373)
> at
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createProje 
> ctClassLoader(UiBinderContext.java:246)
> at
> org.eclipse.wb.internal.core.xml.model.EditorContext.createClassLoader(Edit 
> orContext.java:146)
> at
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderContext.createClass 
> Loader(UiBinderContext.java:229)
> at
> org.eclipse.wb.internal.core.xml.model.EditorContext.initialize(EditorConte 
> xt.java:100)
> at
> com.google.gdt.eclipse.designer.uibinder.parser.UiBinderParser.parse(UiBind 
> erParser.java:89)
> at
> com.google.gdt.eclipse.designer.uibinder.editor.UiBinderDesignPage.parse(Ui 
> BinderDesignPage.java:93)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X 
> mlDesignPage.java:408)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.access$2(XmlDesignPag 
> e.java:400)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7$1.run(XmlDesignPage 
> .java:374)
> at org.eclipse.swt.widgets.Synchronizer.syncExec(Synchronizer.java:179)
> at org.eclipse.ui.internal.UISynchronizer.syncExec(UISynchronizer.java:150)
> at org.eclipse.swt.widgets.Display.syncExec(Display.java:4282)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage$7.run(XmlDesignPage.j 
> ava:371)
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.ja 
> va:464)
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
> at
> org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.j 
> ava:507)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF_w 
> ithProgress(XmlDesignPage.java:392)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.internal_refreshGEF(X 
> mlDesignPage.java:345)
> at
> org.eclipse.wb.internal.core.xml.editor.UndoManager.refreshDesignerEditor(U 
> ndoManager.java:229)
> at
> org.eclipse.wb.internal.core.xml.editor.UndoManager.activate(UndoManager.ja 
> va:85)
> at
> org.eclipse.wb.internal.core.xml.editor.XmlDesignPage.setActive(XmlDesignPa 
> ge.java:164)
> at
> org.eclipse.wb.internal.core.xml.editor.AbstractXmlEditor.pageChange(Abstra 
> ctXmlEditor.java:314)
> at
> org.eclipse.ui.part.MultiPageEditorPart$2.widgetSelected(MultiPageEditorPar 
> t.java:290)
> at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1282)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1267)
> at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1061)
> at org.eclipse.swt.custom.CTabFolder.setSelection(CTabFolder.java:2743)
> at org.eclipse.swt.custom.CTabFolder.onMouse(CTabFolder.java:1429)
> at org.eclipse.swt.custom.CTabFolder$1.handleEvent(CTabFolder.java:257)
> at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
> at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3161)
> at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2640)
> at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2604)
> at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2438)
> at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:671)
> at
> org.eclipse.core.databinding.observable.Realm.runWithDefaul

Re: External Tomcat in hosted mode

2011-03-09 Thread Juan Pablo Gardella
Try download an emtpy eclipse and configure it again. And use the plugin for
GWT 2.0.4, no for GWT 2.2.0. It woks.

Juan

2011/3/9 Eduardo Palma 

> I'm working on a project that's currently using:
>  GWT - 2.0.4
>  Spring - 3.0.5
>  Hibernate - 3.3.1
>  Maven - 2.2.1
>  Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0
>
> I'm having a lot of troubles using the embedded jetty on this project.
> I already tried many workarounds but nothing worked. So now I'm trying
> to use an external Tomcat in hosted mode but I'm also facing some
> issues. The GWT documentation about this is not very clear, and it
> talks about using ant to build the project, which we do not currently
> use.
>
> Is it possible to do this, while maintaining the ability to debug the
> code in Eclipse? If so, how can I do it?
>
> --
> You received 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: MySQL server in development mode

2011-03-09 Thread Juan Pablo Gardella
Is classpath error problem. Show the .classpath file

Juan

2011/3/9 Erel Segal 

> I added a mysql server to the default GWT application. I put the mysql
> connector jar in the lib folder under WEBINF, and also added it to the
> build path. I ran the web application in development mode and it
> worked fine.
>
> But then I restarted the server (from the eclipse "development pane"),
> and I started getting errors saying that the server cannot find a
> driver for jdbc:mysql connection!
>
> Can 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-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.



GWT eclipse plugin doesn't recognize bundle resources on classpath

2011-03-09 Thread bconoly
Hey All,
I just reinstalled the gwt eclipse plugin so I could start
experimenting with the uibinder and what we like to do is separate out
our static resources from our java files.  In the standard maven way
we put these resources in our src/main/resource folder which works
great, is on our classpath, and has no problems during the compile.

When I install the gwt eclipse plugin I always have issues with it
giving me error messages because it can't find the static resources.
Is there any way that the plugin can be enhanced to support the
project's classpath, not just the current package?

EX: This gives me the error message "Resource file tabbed-neutral.css
is missing (expected at com/intuit/uilibrary/public/css/disclosure)"
in eclipse but works fine every where else.
@NotStrict
@Source("com/intuit/uilibrary/public/css/disclosure/tabbed-
neutral.css")
public TabbedDisclosureCss css();


Thanks,
Brett

-- 
You received 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 + MySql + OrphanRemoval = not working.

2011-03-09 Thread Vasily
Hi All, have simple case:

@RooJavaBean
@RooToString
@RooEntity
public class Contact {

@OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER,
mappedBy="contact", orphanRemoval=true)
private List phoneList = new ArrayList();
}

@RooJavaBean
@RooToString
@RooEntity
public class Phone{
private String phone;

@ManyToOne(optional = false)
private Contact contact;
}

I want to remove Phone items from DB table as soon as I'm removing
them from Contact.phoneList so I found I can use 'orphanRemoval=true'.

All works fine, until I'm adding 'orphanRemoval=true' to
annotations... After that, I have no errors, but any changes to
entities not persisting at all... :/

MySql 5.5.8
Hibernate 3.6.1 (3.6.0 also tested with same results)

Ideas? Thx!

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



MySQL server in development mode

2011-03-09 Thread Erel Segal
I added a mysql server to the default GWT application. I put the mysql
connector jar in the lib folder under WEBINF, and also added it to the
build path. I ran the web application in development mode and it
worked fine.

But then I restarted the server (from the eclipse "development pane"),
and I started getting errors saying that the server cannot find a
driver for jdbc:mysql connection!

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



Issue with ValueListBox

2011-03-09 Thread Steve
Having an issue with ValueListBox in GWT 2.1.  I'm probably just doing
something wrong!  I build a ValueListBox:

storeListBox = new ValueListBox(new Renderer() {
@Override
public String render(Stores object) {
return object.getStoreName();
}

@Override
public void render(Stores object, Appendable appendable)
throws IOException {

}
});

Then, later on to populate, I apply a list of Stores objects --

 
storeListBox.setAcceptableValues(app.getStoresList());

Everything if fine, except this -- I can see when I look at the Stores
list, it has 3 elements in the list.  However, the render method is
getting invoked FOUR times, and the fourth time is getting null passed
in as the object.  I can clearly see that there are only three
elements in the list and that the null invokation is after it has done
all the objects in the list.

I can condition the return on object not being null, but I need to
return something from the render method and that is getting added
erroneously to the ValueList.

What am I doing wrong?

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-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: Printing; controlling top and bottom page margins

2011-03-09 Thread Jeff Chimene
On 03/08/2011 05:39 PM, Rob Tanner wrote:
> Hi,
> 
> Found a great little class to enable me to print the contents of
> panels.  Here's the URL:
> http://gwt-commons-sandbox.googlecode.com
>  /svn/branches/freller/gwt-commons/src/org/gwtcommons/user/
> client/Print.java
> 
> I'm printing the contents of a HorizontalPanel() that contains an
> HTML() object that contains the text of a policy that the user is
> required to agree to follow.  There is no requirement that they keep a
> hard copy, but I've added a print in case they do.  The printed output
> is identical to the panel but the problem I have is that the full
> HTML() object is longer than a single letter size page (it's displayed
> inside a ScrollPanel() in the browser) so the text that overflows on
> to the second page of the printout appears about a quarter of an inch
> down from the physical top of the paper.  Is there any way I can
> control the top and bottom margins on the multiple printed pages?
> 
> Thanks,
> 
> Rob Tanner
> Linfield College
> 

Hi Rob:

The browser gets to decide how to format the page. You can try various
CSS media tricks. I'm assuming you've seen at least
http://www.w3.org/TR/CSS2/media.html If not, that's a good place to
examine the print media type. You can probably do something with the
requirement text by enclosing it in a div with small text and narrow
margins, combined with a set of instructions to the user that explain
how to set the margins. There will inevitably be annoying edge cases.

Generate a PDF if you want complete control of the page layout.

-- 
You received 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: Issue with ValueListBox

2011-03-09 Thread Thomas Broyer
ValueListBox automatically adds any value passed to setValue() to the list 
of "acceptable values", so you probably have some setValue(null) somewhere, 
or it might rather be that you don't have a setValue() anywhere, so the 
ValueListBox tries to select the default value (null) in the list, and adds 
it to the list of "acceptable values" as a consequence.

-- 
You received 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 changes not reflected on browser refresh

2011-03-09 Thread Chris Conroy
You need to point your browser at
http://localhost:?gwt.codesvr=127.0.0.1:9997 (assuming you are running
with the default settings). This URL also shows up in the DevMode tab when
it starts up in Eclipse for you to copy paste or launch your browser.

On Wed, Mar 9, 2011 at 3:23 AM, Andrew  wrote:

> Hi-
>
> I'm using Eclipse 3.5.2 under Ubuntu with Google Web Toolkit SDK
> 2.2.0, and Google App Engine Java SDK 1.4.2.
>
> Recently I worked through the StockWatcher example, found at
>
> http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html
>
> It used to work such that I could make changes to the java code in the
> project (for example, in StockWatcher.java) while the development
> server was running, then refresh my browser (pointed to
> http://localhost:),
> and the changes in my code would immediately be reflected on the page.
>
> However, something has changed. I have no idea what, or why. Now, if I
> refresh my browser the code changes are not reflected on the page that
> comes up. I have to recompile the entire project by clicking on the
> red "G" icon labeled "GWT Compile Project" in the toolbar, which takes
> a long time, then restart the development server, in order for my
> changes to become visible in the browser (upon refresh). This is true
> for both Firefox and Chrome.
>
> I've tried a bunch of things to fix this... Project->Build
> Automatically is checked, and I even tried reinstalling the GWT plugin
> for eclipse.
>
> If I make a change to an HTML file instead., for example
> StockWatcher.html, the changes are reflected in the browser upon
> refresh, as normal.
>
> Please help! Recompiling the entire project every time is very
> annoying.
> Thanks.
> Andrew
>
> --
> You received 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: Editor Framework for large set of properties

2011-03-09 Thread Y2i
If the properties you are retrieving via RequestFactory are getters/setters 
on EntityProxy/ValueProxy interfaces then you can use 
RequestFactoryEditorDriver.

-- 
You received 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 split of client bundle

2011-03-09 Thread Fotos Georgiadis
It's kinda impossible to provide help with the description of the problem 
you gave.

So in general I suggest you read again the documentation for code splitting:
http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html

Also you should produce a compile report as mentioned here (-compileReport 
flag):
http://code.google.com/webtoolkit/doc/latest/DevGuideCompileReport.html

... and try to figure out which code pulls in your DTOs before the split 
point(s).

If you have no split points then everything (including resources / bundles) 
is in the initial download.
Also keep in mind that code and resources you don't reference / use are 
eliminated by the compiler.

If the above doesn't answer your question please be more specific.

-fotos

-- 
You received 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 processing of Set-Cookie Response header

2011-03-09 Thread Thomas Broyer
Browsers strip the Set-Cookie from XMLHttpRequest-s: 
http://www.w3.org/TR/XMLHttpRequest/#the-getallresponseheaders-method

As for Cookies.getCookie(), I think some browsers might wait until the XHR's 
onreadystatechange (the event that calls GWT's RequestCallback) terminates 
to update the document.cookies. In other words, it doesn't surprise me much 
that Cookies.getCookie() doesn't reflect the response's cookie from within 
the RequestCallback's onSuccess.

If you need the Session ID to send in the client-to-server payload, then I'd 
suggest you send it in the server-to-client payload as well.

-- 
You received 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: Using one Activity on two different places, with different funtionallity

2011-03-09 Thread Thomas Broyer
It's your ActivityMapper's responsibility to initialize the activity 
depending on the place.

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



javax.naming.InitialContext is not supported by Google App Engine's Java runtime environment

2011-03-09 Thread kenshin
Hi, as the subject described, I've got this issue in my code as
follow:

InitialContext ctx = new InitialContext();

Does anyone gets familiar with this problem? Hope to see the solution
soon, 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.



Possible to use RequestFactory with a non-java server?

2011-03-09 Thread fturtle
Hi,

Is it possible to use RequestFactory with a non-java server (maybe by
creating a custom requestfactory transport?). Was request factory
designed with this in mind. I'm looking to map it to a restful json
service.

Many thanks,
fturtle

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



External Tomcat in hosted mode

2011-03-09 Thread Eduardo Palma
I'm working on a project that's currently using:
  GWT - 2.0.4
  Spring - 3.0.5
  Hibernate - 3.3.1
  Maven - 2.2.1
  Google Plug in for Eclipse 3.6(HELIOS) - 2.2.0

I'm having a lot of troubles using the embedded jetty on this project.
I already tried many workarounds but nothing worked. So now I'm trying
to use an external Tomcat in hosted mode but I'm also facing some
issues. The GWT documentation about this is not very clear, and it
talks about using ant to build the project, which we do not currently
use.

Is it possible to do this, while maintaining the ability to debug the
code in Eclipse? If so, how can I do it?

-- 
You received 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 processing of Set-Cookie Response header

2011-03-09 Thread Y2i
Does this happen in dev mode?  There seem to be some issues with it
http://code.google.com/p/google-web-toolkit/issues/detail?id=4181

http://code.google.com/p/google-web-toolkit/issues/list?can=2&q=cookie

-- 
You received 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: Run external exe in gwt server-side

2011-03-09 Thread Jan Mostert
Compiled GWT code runs clientside, on the serverside (which can be anything
from python, java, php, ...) you can run almost anything if you have the
permissions to do so and if it's supported on that platform.

--
Jan Vladimir Mostert
BEngSci

MyCee Technologies


On Wed, Mar 9, 2011 at 1:32 PM, trudi1990 wrote:

> Hi,
> it's possible to run external exe or vbs file from server side code in
> gwt web application ?
>
> --
> You received 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.



java.io.IOException: Stream closed after Session timeout

2011-03-09 Thread andrew
Hi,

we have a special problem with a GWT app running on Tomcat. The
problem occurs, after the session has been invalidated and user tries
to make a call. We get this exception:

SEVERE: Exception while dispatching incoming RPC call
java.io.IOException: Stream closed
at org.apache.catalina.connector.InputBuffer.read(InputBuffer.java:
325)
at
org.apache.catalina.connector.CoyoteInputStream.read(CoyoteInputStream.java:
193)
at
com.google.gwt.user.server.rpc.RPCServletUtils.readContentAsUtf8(RPCServletUtils.java:
183)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.readContent(AbstractRemoteServiceServlet.java:
179)
at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
215)
at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206)

We can reproduce this problem very simple by invalidating the session
via Tomcat manager, so we are sure that this occurs after the session
has been invalidated.

This problem occurs just on our test enviroment - Tomcat 6.0.26 on Red
Hat 4.1.2-46. On Windows XP or Mac OS we cannot reproduce this problem
(the session-timeout is handled correctly and the user is redirested
to the login page).

Tomcat version and configurations are the same for all enviroments. We
tried to set maxKeepAliveRequests=1 on Tomcat, but didn't work
neither.

Thanks for any help or suggestion.

A.

-- 
You received 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: Question/Challenge with CSS Style vs DialogBox

2011-03-09 Thread Michel Pikkaart
Seems I should read forums better. My apologies..

Problem solved, should remove some default css styles like:

.gwt-DialogBox { 
  width: 350px;

} 

See Post
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/9c5043675ae86300/7838b03dbfedae8d?lnk=gst&q=DialogBox#7838b03dbfedae8d

Grz Michel.

Begin forwarded message:

> From: Michel Pikkaart 
> Date: 9 Mar 2011 10:27:08 GMT+01:00
> To: Google Web Toolkit 
> Subject: Question/Challenge with CSS Style vs DialogBox
> 
> Thank you for reading this,
> 
> In short, I have a challenge with a Style called element.style and a Dialog 
> Box, the box is square and I would like it wider, as I change some styles of 
> the panel which I put in as widget, the inside Panel grows, but the Dialog 
> Box is stubborn and stays square in his size and the panel becomes partly 
> invisible.
> 
> My level is Java beginner.
> 
> I following the lecture of "Essential GWT" and his MVP model (see ISBN 
> 0-321-70514-9)
> 
> My code according the some examples from the book and mixer of my own 
> thoughts what I hope this is right way to do.
> 
>   // My DialogBox
> 
>   final DialogBox simpleQueryBox = new DialogBox();
>   simpleQueryBox.setText("Simple Query");
>   simpleQueryBox.setGlassEnabled(true);
>   simpleQueryBox.setAnimationEnabled(true);
> 
> // the MVP like form.
> // constructor of SimpleQueryPresenter, gets a instance of DialogBox (so my 
> presenter of this popup box can close himself, sorry for the mesh), string 
> params, the View(page buildup), and a callback which returns an SQL query 
> string as result).
> 
>final SimpleQueryPresenter simpleQueryPresenter = new 
> SimpleQueryPresenter(simpleQueryBox,
>   
>   
>  params, 
>   
>   
>  new SimpleQueryView(), 
>   
>   
>  this.getEnvironment(),new SimpleCallback(){
> 
>   @Override
>   public void goBack(String result) {
>   // TODO Auto-generated method stub
>   // not important yet.
>   }
>   });
> 
> // put them together.
> 
>   simpleQueryBox.setWidget(simpleQueryPresenter.getDisplay().asWidget());
> 
> After that an Handler tells the simpleQueryBox to appear and the SimpleQuery 
> handler tells him to hide, simple it works.
> 
> BUT,I want it the box being wider, and I cannot figure out why, I see 
> this in my Mozilla Firebug trace tool an style which I cannot find or 
> overlook. I read a lot, but I mis it somewhere.
> 
> A style called  element.style
> 
> element.style {
>  clip: rect(auto, auto, auto, auto);
>  left: 607px;
>  overflow: visible;
>  position: absolute;
>  top: 218px;
>  visibility: visible;
> }
> 
> I know and tried, if I get rid of the clip in the style element (I can turn 
> it of in Firebug to experiment), everything is all right. But it seems and I 
> am surprised because I'm new to css that this element.style is dynamic, but 
> firebug claims it comes from the stylesheet which is locate directly in the 
> war folder root. It isn't there, ok for me it is strange yet.
> 
> My question:
> a. Can I get rid of only this clip setting in the element.style?
> b. I doing it wrong and should do it otherwise, please advise.
> 
> Thank you for your time effort spend to help me.
> 
> Kind regards Michel.
> 
> 
> 
> 
> PS Sorry have to mention..Google GWT rocks ! :)
> 
> 
> 
> 
> 
> 
> 
> 

-- 
You received 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/Challenge with CSS Style vs DialogBox

2011-03-09 Thread Michel Pikkaart
Thank you for reading this,

In short, I have a challenge with a Style called element.style and a Dialog 
Box, the box is square and I would like it wider, as I change some styles of 
the panel which I put in as widget, the inside Panel grows, but the Dialog Box 
is stubborn and stays square in his size and the panel becomes partly invisible.

My level is Java beginner.

I following the lecture of "Essential GWT" and his MVP model (see ISBN 
0-321-70514-9)

My code according the some examples from the book and mixer of my own thoughts 
what I hope this is right way to do.

// My DialogBox

final DialogBox simpleQueryBox = new DialogBox();
simpleQueryBox.setText("Simple Query");
simpleQueryBox.setGlassEnabled(true);
simpleQueryBox.setAnimationEnabled(true);

// the MVP like form.
// constructor of SimpleQueryPresenter, gets a instance of DialogBox (so my 
presenter of this popup box can close himself, sorry for the mesh), string 
params, the View(page buildup), and a callback which returns an SQL query 
string as result).

final SimpleQueryPresenter simpleQueryPresenter = new 
SimpleQueryPresenter(simpleQueryBox,


   params, 


   new SimpleQueryView(), 


   this.getEnvironment(),new SimpleCallback(){

@Override
public void goBack(String result) {
// TODO Auto-generated method stub
// not important yet.
}
});

// put them together.

simpleQueryBox.setWidget(simpleQueryPresenter.getDisplay().asWidget());

After that an Handler tells the simpleQueryBox to appear and the SimpleQuery 
handler tells him to hide, simple it works.

BUT,I want it the box being wider, and I cannot figure out why, I see this 
in my Mozilla Firebug trace tool an style which I cannot find or overlook. I 
read a lot, but I mis it somewhere.

A style called  element.style

element.style {
  clip: rect(auto, auto, auto, auto);
  left: 607px;
  overflow: visible;
  position: absolute;
  top: 218px;
  visibility: visible;
}

I know and tried, if I get rid of the clip in the style element (I can turn it 
of in Firebug to experiment), everything is all right. But it seems and I am 
surprised because I'm new to css that this element.style is dynamic, but 
firebug claims it comes from the stylesheet which is locate directly in the war 
folder root. It isn't there, ok for me it is strange yet.

My question:
a. Can I get rid of only this clip setting in the element.style?
b. I doing it wrong and should do it otherwise, please advise.

Thank you for your time effort spend to help me.

Kind regards Michel.




PS Sorry have to mention..Google GWT rocks ! :)








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



Installing GWT to eclipse 3.6 (helios)

2011-03-09 Thread Rajeshwar Mitra
I'm trying install GWT SDK and GWT designer. The installation getting
aborted in between. Approximately after downloading about 50% of the
contents. I'm exactly following the steps provided in the GWT site.

I tried downloading the archive file and installing through that. In
that case as well it is informing that some file are missing. Is there
any one who can 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-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 processing of Set-Cookie Response header

2011-03-09 Thread Steve Hunt
Hi,
I'm working on an app that is using a GWT UI but accessing an existing
WADL resource using a request builder and ResponseCallback.

On the initial login call to the service the remote server returns a
JSessionId cookie as a Set-Cookie header parameter.
In normal circumstances (ie if I access the server by making a Get
from a browser directly) this cookie is visible.
In GWT the cookie has disappeared.
I've replicated the problem using a Jersey servlet and returning a
selection of Response headers and cookies.  Without fail I am unable
to see any header with the name 'Set-Cookie' and by extension any
cookies.  This is true whether I try to access them through
response.getHeaders() or Cookies.getCookie().
All other response headers are present as expected, which leads me to
the conclusion that the 'Set-Cookie' header is being deliberately
stripped from the response.

Does this sound correct, was there a deliberate decision taken at some
point to strip this header?  If so, why?  If not, then what is causing
this behaviour.

It's a major problem, as the sessionId from that cookie is needed for
all subsequent calls to the server for authentication...

Thanks
Steve

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



Code changes not reflected on browser refresh

2011-03-09 Thread Andrew
Hi-

I'm using Eclipse 3.5.2 under Ubuntu with Google Web Toolkit SDK
2.2.0, and Google App Engine Java SDK 1.4.2.

Recently I worked through the StockWatcher example, found at
http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/stockwatcher.html

It used to work such that I could make changes to the java code in the
project (for example, in StockWatcher.java) while the development
server was running, then refresh my browser (pointed to http://localhost:),
and the changes in my code would immediately be reflected on the page.

However, something has changed. I have no idea what, or why. Now, if I
refresh my browser the code changes are not reflected on the page that
comes up. I have to recompile the entire project by clicking on the
red "G" icon labeled "GWT Compile Project" in the toolbar, which takes
a long time, then restart the development server, in order for my
changes to become visible in the browser (upon refresh). This is true
for both Firefox and Chrome.

I've tried a bunch of things to fix this... Project->Build
Automatically is checked, and I even tried reinstalling the GWT plugin
for eclipse.

If I make a change to an HTML file instead., for example
StockWatcher.html, the changes are reflected in the browser upon
refresh, as normal.

Please help! Recompiling the entire project every time is very
annoying.
Thanks.
Andrew

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



Run external exe in gwt server-side

2011-03-09 Thread trudi1990
Hi,
it's possible to run external exe or vbs file from server side code in
gwt web application ?

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



Re: Disabling certain dates in datepicker failing

2011-03-09 Thread ALB-PSP-DV1
Thank you the solution worked.
It disables the date in the datepicker.

However the user can still enter the date manually in textbox. I
handled it by displaying a error message conditionally on
addValueChangeHandler.

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



DropDown Button

2011-03-09 Thread gadaleta.marco
hello everyone,
there a way to create a button in gwt like "gmail more actions" button
without using external library?
Thx, hope you can 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-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: Button click event handling in a FlexTalbe using MVP (GWT 2.2)

2011-03-09 Thread Jens
Easiest way would be to define a doEdit(String data) method in your 
presenter interface (or in an extra "delegate" interface) and pass the 
presenter/the delegate interface to your view (via setData or an extra 
method)

setData would then do something like:

final String data = data.get(i);
Button editButton = new Button("Edit");
editButton.addClickHandler(new ClickHandler() { delegate.doEdit(data); });
contentsTable.setWidget(i, 1, editButton);

So you are basically forwarding your click events to the 
presenter/delegate. 

-- 
You received 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: CellTable enter edit mode on focus of cell?

2011-03-09 Thread feuse8


On 18 Jan., 18:28, piehole  wrote:

> 2. Is there any way to useTABand SHIFT-TABto navigate between
> columns instead of LEFT-ARROW and RIGHT-ARROW?CellTableseems to be
> hardcoded to use left and right arrows and difficult to extend.

Does anybody have a solution for this?

-- 
You received 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: Button click event handling in a FlexTalbe using MVP (GWT 2.2)

2011-03-09 Thread Juan Pablo Gardella
Add the handler for every button. I don't understand your problem

Juan

2011/3/9 seongjoo 

> Hello,
>
> I am having some trouble with handling button click event when the
> button is a widget of a FlexTable utilizing MVP framework. Getting a
> selected row of the FlexTable is well explained as tutorial source
> code, but button click event is not. The buttons are created
> dynamically when the FlexTable is loaded. I am not quite sure how I
> can link those buttons with the event handler.
>
> When using MVP framework,
>
> In MyView.java,
>
> public class MyView extends Composite implements MyPrensenter.Display
> {
>   private FlexTable containerTable;
>   private FlexTable contentsTable;
>
>   public MyView() {
>
>  ...
>
>  containerTable.setWidget(1,0, contentsTable);
>
>   }
>
>   public HasClickedHandlers getList() {
>  return contentsTable;
>   }
>
>   public void setData(List data) {
>  contentsTable.removeAllRows();
>
>  for(int i=0; i contentsTable.setWidget(i, 0, new data.get(i)); // get some
> data as text
> contentsTable.setWidget(i, 1, new Button("Edit");
>  }
>   }
>
> }
>
> setData(List) sets table by querying database when the MyView
> is created. By having HasClickedHandlers getList(), click event for
> contentsTable is handled. But I am not fully clear how the event
> handler can be defined for the buttons of contentsTable.
>
> I am pretty sure that I can handle those buttons of FlexTable while
> using MVP. But I think I need some help with this. Help will be
> greatly appreciated. Thanks :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received 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: java.util.ConcurrentModificationException after installing GWT 2.2

2011-03-09 Thread Juan Pablo Gardella
Is SmartGWT compatible with GWT 2.2? See
http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/3171958b76f90ddb

Juan

2011/3/9 tdk 

> After installing GWT 2.2.0 I keep getting the following error when
> trying to start my app in Dev Mode:
>
> init:
> deps-module-jar:
> deps-ear-jar:
> deps-jar:
> library-inclusion-in-archive:
> library-inclusion-in-manifest:
> Compiling 2 source files to C:\Development\IcsContinuity\Webinterface
> \build\web\WEB-INF\classes
> compile:
> compile-jsps:
> debug-connect-gwt-shell-hosted:
> GWT4NB https://gwt4nb.dev.java.net
> GWT installation directory: C:\opt\gwt\gwt-2.2.0
> init:
> debug-connect-gwt-shell-hosted-15:
> init:
> debug-connect-gwt-shell-hosted-16:
> init:
> debug-connect-gwt-shell-hosted-17:
> init:
> debug-connect-gwt-shell-hosted-20:
> Waiting for the output from the GWT dev mode...
> Waiting for the output from the GWT dev mode...
> Waiting for the output from the GWT dev mode...
> Browsing:
> http://127.0.0.1:/Portal.html?Obj=98895029.13@team128&Act=894.1256@0001?gwt.codesvr=127.0.0.1:9997
> java.util.ConcurrentModificationException
> java.util.ConcurrentModificationException
>at java.util.LinkedHashMap
> $LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
>at java.util.LinkedHashMap
> $ValueIterator.next(LinkedHashMap.java:388)
>at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:386)
>at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:
> 1086)
>at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
>at com.google.gwt.dev.DevMode.main(DevMode.java:304)
> BUILD SUCCESSFUL (total time: 38 seconds)
>
>
> I'm using NetBeans 6.9.1, GWT 2.2, SmartGWT 2.4, Firefox 3.6.15 on
> Vista Business x64
>
> --
> You received 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.



Button click event handling in a FlexTalbe using MVP (GWT 2.2)

2011-03-09 Thread seongjoo
Hello,

I am having some trouble with handling button click event when the
button is a widget of a FlexTable utilizing MVP framework. Getting a
selected row of the FlexTable is well explained as tutorial source
code, but button click event is not. The buttons are created
dynamically when the FlexTable is loaded. I am not quite sure how I
can link those buttons with the event handler.

When using MVP framework,

In MyView.java,

public class MyView extends Composite implements MyPrensenter.Display
{
   private FlexTable containerTable;
   private FlexTable contentsTable;

   public MyView() {

  ...

  containerTable.setWidget(1,0, contentsTable);

   }

   public HasClickedHandlers getList() {
  return contentsTable;
   }

   public void setData(List data) {
  contentsTable.removeAllRows();

  for(int i=0; i) sets table by querying database when the MyView
is created. By having HasClickedHandlers getList(), click event for
contentsTable is handled. But I am not fully clear how the event
handler can be defined for the buttons of contentsTable.

I am pretty sure that I can handle those buttons of FlexTable while
using MVP. But I think I need some help with this. Help will be
greatly appreciated. Thanks :)

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



Re: Using one Activity on two different places, with different funtionallity

2011-03-09 Thread Juan Pablo Gardella
You must define 2 places. In one place put the add button in the other place
put the remove button.



2011/3/9 Alex 

> Hello!
>
> I'am new to gwt and would like some help regardning Activities and Places.
> I got two different pages (places) where I would like to use the same
> activity class. However, the functionallity should be different in the two
> different places.
> For example, one of the place should show an add button and the other place
> shold show a remove button.
> How do I decide which buttons that should show in the different places?
>
> Thanks for any advice!
> Alex
>
> --
> You received 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: RequestFactoryServlet mapping question

2011-03-09 Thread opn
Thanks a lot Thomas!
You are so helpful, unbelievable!

Right now i chose to map it to two URLs and it works perfect!
It's the easiest solution!

You are really into the RequestFactory stuff!
Keep up the good work!

On Mar 9, 10:12 am, Thomas Broyer  wrote:
> You can map the servlet twice to make it available at two distinct URLs (a
> single , two s)
>
> ...or you could change your app/admin app to use "../gwtRequest" instead of
> "gwtRequest": construct a 
> DefaultRequestTransport,
> set its request URL accordingly and pass it to 
> RequestFactory#initialize() com.google.gwt.requestfactory.shared.RequestTransport)> (by default, the
> initialize()overload
>  without RequestTransport instantiates a DefaultRequestTransport
> with its default request URL).

-- 
You received 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: RequestFactoryServlet mapping question

2011-03-09 Thread Thomas Broyer
You can map the servlet twice to make it available at two distinct URLs (a 
single , two s)

...or you could change your app/admin app to use "../gwtRequest" instead of 
"gwtRequest": construct a 
DefaultRequestTransport,
 
set its request URL accordingly and pass it to 
RequestFactory#initialize() (by default, the 
initialize()overload
 without RequestTransport instantiates a DefaultRequestTransport 
with its default request URL).

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



Using one Activity on two different places, with different funtionallity

2011-03-09 Thread Alex
Hello!

I'am new to gwt and would like some help regardning Activities and Places.
I got two different pages (places) where I would like to use the same 
activity class. However, the functionallity should be different in the two 
different places.
For example, one of the place should show an add button and the other place 
shold show a remove button.
How do I decide which buttons that should show in the different places?

Thanks for any advice!
Alex

-- 
You received 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.util.ConcurrentModificationException after installing GWT 2.2

2011-03-09 Thread tdk
After installing GWT 2.2.0 I keep getting the following error when
trying to start my app in Dev Mode:

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
Compiling 2 source files to C:\Development\IcsContinuity\Webinterface
\build\web\WEB-INF\classes
compile:
compile-jsps:
debug-connect-gwt-shell-hosted:
GWT4NB https://gwt4nb.dev.java.net
GWT installation directory: C:\opt\gwt\gwt-2.2.0
init:
debug-connect-gwt-shell-hosted-15:
init:
debug-connect-gwt-shell-hosted-16:
init:
debug-connect-gwt-shell-hosted-17:
init:
debug-connect-gwt-shell-hosted-20:
Waiting for the output from the GWT dev mode...
Waiting for the output from the GWT dev mode...
Waiting for the output from the GWT dev mode...
Browsing: 
http://127.0.0.1:/Portal.html?Obj=98895029.13@team128&Act=894.1256@0001?gwt.codesvr=127.0.0.1:9997
java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
at java.util.LinkedHashMap
$LinkedHashIterator.nextEntry(LinkedHashMap.java:373)
at java.util.LinkedHashMap
$ValueIterator.next(LinkedHashMap.java:388)
at com.google.gwt.dev.DevMode.doSlowStartup(DevMode.java:386)
at com.google.gwt.dev.DevModeBase.startUp(DevModeBase.java:
1086)
at com.google.gwt.dev.DevModeBase.run(DevModeBase.java:800)
at com.google.gwt.dev.DevMode.main(DevMode.java:304)
BUILD SUCCESSFUL (total time: 38 seconds)


I'm using NetBeans 6.9.1, GWT 2.2, SmartGWT 2.4, Firefox 3.6.15 on
Vista Business x64

-- 
You received 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: Unit testing of generators

2011-03-09 Thread Tobias
Actually I was referring to if I needed to use GWT trunk to be able to use 
RealJavaResource, because it causes some problems. But I came across the 
problem you mentioned shortly after and your answer proved very helpful, 
thank you. I now put my testing code into a different eclipse project to 
avoid the aforementioned problems with the GWT compiler. It works, but I'm 
curious if there is a better way to manage your testing code in GWT - e.g. 
exclude it from the compiler to avoid problems like the one above?

Thanks,
Tobias

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