Re: Entire Site in GWT?
Mike, I am also flash/flex guy. Websites built with GWT can have workflow almost the same as those built with flash (especially if you are using Flash Builder od FDT). This is a great advantage for AS3 programmers. But like flash it is not crawlable by google so you have to implement it by yourself. If you are using Tomcat - HtmlUnit is good choice. If not I recommend this approach: http://www.asual.com/jquery/address/ . You should be familiar with SWFAddress so it do you no harm :) good luck On Nov 8, 5:49 pm, mike.cann mike.c...@gmail.com 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=gstq=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: Accessing GWT app deployed on Jetty fails
Here's the output from my maven build (mvn clean package) --- [Console output redirected to file:C:\Users\beutelsn\DevTools \dashboard2CleanPackage.log] [INFO] Scanning for projects... [INFO] [INFO] Reactor Build Order: [INFO] [INFO] DEV Bauhaus Dashboard [INFO] DEV Bauhaus Dashboard Database Connector [INFO] DEV Bauhaus Dashboard Server [INFO] DEV Bauhaus Dashboard Client [INFO] [INFO] [INFO] Building DEV Bauhaus Dashboard 0.0.1-SNAPSHOT [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dashboard2 --- [INFO] [INFO] [INFO] Building DEV Bauhaus Dashboard Database Connector 0.0.1- SNAPSHOT [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dashboardDatabase --- [INFO] Deleting C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardDatabase\target [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ dashboardDatabase --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 3 resources [INFO] Copying 5 resources [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dashboardDatabase --- [INFO] Compiling 3 source files to C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardDatabase\target\classes [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default- testResources) @ dashboardDatabase --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 6 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default- testCompile) @ dashboardDatabase --- [INFO] Compiling 1 source file to C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardDatabase\target\test-classes [INFO] [INFO] --- maven-surefire-plugin:2.6:test (default-test) @ dashboardDatabase --- [INFO] Surefire report directory: C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardDatabase\target\surefire-reports --- T E S T S --- Running TestSuite === unit tests Tests run: 0, Failures: 0, Skips: 0 === === dashboardDatabase unit testsuite Total tests run: 0, Failures: 0, Skips: 0 === === integration tests Tests run: 0, Failures: 0, Skips: 0 === === dashboardDatabase integration testsuite Total tests run: 0, Failures: 0, Skips: 0 === === dashboardDatabase testsuite Total tests run: 0, Failures: 0, Skips: 0 === Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.449 sec Results : Tests run: 0, Failures: 0, Errors: 0, Skipped: 0 [INFO] [INFO] --- maven-jar-plugin:2.2:jar (default-jar) @ dashboardDatabase --- [INFO] Building jar: C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardDatabase\target\dashboardDatabase-0.0.1- SNAPSHOT.jar [INFO] [INFO] --- maven-jar-plugin:2.2:test-jar (default) @ dashboardDatabase --- [INFO] Building jar: C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardDatabase\target\dashboardDatabase-0.0.1-SNAPSHOT- tests.jar [INFO] [INFO] [INFO] Building DEV Bauhaus Dashboard Server 0.0.1-SNAPSHOT [INFO] [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ dashboardServer --- [INFO] Deleting C:\Users\beutelsn\DevTools\workspace \dashboard2\dashboardServer\target [INFO] [INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ dashboardServer --- [WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 57 resources [INFO] Copying 62 resources [INFO] Copying 5 resources [INFO] [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ dashboardServer --- [INFO] Compiling 56 source files to C:\Users\beutelsn\DevTools \workspace\dashboard2\dashboardServer\target\classes [INFO] [INFO] --- maven-resources-plugin:2.4.3:testResources (default- testResources) @ dashboardServer --- [WARNING] Using platform encoding
Re: GWT 2.0.4 Way to query browser window's document area size in onModuleLoad
I have now thank you. Yes it gives me the height of the window. What I want to do is size a canvas so it fills the window. However the canvas is inside the document body so has the body's borders around it. That is why I am using body.getClientWidth() which gives the width inside the borders. To use Window.getClientHeight, I need to subtract the border height before using the value to size my canvas. I can't find any way to get the border. body.get{Absolute,Offset}{Left,Top} all return 0 as does body.getOffsetHeight. body.getOffsetWidth returns the same value as body.getClientWidth. (In all cases body = RootPanel.getBodyElement()). Any suggestions for getting the border height? -Mark On Nov 6, 6:45 am, Craig yavinm...@gmail.com wrote: Have you tried Window.getClientHeight()? On Nov 5, 3:21 am, magic callow_m...@hicorp.co.jp wrote: Hi, I am looking for a way to query the size of the browser's document window when onModuleLoad is called. I have tried Element body = RootPanel.getBodyElement(); int clientWidth = body.getClientWidth(); int clientHeight = body.getClientHeight(); body.getClientWidth() gives the correct width, but body.getClientHeight always returns 0. In fact all queries on body having to do with height return 0. I had similar problems in pure javascript with dw = document.body.offsetWidth; dh = document.body.offsetHeight; I overcame it there with the following: // IE does not appear to support window.innerHeight. if (typeof(window.innerHeight) == 'number') dh = window.innerHeight; else if (document.documentElement document.documentElement.clientHeight) dh = document.documentElement.clientHeight; else if (document.body document.body.clientHeight) dh = document.body.clientHeight; Anyway to do something similar via GWT? -Mark -- You received 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: Dynamic Gwt Module embed leads to blank page (onInjectionDone)
On 8 nov, 18:48, Sandler smike...@gmail.com wrote: 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: script defer=deferandorialowlevelanimations.onInjectionDone('andorialowlevelani mations')/ script 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? Because GWT generates document.write() calls in the *.nocache.js, and document.write() on an already-loaded page implies document.open(), which clears the document and replaces it with an empty one. This is the default behavior though, you can change it by implementing your own SelectionScriptLinker (extending IFrameLinker for instance) generating a slightly different *.nocache.js. You'll find several discussions on this group's archives about this issue, and some people already went that road (I don't know if they succeeded or gave up though) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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)
On 9 nov, 03:01, David Chandler drfibona...@google.com wrote: 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 Or maybe they're already there: http://code.google.com/p/google-web-toolkit/source/detail?r=9189 The commit log references a different code review though, I don't know what the differences are, maybe Bob could give details? -- You received 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, 21:42, PhilBeaudoin philippe.beaud...@gmail.com wrote: 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? As I understand it, your ChatBoxPresenter isn't related to a place, i.e. it's awoken based on a business event, not a navigation event; and in other words, it's not an Activity: case made. Activities (ActivityManager) is limited in scope to reacting to place changes and navigation (not that you couldn't use the Activity contract in other scenarios, such as your chat box, but the ActivityManager wouldn't be the right tool for the job, you'd have to find/write another activity manager for your different use case). In other words: GWT 2.1 Activities won't replace GWTP as a whole (and I believe, as I already said in the past, that it's not its goal either). -- You received 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: UiBinder fails after upgrading to gwt 2.1.0
Same problem on MacOS 10.6.4/Eclipse 3.6 with latest Google Plugin for Eclipse. On Nov 5, 8:05 pm, pgraham philip.robert.gra...@gmail.com wrote: Right, I suppose I should mention that I am running Kubuntu 10.04 64 bit, eclipse 3.6 with the lastest GPE. On Nov 4, 2:11 pm, will0 willtemper...@gmail.com wrote: Same issue as pgraham on Ubuntu 10.04, eclipse 3.6. This doesn't happen for eclipse 3.5 on the same machine. It also works on Windows 7 ultimate 64bit, eclipse 3.6. On Nov 4, 3:36 am, Richard Berger richardlan...@gmail.com wrote: OK, this won't help much, but... I was having the same problem just going through some basic tutorial using UiBinder andGWT2.1. So, I redid everything, writing down each step - and, of course, the problem vanished. So, there exists the possibility that2.1and UiBinder do actually work together. I can only offer the truly lame suggestion of restarting Eclipse to clean up any old invocations of the dev server. Good luck, RB On Nov 3, 8:34 am, pgraham philip.robert.gra...@gmail.com wrote: Update: I have commented out all code in the two files listed above so that they are as follows: MainMenu.ui.xml: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui /ui:UiBinder MainMenu.java: public class MainMenu extends Composite { interface Binder extends UiBinderWidget, MainMenu {} private static Binder uiBinder =GWT.create(Binder.class); public MainMenu() { initWidget(uiBinder.createAndBindUi(this)); } } When I do this I get the same error so it is not related to the content. At this point I am thinking that there is a version conflict with xerces. Does anyone know if Dev Mode relies onxercesto parse *.ui.xml files and if so which version? NOTE: I am using thegwt-maven-plugin to compile the app and it works fine if I compile it and deploy it in Tomcat Thanks, Philip On Nov 2, 1:54 pm, pgraham philip.robert.gra...@gmail.com wrote: MainMenu.ui.xml: ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui ui:with field=css type=org.sitebrand.ui.gwt.resources.UiResources.MainMenuCss / ui:with field=lbls type=org.sitebrand.ui.gwt.resources.MainMenuLbls / ui:with field=debugIds type=org.sitebrand.gwt.constants.DebugConstants / g:MenuBar stylePrimaryName={css.primary} g:MenuItem ui:field=campaigns debugId={debugIds.menuitem_campaigns} text={lbls.campaigns} g:MenuBar vertical=true g:MenuItem ui:field=createCampaign text={lbls.createCampaign} / g:MenuItem ui:field=viewCampaigns text={lbls.viewCampaigns} / g:MenuItem ui:field=campaignPriority text={lbls.campaignPriority} / g:MenuItem ui:field=reports text={lbls.reports} / /g:MenuBar /g:MenuItem g:MenuItem ui:field=content debugId={debugIds.menuitem_content} text={lbls.content} g:MenuBar vertical=true g:MenuItem ui:field=createContent text={lbls.createContent} / g:MenuItem ui:field=viewContent text={lbls.viewContent} / g:MenuItem ui:field=integrate text={lbls.integrate} / /g:MenuBar /g:MenuItem g:MenuItem ui:field=segments debugId={debugIds.menuitem_segments} text={lbls.segments} g:MenuBar vertical=true g:MenuItem ui:field=createSegment text={lbls.createSegment} / g:MenuItem ui:field=viewSegments text={lbls.viewSegments} / /g:MenuBar /g:MenuItem g:MenuItem ui:field=layout debugId={debugIds.menuitem_layout} text={lbls.layout} g:MenuBar vertical=true g:MenuItem ui:field=addTemplate text={lbls.addTemplate} / g:MenuItem ui:field=viewTemplates text={lbls.viewTemplates} / /g:MenuBar /g:MenuItem g:MenuItem ui:field=account debugId={debugIds.menuitem_account_mgmt} text={lbls.account} g:MenuBar vertical=true g:MenuItem ui:field=myAccount text={lbls.myAccount} /
Re: Dev plugin for firefox 3.7
On okt. 26, 00:54, slowpoison slowpoi...@slowpoison.net wrote: On Sep 14, 8:21 am, John Tamplin j...@google.com wrote: I am working on it right now. I have it working on FF40, but I am still trying to get it where one XPI will work on both FF3 and FF4. Any update about this, John? Hi, I am still waiting for this. Could you please at least give us some info about what's happening? Thank you: Kristof -- You received 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.
Deploying GWT project on Tomcat
Hello: I want to deploy a GWT project on a Tomcat server. As I´ve read, all I have to do is compile the GWT project (by the option in Eclipse, for example) and then (the app name is menutemplate): - Create a directory on webapps (in the Tomcat path) with name, for example, myapp. - Copy war/menutemplate directory (output of compilation) into myapp. - Copy menutemplate.html and menutemplate.css into my app. Doing this, my app works, but If i add a service with a rpc call it doesn´t. I suppouse I have to specify the servlets in the web.xml which is on WEB-INF, but when I copy the WEB-INF into myapp directory, then I cannot run the application. Have I made any mistake during the process? or have I forgotten any step? 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: RequestFactory - A request is already in progress
Thanks Tobias, That explanation was good. I had it right logically, but omitted calling one of my special - create me a new methods, that replaced my RequestContext for me. All good niow. it saves data! On Nov 9, 2:28 pm, Tobias thaberm...@gmail.com wrote: I *think* that happens after you have fired a RequestContext. From looking at the code, which is a bit hard because of the DeferredBinding that's going on there, the locked variable in a RequestContext gets only reset to false, if the fired Request fails. So I think you need to use a new RequestContext. Regards, Tobias On Nov 9, 12:48 pm, Ramon Buckland ra...@thebuckland.com wrote: Hi All, I am currently in the process of building an app, initally based off the Roo framework. I am getting a A request is already in progress at the point where I call create for a child entity. Is there a way I can see what request contexts are in progress, so I can debug where my logic is off ?? Either using firebug or the eclipse debugger. The stack trace I get is Caused by: java.lang.IllegalStateException: A request is already in progress at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocke d(AbstractRequestContext.java: 307) at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.create(Abs tractRequestContext.java: 76) at isupro.client.scaffold.businessprocess.ui.AbstractBusinessProcessActivity.c reateNewObjectiveProxy(AbstractBusinessProcessActivity.java: 92) My method (createNewObjectiveProxy()) usese the existing request, created prior so that this new object is in the same context. public ObjectiveProxy createNewObjectiveProxy() { ObjectiveProxy obj = getRequest().create(ObjectiveProxy.class); obj.setId(editableBP.getId()); editableBP.getObjectives().add(obj); return obj; } Now, without looking at my code, it will be hard for anyone to assist I assume, which is why I ask how do I go about working out where my problem is regards Ramon -- You received 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.
RequestFactory - A request is already in progress
Hi All, I am currently in the process of building an app, initally based off the Roo framework. I am getting a A request is already in progress at the point where I call create for a child entity. Is there a way I can see what request contexts are in progress, so I can debug where my logic is off ?? Either using firebug or the eclipse debugger. The stack trace I get is Caused by: java.lang.IllegalStateException: A request is already in progress at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocked(AbstractRequestContext.java: 307) at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.create(AbstractRequestContext.java: 76) at isupro.client.scaffold.businessprocess.ui.AbstractBusinessProcessActivity.createNewObjectiveProxy(AbstractBusinessProcessActivity.java: 92) My method (createNewObjectiveProxy()) usese the existing request, created prior so that this new object is in the same context. public ObjectiveProxy createNewObjectiveProxy() { ObjectiveProxy obj = getRequest().create(ObjectiveProxy.class); obj.setId(editableBP.getId()); editableBP.getObjectives().add(obj); return obj; } Now, without looking at my code, it will be hard for anyone to assist I assume, which is why I ask how do I go about working out where my problem is regards Ramon -- You received 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
At 07:12 PM 11/8/2010, you wrote: My project gwt-comet implements server push: http://code.google.com/p/gwt-comet how are you testing it? i have not been able to do any kind of load testing withe either hymlunt or synctest. thanks On Nov 8, 11:27 am, Ray Tayek rta...@ca.rr.com 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. --- co-chair http://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.
Remove an Element from a Page
Hello, I have an HTML page: HomePage.html . body id = ThePage div id = TheItem /div /body I also have several other HTML pages. In my onModuleLoad I would like to remove TheItem from ThePage package my.client; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.ui.RootPanel; public class Application implements EntryPoint { @Override public void onModuleLoad() { RootPanel x = RootPanel.get(ThePage); DOM.removeChild(x.getBodyElement(), DOM.getElementById(TheItem)); } } This is not working. If I have Only one HTML Page the following seems to work. public class Application implements EntryPoint { @Override public void onModuleLoad() { DOM.removeChild(RootPanel.getBodyElement(), DOM.getElementById(TheItem)); } } Any ideas on how to remove a specific item from a specific page would make my day. Thanks, Raney -- You received 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.
I tried using em.clear(). I did this after loading and accessing my object. I also changed my fetch type to EAGER. Sadly it still fails ; ( -Dave On Nov 9, 6:59 am, dparish dpar...@gmail.com wrote: Thanks David. I tried LAZY and EAGER. Both caused the problem. For #2, that seems promising. There's an EntityManager clear method, but that would affect all threads using the entity manager. Any thoughts on how to do that detach? On Nov 8, 8:20 pm, David Chandler drfibona...@google.com wrote: 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 dpar...@gmail.com 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 ArrayListInternalTextinternalTextEntries; 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.seriali ze(ServerSerializationStreamWriter.java: 610) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object(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.seriali zeValue(ServerSerializationStreamWriter.java: 534) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass(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: ArrayListInternalText newText = new ArrayListInternalText(); 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 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: server push
One thing I would find interesting (and future safe) would be to port the following piece of code to GWT; http://weblog.bocoup.com/javascript-eventsource-now-available-in-firefox And then use deferred binding to use real EventSource on browsers that support it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 and Google Maps API
Sure, I have already taken a deep look at the API libraries and even experimented a little bit. Currently I am able to create a route between two addresses and display this route as a polyline. This polyline has n vertexes. Now I am pondering about how to move a graphical object along this polyline at a given speed. Any advices? Thanks in Advance! Stefan On 8 Nov., 22:18, Eric Ayers zun...@google.com wrote: Have you seen the Google API libraries for GWThttp://code.google.com/p/gwt-google-apis On Mon, Nov 8, 2010 at 2:27 PM, StrongSteve swe.sta...@gmail.com 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 athttp://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: OpenJPA GWT serialization problem.
Thanks David. I tried LAZY and EAGER. Both caused the problem. For #2, that seems promising. There's an EntityManager clear method, but that would affect all threads using the entity manager. Any thoughts on how to do that detach? On Nov 8, 8:20 pm, David Chandler drfibona...@google.com wrote: 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 dpar...@gmail.com 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 ArrayListInternalTextinternalTextEntries; 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.seriali ze(ServerSerializationStreamWriter.java: 610) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object(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.seriali zeValue(ServerSerializationStreamWriter.java: 534) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass(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: ArrayListInternalText newText = new ArrayListInternalText(); 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 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: Entire Site in GWT?
Hi Guys, Thanks for all the tips, im certainty going to take them on board when I make my choice. Im pretty sure im going to go with GWT now. The next step is to choose my server architecture. I really would like to have gone with GAE however I have done some research and read it cant handle files 1mb in size. As I need to do some image manipulation involving merging several 1mb PNGs into larger ones I think im going to be stuck if I use GAE. So my next question is does GWT play nice with other technologies and if so which do people recommend? I hope I haven't outstayed my welcome on this list! Cheers, Mike On Nov 9, 8:10 am, farmazone farmaz...@gmail.com wrote: Mike, I am also flash/flex guy. Websites built with GWT can have workflow almost the same as those built with flash (especially if you are using Flash Builder od FDT). This is a great advantage for AS3 programmers. But like flash it is not crawlable by google so you have to implement it by yourself. If you are using Tomcat - HtmlUnit is good choice. If not I recommend this approach:http://www.asual.com/jquery/address/. You should be familiar with SWFAddress so it do you no harm :) good luck On Nov 8, 5:49 pm, mike.cann mike.c...@gmail.com 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=gstq=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, thanx for your answer, and I seems to have gotten a bit further. I now struggle with devmode, and making changes to the code live. I change the final Label label = new Label ( Hello world1 ); to final Label label = new Label ( Changed label ); When I hit F5, the code should be replaced live, but I have to do a gwt compile, before the change is made. How can i fix this? Are there any real guids on all of this which I can read? I mean from creating project in maven, importing to eclipse, creating run configurations etc? There are so much to figure out.. would be really helpful if anyone made a thorough guide on this.. Thanks in advance, Sincerly Frank B On Nov 8, 8:45 pm, David Chandler drfibona...@google.com wrote: Hi Frank, Have a look athttp://www.google.com/codesearch/p?hl=en#A1edwVHBClQ/samples/expenses... 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 frank.bolvi...@gmail.com 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 witheclipse? 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 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: Deploying GWT project on Tomcat
After you compile your project, go into the war folder and zip up the contents of that folder. Name the zip file something.war where something will be what you want your url to be. So, if you are deploying to www.milamade.com, and named your war file dtrac.war, your app would be available at www.milamade.com/dtrac. Now, copy your war file to the webapps folder of your Tomcat server. The first time you do that, Tomcat will automatically extract it and create the necessary folder for you. When redeploying, you will still copy the new war file to the same location (overwriting the old one), but then you will need to run Tomcat manager and choose to reload the app. HTH, Chad Bourque www.milamade.com On Nov 9, 5:52 am, Pablo G.F blay...@gmail.com wrote: Hello: I want to deploy a GWT project on a Tomcat server. As I´ve read, all I have to do is compile the GWT project (by the option in Eclipse, for example) and then (the app name is menutemplate): - Create a directory on webapps (in the Tomcat path) with name, for example, myapp. - Copy war/menutemplate directory (output of compilation) into myapp. - Copy menutemplate.html and menutemplate.css into my app. Doing this, my app works, but If i add a service with a rpc call it doesn´t. I suppouse I have to specify the servlets in the web.xml which is on WEB-INF, but when I copy the WEB-INF into myapp directory, then I cannot run the application. Have I made any mistake during the process? or have I forgotten any step? 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: RequestFactory - A request is already in progress
I *think* that happens after you have fired a RequestContext. From looking at the code, which is a bit hard because of the DeferredBinding that's going on there, the locked variable in a RequestContext gets only reset to false, if the fired Request fails. So I think you need to use a new RequestContext. Regards, Tobias On Nov 9, 12:48 pm, Ramon Buckland ra...@thebuckland.com wrote: Hi All, I am currently in the process of building an app, initally based off the Roo framework. I am getting a A request is already in progress at the point where I call create for a child entity. Is there a way I can see what request contexts are in progress, so I can debug where my logic is off ?? Either using firebug or the eclipse debugger. The stack trace I get is Caused by: java.lang.IllegalStateException: A request is already in progress at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.checkLocke d(AbstractRequestContext.java: 307) at com.google.gwt.requestfactory.client.impl.AbstractRequestContext.create(Abs tractRequestContext.java: 76) at isupro.client.scaffold.businessprocess.ui.AbstractBusinessProcessActivity.c reateNewObjectiveProxy(AbstractBusinessProcessActivity.java: 92) My method (createNewObjectiveProxy()) usese the existing request, created prior so that this new object is in the same context. public ObjectiveProxy createNewObjectiveProxy() { ObjectiveProxy obj = getRequest().create(ObjectiveProxy.class); obj.setId(editableBP.getId()); editableBP.getObjectives().add(obj); return obj; } Now, without looking at my code, it will be hard for anyone to assist I assume, which is why I ask how do I go about working out where my problem is regards Ramon -- You received 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
On 9 nov, 15:55, Frank Bølviken frank.bolvi...@gmail.com wrote: Hi, thanx for your answer, and I seems to have gotten a bit further. I now struggle with devmode, and making changes to the code live. I change the final Label label = new Label ( Hello world1 ); to final Label label = new Label ( Changed label ); When I hit F5, the code should be replaced live, but I have to do a gwt compile, before the change is made. How can i fix this? Are there any real guids on all of this which I can read? I mean from creating project in maven, importing to eclipse, creating run configurations etc? There are so much to figure out.. would be really helpful if anyone made a thorough guide on this. If you want to use the Google Plugin for Eclipse to run DevMode (rather than mvn gwt:run) then have a look at http://code.google.com/eclipse/docs/faq.html#gwt_with_maven We use a special devmode profile in our (multi-module) project so that mvn package -Pdevmode actually means mvn war:exploded - Dmaven.test.skip=true -Dgwt.compiler.skip=true on the web app module, to speed things up (don't compile and run tests, don't compile client code to JS, just setup the webapp as an exploded war (suitable to be used as the -war folder of DevMode), with its dependencies in WEB- INF/lib). -- You received 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
I am getting this problem when I am running mvn gwt:run commandline option. According to http://jira.codehaus.org/browse/MGWT-49 , this has been fixed but when we run from commandline the problem is coming. So, I suspect this is problem with the repository. On Nov 9, 6:56 pm, gopinath.in@gmail.com gopinath.in@gmail.com wrote: I am also getting the same issue. I am not able get started with gwt, gae using spring roo. I am blocked. Here is the debug output. Settings\Gopinath\.m2\repository\com\google\appengine\appengine-java- sdk\1.3.7\appengine-java-sdk-1.3.7\lib\appengine-tools-api.jar;C: \Documents and Settings\Gopinath\.m2\repository\com\google\appengine \appengine-java-sdk\1.3.7\appengine-java-sdk-1.3.7\lib\impl\appengine- local-runtime.jar com.google.gwt.dev.DevMode -war C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT -gen C:\temp\petclinic\target \.generated -logLevel INFO -port -startupUrl / ApplicationScaffold.html -server com.google.appengine.tools.development.gwt.AppEngineLauncher org.springsource.roo.extrack.ApplicationScaffold ]] failed with status 1 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li fecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352)Causedby:org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command [[ C:\Program Files\Java\jdk1.6.0_02\jre\bin\java -javaagent:C:\Documents and Settings\Gopinath/.m2/repository/com/google/appengine/appengine- java-sdk/1.3.7/appengine-java-sdk-1.3.7/lib/agent/appengine-agent.jar - Xmx1024m -classpath C:\temp\petclinic\src\main\java;C:\temp\petclinic \src\main\aspect;C:\temp\petclinic\src\main\resources;C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT\WEB-INF\classes;C:\Documents and Settings\Gopinath\.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C: \Documents and Settings\Gopinath\.m2\repository\org\slf4j\slf4j-api \1.6.1\slf4j-api-1.6.1.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\slf4j\jcl-over-slf4j\1.6.1\jcl-over- slf4j-1.6.1.jar;C:\Documents and Settings\Gopinath\.m2\repository\org \slf4j\slf4j-log4j12\1.6.1\slf4j-log4j12-1.6.1.jar;C:\Documents and Settings\Gopinath\.m2\repository\org\aspectj\aspectjrt \1.6.10\aspectjrt-1.6.10.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\aspectj\aspectjweaver \1.6.10\aspectjweaver-1.6.10.jar;C:\Documents and Settings\Gopinath \.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C: \Documents and Settings\Gopinath\.m2\repository\net\sf\flexjson \flexjson\2.0\flexjson-2.0.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\roo \org.springframework.roo.annotations\1.1.0.RELEASE \org.springframework.roo.annotations-1.1.0.RELEASE.jar;C:\Documents and Settings\Gopinath\.m2\repository\org\springframework\spring-core \3.0.5.RELEASE\spring-core-3.0.5.RELEASE.jar;C:\Documents and Settings \Gopinath\.m2\repository\org\springframework\spring-asm\3.0.5.RELEASE \spring-asm-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\spring-context\3.0.5.RELEASE \spring-context-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\spring-beans\3.0.5.RELEASE\spring- beans-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath
Re: gwt 2.1, maven, eclipse 3.5
Sorry for seeming stupid. But I dont get it.. Is there any guide, which explains everything from creating a maven project, importing to eclipse, creating run configs etc? With GWT 2.1.0 Thanks, Sincerly Frank On Nov 9, 4:20 pm, Thomas Broyer t.bro...@gmail.com wrote: On 9 nov, 15:55, Frank Bølviken frank.bolvi...@gmail.com wrote: Hi, thanx for your answer, and I seems to have gotten a bit further. I now struggle with devmode, and making changes to the code live. I change the final Label label = new Label ( Hello world1 ); to final Label label = new Label ( Changed label ); When I hit F5, the code should be replaced live, but I have to do a gwt compile, before the change is made. How can i fix this? Are there any real guids on all of this which I can read? I mean from creating project in maven, importing to eclipse, creating run configurations etc? There are so much to figure out.. would be really helpful if anyone made a thorough guide on this. If you want to use the Google Plugin for Eclipse to run DevMode (rather than mvn gwt:run) then have a look athttp://code.google.com/eclipse/docs/faq.html#gwt_with_maven We use a special devmode profile in our (multi-module) project so that mvn package -Pdevmode actually means mvn war:exploded - Dmaven.test.skip=true -Dgwt.compiler.skip=true on the web app module, to speed things up (don't compile and run tests, don't compile client code to JS, just setup the webapp as an exploded war (suitable to be used as the -war folder of DevMode), with its dependencies in WEB- INF/lib). -- You received 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?
For our project we use Tomcat / Postgresql on server side. It works great. The hardest part is to be able to configure maven (if you use it) with gwt + wtp (eclipse tomcat plugin). But with the latest version of all the eclipse plugins, it should work fine. Nicolas. 2010/11/9 mike.cann mike.c...@gmail.com Hi Guys, Thanks for all the tips, im certainty going to take them on board when I make my choice. Im pretty sure im going to go with GWT now. The next step is to choose my server architecture. I really would like to have gone with GAE however I have done some research and read it cant handle files 1mb in size. As I need to do some image manipulation involving merging several 1mb PNGs into larger ones I think im going to be stuck if I use GAE. So my next question is does GWT play nice with other technologies and if so which do people recommend? I hope I haven't outstayed my welcome on this list! Cheers, Mike On Nov 9, 8:10 am, farmazone farmaz...@gmail.com wrote: Mike, I am also flash/flex guy. Websites built with GWT can have workflow almost the same as those built with flash (especially if you are using Flash Builder od FDT). This is a great advantage for AS3 programmers. But like flash it is not crawlable by google so you have to implement it by yourself. If you are using Tomcat - HtmlUnit is good choice. If not I recommend this approach:http://www.asual.com/jquery/address/. You should be familiar with SWFAddress so it do you no harm :) good luck On Nov 8, 5:49 pm, mike.cann mike.c...@gmail.com 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=gstq=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.comgoogle-web-toolkit%2bunsubscr...@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: can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
I am also getting the same issue. I am not able get started with gwt, gae using spring roo. I am blocked. Here is the debug output. Settings\Gopinath\.m2\repository\com\google\appengine\appengine-java- sdk\1.3.7\appengine-java-sdk-1.3.7\lib\appengine-tools-api.jar;C: \Documents and Settings\Gopinath\.m2\repository\com\google\appengine \appengine-java-sdk\1.3.7\appengine-java-sdk-1.3.7\lib\impl\appengine- local-runtime.jar com.google.gwt.dev.DevMode -war C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT -gen C:\temp\petclinic\target \.generated -logLevel INFO -port -startupUrl / ApplicationScaffold.html -server com.google.appengine.tools.development.gwt.AppEngineLauncher org.springsource.roo.extrack.ApplicationScaffold ]] failed with status 1 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) 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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352) Caused by: org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command [[ C:\Program Files\Java\jdk1.6.0_02\jre\bin\java -javaagent:C:\Documents and Settings\Gopinath/.m2/repository/com/google/appengine/appengine- java-sdk/1.3.7/appengine-java-sdk-1.3.7/lib/agent/appengine-agent.jar - Xmx1024m -classpath C:\temp\petclinic\src\main\java;C:\temp\petclinic \src\main\aspect;C:\temp\petclinic\src\main\resources;C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT\WEB-INF\classes;C:\Documents and Settings\Gopinath\.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C: \Documents and Settings\Gopinath\.m2\repository\org\slf4j\slf4j-api \1.6.1\slf4j-api-1.6.1.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\slf4j\jcl-over-slf4j\1.6.1\jcl-over- slf4j-1.6.1.jar;C:\Documents and Settings\Gopinath\.m2\repository\org \slf4j\slf4j-log4j12\1.6.1\slf4j-log4j12-1.6.1.jar;C:\Documents and Settings\Gopinath\.m2\repository\org\aspectj\aspectjrt \1.6.10\aspectjrt-1.6.10.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\aspectj\aspectjweaver \1.6.10\aspectjweaver-1.6.10.jar;C:\Documents and Settings\Gopinath \.m2\repository\javax\servlet\servlet-api\2.5\servlet-api-2.5.jar;C: \Documents and Settings\Gopinath\.m2\repository\net\sf\flexjson \flexjson\2.0\flexjson-2.0.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\roo \org.springframework.roo.annotations\1.1.0.RELEASE \org.springframework.roo.annotations-1.1.0.RELEASE.jar;C:\Documents and Settings\Gopinath\.m2\repository\org\springframework\spring-core \3.0.5.RELEASE\spring-core-3.0.5.RELEASE.jar;C:\Documents and Settings \Gopinath\.m2\repository\org\springframework\spring-asm\3.0.5.RELEASE \spring-asm-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\spring-context\3.0.5.RELEASE \spring-context-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\spring-beans\3.0.5.RELEASE\spring- beans-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\spring-expression\3.0.5.RELEASE \spring-expression-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\springframework\spring-aop\3.0.5.RELEASE\spring- aop-3.0.5.RELEASE.jar;C:\Documents and Settings\Gopinath\.m2\repository \aopalliance\aopalliance\1.0\aopalliance-1.0.jar;C:\Documents and Settings\Gopinath\.m2\repository\org\springframework\spring-aspects
use class from diferent module
Hi All. I have in project 2 custom module. home and game. project structure : com.game com.game.user com.game.user.UserService.java com.home com.home.Home.java com.Game.gwt.xml com.Home.gwt.xml when I wont use interface UserService in home module, console write error :... did you forget to inherit a required module? in Home.gwt.xml is : ?xml version=1.0 encoding=UTF-8? module rename-to='home' inherits name='com.google.gwt.user.User'/ inherits name='com.google.gwt.user.theme.standard.Standard'/ entry-point class='com.home.Home'/ source path='home'/ source path=game.user/ servlet path=/user class=com.server.UserServiceImpl/ /module when Im try made from com.game.user new module. with xml : ?xml version=1.0 encoding=UTF-8? module source path=user/ /module then wos working. but Im can`t compile project. thank you for your suggestion. -- You received 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
Upon further experimentation, I'm under the impression that version 2.1 of the gwt-maven-plugin described at http://mojo.codehaus.org/gwt-maven-plugin/ is not really ready for general use. I found at least two configuration defects in it. My recollection is a little vague regarding the specific problems. One had to do with an incorrect package specification having to do with Message class generation. The other was a missing classpath entry for some generated classes, one of which was Messages.java I think. I don't think that there has been a general announcement that this plugin is really ready for use. I'll be holding off using it for a while and just stick with standard gwt generated projects. I did get quite a way with the plugin and it is looking pretty promising. On Nov 9, 8:31 am, gopinath.in@gmail.com gopinath.in@gmail.com wrote: I am getting this problem when I am running mvn gwt:run commandline option. According tohttp://jira.codehaus.org/browse/MGWT-49, this has been fixed but when we run from commandline the problem is coming. So, I suspect this is problem with the repository. On Nov 9, 6:56 pm, gopinath.in@gmail.com gopinath.in@gmail.com wrote: I am also getting the same issue. I am not able get started with gwt, gae using spring roo. I am blocked. Here is the debug output. Settings\Gopinath\.m2\repository\com\google\appengine\appengine-java- sdk\1.3.7\appengine-java-sdk-1.3.7\lib\appengine-tools-api.jar;C: \Documents and Settings\Gopinath\.m2\repository\com\google\appengine \appengine-java-sdk\1.3.7\appengine-java-sdk-1.3.7\lib\impl\appengine- local-runtime.jar com.google.gwt.dev.DevMode -war C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT -gen C:\temp\petclinic\target \.generated -logLevel INFO -port -startupUrl / ApplicationScaffold.html -server com.google.appengine.tools.development.gwt.AppEngineLauncher org.springsource.roo.extrack.ApplicationScaffold ]] failed with status 1 at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 203) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 148) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java: 140) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(Lif ecycleModuleBuilder.java: 59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(Li fecycleStarter.java: 183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStart er.java: 161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:314) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:151) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:445) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:168) at org.apache.maven.cli.MavenCli.main(MavenCli.java:132) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp l.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.j ava: 290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java: 230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher .java: 409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java: 352)Causedby:org.codehaus.mojo.gwt.shell.ForkedProcessExecutionException: Command [[ C:\Program Files\Java\jdk1.6.0_02\jre\bin\java -javaagent:C:\Documents and Settings\Gopinath/.m2/repository/com/google/appengine/appengine- java-sdk/1.3.7/appengine-java-sdk-1.3.7/lib/agent/appengine-agent.jar - Xmx1024m -classpath C:\temp\petclinic\src\main\java;C:\temp\petclinic \src\main\aspect;C:\temp\petclinic\src\main\resources;C:\temp\petclinic \target\extrack-0.1.0.BUILD-SNAPSHOT\WEB-INF\classes;C:\Documents and Settings\Gopinath\.m2\repository\log4j\log4j\1.2.16\log4j-1.2.16.jar;C: \Documents and Settings\Gopinath\.m2\repository\org\slf4j\slf4j-api \1.6.1\slf4j-api-1.6.1.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\slf4j\jcl-over-slf4j\1.6.1\jcl-over- slf4j-1.6.1.jar;C:\Documents and Settings\Gopinath\.m2\repository\org \slf4j\slf4j-log4j12\1.6.1\slf4j-log4j12-1.6.1.jar;C:\Documents and Settings\Gopinath\.m2\repository\org\aspectj\aspectjrt \1.6.10\aspectjrt-1.6.10.jar;C:\Documents and Settings\Gopinath \.m2\repository\org\aspectj\aspectjweaver
Re: can't import into eclipse using mojo.codehaus.org gwt-maven-plugin 2.1.0
I have the same issue. If i found anything i will post here... On Nov 8, 5:10 pm, cri chuck.irvine...@gmail.com wrote: 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 chuck.irvine...@gmail.com wrote: Actually, it was my mistake (I'm a maven rookie). I was accidentally usingversion 1.2 of the plugin. This version doesn't seem to automatically generate all of the misceclipsefiles that version 2.1.0creates. However, now I have another problem... Now when Iimportthe resulting projectintoeclipse, 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 jefftschwa...@gmail.com wrote: Try theimportfrom File System option. On Mon, Nov 8, 2010 at 10:32 AM, cri chuck.irvine...@gmail.com wrote: The docs athttp://mojo.codehaus.org/gwt-maven-plugin/saythat generated projects can then be imported as existing projectinto Eclipse. This isn't immediately possible since the generated projects don't createeclipse.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.comgoogle-web-toolkit%2Bunsubs 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.
gwtupload.client.SingleUploader
hi, i'm developing an application which uses singleUploader class. I would know if there are a way to embed the popup with progress bar in my own popup. I think the probem is convert this popup into a panel or something like this but i dont know how i can get what i want. SingleUploader singleUploader = new SingleUploader(); singleUploader.addOnFinishUploadHandler(onFinishUploaderHandler); winModal.addItem(singleUploader); This is my code, but how i said, when i send a file, a popup with progress bar is showed. and what i need is embeed this progress bar in my own popup. Thanks all, -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Simple XML Reader Problem
Hello there, first post here. I've been trying to get my head around how to load an XML file from file (ill deal later with actually uploading it to the server via the interface) and here's what I've got from reading different posts on the net, as well as the Simple XML Reader sample. package com.moodlequizeditor.project.domparser; import com.google.gwt.user.client.HTTPRequest; import com.google.gwt.user.client.ResponseTextHandler; import com.google.gwt.xml.client.Document; import com.google.gwt.xml.client.XMLParser; package com.moodlequizeditor.project.domparser; import com.google.gwt.user.client.HTTPRequest; import com.google.gwt.user.client.ResponseTextHandler; import com.google.gwt.xml.client.Document; import com.google.gwt.xml.client.XMLParser; public class DomMain { public static void main() { HTTPRequest.asyncGet(myxml.xml, new ResponseTextHandler() { public void onCompletion(String responseText) { try { Document document = XMLParser.parse(responseText); new XMLLoad(document); } catch (Exception e) { e.printStackTrace(System.err); } } }); } } For some reason though, it's not reading 'myxml.xml' (I've put it literally everywhere in my structure) but I get the following in console: [WARN] 404 - GET /com.moodlequizeditor.project.MoodleQuizEditor/ myxml.xml (127.0.0.1) 1441 bytes Request headers Host: 127.0.0.1: User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv: 1.9.2.12) Gecko/20101026 Firefox/3.6.12 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/ *;q=0.8 Accept-Language: en-gb,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 115 Connection: keep-alive Referer: http://127.0.0.1:/com.moodlequizeditor.project.MoodleQuizEditor/hosted.html?com_moodlequizeditor_project_MoodleQuizEditor Content-Type: text/plain; charset=utf-8 Response headers Content-Type: text/html; charset=iso-8859-1 Content-Length: 1441 Thanks alot for the help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Upgrade to GWT 2.1.0 with maven2 and now rpc 404
Hi all, I upgrading my GWT 2.0.4 project to GWT 2.1.0. i use maven 2.2.1 with gwt-maven-plugin 2.1.0. I've 1 General Servlet and i use gwtrpc-spring for my rpcs. Now i've 404 on my rpc call and when i debug, i seeing that my general Servlet don't work. ?xml version=1.0? web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd; display-namemyproject/display-name welcome-file-list welcome-fileindex.html/welcome-file /welcome-file-list context-param param-namecontextConfigLocation/param-name param-valueclasspath:myproject/server/webApplicationContext.xml/ param-value /context-param !-- Servlets -- servlet servlet-namedispatcher/servlet-name servlet-classorg.gwtrpcspring.RemoteServiceDispatcher/servlet- class /servlet servlet-mapping servlet-namedispatcher/servlet-name url-pattern*.rpc/url-pattern /servlet-mapping !-- Listener -- listener listener- classorg.springframework.web.context.ContextLoaderListener/listener- class /listener !-- FILTRE -- filter filter-nameWebssoFilter/filter-name descriptionFiltre d'authentification websso/description filter-classmyproject.server.base.securite.AccessioWebssoFilter/ filter-class /filter filter-mapping filter-nameWebssoFilter/filter-name url-pattern/*/url-pattern /filter-mapping filter filter-nameOpenSessionInViewFilter/filter-name filter-class org.springframework.orm.hibernate3.support.OpenSessionInViewFilter/ filter-class init-param param-namesessionFactoryBeanName/param-name param-valuesessionFactory/param-value /init-param init-param param-namesingleSession/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-nameOpenSessionInViewFilter/filter-name servlet-namedispatcher/servlet-name dispatcherREQUEST/dispatcher /filter-mapping filter filter-nameSecurityFilter/filter-name filter-classmyproject.server.base.securite.SecurityFilter/filter- class /filter filter-mapping filter-nameSecurityFilter/filter-name url-pattern/*/url-pattern /filter-mapping /web-app May be an idea ? -- You received 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.
Evaluating GWT 2.1 - Dynamic Module Loading
Hello Community! im just evaluating GWT for our new projects and im currently planing to re-write a huge project that is originaly written in pure javascript (with some Javascript Frameworks) and a Java Servlet. To do that in GWT i need the possibility to dynamically load GWT modules. I know, it is not a new idea and there are many threads about this topic arround this forum group, but some of them are very old and some of them are more about YAGNI-principle (You ain't gonna need it) I would like to know how to do this in the current GWT 2.1 version - or is it even possible? I read some articles which said that its not possible in 2.0 any more - is this correct? Some background information about our project: At the top, there is a management application, that has the possibility to start several sub-applications and provides useful posibilities to these sub-applications. A sub-application is installed to the management application by an XML file that was read by a Servlet. The XML contains many meta informations about the sub-apps and the URLs to the js files. For security reasons, not every user is able to start all sub- applications, so the Servlet also checks permissions and so on... With GWT we want to do a little re-design: A default boot-module is loading the sub-Application files dynamically (as needed) via AJAX and executes their defined boot-methods (defined in interfaces) to start the sub-apps. Is this possible in GWT? Thanks in advance!!! regards Manuel regards -- You received 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: Reload CellTable data
Is there an easy way to do something likecellTable.reload() orcellTable.refresh() ? cellTable.redraw() call the method cellTable.setRowData(int startIndex, ListT ListValues) when you update your data, next simply call cellTable.setDataRow(0, ListValues) where 0 is first value in ListValues -- You received 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.
update specific area
how can I update the content inside a div -- You received 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.
error when creating first web app
Hello All, i installed GWT as a plugin i Eclipse. I have jdk 1.6 When i created the first web application the following error appears: Java Model Exception: Core Exception [code 0] Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java: 50) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java: 728) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java: 1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java: 106) at org.eclipse.jface.operation.ModalContext $ModalContextThread.run(ModalContext.java:121) Caused by: org.eclipse.core.runtime.CoreException: Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. at com.google.gwt.eclipse.core.runtime.tools.WebAppProjectCreatorRunner.createProject(WebAppProjectCreatorRunner.java: 53) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.createGWTProject(WebAppProjectCreator.java: 532) at com.google.gdt.eclipse.suite.wizards.WebAppProjectCreator.create(WebAppProjectCreator.java: 294) at com.google.gdt.eclipse.suite.wizards.NewWebAppProjectWizard.finishPage(NewWebAppProjectWizard.java: 147) at org.eclipse.jdt.internal.ui.wizards.NewElementWizard $2.run(NewElementWizard.java:116) at org.eclipse.jdt.internal.core.BatchOperation.executeOperation(BatchOperation.java: 39) at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java: 728) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java: 1800) at org.eclipse.jdt.core.JavaCore.run(JavaCore.java:4694) at org.eclipse.jdt.internal.ui.actions.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java: 106) at org.eclipse.jface.operation.ModalContext $ModalContextThread.run(ModalContext.java:121) !SUBENTRY 1 com.google.gwt.eclipse.core 4 0 2010-11-09 10:48:05.687 !MESSAGE Invocation of com.google.gwt.user.tools.WebAppCreator failed. See the error log for more details. -- You received 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.
enum for proxy in mvp framework
I need to expose an enum java type in the client side, is this possible to do without a proxy? I tried with: package com.foo.client.managed.activity; public class DeviceEditActivityWrapper implements Activity{ public interface ViewV extends ProxyEditViewDeviceProxy, V extends ProxyEditViewDeviceProxy, V { void setTypePickerValues(CollectionType values); } ... public void start(AcceptsOneWidget display, EventBus eventBus) { view.setTypePickerValues(Arrays.asList(Type.values())); wrapped.start(display, eventBus); } } But this throw a error because the Type class is located server package inside. -- You received 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.
CheckboxCell as SelectionModel provider
Hi all, I'm trying to get a CheckboxCell working as a selector for the row, but it doesn't work. And there is no getValue() on the CheckboxCell as well, so any weird saving of added checkboxes is no alternative as well. The code is as follows: ... cellTable = new CellTableDtoContactList(); cellTable.setSelectionModel(new MultiSelectionModelDtoContactList()); flowPanel.add(cellTable); cellTable.addColumn(new ColumnDtoContactList, Boolean( new CheckboxCell(true)) { @Override public Boolean getValue(DtoContactList object) { return false; } }, new TextHeader(Select)); ... Because it says 'true' in the CheckboxCell, it should function as a selection controller, right? Well, it doesn't: @Override public ListDtoContactList getSelected() { MultiSelectionModel? super DtoContactList model = (MultiSelectionModel? super DtoContactList) cellTable.getSelectionModel(); LOG.log(Level.INFO, selected size= + model.getSelectedSet().size()); Thanks for any hints! Baloe -- You received 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! I had a rough last week trying to upgrade our application to 2.1, but I think I finally got it working when the gwt maven plugin was released. Relevant parts of the pom: project ... properties gwt.version2.1.0/gwt.version /properties ... build finalName${project.artifactId}/finalName outputDirectory${basedir}/war/WEB-INF/classes/outputDirectory plugins !-- Eclipse Project Generation -- plugin artifactIdmaven-eclipse-plugin/artifactId configuration additionalProjectnatures projectnaturecom.google.gwt.eclipse.core.gwtNature/ projectnature projectnaturecom.google.gdt.eclipse.core.webAppNature/ projectnature /additionalProjectnatures additionalBuildcommands buildcommandcom.google.gwt.eclipse.core.gwtProjectValidator/ buildcommand buildcommandcom.google.gdt.eclipse.core.webAppProjectValidator/ buildcommand /additionalBuildcommands classpathContainers classpathContainerorg.eclipse.jdt.launching.JRE_CONTAINER/ classpathContainer classpathContainercom.google.gwt.eclipse.core.GWT_CONTAINER/ classpathContainer /classpathContainers excludes !--These are provided by the GWT container -- excludecom.google.gwt:gwt-user/exclude excludecom.google.gwt:gwt-dev/exclude /excludes /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectory${basedir}/war/warSourceDirectory webappDirectory${basedir}/war/webappDirectory /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version${gwt.version}/version configuration moduleour.module/module warSourceDirectory${basedir}/war/warSourceDirectory inplacetrue/inplace i18nConstantsBundles i18nConstantsBundleour.gwt.shared.i18n.OurConstants/ i18nConstantsBundle /i18nConstantsBundles i18nMessagesBundles i18nMessagesBundleour.gwt.shared.i18n.OurMessages/ i18nMessagesBundle /i18nMessagesBundles localWorkers2/localWorkers /configuration executions execution idGeneration/id phasegenerate-sources/phase goals goalgenerateAsync/goal goali18n/goal /goals /execution execution idCompilation/id phaseprepare-package/phase goals goalcompile/goal /goals /execution /executions /plugin /plugins /build ... !-- Dependencies -- dependencies ... !-- GWT -- dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwt.version}/version scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId version${gwt.version}/version scopeprovided/scope /dependency ... /dependencies /project The maven eclipse plugin should include the GWT SDK which is set as default in your project this way. One minor obstacle remains though: when running the debugger (developer mode) in eclipse it looks for
generic service interfaces
Hello, i'm trying to implement a 'Command Pattern' in my application, as suggested in 'Best Practices For Architecting Your GWT App' (http:// www.google.com/intl/de-DE/events/io/2009/sessions/GoogleWebToolkitBestPractices.html). I've been looking at gwt-dispatch and have taken some inspirations from it, but i want to make my own for educational reasons. Now i'm having a problem with the service interfaces for what shall be my 'Command Service' (where all the different types of actions are assigned to specific handlers / responses for that action). The project builds fine in eclipse, but as soon as i access my application (i run it in development mode) i get the following errors (via the Development Mode Tab in eclipse; similar errors occur when i try to gwt-compile): 16:18:20.498 [ERROR] [spi_gwt] Line 11: The type CommandService_Proxy must implement the inherited abstract method CommandServiceAsync.execute(A, AsyncCallbackT) 16:18:20.529 [ERROR] [spi_gwt] Line 23: Name clash: The method execute(Action, AsyncCallback) of type CommandService_Proxy has the same erasure as execute(A, AsyncCallbackT) of type CommandServiceAsync but does not override it and thus 16:18:20.607 [ERROR] [spi_gwt] Deferred binding failed for 'de.leo.spi.client.services.CommandService'; expect subsequent failures now my question is, what am i doing wrong here? i've defined and implemented other services (that were not generic) earlier, and never had no such problems. heres how my service interfaces look like: / *--- */ package de.leo.spi.client.services; import com.google.gwt.user.client.rpc.RemoteService; import com.google.gwt.user.client.rpc.RemoteServiceRelativePath; import de.leo.spi.shared.action.Action; import de.leo.spi.shared.response.Response; @RemoteServiceRelativePath(command) public interface CommandService extends RemoteService{ T extends Response, A extends ActionT T execute(A action); } / *--- */ package de.leo.spi.client.services; import com.google.gwt.user.client.rpc.AsyncCallback; import de.leo.spi.shared.action.Action; import de.leo.spi.shared.response.Response; public interface CommandServiceAsync { T extends Response, A extends ActionT void execute(A action, AsyncCallbackT callback); } -- You received 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 1.5.3 + Liferay 5.1.2 : Internationalisation Issue
Hi, I am unable to get GWT 1.5.3 internationalisation working for a GWT app running inside a portlet inside Liferay 5.1.2. and I am hoping someone can help me. I am using German as a test language for some of my strings. I have everything setup what I think is correctly but all I see is the default (English) language on my application, even though GWT generates the german version of the *.cache.html files and I can see the checking for the german locale in the *.nocache.js file. I have made the following changes to my application to support Internationalisation: 1. Added an AppMessages_de.properties file containing the german strings. This is in the same client package as the AppMessages.java class which is defined as: public interface AppMessages extends Messages { The messages are instantiated as: messages = (AppMessages) GWT.create(AppMessages.class); 2. Updated my App.gwt.xml: Added: inherits name=com.google.gwt.i18n.I18N/ extend-property name=locale values=de/ Complete File: module inherits name='com.google.gwt.user.User'/ inherits name='org.gwtwidgets.WidgetLibrary'/ inherits name=com.google.gwt.i18n.I18N/ extend-property name=locale values=de/ inherits name=com.thapar.gwt.user.ui.SimpleDatePicker/ entry-point class='mycompany.myproduct.portlet.rvui.client.App'/ servlet path='/download' class='mycompany.myproduct.portlet.rvui.server.servlet.FileDownloadServlet'/ servlet path='/upload' class='mycompany.myproduct.portlet.rvui.server.servlet.FileUploadServlet'/ servlet path='/logout' class='mycompany.myproduct.portlet.rvui.server.servlet.LogoutServlet'/ servlet path=/servlet/streamServiceServlet class=mycompany.myproduct.portlet.rvui.server.rpc.StreamServiceImpl / stylesheet src='App.css'/ /module 3. Updated my App.html file to add the meta tag for the locale in between the head/ tags: meta name=gwt:property content=locale=de So, as mentioned, GWT successfully creates the German *.cache.html files and I can see the German strings defined in these files but for some reason, the locale setting is not getting through the app to cause it to use the correct German version. Any help would be very much appreciated. Thanks a lot. -- You received 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.
Eclipse 3.7 and GWT plugin
Hi! Can I use GWT plugin with Eclipse 3.7? 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: Accessing GWT app deployed on Jetty fails
I solved the issue. I've to add webAppDirectory to the GWT maven plugin. The generated files were not placed in my webapp directory. They were created in the target directory. The webapp only contains a few files, but not all of them. Here's my actual working pom file: ?xml version=1.0 encoding=UTF-8? project xmlns=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; !-- POM generated by gwt-maven-plugin archetype -- parent artifactIddashboard2/artifactId groupIdcom.dev/groupId version0.0.1-SNAPSHOT/version /parent modelVersion4.0.0/modelVersion groupIdcom.dev/groupId artifactIddashboardClient/artifactId nameDev Bauhaus Dashboard Client/name packagingwar/packaging version0.0.1-SNAPSHOT/version properties maven.compiler.source1.6/maven.compiler.source maven.compiler.target1.6/maven.compiler.target /properties dependencies !-- project dependencies -- dependency groupIdcom.dev/groupId artifactIddashboardServer/artifactId version${project.version}/version /dependency !-- Spring dependencies -- dependency groupIdorg.springframework/groupId artifactIdspring-webmvc/artifactId /dependency !-- GWT dependencies (from central repo) -- dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId scoperuntime/scope /dependency dependency groupIdcom.google.gwt/groupId artifactIdgwt-user/artifactId scopeprovided/scope /dependency dependency groupIdcom.octo.gwt.test/groupId artifactIdgwt-test-utils/artifactId scopetest/scope /dependency !-- test -- dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.7/version scopetest/scope /dependency /dependencies build outputDirectorysrc/main/webapp/WEB-INF/classes/outputDirectory resources resource directorysrc/main/java/directory includes include**/*.java/include include**/*.gwt.xml/include /includes /resource resource directorysrc/main/resources/directory /resource /resources plugins plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration webappDirectorysrc/main/webapp/webappDirectory webXmlsrc/main/webapp/WEB-INF/web.xml/webXml /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId configuration source${maven.compiler.source}/source target${maven.compiler.target}/target encodingUTF-8/encoding /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-resources-plugin/artifactId configuration encodingUTF-8/encoding /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId /plugin plugin groupIdorg.apache.maven.plugins/groupId
Re: Reload CellTable data
Is there an easy way to do something like cellTable.reload() orcellTable.refresh() ? when you need refresh data from cellTable simply call cellTable.setRowData(0, ListValues) where ListValues contains your changed data Below code fragment of implementation redraw() // package com.google.gwt.user.cellview.client class HasDataPresenterT implements HasDataT, HasKeyProviderT, HasKeyboardPagingPolicy { /** * Redraw the list with the current data. */ public void redraw() { lastContents = null; setRowData(pageStart, rowData); } } -- You received 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.
The data from an external URL should be displayed in a GWT tab widget.
The data from an external URL should be displayed in a GWT tab widget. The parameters to the external URL, varies depending upon user preferences. This URL returns javascript code, that has to be embedded in script tag on GWT side so that the browser executes it to display the appropriate data. Embedding the javascript response in GWT, using a script tag, within the existing tab widget, is not rendering the script properly in Mozilla, whereas IE does not execute the script at all. Any ideas would be great! -- You received 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.
Request Builder
When using GWT RPC mechanism , the proxy class calls the method on RequestBuilder to which it sends the parameterized requestData. I want to make this independently in my presenter. can anyone suggest how to do this RequestBuilder rb = doPrepareRequestBuilderImpl(responseReader, methodName, invocationCount, requestData, callback); -- You received 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?
Checkout http://code.google.com/p/guit-ajax-crawler/ for Ajax crawlability On Tue, Nov 9, 2010 at 10:19 AM, Nicolas Antoniazzi nicolas.antonia...@gmail.com wrote: For our project we use Tomcat / Postgresql on server side. It works great. The hardest part is to be able to configure maven (if you use it) with gwt + wtp (eclipse tomcat plugin). But with the latest version of all the eclipse plugins, it should work fine. Nicolas. 2010/11/9 mike.cann mike.c...@gmail.com Hi Guys, Thanks for all the tips, im certainty going to take them on board when I make my choice. Im pretty sure im going to go with GWT now. The next step is to choose my server architecture. I really would like to have gone with GAE however I have done some research and read it cant handle files 1mb in size. As I need to do some image manipulation involving merging several 1mb PNGs into larger ones I think im going to be stuck if I use GAE. So my next question is does GWT play nice with other technologies and if so which do people recommend? I hope I haven't outstayed my welcome on this list! Cheers, Mike On Nov 9, 8:10 am, farmazone farmaz...@gmail.com wrote: Mike, I am also flash/flex guy. Websites built with GWT can have workflow almost the same as those built with flash (especially if you are using Flash Builder od FDT). This is a great advantage for AS3 programmers. But like flash it is not crawlable by google so you have to implement it by yourself. If you are using Tomcat - HtmlUnit is good choice. If not I recommend this approach:http://www.asual.com/jquery/address/. You should be familiar with SWFAddress so it do you no harm :) good luck On Nov 8, 5:49 pm, mike.cann mike.c...@gmail.com 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=gstq=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.comgoogle-web-toolkit%2bunsubscr...@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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
checking a HTML checkbox if its checked with GWT
Hi everyone i have a HTML checkbox : input type=checkbox id=cb112 ... how can i get notified in GWT if it's been checked? i tried to create a javascript method with JSNI public static native void timeCheckedStatusBridge() /*-{ $wnd.test() = function(isChecked) { return @com.example.MyClass::myJavaMethod(I)(isChecked); } }-*/; i call timeCheckedStatusBridge() right after onModul load (GWT requires this) an then i call my test(isChecked) JavaScript function at the checkbox's onclick element: onclick=test(this.checked); but myJavaMethod never ever gets called. best regards -- You received 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: Eclipse 3.7 and GWT plugin
No, GPE does not currently work with Eclipse 3.7. We will definitely have a GPE version that works with Eclipse 3.7 by the time that it ships in June of 2011. It is still to be determined at what point we can release a preview of Eclipse 3.7 support. On Tue, Nov 9, 2010 at 6:11 AM, Vasyl Stashuk vasyl.stas...@gmail.comwrote: Hi! Can I use GWT plugin with Eclipse 3.7? 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Miguel -- You received 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: CheckboxCell as SelectionModel provider
On 9 nov, 16:40, Baloe nielsba...@gmail.com wrote: Hi all, I'm trying to get a CheckboxCell working as a selector for the row, but it doesn't work. And there is no getValue() on the CheckboxCell as well, so any weird saving of added checkboxes is no alternative as well. The code is as follows: ... cellTable = new CellTableDtoContactList(); cellTable.setSelectionModel(new MultiSelectionModelDtoContactList()); flowPanel.add(cellTable); cellTable.addColumn(new ColumnDtoContactList, Boolean( new CheckboxCell(true)) { @Override public Boolean getValue(DtoContactList object) { return false; } }, new TextHeader(Select)); ... Because it says 'true' in the CheckboxCell, it should function as a selection controller, right? No. Thanks for any hints! See http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable // Checkbox column. This table will uses a checkbox column for selection. // Alternatively, you can call cellTable.setSelectionEnabled(true) to enable // mouse selection. ColumnContactInfo, Boolean checkColumn = new ColumnContactInfo, Boolean( new CheckboxCell(true)) { @Override public Boolean getValue(ContactInfo object) { // Get the value from the selection model. return selectionModel.isSelected(object); } }; checkColumn.setFieldUpdater(new FieldUpdaterContactInfo, Boolean() { public void update(int index, ContactInfo object, Boolean value) { // Called when the user clicks on a checkbox. selectionModel.setSelected(object, value); } }); cellTable.addColumn(checkColumn, SafeHtmlUtils.fromSafeConstant(br)); -- You received 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-dnd
Of course it is possible. See live demos http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragAndDropDemo/DragAndDropDemo.html The demo 8 should tell you how (see java sources). I think you have to tell the drag controller to make a given panel draggable by a given child. i.e. // make the panel draggable by its header dragController.makeDraggable(verticalPanel, header); Hope that helps. On Nov 9, 2:03 am, Alexei Telles alexeitel...@gmail.com wrote: 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: enum for proxy in mvp framework
On 8 nov, 22:56, Gabriel 3dm...@gmail.com wrote: I need to expose an enum java type in the client side, is this possible to do without a proxy? Yes, you need: 1. a *.gwt.xml in the package hierarchy of your enum, that you can then inherits/ from your app, 2. this gwt.xml to include the enum in the source path, e.g. source path=server/path/to includes=MyEnum.java / -- You received 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.
Retrying requests in case of Multiple requests to RPC servlet
Can help me how to write Retry logic for requests in order avoid 500 server if there are simultaneous requests. I'm thinking of implementing a workaround with a custom RequestBuilder. RequestBuilder.send() would start a Timer timing out after 300ms. On timeout it would abort the request and send a new request. Hopefully this will cancel IE's behaviour of resending the request with a missing body. -- You received 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.
uibinder and nested layout
Hello, I have a requirement for an HTML page with a top horizontal header bar, a large middle panel that will itself contain the left navigation column, a middle content panel and a right side margin for showing Associated content. At the bottom is a footer with its own content. To lay this out, I want to use UiBinder. How do I nest UiBinder fields? In other words, how to refer to @UiFields that are declared not in the main outer page class but in classes that are @UiFields of the main page class? Is it even possible to nest UI classes into one layout? Thank you list! Sachin -- You received 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)
I guess this is the relevant part : A new Proxy interface will be added as a superclass of ValueProxy and EntityProxy to allow RequestFactory.create to operate on both value and entity types. Because ValueProxy doesn't have a stableId() method, there's no way to use a VP with a call to find() or with any other service method that has an EntityProxyId argument. If you think about a Date object, there's no real meaning in giving a Date an id. If an EntityProxy has a value property, all of the properties of the VP are checked for mutations and sent to the server. The value in the domain object will be replaced if anything in the VP's state has changed. http://code.google.com/p/google-web-toolkit/issues/detail?id=5522 http://code.google.com/p/google-web-toolkit/issues/detail?id=5357 On Nov 9, 10:19 am, Thomas Broyer t.bro...@gmail.com wrote: On 9 nov, 03:01, David Chandler drfibona...@google.com wrote: It's still too early to call a release date. The RequestFactory enhancements are in code review and should be going into trunk shortly. Seehttp://gwt-code-reviews.appspot.com/1062801/show Or maybe they're already there:http://code.google.com/p/google-web-toolkit/source/detail?r=9189 The commit log references a different code review though, I don't know what the differences are, maybe Bob could give details? -- You received 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
Thanks for everyones help.. with my stupid questions. But hey... I need to learn the best way. Is there no help in getting a complete guide with the basic steps from issuing mvn archetype:generate until deployment in a server in eclipse for developing real time? Thanks.. Frank B On Nov 9, 10:40 am, Karl karl.rest...@gmail.com wrote: Hi Frank! I had a rough last week trying to upgrade our application to 2.1, but I think I finally got it working when the gwt maven plugin was released. Relevant parts of the pom: project ... properties gwt.version2.1.0/gwt.version /properties ... build finalName${project.artifactId}/finalName outputDirectory${basedir}/war/WEB-INF/classes/outputDirectory plugins !-- Eclipse Project Generation -- plugin artifactIdmaven-eclipse-plugin/artifactId configuration additionalProjectnatures projectnaturecom.google.gwt.eclipse.core.gwtNature/ projectnature projectnaturecom.google.gdt.eclipse.core.webAppNature/ projectnature /additionalProjectnatures additionalBuildcommands buildcommandcom.google.gwt.eclipse.core.gwtProjectValidator/ buildcommand buildcommandcom.google.gdt.eclipse.core.webAppProjectValidator/ buildcommand /additionalBuildcommands classpathContainers classpathContainerorg.eclipse.jdt.launching.JRE_CONTAINER/ classpathContainer classpathContainercom.google.gwt.eclipse.core.GWT_CONTAINER/ classpathContainer /classpathContainers excludes !--These are provided by the GWT container -- excludecom.google.gwt:gwt-user/exclude excludecom.google.gwt:gwt-dev/exclude /excludes /configuration /plugin plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-war-plugin/artifactId configuration warSourceDirectory${basedir}/war/warSourceDirectory webappDirectory${basedir}/war/webappDirectory /configuration /plugin plugin groupIdorg.codehaus.mojo/groupId artifactIdgwt-maven-plugin/artifactId version${gwt.version}/version configuration moduleour.module/module warSourceDirectory${basedir}/war/warSourceDirectory inplacetrue/inplace i18nConstantsBundles i18nConstantsBundleour.gwt.shared.i18n.OurConstants/ i18nConstantsBundle /i18nConstantsBundles i18nMessagesBundles i18nMessagesBundleour.gwt.shared.i18n.OurMessages/ i18nMessagesBundle /i18nMessagesBundles localWorkers2/localWorkers /configuration executions execution idGeneration/id phasegenerate-sources/phase goals goalgenerateAsync/goal goali18n/goal /goals /execution execution idCompilation/id phaseprepare-package/phase goals goalcompile/goal /goals /execution /executions /plugin /plugins /build ... !-- Dependencies -- dependencies ... !-- GWT -- dependency groupIdcom.google.gwt/groupId artifactIdgwt-servlet/artifactId version${gwt.version}/version scoperuntime/scope
Deferred Binding with interfaces
Hello group, I've just got a quick question. Is it possible to do deferred binding with interfaces? Background: I would like to change the client bundle or constants interfaces, depending on the user. The problem is, that the client bundle or constants implementation has to be an interface itself. I've tried to implement it, but it always says Deferred binding result type classname should not be abstract This is my general class, that should be replaced: public interface MyResources { public static final MyResources INSTANCE = GWT.create(MyResources.class); CssResource css(); TextResource getSynchronousTextResource(); ExternalTextResource getAsynchronousTextResource(); ImageResource getDLRLogo(); } Here is one of implementations public interface GoodByeResources extends ClientBundle, MyResources { public static final GoodByeResources INSTANCE = GWT.create(GoodByeResources.class); @Source(files/test.css) CssResource css(); @Source(files/test1.txt) TextResource getSynchronousTextResource(); @Source(files/test2.txt) ExternalTextResource getAsynchronousTextResource(); @Source(files/dlk.jpeg) ImageResource getDLKLogo(); } Here is a usage example: ImageWindow cmdw = new ImageWindow(myConstants.caption(), MyResources.INSTANCE.getDLKLogo()); And this is my configuration: replace-with class=gwt.map.client.constantstest.HelloResources when-type-is class=gwt.map.client.constantstest.MyResources/ when-property-is name=alerter value=hello/ /replace-with replace-with class=gwt.map.client.constantstest.GoodByeResources when-type-is class=gwt.map.client.constantstest.MyResources/ when-property-is name=alerter value=goodbye/ /replace-with Is there any way, I could do this? Maybe a concrete class with an inner interface? Can I inject interfaces with GIN? Thanks in advance! Bye Thalles -- You received 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)
On 9 nov, 18:07, koma k...@koma.be wrote: I guess this is the relevant part : A new Proxy interface will be added as a superclass of ValueProxy and EntityProxy to allow RequestFactory.create to operate on both value and entity types. I don't see Proxy and ValueProxy in any code review linked here. This is what interests us here, but it's still not in review yet (and I don't blame anyone!) -- You received 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: CellTree reordering nodes?
Since I needed an ordering, I wound up implementing a TreeSetDataProvider, but I'm not sure it's correct; it seems to be working ok. It creates new ArrayLists of its elements when it needs to update row data. -- rwsims On Nov 2, 12:55 pm, John LaBanca jlaba...@google.com wrote: Calling ListDataProvider#refresh() or #setList() should force a full refresh, which would fix the problem. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 7:38 PM, David Pinn dp...@byandlarge.net wrote: Thanks John. Would another work-around be to call the ListDataProvider's setList method for each change to the tree? On Nov 2, 2:23 am, John LaBanca jlaba...@google.com wrote: There is a bug in CellTreeNodeView where it always assumes new data starts at index 0, which of course is not true if the data is being appended. That explains why it works when you insert at index 0. Another workaround is to populate the ListDataProvider before creating the CellTree (if that is an option for your app). I'm working on a fix that will be in the next GWT release. Thanks, John LaBanca jlaba...@google.com On Mon, Nov 1, 2010 at 5:17 AM, rahul vijay shinde shinderah...@rediffmail.com wrote: These mail are been wrongly marked to me Please avoid. Regards Rahul Shinde On Mon, 01 Nov 2010 13:53:51 +0530 David Pinn wrote I don't know you you've screwed up; but if you have, so have I. I too have been seeing very strange event-handling behaviour, with values being passed to getNodeInfo that are not for the node clicked on. Using your trick with .add(0, Object) made my problem go away too. Right now I'm really happy because it is just that little bit less likely that we are both stupid. maybe. On Nov 1, 3:04 am, decitrig rws...@gmail.com wrote: This problem is a bit tricky to describe; forgive me. I have a cell tree where nodes are added programmatically by doing a getList().add() on a ListDataProvider field. However, I found that using the .add(Object) method would do strange things to the ordering, i.e. the node *rendered* as Item 1 would be passed as *value* Item 2 to getNodeInfo(), and thus it looked like Item 1 got Item 2's children. The really strange thing is that if I do .add(0, Object), then everything works fine. The actual code can be found here: http://bitbucket.org/slide_rule/umd-code-review/src/tip/src/edu/umd/r. .. I just want to have list operations reflected in the tree, is this a bug or have I just screwed this up somehow? -- rwsims -- You received 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.co... -- You received 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@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.comgoogle-web-toolkit%2Bunsubs cr...@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: Deferred Binding with interfaces
The easiest way would be to do this with GIN and a provider method. I'm not sure what the when-property-is name=alerter value=goodbye, so I could be off base here, but here is a way to do it. @Inject @Provides public MyResources getMyResources(MyResources hello, GoodByeResources goodBye, Alerter alerter){ if(alerter.equals(hello)){ return hello; }else if(alerter.equals(goodbye)){ return goodBye; } } Also, MyResources needs to extend ClientBundle, and then by extendsion GoodByResources automatically does. Then you can just @Inject MyResources and it will make the decsion as to which resource bundle to return. On Nov 9, 11:13 am, Thalles henry.rotz...@googlemail.com wrote: Hello group, I've just got a quick question. Is it possible to do deferred binding with interfaces? Background: I would like to change the client bundle or constants interfaces, depending on the user. The problem is, that the client bundle or constants implementation has to be an interface itself. I've tried to implement it, but it always says Deferred binding result type classname should not be abstract This is my general class, that should be replaced: public interface MyResources { public static final MyResources INSTANCE = GWT.create(MyResources.class); CssResource css(); TextResource getSynchronousTextResource(); ExternalTextResource getAsynchronousTextResource(); ImageResource getDLRLogo(); } Here is one of implementations public interface GoodByeResources extends ClientBundle, MyResources { public static final GoodByeResources INSTANCE = GWT.create(GoodByeResources.class); @Source(files/test.css) CssResource css(); @Source(files/test1.txt) TextResource getSynchronousTextResource(); @Source(files/test2.txt) ExternalTextResource getAsynchronousTextResource(); @Source(files/dlk.jpeg) ImageResource getDLKLogo(); } Here is a usage example: ImageWindow cmdw = new ImageWindow(myConstants.caption(), MyResources.INSTANCE.getDLKLogo()); And this is my configuration: replace-with class=gwt.map.client.constantstest.HelloResources when-type-is class=gwt.map.client.constantstest.MyResources/ when-property-is name=alerter value=hello/ /replace-with replace-with class=gwt.map.client.constantstest.GoodByeResources when-type-is class=gwt.map.client.constantstest.MyResources/ when-property-is name=alerter value=goodbye/ /replace-with Is there any way, I could do this? Maybe a concrete class with an inner interface? Can I inject interfaces with GIN? Thanks in advance! Bye Thalles -- You received 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: Driver Best Practices with CheckBox and RadioButtons
On Nov 2, 4:00 am, jefe jeffrey.burn...@gmail.com wrote: All, After reviewing the GWT 2.1 Editor/Driverfeatures I've found uses fields like TextBox or DoubleBox but nothing pertaining to concepts such as CheckBox or RadioButton. Are there any specific best practices for providing binding between a bean and a group of radio buttons or a checkbox? Any insight would be appreciated. Thanks, Jeff Hi Jeff I can't be authoritative on best practice, however I've got a few widgets that wrap GWT widgets (TextBox and ListBox) which edit simple values such as Strings and Integers. I just make them implement LeafValueEditorT and they work in the same way as a GWT widget does with the editor framework. For example : public class CharField extends FormRow implements LeafValueEditorString { .. @Override public String getValue() { return tb.getValue(); } @Override public void setValue(String value) { setValue(value, false); } } Cheers Will -- You received 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.
In JDO, there are pm.detachX() methods you can use to do this. In JPA, it appears detachment is automatically done via an annotation, but the detached objects will still contain non-serializable stuff. Details here: http://timepedia.blogspot.com/2009/04/google-appengine-and-gwt-now-marriage.html HTH, /dmc On Tue, Nov 9, 2010 at 7:59 AM, dparish dpar...@gmail.com wrote: Thanks David. I tried LAZY and EAGER. Both caused the problem. For #2, that seems promising. There's an EntityManager clear method, but that would affect all threads using the entity manager. Any thoughts on how to do that detach? On Nov 8, 8:20 pm, David Chandler drfibona...@google.com wrote: 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 dpar...@gmail.com 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 ArrayListInternalTextinternalTextEntries; 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.seriali ze(ServerSerializationStreamWriter.java: 610) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.write Object(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.seriali zeValue(ServerSerializationStreamWriter.java: 534) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeClass(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: ArrayListInternalText newText = new ArrayListInternalText(); 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 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
Re: How can I collapse either the right or left child of a SplitLayoutPanel?
How about mySplitPanel.setSplitPosition(0px)? On Oct 13, 1:49 pm, Blackberet ramonjsanti...@gmail.com wrote: Is there a programmatic hook for this? thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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
Yep, it was a typo. Thanks, /dmc On Mon, Nov 8, 2010 at 9:49 PM, zixzigma zixzi...@gmail.com wrote: 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 drfibona...@google.com 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 drgenejo...@gmail.com 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 this
Setting Specific PieChart Color Slices
Hi lads, First of all apologies if this isn't the correct discussion group to answer this query. I have been looking for the gwt visualization api group to no avail. My query is quite simple. I am trying to find a way to set the color of specific slices inside a PieChart object. It seems to be possible to do in js. http://code.google.com/apis/visualization/documentation/gallery/piechart.html pieSliceTextStyle | {color: string, fontName: string, fontSize: number} Hence I'm wondering if the same thing is possible with the gwt version of the piechart? The only way I found to do this in the gwt version of PieChart is by doing the following: options.setColors( #3399FF,#80C080,#008000,#80); But unfortunately this assigns colors randomly to slices. Hence I can't control the color of particular slices Is there any way of doing this? Thanks for your help in advance -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
FormPanel: why it extends SimplePanel?
Is there a good reason for FormPanel to extend SimplePanel and not some other panel (like HTMLPanel)? The problem with SimplePanel is the restriction to only one child, while most forms contain much more fields. So one shoud use some other Panel whithin the Form and this leads to unnecessary markup. -- You received 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: FormPanel: why it extends SimplePanel?
Add an HtmlPanel to it and then add your widgets to the HtmlPanel. Jeff On Tue, Nov 9, 2010 at 3:34 PM, pash7ka pash...@gmail.com wrote: Is there a good reason for FormPanel to extend SimplePanel and not some other panel (like HTMLPanel)? The problem with SimplePanel is the restriction to only one child, while most forms contain much more fields. So one shoud use some other Panel whithin the Form and this leads to unnecessary markup. -- You received 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.comgoogle-web-toolkit%2bunsubscr...@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: FormPanel: why it extends SimplePanel?
Yes, but whith this solution I have formdiv/div/form in resulting page, and the inner div is superfluous. Which is the whole point of my question. ) On 9 ноя, 23:39, Jeff Schwartz jefftschwa...@gmail.com wrote: Add an HtmlPanel to it and then add your widgets to the HtmlPanel. Jeff On Tue, Nov 9, 2010 at 3:34 PM, pash7ka pash...@gmail.com wrote: Is there a good reason for FormPanel to extend SimplePanel and not some other panel (like HTMLPanel)? The problem with SimplePanel is the restriction to only one child, while most forms contain much more fields. So one shoud use some other Panel whithin the Form and this leads to unnecessary markup. -- You received 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.comgoogle-web-toolkit%2Bunsubs 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.
When using a MultiSelectionModel on a CellList should I be able to deselect an item in the CellList?
I've created a CellListString with a MultiSelectionModelString and it seems to work correctlty in that it allows the user to select multiple items and I can programmatically retrieve the selected items. But, when trying to deselect an item the item does not deselect. Is there something that I'm missing to get this behavior? Using GWT 2.1. -- You received 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: When using a MultiSelectionModel on a CellList should I be able to deselect an item in the CellList?
Currently, you can only selected rows, you can't deselect them. User selection support is very limited in GWT 2.1, but we plan to add support for shift/ctrl+click in GWT 2.1.1. Thanks, John LaBanca jlaba...@google.com On Tue, Nov 9, 2010 at 4:39 PM, Blackberet ramonjsanti...@gmail.com wrote: I've created a CellListString with a MultiSelectionModelString and it seems to work correctlty in that it allows the user to select multiple items and I can programmatically retrieve the selected items. But, when trying to deselect an item the item does not deselect. Is there something that I'm missing to get this behavior? Using GWT 2.1. -- You received 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.comgoogle-web-toolkit%2bunsubscr...@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.
How to use JSONObject with common code shared between client and server
Hi everyone, I have a class that I want to share both with client and server code, in my particular case it's the JSONObject. It has different implementations on client (com.google.gwt.json.client.JSONObject) and server (org.json.JSONObject), but same interface. So I have a DTO class like this shared between client and server, so I can use JSON to pass objects around and wrap them in JSONObjects for easy API access: class Person { String firstName; String lastName; public JSONObject toJson() { // code to convert firstname + lastname to JSON } public fromJSON (JSONObject x) { // code to read from JSONObject and set firstName and lastName } } There is no way for me to tell GWT to use com.google.gwt.json.client.JSONObject when compiling this class on client, and likewise use org.json.JSONObject on server. I would have to resort to Java String. Now I could do the following, but I would have to re-write the toJson/ fromJson methods for each implementation - not acceptable to me! class PersonBase { String firstname; String lastname; } class Person_Client extends PersonBase { public fromJSON (om.google.gwt.json.client.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public com.google.gwt.json.client.JSONObject toJson() { // code to convert firstname + lastname to JSON } } class Person_Server extends PersonBase { public fromJSON (org.json.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public org.json.JSONObject toJson() { // code to convert firstname + lastname to JSON } } There must be an easier way! -- You received 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
Thx for the reply your blog post taught me more about gwt. Here's another idea: assign the app a version#. Assign this value to a variable in the client server. Every rpc passes the client's variable. When there is a mismatch, the server throws AppVersionException. To minimize the chance the user submits a big form only to be asked to reload the app: if the app hasn't been used in awhile, the app calls an rpc which checks for a version mismatch. On Nov 8, 1:06 pm, Stephen Haberman stephen.haber...@gmail.com wrote: 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: Including jQuery in GWT
I don't know if it's helpful or (given your already coded js) usable, but there is a clone of jquery for gwt. It's called GQuery. Take a look http://code.google.com/p/gwtquery/ On 9 Nov, 21:58, Yaakov yaakov.chai...@gmail.com wrote: Hi, I have a page that a web designer produced and now I need to add GWT into it. I placed the contents of the HTML between body (not including it) into a uiBinder g:HTMLPanel/g:HTMLPanel. In the host page, I have some headers that refer to jQuery and javascript that the designer wrote, like this: head link rel=stylesheet type=text/css href=resources/css/ styles.css / script type=text/javascript src=resources/js/ jquery.tools.min.js/script script type=text/javascript src=resources/js/application.js/ script script type=text/javascript language=javascript src=keyImportActivity/keyImportActivity.nocache.js/script /head Some of the visual affects that the designer used are from jQuery and the way these get bound to some HTML elements are through a jQuery- specific window.onLoad function $(function(){ some bindings here}); Here is the code from that application.js referred to above in the head: $(function() { setButtonClasses(buttonPlus); setButtonClasses(buttonMinus); setButtonClasses(buttonRefresh); setButtonClasses(buttonAdmin); setButtonClasses(buttonImports); setButtonClasses(buttonInventory); setButtonClasses(buttonSignOut); setButtonClasses(buttonNewer); setButtonClasses(buttonOlder); setButtonClasses(sortAscending); setButtonClasses(sortDescending); $(div.buttonPlus).click(leftNavigationHandler); $(a.lightbox).click(doPopup); }); So, this doesn't work. My guess, this is because it gets called BEFORE GWT even builds those buttons, etc., so at the time it supposedly gets called, these elements don't exist yet or at least are not guaranteed to exist yet. So, I changed this onLoad function and made it a regular function like this: function bindjQuery() { alert(Inside JS bindjQuery); setButtonClasses(buttonPlus); setButtonClasses(buttonMinus); setButtonClasses(buttonRefresh); setButtonClasses(buttonAdmin); setButtonClasses(buttonImports); setButtonClasses(buttonInventory); setButtonClasses(buttonSignOut); setButtonClasses(buttonNewer); setButtonClasses(buttonOlder); setButtonClasses(sortAscending); setButtonClasses(sortDescending); $(div.buttonPlus).click(leftNavigationHandler); $(a.lightbox).click(doPopup); } Now, in my EntryPoint, I have this: public class KeyImportActivityEntryPoint implements EntryPoint { public void onModuleLoad() { KeyImportWidget keyImportWidget = new KeyImportWidget(); RootLayoutPanel.get().add(keyImportWidget); bindjQuery(); } public native void bindjQuery() /*-{ alert(Inside GWT bindjQuery); $wnd.bindjQuery(); }-*/; } So, this works... The problem is... I don't like it. :-) Is this the recommended way of importing things like that? I am uncomfortable with this as I have no clue what else JQuery might be doing in its other functions... For all I know, it uses its onLoad function somewhere else as well and it never gets called. So, just because this worked for whatever I am doing, it doesn't seem like this is the cleanest approach. Can someone please give me some tips on this? Much appreciated! -Yaakov. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 use JSONObject with common code shared between client and server
The best you can use in the client to handle json are Overlays. http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html On Tue, Nov 9, 2010 at 7:17 PM, Kashif kashifshaikh...@gmail.com wrote: Hi everyone, I have a class that I want to share both with client and server code, in my particular case it's the JSONObject. It has different implementations on client (com.google.gwt.json.client.JSONObject) and server (org.json.JSONObject), but same interface. So I have a DTO class like this shared between client and server, so I can use JSON to pass objects around and wrap them in JSONObjects for easy API access: class Person { String firstName; String lastName; public JSONObject toJson() { // code to convert firstname + lastname to JSON } public fromJSON (JSONObject x) { // code to read from JSONObject and set firstName and lastName } } There is no way for me to tell GWT to use com.google.gwt.json.client.JSONObject when compiling this class on client, and likewise use org.json.JSONObject on server. I would have to resort to Java String. Now I could do the following, but I would have to re-write the toJson/ fromJson methods for each implementation - not acceptable to me! class PersonBase { String firstname; String lastname; } class Person_Client extends PersonBase { public fromJSON (om.google.gwt.json.client.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public com.google.gwt.json.client.JSONObject toJson() { // code to convert firstname + lastname to JSON } } class Person_Server extends PersonBase { public fromJSON (org.json.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public org.json.JSONObject toJson() { // code to convert firstname + lastname to JSON } } There must be an easier way! -- You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: uibinder and nested layout
In our application, we have a top level UiBinder which sets the layout, with the content as a LayoutPanel which has a ui:field assigned to it. This ui:field is used as a container for another ui:binder xml for the content.. (and the same thing can apply to other areas of the layout as well). We use classic MVP which passes the container to the appropriate presenters when it is time for display. The presenter sets the view to the container. So in essence, there is no nesting, but a definition of the container, which is set at a different place in the application. Prashant On Tue, Nov 9, 2010 at 10:29 PM, Sachin Dole sachin.d...@gmail.com wrote: Hello, I have a requirement for an HTML page with a top horizontal header bar, a large middle panel that will itself contain the left navigation column, a middle content panel and a right side margin for showing Associated content. At the bottom is a footer with its own content. To lay this out, I want to use UiBinder. How do I nest UiBinder fields? In other words, how to refer to @UiFields that are declared not in the main outer page class but in classes that are @UiFields of the main page class? Is it even possible to nest UI classes into one layout? Thank you list! Sachin -- You received 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.comgoogle-web-toolkit%2bunsubscr...@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: How to use JSONObject with common code shared between client and server
No, I don't want to use Overlays - because that forces me to have a DTO class that has separate implementation on client and server. The whole point of using JSONObject is that I have a java API that I can use to marshall/unmarshall DTO objects regardless if I'm sending them from client to server or vice versa. On Nov 9, 9:29 pm, Gal Dolber gal.dol...@gmail.com wrote: The best you can use in the client to handle json are Overlays.http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver... On Tue, Nov 9, 2010 at 7:17 PM, Kashif kashifshaikh...@gmail.com wrote: Hi everyone, I have a class that I want to share both with client and server code, in my particular case it's the JSONObject. It has different implementations on client (com.google.gwt.json.client.JSONObject) and server (org.json.JSONObject), but same interface. So I have a DTO class like this shared between client and server, so I can use JSON to pass objects around and wrap them in JSONObjects for easy API access: class Person { String firstName; String lastName; public JSONObject toJson() { // code to convert firstname + lastname to JSON } public fromJSON (JSONObject x) { // code to read from JSONObject and set firstName and lastName } } There is no way for me to tell GWT to use com.google.gwt.json.client.JSONObject when compiling this class on client, and likewise use org.json.JSONObject on server. I would have to resort to Java String. Now I could do the following, but I would have to re-write the toJson/ fromJson methods for each implementation - not acceptable to me! class PersonBase { String firstname; String lastname; } class Person_Client extends PersonBase { public fromJSON (om.google.gwt.json.client.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public com.google.gwt.json.client.JSONObject toJson() { // code to convert firstname + lastname to JSON } } class Person_Server extends PersonBase { public fromJSON (org.json.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public org.json.JSONObject toJson() { // code to convert firstname + lastname to JSON } } There must be an easier way! -- You received 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.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 use JSONObject with common code shared between client and server
So you need to use: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html On Tue, Nov 9, 2010 at 10:48 PM, Kashif kashifshaikh...@gmail.com wrote: No, I don't want to use Overlays - because that forces me to have a DTO class that has separate implementation on client and server. The whole point of using JSONObject is that I have a java API that I can use to marshall/unmarshall DTO objects regardless if I'm sending them from client to server or vice versa. On Nov 9, 9:29 pm, Gal Dolber gal.dol...@gmail.com wrote: The best you can use in the client to handle json are Overlays. http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver... On Tue, Nov 9, 2010 at 7:17 PM, Kashif kashifshaikh...@gmail.com wrote: Hi everyone, I have a class that I want to share both with client and server code, in my particular case it's the JSONObject. It has different implementations on client (com.google.gwt.json.client.JSONObject) and server (org.json.JSONObject), but same interface. So I have a DTO class like this shared between client and server, so I can use JSON to pass objects around and wrap them in JSONObjects for easy API access: class Person { String firstName; String lastName; public JSONObject toJson() { // code to convert firstname + lastname to JSON } public fromJSON (JSONObject x) { // code to read from JSONObject and set firstName and lastName } } There is no way for me to tell GWT to use com.google.gwt.json.client.JSONObject when compiling this class on client, and likewise use org.json.JSONObject on server. I would have to resort to Java String. Now I could do the following, but I would have to re-write the toJson/ fromJson methods for each implementation - not acceptable to me! class PersonBase { String firstname; String lastname; } class Person_Client extends PersonBase { public fromJSON (om.google.gwt.json.client.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public com.google.gwt.json.client.JSONObject toJson() { // code to convert firstname + lastname to JSON } } class Person_Server extends PersonBase { public fromJSON (org.json.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public org.json.JSONObject toJson() { // code to convert firstname + lastname to JSON } } There must be an easier way! -- You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 use JSONObject with common code shared between client and server
Sorry, under com.google.gwt.json.client On Tue, Nov 9, 2010 at 11:49 PM, Gal Dolber gal.dol...@gmail.com wrote: So you need to use: http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/index.html?overview-summary.html On Tue, Nov 9, 2010 at 10:48 PM, Kashif kashifshaikh...@gmail.com wrote: No, I don't want to use Overlays - because that forces me to have a DTO class that has separate implementation on client and server. The whole point of using JSONObject is that I have a java API that I can use to marshall/unmarshall DTO objects regardless if I'm sending them from client to server or vice versa. On Nov 9, 9:29 pm, Gal Dolber gal.dol...@gmail.com wrote: The best you can use in the client to handle json are Overlays. http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOver... On Tue, Nov 9, 2010 at 7:17 PM, Kashif kashifshaikh...@gmail.com wrote: Hi everyone, I have a class that I want to share both with client and server code, in my particular case it's the JSONObject. It has different implementations on client (com.google.gwt.json.client.JSONObject) and server (org.json.JSONObject), but same interface. So I have a DTO class like this shared between client and server, so I can use JSON to pass objects around and wrap them in JSONObjects for easy API access: class Person { String firstName; String lastName; public JSONObject toJson() { // code to convert firstname + lastname to JSON } public fromJSON (JSONObject x) { // code to read from JSONObject and set firstName and lastName } } There is no way for me to tell GWT to use com.google.gwt.json.client.JSONObject when compiling this class on client, and likewise use org.json.JSONObject on server. I would have to resort to Java String. Now I could do the following, but I would have to re-write the toJson/ fromJson methods for each implementation - not acceptable to me! class PersonBase { String firstname; String lastname; } class Person_Client extends PersonBase { public fromJSON (om.google.gwt.json.client.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public com.google.gwt.json.client.JSONObject toJson() { // code to convert firstname + lastname to JSON } } class Person_Server extends PersonBase { public fromJSON (org.json.JSONObject x) { // code to read from JSONObject and set firstName and lastName } public org.json.JSONObject toJson() { // code to convert firstname + lastname to JSON } } There must be an easier way! -- You received 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.comgoogle-web-toolkit%2bunsubscr...@googlegroups.comgoogle-web-toolkit%2Bunsubs cr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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-contrib] protected com.google.gwt.user.client.ui.Widget.addHandler(H, TypeH)
why is com.google.gwt.user.client.ui.Widget.addHandler(H, TypeH) protected? in case I want to fire a custom event on a widget so that the widget is not aware of custom event handler, it makes it difficult to manage. thanks -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Comment on Editors in google-web-toolkit
Comment by carasen12: ?xml version='1.0' encoding='utf-8'? response entry id14196913/id hashe3ccc434d9840ad19204bcdfc999/hash requestHashcarasen12/requestHash profileUrlhttp://gravatar.com/carasen12/profileUrl preferredUsernamecarasen12/preferredUsername thumbnailUrlhttp://0.gravatar.com/avatar/e3ccc434d9840ad19204bcdfc999/thumbnailUrl photos valuehttp://0.gravatar.com/avatar/e3ccc434d9840ad19204bcdfc999/value typethumbnail/type /photos photos valuehttp://1.gravatar.com/userimage/14196913/95d3af28a1b340c9f8c822b76d7761e1/value /photos name givenNamecarlos/givenName formatted asensio/formatted /name displayNamecarasen12/displayName accounts domainblogger.com/domain userid09940914286136500856/userid displayblogger.com/display urlhttp://www.blogger.com/profile/09940914286136500856/url verifiedtrue/verified shortnameblogger/shortname /accounts accounts domainfacebook.com/domain usernamecarasen12/username displaycarasen12/display urlhttp://www.facebook.com/carasen12/url verifiedtrue/verified shortnamefacebook/shortname /accounts accounts domainflickr.com/domain username47552...@n05/username display47552...@n05/display urlhttp://www.flickr.com/people/47552...@n05//url verifiedtrue/verified shortnameflickr/shortname /accounts accounts domainlinkedin.com/domain usernamelinkedin.com/username displaylinkedin.com/display urlhttp://www.linkedin.com/pub/carlos-asensio/12/720/690/url verifiedtrue/verified shortnamelinkedin/shortname /accounts accounts domainmyspace.com/domain usernamecarasen/username displaycarasen/display urlhttp://www.myspace.com/carasen/url verifiedtrue/verified shortnamemyspace/shortname /accounts accounts domaintwitter.com/domain usernamecarasen12/username display@carasen12/display urlhttp://twitter.com/carasen12/url verifiedtrue/verified shortnametwitter/shortname /accounts accounts domainpulse.yahoo.com/domain userid_X7QX3EQGH3IYOSAMCG7ZMD5F74/userid displaypulse.yahoo.com/display urlhttp://pulse.yahoo.com/_X7QX3EQGH3IYOSAMCG7ZMD5F74/url verifiedtrue/verified shortnameyahoo/shortname /accounts accounts domainyoutube.com/domain username12carasen/username display12carasen/display urlhttp://www.youtube.com/user/12carasen/url verifiedtrue/verified shortnameyoutube/shortname /accounts /entry /response For more information: http://code.google.com/p/google-web-toolkit/wiki/Editors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: UiBinder. Design time tweaks for @UiField(provided) and @UiFactory (issue1077802)
http://gwt-code-reviews.appspot.com/1077802/diff/1/3 File user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java (right): http://gwt-code-reviews.appspot.com/1077802/diff/1/3#newcode52 user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java:52: w.write( void handle(String path, Object object);); OK Hapax does not look as active, last commit was about 1-2 years ago. No downloads. http://gwt-code-reviews.appspot.com/1077802/diff/1/3#newcode79 user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java:79: ({0}) dtObjectHandler.provideFactory({0}.class, \{1}\, new Object[] '{'{2}'}'), Only reason is that Eclipse suggests to use MessageFormat and no String.format() option. Fixed. http://gwt-code-reviews.appspot.com/1077802/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] UiBinder. Using negative values in LayoutPane layer.
One of the users of GWT Designer found that code like this causes rendering failure. g:layer left=-34px width=109px top=70px height=20px g:CheckBox text=New CheckBox/ /g:layer As you can see, left attribute contains negative value. In Java version such value is not problem for left, right, top and bottom. As I can see, problem is in LengthAttributeParser which does not recognize negative values. I'm not sure what to do - we could add minus support, but is this correct ideologically? Negative _length_ is not valid, but negative _position_ is fine. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Fixing MultiSelectionModelTest to ensure that we are checking that the correct value is not sele... (issue1091801)
Reviewers: rchandia, Description: Fixing MultiSelectionModelTest to ensure that we are checking that the correct value is not selected. Please review this at http://gwt-code-reviews.appspot.com/1091801/show Affected files: M user/test/com/google/gwt/view/client/MultiSelectionModelTest.java Index: user/test/com/google/gwt/view/client/MultiSelectionModelTest.java === --- user/test/com/google/gwt/view/client/MultiSelectionModelTest.java (revision 9201) +++ user/test/com/google/gwt/view/client/MultiSelectionModelTest.java (working copy) @@ -33,11 +33,15 @@ model.setSelected(test1, true); model.setSelected(test2, true); assertTrue(model.isSelected(test0)); +assertTrue(model.isSelected(test1)); +assertTrue(model.isSelected(test2)); handler.assertEventFired(true); // Clear selection and verify that an event is fired. model.clear(); -assertFalse(model.isSelected(test)); +assertFalse(model.isSelected(test0)); +assertFalse(model.isSelected(test1)); +assertFalse(model.isSelected(test2)); handler.assertEventFired(true); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Adding MultiSelectionModel#clear() to clear all selected values. This is slightly more complicat... (issue1089801)
Good catch. I created a patch to fix the test case. http://gwt-code-reviews.appspot.com/1091801 http://gwt-code-reviews.appspot.com/1089801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add a protected method CellTable#doSelection() as a hook that allows users to customize how the ... (issue1088801)
committed as r9199 http://gwt-code-reviews.appspot.com/1088801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] UiBinder. Using negative values in LayoutPane layer.
We shouldn't get hung up on the fact that LengthAttributeParser is misnamed (ScalarAttributeParser?). Negative support sounds like the right thing to do. Element parsers that are concerned about negative values could do their own check for that, although it could be tricky to do correctly. Did you just volunteer? On Tue, Nov 9, 2010 at 7:41 AM, Konstantin.Scheglov konstantin.scheg...@gmail.com wrote: One of the users of GWT Designer found that code like this causes rendering failure. g:layer left=-34px width=109px top=70px height=20px g:CheckBox text=New CheckBox/ /g:layer As you can see, left attribute contains negative value. In Java version such value is not problem for left, right, top and bottom. As I can see, problem is in LengthAttributeParser which does not recognize negative values. I'm not sure what to do - we could add minus support, but is this correct ideologically? Negative _length_ is not valid, but negative _position_ is fine. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing MultiSelectionModelTest to ensure that we are checking that the correct value is not sele... (issue1091801)
LGTM http://gwt-code-reviews.appspot.com/1091801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: First pass of E2eGWTTestCase, an experimental feature for end-to-end testing GWT applications (issue1043801)
will create RFC in Wave soon. http://gwt-code-reviews.appspot.com/1043801/diff/1/4 File dev/core/src/com/google/gwt/dev/cfg/SyntheticModuleDef.java (right): http://gwt-code-reviews.appspot.com/1043801/diff/1/4#newcode50 dev/core/src/com/google/gwt/dev/cfg/SyntheticModuleDef.java:50: public synchronized String getPrimaryModuleName() { I think the refactoring has a positive effect even if we didn't need to add this method. The current code was a hack IMHO. This refactoring makes it clear that synthetic modules are subclass with different behaviors. Since all changed references (all under junit) actually expect a synthetic module instead of a plain module, now the contract is enforced by static typing. On 2010/11/09 02:51:11, jat wrote: I think rather than changing all the references of ModuleDef to SyntheticModuleDef, you should just add this functionality into ModuleDef. http://gwt-code-reviews.appspot.com/1043801/diff/1/5 File tools/api-checker/config/gwt20_21userApi.conf (right): http://gwt-code-reviews.appspot.com/1043801/diff/1/5#newcode73 tools/api-checker/config/gwt20_21userApi.conf:73: :user/src/com/google/gwt/junit/client/TestServiceFactory.java\ I'm not sure about the official way to add APIs. I did this because GWTTestCase is also excluded. On 2010/11/09 02:51:11, jat wrote: Why are these excluded? If they aren't in impl packages, we are saying we will support the API. http://gwt-code-reviews.appspot.com/1043801/diff/1/5#newcode148 tools/api-checker/config/gwt20_21userApi.conf:148: com.google.gwt.junit.client.impl.GWTRunner MISSING Again, I need decisions by veterans of GWT API changes. On 2010/11/09 02:51:11, jat wrote: Maybe all classes in impl packages should be excluded (around line 87) instead. http://gwt-code-reviews.appspot.com/1043801/diff/1/7 File user/src/com/google/gwt/junit/E2eJUnitShell.java (right): http://gwt-code-reviews.appspot.com/1043801/diff/1/7#newcode80 user/src/com/google/gwt/junit/E2eJUnitShell.java:80: options.setProxyToHost(getHost()); super.maybeStartProxy() will start the proxy filter if the '-proxyTo' option is set. This is an easy way to reuse code. I can also reuse the code by creating protected final void startProxy() and call it conditionally in GWTTestCase and always call it here. Does this sound better? On 2010/11/09 02:51:11, jat wrote: Why do we need this? http://gwt-code-reviews.appspot.com/1043801/diff/1/8 File user/src/com/google/gwt/junit/JUnitShell.java (right): http://gwt-code-reviews.appspot.com/1043801/diff/1/8#newcode151 user/src/com/google/gwt/junit/JUnitShell.java:151: OptionProxyTo { eh, it came from auto-format ... I'll change it manually. On 2010/11/09 02:51:11, jat wrote: Formatting http://gwt-code-reviews.appspot.com/1043801/diff/1/8#newcode1140 user/src/com/google/gwt/junit/JUnitShell.java:1140: mapping.setServletName(defaultServlet.getName()); I don't override the existing default servlet, be it the one provided by Jetty, or provided by user code. Instead, I add a filter only for the existing default servlet and it is tried after the default servlet fails. More explanations in ProxyFilter JavaDoc. On 2010/11/09 02:51:11, jat wrote: Where do you override the existing default servlet? http://gwt-code-reviews.appspot.com/1043801/diff/1/8#newcode1536 user/src/com/google/gwt/junit/JUnitShell.java:1536: // TODO: figure out if it is possible to allow multiple modules. I'm not sure about it -- E2E tests run for the whole application, so (to my limited experience) there's only one module which contains entry point. OTOH, I'm experimenting with initializing Module Under Test in test methods, so this will be addressed in next pass. On 2010/11/09 02:51:11, jat wrote: I think this needs to support multiple modules. http://gwt-code-reviews.appspot.com/1043801/diff/1/13 File user/src/com/google/gwt/junit/client/GWTTestCase.java (right): http://gwt-code-reviews.appspot.com/1043801/diff/1/13#newcode199 user/src/com/google/gwt/junit/client/GWTTestCase.java:199: // implemented in the translatable version of this class user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/GWTTestCase.java This change is for moving GWTRunner from super to src (for easy debugging). The format conforms to existing practice in the same file. On 2010/11/09 02:51:11, jat wrote: Where is the translatable version? http://gwt-code-reviews.appspot.com/1043801/diff/1/14 File user/src/com/google/gwt/junit/client/TestService.java (right): http://gwt-code-reviews.appspot.com/1043801/diff/1/14#newcode25 user/src/com/google/gwt/junit/client/TestService.java:25: public interface TestService { Naming is always hard. Any suggestions? On 2010/11/09 02:51:11, jat wrote: The name could probably be improved. http://gwt-code-reviews.appspot.com/1043801/diff/1/14#newcode29 user/src/com/google/gwt/junit/client/TestService.java:29: void click(HasClickHandlers hasClickHandlers); It'll grow -- this is the main place for the future -- for example,
[gwt-contrib] This patch makes three changes: (issue1093801)
Reviewers: jat, Description: This patch makes three changes: 1. Excludes the client-side validation from being analyzed by api checker. Will remove this unnecessary exclusion once http://code.google.com/p/google-web-toolkit/issues/detail?id=5566 is resolved. Currently, because of this bug there is a lot of console spew from typeOracle unable to find sources. 2. Removes the unnecessary entry from the white-list. The entry is removed because even prior to the addition of HTML(SafeHtml ..) call to the HTML class in 2.1, the class had two constructors, so a call like new HTML(null) wouldn't have compiled before. There is no API breakage because of this new constructor. 3. Adds a unit test to exercise the case above. Patch by: amitmanjhi Review by: jat Please review this at http://gwt-code-reviews.appspot.com/1093801/show Affected files: M tools/api-checker/config/gwt20_21userApi.conf M tools/api-checker/test/com/google/gwt/tools/apichecker/ApiCompatibilityUnitTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This patch makes three changes: (issue1093801)
LGTM http://gwt-code-reviews.appspot.com/1093801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This patch makes three changes: (issue1093801)
http://gwt-code-reviews.appspot.com/1093801/diff/1/2 File tools/api-checker/config/gwt20_21userApi.conf (right): http://gwt-code-reviews.appspot.com/1093801/diff/1/2#newcode99 tools/api-checker/config/gwt20_21userApi.conf:99: :com.google.gwt.core.client.impl\ This came up in a separate CL -- should we just exclude *.impl.* ? It seems like we would never want to consider changes to impl classes as API breakage. http://gwt-code-reviews.appspot.com/1093801/diff/1/3 File tools/api-checker/test/com/google/gwt/tools/apichecker/ApiCompatibilityUnitTest.java (right): http://gwt-code-reviews.appspot.com/1093801/diff/1/3#newcode110 tools/api-checker/test/com/google/gwt/tools/apichecker/ApiCompatibilityUnitTest.java:110: * from the most specific to the least specific. So if Foo(Object...) is present, Foo(null) would always resolve to Foo(String...)? http://gwt-code-reviews.appspot.com/1093801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: This patch makes three changes: (issue1093801)
On Tue, Nov 9, 2010 at 12:32 PM, j...@google.com wrote: http://gwt-code-reviews.appspot.com/1093801/diff/1/2 File tools/api-checker/config/gwt20_21userApi.conf (right): http://gwt-code-reviews.appspot.com/1093801/diff/1/2#newcode99 tools/api-checker/config/gwt20_21userApi.conf:99: :com.google.gwt.core.client.impl\ This came up in a separate CL -- should we just exclude *.impl.* ? It seems like we would never want to consider changes to impl classes as API breakage. I think this came up in the past as well. My vote is still for listing them explicitly since the impl thing is a GWT convention, and ideally, we should try to avoid api breakages in any public api even if it is in the impl package. However, if someone does want to exclude particular impl packages, adding an entry is easy. http://gwt-code-reviews.appspot.com/1093801/diff/1/3 File tools/api-checker/test/com/google/gwt/tools/apichecker/ApiCompatibilityUnitTest.java (right): http://gwt-code-reviews.appspot.com/1093801/diff/1/3#newcode110 tools/api-checker/test/com/google/gwt/tools/apichecker/ApiCompatibilityUnitTest.java:110: * from the most specific to the least specific. So if Foo(Object...) is present, Foo(null) would always resolve to Foo(String...)? yes. http://gwt-code-reviews.appspot.com/1093801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9202 committed - Cherry picking r9061, r9178, r9179, r9190 into release branch.
Revision: 9202 Author: jlaba...@google.com Date: Mon Nov 8 07:55:07 2010 Log: Cherry picking r9061, r9178, r9179, r9190 into release branch. http://code.google.com/p/google-web-toolkit/source/detail?r=9202 Modified: /releases/2.1/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java /releases/2.1/user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java /releases/2.1/user/src/com/google/gwt/view/client/HasData.java /releases/2.1/user/test/com/google/gwt/user/cellview/client/AbstractCellTreeTestBase.java /releases/2.1/user/test/com/google/gwt/user/cellview/client/AbstractHasDataTestBase.java /releases/2.1/user/test/com/google/gwt/user/client/ui/SplitLayoutPanelTest.java === --- /releases/2.1/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java Thu Oct 14 08:07:55 2010 +++ /releases/2.1/user/src/com/google/gwt/user/cellview/client/AbstractHasData.java Mon Nov 8 07:55:07 2010 @@ -368,6 +368,16 @@ public final int getPageStart() { return getVisibleRange().getStart(); } + + /** + * Return the outer element that contains all of the rendered row values. This + * method delegates to {...@link #getChildContainer()}; + * + * @return the {...@link Element} that contains the rendered row values + */ + public Element getRowContainer() { +return getChildContainer(); + } public int getRowCount() { return presenter.getRowCount(); @@ -534,6 +544,25 @@ public void setRowCount(int size, boolean isExact) { presenter.setRowCount(size, isExact); } + + /** + * p + * Set the complete list of values to display on one page. + * /p + * p + * Equivalent to calling {...@link #setRowCount(int)} with the length of the list + * of values, {...@link #setVisibleRange(Range)} from 0 to the size of the list + * of values, and {...@link #setRowData(int, List)} with a start of 0 and the + * specified list of values. + * /p + * + * @param values + */ + public final void setRowData(List? extends T values) { +setRowCount(values.size()); +setVisibleRange(0, values.size()); +setRowData(0, values); + } public void setRowData(int start, List? extends T values) { presenter.setRowData(start, values); === --- /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java Thu Oct 14 11:27:30 2010 +++ /releases/2.1/user/src/com/google/gwt/user/cellview/client/CellTreeNodeView.java Mon Nov 8 07:55:07 2010 @@ -186,7 +186,7 @@ } // Render cell contents SafeHtmlBuilder cellBuilder = new SafeHtmlBuilder(); - cell.render(value, null, cellBuilder); + cell.render(value, key, cellBuilder); SafeHtml innerDiv = template.innerDiv(paddingDirection, imageWidth, innerClasses.toString(), image, itemValueStyle, === --- /releases/2.1/user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java Fri Sep 3 06:47:32 2010 +++ /releases/2.1/user/src/com/google/gwt/user/client/ui/SplitLayoutPanel.java Mon Nov 8 07:55:07 2010 @@ -15,10 +15,11 @@ */ package com.google.gwt.user.client.ui; +import com.google.gwt.core.client.Scheduler; +import com.google.gwt.core.client.Scheduler.ScheduledCommand; import com.google.gwt.dom.client.Document; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.user.client.Command; -import com.google.gwt.user.client.DeferredCommand; import com.google.gwt.user.client.Event; /** @@ -56,7 +57,7 @@ class HSplitter extends Splitter { public HSplitter(Widget target, boolean reverse) { super(target, reverse); - getElement().getStyle().setPropertyPx(width, SPLITTER_SIZE); + getElement().getStyle().setPropertyPx(width, splitterSize); setStyleName(gwt-SplitLayoutPanel-HDragger); } @@ -86,7 +87,7 @@ private int offset; private boolean mouseDown; -private Command layoutCommand; +private ScheduledCommand layoutCommand; private final boolean reverse; private int minSize; @@ -170,7 +171,7 @@ forceLayout(); } }; -DeferredCommand.addCommand(layoutCommand); +Scheduler.get().scheduleDeferred(layoutCommand); } } } @@ -178,7 +179,7 @@ class VSplitter extends Splitter { public VSplitter(Widget target, boolean reverse) { super(target, reverse); - getElement().getStyle().setPropertyPx(height, SPLITTER_SIZE); + getElement().getStyle().setPropertyPx(height, splitterSize); setStyleName(gwt-SplitLayoutPanel-VDragger); } @@ -203,12 +204,38 @@ } } - private static final int SPLITTER_SIZE = 8; - + private static final int DEFAULT_SPLITTER_SIZE = 8; + + private final int splitterSize; + + /** + * Construct a new
[gwt-contrib] UiBinder. Using negative values in LayoutPanel. (issue1094801)
Reviewers: rjrjr, Description: http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/9832f30485ce48e2 This patch contains: 1. tweak for LengthAttributeParser to support +/- before value; 2. check for negative width/height in LayoutPanelParser; 3. tests for negative values in LayoutPanel. Please review this at http://gwt-code-reviews.appspot.com/1094801/show Affected files: user/src/com/google/gwt/uibinder/attributeparsers/LengthAttributeParser.java user/src/com/google/gwt/uibinder/elementparsers/LayoutPanelParser.java user/test/com/google/gwt/uibinder/attributeparsers/LengthAttributeParserTest.java user/test/com/google/gwt/uibinder/elementparsers/LayoutPanelParserTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9204 committed - Public (konstantin.scheg...@gmail.com):...
Revision: 9204 Author: gwt.mirror...@gmail.com Date: Tue Nov 9 08:44:38 2010 Log: Public (konstantin.scheg...@gmail.com): We need to provide at least some support for @UiField(provided) and @UiFactory in GWT Designer. At design time we pass null as owner, so we need to use special design time hooks to create instances of widgets. Review by rj...@google.com http://gwt-code-reviews.appspot.com/1077802 Review by: sbruba...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9204 Modified: /trunk/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtils.java /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsStub.java /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java /trunk/user/src/com/google/gwt/uibinder/rebind/UiBinderWriter.java /trunk/user/test/com/google/gwt/uibinder/rebind/DesignTimeUtilsTest.java === --- /trunk/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java Thu Sep 9 08:24:17 2010 +++ /trunk/user/src/com/google/gwt/uibinder/elementparsers/BeanParser.java Tue Nov 9 08:44:38 2010 @@ -176,9 +176,18 @@ if (creator != null) { String[] args = makeArgsList(requiredValues, creator); if (creator instanceof JMethod) { // Factory method -String factoryMethod = String.format(owner.%s(%s), creator.getName(), -UiBinderWriter.asCommaSeparatedList(args)); -writer.setFieldInitializer(fieldName, factoryMethod); +JMethod factoryMethod = (JMethod) creator; +String initializer; +if (writer.getDesignTime().isDesignTime()) { + String typeName = factoryMethod.getReturnType().getQualifiedSourceName(); + initializer = writer.getDesignTime().getProvidedFactory(typeName, + factoryMethod.getName(), + UiBinderWriter.asCommaSeparatedList(args)); +} else { + initializer = String.format(owner.%s(%s), factoryMethod.getName(), + UiBinderWriter.asCommaSeparatedList(args)); +} +writer.setFieldInitializer(fieldName, initializer); } else { // Annotated Constructor writer.setFieldInitializerAsConstructor(fieldName, type, args); } === --- /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtils.java Fri Oct 8 06:15:38 2010 +++ /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtils.java Tue Nov 9 08:44:38 2010 @@ -1,12 +1,12 @@ /* * Copyright 2010 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the License); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -38,6 +38,16 @@ */ String getPath(Element element); + /** + * Returns the source to access @UiFactory method. + */ + String getProvidedFactory(String typeName, String methodName, String args); + + /** + * Returns the source to access @UiField(provided) instance of some object. + */ + String getProvidedField(String typeName, String fieldName); + /** * Returns the design time content of code*.ui.xml/code template to parse, * or codenull/code if not design time, or this template is not under === --- /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java Fri Oct 8 06:15:38 2010 +++ /trunk/user/src/com/google/gwt/uibinder/rebind/DesignTimeUtilsImpl.java Tue Nov 9 08:44:38 2010 @@ -1,12 +1,12 @@ /* * Copyright 2010 Google Inc. - * + * * Licensed under the Apache License, Version 2.0 (the License); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an AS IS BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the @@ -48,17 +48,35 @@ public void addDeclarations(IndentedWriter w) { // handler w.write(public static interface DTObjectHandler {); -w.write( void handle(String path, Object object);); +{ + w.indent(); + w.write(void handle(String path, Object object);); + w.write(Object provideFactory(Class rawType, String methodName, Object[] args);); + w.write(Object provideField(Class rawType, String fieldName);); + w.outdent(); +} w.write(}); w.write(public
[gwt-contrib] Re: UiBinder. Using negative values in LayoutPane layer.
We shouldn't get hung up on the fact that LengthAttributeParser is misnamed (ScalarAttributeParser?). Negative support sounds like the right thing to do. Element parsers that are concerned about negative values could do their own check for that, although it could be tricky to do correctly. Did you just volunteer? Yes, this looks as easy change. See http://gwt-code-reviews.appspot.com/1094801/show On Tue, Nov 9, 2010 at 7:41 AM, Konstantin.Scheglov konstantin.scheg...@gmail.com wrote: One of the users of GWT Designer found that code like this causes rendering failure. g:layer left=-34px width=109px top=70px height=20px g:CheckBox text=New CheckBox/ /g:layer As you can see, left attribute contains negative value. In Java version such value is not problem for left, right, top and bottom. As I can see, problem is in LengthAttributeParser which does not recognize negative values. I'm not sure what to do - we could add minus support, but is this correct ideologically? Negative _length_ is not valid, but negative _position_ is fine. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9205 committed - Fixing MultiSelectionModelTest to ensure that we are checking that the...
Revision: 9205 Author: gwt.mirror...@gmail.com Date: Tue Nov 9 09:07:13 2010 Log: Fixing MultiSelectionModelTest to ensure that we are checking that the correct value is not selected. Review at http://gwt-code-reviews.appspot.com/1091801 Review by: rchan...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=9205 Modified: /trunk/user/test/com/google/gwt/view/client/MultiSelectionModelTest.java === --- /trunk/user/test/com/google/gwt/view/client/MultiSelectionModelTest.java Mon Nov 8 11:22:54 2010 +++ /trunk/user/test/com/google/gwt/view/client/MultiSelectionModelTest.java Tue Nov 9 09:07:13 2010 @@ -33,11 +33,15 @@ model.setSelected(test1, true); model.setSelected(test2, true); assertTrue(model.isSelected(test0)); +assertTrue(model.isSelected(test1)); +assertTrue(model.isSelected(test2)); handler.assertEventFired(true); // Clear selection and verify that an event is fired. model.clear(); -assertFalse(model.isSelected(test)); +assertFalse(model.isSelected(test0)); +assertFalse(model.isSelected(test1)); +assertFalse(model.isSelected(test2)); handler.assertEventFired(true); } -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r9206 committed - Modifies the GWT compiler sharded entry points to support an alternati...
Revision: 9206 Author: zun...@google.com Date: Tue Nov 9 09:34:36 2010 Log: Modifies the GWT compiler sharded entry points to support an alternative method of sharding where multiple instances of Precompile and CompilePerms are invoked. Review at http://gwt-code-reviews.appspot.com/1074801 http://code.google.com/p/google-web-toolkit/source/detail?r=9206 Added: /trunk/dev/core/src/com/google/gwt/dev/CompileOnePerm.java /trunk/dev/core/src/com/google/gwt/dev/DistillerRebindPermutationOracle.java /trunk/dev/core/src/com/google/gwt/dev/PrecompileOnePerm.java /trunk/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerPerm.java /trunk/dev/core/src/com/google/gwt/dev/util/arg/OptionPerm.java Modified: /trunk/dev/core/src/com/google/gwt/dev/AnalyzeModule.java /trunk/dev/core/src/com/google/gwt/dev/CompilePerms.java /trunk/dev/core/src/com/google/gwt/dev/Link.java /trunk/dev/core/src/com/google/gwt/dev/Precompile.java === --- /dev/null +++ /trunk/dev/core/src/com/google/gwt/dev/CompileOnePerm.java Tue Nov 9 09:34:36 2010 @@ -0,0 +1,190 @@ +/* + * Copyright 2010 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.google.gwt.dev; + +import com.google.gwt.core.ext.TreeLogger; +import com.google.gwt.core.ext.UnableToCompleteException; +import com.google.gwt.dev.CompileTaskRunner.CompileTask; +import com.google.gwt.dev.Precompile.PrecompileOptions; +import com.google.gwt.dev.cfg.ModuleDef; +import com.google.gwt.dev.cfg.ModuleDefLoader; +import com.google.gwt.dev.jjs.PermutationResult; +import com.google.gwt.dev.util.PerfCounter; +import com.google.gwt.dev.util.arg.ArgHandlerPerm; +import com.google.gwt.dev.util.arg.OptionPerm; + +import java.io.File; +import java.util.List; + +/** + * Performs the second phase of compilation, converting one of the Precompile's + * serialized AST files into JavaScript outputs. + */ +public class CompileOnePerm { + + /** + * Options for CompilePerm. + */ + public interface CompileOnePermOptions extends CompileTaskOptions, OptionPerm { + } + + static class ArgProcessor extends CompileArgProcessor { +public ArgProcessor(CompileOnePermOptions options) { + super(options); + registerHandler(new ArgHandlerPerm(options)); +} + +@Override +protected String getName() { + return CompileOnePerm.class.getName(); +} + } + + /** + * Concrete class to implement compiler perm options. + */ + static class CompileOnePermOptionsImpl extends CompileTaskOptionsImpl + implements CompileOnePermOptions { + +private int permToCompile = -1; + +public CompileOnePermOptionsImpl() { +} + +public CompileOnePermOptionsImpl(CompileOnePermOptions other) { + copyFrom(other); +} + +public void copyFrom(CompileOnePermOptions other) { + super.copyFrom(other); + setPermToCompile(other.getPermToCompile()); +} + +public int getPermToCompile() { + return permToCompile; +} + +public void setPermToCompile(int permToCompile) { + this.permToCompile = permToCompile; +} + } + + public static void main(String[] args) { +int exitCode = -1; +/* + * NOTE: main always exits with a call to System.exit to terminate any + * non-daemon threads that were started in Generators. Typically, this is to + * shutdown AWT related threads, since the contract for their termination is + * still implementation-dependent. + */ +final CompileOnePermOptions options = new CompileOnePermOptionsImpl(); +if (new ArgProcessor(options).processArgs(args)) { + CompileTask task = new CompileTask() { +public boolean run(TreeLogger logger) throws UnableToCompleteException { + return new CompileOnePerm(options).run(logger); +} + }; + if (CompileTaskRunner.runWithAppropriateLogger(options, task)) { +// Exit w/ success code. +exitCode = 0; + } +} +PerfCounter.print(); +System.exit(exitCode); + } + + /** + * Return the filename corresponding to the given permutation number, + * one-based. + */ + static File makePermFilename(File compilerWorkDir, int permNumber) { +return new File(compilerWorkDir, permutation- + permNumber + .js); + } + + /** + * Run Compile where precompilation occurred previously on sharded steps of + * Precompile. There will be a different serialized AST file named + *
[gwt-contrib] Re: Public: GWT version of the JSR 303 Bean Validation TCK (issue1085801)
This probably needs a README file to help users run the tests. I was not able to generate a gwt-x.y.z.zip containing the validationtck sample is that intended? http://gwt-code-reviews.appspot.com/1085801/diff/3001/4001 File samples/build.xml (right): http://gwt-code-reviews.appspot.com/1085801/diff/3001/4001#newcode46 samples/build.xml:46: gwt.ant dir=validation / This should be gwt.ant dir=validationtck / if we want the ValidationTck sample to appear in the generated gwt-x.y.z.zip distribution. But with that the ant build fails because there is no war folder under samples/validationtck. http://gwt-code-reviews.appspot.com/1085801/diff/3001/4002 File samples/common.ant.xml (right): http://gwt-code-reviews.appspot.com/1085801/diff/3001/4002#newcode159 samples/common.ant.xml:159: exclude name=org/**/super/org/**/*.java/ Do we really need to disable Checkstyle from all samples? Checkstyle is supposed to be able to deal with super source. http://gwt-code-reviews.appspot.com/1085801/diff/3001/4021 File samples/validationtck/src/org/testng/super/org/testng/ITestNGMethod.java (right): http://gwt-code-reviews.appspot.com/1085801/diff/3001/4021#newcode2 samples/validationtck/src/org/testng/super/org/testng/ITestNGMethod.java:2: // removed reflect.Method Move these comments to the class documentation. http://gwt-code-reviews.appspot.com/1085801/diff/3001/4021#newcode7 samples/validationtck/src/org/testng/super/org/testng/ITestNGMethod.java:7: //import java.lang.reflect.Method; Delete http://gwt-code-reviews.appspot.com/1085801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Fixing MultiSelectionModelTest to ensure that we are checking that the correct value is not sele... (issue1091801)
committed as r9205 http://gwt-code-reviews.appspot.com/1091801/show -- http://groups.google.com/group/Google-Web-Toolkit-Contributors