Re: "Fast" implementation of Design displays with GWT?
(how is the CSS shared? is it minified? optimized?) Every component/widget has his own Resource stuff > (ClientBundle/CssResource). So, yes, it's minified... > > Sorry about the strange answer, wasn't reading well, bit sleepy ;) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CellTable disapears when a row click occurs and a RichTextArea widget is present
I cant replicate this problem that was occuring yesterday. thank your for your help but for now this problem seems to be resolved. Quinta-feira, 6 de Junho de 2013 19:58:56 UTC+1, Luis Costa escreveu: > > Hi all, > > I'm using GWT 2.5.1 and GWTP. > > Something very strange is happening, I've a RichTextArea widget and a > cellTable. > > > If I try to select a row all cellTable disappears! > > > > But if I remove RichTextArea widget or replace the cellTable for a > DataGrid and select a row (clicking in the cellTable/ DataGrid row) it > works fine; > > > > Is this a known problem? > > > > Many thanks, > > > > Luis Costa > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT frontend, non java backend
I've read a few different sources about how to create projects with a GWT front and a non-java backend. Well how about hosting, how do you host a GWT front end? We've been primarily developing GWT/GXT applications for the past 5 or 6 years until we got bought out recently and their forcing us to use Ruby on Rails for the back end. I'm in the process of researching how we could use GWT as the front end. Any tips, links, tutorials, anything to help me figure this process out would be greatly appreciated. Thank you -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: javascript call to java method doesn´t work in developing mode - but when code is compiled (GWT 2.51)
Agreed ! - but it´s just a typing error for this post. Thank´s for the comment. On Friday, June 7, 2013 1:16:24 PM UTC+2, Thomas Broyer wrote: > > > > On Thursday, June 6, 2013 7:50:09 PM UTC+2, Olaf Raether wrote: >> >> If have a Class that looks similar like this: >> >> public class MyClass extends Widget { >> >> public MyClass() { >> declareMethod(this); >> } >> >> //Method which declares non-static method in javascript >> public native void declareMethod(MyClass this) /*-{ >> var _this = this; >> $wnd.doSomething = function(someString) { >> >> _this.@com.example.MyClass::doSomething(Ljava/lang/String;)(someString); >> } >> }-*/;} >> >> > Calling something 'this' is a really bad idea. 'this' is a keyword, and > I'm surprised this even compiles (though maybe it's allowed in Java, I > haven't checked). That said, in this case, both the argument and 'this' > should be the same value so it shouldn't be a problem. > > This code is missing a call to $entry() though: > > $wnd.doSomething = $entry(function(someString) { > > _this.@com.example.MyClass::doSomething(Ljava/lang/String;)(someString); > > }); > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: "Fast" implementation of Design displays with GWT?
> > Have you looked at Errai UI? http://vimeo.com/44141164 I did some time ago, through a webinar. I will have a look again, see if I can get some inspiration. Thanks for the tip.. (how is the CSS shared? is it minified? optimized?) Every component/widget has his own Resource stuff (ClientBundle/CssResource). So, yes, it's minified... Just a tought that is going around in my head: The gwt dev developer roughly implements the styles, shows/gives it to the designer and the designer uses some kind of tool/browser-plugin to make changes and report the changes back to the developer... But how ??... You can use the UiBinder stuff as well. Yes, but UiBinder is "such a static thing". Used it a lot in the beginning (still use it), but every time use it less, as I require more dynamic behavior Also other option is integrate a powerful CMS such us Magnolia with your > GWT app. Could you give some more details on this? BTW: I work cms agnostic: the cms publish files that are cached infinitive (just like the GWT files) and picked up by the gwt app in the split points when needed. When new cms files are published, a cms build id is incremented in the index.html file such that a new url is used to load the cms files such that they are refreshed... Still searching for the half-silver bullet ;) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: determine if running on client or server OR synchronize time on server/client?
Use com.google.gwt.core.shared.GWT.isClient() Paul On 07/06/13 15:34, Magnus wrote: > Hi, > > my chess application should trust only the server time. > > However, I have a "shared" class that is used both on server and client. > Within this class I determine the current time by creating a new Date object. > > When running on the server, this object represents the correct time. When > running on the client, I would like to synchronize it with the server before > using it. > > But how can I tell if I am running on the server or the client? > > Below is a short pseudo code for illustration. > > Thanks > Magnus > > - > > class ChessClock > { > ... > private int offset; // "delta" between server and client time > ... > > private Date getCurrentTime () > { > Date d = new Date (); > > if (!runningOnServer ()) > { >long ms = d.getTime () + offset; >d = new Date (ms); > } > } > > private boolean runningOnServer () > { > // how to determine??? > } > > } > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT2.4 RequestFactory and Hibernate validator 4.2 problem
Hi Thomas Thanks for the link!! Cheers Chris On Thursday, 6 June 2013 01:42:01 UTC+1, Thomas Broyer wrote: > > You might be interested by > https://code.google.com/p/google-web-toolkit/issues/detail?id=7661 > > On Wednesday, June 5, 2013 11:07:51 PM UTC+2, CM wrote: >> >> HI >> >> thank you for your post, this fixed it for me. >> >> Cheers >> >> Chris >> >> On Tuesday, 20 December 2011 20:48:05 UTC, Jesus Urenda wrote: >>> >>> I was able to fix this issue in my environment but I'm not 100% sure >>> why. Basically all I did was to remove the hibernate jar out of the >>> WEB-INF/lib but made sure it was still part of the projects build >>> path. >>> >>> Contents of WEB-INF/lib >>> appengine-api-1.0-sdk-1.6.0.jar >>> appengine-api-labs-1.6.0.jar >>> appengine-jsr107cache-1.6.0.jar >>> apps-marketplace.jar >>> datanucleus-appengine-1.0.10.final.jar >>> datanucleus-core-1.1.5.jar >>> datanucleus-jpa-1.1.5.jar >>> geronimo-jpa_3.0_spec-1.1.1.jar >>> geronimo-jta_1.1_spec-1.1.1.jar >>> gwt-servlet-deps.jar >>> gwt-servlet.jar >>> jdo2-api-2.3-eb.jar >>> jsr107cache-1.1.jar >>> objectify-3.1.jar >>> requestfactory-apt.jar >>> requestfactory-server.jar >>> slf4j-api-1.6.1.jar >>> slf4j-log4j12-1.6.1.jar >>> validation-api-1.0.0.GA.jar >>> >>> I hope this helps. >>> >>> On Dec 10, 9:39 am, Ruben Leal wrote: >>> > Hello guys, >>> > >>> > I'm trying to test gwt2.4 RequestFactory technology with Hibernate >>> > validator 4.2. After adding libs to my WEB-INF/lib I have this >>> exception >>> > when I try to call persist of a simple object in the client side. >>> > >>> > I have this exception executing in local mode: >>> > >>> > java.lang.NoSuchMethodError: org.slf4j.Logger.isTraceEnabled()Z >>> > >>> > Deploying to app engine servers I have this exception: >>> > >>> > java.lang.IllegalAccessError: tried to access field >>> > org.slf4j.impl.StaticLoggerBinder.SINGLETON from class >>> > org.slf4j.LoggerFactory >>> > >>> > I search on google about similar errors and people speak about slf4j >>> > library versions. I tried to use different old versions with same >>> hibernate >>> > validator version and same errors. >>> > >>> > Please some solution to my problem? >>> > >>> > this is the list of files in my WEB-INF/lib folder: >>> > >>> > /identidad/war/WEB-INF/lib/appengine-api-1.0-sdk-1.6.0.jar >>> > /identidad/war/WEB-INF/lib/appengine-api-labs-1.6.0.jar >>> > /identidad/war/WEB-INF/lib/appengine-jsr107cache-1.6.0.jar >>> > /identidad/war/WEB-INF/lib/apps-marketplace.jar >>> > /identidad/war/WEB-INF/lib/datanucleus-appengine-1.0.10.final.jar >>> > /identidad/war/WEB-INF/lib/datanucleus-core-1.1.5.jar >>> > /identidad/war/WEB-INF/lib/datanucleus-jpa-1.1.5.jar >>> > /identidad/war/WEB-INF/lib/geronimo-jpa_3.0_spec-1.1.1.jar >>> > /identidad/war/WEB-INF/lib/geronimo-jta_1.1_spec-1.1.1.jar >>> > /identidad/war/WEB-INF/lib/gwt-servlet-deps.jar >>> > /identidad/war/WEB-INF/lib/gwt-servlet.jar >>> > /identidad/war/WEB-INF/lib/hibernate-validator-4.2.0.Final.jar >>> > /identidad/war/WEB-INF/lib/jdo2-api-2.3-eb.jar >>> > /identidad/war/WEB-INF/lib/joda-time-1.6.jar >>> > /identidad/war/WEB-INF/lib/jsoup-1.5.2.jar >>> > /identidad/war/WEB-INF/lib/jsr107cache-1.1.jar >>> > /identidad/war/WEB-INF/lib/log4j-1.2.16.jar >>> > /identidad/war/WEB-INF/lib/requestfactory-server.jar >>> > /identidad/war/WEB-INF/lib/slf4j-api-1.6.1.jar >>> > /identidad/war/WEB-INF/lib/slf4j-log4j12-1.6.1.jar >>> > /identidad/war/WEB-INF/lib/validation-api-1.0.0.GA.jar >>> >>> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: "Fast" implementation of Design displays with GWT?
Agree with Thomas. You can use the UiBinder stuff as well. Saying to your designer "Implements the
determine if running on client or server OR synchronize time on server/client?
Hi, my chess application should trust only the server time. However, I have a "shared" class that is used both on server and client. Within this class I determine the current time by creating a new Date object. When running on the server, this object represents the correct time. When running on the client, I would like to synchronize it with the server before using it. But how can I tell if I am running on the server or the client? Below is a short pseudo code for illustration. Thanks Magnus - class ChessClock { ... private int offset; // "delta" between server and client time ... private Date getCurrentTime () { Date d = new Date (); if (!runningOnServer ()) { long ms = d.getTime () + offset; d = new Date (ms); } } private boolean runningOnServer () { // how to determine??? } } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: "Fast" implementation of Design displays with GWT?
Have you looked at Errai UI? http://vimeo.com/44141164 (I just watched the video, never tried it; but if you want something fast, it's looks impressive). As many things from Errai though (correct me if I'm wrong), it seems mostly designed towards developer productivity rather not application performance (how is the CSS shared? is it minified? optimized?) On Friday, June 7, 2013 3:39:58 PM UTC+2, Ed wrote: > > I like to know how people realize the design (Photoshop or other files) in > GWT and what would be the best way? > > I still find it take too long to implement styles and stuff like that (not > only a GWT issue), so I like to optimize this implementation/realization > process: from the moment you receive the design till GWT realization. > > Thinks going through my mind: how to set up the GWT dev environment to let > "others" concern about css issues?... But how ?.. Maybe do some templating > stuff ? > Or receive html/css snippets from the design party and implement them in > GWT, but how ??. > > Note: I make fully use of ClientBundles and CssResources (with @Import)... > > PS: this is one of these things that I would love to see gwt dev team > member blogging about ;).. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
ListEditor and persisting changes to the server
Hi, my goal is to get a kind of 'auto-persist' feature of my editors. I have - a class 'A' defining a ListEditor that creates a list of class 'B' editors - a class B that implements ValueAwareEditor with a CheckBox attribute - the ValueChangeHandler of the CheckBox calls driver.flush() - communication uses RequestFactoryEditorDriver Always if the value of some CheckBox has changed, I want the ListEditors parent class 'A' to call a persist service to immediately persist any changes in a sub-editor on the server.. An example with a 'Save' button in the class 'A' is already working. I can only find examples that require user input. A guess is that calling a (static) method A.persist() in the ValueChangeHandler of a CheckBox is not the right way. Probably you see that I'm very new to RequestFactory and Editors. Thanks in advance. Holger -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
"Fast" implementation of Design displays with GWT?
I like to know how people realize the design (Photoshop or other files) in GWT and what would be the best way? I still find it take too long to implement styles and stuff like that (not only a GWT issue), so I like to optimize this implementation/realization process: from the moment you receive the design till GWT realization. Thinks going through my mind: how to set up the GWT dev environment to let "others" concern about css issues?... But how ?.. Maybe do some templating stuff ? Or receive html/css snippets from the design party and implement them in GWT, but how ??. Note: I make fully use of ClientBundles and CssResources (with @Import)... PS: this is one of these things that I would love to see gwt dev team member blogging about ;).. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: unwanted .junit_symbolMaps in war compiled by GWT
On Friday, June 7, 2013 3:15:56 PM UTC+2, anilva...@gmail.com wrote: > > Hi Everyone, > we are generating one war for our application by using GWT. But the > war contains a folder called ".junit_symbolMaps" . > I need to know how and why this folder generated, then i can stop in > generation phase. And i don't want to delete this folder before war > created. > I want to reduce the compilation time. > You must be compiling a module that has an , there's no single reason to ever inherit the JUnit module. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
unwanted .junit_symbolMaps in war compiled by GWT
Hi Everyone, we are generating one war for our application by using GWT. But the war contains a folder called ".junit_symbolMaps" . I need to know how and why this folder generated, then i can stop in generation phase. And i don't want to delete this folder before war created. I want to reduce the compilation time. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT & HTML5 DnD
I figured out a way for users to DnD into GWT's RichTextArea from either inside the GWT application and for us even more importantly from another website/page. We had to use JSNI as the standard GWT drop listeners are never fired, I assume it's because it uses an iFrame. I thought I'd post it here as perhaps others will find it useful. Also if you see some potential problems let me know as I'd like to improve it. One question I have is should I be adding the listener to the iframe too or just to iframe.contentWindow? Also things works really well with Firefox I need to determine if any changes are needed for IE8/9/10 and Chrome. public class GwtRichTextArea extends RichTextArea { private Object dragenterFunction = null; private Object dragoverFunction = null; private Object dropFunction = null; public GwtRichTextArea () { } @Override protected void onAttach() { super.onAttach(); IFrameElement iFrame = IFrameElement.as(getElement()); iFrame.setName(UUID.uuid()); addDragOverHandler(iFrame); addDropHandler(iFrame); } @Override protected void onDetach() { IFrameElement iFrame = IFrameElement.as(getElement()); removeDragOverHandler(iFrame); removeDropHandler(iFrame); super.onDetach(); } private native void addDragEnterHandler(IFrameElement iframe) /*-{ if (iframe == null) return; var _this = this; var dragenterFunction = function (e) { // todo: add some css style here } _th...@com.gwtcommon.gwt.user.client.ui.GwtRichTextArea::dragenterFunction = dragenterFunction; iframe.addEventListener('dragenter', dragenterFunction, true); iframe.contentWindow.addEventListener('dragenter', dragenterFunction, true); }-*/; private native void addDragOverHandler(IFrameElement iframe) /*-{ if (iframe != null) { var _this = this; var dragoverFunction = function (e) { if (e.preventDefault) { e.preventDefault(); } e.dataTransfer.dropEffect = 'copy'; return false; } _th...@com.gwtcommon.gwt.user.client.ui.GwtRichTextArea::dragoverFunction = dragoverFunction; iframe.addEventListener('dragover', dragoverFunction, true); iframe.contentWindow.addEventListener('dragover', dragoverFunction, true); } }-*/; private native void addDropHandler(IFrameElement iframe) /*-{ if (iframe == null) { return; } var _this = this; var dropFunction = function (event) { // Handle the drop. We attach to the body element... iframe.contentWindow.document.body.appendChild(newElement); return false; } _th...@com.gwtcommon.gwt.user.client.ui.GWTRichTextArea::dropFunction = dropFunction; iframe.addEventListener('drop', dropFunction, true); iframe.contentWindow.addEventListener('drop', dropFunction, true); }-*/; private native void removeDragOverHandler(IFrameElement iframe) /*-{ if (iframe != null) { var _this = this; var dragoverFunction = _th...@com.gwtcommon.gwt.user.client.ui.GWTRichTextArea::dragoverFunction; iframe.removeEventListener('dragover', dragoverFunction, true); iframe.contentWindow.removeEventListener('dragover', dragoverFunction, true); } }-*/; private native void removeDropHandler(IFrameElement iframe) /*-{ if (iframe != null) { var _this = this; var dropFunction = _th...@com.gwtcommon.gwt.user.client.ui.GWTRichTextArea::dropFunction; iframe.removeEventListener('drop', dropFunction, true); iframe.contentWindow.removeEventListener('drop', dropFunction, true); } }-*/; private native void removeTextPasteHandler(IFrameElement iframe) /*-{ if (iframe != null) { var _this = this; var pasteFunction = _th...@com.gwtcommon.gwt.user.client.ui.WebTASRichTextArea::pasteFunction; iframe.removeEventListener('paste', pasteFunction, true); iframe.contentWindow.removeEventListener('paste', pasteFunction, true); } }-*/; } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acitivities and places:problem in using eventBus
yes, the second activity started after the event is fired . Actually when i click in the button "next" in the first view, it called two functions in the first activity : 1.createSoumission() who fire the event 2.and goto (Place SecondPlace) i fixed the problem by switching the calls 1. i call the goto (secondPlace) 2.createSoumission() thank you a lot for you help, you saved my day Le vendredi 7 juin 2013 14:39:37 UTC+2, Donald Mteka a écrit : > > > Is the second Activity ever started before you fire the event from first > Activity? Just check that you didn't fire the event before the second > Activity had the chance to start (hence register a handler).. Another > possibility would be different 'instances' of EventBus objects, which is > hardly the case as the bus was offered from PlaceHistoryHandler. > > HTH. > > > On Fri, Jun 7, 2013 at 2:57 PM, Sahli Sabrina > > > wrote: > >> ok thank you a lot for the reply :) >> >>> >>> > -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to google-web-toolkit+unsubscr...@googlegroups.com . >> To post to this group, send email to >> google-we...@googlegroups.com >> . >> Visit this group at >> http://groups.google.com/group/google-web-toolkit?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > Donald Mteka > +255653105004 > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acitivities and places:problem in using eventBus
Is the second Activity ever started before you fire the event from first Activity? Just check that you didn't fire the event before the second Activity had the chance to start (hence register a handler).. Another possibility would be different 'instances' of EventBus objects, which is hardly the case as the bus was offered from PlaceHistoryHandler. HTH. On Fri, Jun 7, 2013 at 2:57 PM, Sahli Sabrina wrote: > ok thank you a lot for the reply :) > >> >> -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Donald Mteka +255653105004 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: TabLayoutPanel get index of tab which added a special widget
Hello Jochen, The index of a tab in a TabPanel is same as its corresponding widget in widgetContainer. Thus, "Tab name" index is same as 'myView' index. Using the view, you get its index from tabPanel.getWidgetIndex(myView) , which is same as the tab index, then you can proceed to select it. Regards, On Fri, Jun 7, 2013 at 2:33 PM, Jochen Schnaidt wrote: > Hi, > > I'm struggling getting the index of a tab in a TabLayoutPanel. I am > working on legacy code so no big chance changing panel types and stuff. > > Code looks like this: > > TabLayoutPanel tabLayoutPanel = new TabLayoutPanel(); > > MyView myView = new MyView(); > > tabLayoutPanel.add(myView , "Tab name"); > > Later I need to select the right tab. > > tabPanel.selectTab(3); > > At the moment the tab containing myView is the fourth which is added but > I want to avoid magic numbers. > > Is there an appropriate way to get the tab's index which contains myView? > I tried searching by widget but without success. > > May be not a big question but till now my attempts failed. Today is not > my day. > > Thanks in advance. > > Best regards > > Jochen > > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Donald Mteka +255653105004 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acitivities and places:problem in using eventBus
ok thank you a lot for the reply :) > > >>> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acitivities and places:problem in using eventBus
Ah, sorry, no idea (except you should use com.google.web.bindery.event.shared.Event instead of com.google.gwt.event.shared.GwtEvent, but that shouldn't change anything to your problem) On Friday, June 7, 2013 1:37:41 PM UTC+2, Sahli Sabrina wrote: > > thank you for the reply here is the code > > > public class AddSoumissionEvent extends GwtEvent{ >> >> public static TypeTYPE= new >> Type(); >> >> >> private Soumission soumission; >> public AddSoumissionEvent(Soumission soumission) { >> >> this.soumission=soumission; >> >> } >> >> public Soumission getSoumission() { >> return soumission; >> } >> >> public void setSoumission(Soumission soumission) { >> this.soumission = soumission; >> } >> >> @Override >> protected void dispatch(AddSoumissionHandler handler) { >> >> handler.onAddSoumissionHandler(this); >> >> } >> >> @Override >> public >> com.google.gwt.event.shared.GwtEvent.Type >> getAssociatedType() { >> // TODO Auto-generated method stub >> return TYPE; >> } >> >> >> >> >> } >> >> > Le vendredi 7 juin 2013 13:21:27 UTC+2, Thomas Broyer a écrit : >> >> Can you show the code of the AddSoumissionEvent? >> >> On Friday, June 7, 2013 1:10:17 PM UTC+2, Sahli Sabrina wrote: >>> >>> Hi everyBody, >>> >>> I want to transfer an object from an activity to another one, for that i >>> used the event bus: >>> >>> 1. i created an event "AddSoumissionEvent" and handler >>> "AddSoumissionHandler" >>> 2.intialise the eventbus of the first activity with the eventBus offered >>> in the start Function >>> >>> >>> >>> >>> public void start(AcceptsOneWidget containerWidget, EventBus eventBus) { this.eventBus=eventBus; ... } >>> >>> >>> >>> >>> 3.i fire event in the first activity >>> >>> public void createSoumission(DynamicForm form) { //create soumission Soumission soumission=new Soumission(); //initialize values //fire event eventBus.fireEvent(new AddSoumissionEvent(soumission)); } >>> >>> 4. the second activity receive the event ,i created the handler in in >>> start funtion >>> >>> >>> >>> public void start(AcceptsOneWidget container, EventBus eventBus) { eventBus.addHandler(AddSoumissionEvent.TYPE, new AddSoumissionHandler(){ public void onAddSoumissionHandler(AddSoumissionEvent event) { System.out.println(" event received youp"); onAddSoum(); } }); } >>> >>> >>> the problem is the second activity doesn't receive the event :( i can't >>> see where is the mistake . >>> >>> can anyone here tell me where is the mistake or give me a link for an >>> example who shows how to use the eventBus with activities and places >>> >>> Thank you, >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> >>> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acitivities and places:problem in using eventBus
thank you for the reply here is the code public class AddSoumissionEvent extends GwtEvent{ > > public static TypeTYPE= new > Type(); > > > private Soumission soumission; > public AddSoumissionEvent(Soumission soumission) { > > this.soumission=soumission; > > } > > public Soumission getSoumission() { > return soumission; > } > > public void setSoumission(Soumission soumission) { > this.soumission = soumission; > } > > @Override > protected void dispatch(AddSoumissionHandler handler) { > > handler.onAddSoumissionHandler(this); > > } > > @Override > public com.google.gwt.event.shared.GwtEvent.Type > getAssociatedType() { > // TODO Auto-generated method stub > return TYPE; > } > > > > > } > > Le vendredi 7 juin 2013 13:21:27 UTC+2, Thomas Broyer a écrit : > > Can you show the code of the AddSoumissionEvent? > > On Friday, June 7, 2013 1:10:17 PM UTC+2, Sahli Sabrina wrote: >> >> Hi everyBody, >> >> I want to transfer an object from an activity to another one, for that i >> used the event bus: >> >> 1. i created an event "AddSoumissionEvent" and handler >> "AddSoumissionHandler" >> 2.intialise the eventbus of the first activity with the eventBus offered >> in the start Function >> >> >> >> >> public void start(AcceptsOneWidget containerWidget, EventBus eventBus) { >>> >>> this.eventBus=eventBus; >>> ... >>> >>> } >>> >> >> >> >> >> 3.i fire event in the first activity >> >> public void createSoumission(DynamicForm form) { >>> >>> //create soumission >>> >>> Soumission soumission=new Soumission(); >>> >>> >>>//initialize values >>> >>> //fire event >>> >>> eventBus.fireEvent(new AddSoumissionEvent(soumission)); >>> >>> } >>> >>> >> >> 4. the second activity receive the event ,i created the handler in in >> start funtion >> >> >> >> public void start(AcceptsOneWidget container, EventBus eventBus) { >>> >>> >>> eventBus.addHandler(AddSoumissionEvent.TYPE, new AddSoumissionHandler(){ >>> >>> public void onAddSoumissionHandler(AddSoumissionEvent >>> event) { >>> System.out.println(" event received youp"); >>> onAddSoum(); >>> >>> } >>> >>> >>> }); >>> >>> } >>> >> >> >> the problem is the second activity doesn't receive the event :( i can't >> see where is the mistake . >> >> can anyone here tell me where is the mistake or give me a link for an >> example who shows how to use the eventBus with activities and places >> >> Thank you, >> >> >> >> >> >> >> >> >> >> >> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
TabLayoutPanel get index of tab which added a special widget
Hi, I'm struggling getting the index of a tab in a TabLayoutPanel. I am working on legacy code so no big chance changing panel types and stuff. Code looks like this: TabLayoutPanel tabLayoutPanel = new TabLayoutPanel(); MyView myView = new MyView(); tabLayoutPanel.add(myView , "Tab name"); Later I need to select the right tab. tabPanel.selectTab(3); At the moment the tab containing myView is the fourth which is added but I want to avoid magic numbers. Is there an appropriate way to get the tab's index which contains myView? I tried searching by widget but without success. May be not a big question but till now my attempts failed. Today is not my day. Thanks in advance. Best regards Jochen -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Acitivities and places:problem in using eventBus
Can you show the code of the AddSoumissionEvent? On Friday, June 7, 2013 1:10:17 PM UTC+2, Sahli Sabrina wrote: > > Hi everyBody, > > I want to transfer an object from an activity to another one, for that i > used the event bus: > > 1. i created an event "AddSoumissionEvent" and handler > "AddSoumissionHandler" > 2.intialise the eventbus of the first activity with the eventBus offered > in the start Function > > > > > public void start(AcceptsOneWidget containerWidget, EventBus eventBus) { >> >> this.eventBus=eventBus; >> ... >> >> } >> > > > > > 3.i fire event in the first activity > > public void createSoumission(DynamicForm form) { >> >> //create soumission >> >> Soumission soumission=new Soumission(); >> >> >>//initialize values >> >> //fire event >> >> eventBus.fireEvent(new AddSoumissionEvent(soumission)); >> >> } >> >> > > 4. the second activity receive the event ,i created the handler in in > start funtion > > > > public void start(AcceptsOneWidget container, EventBus eventBus) { >> >> >> eventBus.addHandler(AddSoumissionEvent.TYPE, new AddSoumissionHandler(){ >> >> public void onAddSoumissionHandler(AddSoumissionEvent >> event) { >> System.out.println(" event received youp"); >> onAddSoum(); >> >> } >> >> >> }); >> >> } >> > > > the problem is the second activity doesn't receive the event :( i can't > see where is the mistake . > > can anyone here tell me where is the mistake or give me a link for an > example who shows how to use the eventBus with activities and places > > Thank you, > > > > > > > > > > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: javascript call to java method doesn´t work in developing mode - but when code is compiled (GWT 2.51)
On Thursday, June 6, 2013 7:50:09 PM UTC+2, Olaf Raether wrote: > > If have a Class that looks similar like this: > > public class MyClass extends Widget { > > public MyClass() { > declareMethod(this); > } > > //Method which declares non-static method in javascript > public native void declareMethod(MyClass this) /*-{ > var _this = this; > $wnd.doSomething = function(someString) { > > _this.@com.example.MyClass::doSomething(Ljava/lang/String;)(someString); > } > }-*/;} > > Calling something 'this' is a really bad idea. 'this' is a keyword, and I'm surprised this even compiles (though maybe it's allowed in Java, I haven't checked). That said, in this case, both the argument and 'this' should be the same value so it shouldn't be a problem. This code is missing a call to $entry() though: $wnd.doSomething = $entry(function(someString) { _this.@com.example.MyClass::doSomething(Ljava/lang/String;)(someString); }); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Acitivities and places:problem in using eventBus
Hi everyBody, I want to transfer an object from an activity to another one, for that i used the event bus: 1. i created an event "AddSoumissionEvent" and handler "AddSoumissionHandler" 2.intialise the eventbus of the first activity with the eventBus offered in the start Function public void start(AcceptsOneWidget containerWidget, EventBus eventBus) { > > this.eventBus=eventBus; > ... > > } > 3.i fire event in the first activity public void createSoumission(DynamicForm form) { > > //create soumission > > Soumission soumission=new Soumission(); > > >//initialize values > > //fire event > > eventBus.fireEvent(new AddSoumissionEvent(soumission)); > > } > > 4. the second activity receive the event ,i created the handler in in start funtion public void start(AcceptsOneWidget container, EventBus eventBus) { > > > eventBus.addHandler(AddSoumissionEvent.TYPE, new AddSoumissionHandler(){ > > public void onAddSoumissionHandler(AddSoumissionEvent event) > { > System.out.println(" event received youp"); > onAddSoum(); > > } > > > }); > > } > the problem is the second activity doesn't receive the event :( i can't see where is the mistake . can anyone here tell me where is the mistake or give me a link for an example who shows how to use the eventBus with activities and places Thank you, -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
GWT-RPC call is throwing JavaScriptException for huge number of records
Hi, My GWT-RPC call is working fine for some number records (around 600). But the same RPC call is throwing JavaScript Error for huge number of records. My server side call is returning/transferring ArrayofObject(MapItem[]) which contains around 20 attributes to client side. Error: com.google.gwt.core.client.JavaScriptException:(SyntaxError);Expected ')' description: Expected ')' number: -2146827282 I have verified below things. But everything looks fine. 1. Any invalid character in the data. But the Data looks fine 2. JDBC timeout – There is no timeout while fetching the huge records. Server side code is returning the records successfully. 3. RPC Request Timeout – It is not throwing any timeout exception. 4. WriteResponse was successful in RemoteServiceServlet. So I just want to know is there any limit in the RPC call? If so is there any alternative way which I can use for huge data? I am using GWT 2.3, java 1.5 and weblogic 10.2. Thanks in advance for you help.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: No source code is available for type com.google.gwt.autobean.shared.AutoBean
thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: javascript call to java method doesn´t work in developing mode - but when code is compiled (GWT 2.51)
Works now, I guess it has something todo with these issues Playing araound with the parameters I run into other issues which look a little bit like these ones http://code.google.com/p/google-web-toolkit/issues/detail?id=4941 and http://code.google.com/p/google-web-toolkit/issues/detail?id=4996 But then it was fine in dev mode too -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CellTable disapears when a row click occurs and a RichTextArea widget is present
It looks fine to me, can you send the code where you play with the cellList and the RichTextArea? On Fri, Jun 7, 2013 at 12:03 AM, Luis Costa wrote: > Here it is a simple case (see attachment) > > Quinta-feira, 6 de Junho de 2013 19:58:56 UTC+1, Luis Costa escreveu: > >> Hi all, >> >> I'm using GWT 2.5.1 and GWTP. >> >> Something very strange is happening, I've a RichTextArea widget and a >> cellTable. >> >> >> If I try to select a row all cellTable disappears! >> >> >> >> But if I remove RichTextArea widget or replace the cellTable for a >> DataGrid and select a row (clicking in the cellTable/ DataGrid row) it >> works fine; >> >> >> >> Is this a known problem? >> >> >> >> Many thanks, >> >> >> >> Luis Costa >> > -- > You received this message because you are subscribed to the Google Groups > "Google Web Toolkit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to google-web-toolkit+unsubscr...@googlegroups.com. > To post to this group, send email to google-web-toolkit@googlegroups.com. > Visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.