Hey Ben, Responses inline:
On Thu, Apr 23, 2009 at 12:56 PM, Ben FS <[email protected]> wrote: > > > Glad that the error is gone. One last question - in the launch > configuration > > that you modified by hitting the "Restore Defaults" button - before that > > point, did you ever make changes to the list of Entry Points in the > launch > > configuration? > I may have removed a module (that had an entrypoint, but that I did > not intend to launch), but I am not sure. > > > The reason that I'm asking is because we should always default to the > > project's list of entry points in the "Available Modules" list for a > launch > > configuration, UNLESS you've made a change to them. > Could you please explain what you mean by "made a change to them"? > Specifically, are you asking whether I ever changed the list of > entrypoints included under the specific launch configuration? Because > there is also the list that comes up under GWT settings when I right- > click on the project node. Sorry, that was not very clear, was it? As you've more clearly put, I was asking you whether you've changed the list of entry points included under the specific launch configuration. If you did make such a change, then that set of entry point modules in the launch configuration becomes fixed. That is, if you make a change to the list of entry points in the Project Properties GWT Settings page, these changes will not be propagated to the modified launch configuration. Conversely, had you not made any specific changes to the launch configuration, then the list of entry point modules in the configuration would always mirror the list of entry point modules in the Project Properties GWT Settings page. > > > > From what you're > > describing, it seems as if the launch configuration did not respect your > > project's defaults, which may mean that there's a bug in the plugin. > There are four modules in my project. One of them has no EntryPoint > ("Core"), one of them is an artifact from when I first created the > project using the plugin, some sort of Hello World type of module that > I just haven't got around to deleting yet. Two modules have > EntryPoints and these are the ones I run. I have multiple launch > configurations. > > I am certain that the "Core" module (lacking an EntryPoint) never had > an EntryPoint in this project. I am pretty sure that I never actively > added the "Core" module to the list of Available Modules in any of the > launch configurations. Before I hit "Restore Defaults", the "Core" > module was listed in the Available Modules. So it seems that either a) > the plugin somehow added this EntryPoint-less module at some point > (perhaps when I copied the existing code into the project), or that b) > I mistakenly added it myself and don't remember doing so. > > To reproduce, I'd suggest starting a new project using the Plugin, and > then copying in code that includes three existing modules, one of > which has no EntryPoint but is included by the other two. Ok, I will give this a try on my side. Thanks for the information. > > > > > > On Wed, Apr 22, 2009 at 9:05 PM, Ben FS <[email protected]> wrote: > > > > > > Do you see the non-entry point module in the list? > > > Yes. > > > > > > If so, can you hit "Restore Defaults", run the launch configuration, > and > > > see if that fixes your > > > > problem? > > > Okay, I tried this as you describe and it worked. When I clicked > > > "Restore Defaults", the entrypoint-less module disappeared. A > > > different module (with entrypoint) reappeared, and since I don't want > > > that one included, I removed it. I saved the configuration, ran it, > > > then compile/browsed it, and the hosted mode log no longer shows the > > > error message. > > > > > Thanks for your help! > > > > > PS: Any chance you know the answer to this other question ... about > > > GWT events and the DOM? > > > > >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa. > .. > > > > I'm sorry, it has been a long time since I've been in the Tree code, so I > > don't know the answer to this offhand. I'm sure someone will get back to > you > > on the GWT forum shortly. > I'm hoping someone will ... it's been a few days. Seems like a pretty > fundamental question, tree or no tree: how to insert elements into the > DOM and still have event participation. Then again, maybe what I want > to do is not supported, or more likely, I'm leaving out some crucial > step and just don't know better ;) Ah, now that you phrased the question more generally, I can comment on this :). Event handling in GWT is designed around GWT's widgets and panels. While you can have elements that you insert into the DOM participate in event handling, this is discouraged, because it is very difficult to make it work correctly. See this document for more information on this problem (which also provides an explanation as to why GWT does not make it obvious on how to do this): http://code.google.com/p/google-web-toolkit/wiki/DomEventsAndMemoryLeaks > > Thanks, > Ben. > > > > > Rajeev > > > > > > > > > > > > To perform a compile from the IDE, follow the instructions here: > > > > > > > >http://code.google.com/eclipse/docs/gwt_compile.html > > > > > I also tried this, and it worked as well for me. > > > > > > > Thank you for your suggestions, you've been a great help. > > > > > > > Ben. > > > > > > > > Rajeev > > > > > > > > On Apr 20, 4:16 am, Salvador Diaz <[email protected]> > wrote: > > > > > > > > > > 1. In the Hosted mode log: > > > > > > > > [INFO] Compilingmoduleorg.macdadi.core.Core > > > > > > > > [ERROR]Modulehas no entry points defined > > > > > > > > > It looks like you're trying to launch > themodulewithoutentrypoint > > > > > > > instead of themodulewith entry point, you can't do that. Check > the > > > > > > > parameters you're passing to the hosted mode and make sure the > last > > > > > > > one is the name of themodulewith an entry point. > > > > > > > > > > 2. A popup in Firefox (or IE): GWTmodule'macdadiks' needs to > be > > > (re) > > > > > > > > compiled, please run acompileor use theCompile/Browse button > in > > > > > > > > hosted mode > > > > > > > > > If you failed tocompileyour application, you won't be able to > > > deploy > > > > > > > it (use it in a standard browser/outside the hosted mode) > > > > > > > > > > I'm using the Eclipse Googe Plugin, and I don't know how to > force > > > a > > > > > > > > compilation of all the modules from the IDE directly ... (in > > > > > IntelliJ, > > > > > > > > which I used with GWT 1.4.62 in the past, I know how to do > this). > > > > > > > > > You only need tocompilethemodulewith an entry point, if it > > > > > > > inherits other modules and the source code for them is > available in > > > > > > > the classpath, the GWT compiler will find them and include them > in > > > the > > > > > > > compilation. > > > > > > > > > Hope it helps, > > > > > > > > > Salvador- Hide quoted text - > > > > > > > > - Show quoted text -- Hide quoted text - > > > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > > > - Show quoted text - > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
