Folder icons in eclipse

2010-11-08 Thread Musicman75
Hello,

since I changed GWT version from 2.0.4 to 2.1.0 O get folder/file
icons in src/main/webapp folder with a red exclamationmark.

Does anyone knows what this icon means?

Thanks.

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



Re: Folder icons in eclipse

2010-11-08 Thread Musicman75
That's the problem, the problem view contains any errors matching to
the files/folders.



On 8 Nov., 13:00, jbroquefere 
wrote:
> what does the "Problem" view in eclipse say?
>
> On Nov 8, 11:26 am, Musicman75  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > since I changed GWT version from 2.0.4 to 2.1.0 O get folder/file
> > icons in src/main/webapp folder with a red exclamationmark.
>
> > Does anyone knows what this icon means?
>
> > Thanks.

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



Re: Folder icons in eclipse

2010-11-08 Thread Musicman75
I know that, the view is configured to show all errors/warnings.
But nothing is displayed corresponding to the marked folders/files

On 8 Nov., 15:07, Frederic Conrotte 
wrote:
> You can configure Errors/Warning using menu Window -> Preferences ->
> Google -> Errors/Warnings
>
> You can also configure the Problems view like 
> this:http://www.vogella.de/articles/Eclipse/article.html#tips_problemsview
>
> On Nov 8, 2:18 pm, Musicman75  wrote:
>
>
>
>
>
>
>
> > That's the problem, the problem view contains any errors matching to
> > the files/folders.
>
> > On 8 Nov., 13:00, jbroquefere 
> > wrote:
>
> > > what does the "Problem" view in eclipse say?
>
> > > On Nov 8, 11:26 am, Musicman75  wrote:
>
> > > > Hello,
>
> > > > since I changed GWT version from 2.0.4 to 2.1.0 O get folder/file
> > > > icons in src/main/webapp folder with a red exclamationmark.
>
> > > > Does anyone knows what this icon means?
>
> > > > Thanks.

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



Accessing GWT app deployed on Jetty fails

2010-11-08 Thread Musicman75
Hello,

I've created a GWT war project with two subprojects.
When starting the server (Jetty standalone), the war is loaded:

2010-11-08 14:50:51.648:INFO::Deployable added: C:\Users\beutelsn
\DevTools\jetty-hightide-7.1.6.v20100715\webapps\dashboardClient-0.0.1-
SNAPSHOT.war
2010-11-08 14:50:51.727:INFO::Copying WEB-INF/lib jar:file:/C:/Users/
beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
dashboardClient-0.0.1-S
APSHOT.war!/WEB-INF/lib/ to C:\Users\beutelsn\AppData\Local\Temp
\6\Jetty_0_0_0_0_9090_dashboardClient.
0.0.1.SNAPSHOT.war__dashboardClient.0.0.1.SNAPS
OT__.hbn96r\webinf\WEB-INF\lib
2010-11-08 14:50:52.380:INFO::Copying WEB-INF/classes from jar:file:/
C:/Users/beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
dashboardClien
-0.0.1-SNAPSHOT.war!/WEB-INF/classes/ to C:\Users\beutelsn\AppData
\Local\Temp\6\Jetty_0_0_0_0_9090_dashboardClient.
0.0.1.SNAPSHOT.war__dashboardClien
.0.0.1.SNAPSHOT__.hbn96r\webinf\WEB-INF\classes
2010-11-08 14:50:54.101:INFO:/dashboardClient-0.0.1-
SNAPSHOT:Initializing Spring root WebApplicationContext null null
2010-11-08 14:50:56.545:INFO:/dashboardClient-0.0.1-
SNAPSHOT:Initializing Spring FrameworkServlet 'dispatcher' null null
2010-11-08 14:50:56.707:INFO::Deployable added: C:\Users\beutelsn
\DevTools\jetty-hightide-7.1.6.v20100715\webapps\async-rest
2010-11-08 14:50:56.762:INFO::Started
selectchannelconnec...@0.0.0.0:9090

When accessing the war with the browser, I only get a popup with this
message:
---
GWT module 'com.XXX.Application' may need to be (re)compiled
--

In hosted mode everything works fine.

The war is created by maven. Here's my pom.xml:



http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>


dashboard2
com.XXX
0.0.1-SNAPSHOT

4.0.0
com.XXX
dashboardClient
Axivion Bauhaus Dashboard Client
war
0.0.1-SNAPSHOT



1.6
1.6







com.XXX
dashboardServer
${project.version}




org.springframework
spring-webmvc




com.google.gwt
gwt-servlet
runtime


com.google.gwt
gwt-user
provided


com.octo.gwt.test
gwt-test-utils
test




junit
junit
4.7
test




war/WEB-INF/classes


src/main/java

**/*.java
**/*.gwt.xml



src/main/resources




org.apache.maven.plugins
maven-war-plugin
2.1

war
war/WEB-INF/web.xml



org.apache.maven.plugins
maven-compiler-plugin
2.1


${maven.compiler.source}

${maven.compiler.target}



org.apache.maven.plugins
maven-resources-plugin
2.4.2

UTF-8



org.apache.maven.plugins
maven-surefire-plugin
2.5


**/*_Roo_*


Re: Accessing GWT app deployed on Jetty fails

2010-11-08 Thread Musicman75
That's Why i posted my pom file. I think the maven execution is done
in the wrong order.

Could anyone please post a pom file to create a war and compile the
GWT app before?


On 8 Nov., 13:33, Y2i  wrote:
> I use Eclipse projects instead of maven, but I do see similar errors
> when I create and deploy a war file without doing GWT compilation
> first.  After GWT re-compilation and re-deploying the war file the
> errors disappear.
>
> On Nov 8, 4:59 pm, Musicman75  wrote:
>
>
>
> > Hello,
>
> > I've created a GWT war project with two subprojects.
> > When starting the server (Jetty standalone), the war is loaded:
>
> > 2010-11-08 14:50:51.648:INFO::Deployable added: C:\Users\beutelsn
> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\dashboardClient-0.0.1-
> > SNAPSHOT.war
> > 2010-11-08 14:50:51.727:INFO::Copying WEB-INF/lib jar:file:/C:/Users/
> > beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
> > dashboardClient-0.0.1-S
> > APSHOT.war!/WEB-INF/lib/ to C:\Users\beutelsn\AppData\Local\Temp
> > \6\Jetty_0_0_0_0_9090_dashboardClient.
> > 0.0.1.SNAPSHOT.war__dashboardClient.0.0.1.SNAPS
> > OT__.hbn96r\webinf\WEB-INF\lib
> > 2010-11-08 14:50:52.380:INFO::Copying WEB-INF/classes from jar:file:/
> > C:/Users/beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
> > dashboardClien
> > -0.0.1-SNAPSHOT.war!/WEB-INF/classes/ to C:\Users\beutelsn\AppData
> > \Local\Temp\6\Jetty_0_0_0_0_9090_dashboardClient.
> > 0.0.1.SNAPSHOT.war__dashboardClien
> > .0.0.1.SNAPSHOT__.hbn96r\webinf\WEB-INF\classes
> > 2010-11-08 14:50:54.101:INFO:/dashboardClient-0.0.1-
> > SNAPSHOT:Initializing Spring root WebApplicationContext null null
> > 2010-11-08 14:50:56.545:INFO:/dashboardClient-0.0.1-
> > SNAPSHOT:Initializing Spring FrameworkServlet 'dispatcher' null null
> > 2010-11-08 14:50:56.707:INFO::Deployable added: C:\Users\beutelsn
> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\async-rest
> > 2010-11-08 14:50:56.762:INFO::Started
> > selectchannelconnec...@0.0.0.0:9090
>
> > When accessing the war with the browser, I only get a popup with this
> > message:
> > ---
> > GWT module 'com.XXX.Application' may need to be (re)compiled
> > --
>
> > In hosted mode everything works fine.
>
> > The war is created by maven. Here's my pom.xml:
>
> > 
> > http://maven.apache.org/POM/4.0.0"; 
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> > xsi:schemaLocation="http://
> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
> >         
> >         
> >                 dashboard2
> >                 com.XXX
> >                 0.0.1-SNAPSHOT
> >         
> >         4.0.0
> >         com.XXX
> >         dashboardClient
> >         Axivion Bauhaus Dashboard Client
> >         war
> >         0.0.1-SNAPSHOT
>
> >         
>
> >                 1.6
> >                 1.6
>
> >         
>
> >         
>
> >                 
> >                 
> >                         com.XXX
> >                         dashboardServer
> >                         ${project.version}
> >                 
>
> >                 
> >                 
> >                         org.springframework
> >                         spring-webmvc
> >                 
>
> >                 
> >                 
> >                         com.google.gwt
> >                         gwt-servlet
> >                         runtime
> >                 
> >                 
> >                         com.google.gwt
> >                         gwt-user
> >                         provided
> >                 
> >                 
> >                         com.octo.gwt.test
> >                         gwt-test-utils
> >                         test
> >                 
>
> >                 
> >                 
> >                         junit
> >                         junit
> >                         4.7
> >                         test
> >                 
> >         
>
> >         
> >                 war/WEB-INF/classes
> >                 
> >                         
> >                                 src/main/java
> >                                 
> >                                         **/*.java
> >                                

