Re: How does codeserver parameter in GWT work?
Answered on StackOverflow: http://stackoverflow.com/a/18587945/116472 On Tuesday, September 3, 2013 7:01:04 AM UTC+2, M wrote: n GWT in order to run the application in hosted mode dev mode you append get.codesvr parameter to the url as you can see below. /?gwt.codesvr=127.0.0.1:9997 First question is I want to know how does GWT know when to start a JVM instance to serve .class files instead of compiled JavaScript files? I can't seem to find how GWT works in dev mode. I do find main( ) in com.google.gwt.devDevMode. How does this main( ) be called? Second question is in the documentation it says that GWT devmode run with Jetty server, however I see actual JavaScript in browser. How does this jetty server outputs JavaScript from .class files of the client side code? 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. For more options, visit https://groups.google.com/groups/opt_out.
Tree scrolling issue
Hi, I am facing issue with scrolling while selecting tree item in tree. While tree is bigger then it's root panel, scroll is coming. If I click on any item, it will just adjust scroll first then second time I have to do same thing. It will do selection as expected. But The problem with I don't want twice click / selection. It should do in first attempt only. As I goggled then find similar this problem like http://code.google.com/p/google-web-toolkit/issues/detail?id=1467 See below code, This is not my actual code implementation, It is sample example to find actual root cause. public class TestGWTScroll implements EntryPoint { @Override public void onModuleLoad() { ScrollPanel scrollPanel=new ScrollPanel(); scrollPanel.setHeight(200px); scrollPanel.setWidth(100px); CustomTree tree=new CustomTree(); tree.setTitle(tEST); TreeItem item=tree.addItem(new HTML(Node1)); item.addItem(new HTML(Child1 Item---)); item.addItem(new HTML(Child2)); tree.addItem(new HTML(Node2)); tree.addItem(new HTML(Node3)); scrollPanel.add(tree); RootPanel.get().add(scrollPanel); } class CustomTree extends Tree { @Override public void onBrowserEvent(Event event) { int eventType = DOM.eventGetType(event); switch (eventType) { case Event.ONCLICK: case Event.ONKEYDOWN: case Event.ONKEYPRESS: case Event.ONKEYUP: //case Event.ONMOUSEDOWN return; case Event.ONMOUSEDOWN: if ((DOM.eventGetCurrentTarget(event) == getElement()) (event.getButton() == Event.BUTTON_LEFT)) { //How to open selected tree item } default: break; } super.onBrowserEvent(event); } } } As I found, The problem is with Dom event Event.ONMOUSEDOWN. 1) You find in code then I commented Case Event.ONMOUSEDOWN. if I return this event, it works perfect. Doesn’t do scrolling first while mouse left key pressed. But tree open (+) operation stopped. Because Then open node event is handle inside this event. 2) So I decide to these events manually but how I don't know. As I found its all implementation methods are private. Just example elementClicked is private not accessible. So this option is also not work for me. case Event.ONMOUSEDOWN: { // Currently, the way we're using image bundles causes extraneous events // to be sunk on individual items' open/close images. This leads to an // extra event reaching the Tree, which we will ignore here. // Also, ignore middle and right clicks here. if ((DOM.eventGetCurrentTarget(event) == getElement()) (event.getButton() == Event.BUTTON_LEFT)) { elementClicked(DOM.eventGetTarget(event)); } break; } How can I resolve this issue? From that tree open activity and scrolling issue work perfect for me. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Accessing the Android MenuButton
Using MGWT, how might I access the Android MenuButton? (see http://docs.phonegap.com/en/1.0.0/phonegap_events_events.md.html#menubutton) I'd like to pop-up a panel that includes a settings button the way other Android applications do. I understand that for iOS I'll need to use another button on the screen, since in iOS, what appears to be the MenuButton to Android users is the HomeButton. Is this correct? -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: IE10 support in Gwt
I am using hover in my celltree resources: .cellTreeTopItemImageValue { background-color: #ff; } .cellTreeTopItemImageValue:hover { background-color: #EA; } .cellTreeTopItemImageValue a { color: #00; text-decoration: none; } .cellTreeTopItemImageValue:hover a{ color: #4479C1; text-decoration: underline; } but is still will not work unless I use one of the two changes I listed. I have not been working with GWT for long, but we are running in IE7 standards mode and I had been told we need to. I am not sure that matters though since I do not think it will change the fact that GWT can't resolve the user.agent of IE10. -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Re: Help for ASP.Net Developer to migrate to GWT
As a ASP.NET developer, we are also migrating our apps to GWT. Knowing someone who has gone through this already, will really help. Any pointers for an ASP.NET developer as I make my transition to GWT? On Thursday, April 15, 2010 7:21:18 PM UTC-4, DrG wrote: I am developing a website and have a what might be relatively easy question for a GWT native. The question surrounds how to create and initialise objects within GWT. I am a former ASP.Net developer so my questions are along the lines of how I do something I would have previously done in that framework in the new GWT format. *** Question Well, if I have a GWT application which consists of one Application.Html file which is the holder for the application. This translates to one EntryPoint and one Main application module. Now if this application consists of various visual elements which can be shown according to the interactions of the user then where is the best place to instantiate and initialise these objects. For instance if I have a MenuHeader UI Declarative objects and a SideMenu Object and a MainArea object. These are all rendered at start up in the EntryPoint module. Now the MainArea object could display say 20 different other objects depending on what the user is doing in the application, and the choice of object displayed is dependent on the users selections in other child objects. My question surrounds on the best way of handling this interaction. *** Solution 1: Bubble events up to Main Application Module Do I implement an event bubbling mechanism where events are raised up the main level and then objects are instantiated there and rendered accordingly? *** Solution 2: Pass listeners to child objects In the mail application supplied by Google they add this code in the entry point module: // Listen for item selection, displaying the currently-selected item in // the detail area. mailList.setListener(new MailList.Listener() { public void onItemSelected(MailItem item) { mailDetail.setItem(item); } }); So does this mean for every event I would expect then in the Main module I have to create a listener? *** Solution 3: Something I am not aware of. Solutions 1 and 2 do not seem to be good solutions for large applications so is there something I am not aware of that GWT does or some coding practice that someone else can suggest. There maybe a good open source application I can refer to that deals with this problem so any links to good examples are warmly welcomed. Regards Gene Conroy-Jones www.sohoappspot.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-we...@googlegroups.comjavascript:. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com javascript:. 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 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. For more options, visit https://groups.google.com/groups/opt_out.
RequestFactory non-gwt, non-java Clients
After going down multiple related threads and investigating each of them (some dated 2010) I decided to have this posted. I have a web application implemented in GWT(2.5) Spring-Roo. Now I am considering to develop a mobile client for it. I prefer a separate project(not requirement) than gwt since there will be a separate team working on the mobile that are not necessary familiar with gwt. A reasonable architecture would be to have a complete separate project that relies on my back-end services exposed via JSON. I can accomplish this through Spring for my back-end services (authentication would be pain) but that way I can go with native mobile application or any options that consume JSON in the client(appcelerator), however, I feel that I am missing out on RequestFactory capabilities in the mobile client. I can not find a clean response to this scenario. *How can I utilize my existing gwt application back-end for a mobile(non-java) client that consumes JSON utilizing the RequestFactory and already defined proxies.* This post by Thomas Broyer reads specifically for java clients like Android https://groups.google.com/d/msg/google-web-toolkit/wZhdIt6tzVw/akoAfM9CQscJ This one again by Thomas Broyer seems promising but how would you accomplish ... build a JS library exposing your proxies etc. to JS code... where the projects are completely separate. https://groups.google.com/d/msg/google-web-toolkit/sMIQJF42JBQ/TTggSfIN8hsJ Any guide, sample code or implementation details would be greatly appreciated. Thanks, Arash -- 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. For more options, visit https://groups.google.com/groups/opt_out.