Re: How to build text trimming cell for GWT DataGrid
Works good, thanks! On May 1, 10:50 am, Andrei wrote: > @Jens, > > Just to expand on Jen's answer. For this solution to work, you need to > apply it to a div inside a cell: > > .myDataGrid td div { > white-space: nowrap; > overflow: hidden; > text-overflow: ellipsis; > > > > > > > > } > > Apply CSS to your cell: > > > white-space: nowrap; > > overflow:hidden; > > text-overflow: ellipsis; > > > -- 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: EventBus mechanism
Aha, got it ! On May 2, 2:14 am, Jambi wrote: > Seems that the onAddButtonClicked and onItemClicked methods perform some > actions that involve other Presenters/Views that listen to those kinds of > events. deleteSelectedContacts is just performing local changes that don´t > affect other views. If there would be a different view that is showing a > (for example) contact count and this view needs to know about some changes > in your contacts, you would fire an event in deleteSelectedContacts. > > Am Dienstag, 1. Mai 2012 15:01:20 UTC+2 schrieb Adio: > > > > > > > > > > > Hi everyone, now that i am working with GWT i am facing a problem with > > the event handling mechanism the first problem was ( > > >http://groups.google.com/group/google-web-toolkit/browse_thread/threa... > > ), but when i read this article MVP II ( > >https://developers.google.com/web-toolkit/articles/mvp-architecture-2 > > ) - actually i read it several times - i still don't understand when u > > to use EventBus mechanism and when not ? and if i have to use when u > > use EventBus Handler and HandlerManage ?. > > Here is what confuses me: > > > public class ContactsPresenter implements Presenter, > > ContactsView.Presenter { > > .. > > public void onAddButtonClicked() { > > eventBus.fireEvent(new AddContactEvent()); > > } > > > public void onDeleteButtonClicked() { > > deleteSelectedContacts(); > > } > > > public void onItemClicked(ContactDetails contactDetails) { > > eventBus.fireEvent(new EditContactEvent(contactDetails.getId())); > > } > > > > > } > > > Why one method fires and event and the other just do some logic witch > > is defined the class ? > > > Thank you all for your replies. > > > the source code of the example is here : > >http://google-web-toolkit.googlecode.com/files/Tutorial-Contacts2.zip -- You received 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.
Suggestbox suggestions not displayed when navigating using arrow keys
We have a suggestbox with approx. 50 suggestions. We are displaying a scrollbar for the suggestbox using the following css .suggestPopupContent{ height:auto; width:auto !important; max-width:400px; max-height: 165px; overflow-y: auto; padding-right:18px; } Now when the user tries to navigate through the suggestions using the Up/Down arrow key, the suggestions not within the current visible area are not displayed. 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.
Re: GWT Mobile App Widgets
Thanks for all the replies so far. The gwt-mobile-ui library I used, was part of the GWTMobile project. It has the problem I described. Since my project is going to be deployed in a very large group of users, who all have different phones and browsers installed on it, I need to make my application as widely deployable as possible. gwt- mobile-ui unfortunately is too limited. I hadn't see mgwt yet. Will check it out today if time allows, may adopt is as the platform in the long run, should I choose to replace my own mobile framework (which has is flaws such as being ugly and requiring a lot of coding). Will probably join the user group as well. On May 1, 2:52 am, Daniel Kurka wrote: > if you are interested in mgwt there is a very friendly user group for > the framework:http://groups.google.com/group/mgwt > > mgwt pays a lot of attention to do things in a GWT way, which brings > big advantages to mobile device development. > > take a look for yourself athttp://www.m-gwt.com > > On 30 Apr., 20:43, Alfredo Quiroga-Villamil wrote: > > > > > > > > > Yes, if you are trying to cover that case, then you must absolutely > > find a mobile library that can potentially support any of the > > installable browsers in mobile devices. The important case to always > > keep in mind I would say is over engineering. Unless it's a > > requirement from the client, I would ask myself the question, what > > percentage of the market am I trying to support? Ideally the answer > > would be 100%, reality it's a different story. This is more the case > > since mobile web is fairly young. Even the web after all these years > > would be a nightmare if you removed GWT and libraries like it that > > have tried to make the developer experience better by hiding the > > browser differences or better said quirks. > > > About a year and a half ago, perhaps more already, there was a point > > where the future of mobile web for developers looked bright. It was > > all going to be based on webkit or at least most of it and the world > > was going to be a happy place. > > > Fast forward and we find a world where there is an incredible amount > > of fragmentation in the mobile market place with multiple versions of > > webkit, many don't exactly behaving consistently. Throw into the mix > > your request and it's almost starting to feel like we are right back > > to the web as we know it today where may browsers exists with > > difference in behavior not only between them but even among versions. > > > Best of luck and wish your project the best. > > > Alfredo > > > On Mon, Apr 30, 2012 at 2:01 PM, AgitoM wrote: > > > Well the app runs fine on iPhone Safari, Google Chrome, and the > > > Android Default Browser. > > > However the app does not work on Firefox and Opera installations on > > > the Android platform, so that could be a problem. > > > So still hope someone can make a suggestion. > > > > On Apr 30, 10:53 pm, Alfredo Quiroga-Villamil > > > wrote: > > >> Mobile web libraries are based on webkit. Firefox is not. Mobile devices > > >> use webkit. To test the app you can try to use a webkit based browser > > >> such > > >> as chrome or safari. So if you are happy with that library I recommend > > >> you > > >> continue using it and test it as previously mentioned. > > > >> Regards, > > > >> Alfredo > > >> On Apr 30, 2012 10:35 AM, "AgitoM" wrote: > > > >> > Does anyone know a decent library that contains GWT Widgets for the > > >> > development of Mobile Apps in GWT? > > > >> > Over the past few days I've been experimenting with gwt-mobile-gui. > > >> > Though this library is great, it doesn't appear to be working on all > > >> > browsers. (or at least I can't get it to work on Firefox). > > > >> > So basically I am looking into other Libraries. Does anyone have any > > >> > suggestions? > > > >> > Reason I am looking for a mobile widget library is because I am > > >> > developing a mobile app. I developed a framework for a mobile app > > >> > myself, and it works fine, but it looks too ugly. > > >> > If no other library is available, does anyone know any tutorial of > > >> > guide to how to develop nice looking GUI in GWT? > > > >> > Hope anyone can offer some advice. > > > >> > -- > > >> > You received 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. > > >
Re: NullPointerException on stockwatcher tutorial
Hi, works for me. i insert the DIV tag into the html. 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: Server detection of client crash
Thanks for the prompt reply. I've been experimenting with gwt for a little while and due to time constrains I'd rather not try other tools, but thanks for the suggestion. I have another question (excuse my little experience with web application), I'd like to know how the a Servlet on the server-side can efficiently keep track of all connected clients since in my application, for each connected client the Servlet will instantiate a regular Java object with its own state for each client. Basically each client will interact with its own object through the Servlet. I know this is a bit of an overhead, but as I mentioned before I'm building a web-tier for a back-end platform that's not web oriented. Regards, Michael On Apr 27, 4:59 pm, Alfredo Quiroga-Villamil wrote: > Thanks. I think Joseph said it before and I agree with him. If it's > something of that nature, I would likely try to stay from web stuff. > However, that doesn't mean is not possible or there are no ways to > ensure what you want. > > I recently had the chance to speak with a few guys at RedHat about a > project they have been working on based on GWT. I've been meaning to > let people know about it because I was really impressed by a couple of > things I saw. One of them can truly help you and make your requirement > easier or a lot easier to implement. > > http://www.jboss.org/errai > > A few things: > > a) You don't need jboss to use it. > b) Take special attention to CDI (crazy cool and useful). > c) They've done something really interesting where you truly have a > transparent web/server application, blurring completely the lines > between server and UI. Via an annotation you have Server Push. Their > Dependency Injection I thought was also nicer than GIN for the UI. > Although I use GIN and love it! > > So what you could do, assuming that you truly want to keep this web > based is to have the server contacting the UI every x amount of > seconds. If no response is received from the UI, then you know that > something is not right. That would be better I think than polling the > server. > > Again, this could be done without errai, but take a look at it if you > get a chance. > > Best regards, > > Alfredo > > > > > > > > > > On Fri, Apr 27, 2012 at 4:44 PM, mmorckos wrote: > > What I meant by "crash" is that the client doesn't "cleanly". For > > instance, the user can simply close the web-page, or the client's > > machine can lose connection to the server. I'm asking if there is a > > way that the server can detect that instantly (some sort of a > > heartbeat ping between the client and the server, unlike a session > > timeout). > > > On Apr 27, 10:47 am, Alfredo Quiroga-Villamil > > wrote: > >> Can you please define or explain what you mean by "whenever a client > >> crashes"? > > >> Thank you in advance, > > >> Alfredo > > >> On Fri, Apr 27, 2012 at 1:49 AM,mmorckos wrote: > >> > Hello, > > >> > I'm intending to develop a web-based frontend UI for a control system > >> > in a research lab. For safety purposes, it's vital that when a client > >> > crashes, the server is notified immediately and dispatches a stop > >> > signal to all connected machinery. > > >> > I'm new to gwt and would like to know if there is a way to know > >> > whenever a client crashes on the server side, specifically inside a > >> > "RemoteServiceServlet". > > >> > Regards, > >> > Michael > > >> > -- > >> > You received 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 > >> > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > >> -- > >> Alfredo Quiroga-Villamil > > >> AOL/Yahoo/Gmail/MSN IM: lawwton > > > -- > > You received 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 > > athttp://groups.google.com/group/google-web-toolkit?hl=en. > > -- > Alfredo Quiroga-Villamil > > AOL/Yahoo/Gmail/MSN IM: lawwton -- You received 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.
Básic Slider with native code GWT, create for me
http://rajonjava.blogspot.com/2012/05/slider-basico-en-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.
Re: EventBus mechanism
Seems that the onAddButtonClicked and onItemClicked methods perform some actions that involve other Presenters/Views that listen to those kinds of events. deleteSelectedContacts is just performing local changes that don´t affect other views. If there would be a different view that is showing a (for example) contact count and this view needs to know about some changes in your contacts, you would fire an event in deleteSelectedContacts. Am Dienstag, 1. Mai 2012 15:01:20 UTC+2 schrieb Adio: > > Hi everyone, now that i am working with GWT i am facing a problem with > the event handling mechanism the first problem was ( > > http://groups.google.com/group/google-web-toolkit/browse_thread/thread/17b679b499311756/8f06531e30bf0996#8f06531e30bf0996 > > ), but when i read this article MVP II ( > https://developers.google.com/web-toolkit/articles/mvp-architecture-2 > ) - actually i read it several times - i still don't understand when u > to use EventBus mechanism and when not ? and if i have to use when u > use EventBus Handler and HandlerManage ?. > Here is what confuses me: > > public class ContactsPresenter implements Presenter, > ContactsView.Presenter { > .. > public void onAddButtonClicked() { > eventBus.fireEvent(new AddContactEvent()); > } > > public void onDeleteButtonClicked() { > deleteSelectedContacts(); > } > > public void onItemClicked(ContactDetails contactDetails) { > eventBus.fireEvent(new EditContactEvent(contactDetails.getId())); > } > > > } > > Why one method fires and event and the other just do some logic witch > is defined the class ? > > Thank you all for your replies. > > the source code of the example is here : > http://google-web-toolkit.googlecode.com/files/Tutorial-Contacts2.zip -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-4L9VQklj1QJ. 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: Eclipse compile not generating i18n properties file
I figured it out. I had created the messages file but hadn't started using it in the app at all. The compiler must not scan for all interfaces with that annotation, but instead for all classes IN USE by the app with those annotations. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/BAQAs2vGiu4J. 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: Eclipse compile not generating i18n properties file
I should note that I am using the -extra compiler flag and it IS generating the property files for UiBinder messages. I also tried changing the classname for the format to: format="com.google.gwt.i18n.rebind.format.PropertiesFormat" but that did not help. Interestingly changing it to: @Generate(format="fudge") Didn't throw an error so best as I can tell, my interface or the annotation isn't even being seen!! -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/dOSCZJp5Ti4J. 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: Eclipse compile not generating i18n properties file
Has anyone solved this? It's not working for me either. Here's my class: package dparish.client.view.impl; import com.google.gwt.i18n.client.Messages; import com.google.gwt.i18n.client.LocalizableResource.Generate; import com.google.gwt.i18n.client.LocalizableResource.GenerateKeys; @Generate(format="com.google.gwt.i18n.server.PropertyCatalogFactory") @GenerateKeys public interface StudentMessages extends Messages { public String saveError(); @DefaultMessage("There are {0} students") @AlternateMessage({"one", "There is one student"}) public String studentCount(@PluralCount int studentCount); } No files are created during the GWT compile. I suspect the problem relates to this note in the docs: Requests that a message catalog file is generated during the compilation process. If the filename is not supplied, a default name based on the interface name is used. The output file is created under the -out directory. There is no -out for the GWT compiler. There IS for i18nCreator, but that command is listed for creating .java files from property files, not the other way around as @Generate seems to claim it will do. On Monday, January 11, 2010 3:46:17 PM UTC-6, Todd Vierling wrote: > > On Jan 1, 11:01 am, Todd Vierling wrote: > > I'm trying to get the GWT compile phase to spit out a template > > properties file that I can hand to translators to make it easy to do > > translation work. > > > Is there some way I should attempt to invoke the GWT compiler by hand > > to try this a different way? What I'm hoping to get out of this is > > similar to what xgettext does: provide a template file where the > > constants are initially equal to the @Default* values -- and if > > possible, comments generated from @Meaning or @Description annotations > > as an aid to the translators. They could then return translated > > versions to me, which I would simply check in to source control > > alongside the default-locale versions, and never have to deal with the > > Java code in-between. > > > > Maybe I'm missing the point of @Generate here, but I'm not exactly > > sure what it's supposed to do otherwise. :( > > Any insight on this? The GWT compile phase says it's generating a > properties file, but there's none to be found > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cPgh1GirOhQJ. 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.
Injecting dependencies with GIN/Guice
I typically have this kind of code pattern in my GWT project: Menu errorMenu = new Menu(user, userController, -1); Menu searchMenu = new Menu(user, userController, 0); errorView.setMenu(errorMenu); searchView.setMenu(searchMenu); How do I inject a Menu instance in the ErrorView and other "views" using Gin/Guice: public ErrorView implements View { // Inject menu instance here private Menu menu; } Such that, I don't have to manually create and set objects? Also for the Menu class, how can I inject the "user" and "userController" objects so I don't have to pass it on each Menu instance every time it is instantiated. -- You received 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: IE8 is showing script is unresponsive, any known fixes that can be easily applied
IE 8 has some known performance problems. We did a lot to optimize for it. Large flextables have the biggest impact. try to switch to a grid object. If you search this site you will find post with several other tips. Like don't attached the flextable to the root object until its done loading. So, remove it before reloading and then add it back at the end. At the end of the day all this was not enough for us. We implemented the Crome Frame plug-in for IE users. There is a simple change to the application to run the plug-in. There is a google site just for the crome frame: http://groups.google.com/group/google-chrome-frame On Apr 27, 8:55 am, Kishan wrote: > Frequently we are getting script is unresponsive in IE8, is any known > fixes that can be easily applied. That will be helpful. > > Thanks, > Balakishan -- You received 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.
Exception in Debug but not in Run mode
Hi folks, currently I'm implementing a client for jWebsocket. I got a strange error. If I try my implementation in debug mode, I get an JavaScriptException because of a null value. If I run it in run mode there's no problem - everything's working fine. Exception like this: com.google.gwt.core.client.JavaScriptException: (null): null at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:248) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:289) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107) at org.jwebsocket.client.base.JWebSocketJSON.sendToken(JWebSocketJSON.java) at org.jwebsocket.client.base.JWebSocketJSON.sendToken(JWebSocketJSON.java:250) at org.jwebsocket.client.Sample.sampleTokenSend(Sample.java:212) at org.jwebsocket.client.Sample$4.onClick(Sample.java:176) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54) at com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.EventBus.dispatchEvent(EventBus.java:40) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:129) at com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116) at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:177) at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1351) at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1307) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:337) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:218) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:213) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:172) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:292) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:546) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:363) at java.lang.Thread.run(Thread.java:662) The exception seems to occur because of "jthis" is nulled in some invoking JavaScript methods. So my question -> is this a problem of my implementation or could it be an error in the debug plugin? Don't know where to look at. Thanks in advance. Best Regards, Markus -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/gAW6AMWwz8YJ. 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 unit test GWT serialization?
dhoffer, You can just test the Async callback as a whole. That should hit the serialization/deserialization calls. See the Google documentation of this process: https://developers.google.com/web-toolkit/doc/latest/DevGuideTesting#DevGuideAsynchronousTesting Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/zHO1Zi63KNAJ. 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 Serialization error with HTML String content
Dave, I know this is not exactly the answer you're looking for, but why are you trying to serialize and send HTML over the wire like that? Why not use a Uibinder to build that HTML and just send the dynamic part over the wire, which is "Apr 30 2012 15:11:33?" This is how such work is typically done. Further, you just need to send a date object, so you can leave the formatting to the UiBinder on the clientside as well. I hope that helps as HTML is not typically parroted like that in GWT. Sincerely, Joseph -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/hSwm6Mm9BGIJ. 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.
EventBus mechanism
Hi everyone, now that i am working with GWT i am facing a problem with the event handling mechanism the first problem was ( http://groups.google.com/group/google-web-toolkit/browse_thread/thread/17b679b499311756/8f06531e30bf0996#8f06531e30bf0996 ), but when i read this article MVP II ( https://developers.google.com/web-toolkit/articles/mvp-architecture-2 ) - actually i read it several times - i still don't understand when u to use EventBus mechanism and when not ? and if i have to use when u use EventBus Handler and HandlerManage ?. Here is what confuses me: public class ContactsPresenter implements Presenter, ContactsView.Presenter { .. public void onAddButtonClicked() { eventBus.fireEvent(new AddContactEvent()); } public void onDeleteButtonClicked() { deleteSelectedContacts(); } public void onItemClicked(ContactDetails contactDetails) { eventBus.fireEvent(new EditContactEvent(contactDetails.getId())); } } Why one method fires and event and the other just do some logic witch is defined the class ? Thank you all for your replies. the source code of the example is here : http://google-web-toolkit.googlecode.com/files/Tutorial-Contacts2.zip -- You received 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 applications session management
>From what i understand he means something like this public class CustomerServiceImpl extends RemoteServiceServlet implements CustomerService { public void authorize(String username, String password) { // check the username and password // if everything is OK ... getThreadLocalRequest().getSession().setAttribute("username",username); } . } or something like that ! On Apr 30, 4:14 pm, Harpreet Singh wrote: > I am clear on most of it. > Can you explain, "placing session objects on the Service implementation" a > little more? > > > > > > > > On Mon, Apr 30, 2012 at 2:01 PM, Adio wrote: > > Thanks for the reply. > > > On Apr 27, 7:10 pm, Joseph Lust wrote: > > > See https://www.google.com/search?q=google+web+toolit+overview > > > > Joe > > > -- > > You received 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: Abridged summary of google-web-toolkit@googlegroups.com - 44 Messages in 20 Topics
-- You received 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 build text trimming cell for GWT DataGrid
@Jens, Just to expand on Jen's answer. For this solution to work, you need to apply it to a div inside a cell: .myDataGrid td div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } > Apply CSS to your cell: > > white-space: nowrap; > overflow:hidden; > text-overflow: ellipsis; > > -- 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.