Re: Accessing GWT app deployed on Jetty fails

2010-11-08 Thread Musicman75
I executed mvn clean install, mvn clean package with and without
executing mvn gwt:compile before.
Same problem with all generated war files.


On 9 Nov., 01:25, David Chandler  wrote:
> What mvn command are you using? In this POM, gwt-maven-plugin is
> executing gwt:compile during the prepare-package phase, so you should
> run "mvn package" to trigger it.
>
> HTH,
> /dmc
>
> On Mon, Nov 8, 2010 at 5:28 PM, Musicman75
>
>
>
>
>
>
>
>  wrote:
> > That's Why i posted my pom file. I think the maven execution is done
> > in the wrong order.
>
> > Could anyone please post a pom file to create a war and compile the
> > GWT app before?
>
> > On 8 Nov., 13:33, Y2i  wrote:
> >> I use Eclipse projects instead of maven, but I do see similar errors
> >> when I create and deploy a war file without doing GWT compilation
> >> first.  After GWT re-compilation and re-deploying the war file the
> >> errors disappear.
>
> >> On Nov 8, 4:59 pm, Musicman75  wrote:
>
> >> > Hello,
>
> >> > I've created a GWT war project with two subprojects.
> >> > When starting the server (Jetty standalone), the war is loaded:
>
> >> > 2010-11-08 14:50:51.648:INFO::Deployable added: C:\Users\beutelsn
> >> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\dashboardClient-0.0.1-
> >> > SNAPSHOT.war
> >> > 2010-11-08 14:50:51.727:INFO::Copying WEB-INF/lib jar:file:/C:/Users/
> >> > beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
> >> > dashboardClient-0.0.1-S
> >> > APSHOT.war!/WEB-INF/lib/ to C:\Users\beutelsn\AppData\Local\Temp
> >> > \6\Jetty_0_0_0_0_9090_dashboardClient.
> >> > 0.0.1.SNAPSHOT.war__dashboardClient.0.0.1.SNAPS
> >> > OT__.hbn96r\webinf\WEB-INF\lib
> >> > 2010-11-08 14:50:52.380:INFO::Copying WEB-INF/classes from jar:file:/
> >> > C:/Users/beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
> >> > dashboardClien
> >> > -0.0.1-SNAPSHOT.war!/WEB-INF/classes/ to C:\Users\beutelsn\AppData
> >> > \Local\Temp\6\Jetty_0_0_0_0_9090_dashboardClient.
> >> > 0.0.1.SNAPSHOT.war__dashboardClien
> >> > .0.0.1.SNAPSHOT__.hbn96r\webinf\WEB-INF\classes
> >> > 2010-11-08 14:50:54.101:INFO:/dashboardClient-0.0.1-
> >> > SNAPSHOT:Initializing Spring root WebApplicationContext null null
> >> > 2010-11-08 14:50:56.545:INFO:/dashboardClient-0.0.1-
> >> > SNAPSHOT:Initializing Spring FrameworkServlet 'dispatcher' null null
> >> > 2010-11-08 14:50:56.707:INFO::Deployable added: C:\Users\beutelsn
> >> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\async-rest
> >> > 2010-11-08 14:50:56.762:INFO::Started
> >> > selectchannelconnec...@0.0.0.0:9090
>
> >> > When accessing the war with the browser, I only get a popup with this
> >> > message:
> >> > ---
> >> > GWT module 'com.XXX.Application' may need to be (re)compiled
> >> > --
>
> >> > In hosted mode everything works fine.
>
> >> > The war is created by maven. Here's my pom.xml:
>
> >> > 
> >> > http://maven.apache.org/POM/4.0.0"; 
> >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> >> > xsi:schemaLocation="http://
> >> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
> >> >         
> >> >         
> >> >                 dashboard2
> >> >                 com.XXX
> >> >                 0.0.1-SNAPSHOT
> >> >         
> >> >         4.0.0
> >> >         com.XXX
> >> >         dashboardClient
> >> >         Axivion Bauhaus Dashboard Client
> >> >         war
> >> >         0.0.1-SNAPSHOT
>
> >> >         
>
> >> >                 1.6
> >> >                 1.6
>
> >> >         
>
> >> >         
>
> >> >                 
> >> >                 
> >> >                         com.XXX
> >> >                         dashboardServer
> >> >                         ${project.version}
> >> >                 
>
> >> >                 
> >> >                 
> >> >                         org.springframework
> >> >                         spring-webmvc
> >> >              

Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??

2010-11-08 Thread Musicman75
I run into the same problem.
After changing from 2.0.4 to GWT 2.1.0 I can't execute the tests
anymore.

The tests fail with error:

 --- gwt-maven-plugin:2.1.0:test (gwtcompile) @ dashboardClient ---
[ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
Condition
[ERROR] at
com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
355)
[ERROR] at
com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
272)
[ERROR] at
com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase.java:
290)
[ERROR] at
com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
[ERROR] at junit.framework.TestSuite.createTest(TestSuite.java:63)
[ERROR] at junit.framework.TestSuite.addTestMethod(TestSuite.java:
283)
[ERROR] at junit.framework.TestSuite.(TestSuite.java:146)
[ERROR] at junit.framework.TestSuite.(TestSuite.java:175)
[ERROR] at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:
117)
[ERROR] at junit.textui.TestRunner.start(TestRunner.java:179)
[ERROR] at
org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
63)
[ERROR] Caused by: java.lang.ClassNotFoundException:
com.google.gwt.dev.cfg.Condition
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
[ERROR] ... 11 more
[ERROR] com/google/gwt/dev/cfg/Condition

On 7 Nov., 16:10, Jeff Larsen  wrote:
> I get the same error.
>
> I tried added gwt-dev 2.1.0 as a test dependency, but then it wants me
> go to URLs in a browser... I just want it to run my test suite.
>
> On Nov 6, 8:08 pm, Yaakov  wrote:
>
>
>
>
>
>
>
> > Well, I tried that. It now fails with this in the testing phase:
>
> > *
> > [INFO] [gwt:test {execution: test}]
> > [ERROR] java.lang.NoClassDefFoundError: com/google/gwt/dev/cfg/
> > Condition
> > [ERROR]         at
> > com.google.gwt.junit.client.GWTTestCase.createStrategy(GWTTestCase.java:
> > 355)
> > [ERROR]         at
> > com.google.gwt.junit.client.GWTTestCase.getStrategy(GWTTestCase.java:
> > 272)
> > [ERROR]         at
> > com.google.gwt.junit.client.GWTTestCase.getSyntheticModuleName(GWTTestCase. 
> > java:
> > 290)
> > [ERROR]         at
> > com.google.gwt.junit.client.GWTTestCase.setName(GWTTestCase.java:336)
> > [ERROR]         at junit.framework.TestSuite.createTest(TestSuite.java:
> > 63)
> > [ERROR]         at
> > junit.framework.TestSuite.addTestMethod(TestSuite.java:283)
> > [ERROR]         at junit.framework.TestSuite.(TestSuite.java:
> > 146)
> > [ERROR]         at junit.framework.TestSuite.(TestSuite.java:
> > 175)
> > [ERROR]         at
> > junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:117)
> > [ERROR]         at junit.textui.TestRunner.start(TestRunner.java:179)
> > [ERROR]         at
> > org.codehaus.mojo.gwt.test.MavenTestRunner.main(MavenTestRunner.java:
> > 63)
> > [ERROR] Caused by: java.lang.ClassNotFoundException:
> > com.google.gwt.dev.cfg.Condition
> > [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:
> > 202)
> > [ERROR]         at java.security.AccessController.doPrivileged(Native
> > Method)
> > [ERROR]         at
> > java.net.URLClassLoader.findClass(URLClassLoader.java:190)
> > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:
> > 307)
> > [ERROR]         at sun.misc.Launcher
> > $AppClassLoader.loadClass(Launcher.java:301)
> > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:
> > 248)
> > [ERROR]         ... 11 more
> > [ERROR] com/google/gwt/dev/cfg/Condition
> > [INFO]
> > 
> > [ERROR] BUILD ERROR
> > [INFO]
> > 
> > [INFO] There was test failures.
> > *
>
> > On Nov 5, 6:49 pm, Thomas Broyer  wrote:
>
> > > On 5 nov, 22:01, Yaakov Chaikin  wrote:
>
> > > > Never mind... It was the version of the gwt-maven-plugin... However,
> > > > now, I can't get it to install. What version of the gwt-maven-plugin
> > > > am I supposed to use with the latest 2.1.0 release of GWT and which
> > > > repository does it reside in?
>
> > > You can use either the 1.3.2.google version from 
> > > thehttp://google-web-toolkit.googlecode.com/svn/2.1.0/gwt/maven/
> > > repository, or the 2.1.0 version from Maven Central (released today)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscrib

Re: Accessing GWT app deployed on Jetty fails

2010-11-09 Thread Musicman75
auhaus Dashboard Database Connector .. SUCCESS
[2.781s]
[INFO] DEV Bauhaus Dashboard Server .. SUCCESS
[3.079s]
[INFO] DEV Bauhaus Dashboard Client .. SUCCESS
[32.171s]
[INFO]

[INFO] BUILD SUCCESS
[INFO]

