Re: How to add a project into an existing gwt project?
In the myProject1.gwt.xml file have you inherited the myProject2 like this : And you need to ensure that in the myProject2.gwt.xml you have included a source tag ie: where shared has all the required source for myProject2. Doing these two things will ensure that myProject2's code can be compiled into javascript and then the design view should work correctly. It would help if you could post the code for the two gwt.xml 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.3 Upgrade breaks hibernate queries?
Thanks for the reply, I will give it a go. Do you know the reason why this breaks? Why does anything hibernate have anything to do with my GWT version, considering I am only sending POJOs across the wire. Client side there is nothing hibernate related. I will let you know what I find if I come across anything. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTree with CellTable nodes
Hi, I have a similar problem. I my case, a complex widget (which is basically MyCompoSite.InnerHTML) is rendered as the inner HTML of each cell. The cell itself can catch click/mouseout event but not my inner HTML. The weird thing is that: Mouseover event can be caught both in the cell and in my HTML. Could any one give suggessions please? -Tatchan On May 3, 10:21 pm, johan wrote: > Well, this works fine as long as the event is managed by the tree item > itself. > But in my case, the tree item contains a CellTable and that CellTable > contains some clickable cells. > In such a case, I can't make it work. > > On May 2, 5:13 pm, lamre wrote: > > > > > Cell cell = new AbstractCell("click") > > { > > @Override > > public void render(Context > > context, Cartella value, > > SafeHtmlBuilder sb) > > { > > sb.appendEscaped(value.getDescCartella()); > > } > > //gestiamo gli eventi > > @Override > > public void onBrowserEvent(Context > > context, Element parent, > > > > Cartella value,NativeEvent event, ValueUpdater > > valueUpdater) > > { > > if (value == null) { > > return; } > > > > super.onBrowserEvent(context, parent, value, event, > > valueUpdater); > > if > > ("click".equals(event.getType())) > > { > > > ControllerPqm.getInstance().loadCartella(value.getIdCartella()); > > // Window.alert("Click > > sulla cartella "+ > > value.getDescCartella()); > > } > > } > > };- Hide quoted text - > > - Show quoted text - -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
DevMode to test compiled app
I'm using the DevMode as a conteiner so that I can test the compiled version of my app, I'm invoking the com.google.gwt.dev.DevMode directly via a Gradle task Is there a way (via command like arguments or whatever) to make the "Launch default browser" and "Copy to clipboard" buttons treat the URL without the "?gwt.codesvr" parameter? -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Display a byte[] in imageCell
The underscores in your partial sample indicates that your using what RFC3548 calls "Base 64 Encoding with URL and Filename Safe Alphabet" (see http://www.faqs.org/rfcs/rfc3548.html). I use this, too, in some places, but not images. The RFC also says: This encoding should not be regarded as the same as the "base64" encoding, and should not be referred to as only "base64". Unless made clear, "base64" refer to the base 64 in the previous section. I'm not sure, but perhaps the browser can't recognize this variation in an image. Try encoding with true Base 64 and see what you get. On May 10, 5:29 am, gadev wrote: > I am using GWT 2.3 and GAE 1.4.3. > > I have images stored as blobs in the datastore and wish to display > them in a CellTable. One of the columns of the CellTable has got > ImaceCell. > > I extract the byte[] from the blob then I use the Base64Utils, String > image = Base64Utils.toBase64(byteArray); > > and send the result to the client via GWT-RPC. > > Printing directly the string on the screen, the output looks like: > data:image/jpeg;base64,_9j_4AAQSkZJR. > > However, the image is not being displayed on the table, or even if use > the Image widget from GWT, such as Image img = new > Image(encodedString); > > Inspecting the element on chrome shows and console > displays the following warning, Resource interpreted as Image but > transferred with MIME type text/html. > > I guess for the image to be displayed the mime type should have been > image/jpeg. > > Am I missing anything? Is what I am doing possible? > > Thanks in advance, > G -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: image -> thumbnail widget?
Thanks Thad, Since posting my original note I have fond that jQuery has jCrop and there are a few others I am not a java expert but I'll play around a bit more Thanks again -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: image -> thumbnail widget?
I don't know of such a tool. Off hand, I'd say what's required is a handler to track mouse movement over the image, send a coordinate or coordinate pair back to the server, and crop the image there. How big are the images you're dealing with? Alternative approaches might be 1) Display the full image, calling setSize("50px","50px") and let the browser reduce the full image to the your 50x50 area (the way it does when you specify height and width attributes in an tag). 2) On the server, scale the image to 50x50 using something like Java Advance Imaging and send that to the server. You'll need something like JAI to do the cropping you propose anyway. Both of these solution would provide a thumbnail of the full image. On May 9, 1:10 pm, dk wrote: > Hi, > > I am looking for ideas on how to approach the following: > > I have a form and part of that form is a FileUpload widget for an > image. After uploading I need to do a few other things like create > athumbnailfrom the original. The original might be of any size but > thethumbnailwill result in a 50x50 pixel image. > > I am doing this now based on the assumption that the most interesting > part of the image is the square starting at the upper left-hand corner > of the original image and who's sides are the smaller of the > original's height or width. This is a poor assumption for all images. > > What I would like to be able to do is upload the original image, > create a smaller version of the original that my form / the image > widget could then display. Part of the display would have a square > "view port" that could be moved around the small version of the > original image. Once the view port is "dropped" it would define a > "crop" region that would then become thethumbnail. > > Does such a widget already exist? If not can you suggest how [or if] > GWT could be used to create such a thing? I can display the image, I > am not at all sure how to enable the view-port dragging. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Working Around Changes to UiBinderWriter
patch gwt-platform and submit a ticket in their bug tracker? On Tue, May 10, 2011 at 11:45 AM, DartmanX wrote: > I have upgraded my project to 2.3 to take advantage of the new > overloaded DockLayout add*() methods that accept IsWidget(). > > However, I am using the gwt-platform project, which has a Gin-aware > UiBinder implementation that chokes on the new constructor for > UiBinderWriter, to which a boolean useSafeHtmlTemplates property has > been added. > > I do not wish to stop working awaiting a fix from the gwt-platform > team, which already has plenty of issues to keep them busy. If I were > using a different technology, frankly, I'd use Spring AOP around > advice to rewrite the method on the fly to pass in a value for the new > property. > > Can anyone suggest a temporary workaround? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT/GPE 2.3 unable to sign in with Google Apps account
On Tuesday 10 May 2011, Alex Humesky wrote: > Hi all, > GPE 2.3.1 is available and has the fix for signing into Google Apps > accounts: http://dl.google.com/eclipse/plugin/3.6 Please let us know > if this doesn't fix the problem. > > Alex, GPE Team > > On May 4, 6:43 pm, Alex Humesky wrote: > > Hi all, > > We've found the problem and this should be fixed in the next release. > > Sorry for all the trouble. > > > > Alex, GPE Team > > > > On May 4, 5:28 am, Thibault Pouget wrote: > > > Sure ! I'll send them ASAP. I realise that this is slightly off topic, but how do I turn off the margin icon for Google login? I do not need it, and it is taking up valuable screen space. I looked in the preferences and could not find anything that looked relevant. David -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gpe or wbpro what should i use?
Not that wbpro has gwt devlopment , I was told that I no longer need gpe plugin and that infact it conflicts with gpe. So is this true , do the overlap, if not, can I find a comparison chart about them? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Working Around Changes to UiBinderWriter
I have upgraded my project to 2.3 to take advantage of the new overloaded DockLayout add*() methods that accept IsWidget(). However, I am using the gwt-platform project, which has a Gin-aware UiBinder implementation that chokes on the new constructor for UiBinderWriter, to which a boolean useSafeHtmlTemplates property has been added. I do not wish to stop working awaiting a fix from the gwt-platform team, which already has plenty of issues to keep them busy. If I were using a different technology, frankly, I'd use Spring AOP around advice to rewrite the method on the fly to pass in a value for the new property. Can anyone suggest a temporary workaround? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT/GPE 2.3 unable to sign in with Google Apps account
Hi all, GPE 2.3.1 is available and has the fix for signing into Google Apps accounts: http://dl.google.com/eclipse/plugin/3.6 Please let us know if this doesn't fix the problem. Alex, GPE Team On May 4, 6:43 pm, Alex Humesky wrote: > Hi all, > We've found the problem and this should be fixed in the next release. > Sorry for all the trouble. > > Alex, GPE Team > > On May 4, 5:28 am, Thibault Pouget wrote: > > > > > > > > > Sure ! I'll send them ASAP. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Unable to deploy GWT updates
Hi Owen, Check that the account that you're logged into in the Google Plugin for Eclipse owns the app ID you're trying to deploy with. If you're using two different accounts, say, a personal Google account and another one for work, you'll have to sign out of one and then sign back into the other. Alex, GPE Team On May 10, 8:07 am, Owen Ilagan wrote: > Hello, > > I've been using GWT Plugin for Eclipse for a long time now and after > upgrading to toolkit version 2.3.0 I am suddenly unable to update my > existing projects. I keep getting this error: > > Unable to update: > java.io.IOException: Error posting to > URL:https://appengine.google.com/api/appversion/create?app_id=myapp&versi... > 403 Forbidden > You do not have permission to modify this app (app_id=u'myapp'). > > at > com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServ > erConnection.java: > 245) > at > com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServ > erConnection.java: > 207) > at > com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.jav a: > 638) > at > com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersi > onUpload.java: > 446) > at > com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload > .java: > 137) > at > com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java: > 259) > at > com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: > 47) > at > com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngin > eBridgeImpl.java: > 265) > at > com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(De > ployProjectJob.java: > 144) > at > org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp > aceJob.java: > 38) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > > - > > Can somebody tell me why this is happening? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Dropdowns closing unexpectedly in IE
I have Focus, ValueChange and Change Handlers on some dropdowns. It appears like while the user is still working/changing the value of a ListBox, the dropdown closes unexpectedly. This happens only in IE (using 8). Has anybody experienced this and if so is there a solution / workaround? thanks -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT TextBox.getCursorPos() Issue in IE
I see the same problem too and only in IE. Would be great to hear a workaround / soln. thanks On Tue, May 10, 2011 at 7:02 AM, Raphael wrote: > Hi, > > I have a Problem while trying to get the Cursor position of an GWT > TextBox in IE. > It everytime returns 0. Do someone knows a workaround for this? > In Firefox/Chrome/Safari it works fine. > > Here is the Code snippet: > > //global declaration > @UiField TextBox number; > > //use of the number variable in a method > int pos = this.number.getCursorPos(); > > Raphael > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Cobertura code coverage with HtmlUnit/DevMode
I do, and it seems that the Emma distribution is patched in order to fix a classpath issue (according to README.txt). README.txt : *emma-multiclassloader-fix.patch: the patch to the emma src to get aroud the classloader issue. * But I can't find where the DevMode .class files are instrumented. According to Emma's GWT documentation, launching devmode (i.e. ant devmode), seems to generate all classes files to a desired path. I will try to instrument these files and launching the test with this classpath in a maven goal. Hope this will work ! 2011/5/10 Thomas Broyer > GWT already supports EMMA for code coverage, did you look at how it works? > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- Damien Picard Axeiya Services : http://axeiya.com/ gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/ Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Aw: Re: Temporary disable URL changes when using Places?
Hehe thanks. Works so far. Guess it was a bit to obvious so I missed that :) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: JSNI Return Results from IndexedDB Get() call?
For those interested, I figured out this problem using "Overlays" http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsOverlay.html After creating JSOForm that extends JavaScriptObject the below code is working. I also included the JSOForm class, thanks. public native static com.google.gwt.core.client.JsArray getItems() /*-{ var request = mozIndexedDB.open("AKF"); request.onerror = function(event) { $wnd.alert("There was an Error opening IndexedDB!"); }; request.onsuccess = function(event) { var db = event.target.result; var transaction = db.transaction(["form"], IDBTransaction.READ_ONLY); var request = transaction.objectStore("form").getAll(); request.onerror = function(event) { $wnd.alert("error getAll object"); } request.onsuccess = function(event) { $wnd.alert("Success getAll"); var results = event.target.result; @com.dve.client.store.indexedDB.IndexedDB::tester(Lcom/google/gwt/ core/client/JsArray;)(results); } } }-*/; public class JSOForm extends JavaScriptObject { protected JSOForm() { } public final native int getFormId() /*-{ return this.formId; }-*/; public final native int getOrgId() /*-{ return this.orgId; }-*/; public final native int getProjectId() /*-{ return this.projectId; }- */; public final native String getFormName() /*-{ return this.formName; }- */; public final native String getLevel_1() /*-{ return this.level_1; }- */; public final native String getLevel_2() /*-{ return this.level_2; }- */; public final native String getLevel_3() /*-{ return this.level_3; }- */; public final native String getLevel_4() /*-{ return this.level_4; }- */; public final native String getLevel_5() /*-{ return this.level_5; }- */; public final native String getForm() /*-{ return this.form; }-*/; public final native String getCreatedBy() /*-{ return this.createdBy; }-*/; public final native String getCreateDate() /*-{ return this.createDate; }-*/; public final native String lastSavedBy() /*-{ return this.lastSavedBy; }-*/; public final native String lastSaved() /*-{ return this.lastSaved; }- */; } private static void tester(JsArray jsa) { Window.alert("jso = " + jsa.length()); for(int i=0; ihttp://groups.google.com/group/google-web-toolkit?hl=en.
Re: Cobertura code coverage with HtmlUnit/DevMode
GWT already supports EMMA for code coverage, did you look at how it works? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Display a byte[] in imageCell
I am using GWT 2.3 and GAE 1.4.3. I have images stored as blobs in the datastore and wish to display them in a CellTable. One of the columns of the CellTable has got ImaceCell. I extract the byte[] from the blob then I use the Base64Utils, String image = Base64Utils.toBase64(byteArray); and send the result to the client via GWT-RPC. Printing directly the string on the screen, the output looks like: data:image/jpeg;base64,_9j_4AAQSkZJR. However, the image is not being displayed on the table, or even if use the Image widget from GWT, such as Image img = new Image(encodedString); Inspecting the element on chrome shows and console displays the following warning, Resource interpreted as Image but transferred with MIME type text/html. I guess for the image to be displayed the mime type should have been image/jpeg. Am I missing anything? Is what I am doing possible? Thanks in advance, G -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to add a project into an existing gwt project?
Hi, I have a gwt project, myProject1 ongoing in eclipse and I want to add another project into this, myProject2. This is what I have done so far: 1. Open my first gwt project in eclipse, myProject1. 2. Selected Import->Existing project into workspace and selected myProject2. The project explorer in eclipse now shows the two projects. 3. Added myProject2 to the Properties->Java Build Path->Projects tab in myProject1. 4. Added "import .myClass2" at the top of the java file in myProject1 that is my client GUI file. I am now able to use the myClass2 class (that is found in myProject2) in the myProject1. BUT, here is my problem: I can not compile the GWT project and I can not go to the Design view of my java file anymore. I will get the error: [ERROR] Line 1283: No source code is available for type .myClass2; did you forget to inherit a required module? How do I solve this? The myProject2 contains java files and also uses a jar file. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
gwt-google-apis (Visualization API) and nested smartGWT layout containers
Hi, Originally posted here -> http://groups.google.com/group/google-visualization-api/browse_thread/thread/42aa6d915eb25006 and here -> http://forums.smartclient.com/showthread.php?s=394a0c94510a814b755f12ec57cfb95e&t=16703 And suggested I should also post here. To summarise: I would like to add visualization support via the gwt-google-apis (Visualization API 1.1) to an existing GWT (2.1.1) and smartGWT (2.4) application. I followed the approach described in this post -> http://forums.smartclient.com/showpost.php?p=37754&postcount=2 and the Visualization Getting Started guide-> http://code.google.com/p/gwt-google-apis/wiki/VisualizationGettingSta And, then found this post -> http://groups.google.com/group/google-visualization-api/browse_thread... in the Google Visualization API discussion group. For example: -> public void loadVisualizationApi() { Log.debug("loadVisualizationApi()"); // Create a callback to be called when the visualization API // has been loaded. Runnable onLoadCallback = new Runnable() { public void run() { Log.debug("onLoadCallback()"); // Create a pie chart visualization. pie = new PieChart(createTable(), createOptions()); pie.setWidth("80%"); Canvas canvas = new Canvas(); canvas.setID("sys_pie_canvas"); canvas.setWidth100(); canvas.setHeight("50%"); canvas.addChild(pie); panel.addMember(canvas, 0); Log.debug("panel.addMember(canvas, 0)"); } }; // Load the visualization api, passing the onLoadCallback // to be called when loading is complete. VisualizationUtils.loadVisualizationApi("1.1", onLoadCallback, PieChart.PACKAGE); } // The code for createTable() and createOptions()) is as per // the post mentioned above. -> However, this results in the following error: java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list at com.google.gwt.user.client.ui.RootPanel.detachOnWi ndowClose(RootPanel.java:136) when using GWT (2.1.1), smartGWT LGPL (2.5 nightly build) and Google Visualization API (1.1). Note: I also tested the code using smartGWT (2.4) and received the following error: (NativeMethodAccessorImpl.java:-2) 2011-05-09 10:26:21,613 [FATAL] Uncaught JavaScript exception [Script error.] in , line 0 If I comment out the call to "panel.addMember(pie)" and replace it with "RootPanel.get().add(pie)" no exception is thrown and the "chart" is rendered correctly (you can see it momentarily if you re-size the browser window) but as a child of the root panel. Which means it is hidden by the application's other nested layout containers (e.g. North, West, East and South). I would like to be able to place the "chart" in a nested layout container if possible? then After a bit more investigation I found this post (GWT layout gotcha) - > http://turbomanage.wordpress.com/2010/01/12/gwt-layout-gotcha/ on David Chandler's blog. Which states "One gotcha I’ve found is that you must be careful not to attach a widget to a DIV nested inside a DIV that is attached to a widget." -> public class DashboardsView extends ViewWithUiHandlers implements DashboardsPresenter.MyView { private static final String CONTEXT_AREA_WIDTH = "*"; private static String html = " \n"; private VLayout panel; private HTMLFlow htmlFlow; private PieChart pie; public DashboardsView() { panel = new VLayout(); panel.setWidth(CONTEXT_AREA_WIDTH); htmlFlow = new HTMLFlow(html); panel.addMember(htmlFlow); loadVisualizationApi(); } @Override public Widget asWidget() { return panel; } public void loadVisualizationApi() { Log.debug("loadVisualizationApi()"); // Create a callback to be called when the visualization API has been loaded. Runnable onLoadCallback = new Runnable() { public void run() { Log.debug("onLoadCallback()"); pie = new PieChart(createTable(), createOptions()); RootPanel.get("chart_sibling_div").add(pie); // RootPanel.get("chart_nested_div").add(pie); } }; // Load the visualization api, passing the onLoadCallback to be called when loading is complete. VisualizationUtils.loadVisualizationApi("1.1", onLoadCallback, PieChart.PACKAGE); } -> Host file: -> Loading -> The call to RootPanel.get("chart_sibling_div").add(pie) works as expected (albeit the chart isn't where I'd like it to be). However, the same call (using a nested div) "RootPanel.get("chart_nested_div").add(pie)" fails as per David's post [ERROR] Uncaught exception escaped java.lang.AssertionError: A widget that has an existing parent widget may not be added to the detach list at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose(RootPanel.java: 122) N.B. The application (http://code.google.com/p/crmdipity/) uses smartGWT nested layout container
GWT TextBox.getCursorPos() Issue in IE
Hi, I have a Problem while trying to get the Cursor position of an GWT TextBox in IE. It everytime returns 0. Do someone knows a workaround for this? In Firefox/Chrome/Safari it works fine. Here is the Code snippet: //global declaration @UiField TextBox number; //use of the number variable in a method int pos = this.number.getCursorPos(); Raphael -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem using dll in a project
Hi all, my problem is due to an "access denied (java.lang.RuntimePermission loadLibrary.jacob-1.15-M4-x86)"; as you can see, the problem is related to jacob.dll. I'm trying to edit java.policy, to add the dll in the PATH, to add -Djava.library.path, to launch eclipse as Administrator, to sign jacob.jar... but NOTHING! I don't know why, but under tomcat it works. I try also to delete GAE jars from my local WEB-INF/lib... same error everytime!. Some other tests? 2011/5/8 dkmorb > Hi all, I'm new here. > I want to use a dll in a service. I wrote some code and it seems to be > correct, because I deploy compiled war dir under tomcat and the > project work correctly (the dll file is copied under tomcat /bin dir). > Under gwt eclipse plugin I don't know where put the dll file (i try in > WEB-INF/lib folder, under "X" folder, under system32 folder and so > on). The problem is "Access denied" for dll. > Have someone experinced with this kind of problem? > > Thanks in advance! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
JSNI Return Results from IndexedDB Get() call?
I'm trying to get a Java object back from an IndexedDB get() call via a JSNI method. I can't figure it out, code is below, any help is appreciated. I think because this code is RPC in nature, i.e. it does a call and you wait for the success or error to come back that maybe has something to do with it? How do I get a useful java object back from this method? Thanks! public native static void getItems() /*-{ var request = mozIndexedDB.open("MyDB"); request.onerror = function(event) { $wnd.alert("There was an Error opening IndexedDB!"); }; request.onsuccess = function(event) { var db = event.target.result; var transaction = db.transaction(["form"], IDBTransaction.READ_ONLY); var request = transaction.objectStore("form").getAll(); request.onerror = function(event) { $wnd.alert("error getAll object"); } request.onsuccess = function(event) { $wnd.alert("Success getAll"); var results = event.target.result; for(var i=0; ihttp://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.3 Upgrade breaks hibernate queries?
I know I ended up adding hibernate-validator-4.1.0.Final.jar and validation-api-1.0.0.GA.jar to my classpath when I upgraded. On May 10, 2:11 am, cruser wrote: > I have just upgraded to GWT 2.3.0 > > I am working with hibernate for the back-end. In GWT 2.2.0 all my queries > worked fine, however since the upgrade to 2.3.0 all the hibernate queries > are broken. Read exception below: > > org.hibernate.HibernateException: Unable to get the default Bean Validation > factory > at > org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValid > ationActivator.java:127) > at > org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configu > ration.java:1674) > at > org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:16 > 24) > at > org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1415) > at > org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1826 ) > at net.impro.portal.persistence.HibernateUtil.(HibernateUtil.java:16) > > This exception is thrown whilst trying to invoke the following : > > Configuration config = new Configuration(); > config.configure("hibernate.cfg.xml"); > FACTORY = config.buildSessionFactory(); > > Has anyone had the same issue? Can anyone point me in the right direction? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Cobertura code coverage with HtmlUnit/DevMode
Hi, I'm trying to generate code coverage report with Cobertura on GWTTestCases. To do that, I would like to run these tests with the standard GWTRunner with HtmlUnit. As the Cobertura documentation says, the coverture is calculated using instrumentations added to .class files in a first step, and then by using this instrumented code in the tests. As the GWT documentation says, the tests are, by default, launched in the DevMode, which uses real .class files to execute the tests ; except for Javascript native code (JSNI) that is transfered to the browser by the DevMode (In this case, HtmlUnit will handle this code). So, I think I could have code coverage on these DevMode .class files if I can instrument them with Cobertura. I've seen that the Cobertura instrumentation path can be given as a parameter to the instrumentation step, and I would like to point the cobertura instrumentation step at the .class files generated by the DevMode. But, after reading the DevMode source code, it seems that .class files are generated dynamically (with jdt) and added on-the-fly to the class loader. Is there a way to generate DevMode .class files ahead of time, allowing me to try an instrumentation with Cobertura ? Thank in advance. -- Damien Picard Axeiya Services : http://axeiya.com/ gwt-ckeditor : http://code.google.com/p/gwt-ckeditor/ Mon livre sur GWT : http://axeiya.com/index.php/ouvrage-gwt.html -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Creating new objects inside a CompositeEditor causing failure in checkStreamsNotCrossed
Can anyone take a look at this and let me know if this flow seems sane? I'm seeing an error: Caused by: java.lang.AssertionError: Unfrozen bean with null RequestContext at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.checkStreamsNotCrossed(AbstractRequestContext.java:841) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.editProxy(AbstractRequestContext.java:425) doing this. I have a CompositeEditor that needs to be able to make a server call to get a "template" object that it then spawns a new editor for. I have an outer object OuterObject that contains a collection of InnerObject. 1. Instantiate OuterObjectEditor with a RequestFactoryEditorDriver and a context. This calls the setValue and populates the InnerObjectCompositeEditor with the current values, which are displayed in a table. 2. User clicks a button to add a new InnerObject, which creates a new context, makes a server call to create the new object, and calls back with the new InnerObject. 3. Instantiate a new RequestFactoryEditorDriver and InnerObjectEditor for the InnerObject, call driver.edit(OuterObjectEditor's context, innerObject) and attach the editor to the chain. 4. The user edits the new object and clicks save. 5. Flush the InnerObjectEditor using the inner driver , and call chain.getValue() to read the new object's values and display it in the table. 6. The user clicks save and everything saves properly. 7. As a result of the save, the saved OuterObject (with inner objects) is reloaded and passed back in to the outerObjectEditActivity. 8. The activity creates a new context, and calls driver.edit(returned OuterObject, new context) This last step throws an exception : Caused by: java.lang.AssertionError: Unfrozen bean with null RequestContext at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.checkStreamsNotCrossed(AbstractRequestContext.java:841) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.editProxy(AbstractRequestContext.java:425) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext$3.visitCollectionProperty(AbstractRequestContext.java:896) at com.mypackageOuterObjectProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.traverseProperties(OuterObjectProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java:268) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.traverse(AbstractAutoBean.java:166) at com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.accept(AbstractAutoBean.java:101) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.cloneBeanAndCollections(AbstractRequestContext.java:866) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.editProxy(AbstractRequestContext.java:441) at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.edit(AbstractRequestContext.java:418) at com.google.web.bindery.requestfactory.gwt.client.impl.RequestFactoryEditorDelegate.ensureMutable(RequestFactoryEditorDelegate.java:137) at com.google.gwt.editor.client.impl.BaseEditorDriver.doEdit(BaseEditorDriver.java:89) at com.google.web.bindery.requestfactory.gwt.client.impl.AbstractRequestFactoryEditorDriver.edit(AbstractRequestFactoryEditorDriver.java:177) at com.mypackageOuterObjectEditActivity.edit(OuterObjectEditActivity.java:196) ... My best guess is that there is something stale hanging around in the editor, since my setValue call on my innerObjectCompositeEditor has not yet been called. When I look at the collection in the cloneBeanAndCollections method in the stack trace in a debugger, it only has the old items, not the newly created item. Is there some way to tell the driver to discard anything it has in the editor, and start over with the new object? Thanks, Eric -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Temporary disable URL changes when using Places?
You have to put in your PlaceHistoryMapper only the places that want to handle with the history handler. "PlaceHistoryMapper is the link between your PlaceTokenizers and GWT's PlaceHistoryHandler that synchronizes the browser URL with each Place." http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html#PlaceHistoryMapper -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Array of widgets in uibinder
I think is very easy to accomplish this in more than one way. One simple thing you can do is create a Widget that handles everything ImageListWidget extends VerticalPanel (or Composite) add a constructor that takes in an array of Images (or any widget) and just have the ImageListWidget add new widgets to the VerticalPanel Same as creating your custom Wrapper around a standard array to give it more functionality. Same can be true for the VerticalPanel On May 10, 8:50 am, jayalakshmi jahagirdar wrote: > Hi all, > Is there any way to create a array of widgets using uibinder. > We access the widgtes like this > > @UiField > > Image *image*; > > How can i create a array of images and use them. > > Regards > > Jayalakshmi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt memory leak ?
hi Thomas thanx for the quick answer. sorry for being a noop here but i i dont seem to be able to apply the patch n2 & 4, since the package-structure of the source ( from http://google-web-toolkit.googlecode.com/svn/trunk/ ) is not the same as in release version. just replace the built gwt-user.jar gave me exception (requestfactory not found), it's also at different package compare to the released version. On Mon, May 9, 2011 at 4:30 PM, Thomas Broyer wrote: > Yes: http://code.google.com/p/google-web-toolkit/issues/detail?id=6193 > > At the moment, because I haven't upgraded or GWT libraries for a while, > we're having a copy of WeakMapping (from the first patchset in the proposed > fix) in our sources, that happen to override GWT's one thanks to the order > they appear in the classpath. The issue hasn't appeared again yet, but we're > still only in the testing phase of our very first milestone. > That'd be great if you could test the proposed fix (to AutoBean rather than > WeakMapping) and comment back with your feedback, as I cannot upgrade GWT > for the time being. > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Array of widgets in uibinder
Hi all, Is there any way to create a array of widgets using uibinder. We access the widgtes like this @UiField Image *image*; How can i create a array of images and use them. Regards Jayalakshmi -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Temporary disable URL changes when using Places?
Hi, Is it somehow possible to disable URL changes when switching between places so that the browsers back/forward buttons keep disabled? I asks this because I have an app that does not use Places/Activities yet but I now have a use case where an anchor/link has to change its url according to "where you are" in the app (basically its a "show help" link). So I thought I could use the Places Framework to define Places and have them stored the information needed to generate the correct link url. But I do not want to change the actual UI based on the place. So for now no app rewrite to use Activities/ActivityMapper etc. But because I do not want to change the UI based on the Place, each time the the user switches between places the browsers back/forward buttons will be active and a user could change the generated link url by clicking the back/forward button (because the UI stays the same the link url can become wrong based on what the user sees). So can I somehow deactivate the change of place history tokens in the browser's location bar? Of course I could create my own event and send it to through the eventbus but as I want to use Activities in the future I thought it would be nice to integrate Places now and add the Activities stuff later. -- J. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Delivery Status Notification (Failure)
I extended AbstractStandardDispatchServlet in order to use it with spring and it seems that getDispatch() from here returns me null Dispatch Object. package cayetano.common.web.handler; import javax.inject.Inject; import javax.servlet.ServletConfig; import javax.servlet.ServletException; import net.customware.gwt.dispatch.server.Dispatch; import net.customware.gwt.dispatch.server.standard.AbstractStandardDispatchServlet; import org.springframework.beans.factory.config.AutowireCapableBeanFactory; import org.springframework.web.context.WebApplicationContext; import org.springframework.web.context.support.WebApplicationContextUtils; public final class StandardDispatchServiceServlet extends AbstractStandardDispatchServlet { private static final long serialVersionUID = 1L; private Dispatch dispatch; @Override public void init(ServletConfig config) throws ServletException { super.init(config); WebApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(config.getServletContext()); AutowireCapableBeanFactory beanFactory = ctx.getAutowireCapableBeanFactory(); beanFactory.autowireBean(this); } @Inject public void setDispatch(Dispatch dispatch) { this.dispatch = dispatch; } @Override protected Dispatch getDispatch() { return dispatch; } } On Tue, May 10, 2011 at 3:35 PM, Mail Delivery Subsystem < mailer-dae...@google.com> wrote: > Hello nenchev.mari...@gmail.com, > > We're writing to let you know that the group you tried to contact > (gwt-dispatch) may not exist, or you may not have permission to post > messages to the group. A few more details on why you weren't able to post: > > * You might have spelled or formatted the group name incorrectly. > * The owner of the group may have removed this group. > * You may need to join the group before receiving permission to post. > * This group may not be open to posting. > > If you have questions related to this or any other Google Group, visit the > Help Center at http://groups.google.com/support/?hl=en_US. > > Thanks, > > Google Groups > > > > - Original message - > > Received: by 10.227.6.201 with SMTP id a9mr499687wba.9.1305030944722; >Tue, 10 May 2011 05:35:44 -0700 (PDT) > Received: by 10.227.6.201 with SMTP id a9mr499686wba.9.1305030944699; >Tue, 10 May 2011 05:35:44 -0700 (PDT) > Return-Path: > Received: from mail-ww0-f52.google.com (mail-ww0-f52.google.com[74.125.82.52]) >by gmr-mx.google.com with ESMTPS id > 15si2056852wbl.0.2011.05.10.05.35.44 >(version=TLSv1/SSLv3 cipher=OTHER); >Tue, 10 May 2011 05:35:44 -0700 (PDT) > Received-SPF: pass (google.com: domain of nenchev.mariyan@gmail.comdesignates > 74.125.82.52 as permitted sender) client-ip=74.125.82.52; > Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of > nenchev.mari...@gmail.com designates 74.125.82.52 as permitted sender) > smtp.mail=nenchev.mari...@gmail.com; dkim=pass (test mode) header.i=@ > gmail.com > Received: by mail-ww0-f52.google.com with SMTP id 31so2227465wwb.33 >for ; Tue, 10 May 2011 05:35:44 -0700 (PDT) > DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; >d=gmail.com; s=gamma; >h=domainkey-signature:mime-version:date:message-id:subject:from:to > :content-type; >bh=m20dryqixWN7v5wibo2n0TSMDH8u7b5FNvrDtRbfXys=; >b=gVPVm0JVv7h8npgCDmsk1JB1hVcIoGNf3IJC4GQrUwjsm0OtA5FWOF+OoL5ZJ0HciB > > mVAqE24y8qNbqdQEGF0HvgmkFh1bvEBSTjhAygD7qCvEgQt/wrxKQsXnDMaOcoaCa95u > Z+CCHQlKI+YNPmcox3z36FkwGEizDqOJjKQBo= > DomainKey-Signature: a=rsa-sha1; c=nofws; >d=gmail.com; s=gamma; >h=mime-version:date:message-id:subject:from:to:content-type; >b=u11xJ05YpJuyd0NNYBt1jxo8aP//WMIdWjGYcJ8SnilZPfFcOEvpXpB/5f84vqjwaq > > yQx0GVvEMxug0TPJ99bYj/8UepqOvNtp3muYrGlEChZFiUwZgKi2mbNRz8575oCVGTGU > b/g7oEJXW6LQarNKUgj1WesOH4T8yi0isxCV8= > MIME-Version: 1.0 > Received: by 10.227.172.143 with SMTP id l15mr928739wbz.80.1305030944539; > Tue, > 10 May 2011 05:35:44 -0700 (PDT) > Received: by 10.227.148.17 with HTTP; Tue, 10 May 2011 05:35:44 -0700 (PDT) > Date: Tue, 10 May 2011 15:35:44 +0300 > Message-ID: > Subject: Strange NullPointerException during getDispatch().execute(action); > From: mariyan nenchev > To: gwt-dispa...@googlegroups.com, >Google Web Toolkit > Content-Type: multipart/alternative; boundary=485b3973f087dec5ad04a2eb31b3 > > Hi > > I am getting very strange exception during execution of dispatch action. It > seems that getDispatch() returns null?! Here is the exception: > > rpcDispatcher: Exception while executing > cayetano.games.updownbet.web.shared.handler.action.UpDownBetGameAction: > null > java.lang.NullPointerException > at > > net.customware.gwt.dispatch.server.standard.AbstractStandardDispatchServlet.execute(AbstractStandardDispatchServlet.java:17) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
Strange NullPointerException during getDispatch().execute(action);
Hi I am getting very strange exception during execution of dispatch action. It seems that getDispatch() returns null?! Here is the exception: rpcDispatcher: Exception while executing cayetano.games.updownbet.web.shared.handler.action.UpDownBetGameAction: null java.lang.NullPointerException at net.customware.gwt.dispatch.server.standard.AbstractStandardDispatchServlet.execute(AbstractStandardDispatchServlet.java:17) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Unable to deploy GWT updates
Hello, I've been using GWT Plugin for Eclipse for a long time now and after upgrading to toolkit version 2.3.0 I am suddenly unable to update my existing projects. I keep getting this error: Unable to update: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=myapp&version=1&; 403 Forbidden You do not have permission to modify this app (app_id=u'myapp'). at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java: 245) at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java: 207) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 638) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 446) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 137) at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java: 259) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 47) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 265) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 144) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) - Can somebody tell me why this is happening? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Can CodeSplitting technique be used to load another Module within the same app
On Tue, May 10, 2011 at 11:17 AM, Kayode Odeyemi wrote: > Hello, > > I have an app that I want to split into modules. I already have the splitted > modules, > now I want to call it from the main module. Can this be achieved with > GWT.runAsync? > > For example, I want to do this; > > GWT.runAsync(new RunAsyncCallback() { > public void onFailure(Throwable caught) { > Window.alert("Code download failed"); > } > > public void onSuccess() { > // call a module at org.mycompany.Dashboard > } > }); You can do that. You can even call you own onModuleLoad on that module - it's a simple call to an anonymous function. But I guess it's more important to make sure that your splitting makes "sense". Be sure to check your code splitting in the story of your compile (SYOC - http://code.google.com/intl/de-DE/webtoolkit/doc/latest/DevGuideCodeSplitting.html). Best, Raphael > > Regards > > -- > Odeyemi 'Kayode O. > http://www.sinati.com. t: @charyorde > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to log whenever Async call is made
I used an external library called gwtchisems that has a progress bar and sets the background to modal, you could call it while processing an RPC. Regards, John. On Tue, May 10, 2011 at 10:43 AM, Jiunarayan wrote: > I want to log, to show like "loading ui" when ever the code > splitting is loading > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To post to this group, send email to google-web-toolkit@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to log whenever Async call is made
I want to log, to show like "loading ui" when ever the code splitting is loading -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Can CodeSplitting technique be used to load another Module within the same app
Hello, I have an app that I want to split into modules. I already have the splitted modules, now I want to call it from the main module. Can this be achieved with GWT.runAsync? For example, I want to do this; GWT.runAsync(new RunAsyncCallback() { public void onFailure(Throwable caught) { Window.alert("Code download failed"); } public void onSuccess() { // call a module at org.mycompany.Dashboard } }); Regards -- Odeyemi 'Kayode O. http://www.sinati.com. t: @charyorde -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
EditTextCell() set editable on Button Click
Hi. I have a cellTable In my project with EditTextCell() column and also a button. On button click I'm making validation of celltable's data and when I get incorrect data I want to set a cell with that incorrect data editable like I click on that cell, but I didn't find any solution how to make a cell editable without mouseclick on that cell. Please help me - is there a way to do it (programmatically) without mouseclick on current cell. Best Regards, Manvel Saroyan -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Facebook like/send buttons: using XFBML from GWT
I'm having the same problemI can post a Like buttonbut not he XFBML for a comments plugin.so irritating... -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.3 Upgrade breaks hibernate queries?
I have just upgraded to GWT 2.3.0 I am working with hibernate for the back-end. In GWT 2.2.0 all my queries worked fine, however since the upgrade to 2.3.0 all the hibernate queries are broken. Read exception below: org.hibernate.HibernateException: Unable to get the default Bean Validation factory at org.hibernate.cfg.beanvalidation.BeanValidationActivator.applyDDL(BeanValidationActivator.java:127) at org.hibernate.cfg.Configuration.applyBeanValidationConstraintsOnDDL(Configuration.java:1674) at org.hibernate.cfg.Configuration.applyConstraintsToDDL(Configuration.java:1624) at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1415) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1826) at net.impro.portal.persistence.HibernateUtil.(HibernateUtil.java:16) This exception is thrown whilst trying to invoke the following : Configuration config = new Configuration(); config.configure("hibernate.cfg.xml"); FACTORY = config.buildSessionFactory(); Has anyone had the same issue? Can anyone point me in the right direction? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.