I forgot to mention: GWT 1.7.1 On Dec 4, 12:10 pm, Kah0ona <[email protected]> wrote: > Hi, > > [System details: Mac OS X Snow Leopard 1.6.2, eclipse gallilleo] > > I am having a strange problem in a little project of mine. I am > building (generating actually) a system that allows basic CRUD > operations on data, and I am using a simple MVC pattern. For every > data entity I have a MVC triple. So consider a Person who has Hobbies, > then there will be a 'Person MVC' and a 'Hobby MVC' > > Just started this project, and this is what goes wrong: > > The 2nd line in the body of this method causes the hosted mode to > crash: > [mypackage.client.PersonView] > /** > * Adds a create button to the PersonTableView > */ > private void addCreateButton() { > this.createButton = new Button("Create"); > > this.createButton.addClickHandler(controller.getCreateListener()); > panel.add(this.createButton); > > } > > Now, I've got two of these methods, one in the PersonView and one in > the HobbyView. It simply calls the controller, to retrieve a listener > for the button. This works, if I out-comment one of the > addClickHandler lines (eg. in the PersonView xor in the HobbyView). > But if i enable both lines, the GWT hosted browser crashes with the > following errormessage in the console: > > 2009-12-04 11:51:00.270 java[13001:a07] [Java CocoaComponent > compatibility mode]: Enabled > 2009-12-04 11:51:00.273 java[13001:a07] [Java CocoaComponent > compatibility mode]: Setting timeout for SWT to 0.100000 > Invalid memory access of location 00000010 eip=9229277b > > I also tried > this.createButton.addClickHandler(new ClickHandler(){ public void > onClick(ClickEvent event){...})); > > Which gives the same error; only works if one of the two is > outcommented. > > Any thoughts? Both views are part of a TabPanel btw, where the user > can do CRUD operations on Person and on a Hobby tab. > > Should I file this as a bug? It is hard to come up with an accurate > description, but I hope I kind of succeeded...
-- 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.