[INFO] Total time: 38.373s
[INFO] Finished at: Tue Nov 09 09:30:19 CET 2010
[INFO] Final Memory: 38M/91M
[INFO]


------

On 9 Nov., 08:27, Musicman75  wrote:
> I executed mvn clean install, mvn clean package with and without
> executing mvn gwt:compile before.
> Same problem with all generated war files.
>
> On 9 Nov., 01:25, David Chandler  wrote:
>
>
>
>
>
>
>
> > What mvn command are you using? In this POM, gwt-maven-plugin is
> > executing gwt:compile during the prepare-package phase, so you should
> > run "mvn package" to trigger it.
>
> > HTH,
> > /dmc
>
> > On Mon, Nov 8, 2010 at 5:28 PM, Musicman75
>
> >  wrote:
> > > That's Why i posted my pom file. I think the maven execution is done
> > > in the wrong order.
>
> > > Could anyone please post a pom file to create a war and compile the
> > > GWT app before?
>
> > > On 8 Nov., 13:33, Y2i  wrote:
> > >> I use Eclipse projects instead of maven, but I do see similar errors
> > >> when I create and deploy a war file without doing GWT compilation
> > >> first.  After GWT re-compilation and re-deploying the war file the
> > >> errors disappear.
>
> > >> On Nov 8, 4:59 pm, Musicman75  wrote:
>
> > >> > Hello,
>
> > >> > I've created a GWT war project with two subprojects.
> > >> > When starting the server (Jetty standalone), the war is loaded:
>
> > >> > 2010-11-08 14:50:51.648:INFO::Deployable added: C:\Users\beutelsn
> > >> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\dashboardClient-0.0.1-
> > >> > SNAPSHOT.war
> > >> > 2010-11-08 14:50:51.727:INFO::Copying WEB-INF/lib jar:file:/C:/Users/
> > >> > beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
> > >> > dashboardClient-0.0.1-S
> > >> > APSHOT.war!/WEB-INF/lib/ to C:\Users\beutelsn\AppData\Local\Temp
> > >> > \6\Jetty_0_0_0_0_9090_dashboardClient.
> > >> > 0.0.1.SNAPSHOT.war__dashboardClient.0.0.1.SNAPS
> > >> > OT__.hbn96r\webinf\WEB-INF\lib
> > >> > 2010-11-08 14:50:52.380:INFO::Copying WEB-INF/classes from jar:file:/
> > >> > C:/Users/beutelsn/DevTools/jetty-hightide-7.1.6.v20100715/webapps/
> > >> > dashboardClien
> > >> > -0.0.1-SNAPSHOT.war!/WEB-INF/classes/ to C:\Users\beutelsn\AppData
> > >> > \Local\Temp\6\Jetty_0_0_0_0_9090_dashboardClient.
> > >> > 0.0.1.SNAPSHOT.war__dashboardClien
> > >> > .0.0.1.SNAPSHOT__.hbn96r\webinf\WEB-INF\classes
> > >> > 2010-11-08 14:50:54.101:INFO:/dashboardClient-0.0.1-
> > >> > SNAPSHOT:Initializing Spring root WebApplicationContext null null
> > >> > 2010-11-08 14:50:56.545:INFO:/dashboardClient-0.0.1-
> > >> > SNAPSHOT:Initializing Spring FrameworkServlet 'dispatcher' null null
> > >> > 2010-11-08 14:50:56.707:INFO::Deployable added: C:\Users\beutelsn
> > >> > \DevTools\jetty-hightide-7.1.6.v20100715\webapps\async-rest
> > >> > 2010-11-08 14:50:56.762:INFO::Started
> > >> > selectchannelconnec...@0.0.0.0:9090
>
> > >> > When accessing the war with the browser, I only get a popup with this
> > >> > message:
> > >> > ---
> > >> > GWT module 'com.XXX.Application' may need to be (re)compiled
> > >> > --
>
> > >> > In hosted mode everything works fine.
>
> > >> > The war is created by maven. Here's my pom.xml:
>
> > >> > 
> > >> > http://maven.apache.org/POM/4.0.0"; 
> > >> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> > >> > xsi:schemaLocation="http://
> > >> > maven.apache.org/POM/4.0.0http://maven.apache.org/maven-v4_0_0.xsd";>
> > >> >         
> > >> >         
> > >> >                 dashboard2
> > >> >                 com.XXX
> > >> >                 0.0.1-SNAPSHOT
> &

Re: Accessing GWT app deployed on Jetty fails

2010-11-09 Thread Musicman75
I solved the issue.

I've to add webAppDirectory to the GWT maven plugin.
The generated files were not placed in my webapp directory. They were
created in the target directory.
The webapp only contains a few files, but not all of them.

Here's my actual working pom file:


http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://
www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://
maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>


dashboard2
com.dev
0.0.1-SNAPSHOT

4.0.0
com.dev
dashboardClient
Dev Bauhaus Dashboard Client
war
0.0.1-SNAPSHOT



1.6
1.6







com.dev
dashboardServer
${project.version}




org.springframework
spring-webmvc




com.google.gwt
gwt-servlet
runtime


com.google.gwt
gwt-user
provided


com.octo.gwt.test
gwt-test-utils
test




junit
junit
4.7
test





src/main/webapp/WEB-INF/classes


src/main/java

**/*.java
**/*.gwt.xml



src/main/resources




org.apache.maven.plugins
maven-war-plugin


src/main/webapp

src/main/webapp/WEB-INF/web.xml



org.apache.maven.plugins
maven-compiler-plugin


${maven.compiler.source}

${maven.compiler.target}
UTF-8



org.apache.maven.plugins
maven-resources-plugin

UTF-8



org.apache.maven.plugins
maven-surefire-plugin


org.apache.maven.plugins
maven-assembly-plugin



jar-with-dependencies




org.apache.maven.plugins
maven-deploy-plugin


org.codehaus.mojo
tomcat-maven-plugin


org.mortbay.jetty
jetty-maven-plugin



/${project.name}




org.codehaus.mojo
gwt-maven-plugin

INFO
PRETTY
2.1.0

com.axivion.dashboard.Application/Application.html


com.axivion.dashboard.Application


Re: gwt 2.1, maven, eclipse 3.5

2010-11-10 Thread Musicman75
Hello,

to use GWT 2.1 you have to use gwt-maven-plugin 2.1.0 (or 1.3.2.google
from the google repo).
It was released a few days ago in the maven repo.

When running your app in Hosted mode (run AS Web Application) you have
to reload the server with the reload button in the Development Mode
view in Eclipse.

When starting your App in hosted mode with mvn gwt:run you have to
restart the server with the button in the Jetty Tab.

Just pressing F5 is not enought to redeploy your code into the server.

On 10 Nov., 13:59, Karl  wrote:
> Hi,
> did you have a look at the giudes 
> athttp://mojo.codehaus.org/gwt-maven-plugin/archetype.html
> ? It describes how to create a gwt project with archetype:generate and
> how to configure your pom in various ways.
>
> Regards /Karl
>
> On Nov 10, 11:04 am, Frank Bølviken  wrote:
>
>
>
>
>
>
>
> > Anyone? :)
>
> > Searched around the web, and I cant find one single guide on this
> > subject which is good. There's always earlier versions of gwt, and
> > guides which isnt working etc.
> > Im thinking of a guide which either first creates the project via
> > maven archetype:generate and importing into eclipse, or a guide where
> > you create the project in eclipse with the google plugin, then moving
> > source folders etc to fit the "maven kind of way" and creating a
> > pom.xml.
>
> > Any help would be really appreciated.
>
> > Sincerly Frank B
>
> > On Nov 9, 6:09 pm, Frank Bølviken  wrote:
>
> > > Thanks for everyones help.. with my stupid questions. But hey... I
> > > need to learn the best way.
> > > Is there no help in getting a complete "guide" with the basic steps
> > > from issuing mvn archetype:generate until deployment in a server 
> > > ineclipsefor developing real time?
>
> > > Thanks..
>
> > > Frank B
>
> > > On Nov 9, 10:40 am, Karl  wrote:
>
> > > > Hi Frank!
> > > > I had a rough last week trying to upgrade our application to 2.1, but
> > > > I think I finally got it working when the gwt maven plugin was
> > > > released. Relevant parts of the pom:
>
> > > > 
> > > > ...
> > > > 
> > > >         2.1.0
> > > > 
> > > > ...
> > > > 
> > > >         ${project.artifactId}
> > > >         
> > > > ${basedir}/war/WEB-INF/classes
> > > >         
> > > >                 
> > > >                 
> > > >                         maven-eclipse-plugin
> > > >                         
> > > >                                 
> > > >                                         
> > > > com.google.gwt.eclipse.core.gwtNature > > > projectnature>
> > > >                                         
> > > > com.google.gdt.eclipse.core.webAppNature > > > projectnature>
> > > >                                 
> > > >                                 
> > > >                                         
> > > > com.google.gwt.eclipse.core.gwtProjectValidator > > > buildcommand>
> > > >                                         
> > > > com.google.gdt.eclipse.core.webAppProjectValidator > > > buildcommand>
> > > >                                 
> > > >                                 
> > > >                                         
> > > > org.eclipse.jdt.launching.JRE_CONTAINER > > > classpathContainer>
> > > >                                         
> > > > com.google.gwt.eclipse.core.GWT_CONTAINER > > > classpathContainer>
> > > >                                 
> > > >                                 
> > > >                                         
> > > >                                         
> > > > com.google.gwt:gwt-user
> > > >                                         
> > > > com.google.gwt:gwt-dev
> > > >                                 
> > > >                         
> > > >                 
> > > >                 
> > > >                         org.apache.maven.plugins
> > > >                         maven-war-plugin
> > > >                         
> > > >                                 
> > > > ${basedir}/war
> > > >                                 
> > > > ${basedir}/war
> > > >                         
> > > >                 
> > > >                 
> > > >                         org.codehaus.mojo
> > > >                         gwt-maven-plugin
> > > >                         ${gwt.version}
> > > >                         
> > > >                                 our.module
> > > >                                 
> > > > ${basedir}/war
> > > >                                 true
> > > >                                 
> > > >                                         
> > > > our.gwt.shared.i18n.OurConstants > > > i18nConstantsBundle>
> > > >                                 
> > > >                                 
> > > >                                         
> > > > our.gwt.shared.i18n.OurMessages > > > i18nMessagesBundle>
> > > >                                 
> > > >                                 2
> > > >                         
> > > >                         
> > > >                                 
> > > >                                         

