Re: How to update a CellTree after the model changes?
The problem is if the node is open, the open state is preserved (in the code I showed below) and then it displays "no data". There appears to be nothing in the code that will make the open icon go away; isLeaf is never consulted again. I think that's a bug too, right? On Nov 8, 7:25 pm, John LaBanca wrote: > You should be able to call AbstractDataProvider.updateRowData() with just > the one updated row value, which will only cause that row to refresh. > However, there is a bug in CellTree (will be fixed in GWT 2.1.1) which > always causes it to update the 0th item. > > Is there any way of making a node go from having children to having > > > no children again in a CellTree? > > You can set the row count in the child DataProvider to 0. The node won't be > a leaf node, but it won't have any children. If you really want it to be a > leaf node, you have to refresh the node using the same method above. > > Thanks, > John LaBanca > jlaba...@google.com > > On Mon, Nov 8, 2010 at 11:53 AM, Ed Merks wrote: > > I'm having a hard time understanding how I can update things like the > > label of a node in the cell tree when I know its value has changed in > > the model being viewed. Right now I have a rather brute force > > approach: I update the entire set of children for the parent by > > calling AbstractDataProvider.updateRowData. At least it works, but > > it's like a sledge hammer. I have yet to figure out how to update > > just the one child; maybe I just ran into bugs in the older pre- > > release versions and have to try again. Also, I have to do similar > > things if children are added, i.e., if a node y has a child z added, > > and originally y had no children, I have to tell the parent node x of > > y to update all its children so that it updates the expansion icon to > > reflect that y is no longer a leaf. But, now matter how hard I wrack > > my brain, I cannot find a way to make a node go from having children > > back to being a leaf again. The only way I can get this to work is to > > hack the code: > > > // Create a set of currently open nodes. > > Set openNodes = new HashSet(); > > int childCount = nodeView.getChildCount(); > > int end = start + values.size(); > > for (int i = start; i < end && i < childCount; i++) { > > CellTreeNodeView child = nodeView.getChildNode(i); > > // Ignore child nodes that are closed. > > if (child.isOpen() && !child.isLeaf()) { /// > > <-- add the test to not save the open state if it's a leaf. > > openNodes.add(child.getValueKey()); > > } > > } > > > Is there any way of making a node go from having children to having no > > children again in a CellTree? > > > -- > > You received 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. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??
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
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 > >> > > > >> > > >> > > >> > 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: Fixing Internet Explorer specific memory leaks (circular references, etc)
I'd suggest running Microsoft's memory leak tool and working out which elements, exactly, are leaking in your app and why. Once you know that you can purge them by hand -- this is how I started. I only went into this Widget hack because the list of items I needed to deal with was... really long. :) That said - QA has a different use-case that still leaks in our app as well, so... the story is evolving. I'll update the thread if we find out more in case it's helpful for others. Best of luck! Regards, Paul On Nov 8, 4:31 pm, chrisr wrote: > Thanks jay, got that sorted out. I can confirm via breakpoints that > in hosted mode (we're on GWT 1.5) the NoMemLeaks implementation is > getting used, but unfortunately it doesn't fix our memory leak in IE. > > Is there a simple way to verify that its actually getting used by IE? -- You received 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: Issue with XML object passing using Request Builder
hi, response=(HttpServletResponse) xmlobject.*method();* ** Is this the correct way of adding the object to response. Iam getting following error. Apache Tomcat/6.0.29 - Error report HTTP Status 404 - /Draw/com.mycompany.project.ImageViewer/%20SampleServlettype Status reportmessage /Draw/com.mycompany.project.ImageViewer/%20SampleServletdescription The requested resource (/Draw/com.mycompany.project.ImageViewer/%20SampleServlet) is not available.Apache Tomcat/6.0.29 On Tue, Nov 9, 2010 at 10:32 AM, jayalakshmi jahagirdar < jayalakshmi.jahagir...@gmail.com> wrote: > Thanks Fernando for the reply. > > Can u please share a method of sending my object of XML to client (Iam > using request builder). > I want to know how i can add this object of XML to the > response(HttpServletResponse response) > in my servlet so that i can navigate it to client. > > Thanks > jaya > > On Mon, Nov 8, 2010 at 8:36 PM, Fernando wrote: > >> >> http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideXML >> >> On Nov 8, 10:47 am, jayalakshmi jahagirdar >> wrote: >> > hello all, >> > I have the following requierement: >> > >> > A XML file is at the server side.Need to parse it . >> > I have a nested class . Create a object of this nested class ,add >> parametres >> > from XML parsing to this object and pass it back to the client. >> > Iam making use of RequestBuilder. >> > >> > Iam able to parse it and create the object. but not finding a way to >> pass it >> > back to the client. >> > >> > Which is the best way to implement this. Can i make use of RPC ? >> > >> > Thanks & regards >> > Jaya >> >> -- >> You received 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. >> >> > -- You received 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: Issue with XML object passing using Request Builder
Thanks Fernando for the reply. Can u please share a method of sending my object of XML to client (Iam using request builder). I want to know how i can add this object of XML to the response(HttpServletResponse response) in my servlet so that i can navigate it to client. Thanks jaya On Mon, Nov 8, 2010 at 8:36 PM, Fernando wrote: > > http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideXML > > On Nov 8, 10:47 am, jayalakshmi jahagirdar > wrote: > > hello all, > > I have the following requierement: > > > > A XML file is at the server side.Need to parse it . > > I have a nested class . Create a object of this nested class ,add > parametres > > from XML parsing to this object and pass it back to the client. > > Iam making use of RequestBuilder. > > > > Iam able to parse it and create the object. but not finding a way to pass > it > > back to the client. > > > > Which is the best way to implement this. Can i make use of RPC ? > > > > Thanks & regards > > Jaya > > -- > You received 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. > > -- You received 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: server push
Richard, is it possible to run gwt-comet on Google App Engine ? -- You received 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: How to diagnose IE8 javascript error "stack overflow at line: 0"? ends up in Impl.entry0
Hi Brian, I don't have exact figures but what I know is that some structures (Java collections) needs tons of Javascript stack entries to get serialized / deserialized: knowing that , our strategy is to carry single objects or arrays (even of hetegeneous objects) on the wire and reconstruct the more complex structures either on client or server side. regards didier On Nov 8, 8:14 pm, BrianP wrote: > It looks like this is the case - a large/complex object over RPC > causing the problem. I commented out that call to the server, and the > component loaded fine. So the next question is: how do you know your > objects are too large for RPC? Where is the threshhold? > > On Nov 8, 10:40 am, BrianP wrote: > > > Thanks for your reply. That is interesting. For a long time, I thought > > it was due to my use of the Raphael-gwt library. But now I've removed > > that, and still get the error. And I _am_ bringing back some large > > and complex objects via RPC, so I'll look into that. > > > On Nov 6, 3:50 am, Didier DURAND wrote: > > > > Hi, > > > > I don't know enough about your appl but we had similar issues: that > > > was due to complex data structures that we were bringing back to the > > > client from the server over the GWT RPC -> we had to simplify the > > > structures (carrying simple arrays of objects rather than complex > > > graphs over RPC) in order to avoid the stack overflow caused by GWT- > > > RPC serialization/deserialization. > > > > You may have a look in that direction too. > > > Hope it helps. > > > didier > > > > On Nov 5, 8:22 pm, BrianP wrote: > > > > > I have a GWT 2.0.3 app that runs fine in Firefox and Chrome. But when > > > > run in IE8 I get a javascript error that pops up with 'Stack over flow > > > > at line: 0'. When stepping through it in debug mode, I end up in GWT > > > > class Impl in the method entry0(Object jsFunction, Object thisObj, > > > > Object arguments). I was hoping to find more information by looking > > > > at those variables in debug mode, but they didn't really tell me > > > > anything other than its a JavaScriptException, which I already knew. > > > > > Any recommendation on how I might get more information on this error? > > > > It seems similar to the error in this thread: > > > > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > > > One response there mentions adding an UncaughtExceptionHandler there > > > > to the main EntryPoint class. Would that help? > > > > > 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: GWT 2.1 MVP Framework Vs MVP4G
I think Mvp4g or GWT 2.1 MVP framework can implement any requirement you have, it's just the way you will have to do it that will be different. Using GWT 2.1 MVP will probably give you more flexbility as it isn't a real framework (it just provides utility classes) but on the other hand, it is more complex and you will have to write more boiler plate code and rewrite functionalities provided by Mvp4g (like code splitting, lazy loading...). As often, the best is to give a try to both and see which one fits you need the best. I would be interested to hear what framework you decide to pick. Any feedback is always great to improve Mvp4g. Thanks, Pierre On Nov 8, 6:28 am, jbroquefere wrote: > There are already some good pieces here > :http://md-t.org/browse.php?u=Oi8vZ3JvdXBzLmdvb2dsZS5jb20vZ3JvdXAvbXZw... > > On Nov 8, 11:26 am, jbroquefere > wrote: > > > Hi, > > I have spent the past 2 hours around the web to grab as many point of > > view as possible about those 2 mvp frameworks, particularly we are > > thinking about switching from mvp4g to GWT MVP considering gains/ > > losses. > > > Because there are so many conflicting things on many blogs/forums/ > > webpages, I think it could be useful for GWT developers to get a > > dedicated page for discussions (is there already such a page? I don't > > think so) about that topic. > > So please, could you explain pros/cons about those frameworks? -- You received 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: server push
My project gwt-comet implements server push: http://code.google.com/p/gwt-comet >From Richard. On Nov 8, 11:27 am, Ray Tayek wrote: > At 08:33 PM 11/3/2010, you wrote: > > >hi, trying to do this:: > >http://code.google.com/p/google-web-toolkit-incubator/wiki/ServerPush > >... > >i know there may be other options, but i want to roll my own for demo. > > the basic idea seems to work. but my server threads are waiting. > trying to do some load testing. > > does anyone know the state > ofhttp://docs.codehaus.org/display/JETTY/Continuationsandhttp://tomcat.apache.org/tomcat-6.0-doc/aio.html? > > thanks > > --- > co-chairhttp://ocjug.org/ -- You received 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: Nested Views in MVP
Hello David, looking at your example: > SimplePanel westWidget = new SimplePanel(); > westActivityManager.setDisplay(westPanel); is this a typo ? should have been westActivityManager.setDisplay( westWidget ); ? thank you On Oct 29, 6:57 am, David Chandler wrote: > Gene, > > Thank you for your thoughtful questions. As you have observed, > Activities and Places do not directly support nesting, but there are a > couple different ways you can implement compositeviews: > > 1) An ActivityManager is responsible for swapping activities within > one container widget; however, you can have multiple ActivityManagers, > each with its own ActivityMapper and container widget. Suppose your > application's main widget is a DockPanel with a westPanel and > eastPanel. You would then have something like this: > > DockLayoutPanel dockLayoutPanel = new DockLayoutPanel(Unit.PCT); > SimplePanel westWidget = new SimplePanel(); > SimplePanel eastWidget = new SimplePanel(); > > WestActivityMapper westActivityMapper = new WestActivityMapper(); > WestActivityManager westActivityManager = new > WestActivityManager(westActivityMapper, eventBus); > westActivityManager.setDisplay(westPanel); > > EastActivityMapper EastActivityMapper = new EastActivityMapper(); > EastActivityManager eastActivityManager = new > EastActivityManager(eastActivityMapper, eventBus); > EastActivityManager.setDisplay(eastPanel); > > dockLayoutPanel.addWest(westWidget, 50); > dockLayoutPanel.addEast(eastWidget, 50); > RootLayoutPanel.get().add(dockLayoutPanel); > > PlaceMapper and PlaceHistoryHandler would be initialized the same as > in the HelloMVP example. > > In this design, the WestActivity could call > placeController.goTo(detailPlace), where DetailPlace is mapped only in > the EastActivityMapper so the westPanel won't change. Alternatively, > the EastActivityMapper and WestActivityMapper can each map the same > Place to a different Activity, in which case the Activities in both > panels will change. This is one way to implement a composite Place. > > 2) There is not necessarily a 1:1 correspondence between Activities > and presenters. Your Activity might instantiate multiple presenters > and correspondingviews. When the Place changes, the whole composite > Activity will be swapped out, and, as you pointed out, this will > result in setWidget() being called on the ActivityManager's container > widget. However, if activities and presenters obtain theirviewsfrom > a factory as in the HelloMVP example, this should not be noticeable, > asviewsobtained from the factory would not be reconstructed. > > Does that help? We welcome community feedback on what works best. > > /dmc > > > > On Fri, Oct 29, 2010 at 12:52 AM, DrG wrote: > > Hi, > > > I have been reading the excellent article at: > >http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAnd... > > > And love the new built in objects that facilitate the MVP design > > paradigm. My initial thought is great but how does this system cope > > withNestedViewsor Dock Panel style layouts where various elements > > can be clicked and the widget that changes isn't necessarily always > > the center one? > > > Looking at the example code given for HelloMVP it looks like when you > > go to a new Place when the Activity is started by calling the start > > method a widget is passed in that is the containerWidget or host for > > that presenter: > > > �...@override > > public void start(AcceptsOneWidget containerWidget, EventBus > > eventBus) { > > GoodbyeView goodbyeView = clientFactory.getGoodbyeView(); > > goodbyeView.setName(name); > > containerWidget.setWidget(goodbyeView.asWidget()); > > } > > > Looking at the setup code from the onModuleLoad, a root SimplePanel is > > added to the activity manager: > > > activityManager.setDisplay(appWidget); > > > This widget is then passed to the start method each time a new place > > is revealed. Thus causing a screen refresh? each time a new place is > > revealed. > > > How would you handle a scenario that has a Left hand menu (like gmail) > > and a main container. Where clicking options in the LHS initiates a > > new widget to be displayed in the center. Using the current logic it > > looks like the whole screen is refreshed to show the newly selected > > menu option and the center widget. Perhaps it does, and perhaps this > > is ok, but it sounds hacky. > > > For example it would be nice if clicking a center widget not only > > indicated what place to reveal but where that place/widget should be > > revealed? > > > I am sure this scenario is very common and it may have a lot to do > > with my naivety with this new methodology. If anyone has any > > pointers, opinions or examples on this it would be greatly > > appreciated. > > > Cheers > > Gene > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google Web Toolkit" group. > > To post to th
HelloMVP suggestion
looking at HellpMVP sample: @UiHandler("goodbyeLink") void onClickGoodbye(ClickEvent e) { presenter.goTo(new GoodbyePlace(name)); } is it a good idea for the View Implementation to have knowledge about navigation ? using goTo and places ? wouldnt it have been better if Presenter interface in HelloView interface declared a method like: void onGoodbyeLinkClicked(name) and in HelloActivity public void onGoodbyeLinkClicked(String name) { clientFactory.getPlaceController().goTo(new Place(name)); } this way view is more passive, as it doesnt have knowledge about navigation and places. or i am wrong ? -- You received 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: OpenJPA GWT serialization problem.
Hi dparish, There are three issues here: 1. GWT needs a fully populated object graph to send back to the client. Lazy fetching will not work across the client / server boundary, so you must ensure that your code fetches all relations eagerly (via an annotation or a separate call if needed). 2. JDO and JPA implementations use proxy classes for objects attached to a persistence manager. Before they can be sent back to the client, you must detach all objects from the PM. 3. Even then, GWT won't be able to serialize any types for which it doesn't know the source (like App Engine's Key class). The open source Gilead project and others like Objectify provide GWT wrappers for these. HTH, /dmc On Mon, Nov 8, 2010 at 8:17 PM, dparish wrote: > I have an entity with a member like this: > > > @Entity > public class Foo implements Serializable{ > > �...@onetomany(mappedBy="foo",targetEntity=InternalText.class, > fetch=FetchType.EAGER) // I tried Lazy too. > > private ArrayListinternalTextEntries; > > > When I try to use Foo I get this error: > > > Throwable occurred: > com.google.gwt.user.client.rpc.SerializationException: Type > 'org.apache.openjpa.util.java$util$ArrayList$proxy' was not included > in the set of types which can be serialized by this > SerializationPolicy or its Class object could not be loaded. For > security purposes, this type will not be serialized.: instance = > [blah.blah.entities.internalt...@36ae36ae, > blah.bhla.entities.internalt...@3fca3fca, > blah.blah.retain.entities.internalt...@42474247, > blah.blah.entities.internalt...@48724872] > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: > 610) > at > com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: > 129) > at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter > $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: > 534) > at > com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java: > 700) > > > From what I can tell openjpa is creating a helper representation of > ArrayList that it uses to assist in monitoring and lazy loading the > child table. I've tried eager and lazy fetching. > > I tried this: > > ArrayList newText = new ArrayList(); > for (InternalText textItem: foo.getInternalTextEntries()) { > newText.add(textItem); > } > foo.setInternalTextEntries(newText); > > > It got past my error, but then the next layer down had trouble (Date > in the InternalText class) > > Type 'org.apache.openjpa.util.java$util$Date$proxy' was not included > in the set of types which can be serialized by this > SerializationPolicy > > > > -- > You received 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. > > -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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.
"Autobean frozen" problem when reusing editors
Hello, I came across another problem. I have a page setup with various Editors, including a subclass ListEditor (for dealing with a CellTable). They accumulate changes into a RequestContext and it works fine now. I have a "Save Changes" button that fires the request, and now I would like to enable editing again, after the request has been successfully processed. I think I need to create a new RequestContext for that? Here is what I do in the onSuccess-Callback: context = requests.recipeRequest(); this.recipe = context.edit(recipe); context.persist().using(this.recipe).with(driver.getPaths()); driver.edit(this.recipe, context); The last one fails however, because setting a new List causes the ListEditor to detach from the old list, which causes a "flush", which in turn causes a value being written to one of the frozen AutoBeans from the original request. Is that a bug, or am I doing something wrong? Thanks, Tobias java.lang.IllegalStateException: The AutoBean has been frozen at com.google.gwt.editor.client.impl.AbstractAutoBean.checkFrozen(AbstractAutoBean.java: 176) at com.google.code.lunchpad.client.proxy.IngredientProxyAutoBean.access $6(IngredientProxyAutoBean.java:1) at com.google.code.lunchpad.client.proxy.IngredientProxyAutoBean $1.setText(IngredientProxyAutoBean.java:19) at com.google.code.lunchpad.client.recipes.IngredientEditor_RequestFactoryEditorDelegate.flushSubEditors(IngredientEditor_RequestFactoryEditorDelegate.java: 18) at com.google.gwt.editor.client.impl.AbstractEditorDelegate.flush(AbstractEditorDelegate.java: 144) at com.google.gwt.editor.client.impl.AbstractEditorDelegate $Chain.detach(AbstractEditorDelegate.java:75) at com.google.gwt.editor.client.adapters.ListEditorWrapper.detach(ListEditorWrapper.java: 101) at com.google.gwt.editor.client.adapters.ListEditor.setValue(ListEditor.java: 129) at com.google.code.lunchpad.client.recipes.IngredientListEditor.setValue(IngredientListEditor.java: 50) at com.google.gwt.editor.client.adapters.ListEditor.setValue(ListEditor.java: 1) at com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java: 257) at com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java: 83) at com.google.code.lunchpad.client.recipes.edit.EditRecipeView_RequestFactoryEditorDelegate.attachSubEditors(EditRecipeView_RequestFactoryEditorDelegate.java: 15) at com.google.gwt.editor.client.impl.AbstractEditorDelegate.initialize(AbstractEditorDelegate.java: 261) at com.google.gwt.requestfactory.client.impl.RequestFactoryEditorDelegate.initialize(RequestFactoryEditorDelegate.java: 83) at com.google.gwt.requestfactory.client.impl.AbstractRequestFactoryEditorDriver.edit(AbstractRequestFactoryEditorDriver.java: 67) at com.google.code.lunchpad.client.recipes.edit.EditRecipeActivity.edit(EditRecipeActivity.java: 79) at com.google.code.lunchpad.client.recipes.edit.EditRecipeActivity.access $0(EditRecipeActivity.java:75) at com.google.code.lunchpad.client.recipes.edit.EditRecipeActivity $2.onSuccess(EditRecipeActivity.java:110) at com.google.code.lunchpad.client.recipes.edit.EditRecipeActivity $2.onSuccess(EditRecipeActivity.java:1) at com.google.gwt.requestfactory.client.impl.AbstractRequestContext $4.onTransportSuccess(AbstractRequestContext.java:394) at com.google.gwt.requestfactory.client.DefaultRequestTransport $1.onResponseReceived(DefaultRequestTransport.java:155) at com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java: 287) at com.google.gwt.http.client.RequestBuilder $1.onReadyStateChange(RequestBuilder.java:395) 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.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java: 157) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java: 326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java: 207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java: 126) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java: 561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java: 269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java: 91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.
Re: GWT 2.1 RequestFactory and complex properties on my DTO (Entity proxies)
It's still too early to call a release date. The RequestFactory enhancements are in code review and should be going into trunk shortly. See http://gwt-code-reviews.appspot.com/1062801/show /dmc On Mon, Nov 8, 2010 at 7:50 PM, Tobias wrote: > Hi, > > When is the 2.1.1 release planned for? Is there some of this already > in the trunk? > > Regards, > Tobias > > On Nov 9, 1:26 am, David Chandler wrote: >> Koen, >> >> RequestFactory doesn't yet support the transfer of value types, only >> entity types. It's on tap for 2.1.1: >> >> http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1 >> >> /dmc >> >> >> >> >> >> >> >> >> >> On Mon, Nov 8, 2010 at 6:31 PM, koma wrote: >> > Hi, >> >> > My entities are persisted via JDO in the Datastore (GAE). I can >> > transfer DTOs to the client by creating EntityProxy objects that match >> > the entity's properties (getters/setters). >> > But how do I transfer the more complex values like >> > com.google.appengine.api.datastore.Email with my DTO object to the >> > client ? >> > these classes com.google.appengine.api.datastore.* are not on the >> > classpath for the client and result in ClassNotFoundExceptions; >> >> > thx, >> >> > koen >> >> > -- >> > You received 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 >> > athttp://groups.google.com/group/google-web-toolkit?hl=en. >> >> -- >> David Chandler >> Developer Programs Engineer, Google Web >> Toolkithttp://googlewebtoolkit.blogspot.com/ > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-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. > > -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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.
OpenJPA GWT serialization problem.
I have an entity with a member like this: @Entity public class Foo implements Serializable{ @OneToMany(mappedBy="foo",targetEntity=InternalText.class, fetch=FetchType.EAGER) // I tried Lazy too. private ArrayListinternalTextEntries; When I try to use Foo I get this error: Throwable occurred: com.google.gwt.user.client.rpc.SerializationException: Type 'org.apache.openjpa.util.java$util$ArrayList$proxy' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = [blah.blah.entities.internalt...@36ae36ae, blah.bhla.entities.internalt...@3fca3fca, blah.blah.retain.entities.internalt...@42474247, blah.blah.entities.internalt...@48724872] at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 610) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 129) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter $ValueWriter$8.write(ServerSerializationStreamWriter.java:152) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeValue(ServerSerializationStreamWriter.java: 534) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeClass(ServerSerializationStreamWriter.java: 700) >From what I can tell openjpa is creating a helper representation of ArrayList that it uses to assist in monitoring and lazy loading the child table. I've tried eager and lazy fetching. I tried this: ArrayList newText = new ArrayList(); for (InternalText textItem: foo.getInternalTextEntries()) { newText.add(textItem); } foo.setInternalTextEntries(newText); It got past my error, but then the next layer down had trouble (Date in the InternalText class) Type 'org.apache.openjpa.util.java$util$Date$proxy' was not included in the set of types which can be serialized by this SerializationPolicy -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT debugging under Linux is much slower than under Windows - what's wrong with my configuration?
Hi Chris, you were spot on - it was Chrome plugin to blame. After installing Firefox plugin (the thread you referred me to was helpful), I see the same GWT debugging speed in Linux as I saw in Windows. Thanks a lot! MG > > On Nov 7, 9:27 pm, Chris Conroy wrote: > > > Your slowness is not a Linux vs. Windows issue: it is a Chrome plugin > > vs. Firefox plugin issue. > > > The Chrome NPAPI based plugin is known to be a lot slower than the > > Firefox XPCOM plugin. This is partly due to the out of process nature > > of plugins in chrome: each JS<->Java boundary crossing incurs extra > > IPC latency. Also, there are some object identity issues in the Chrome > > plugin model that require us to do some performance harming > > workarounds for the sake of correctness. We hope the object identity > > issues will be worked out, and we should get a speedup from that. > > There isn't a lot to be done for the out of process problem, and > > Firefox will probably head in that direction in future versions (just > > a guess). > > > The Firefox plugin should install just fine on 64 bit ubuntu--I use it > > myself all the time. Some other distros have some shared library > > conflicts. FWIW, there are some troubleshooting tips in this > > thread:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt-dnd
Hi Everybody I need some drag and drop's in my application. Searching GWT group I found gwt-dnd. I tried some examples and works fine. But I need to be able to drag and drop a widget that will contain some textboxes, buttons, hyperlinks, etc... I am a little confuse. Is possible to make this with gwt-dnd? The way I did following some examples when I click in a textbox, or a button, etc...inside the dragable widget, the textbox does note get the focus. Any advice? Thank you -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 RequestFactory and complex properties on my DTO (Entity proxies)
Hi, When is the 2.1.1 release planned for? Is there some of this already in the trunk? Regards, Tobias On Nov 9, 1:26 am, David Chandler wrote: > Koen, > > RequestFactory doesn't yet support the transfer of value types, only > entity types. It's on tap for 2.1.1: > > http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1 > > /dmc > > > > > > > > > > On Mon, Nov 8, 2010 at 6:31 PM, koma wrote: > > Hi, > > > My entities are persisted via JDO in the Datastore (GAE). I can > > transfer DTOs to the client by creating EntityProxy objects that match > > the entity's properties (getters/setters). > > But how do I transfer the more complex values like > > com.google.appengine.api.datastore.Email with my DTO object to the > > client ? > > these classes com.google.appengine.api.datastore.* are not on the > > classpath for the client and result in ClassNotFoundExceptions; > > > thx, > > > koen > > > -- > > You received 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 > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > David Chandler > Developer Programs Engineer, Google Web > Toolkithttp://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Fixing Internet Explorer specific memory leaks (circular references, etc)
Thanks jay, got that sorted out. I can confirm via breakpoints that in hosted mode (we're on GWT 1.5) the NoMemLeaks implementation is getting used, but unfortunately it doesn't fix our memory leak in IE. Is there a simple way to verify that its actually getting used by IE? -- You received 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: design pattern for common functionality between Activities
I can give you what I did in my application. Maybe that you will prefer this method : * When the application loads, the server store a login/logout status of the user in a json format (just for optimization like this : http://code.google.com/intl/fr/webtoolkit/articles/dynamic_host_page.html. You can make an init query to the server to get the status instead of the previous method, but it is a bit slower) * My login/logout link is inside its own activity and it has its own activity manager too. * I send a new LoginStatusEvent(boolean login) when my status is updated and it is handled by my Login/Logout activity. * When user successfully login or logout, I send a new LoginStatusEvent. * On server side, I use a security framework that check permission on rpc call. If user is not logged in (session has expired) but want to access to a "secured method" -> I throw a special remote exception. This exceptions is handled by a custom AsyncCallback that will redirects the user to a login page + sends a new LoginStatusEvent(false) Tell me if this is not clear. Nicolas. 2010/11/9 koma > Hi GWT gurus, > > Learning the new GWT 2.1 framework and I got security up&running on my > GAE application. > Now working with the new Activities/Places. > > My applicaiton will have a login/logout link in the top right of the > website/app. > > How do I keep this link in sync with the security status of the > current visitor/user. > Will every activity have to check for the status of the of current > user ? > > Do I create a super class AbstractMyApplicationActivity that > implements this functionality and then call this in start() for each > child activity ? > > like this > public AbstractMyApplicationActivity extends AbstractActivity { >public void updateLoginLogoutLink() { > // set the login/logout link correctly >} > } > > public SomeActivity extends AbstractMyApplicationActivity { >public void start(AcceptsOneWidget containerWidget, EventBus > eventBus) { > updateLoginLogoutLink() > ... some other activity specific stuff. >} > } > > Is there a more elegant pattern for implementing this? Now the > responsibility of making this calling is present in every activity > feels uncomfortable; > > thx, > > koen > > -- > You received 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. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1 RequestFactory and complex properties on my DTO (Entity proxies)
Koen, RequestFactory doesn't yet support the transfer of value types, only entity types. It's on tap for 2.1.1: http://code.google.com/p/google-web-toolkit/wiki/RequestFactory_2_1_1 /dmc On Mon, Nov 8, 2010 at 6:31 PM, koma wrote: > Hi, > > My entities are persisted via JDO in the Datastore (GAE). I can > transfer DTOs to the client by creating EntityProxy objects that match > the entity's properties (getters/setters). > But how do I transfer the more complex values like > com.google.appengine.api.datastore.Email with my DTO object to the > client ? > these classes com.google.appengine.api.datastore.* are not on the > classpath for the client and result in ClassNotFoundExceptions; > > thx, > > koen > > -- > You received 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. > > -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: Accessing GWT app deployed on Jetty fails
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 >> > >> >> > >> > >> > 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 >
Re: CompositeCell
It's the latter, though for what we're wanting to do I don't think AbstractEditableCell is what we want. What we want to do is bring a name per line in one cell that's clickable similar to ClickableTextCell for every object of a sub-list from the model object. For instance if we had the following two classes: public class Foo { private List bars; private String something; public List getBars() { return bars; } public String getSomething() { return something; } } public class Bar { private String name; public String getName() { return name; } } Then we define a cellTable / Column as so: ... CellTable table = new CellTable(); Column somethingColumn = new Column(new TextCell()) { public String getValue(Foo object) { return object.getSomething(); } }; table.addColumn(somethingColumn); // Here's the ideal part + some pseudo code Column barNames = new Column(new CompositeCell(HasCell()) { public String getValue(Foo object) { for (Bar b: object.getBars()) { return b.getName(); } } }; table.addColumn(barNames); And finally the output would be something like: | Something Header | Bar Header | - | Cool Stuff | Bar 1 | | | Bar 2 | | | Bar 3 | - | More stuff | Bar 7 | ... On Nov 8, 1:33 pm, John LaBanca wrote: > Is it dynamic based on the row value, or dynamic in that it can change? If > its the former, you can extend CompositeCell and override the render() > method to hide spans that aren't needed. If its the latter, you will > probably want to extend AbstractEditableCell and copy the examples in > TextInputCell or CheckboxCell. > > Thanks, > John LaBanca > jlaba...@google.com > > On Mon, Nov 8, 2010 at 7:38 AM, Adam wrote: > > We're in the process of converting to CellTable and we have a column > > that has a vertically displayed list of items. This sounds perfect > > for using a CompositeCell with a List of ClickableTextCells, except > > for the fact that our list needs to be dynamic. I suppose I could use > > AbstractColumn and define our own implementation, but I am hoping that > > we have just miss understood CompositeCell. > > > Any thoughts would be greatly appreciated, > > - Adam > > > -- > > You received 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. -- You received 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.
Controlling the focus in a CellTable
Is there a way to move the focus to a specific row and column in a CellTable? I want the user to be able to hit enter to move to the next row, for example. -- You received 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.
design pattern for common functionality between Activities
Hi GWT gurus, Learning the new GWT 2.1 framework and I got security up&running on my GAE application. Now working with the new Activities/Places. My applicaiton will have a login/logout link in the top right of the website/app. How do I keep this link in sync with the security status of the current visitor/user. Will every activity have to check for the status of the of current user ? Do I create a super class AbstractMyApplicationActivity that implements this functionality and then call this in start() for each child activity ? like this public AbstractMyApplicationActivity extends AbstractActivity { public void updateLoginLogoutLink() { // set the login/logout link correctly } } public SomeActivity extends AbstractMyApplicationActivity { public void start(AcceptsOneWidget containerWidget, EventBus eventBus) { updateLoginLogoutLink() ... some other activity specific stuff. } } Is there a more elegant pattern for implementing this? Now the responsibility of making this calling is present in every activity feels uncomfortable; thx, koen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.1 RequestFactory and complex properties on my DTO (Entity proxies)
Hi, My entities are persisted via JDO in the Datastore (GAE). I can transfer DTOs to the client by creating EntityProxy objects that match the entity's properties (getters/setters). But how do I transfer the more complex values like com.google.appengine.api.datastore.Email with my DTO object to the client ? these classes com.google.appengine.api.datastore.* are not on the classpath for the client and result in ClassNotFoundExceptions; thx, koen -- You received 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: EditTextCell and RPC worked in 2.1m1 but not in 2.1
thanks Thomas! FieldUpdater did the trick. On Nov 8, 2:27 am, Thomas Broyer wrote: > On 8 nov, 07:14, "Henry H." wrote: > > > hi, > > when i was using 2.1.m1 i was able to extend an EditTextCell to make > > an rpc call to update the database after the cell is updated. i just > > inserted the rpc call right before commit() method in the cell. > > when i made the switch to 2.1, this no longer works. the cell just > > remains in edit mode and the onFailure() of the rpc doesn't show. the > > viewdata is updated though. > > i haven't messed with the new mvp framework yet , but is there another > > way to make rpc calls after a cell has been edited? > > I'm not sure but I think you should (as in "it's intended that you") > use a FieldUpdater (in CellTable) or ValueUpdated (in CellList) to > handle the "commit" of the value and do your RPC. -- You received 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: Accessing GWT app deployed on Jetty fails
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 > > **/*.gwt.xml > > > > > > > > src/main/resources > > > > > > > > > > org.apache.maven.plugins > > maven-war-plugin > > 2.1 > > > > > > war > > war/WEB-INF/web.xml > > > > > > > > org.apache.maven.plugins > >
Re: Gwt 2.1 Activities + Code splitting + Gin
@Nicolas, Re: the need for a proxy interface > I believe it is a limitation of GWT generators that they have to be > attached to classes/interfaces. If anybody has a better idea I'm a > buyer. But isn't it better than manually writing/editing > ActivityManagers? > Is it not possible to set an annotation above the presenter ? if presenters implements an interface (Presenter) it should be possible to handle it with a generator and write extra code, no ? (Well I suppose, I never tried to write a real generator). However, this generator might be more difficult to write since it has to mix generated code with user code. It might look a but curious, for the hand written part. But to me, it looks ugly to have empty inner interfaces in my code. Hand coded place are a bit longer to write (10 seconds), but at least, it is a classic style :) However, I am using uiBinder and the empty UiBinder<> interface is ugly too... And I can't do anything against it :) (But I am still looking for a way of remove it. Maybe that gin will help me). I think that my vision about code style is very personal and that lots of people prefer to use the annotated inner interface, so do not worry about my comments Phillipe :) Cheers, Nicolas > > Cheers, > > Philippe > > On Nov 8, 1:35 am, Nicolas Antoniazzi > wrote: > > Hi Phillipe, > > > > Also, I think it's a bit unfair to call GWTP's code generation "magic" > > > > when GWT relies on it for so many different things... But if you > > > > > really want to write proxys yourself, GWTP's allows it. > > > > Yes, I agree that I was a bit unfair with GWTP. In my opinion, it would > be a > > geater tool (for me) if the code in front of generators were more concise > > (just annotation, no empty interfaces to add), and maybe more "optional". > > bindPresenter() needs view, proxyplace, presenter. But if I prefer to not > > use ProxyPlace as you suggest, I can't. > > > > > Out of curiosity, which version of GWTP did you try? > > > > 0.4. But I might not have been in the depth of the framework (Just coded > 4 > > main pages of my app) until I get blocked by the Top Div/RootPresenter > > problem that I explained before. > > > > Cheers, > > > > Nicolas. > > -- > You received 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. > > -- You received 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: Fixing Internet Explorer specific memory leaks (circular references, etc)
Nope... In your project's .gwt.xml file add this: jay On Nov 8, 12:46 pm, chrisr wrote: > Hi Paul, I'm really interested to see if this works for a project I've > been working on, which has a significant memory leak in IE. > > I haven't worked with deferred bindings in GWT before, and I don't > think I'm doing it right, as breakpoints i put in my NoLeaksDOMImpl > class never get hit. > > I'm assuming that you aren't supposed to open up the gwt-user jar and > edit the Emulation.gwt.xml file inside, so I added > > com.google.gwt.emul.Emulation.gwt.xml to my source w/ > > > class="com.google.gwt.user.client.impl.NoMemLeaksDOMImplIE6"> > class="com.google.gwt.user.client.impl.DOMImplIE6"/> > > > > And I also added > com.google.gwt.user.client.impl.NoMemLeaksDOMImpljava to my > source.. > > Am I doing something incorrectly w/ the deferred binding configuration? -- You received 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: How to call AsyncCallback to diferent module
Im do it. : userServiceImpl com.server.UserServiceImpl userServiceImpl /home/user /game/user home.gwt.xml : game.gwt.xml : now everything works. thanhs -- You received 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: Entire Site in GWT?
In my opinion, a full website can be built with GWT (uiBinder is a great helper for this). This is the way that we chose in our company. it is really fantastic to code with gwt and it allows to use so many optimizations for the client side (client bundle, conditional css, ...). Every pages of the website is behind a code split so it does not overload the inital loading of the gwt client side. For Search engine, we implemented this mechanism : http://code.google.com/intl/fr/web/ajaxcrawling/docs/getting-started.html with htmlunit in the backend.,But it is only compatible with google. We are looking for a better solution to handle this problem for all search engine. Nicolas. 2010/11/8 Jambi > Hej Mike, > > GWT Rocks :D! A lot has changed since 2008. And i mean, A LOT. I know > that there is a way now to allow web crawlers to scan your app but I > don´t know how, since i´ve never used it so far. By default all of the > JS script is loaded at start, but you can use "code split" to split > your JS code where you want. I recommend that you check out the GWT > talks from Google I/O 2010 and 2009. Most of the talks aren´t that > newbie friendly, but you get an idea of the capabilities GWT has. > > On Nov 8, 5:49 pm, "mike.cann" wrote: > > Hi Guys, > > > > First post on this list. I have searched for this question before > > posting. The only answer I could come up with was from a post in 2008 > > (http://groups.google.com/group/google-web-toolkit/browse_thread/ > > thread/c852ff3491f4d128/4b1d9c08a91e25ab?lnk=gst&q=suitable+for+entire > > +site#4b1d9c08a91e25ab) so I thought I would ask it again in case > > anything has changed. > > > > As a Flash / Flex developer new to web-dev im loving the extra > > structure and type safety offered by GWT so im really keen to use it > > exclusively for a new project. > > > > So my questions are: > > > > Is GWT suitable for writing an entire website? Specifically im looking > > to write a site that may sit within a Facebook iframe. > > > > Has the "GWT isnt web-crawlable" issue been solved now? > > > > Is the script for every page on your site downloaded at the start or > > is it downloaded as you click a link (as in a traditional site)? > > > > Are there any other barriers to making an entire site in GWT? > > > > Cheers, > > Mike > > -- > You received 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. > > -- You received 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: best way to use chart in GWT
I'm using a combination of http://raphaeljs.com and http://g.raphaeljs.com. It's a SVG based framework, so you'll need a modern browser. There is a GWT port available (http://code.google.com/p/raphaelgwt/), but I don't know whether it's up to date. So I decided to use JSNI. Actually it's not that hard and I'm confident with the results. - Harald On 8 Nov., 17:30, Genesis Simpleman wrote: > Hi > I'm having problem to decide what is the base way to implement chart > in gwt. > i taught about gwt library (i.e. gchart of gflot) - but they are > insufficient by look, interaction and components. > Also looked at gwt visualization but it requires open link to the web, > (i need it in intranet). > And also look at some javascript library - but then i need to write > wrappers and take care of the cross browser issue. > P.s. i cannot use flash component as well. > > currently it seems that wrapping the javascript library is the best > solution, but i'll be happy to hear other suggestions, or experiences > before diving in. > > Thanx > onentwoo -- You received 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: [Basic] GWT and Google Maps API
Have you seen the Google API libraries for GWT http://code.google.com/p/gwt-google-apis On Mon, Nov 8, 2010 at 2:27 PM, StrongSteve wrote: > Hello Group, > > I am currently doing some basic research for an upcoming project of > mine. > > Basically I want to simulate a large number of driving cars on Google > Maps. > The way I imagine it right now is that I want to define a startpoint > and an endpoint. Either by GPS Coordinates (xx° yy' zz'') or by an > address (f.e. City, Street, Number) for every car. > Then I would like Google Maps to calculate the route between the start > and endpoint. (Preferably the shortes route) > Last but not least a graphic symbol - at least a colored dot - should > simulate the driving of a vehicle from the start point to the end > point. This should occur in realtime and in addition simulated at lets > say 500% of the normal speed. Some kind of a simulation mode. > Of course the dot - the car - should move along the streets and not > directly from start to end. > > Is this possible using GWT and the Google Maps API? > Can anyone point out best practices, maybe even existing samples? > > Thanks in Advance for both your time and your help! > > Greetings > Stefan > > -- > You received 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. > > -- Eric Z. Ayers Google Web Toolkit, Atlanta, GA USA -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Modules
I found my problem, my RemoteCommandProxy class which is used as a wrapper around a HashMap also defined some instance variables and it appears that GWT had a problem serializing the class. I also moved my framework code outside of the main app package and created a Module xml file for it, that is included as an Inherit in the main application module. It all works fine except for this one annoying thing when I go to compile, the module xml file shows up as an EntryPoint that I need to delete so it will successfully compile. Is there any Ignore me for an EntryPoint attribute that needs to be set ??? -John Gentilin On 11/7/10 4:22 PM, John Gentilin wrote: I am trying to create a framework for a GWT app I am writing. This framework will want to implement and handle all the Service, ServiceAsync and ServiceImpl classes. The main application classes will extend the framework view class, and the application serverImpl class will extend the frameworkImpl class. I have implemented the framework as a child of my main App so it goes.. app client server shared framework client server shared and I have added framework/client and framework/shared to my source definition.. The App compiles and sort of runs, but I am having two problems.. 1) the App compiles fine, but in my main app client classes, the classes I refer to from my framework package are reported as unreachable in the editor. Source path problems... 2) when I run the app, my click event successfully invokes my client side handler, but I never get a response, actually I don't think it sends a request as my server impl. The serverImpl servlet is never loaded or goes thru init() My questions are: Given the code below does anything look out of line ? Is this the way to implement a module ? How do you debug into the RPC call to see what GWT is calling ? Thank you John Gentilin the client side handler is public void performAction( RemoteCommandProxy cmd ) { final RemoteCommandProxy _cmd = cmd; YAVCFService.performAction(_cmd.getName(), _cmd, new AsyncCallback>() { public void onFailure(Throwable caught) { _cmd.executionCompleteFailure(caught); } public void onSuccess(Map result) { _cmd.executionCompleteSuccess(result); } }); } where RemoteCommandProxy extends HashMap and represents the parameters passed to the server impl. The idea is I am invoking one servlet interface that takes as parameters a command name and a map of named value pairs as parameters. This function returns a Map of named value pairs in response. My interfaces are defined as follows @RemoteServiceRelativePath("yavcf") public interface YAVCFClient extends RemoteService { Map performAction(String name, Map parameters) throws IllegalArgumentException, InvalidCommandException, NoSessionException;; } public interface YAVCFClientAsync { void performAction(String name, Map parameters, AsyncCallback> callback); } and my web.xml has the following servlet mapping. yavcfServlet com.ecs.toodlejirado.server.ToodleJiraDoServer yavcfServlet /toodlejirado/yavcf -- You received 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: Fixing Internet Explorer specific memory leaks (circular references, etc)
Hi Paul, I'm really interested to see if this works for a project I've been working on, which has a significant memory leak in IE. I haven't worked with deferred bindings in GWT before, and I don't think I'm doing it right, as breakpoints i put in my NoLeaksDOMImpl class never get hit. I'm assuming that you aren't supposed to open up the gwt-user jar and edit the Emulation.gwt.xml file inside, so I added com.google.gwt.emul.Emulation.gwt.xml to my source w/ And I also added com.google.gwt.user.client.impl.NoMemLeaksDOMImpljava to my source.. Am I doing something incorrectly w/ the deferred binding configuration? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt 2.1 Activities + Code splitting + Gin
Thanks Thomas. So the way I understand it, the ActivityManager/ActivityMapper are GWT 2.1 equivalent's of GWTP's proxy for the purpose of navigation. It's just that in GWTP you don't need to create or modify a separate class, all is done within your presenter. In my apps, I often have some presenters that need to be awoken when a given message transit on the bus. Say, for example, a ChatBoxPresenter would like to wake up when a NewChatMessageEvent transits on the bus. In GWTP it's simply a matter of annotating a method with @ProxyEvent in the presenter -- ChatBoxPresenter is still lazily instantiated and code split. How would you handle such a case in GWT 2.1 short of instantiating the ChatBoxPresenter at app start? In the GWTP samples we use singleton presenters, which makes it easy to retain state during the app lifetime, a frequent use case. Also, it cuts down on the cost of instantiating and garbage collecting the presenters all the time. Finally, singleton presenters ensure that you don't mistakenly attach two instances of the presenter to the same singleton view. However, nothing prevents you from using non-singleton presenters. GWTP presenters have the equivalent of a resettable event bus, and every handlers are unregistered upon an unbind(). In fact, GWTP offers reusable components separating logic from (non-singleton) views -- which we call PresenterWidget. These are quickly becoming one of the most popular feature of the framework and I don't find their equivalent in GWT. @Nicolas, Re: the need for a proxy interface I believe it is a limitation of GWT generators that they have to be attached to classes/interfaces. If anybody has a better idea I'm a buyer. But isn't it better than manually writing/editing ActivityManagers? Cheers, Philippe On Nov 8, 1:35 am, Nicolas Antoniazzi wrote: > Hi Phillipe, > > Also, I think it's a bit unfair to call GWTP's code generation "magic" > > when GWT relies on it for so many different things... But if you > > > really want to write proxys yourself, GWTP's allows it. > > Yes, I agree that I was a bit unfair with GWTP. In my opinion, it would be a > geater tool (for me) if the code in front of generators were more concise > (just annotation, no empty interfaces to add), and maybe more "optional". > bindPresenter() needs view, proxyplace, presenter. But if I prefer to not > use ProxyPlace as you suggest, I can't. > > > Out of curiosity, which version of GWTP did you try? > > 0.4. But I might not have been in the depth of the framework (Just coded 4 > main pages of my app) until I get blocked by the Top Div/RootPresenter > problem that I explained before. > > Cheers, > > Nicolas. -- You received 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.
How to load a Gwt module from HTMLPanel content?
Is it possible? I can't get it to work, no errors in the developers console, but firefox says the module name is not defined. -- You received 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: Entire Site in GWT?
Hej Mike, GWT Rocks :D! A lot has changed since 2008. And i mean, A LOT. I know that there is a way now to allow web crawlers to scan your app but I don´t know how, since i´ve never used it so far. By default all of the JS script is loaded at start, but you can use "code split" to split your JS code where you want. I recommend that you check out the GWT talks from Google I/O 2010 and 2009. Most of the talks aren´t that newbie friendly, but you get an idea of the capabilities GWT has. On Nov 8, 5:49 pm, "mike.cann" wrote: > Hi Guys, > > First post on this list. I have searched for this question before > posting. The only answer I could come up with was from a post in 2008 > (http://groups.google.com/group/google-web-toolkit/browse_thread/ > thread/c852ff3491f4d128/4b1d9c08a91e25ab?lnk=gst&q=suitable+for+entire > +site#4b1d9c08a91e25ab) so I thought I would ask it again in case > anything has changed. > > As a Flash / Flex developer new to web-dev im loving the extra > structure and type safety offered by GWT so im really keen to use it > exclusively for a new project. > > So my questions are: > > Is GWT suitable for writing an entire website? Specifically im looking > to write a site that may sit within a Facebook iframe. > > Has the "GWT isnt web-crawlable" issue been solved now? > > Is the script for every page on your site downloaded at the start or > is it downloaded as you click a link (as in a traditional site)? > > Are there any other barriers to making an entire site in GWT? > > Cheers, > Mike -- You received 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.
How to call AsyncCallback to diferent module
Hi. I have project two modules : com.game com.home I have in com.home.Home.java callings like this package com.home; import com.game.user.UserService; import com.game.user.UserServiceAsync; . UserServiceAsync userService = GWT.create(UserService.class); userService.register(nickInput.getValue(), passInput.getValue(), new AsyncCallback() . when I run it, console write this : [WARN] No file found for: /home/user in web xml is: userService com.server.UserServiceImpl userService /game/user when I using this same in com.game.Game.java , then it`s working. but in com.home.Home is not work. -- You received 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.
Creating Editor interfaces needs a little more documentation.
I made the mistake of doing this: interface PersonEditor extends Editor{ Editor firstName(); } I eventually figured out I needed to use LeafValueEditor. interface PersonEditor extends Editor{ LeafValueEditor firstName(); } My implementation did return a LeafValueEditor. It just wasn't readily apparent that my interface method needed to declare the more specific return type. -- You received 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.
Entire Site in GWT?
Hi Guys, First post on this list. I have searched for this question before posting. The only answer I could come up with was from a post in 2008 (http://groups.google.com/group/google-web-toolkit/browse_thread/ thread/c852ff3491f4d128/4b1d9c08a91e25ab?lnk=gst&q=suitable+for+entire +site#4b1d9c08a91e25ab) so I thought I would ask it again in case anything has changed. As a Flash / Flex developer new to web-dev im loving the extra structure and type safety offered by GWT so im really keen to use it exclusively for a new project. So my questions are: Is GWT suitable for writing an entire website? Specifically im looking to write a site that may sit within a Facebook iframe. Has the "GWT isnt web-crawlable" issue been solved now? Is the script for every page on your site downloaded at the start or is it downloaded as you click a link (as in a traditional site)? Are there any other barriers to making an entire site in GWT? Cheers, Mike -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt 2.1, maven, eclipse 3.5
Hi Frank, Have a look at http://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/samples/expenses/README-MAVEN.txt In a nutshell, make sure you have all the required plugins from the README, copy the Expenses POM to your project, and eliminate unneeded dependencies. If not using App Engine, you should be able to use gwt-maven-plugin version 2.1.0 from Maven Central instead of the 1.3.2.google version in the POM. And you can remove all the Spring deps if you're not using Spring. Does that help? /dmc On Sun, Nov 7, 2010 at 4:50 PM, Frank Bølviken wrote: > Hi, > > Im so tired of searching around the internet and finding no good > answers to this subject. > Do anyone know of any good guide for creating a gwt 2.1 project in > maven, and fully integrating it with eclipse? > Gwt 2.1 is suppoed to be easier to integrate with maven, but I can't > get it to work properly. > > Any pointers? > Thanks in advance, > > Frank B > > -- > You received 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. > > -- David Chandler Developer Programs Engineer, Google Web Toolkit http://googlewebtoolkit.blogspot.com/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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: widget celltable how clear before re-populate
Using one of the concrete classes AsyncDataProvider or ListDataProvider whose base class is AbstractDataProvider provides a very efficient mechanism for accessing your widget's underlying data source as well as for manipulating the display of the data itself. Once a ListDataProvider is setup you can do similar to below: dataProvider.getList().add(someObjectsList); // add a new SomeObject to the list sortSomeObjectsList(dataProvider.getList()); // call a method to sort the list dataProvider.refresh(); // tell all widgets using the data provider to refresh themselves because the data has changed You can also add & replace lists in a ListDataProvider with: dataProvider.setList(someObjectsList); To set up a ListDataProvider: ListDataProvider dataProvider = new ListDataProvider(); // strongly typed declaration - notice the use of type T in the declaration which is the type specifier for the type of objects in the list dataProvider.setList(someObjectsList); // the list of objects to be provided by the ListDataProvider dataProvider.addDataDisplay(myCellWidget); // the widget the ListDataProvider is providing the data to Jeff On Mon, Nov 8, 2010 at 1:22 PM, John LaBanca wrote: > You can push new data into the widget using CellTable#setRowData() in > conjunction with CellTable#setRowCount(). If you want to clear the data > first, do the following: > myCellTable.setRowCount(0); // Clears all data > myCellTable.setRowCount(20, true); // Set the size of the new data > myCellTable.setRowData(0, myData); // Set the new data > > In GWT 2.1.1, there is a new method CellTable#setRowData(List) that clears > all existing data and replaces it with the specified list. > > Thanks, > John LaBanca > jlaba...@google.com > > > > On Mon, Nov 8, 2010 at 5:13 AM, alf wrote: > >> we are render a celltable widget nice when i push a boton. the >> problems is when i will push the botton again i create other widget >> and adding. How can clear all item adn populate the sam widget with >> new datas. >> >> thanks and excuse for by bad english ans newbie question i have spent >> hours fiding examples in doc >> >> al >> >> -- >> You received 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. >> >> > -- > You received 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. > -- Jeff -- You received 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.
[Basic] GWT and Google Maps API
Hello Group, I am currently doing some basic research for an upcoming project of mine. Basically I want to simulate a large number of driving cars on Google Maps. The way I imagine it right now is that I want to define a startpoint and an endpoint. Either by GPS Coordinates (xx° yy' zz'') or by an address (f.e. City, Street, Number) for every car. Then I would like Google Maps to calculate the route between the start and endpoint. (Preferably the shortes route) Last but not least a graphic symbol - at least a colored dot - should simulate the driving of a vehicle from the start point to the end point. This should occur in realtime and in addition simulated at lets say 500% of the normal speed. Some kind of a simulation mode. Of course the dot - the car - should move along the streets and not directly from start to end. Is this possible using GWT and the Google Maps API? Can anyone point out best practices, maybe even existing samples? Thanks in Advance for both your time and your help! Greetings Stefan -- You received 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: How to diagnose IE8 javascript error "stack overflow at line: 0"? ends up in Impl.entry0
It looks like this is the case - a large/complex object over RPC causing the problem. I commented out that call to the server, and the component loaded fine. So the next question is: how do you know your objects are too large for RPC? Where is the threshhold? On Nov 8, 10:40 am, BrianP wrote: > Thanks for your reply. That is interesting. For a long time, I thought > it was due to my use of the Raphael-gwt library. But now I've removed > that, and still get the error. And I _am_ bringing back some large > and complex objects via RPC, so I'll look into that. > > On Nov 6, 3:50 am, Didier DURAND wrote: > > > > > > > > > Hi, > > > I don't know enough about your appl but we had similar issues: that > > was due to complex data structures that we were bringing back to the > > client from the server over the GWT RPC -> we had to simplify the > > structures (carrying simple arrays of objects rather than complex > > graphs over RPC) in order to avoid the stack overflow caused by GWT- > > RPC serialization/deserialization. > > > You may have a look in that direction too. > > Hope it helps. > > didier > > > On Nov 5, 8:22 pm, BrianP wrote: > > > > I have a GWT 2.0.3 app that runs fine in Firefox and Chrome. But when > > > run in IE8 I get a javascript error that pops up with 'Stack over flow > > > at line: 0'. When stepping through it in debug mode, I end up in GWT > > > class Impl in the method entry0(Object jsFunction, Object thisObj, > > > Object arguments). I was hoping to find more information by looking > > > at those variables in debug mode, but they didn't really tell me > > > anything other than its a JavaScriptException, which I already knew. > > > > Any recommendation on how I might get more information on this error? > > > It seems similar to the error in this thread: > > > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > > One response there mentions adding an UncaughtExceptionHandler there > > > to the main EntryPoint class. Would that help? > > > > 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: CompositeCell
Is it dynamic based on the row value, or dynamic in that it can change? If its the former, you can extend CompositeCell and override the render() method to hide spans that aren't needed. If its the latter, you will probably want to extend AbstractEditableCell and copy the examples in TextInputCell or CheckboxCell. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 8, 2010 at 7:38 AM, Adam wrote: > We're in the process of converting to CellTable and we have a column > that has a vertically displayed list of items. This sounds perfect > for using a CompositeCell with a List of ClickableTextCells, except > for the fact that our list needs to be dynamic. I suppose I could use > AbstractColumn and define our own implementation, but I am hoping that > we have just miss understood CompositeCell. > > Any thoughts would be greatly appreciated, > - Adam > > -- > You received 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. > > -- You received 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: Accessing GWT app deployed on Jetty fails
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 > **/*.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 >
Re: How to update a CellTree after the model changes?
You should be able to call AbstractDataProvider.updateRowData() with just the one updated row value, which will only cause that row to refresh. However, there is a bug in CellTree (will be fixed in GWT 2.1.1) which always causes it to update the 0th item. Is there any way of making a node go from having children to having > no children again in a CellTree? You can set the row count in the child DataProvider to 0. The node won't be a leaf node, but it won't have any children. If you really want it to be a leaf node, you have to refresh the node using the same method above. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 8, 2010 at 11:53 AM, Ed Merks wrote: > I'm having a hard time understanding how I can update things like the > label of a node in the cell tree when I know its value has changed in > the model being viewed. Right now I have a rather brute force > approach: I update the entire set of children for the parent by > calling AbstractDataProvider.updateRowData. At least it works, but > it's like a sledge hammer. I have yet to figure out how to update > just the one child; maybe I just ran into bugs in the older pre- > release versions and have to try again. Also, I have to do similar > things if children are added, i.e., if a node y has a child z added, > and originally y had no children, I have to tell the parent node x of > y to update all its children so that it updates the expansion icon to > reflect that y is no longer a leaf. But, now matter how hard I wrack > my brain, I cannot find a way to make a node go from having children > back to being a leaf again. The only way I can get this to work is to > hack the code: > >// Create a set of currently open nodes. >Set openNodes = new HashSet(); >int childCount = nodeView.getChildCount(); >int end = start + values.size(); >for (int i = start; i < end && i < childCount; i++) { > CellTreeNodeView child = nodeView.getChildNode(i); > // Ignore child nodes that are closed. > if (child.isOpen() && !child.isLeaf()) { /// > <-- add the test to not save the open state if it's a leaf. >openNodes.add(child.getValueKey()); > } >} > > Is there any way of making a node go from having children to having no > children again in a CellTree? > > -- > You received 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. > > -- You received 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: widget celltable how clear before re-populate
You can push new data into the widget using CellTable#setRowData() in conjunction with CellTable#setRowCount(). If you want to clear the data first, do the following: myCellTable.setRowCount(0); // Clears all data myCellTable.setRowCount(20, true); // Set the size of the new data myCellTable.setRowData(0, myData); // Set the new data In GWT 2.1.1, there is a new method CellTable#setRowData(List) that clears all existing data and replaces it with the specified list. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 8, 2010 at 5:13 AM, alf wrote: > we are render a celltable widget nice when i push a boton. the > problems is when i will push the botton again i create other widget > and adding. How can clear all item adn populate the sam widget with > new datas. > > thanks and excuse for by bad english ans newbie question i have spent > hours fiding examples in doc > > al > > -- > You received 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. > > -- You received 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.
Dynamic Gwt Module embed leads to blank page (onInjectionDone)
Hi, im trying to dynamically embed a gwt module into an jquery application. In this application i have pages which contain gwt modules. In such an page, i simply add the gwt container div, the script (nocache.js) and the css tag to the html body code. The problem is, when i do that this way, the page gets loaded and disappears after the gwt module was loaded. Than i just get a blank page, with this script inside: andorialowlevelanimations.onInjectionDone('andorialowlevelanimations') When i add the script tag and the div id to the main startpage, inside the head, (where jquery and other scripts get loaded) everything works fine. Can anybody tell me why this happens? Greets and thanks, ah and sorry for my english :) -- You received 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.
Doubt about Places and Activities
Hi, i would like to implement the new GWT 2.1 MVP Framework, but i have a few doubts. In my gui i have a TabPanel and inside each tab i have few links that display another view in the tab panel container. Something like Google Code, for example: http://code.google.com/p/gwt-platform/ For example: +--+---+ | Users | Accounts | -> TabPanel +--+---+--- + | Add User List Users | + + | | | | | | | | | | | | + + I would like to know if i am right. "Add User" and "List Users" actions are Activities don't? I have to create a Place + an Activity + a View for "Add User" action, and a Place + an Activity + a View for "List Users Action" ? -- You received 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: can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
More info. Perhaps the message that I provided above doesn't related to the actual problem very well. Looking in the maven debugging info I see what looks like the root exception: Caused by: org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command [[ C:\Program Files\Java\jdk1.6.0_22\jre\bin\java -Xmx512m -classpath "C: \tmp\broker\src\main\java;C:\tmp\broker\src\main\resources;C:\tmp \broker\target\broker-1.0-SNAPSHOT\WEB-INF\classes;C:\Documents and Settings\MN8850\.m2\repository\com\google\gwt\gwt-user\2.1.0\gwt- user-2.1.0.jar;C:\Documents and Settings\MN8850\.m2\repository\com \google\gwt\gwt-user\2.1.0\gwt-user-2.1.0.jar;C:\Documents and Settings \MN8850\.m2\repository\com\google\gwt\gwt-dev\2.1.0\gwt-dev-2.1.0.jar" com.google.gwt.i18n.tools.I18NSync -out C:\tmp\broker\target\generated- sources\gwt -createMessages com.assurant.oa.broker.Messages On Nov 8, 10:22 am, cri wrote: > Actually, it was my mistake (I'm a maven rookie). I was accidentally > using version 1.2 of the plugin. This version doesn't seem to > automatically generate all of the misc eclipse files that version > 2.1.0 creates. However, now I have another problem... > > Now when I import the resulting project into eclipse, I get lots of > compile errors, plus the following error in my maven console: > > Error: Could not find the resource '[omit package]Messages.properties > matching '[omit package].Messages' did you remember to add it to your > classpath? > > A few of the compile errors are appended below. This is probably > another newbie mistake. Any help is appreciated. > > Chuck > > Description Resource Path Location Type > com.google.gwt.junit.client.GWTTestCase can not be found in source > packages. Check the inheritance chain from your module; it may not be > inheriting a required module or a module may not be adding its source > path entries properly. GwtTestoabroker.java /broker/src/test/java/com/ > assurant/oa/broker/client line 13 GWT problems marker > GreetingServiceAsync cannot be resolved to a type > GwtTestoabroker.java /broker/src/test/java/com/assurant/oa/broker/ > client line 41 Java Problem > GreetingServiceAsync cannot be resolved to a type oabroker.java / > broker/src/main/java/com/assurant/oa/broker/client line 35 Java > Problem > GreetingServiceAsync cannot be resolved to a type oabroker.java / > broker/src/main/java/com/assurant/oa/broker/client line 123 Java > Problem > Messages cannot be resolved to a type oabroker.java /broker/src/main/ > java/com/assurant/oa/broker/client line 37 Java Problem > > On Nov 8, 10:04 am, Jeff Schwartz wrote: > > > > > > > > > Try the import from "File System" option. > > > On Mon, Nov 8, 2010 at 10:32 AM, cri wrote: > > > The docs athttp://mojo.codehaus.org/gwt-maven-plugin/saythat > > > generated projects "can then be imported as "existing project" into > > > Eclipse". This isn't immediately possible since the generated projects > > > don't create eclipse ".project" files. > > > > -- > > > You received 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 > > cr...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- > > Jeff -- You received 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: RPC version mismatch on client & server
> Scenario: A user is running version n-1 of a gwt app. Meanwhile, > version n is deployed. I assume the client will get RPC serialization > exceptions. The user gets frustrated. > > What's the best way to address this? If you use IsSerializable (and no type name elision), and don't have any actual API changes, you'll be okay, you user shouldn't notice. Otherwise you'll have to catch IncompatibleRemoteServiceException and ask your user to reload the app. I was mulling over this scenario awhile ago and wrote a blog post about it: http://www.draconianoverlord.com/2010/07/07/gwt-seamless-upgrades.html - Stephen -- You received 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: intellij: ...DevMode -war -gen
Solution: Project Structure -> Facet Settings -> GWT -> GWT (Hello) -> Target Web Facet: On Nov 6, 6:36 am, notcourage wrote: > I'm trying to get samples/Hello to run inintellij9.0.3. When I run > gwt dev mode withinintellij, chrome reports Hello.html isn't found. > > I set the project structure to generate out/artifacts/ > Hello_web_exploded. I believe Hello.html isn't found due to this > command line fragment (entire line follows): > > com.google.gwt.dev.DevMode -war C:\Users\user\.IntelliJIdea90\system > \gwt\Hello.Helloa864f2c3\Hello.9eda34b3\run\www -gen C:\Users\user > \.IntelliJIdea90\system\gwt\Hello.Helloa864f2c3\Hello.9eda34b3\run\gen > -startupUrl Hello.html ... > > Notice the strange paths for -war & -gen. What is -gen? > > C:\swe\Sun\SDK\jdk\bin\java -Xmx256m -Didea.launcher.port=7532 "- > Didea.launcher.bin.path=C:\Program Files (x86)\JetBrains\IntelliJIDEA > 9.0.3\bin" -Dfile.encoding=windows-1252 -classpath "C:\swe\java > \gwt-2.1.0\gwt-dev.jar;C:\swe\intellij_workspace\Hello\src;C:\swe\Sun > \SDK\jdk\jre\lib\alt-rt.jar;C:\swe\Sun\SDK\jdk\jre\lib\charsets.jar;C: > \swe\Sun\SDK\jdk\jre\lib\deploy.jar;C:\swe\Sun\SDK\jdk\jre\lib > \javaws.jar;C:\swe\Sun\SDK\jdk\jre\lib\jce.jar;C:\swe\Sun\SDK\jdk\jre > \lib\jsse.jar;C:\swe\Sun\SDK\jdk\jre\lib\management-agent.jar;C:\swe > \Sun\SDK\jdk\jre\lib\plugin.jar;C:\swe\Sun\SDK\jdk\jre\lib > \resources.jar;C:\swe\Sun\SDK\jdk\jre\lib\rt.jar;C:\swe\Sun\SDK\jdk\jre > \lib\ext\dnsns.jar;C:\swe\Sun\SDK\jdk\jre\lib\ext\localedata.jar;C:\swe > \Sun\SDK\jdk\jre\lib\ext\sunjce_provider.jar;C:\swe\Sun\SDK\jdk\jre\lib > \ext\sunmscapi.jar;C:\swe\Sun\SDK\jdk\jre\lib\ext\sunpkcs11.jar;C:\swe > \intellij_workspace\Hello\out\production\Hello;C:\swe\java > \gwt-2.1.0\gwt-user.jar;C:\Program Files (x86)\JetBrains\IntelliJIDEA > 9.0.3\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain > com.google.gwt.dev.DevMode -war C:\Users\user\.IntelliJIdea90\system > \gwt\Hello.Helloa864f2c3\Hello.9eda34b3\run\www -gen C:\Users\user > \.IntelliJIdea90\system\gwt\Hello.Helloa864f2c3\Hello.9eda34b3\run\gen > -startupUrl Hello.html com.google.gwt.sample.hello.Hello -- You received 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.
How to update a CellTree after the model changes?
I'm having a hard time understanding how I can update things like the label of a node in the cell tree when I know its value has changed in the model being viewed. Right now I have a rather brute force approach: I update the entire set of children for the parent by calling AbstractDataProvider.updateRowData. At least it works, but it's like a sledge hammer. I have yet to figure out how to update just the one child; maybe I just ran into bugs in the older pre- release versions and have to try again. Also, I have to do similar things if children are added, i.e., if a node y has a child z added, and originally y had no children, I have to tell the parent node x of y to update all its children so that it updates the expansion icon to reflect that y is no longer a leaf. But, now matter how hard I wrack my brain, I cannot find a way to make a node go from having children back to being a leaf again. The only way I can get this to work is to hack the code: // Create a set of currently open nodes. Set openNodes = new HashSet(); int childCount = nodeView.getChildCount(); int end = start + values.size(); for (int i = start; i < end && i < childCount; i++) { CellTreeNodeView child = nodeView.getChildNode(i); // Ignore child nodes that are closed. if (child.isOpen() && !child.isLeaf()) { /// <-- add the test to not save the open state if it's a leaf. openNodes.add(child.getValueKey()); } } Is there any way of making a node go from having children to having no children again in a CellTree? -- You received 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.
Session Managment for more than one GWT-Project
Hi there, I'm writing an GWT-App containing several sub-projects. To keep the App lightweight and easy I created different projects for each subproject linking to each other. I deployed the projects on my Tomcat and it works fine, BUT: As every subprojects has its own server-classes and therefore creates its own session, i cannot recognize an user who logged in on a different page. so my question is: is there any way to tell the apps to share the session managment? or do i have to restructure my whole project again? thanks a lot! tom -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-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.
best way to use chart in GWT
Hi I'm having problem to decide what is the base way to implement chart in gwt. i taught about gwt library (i.e. gchart of gflot) - but they are insufficient by look, interaction and components. Also looked at gwt visualization but it requires open link to the web, (i need it in intranet). And also look at some javascript library - but then i need to write wrappers and take care of the cross browser issue. P.s. i cannot use flash component as well. currently it seems that wrapping the javascript library is the best solution, but i'll be happy to hear other suggestions, or experiences before diving in. Thanx onentwoo -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Modules
I am trying to create a framework for a GWT app I am writing. This framework will want to implement and handle all the Service, ServiceAsync and ServiceImpl classes. The main application classes will extend the framework view class, and the application serverImpl class will extend the frameworkImpl class. I have implemented the framework as a child of my main App so it goes.. app client server shared framework client server shared and I have added framework/client and framework/shared to my source definition.. The App compiles and sort of runs, but I am having two problems.. 1) the App compiles fine, but in my main app client classes, the classes I refer to from my framework package are reported as unreachable in the editor. Source path problems... 2) when I run the app, my click event successfully invokes my client side handler, but I never get a response, actually I don't think it sends a request as my server impl. The serverImpl servlet is never loaded or goes thru init() My questions are: Given the code below does anything look out of line ? Is this the way to implement a module ? How do you debug into the RPC call to see what GWT is calling ? Thank you John Gentilin the client side handler is public void performAction( RemoteCommandProxy cmd ) { final RemoteCommandProxy _cmd = cmd; YAVCFService.performAction(_cmd.getName(), _cmd, new AsyncCallback>() { public void onFailure(Throwable caught) { _cmd.executionCompleteFailure(caught); } public void onSuccess(Map result) { _cmd.executionCompleteSuccess(result); } }); } where RemoteCommandProxy extends HashMap and represents the parameters passed to the server impl. The idea is I am invoking one servlet interface that takes as parameters a command name and a map of named value pairs as parameters. This function returns a Map of named value pairs in response. My interfaces are defined as follows @RemoteServiceRelativePath("yavcf") public interface YAVCFClient extends RemoteService { Map performAction(String name, Map parameters) throws IllegalArgumentException, InvalidCommandException, NoSessionException;; } public interface YAVCFClientAsync { void performAction(String name, Map parameters, AsyncCallback> callback); } and my web.xml has the following servlet mapping. yavcfServlet com.ecs.toodlejirado.server.ToodleJiraDoServer yavcfServlet /toodlejirado/yavcf -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Designer and Widget States
Do you have any suggestions on how that might work or look? What constitutes a "state"in this case? On Nov 6, 10:02 am, branflake2267 wrote: > I'd like to suggest the widget Designer add a way to design widget > states. Right now you design in one state. If you like at the flash > development, it can control the widget or app in different states > according to time and/or events. This would be a fantastic feature(s) > to add to GWT Designer. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT designer and problem with smartGWT
The "Configure for using SmartGWT" command is provided as a convenience. All it does is follow the same instructions for setting up SmartGWT that are provided on the SmartGWT web site. GWT Designer does not add or remove any requirements for using SmartGWT. That command will only appear if the project is not already using SmartGWT. That info is usually recorded to your module xml file. If you have general problems using SmartGWT, I would recommend asking them in the SmartGWT forum. On Nov 6, 11:51 am, vasatko wrote: > Where is stored, that GWT module have smartGWT? > > Or how to set up address to the smartgwt.jar on existing module? > > I have module with smartGWT created in GWT Designer. But after > reinstaling Eclipse and importing project, I have module and in google > menu i have only Configure for using GWT Ext and extGWT (not > smartGWT). Where is stored information about used extension of GWT? If > i trying run GWT Designer, that ends with null pointer exception. But > if I created new module, configure for using smartGWT and select > smartgwt.jar, than GWT Designer run correct. > > Sorry for my english -- You received 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
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: GWT Timer with IE
Fortunately, the new version of GWT (2.1.0) has dealt with this problem. It seems to be fine for almost browser :) On Nov 4, 11:07 am, Khôi wrote: > Hi all, > > I'm developing a module using Google Web ToolkitTimer. In my code, I > have to override a method for handling browser event (pass an event as > argument). In this method, I useTimerto count down the time to delay > sending the event to server. The problem is that: > > - If I use the event argument of overridden method in method "run()" > oftimer, It works fine in Firefox but does not work in IE, Chrome. I > tried to debug and get the error: "Member not found" > > - If I does not use the event argument, It works fine with all > browsers. > > My code like following: > > @override > public void onBrowserEvent(final Event event) > timer= newTimer{ > > @Override > public void run() { > delayTime -= 1000; > if (delayTime <= 0) { > > SuperClass.this.someMethod(event); // > This line cause the error > > delayTime = 2000; > cancel(); > } > } > }; > timer.scheduleRepeating(1000); > > } > > Anybody have ever faced the same problem? > > Please help! > > Kind Regards, > Khoi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT v2.1 MVP, STS/ROO, JDO, Objectify & App Engine
Hi Jeff, David, Any update on this issue? I'm also looking forward Spring Roo with Objectify. -- regards, Thomas Wiradikusuma On Oct 30, 3:36 am, David Chandler wrote: > Thanks again, Jeff. GWT+GAE re-ignited my own enthusiasm for Web > development prior to my joining Google. It's the platform I've been > waiting for these past 2^4 years as a Web apps developer! -- You received 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.
java with google webtoolkit
http://123maza.com/35/venus241/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.1.0 maven asks for com.google.gwt:gwt-dev:jar:windows:2.1.0??
worst decision ever to get on the maven/spring-roo boat. after 25 mins of waiting while maven is downloading after issuing "perform eclipse" for a basic spring-roo, maven stumbles with an error because JAVA_HOME is not properly set. after fixing that, "perform eclipse" works but the resulting project is in conflict with the Google Plugin and running the apps fails due to missing dependencies that maven apparently overlooked and maven is supposed to make life easier, well, not mine for sure. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt 2.1, maven, eclipse 3.5
Hi, Im so tired of searching around the internet and finding no good answers to this subject. Do anyone know of any good guide for creating a gwt 2.1 project in maven, and fully integrating it with eclipse? Gwt 2.1 is suppoed to be easier to integrate with maven, but I can't get it to work properly. Any pointers? Thanks in advance, Frank B -- You received 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: can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
Actually, it was my mistake (I'm a maven rookie). I was accidentally using version 1.2 of the plugin. This version doesn't seem to automatically generate all of the misc eclipse files that version 2.1.0 creates. However, now I have another problem... Now when I import the resulting project into eclipse, I get lots of compile errors, plus the following error in my maven console: Error: Could not find the resource '[omit package]Messages.properties matching '[omit package].Messages' did you remember to add it to your classpath? A few of the compile errors are appended below. This is probably another newbie mistake. Any help is appreciated. Chuck Description ResourcePathLocationType com.google.gwt.junit.client.GWTTestCase can not be found in source packages. Check the inheritance chain from your module; it may not be inheriting a required module or a module may not be adding its source path entries properly. GwtTestoabroker.java/broker/src/test/java/com/ assurant/oa/broker/client line 13 GWT problems marker GreetingServiceAsync cannot be resolved to a type GwtTestoabroker.java/broker/src/test/java/com/assurant/oa/broker/ client line 41 Java Problem GreetingServiceAsync cannot be resolved to a type oabroker.java / broker/src/main/java/com/assurant/oa/broker/client line 35 Java Problem GreetingServiceAsync cannot be resolved to a type oabroker.java / broker/src/main/java/com/assurant/oa/broker/client line 123Java Problem Messages cannot be resolved to a type oabroker.java /broker/src/main/ java/com/assurant/oa/broker/client line 37 Java Problem On Nov 8, 10:04 am, Jeff Schwartz wrote: > Try the import from "File System" option. > > > > > > > > > > On Mon, Nov 8, 2010 at 10:32 AM, cri wrote: > > The docs athttp://mojo.codehaus.org/gwt-maven-plugin/say that > > generated projects "can then be imported as "existing project" into > > Eclipse". This isn't immediately possible since the generated projects > > don't create eclipse ".project" files. > > > -- > > You received 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 > cr...@googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Jeff -- You received 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.
RPC version mismatch on client & server
Scenario: A user is running version n-1 of a gwt app. Meanwhile, version n is deployed. I assume the client will get RPC serialization exceptions. The user gets frustrated. What's the best way to address 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-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: can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
Try the import from "File System" option. On Mon, Nov 8, 2010 at 10:32 AM, cri wrote: > The docs at http://mojo.codehaus.org/gwt-maven-plugin/ say that > generated projects "can then be imported as "existing project" into > Eclipse". This isn't immediately possible since the generated projects > don't create eclipse ".project" files. > > -- > You received 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. > > -- Jeff -- You received 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: How to diagnose IE8 javascript error "stack overflow at line: 0"? ends up in Impl.entry0
Thanks for your reply. That is interesting. For a long time, I thought it was due to my use of the Raphael-gwt library. But now I've removed that, and still get the error. And I _am_ bringing back some large and complex objects via RPC, so I'll look into that. On Nov 6, 3:50 am, Didier DURAND wrote: > Hi, > > I don't know enough about your appl but we had similar issues: that > was due to complex data structures that we were bringing back to the > client from the server over the GWT RPC -> we had to simplify the > structures (carrying simple arrays of objects rather than complex > graphs over RPC) in order to avoid the stack overflow caused by GWT- > RPC serialization/deserialization. > > You may have a look in that direction too. > Hope it helps. > didier > > On Nov 5, 8:22 pm, BrianP wrote: > > > > > > > > > I have a GWT 2.0.3 app that runs fine in Firefox and Chrome. But when > > run in IE8 I get a javascript error that pops up with 'Stack over flow > > at line: 0'. When stepping through it in debug mode, I end up in GWT > > class Impl in the method entry0(Object jsFunction, Object thisObj, > > Object arguments). I was hoping to find more information by looking > > at those variables in debug mode, but they didn't really tell me > > anything other than its a JavaScriptException, which I already knew. > > > Any recommendation on how I might get more information on this error? > > It seems similar to the error in this thread: > > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > One response there mentions adding an UncaughtExceptionHandler there > > to the main EntryPoint class. Would that help? > > > 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.
can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
The docs at http://mojo.codehaus.org/gwt-maven-plugin/ say that generated projects "can then be imported as "existing project" into Eclipse". This isn't immediately possible since the generated projects don't create eclipse ".project" files. -- You received 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: Issue with XML object passing using Request Builder
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideXML On Nov 8, 10:47 am, jayalakshmi jahagirdar wrote: > hello all, > I have the following requierement: > > A XML file is at the server side.Need to parse it . > I have a nested class . Create a object of this nested class ,add parametres > from XML parsing to this object and pass it back to the client. > Iam making use of RequestBuilder. > > Iam able to parse it and create the object. but not finding a way to pass it > back to the client. > > Which is the best way to implement this. Can i make use of RPC ? > > Thanks & regards > Jaya -- You received 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
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.
Re: GWT debugging under Linux is much slower than under Windows - what's wrong with my configuration?
Thanks, Chris! I'll try to install FF plugin later today and will post results here. MG On Nov 7, 9:27 pm, Chris Conroy wrote: > Your slowness is not a Linux vs. Windows issue: it is a Chrome plugin > vs. Firefox plugin issue. > > The Chrome NPAPI based plugin is known to be a lot slower than the > Firefox XPCOM plugin. This is partly due to the out of process nature > of plugins in chrome: each JS<->Java boundary crossing incurs extra > IPC latency. Also, there are some object identity issues in the Chrome > plugin model that require us to do some performance harming > workarounds for the sake of correctness. We hope the object identity > issues will be worked out, and we should get a speedup from that. > There isn't a lot to be done for the out of process problem, and > Firefox will probably head in that direction in future versions (just > a guess). > > The Firefox plugin should install just fine on 64 bit ubuntu--I use it > myself all the time. Some other distros have some shared library > conflicts. FWIW, there are some troubleshooting tips in this > thread:http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > > -- You received 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
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.
Re: GWT Loading the application very slowly
The issue was happening because IE probably slows down with the amount of JS file being loaded. I recompiled the code to get generated in obfuscated mode .. the size of JS dropped and started rendering fast :) Cheers! On Nov 6, 8:20 pm, keyboard_samurai wrote: > I am sure ppl might have encountered such issues with GWT 1.7.1. Let > me know if u have any idea for this > > On Nov 6, 11:02 am, keyboard_samurai wrote: > > > No I cannot use it as I am using GWT 1.7.1 not the 2.x version.. > > > This is what is making this task more challenging now .. > > > On Nov 6, 10:58 am, zixzigma wrote: > > > > Have you tried Code Splitting > > > ?http://code.google.com/webtoolkit/doc/latest/DevGuideCodeSplitting.html > > > > are you Lazy Loading your widgets ? -- You received 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
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.
Issue with XML object passing using Request Builder
hello all, I have the following requierement: A XML file is at the server side.Need to parse it . I have a nested class . Create a object of this nested class ,add parametres from XML parsing to this object and pass it back to the client. Iam making use of RequestBuilder. Iam able to parse it and create the object. but not finding a way to pass it back to the client. Which is the best way to implement this. Can i make use of RPC ? Thanks & regards Jaya -- You received 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.
CompositeCell
We're in the process of converting to CellTable and we have a column that has a vertically displayed list of items. This sounds perfect for using a CompositeCell with a List of ClickableTextCells, except for the fact that our list needs to be dynamic. I suppose I could use AbstractColumn and define our own implementation, but I am hoping that we have just miss understood CompositeCell. Any thoughts would be greatly appreciated, - Adam -- You received 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
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: GWT 2.1 MVP Framework Vs MVP4G
There are already some good pieces here : http://md-t.org/browse.php?u=Oi8vZ3JvdXBzLmdvb2dsZS5jb20vZ3JvdXAvbXZwNGcvYnJvd3NlX3RocmVhZC90aHJlYWQvZjEzYzhkNGEzNGUxNDhjOS9jODJiY2MwZTU0NDA3ODZm&b=5 On Nov 8, 11:26 am, jbroquefere wrote: > Hi, > I have spent the past 2 hours around the web to grab as many point of > view as possible about those 2 mvp frameworks, particularly we are > thinking about switching from mvp4g to GWT MVP considering gains/ > losses. > > Because there are so many conflicting things on many blogs/forums/ > webpages, I think it could be useful for GWT developers to get a > dedicated page for discussions (is there already such a page? I don't > think so) about that topic. > So please, could you explain pros/cons about those frameworks? -- You received 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.
Folder icons in eclipse
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.
GWT 2.1 MVP Framework Vs MVP4G
Hi, I have spent the past 2 hours around the web to grab as many point of view as possible about those 2 mvp frameworks, particularly we are thinking about switching from mvp4g to GWT MVP considering gains/ losses. Because there are so many conflicting things on many blogs/forums/ webpages, I think it could be useful for GWT developers to get a dedicated page for discussions (is there already such a page? I don't think so) about that topic. So please, could you explain pros/cons about those frameworks? -- You received 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.
widget celltable how clear before re-populate
we are render a celltable widget nice when i push a boton. the problems is when i will push the botton again i create other widget and adding. How can clear all item adn populate the sam widget with new datas. thanks and excuse for by bad english ans newbie question i have spent hours fiding examples in doc al -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT MVP Roo - Changing Default History Tokens
On 8 nov, 04:14, zixzigma wrote: > How can we change history tokens in Roo generated app ? > currently it is like this : #ProxyPlace: > 1...@n...@org.springsource.roo.extrack.client.managed.request.EmployeeProxy! > DETAILS > > is it in Tokenizer class ? (Tokenizer inner class inside Place > classes) Yes (though it just delegates to the getHistoryToken and getProxyId methods of RequestFactory) > is so called REST like URLs possible ? /employees/1 This is no more or less "REST like" than the above (I assure you!); and yes it's possible (the issues then are to identify objects that are not yet persisted to the server; and of course mapping the "employees" to an EntityProxy class, representing the class+id couple in the Place, and having dedicated "find" methods to retrieve the object from the server, as without an EntityProxyId you won't be able to use RequestFactory.find()) > does it mean we have to write custom getPlace, getToken, to convert > tokens to places ? Yes. That or writing your own PlaceHistoryMapper that won't use PlaceTokenizer's at all (i.e. implement PlaceHistoryMapper in a concrete class and not use the GWT.create() magic to generate the implementation). -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt 2.1 Activities + Code splitting + Gin
Hi Phillipe, Also, I think it's a bit unfair to call GWTP's code generation "magic" when GWT relies on it for so many different things... But if you > really want to write proxys yourself, GWTP's allows it. > Yes, I agree that I was a bit unfair with GWTP. In my opinion, it would be a geater tool (for me) if the code in front of generators were more concise (just annotation, no empty interfaces to add), and maybe more "optional". bindPresenter() needs view, proxyplace, presenter. But if I prefer to not use ProxyPlace as you suggest, I can't. > Out of curiosity, which version of GWTP did you try? > 0.4. But I might not have been in the depth of the framework (Just coded 4 main pages of my app) until I get blocked by the Top Div/RootPresenter problem that I explained before. Cheers, Nicolas. -- You received 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: EditTextCell and RPC worked in 2.1m1 but not in 2.1
On 8 nov, 07:14, "Henry H." wrote: > hi, > when i was using 2.1.m1 i was able to extend an EditTextCell to make > an rpc call to update the database after the cell is updated. i just > inserted the rpc call right before commit() method in the cell. > when i made the switch to 2.1, this no longer works. the cell just > remains in edit mode and the onFailure() of the rpc doesn't show. the > viewdata is updated though. > i haven't messed with the new mvp framework yet , but is there another > way to make rpc calls after a cell has been edited? I'm not sure but I think you should (as in "it's intended that you") use a FieldUpdater (in CellTable) or ValueUpdated (in CellList) to handle the "commit" of the value and do your RPC. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Gwt 2.1 Activities + Code splitting + Gin
On 8 nov, 04:21, PhilBeaudoin wrote: > > Regarding GWTP's uses of GWT generators, I haven't looked at the > mechanism GWT 2.1 uses to decouple event plumbing from presenter > instances. In my experience, this is required to allow lazy > instantiation and code splitting of presenters. I remember reading T. > Broyer saying he didn't care too much about this since his presenters > were small but, in my experience, presenters can sometime include > quite a bit of logic. In my opinion, being able to lazily instantiate > them and wake them up on specific events is necessary for scalability. I think the overall idea of activities is that they are short-lived instances, so they're effectively "lazily created" (actually, a new instance is created each time one is needed) and they don't need to be "awoken" because if they're not currently in use they're already "dead" and garbage collected. The ActivityManager (actually its associated ActivityMapper) will decide whether a particular activity is needed (and then instantiate it, possibly going through a GWT.runAsync for code splitting); the activity will listen to events its interested in *during its lifetime* (e.g. whether some object has changed or has been added or deleted, so it can update its view); but when it's done (stopped or cancelled), it's simply thrown away (the event bus passed to the start() method is a ResettableEventBus so all handlers have been automatically unregistered for you, which as a side effect allows the activity to be garbage collected). This is the (AIUI) intended use, but nothing forces you to write such short-lived instances: you can very well use singletons, but then you'll have the additional task of maintaining state between "runs" (start/stop or start/cancel), in which case your activity can listen to events from the event bus after being stopped/cancelled (just use the "real" event bus instead of the ResettableEventBus passed to the start() method); but it won't "ask to be revealed": navigation is handled at another layer, triggered on the PlaceController and handled by ActivityManagers. -- You received 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: SelectionModel and ListDataProvider are out of synch
On a related subject why is there no 'reset'/'clear' method on the selection model. I find myself in the situation where I would need to reset the selection model (affecting a new one is not an option as I have handlers registered on the former). Thanks, Mirco On Nov 7, 7:42 pm, Mirco Dotta wrote: > Hi John, > > > The SelectionModel shouldn't depend on the data in the ListDataProvider > > because it is independent of the data source. Consider a SelectionModel > > that has an option to select all unread messages. You probably don't have > > all of the user messages loaded on the client, but the unread messages > > should be selected as you page through the table, without having to update > > the SelectionModel each time you load a new page. > > Your point makes sense and I see now why the SelectionModel > has been designed not to be tighted to the data provider. It is about > flexibility > and by having this design, it is easier (and feasible) to integrate a > selection model > when data is loaded asynchronously. > > > Can you deselect the value in the SelectionModel when you remove the row in > > your onClick handler? > > Yes, this is what I'm currently doing... it is just that, at first > thought, it didn't > feel right. I was believing that removing an item from the data list > should have automagically > removed the item from the selection model. I just thought that the > operation should have been > transparent to API's clients. But I see that data pagination is a hard > problem if you set a hard link > between the selection model and the data provider, which gives me an > explanation of the current > design. > > Thank you again for your answer and, please, feel free to correct me > if my comments are wrong (or just > not understandable :). > > -- Mirco -- You received 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: Problem with maven-gwt-plugin and GWT 2.1
Problem solved after removing the dependency to gwt-math. On 6 nov, 23:46, Jeff Larsen wrote: > Try upgrading to the new maven plugin 2.1 > > http://mojo.codehaus.org/gwt-maven-plugin/ > > On Nov 6, 1:55 pm, fclaeys wrote: > > > > > > > > > Hi. > > > I currently have the same problem. > > > Have you found a solution for this problem ? > > > On 4 nov, 14:32, Deyan Atanasov wrote: > > > > Hi. I'm getting the following exception when compiling my project with > > > GWT 2.1. and maven-gwt-plugin 1.3-SNAPSHOT > > > fromhttp://nexus.codehaus.org/snapshots > > > repository. > > > Validating newly compiled units > > > [ERROR] Errors in 'jar:file:/C:/Users/Dido/.m2/repository/com/ > > > google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/emul/java/ > > > lang/Enum.java' > > > [ERROR] Line 31: enumType.enumValueOfFunc cannot be resolved > > > or is not a field > > > [ERROR] Errors in 'jar:file:/C:/Users/Dido/.m2/repository/com/ > > > google/gwt/gwt-user/2.1.0/gwt-user-2.1.0.jar!/com/google/gwt/emul/java/ > > > math/BitLevel.java' > > > [ERROR] Line 55: val.sign cannot be resolved or is not a field > > > [ERROR] Line 59: The method getFirstNonzeroDigit() is > > > undefined for the type BigInteger > > > [ERROR] Line 60: val.sign cannot be resolved or is not a field > > > [ERROR] Line 61: val.numberLength cannot be resolved or is not > > > a field > > > [ERROR] Line 62: val.digits cannot be resolved or is not a > > > field > > > [ERROR] Line 67: val.digits cannot be resolved or is not a > > > field > > > [ERROR] Line 68: val.numberLength cannot be resolved or is not > > > a field > > > [ERROR] Line 69: val.digits cannot be resolved or is not a > > > field > > > [ERROR] Line 72: val.numberLength cannot be resolved or is not > > > a field > > > [ERROR] Line 83: val.sign cannot be resolved or is not a field > > > [ERROR] Line 86: val.numberLength cannot be resolved or is not > > > a field > > > [ERROR] Line 87: val.digits cannot be resolved or is not a > > > field > > > [ERROR] Line 87: val.numberLength cannot be resolved or is not > > > a field > > > [ERROR] Line 89: val.sign cannot be resolved or is not a field > > > [ERROR] Line 90: The method getFirstNonzeroDigit() is > > > undefined for the type BigInteger > > > [ERROR] Line 92: val.numberLength cannot be resolved or is not > > > a field > > > > Any ideas ? -- You received 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.