Re: GWT and Maven plugin

2010-11-10 Thread Musicman75
Hello, you have to specify the Location of the war file in the GWT
maven Plugin configuration.

On 9 Nov., 23:00, EMan  wrote:
> I have some basic questions.
> I am trying to use GWT maven plugin with eclipse.  when I do mvn
> gwt:compile, it seems to output the gwt compiled code to /target.  but
> when I compile in eclipse output goes to /war.
>
> where is the proper place these files should be output to?  ultimately
> I want to war this up and deploy to a jboss server.
>
> if I am using the gwt maven plugin should I be using mvn gwt:compile?
> or can I just use google->GWT compile from the menu?  are they both
> picked up from the plugin?
>
> Thanks for your help.

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



Debug problem since GWT 2.1.0, gwt-maven-plugin 2.1.0, Maven 3.0

2010-11-12 Thread Musicman75
Hello,

if I want to debug my application, I got over 20 times a
fileNotFoundException from the JarLoader.getJarFile.
The file which can't be loaded is:

mvn-repository/com/google/gwt/gwt-servlet/2.1.0/gwt-servlet.jar

After a loop of over 20 times, the application started in debug mode.

This problem occurs since I changed to GWT 2.1.0 and maven plugin
2.1.0.

Anybody else with this problem?
Any solutions available?

My ide is Eclipse 3.6, jdk 1.6.0_22, GWT 2.1.0

Thanks for help.

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



Re: Need help: [ERROR] Invalid version number "2.0" passed to external.gwtOnLoad(), expected "2.1"

2010-11-28 Thread Musicman75
Hello Daniel,

try to clear the browser cache (cookies and data).
That solved the problem for me.


On 28 Nov., 10:10, dflorey  wrote:
> Hi,
> I've upgraded one of my apps to 2.1. When running in dev mode I get
> this error:
>
> Connection received from 127.0.0.1:49430
>    [ERROR] Invalid version number "2.0" passed to
> external.gwtOnLoad(), expected "2.1"; your hosted mode bootstrap file
> may be out of date; if you are using -noserver try recompiling and
> redeploying your app
>
> Any ideas?
>
> Daniel

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



Multiple Windows like a desktop

2010-12-07 Thread Musicman75
Hello,

is there a small example how to create a desktop like screen with
multiple windows (resizing, minimize, maximize), add, show, hide
windows available?

I can't use any framework which implements that feature.

I tried to understand the sticky example from the GWT example page,
but I think it could be an easier way to show how to implement such a
feature.

Thanks for help.

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



Re: Multiple Windows like a desktop

2010-12-07 Thread Musicman75
Thanks for your answers.

As I said, I can't use any third party frameworks.
We use GWT 2.1 with UIBinder and Activities/Places.
That's why I have to implement this functionality by myself.
Additionally we don't want to have external dependencies because of
product support for our customers.

I only need a small demo/diagram or a simple demo project to check out
how I can implement it in a simple way.

Regards
Steff

On 7 Dez., 18:05, Didier Durand  wrote:
> Hi,
>
> Check outhttp://www.gwtwindowmanager.org/:it's doing what you want.
>
> regards
> didier
>
> On Dec 7, 2:37 pm, Musicman75  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > is there a small example how to create a desktop like screen with
> > multiple windows (resizing, minimize, maximize), add, show, hide
> > windows available?
>
> > I can't use any framework which implements that feature.
>
> > I tried to understand the sticky example from the GWT example page,
> > but I think it could be an easier way to show how to implement such a
> > feature.
>
> > Thanks for help.

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



Textarea with line numbers

2010-12-22 Thread Musicman75
Hello,

does anybody know if there's a possibility to add line numbers to a
testarea?
I have to create a code editor like this one:
http://alexgorbatchev.com/SyntaxHighlighter/manual/demo/

Thanks

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



Code viewer like on google code search

2010-12-27 Thread Musicman75
Hello,

does anybody knows if the code viewer which is used on google code
search is available for download anywhere?
http://www.google.com/codesearch/p?hl=de#vNbneu5q_7Q/trunk/Tariq/gnupg.py&q=gnupg&sa=N&cd=3&ct=rc

Are any other libraries available for code highlightning and line
numbering?
I don'r want to use any wrapper, which includes JavaScript libraries.
Only pure GWT widgets.

Thanks

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



Highlight some rows in CellTable

2011-01-24 Thread Musicman75
Hello,

I need to highlight some rows in a cellTable, used with 2 dirrerent
colors like the original coloring.

e.g:
row1 - white
row2 - blue
row3 - white
row4 - blue
row5 - light yellow
row6 - dark yellow
row7 - light yellow
row8 - dark yellow
row9 - white
row10 - blue
row11 - white
row12 - blue

First step was to copy/paste the original GWT table and change the
renderRowValues(...) function.
In FF and Chrome everything works ok, but in IE8 the table isn't
shows.

I can't debug in IE because of the bug in the Development plugin for
IE.

I need some help highlightening the rows in the original CellTable
without copy/paste the code.

Any hints or solutions available?

Thanks.

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



Re: GWT Developer plugin For IE installation problem

2011-01-24 Thread Musicman75
Dear GWT Team, please post some information about the development
plugin for the IE.
Is anybody working on a solution?

It's really urgent for me to debug in IE and resolve some problems.

Thanks

On 24 Jan., 15:15, othman  wrote:
> No no solution yet
> if someone finds a solution to this problem please share here
>
> thanks
>
> On Jan 23, 9:40 am, 肖鹏  wrote:
>
>
>
>
>
>
>
> > I got the same problem. My guest os is Windows Xp. Have you found a
> > solution?
>
> > On Jan 21, 9:39 pm, christian elsen 
> > wrote:
>
> > > The problems I have seems to be exactly the same, only the error code
> > > is different in my case:
> > > "Download error: The downloaded file failed verification. Error code 
> > > =0x80040204"
>
> > > I'm running IE7 within an instance of VirtualBox. The GWT browser
> > > plugin for firefox and chrome could be installed without any problem.
> > > I also downloaded th IE browser plugin to disk and tried to install it
> > > from there: Exactly the same error code occurrs.
>
> > > kind regards
>
> > > On Jan 18, 11:17 pm, othman  wrote:
>
> > > > Thanks Fabio for your support.
> > > > i'll keep on investigating this problem. If i find something or need
> > > > more support i'll get back here.
>
> > > > On Jan 18, 7:53 pm, Fabio Valbuena  wrote:
>
> > > > > othman,
>
> > > > > I can't repro the issue you are seeing, but I will try to help as I
> > > > > can. It looks like you may have issues with your system. here is an
> > > > > idea: if you are admin on the box, create a new profile, logon to it
> > > > > and try to install just to see what happens. I am trying to read
> > > > > between the lines here, but it seems that either of have an
> > > > > inconsistent state system (having an installed service but missing a
> > > > > file - error 2), or you may have a 'murky' anti-virus interfering.
>
> > > > > few things to think about:
>
> > > > > 1) can you install anything at all?
> > > > > 2) what was the last thing you installed on the box?
> > > > > 3) have you looked at the event viewer log to see if there is any
> > > > > additional information?
> > > > > 4) is windows installer service running fine?
> > > > > 5) are you familiar with procmon? try installing it and take a look at
> > > > > what is going on.
>
> > > > > On Jan 18, 2:32 pm, othman  wrote:
>
> > > > > > On Jan 18, 7:27 pm, Fabio Valbuena  wrote:
>
> > > > > > > it is not clear to me if you were able or not to download the file
> > > > > > > from the direct link above. instead of 'run', please try to save 
> > > > > > > the
> > > > > > > download to a folder (desktop for instance) as suggested before 
> > > > > > > and
> > > > > > > then run from there (from explorer). Do not run from within IE. 
> > > > > > > What I
> > > > > > > am trying to separate is if you have connectivity issues or
> > > > > > > installation issues.
>
> > > > > > That's exactly what i did. i saved in a folder then launched exe by
> > > > > > double clicking it. i even right click this exe and choose run as
> > > > > > administrator ,but same problem!
> > > > > > It looks like there is some mysterious thing that i'm not able to
> > > > > > figure out.
>
> > > > > > > On Jan 18, 2:01 pm, othman  wrote:
>
> > > > > > > > I closed all running programs , turned off firewall and 
> > > > > > > > antivirus then
> > > > > > > > run the file in link you provided but i got same error!
> > > > > > > > I went to windows services and noticed there is a "Google update
> > > > > > > > service" which status is set to automatic. when i tried 
> > > > > > > > starting this
> > > > > > > > "google update servic"e i got an error "couldn't start service. 
> > > > > > > > error
> > > > > > > > 2: couldn't find specified file". could this be the problem?
> > > > > > > > I  have Chrome & firefox browsers installed too.
> > > > > > > > I have no clue why the installer gets blocked in download phase.
> > > > > > > > something seems blocking the installer from downloading the 
> > > > > > > > plugin but
> > > > > > > > i can't figure it out.
>
> > > > > > > > On Jan 18, 6:36 pm, Fabio Valbuena  wrote:
>
> > > > > > > > > One thing you can check is if you have installed any external 
> > > > > > > > > popup
> > > > > > > > > blocker, anti-virus, etc.
>
> > > > > > > > > did it work before? is it possible that IE is asking for some
> > > > > > > > > confirmation (a yellow bar under the address bar) and somehow 
> > > > > > > > > you
> > > > > > > > > don't see/answer it? then the server will likely reset the 
> > > > > > > > > connection
> > > > > > > > > after a while if you dont respond.
>
> > > > > > > > > to get you going, try clicking on this link and save to the 
> > > > > > > > > disk:https://dl-ssl.google.com/tag/s/appguid%3D%7B9a5e649a-ec63-4c7d-99bf-...
>
> > > > > > > > > then run the installer.
>
> > > > > > > > > On Jan 18, 1:13 pm, othman  wrote:
>
> > > > > > > > > > thanks fabio,
> > > > > > > > > > my Internet connection is fine. i can browse the web. I 
> > > > > >

Re: Highlight some rows in CellTable

2011-01-25 Thread Musicman75
I tried that, but I have to add more styles than the default.

I need two more styles

oddRowHighlighted
evenRowHighlighted

Or explicit set a row style to a defined row.



On 24 Jan., 16:46, Tolwi  wrote:
> cellTable.setRowStyles(..)

-- 
You received 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: Highlight some rows in CellTable

2011-01-25 Thread Musicman75
Ok, it works now.

First I override the default style by extending the
CellTable.Resources and CellTable.Style:

public interface CellTableResource extends CellTable.Resources {

/**
 * The Interface CellTableStyle.
 */
public interface CellTableStyle extends CellTable.Style {
};

/*
 * (non-Javadoc)
 *
 * @see
com.google.gwt.user.cellview.client.CellTable.Resources#cellTableStyle()
 */
@Override
@Source({ "SourceViewTable.css" })
CellTableStyle cellTableStyle();
};


Then I added the style with the defalt names, but without background
color setting.
If you set a background color in the style, you can't override it with
another style.

After that I used the setRowStyles function on the celltable, to set
the necessary background color:

codeTable.setRowStyles(new RowStyles() {

@Override
public String getStyleNames(CodeViewerDto row, int
rowIndex) {
if (row.isHighlighted()) {
if (rowIndex % 2 == 0) {
return "cellTableEvenRowHighlight";
} else {
return "cellTableOddRowHighlight";
}
} else {
if (rowIndex % 2 == 0) {
return "cellTableEvenRowBg";
} else {
return "cellTableOddRowBg";
}
}
}
});

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



Synchronize hovered row in 2 cellTables

2011-01-26 Thread Musicman75
Hello,

I've two cellTables striped together in a horizontalPanel.

Does anybody knows how to get the hovered row from one cellTable and
set the hovered row in the other cellTable?

In the cellTable there's a hoveringRow property, but there are no
getter/setter for that property.

I need these two tables, because on test selection only one table
should be selected, without the content of the other table.

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



zIndex of submenu in MenuBar

2011-01-26 Thread Musicman75
Hello,

I have a multi layer application and try to use a menubar with
submenus.
The menubar itself is displayed on to after setting the zIndex, but
the submenus are created behind my other components.

I tried to set the zIndex on the submenu items, but the setting seems
to be ignored.
Only in IE it works correctly, in FF and Chrome the submenu is
displayed with the wrong zIndex.

Here's a small code snippet how I create the menu in my popup and set
the zIndex:

protected void showPopup(CodeViewerDto value, int x, int y) {
int layer = indexOfTopWindow() + 1;
DOM.setIntStyleAttribute(popup.getElement(), "zIndex", layer +
20);
popup.setWidth("150px");
MenuBar menu = new MenuBar(true);
MenuItem item = null;
DOM.setIntStyleAttribute(menu.getElement(), "zIndex", layer +
30);

popup.setWidget(menu);
int left = 0;
int top = 0;
popup.setPopupPosition(left, top);
popup.show();

Map submenus = new HashMap();
for (LineMarker lm : value.getLineMarkers()) {
MenuBar submenu;
if (submenus.containsKey(lm.getViolationType())) {
submenu = submenus.get(lm.getViolationType());
} else {
submenu = new MenuBar();
submenus.put(lm.getViolationType(), submenu);
}

SafeHtmlBuilder sb = new SafeHtmlBuilder();
sb.appendEscaped(lm.getMessage());
MenuItem item2 = new MenuItem(sb.toSafeHtml());
submenu.addItem(item2);
}
for (String s : submenus.keySet()) {
MenuBar submenu = submenus.get(s);
DOM.setIntStyleAttribute(submenu.getElement(), "zIndex",
layer + 40);
item = new MenuItem(s, submenu);
DOM.setIntStyleAttribute(item.getElement(), "zIndex",
layer + 50);
menu.addItem(item);
}
}

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



Syncronize hovered rows in two cellTables

2011-02-11 Thread Musicman75
Hello,

I've two celltables inside a horizontalPanel.

The first table contains line numers and the second one contains
text.

I need to syncronize the hovered rows in both tables. If the user
moves the mouse over one table, the row should be hovered in the
second table too.

Does someone knows how I could solve this problem?
I can't use only one table, because if the user selects the text in
the second table, the line numbers shouldn't be selected.

Regards
Stephan

-- 
You received 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: zIndex of submenu in MenuBar

2011-02-22 Thread Musicman75
Hello,

any solutions to handle zindex in menu/submenu?
I don't want to create my own menu class to handle this issue.

Thanks


On 26 Jan., 14:40, Musicman75  wrote:
> Hello,
>
> I have a multi layer application and try to use a menubar with
> submenus.
> The menubar itself is displayed on to after setting the zIndex, but
> the submenus are created behind my other components.
>
> I tried to set the zIndex on the submenu items, but the setting seems
> to be ignored.
> Only in IE it works correctly, in FF and Chrome the submenu is
> displayed with the wrong zIndex.
>
> Here's a small code snippet how I create the menu in my popup and set
> the zIndex:
>
> protected void showPopup(CodeViewerDto value, int x, int y) {
>         int layer = indexOfTopWindow() + 1;
>         DOM.setIntStyleAttribute(popup.getElement(), "zIndex", layer +
> 20);
>         popup.setWidth("150px");
>         MenuBar menu = new MenuBar(true);
>         MenuItem item = null;
>         DOM.setIntStyleAttribute(menu.getElement(), "zIndex", layer +
> 30);
>
>         popup.setWidget(menu);
>         int left = 0;
>         int top = 0;
>         popup.setPopupPosition(left, top);
>         popup.show();
>
>         Map submenus = new HashMap MenuBar>();
>         for (LineMarker lm : value.getLineMarkers()) {
>             MenuBar submenu;
>             if (submenus.containsKey(lm.getViolationType())) {
>                 submenu = submenus.get(lm.getViolationType());
>             } else {
>                 submenu = new MenuBar();
>                 submenus.put(lm.getViolationType(), submenu);
>             }
>
>             SafeHtmlBuilder sb = new SafeHtmlBuilder();
>             sb.appendEscaped(lm.getMessage());
>             MenuItem item2 = new MenuItem(sb.toSafeHtml());
>             submenu.addItem(item2);
>         }
>         for (String s : submenus.keySet()) {
>             MenuBar submenu = submenus.get(s);
>             DOM.setIntStyleAttribute(submenu.getElement(), "zIndex",
> layer + 40);
>             item = new MenuItem(s, submenu);
>             DOM.setIntStyleAttribute(item.getElement(), "zIndex",
> layer + 50);
>             menu.addItem(item);
>         }
>     }

-- 
You received 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: zIndex of submenu in MenuBar

2011-02-22 Thread Musicman75
Here's a very small code snippet which shows the problem:

@Override
public void onModuleLoad() {

SimplePanel sp = new SimplePanel();
DecoratedPopupPanel p = new DecoratedPopupPanel();
p.setSize("300", "200");
p.center();

DOM.setIntStyleAttribute(p.getElement(), "zIndex", 99);

MenuBar mb = new MenuBar();
MenuBar sub = new MenuBar();
MenuItem it = new MenuItem("Sub 1", new Command() {

@Override
public void execute() {
Window.alert("clicked");
}
});
sub.addItem(it);
mb.addItem(new MenuItem("Test", sub));
p.add(mb);

p.show();

RootPanel.get().add(sp);
}

On 22 Feb., 09:28, Musicman75  wrote:
> Hello,
>
> any solutions to handle zindex in menu/submenu?
> I don't want to create my own menu class to handle this issue.
>
> Thanks
>
> On 26 Jan., 14:40, Musicman75  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I have a multi layer application and try to use a menubar with
> > submenus.
> > The menubar itself is displayed on to after setting the zIndex, but
> > the submenus are created behind my other components.
>
> > I tried to set the zIndex on the submenu items, but the setting seems
> > to be ignored.
> > Only in IE it works correctly, in FF and Chrome the submenu is
> > displayed with the wrong zIndex.
>
> > Here's a small code snippet how I create the menu in my popup and set
> > the zIndex:
>
> > protected void showPopup(CodeViewerDto value, int x, int y) {
> >         int layer = indexOfTopWindow() + 1;
> >         DOM.setIntStyleAttribute(popup.getElement(), "zIndex", layer +
> > 20);
> >         popup.setWidth("150px");
> >         MenuBar menu = new MenuBar(true);
> >         MenuItem item = null;
> >         DOM.setIntStyleAttribute(menu.getElement(), "zIndex", layer +
> > 30);
>
> >         popup.setWidget(menu);
> >         int left = 0;
> >         int top = 0;
> >         popup.setPopupPosition(left, top);
> >         popup.show();
>
> >         Map submenus = new HashMap > MenuBar>();
> >         for (LineMarker lm : value.getLineMarkers()) {
> >             MenuBar submenu;
> >             if (submenus.containsKey(lm.getViolationType())) {
> >                 submenu = submenus.get(lm.getViolationType());
> >             } else {
> >                 submenu = new MenuBar();
> >                 submenus.put(lm.getViolationType(), submenu);
> >             }
>
> >             SafeHtmlBuilder sb = new SafeHtmlBuilder();
> >             sb.appendEscaped(lm.getMessage());
> >             MenuItem item2 = new MenuItem(sb.toSafeHtml());
> >             submenu.addItem(item2);
> >         }
> >         for (String s : submenus.keySet()) {
> >             MenuBar submenu = submenus.get(s);
> >             DOM.setIntStyleAttribute(submenu.getElement(), "zIndex",
> > layer + 40);
> >             item = new MenuItem(s, submenu);
> >             DOM.setIntStyleAttribute(item.getElement(), "zIndex",
> > layer + 50);
> >             menu.addItem(item);
> >         }
> >     }

-- 
You received 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: Syncronize hovered rows in two cellTables

2011-03-14 Thread Musicman75
Back from holiday :-)

Thanks for your reply. I tried to implement things like you described.
Setting the hovering row doesn't work, because I can't access the
property.

Now I tried to dispatch an event on each table to handle the hovering.
Therefore I've to change the event target.
Otherwise The table can't detect the correct part (the body -
CellTable.java line 1261).

Does somebody knows how to change the event target or create a new
MouseOver event with a specific target.



On 11 Feb., 15:03, Thomas Visser  wrote:
> CellTable keeps record of the 'hoveringRow'. This attribute can change
> inside the onBrowserEvent2 (http://www.google.com/codesearch/p?
> hl=en#A1edwVHBClQ/user/src/com/google/gwt/user/cellview/client/
> CellTable.java&q=hoveringRow%20package:http://google-web-toolkit
> %5C.googlecode%5C.com&l=881) method. You could override that method,
> call super and check for a change afterwards. That's the detection
> part. Then add a method to your own CellTable to allow setting the
> hovering row.
>
> I haven't tested it, but it sounds like it could work. Good luck!
>
> On Feb 11, 9:14 am, Musicman75  wrote:
>
>
>
>
>
>
>
> > Hello,
>
> > I've two celltables inside a horizontalPanel.
>
> > The first table contains line numers and the second one contains
> > text.
>
> > I need to syncronize the hovered rows in both tables. If the user
> > moves the mouse over one table, the row should be hovered in the
> > second table too.
>
> > Does someone knows how I could solve this problem?
> > I can't use only one table, because if the user selects the text in
> > the second table, the line numbers shouldn't be selected.
>
> > Regards
> > Stephan

-- 
You received 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: Spring Security 3.0 authentication problem

2011-03-16 Thread Musicman75
Hello,

to use GWT with Spring Security look at this blog:

http://seewah.blogspot.com/2009/02/gwt-and-spring-security.html



On 15 Mrz., 18:06, julio  wrote:
> Hi,
>
> I have a GWT client that communicates with a Spring/SpringSecurity 3.0
> server via REST/JSON.
> Both run on the same tomcat/jetty perfectly, but I have a problem
> introducing the authentication:
> If I "POST" the server with an external HTTP client the url:
>
> http://localhost:8080/myserverapp/j_spring_security_check?j_username=...
>
> the server response is OK (200)
>
> but when GWT client tries the same, the status code returned is 0.
> This is the code I'm using at the moment:
>
> final StringBuilder content = new StringBuilder();
>         content.append("j_username=" + URL.encode("julio"));
>         content.append("&j_password=" + URL.encode("mypass"));
>
>         final RequestBuilder builder = new
> RequestBuilder(RequestBuilder.POST, URL.encode(BASEURL + "/
> j_spring_security_check"));
>         builder.setHeader("Content-Type", "application/x-www-form-
> urlencoded");
>
>         try {
>             builder.sendRequest(content.toString(), new
> RequestCallback() {
>
>                                 public void onResponseReceived(Request 
> request, Response response)
> {
>                                         Window.alert("STATUS : " + 
> response.getStatusCode()); // returns
> 0 ??
>                                 }
>
>                                 public void onError(Request request, 
> Throwable exception) {
>                                         Window.alert("ERROR");
>                                 }
>
>             });
>         } catch (final RequestException e) {
>             Window.alert(e.getLocalizedMessage());
>         }
>
> why does it return 0? any idea?
>
> Thanks,
> Julio

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



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

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

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

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

Thanks
Stephan

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

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



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

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

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

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



On 8 Apr., 15:18, Diego Lovison  wrote:
> If you would like rende 1000 rows I suggest you use lazy render...
> you can find this in gxt and smartgwt
>
> On 8 abr, 09:23, Gal Dolber  wrote:
>
>
>
>
>
>
>
> > why would you want to render 10 rows? :)
>
> > On Fri, Apr 8, 2011 at 4:02 AM, Musicman75 
> > wrote:
>
> > > @Sky
> > > Nice idea to include resizing on mouse dragging.
>
> > > Any implementation available?
> > > I checked out the ScrollTable from incubator, but it's too slow
> > > (rendering with more than 10 rows is impossible).
>
> > > The resizing functionallity from the Scrolltable implemented together
> > > with CellTable would be a great thing.
>
> > > Thanks
> > > Stephan
>
> > > On 17 Feb., 10:35, dflorey  wrote:
> > > > Did you check out the tables in the gwt incubator? They support resizing
> > > of
> > > > columns, fixed headers etc.
>
> > > --
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > Guit: Elegant, beautiful, modular and *production ready* gwt applications.
>
> >http://code.google.com/p/guit/

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



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

2011-04-09 Thread Musicman75
That's right, but if the user wants to sort the data in another way,
it takes to much time to ask the database again.
Trust me, I tried it. Database design it's very complicated and each
query has to join at least five tables.



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

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



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

2011-04-19 Thread Musicman75
Here's my implementation to handle column resizing.
I created the CellTable class in my SourceTree with same package name
as Google named it.

I extended the onBrowserEvent2 function with my resizing function:


// Forward the event to the associated header, footer, or column.
boolean isClick = "click".equals(eventType);
int col = tableCell.getCellIndex();

// Control resizing of columns
boolean resizing = resizeColumns(event, target, col,
tableCell);

if (resizing) {
return;
}

if (section == thead) {



The resizing function looks like this. I added a function to calculate
the column width if no with are set. Setting width must be done with
Unit.PX at the moment.

/** The mouse down. */
private boolean mouseDown = false;

/** The resize value. */
private int oldXValue = -1;

/** The column to resize. */
private int columnToResize = -1;

/**
 * Resize columns.
 *
 * @param event
 *the event
 * @param target
 *the target
 * @param col
 *the col
 * @param tableCell
 *the table cell
 * @return true, if successful
 */
private boolean resizeColumns(Event event, Element target, int
col, TableCellElement tableCell) {
String eventType = event.getType();
int xValue = event.getClientX();
int offsetRight = xValue - (tableCell.getAbsoluteLeft() +
tableCell.getClientWidth());
int offsetLeft = xValue - tableCell.getAbsoluteLeft();
boolean resize = false;
if (offsetRight > -10) {
resize = true;
} else {
resize = false;
}
if (resize || mouseDown) {
DOM.setStyleAttribute((com.google.gwt.user.client.Element)
target, "cursor", "col-resize");
} else {
DOM.setStyleAttribute((com.google.gwt.user.client.Element)
target, "cursor", "auto");
return false;
}

if ("mousedown".equals(eventType)) {
mouseDown = !mouseDown;
if (mouseDown && columnToResize == -1 && oldXValue == -1)
{
columnToResize = col;
oldXValue = xValue;
} else {
calculateActualColumnWidths();
int offset = 0;
offset = xValue - oldXValue;

if (offset != 0 && columnToResize > -1) {
this.setColumnWidth(
columns.get(columnToResize),
 
Double.valueOf(columnWidths.get(columns.get(columnToResize)).replace(Unit.PX.getType(),
""))
+ offset, Unit.PX);
}
this.redraw();

columnToResize = -1;
oldXValue = -1;
}
}

return true;
}

/**
 *
 */
private void calculateActualColumnWidths() {
if (columnWidths.size() == 0) {
GWT.log("Calculate column width");
int width = this.getOffsetWidth() / columns.size();
for (Column col : columns) {
this.setColumnWidth(col, width, Unit.PX);
}
}

}


Resizing is done at the last 10 px of each column. No other actions
are performed in this area.

First click activated resizing, set the column index for resizing and
takes the actual x value.
Second click releases resizing, calculates the offset of saved x value
and actual x value and set the width of saved column index.

Not very nice, but the celltable don't fire mouseup event. Other
solutions are welcome.
Perhaps we could create a nice and performant column resizing
together.

I'd like to show resizing with a small line. Some ideas how to draw a
line at a given position with GWT?




On 9 Apr., 13:02, meyertee  wrote:
> I'll have to implement the same in pure html/js soon, my strategy so far was
> to put some markup in the table header that creates an element on the right
> side of the header to trigger the resize-cursor and the mouse-events.
> I saw the same thing here  and in
> other places.
>
> I did a quick test a few weeks ago with this markup and the styles below,
> which worked on the browsers I had available (Webkit/FF). Not exactly legal
> markup, but it seems to work.
>
>  class="label">Title
> th.resizable {padding-right: 0;}
> th.resizable .resizeWrapper {position: relative;}
> th.resizable .label {position:relative;margin-right: 20px;}
> th.resizable .handle {position:absolute;height:100%;width:3px;top: 0;right:
> 0;cursor: e-resize;}
>
> The rest is as Sky describes an exercise in picking up mouse-events and
> doing some calculations depending on the desired resize behavior - flexible
> table width (Excel-like) or fixed width (for example Mac-Mail).
>
> Sky's idea of puting an extra column in between is also interesting. I'll
> have to think about that. Might complicate some of the calculation

Custom cell with table causes event problem in cellTable

2012-03-21 Thread Musicman75
Hello,

I've a problem using a custom cell in a cellTable.
My custom renderer renders the data with templates and includes a
table.
On mouseOver the main cellTable highlights the row, but on mouseOver
on the included table, the highlight of the row gets lost.

How can I get the row highlighted even if I hover the internal table?

Thanks for help.



Here's a small example:

Playground.java (implementing EntryPoint):

--
package com.heiler.playground.client;

import com.google.gwt.cell.client.TextCell;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.cellview.client.CellTable;
import com.google.gwt.user.cellview.client.Column;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.view.client.ListDataProvider;
import com.heiler.playground.shared.MainObject;

public class Playground implements EntryPoint {
@Override
public void onModuleLoad() {
ListDataProvider dataProvider = new
ListDataProvider();
for (int i = 0; i < 5; i++) {
dataProvider.getList().add(new MainObject(i));
}
CellTable mainTable = new CellTable();

Column idColumn = new Column(
new TextCell()) {
@Override
public String getValue(MainObject object) {
return Integer.toString(object.getId());
}
};

Column subColumn = new 
Column(
new CustomCell()) {
@Override
public MainObject getValue(MainObject object) {
return object;
}
};

mainTable.addColumn(idColumn, "ID");
mainTable.addColumn(subColumn, "Sub");

dataProvider.addDataDisplay(mainTable);
mainTable.setWidth("800px");

RootPanel.get().add(mainTable);
}
}

---

CustomCell.java:

---
package com.heiler.playground.client;

import java.util.List;

import com.google.gwt.cell.client.AbstractCell;
import com.google.gwt.cell.client.Cell;
import com.google.gwt.cell.client.ValueUpdater;
import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.Element;
import com.google.gwt.dom.client.EventTarget;
import com.google.gwt.dom.client.NativeEvent;
import com.google.gwt.safehtml.client.SafeHtmlTemplates;
import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
import com.google.gwt.safehtml.shared.SafeHtml;
import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.Event;
import com.heiler.playground.shared.MainObject;
import com.heiler.playground.shared.SubObject;

public class CustomCell extends AbstractCell {
interface Template extends SafeHtmlTemplates {

@Template("")
SafeHtml stockInfoTableBegin();

@Template("")
SafeHtml stockInfoTableEnd();

@Template("")
SafeHtml stockInfoRowBegin();

@Template("")
SafeHtml stockInfoRowEnd();

@Template("{0}
")
SafeHtml stockInfoColumn(String columnName);

@Template("{0}")
SafeHtml stockInfoBodyData(String data);

@Template("")
SafeHtml clearStockInfoLayout();

}

private static Template template = GWT.create(Template.class);

/**
 * Creates and initializes new instance of this class.
 */
public CustomCell() {
super("click", "mouseover", "mouseout");
}

@Override
public void render(Cell.Context context, MainObject value,
SafeHtmlBuilder sb) {
if (value != null) {
renderStockInfo(context, value, sb);
}
}

private void renderStockInfo(Cell.Context context, MainObject value,
SafeHtmlBuilder sb) {
SubObject itemStockInfo = value.getSub();
List columnNameList = value.getColumnNames();

// stockinfo row start

// table start
sb.append(template.stockInfoTableBegin());

// header start
sb.append(template.stockInfoRowBegin());
for (String columnName : columnNameList) {
sb.append(template.stockInfoColumn(columnName));
}
sb.append(template.stockInfoRowEnd());
// header end

// info rows
sb.append(template.stockInfoRowBegin());

sb.append(template.stockInfoBodyData(itemStockInfo.getMessage()));
sb.appe

Re: Custom cell with table causes event problem in cellTable

2012-03-23 Thread Musicman75
Thanks a lot for your answer.

On 21 Mrz., 16:44, Thomas Broyer  wrote:
> Known issue, fixed in 
> trunk:http://code.google.com/p/google-web-toolkit/issues/detail?id=5714&q=c...
>
>
>
>
>
>
>
> On Wednesday, March 21, 2012 3:22:04 PM UTC+1, Musicman75 wrote:
>
> > Hello,
>
> > I've a problem using a custom cell in a cellTable.
> > My custom renderer renders the data with templates and includes a
> > table.
> > On mouseOver the main cellTable highlights the row, but on mouseOver
> > on the included table, the highlight of the row gets lost.
>
> > How can I get the row highlighted even if I hover the internal table?
>
> > Thanks for help.
>
> > Here's a small example:
>
> > Playground.java (implementing EntryPoint):
>
> > --
> > package com.heiler.playground.client;
>
> > import com.google.gwt.cell.client.TextCell;
> > import com.google.gwt.core.client.EntryPoint;
> > import com.google.gwt.user.cellview.client.CellTable;
> > import com.google.gwt.user.cellview.client.Column;
> > import com.google.gwt.user.client.ui.RootPanel;
> > import com.google.gwt.view.client.ListDataProvider;
> > import com.heiler.playground.shared.MainObject;
>
> > public class Playground implements EntryPoint {
> >         @Override
> >         public void onModuleLoad() {
> >                 ListDataProvider dataProvider = new
> > ListDataProvider();
> >                 for (int i = 0; i < 5; i++) {
> >                         dataProvider.getList().add(new MainObject(i));
> >                 }
> >                 CellTable mainTable = new
> > CellTable();
>
> >                 Column idColumn = new
> > Column > String>(
> >                                 new TextCell()) {
> >                         @Override
> >                         public String getValue(MainObject object) {
> >                                 return Integer.toString(object.getId());
> >                         }
> >                 };
>
> >                 Column subColumn = new
> > Column > MainObject>(
> >                                 new CustomCell()) {
> >                         @Override
> >                         public MainObject getValue(MainObject object) {
> >                                 return object;
> >                         }
> >                 };
>
> >                 mainTable.addColumn(idColumn, "ID");
> >                 mainTable.addColumn(subColumn, "Sub");
>
> >                 dataProvider.addDataDisplay(mainTable);
> >                 mainTable.setWidth("800px");
>
> >                 RootPanel.get().add(mainTable);
> >         }
> > }
>
> > ---
>
> > CustomCell.java:
>
> > ---
> > package com.heiler.playground.client;
>
> > import java.util.List;
>
> > import com.google.gwt.cell.client.AbstractCell;
> > import com.google.gwt.cell.client.Cell;
> > import com.google.gwt.cell.client.ValueUpdater;
> > import com.google.gwt.core.client.GWT;
> > import com.google.gwt.dom.client.Element;
> > import com.google.gwt.dom.client.EventTarget;
> > import com.google.gwt.dom.client.NativeEvent;
> > import com.google.gwt.safehtml.client.SafeHtmlTemplates;
> > import com.google.gwt.safehtml.client.SafeHtmlTemplates.Template;
> > import com.google.gwt.safehtml.shared.SafeHtml;
> > import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
> > import com.google.gwt.user.client.DOM;
> > import com.google.gwt.user.client.Event;
> > import com.heiler.playground.shared.MainObject;
> > import com.heiler.playground.shared.SubObject;
>
> > public class CustomCell extends AbstractCell {
> >         interface Template extends SafeHtmlTemplates {
>
> >                 @Template("")
> >                 SafeHtml stockInfoTableBegin();
>
> >                 @Template("")
> >                 SafeHtml stockInfoTableEnd();
>
> >                 @Template("")
> >                 SafeHtml stockInfoRowBegin();
>
> >                 @Template("")
> >                 SafeHtml stockInfoRowEnd();
>
> >                 @Template(" > class=\"itemsTableWidget-StockInfoHeaderColumn\">{0}
> > ")
> >                 SafeHtml stockInfoColumn(String columnName);
>
> >                 @Template(" > class=\"itemsTableWidget-StockInfoDataCol

Setup Eclipse workspace for core development

2014-04-16 Thread Musicman75
Hello,

I'm trying to setup a working Eclipse workspace with the GWT core like 
described in 
the included README.txt which comes with the GWT source code.

In the last 3 weeks I tried out several Eclipse distributions without 
success.

The main questions are:
Which Operationg systems are supported? Windows7?
Which Java version must be installed?
Which Eclipse distrubition and version?
Which plugins required and which version?
Is there any working description how to setup the workspace to develop GWT 
core? The existing one is very 
misunderstanding, e.g. changing project properties before importimg the 
project (gwt-user)?

The ANT build of the trunk works properly.

I have to declare a bug in GWT and I also want to fix it.

Normally we uses the Springsource Toolsuit 3.5.0 (based on Eclipse 3.8.2) 
in our company, so it would be the best to get 
the GWT source into this IDE.

Every time I end up with the same errors:

The type java.util.Map cannot be used 
here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 79 
Annotation 
Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  the return type 
(java.util.Map) could not be resolved 
to a domain type

Add @SuppressWarnings("requestfactory") to dismiss. BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 79 
Annotation 
Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  the return type 
(java.util.Map)
 
could not be resolved to a domain type

Add @SuppressWarnings("requestfactory") to dismiss. BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 85 
Annotation 
Problem (Java 6 processor)
The type 
java.util.Map
 
cannot be used here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 85 
Annotation 
Problem (Java 6 processor)
The type java.util.Map cannot be used 
here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 143 
Annotation 
Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  a parameter of 
type (java.util.Map) could not be 
resolved to a domain type

Add @SuppressWarnings("requestfactory") to dismiss. BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 143 
Annotation 
Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  the return type 
(java.util.Map)
 
could not be resolved to a domain type

Add @SuppressWarnings("requestfactory") to dismiss. BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 81 
Annotation 
Problem (Java 6 processor)
The type 
java.util.Map
 
cannot be used here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 81 
Annotation 
Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  the return type 
(java.util.Map)
 
could not be resolved to a domain type

Add @SuppressWarnings("requestfactory") to dismiss. BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 83 
Annotation 
Problem (Java 6 processor)
The type 
java.util.Map
 
cannot be used here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 83 
Annotation 
Problem (Java 6 processor)
The type 
java.util.Map
 
cannot be used here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 149 
Annotation 
Problem (Java 6 processor)
Cannot validate this method because the domain mapping for  a parameter of 
type 
(java.util.Map)
 
could not be resolved to a domain type

Add @SuppressWarnings("requestfactory") to dismiss. BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 149 
Annotation 
Problem (Java 6 processor)
The domain type EntityKey has no default constructor. Calling 
RequestContext.create(EntityKeyProxy.class) will cause a server error.

Add @SuppressWarnings("requestfactory") to dismiss. ComplexKeysTest.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 139 
Annotation 
Problem (Java 6 processor)
The domain type DomainWithEntityKey has no default constructor. Calling 
RequestContext.create(DomainWithEntityKeyProxy.class) will cause a server 
error.

Add @SuppressWarnings("requestfactory") to dismiss. ComplexKeysTest.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 75 
Annotation 
Problem (Java 6 processor)
The type 
java.util.Map
 
cannot be used here BaseFooProxy.java 
/gwt-user/core/test/com/google/web/bindery/requestfactory/shared line 145 
Annotation 
Problem (Java 6 processor)
The domain type DomainWithValueKey has no default constructor. Calling 
RequestContext.create(DomainWithValueKeyProxy.class) will cause a server 
error.

Add @SuppressWarnings("requestfactory") to dismiss. ComplexKeysTest.java 

GWT Canvas resize ImageData and get Canvas.toDataUrl

2013-01-29 Thread Musicman75
Hello,

for 2 days now I'm trying to resize my Canas data to get a smaller value 
when calling Canvas.toDataUrl.

The szenario:

User draws to a Canvas (Sign something). The drawing Canvas is sized to the 
Window size.
Before transgering the data to the server I want to scale the Canvas to fit 
to a smaller size.

I think this is very simple, but at the moment I'm bainfucked :-).

The steps:

- Get Canvas data
- Resize/Scale Canvas data
- Get data by calling Canvas.toDataUrl
- Transfer to server as image/png;base64. String

Thanks a lot for any answer.

Stephan

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




Re: GWT Canvas resize ImageData and get Canvas.toDataUrl

2013-01-29 Thread Musicman75
By the way, I don't want to paint the resized image to the UI.
Only get the resized data to thranfer to the server.



Am Mittwoch, 30. Januar 2013 07:50:44 UTC+1 schrieb Musicman75:
>
> Hello,
>
> for 2 days now I'm trying to resize my Canas data to get a smaller value 
> when calling Canvas.toDataUrl.
>
> The szenario:
>
> User draws to a Canvas (Sign something). The drawing Canvas is sized to 
> the Window size.
> Before transgering the data to the server I want to scale the Canvas to 
> fit to a smaller size.
>
> I think this is very simple, but at the moment I'm bainfucked :-).
>
> The steps:
>
> - Get Canvas data
> - Resize/Scale Canvas data
> - Get data by calling Canvas.toDataUrl
> - Transfer to server as image/png;base64. String
>
> Thanks a lot for any answer.
>
> Stephan
>

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




Change url of dispatcher

2013-02-14 Thread Musicman75
Hello,

In out webapp, we use the dispatcher to get data from the server.
Th build an app with phonegap I nee to change the url the dispatcher 
connects to at runtime.
Is it possible to change the url of the dispatcher at runtime?

Stephan

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




Re: Change url of dispatcher

2013-03-13 Thread Musicman75
Hello,

My imports:
import net.customware.gwt.dispatch.client.DispatchAsync;
import net.customware.gwt.dispatch.client.standard.StandardDispatchAsync;

My dispatcher:
private final static DispatchAsync dispatch   = new StandardDispatchAsync( 
new DefaultExceptionHandler() );

Execute the server call:
dispatch.execute( new MyAction(), new AsyncCallback< MyResult >()
{
  @Override
  public void onFailure( Throwable caught )
  {
ExceptionHelper.forceHandleException( caught );
  }

  @Override
  public void onSuccess( MyResult result )
  {
   // do something
  }
} );

Normally the dispatcher calls the server the page is loaded from.
To wrap the application with Phonegap I need to change that url, because 
the files are loaded from the device and the call must be done to a server.



On Thursday, February 14, 2013 10:47:18 AM UTC+1, Jens wrote:
>
> What is "the dispatcher"? If its a GWT-RPC service you could hard cast it 
> to ServiceDefTarget to change its target URL at runtime:
>
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/rpc/ServiceDefTarget.html
>
>
> -- J.
>

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




Single images of corner.png/circles.png, etc

2012-09-05 Thread Musicman75
Hello,

I need to generate a new theme for gwt. Therefore I need the single
images of the combined corner.png, circles.png, etc.
Is there a possibility to get these images as single images (not
wrapped together)?

Is there an other way to build an own theme and using images instead
of the default images for the border?
I don't want to design these images from scratch, just use the
original images and change the color.

Thanks for help.

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



Re: Single images of corner.png/circles.png, etc

2012-09-05 Thread Musicman75
Hello,

Thank you for the answer.
I know that it's not possible to change the colors with GWT. That's
why I need the
Single images to change the color with Photoshop/Gimp and put them
togehther in an image bundle again.

I downloaded the GWT source from SVN, but the single images are not
included.

Stephan

On 5 Sep., 17:40, Ryan Shillington 
wrote:
> There's no way (that I know of) to change an image's color in GWT.  That
> kind of thing is child's play in Adobe Photoshop / Gimp.
>
> If you want a really nice site design, you're almost certainly going to
> need to create these images yourself.
>
> Also, CSS3 supports doing most of that kind of stuff without needing any
> images anymore.  If you're not planning on supporting IE 8 (which Google
> will drop support for once IE 10 comes out in a month or 2), then that's
> the way to go.
>
> Ryan
>
>
>
>
>
>
>
> On Wednesday, September 5, 2012 7:38:13 AM UTC-5, Musicman75 wrote:
>
> > Hello,
>
> > I need to generate a new theme for gwt. Therefore I need the single
> > images of the combined corner.png, circles.png, etc.
> > Is there a possibility to get these images as single images (not
> > wrapped together)?
>
> > Is there an other way to build an own theme and using images instead
> > of the default images for the border?
> > I don't want to design these images from scratch, just use the
> > original images and change the color.
>
> > Thanks for help.

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