Create own WYSIWYG-Editor (like RichTextEditor): Problems to get selection
Hi! I want to create my own Editor with GWT. Unfortunately, I am not very familiar with JavaScript but in Java. I've started as follows: I've created a class TextArea that extends FocusWidget. As element I've set a DivElement. Than I've set contentEditable true (getElement().setPropertyString(contentEditable, true);) That works fine. But now, I want to acquire the selected text or even better the paragraph element the cursor actually is in to set the CSS class of this element. The page (http://perplexed.co.uk/1020_text_selector_jquery_plugin.htm) describes a JavaScript function that gives the DOM object actually selected. It works directly in a HTML page but not as native function in GWT (Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot read property 'parentNode' of null) and I have no idea how to use it in GWT. I hope anyone can help me to define an Java method in GWT which gives me the p child element of the editable div. If you have some questions or my explanations are too confused feel free to write it. Thanks in advanced. Cornelius -- 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: Solution to GWT hosted mode not working in debug mode in eclipse
I had the same problem and installed the latest version (JDK 1.6.0_16) and it is now fixed. One of the bugs fixed in 1.6.0_16 is that breakpoints were not working. On Jul 22, 11:26 am, Ralph ralphchel...@gmail.com wrote: I figured this might be useful to someone. If you are experiencing a deadlock (notresponding) in GWT 1.5 hosted mode specifically in eclipse debug mode andnotin run mode, make sure that you didnotset any methodbreakpoints(as opposed to a line breakpoint). Ralph --~--~-~--~~~---~--~~ 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: hosted mode stucks, debugger does not work...
You can now install the latest version (JDK 1.6.0_16) and it is now fixed. One of the bugs fixed in 1.6.0_16 is that breakpoints were not working. On Jul 24, 3:28 am, Paul Robinson ukcue...@gmail.com wrote: Check which version of the JDK you have. There's a bug in 1.6.0_14 that prevents debuggerbreakpointsfromworking. If you are using that version, then you should downgrade to 1.6.0_13 Jaimon wrote: hi all, i am new to the GWT world, i have started to do the tutorial (StockWatcher) and everything wasworkingwell and pretty easy till i got to the point of where: 1) my hosted mode sometimes starts but show an empty page, it is stuck on connecting to 127.0.0.1 2) the debugger doesnotwork any more, meaning i am putting a break point in the code but the hosted mode ignores it. any help, and good tutorial on how to work with php whould be really appreciated me :) --~--~-~--~~~---~--~~ 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: Announcing the Google Plugin for Eclipse 1.1.0
I had the same problem and installed the latest version (JDK 1.6.0_16) and it is now fixed. One of the bugs fixed in 1.6.0_16 is that breakpoints were not working. On Aug 26, 11:39 am, Shavkat S shavka...@gmail.com wrote: Hi everyone! I've installed eclipse-jee-galileo-win32.zip gwt-windows-1.7.0.zip and I am going through the Getting started tutorial for GWT (http:// code.google.com/webtoolkit/tutorials/1.6/debug.html) Everything works just fine until I get the Step 6: Debugging a GWT Application. Execution of the GWT application doesn't stop at thebreakpointsthat I set in Eclipse. At the same time it works non-GWT applications. I am new to GWT and Eclipse so I can miss something. Do I need to do something specific for GWT application to debug it in Eclipse? 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: Debugging GWT App in Eclipse
Zeng, you are correct, update 16 does fix the problem. I had the same problem and installed the latest version (JDK 1.6.0_16) and it is now fixed. One of the bugs fixed in 1.6.0_16 is that breakpoints were not working. -www.chrisnovak.com On Aug 13, 10:56 pm, Zeng Wei daniel.cute...@gmail.com wrote: Thanks for your good discussion. It's just the solution I'm looking for. My problem is similar to you: grade up to JDK 1.6.0_15 then debugger doesnotwork. It seems that Update 16 is also available now. I wonder if it has been fixed in that version. So I'll have a try a little later. Daniel Happy On 7月27日, 下午6时30分, CI-CUBE e...@ci-cube.info wrote: I can confirm that after a downgrade to JDK 1.6.0_13 the debugger is working. Crazy IT world isn't? Thx for the information anyway. Ekki On Jul 27, 8:48 am, Paul Robinson ukcue...@gmail.com wrote: There's a bug in JDK 1.6.0_14 that does this, so check what version of java you are using. The workaround is to downgrade to JDK 1.6.0_13 Howard Tan wrote: Hi Ekki, Did you get this to work on your office computer? I'm experiencing the same problem, and just like to get this to work. Thanks, Howard On Jul 24, 12:25 pm, CI-CUBE e...@ci-cube.info wrote: Thx. I did setup an identical configuration on my home machine, which works as expected. Even the breakpoint window appears. So, hopefully, I can manage to get it running on the office machine too. Thread over for now. Thx again Ekki On Jul 24, 8:59 pm, Sean slough...@gmail.com wrote: Make sure you'renotjust hitting run in Eclipse, hitDebug. It'll look like the little bug next to the play button in Eclipse. Breakpoint window usually only shows up when in theDebugView. You can add it to the normal java view (I personally do) by: Window - Show View - Other. Find the +Debug, expand it, selectbreakpoints. And now you can move that tab where you see fit. On Jul 24, 10:30 am, CI-CUBE e...@ci-cube.info wrote: Hi... I'm in theGettingStartedTutorial example, everything works so far, but I'm unable todebug(Step 6). It always runs thru the code ignoring mybreakpoints. BTW, if I create a breakpoint there isn't a breakpoint window where that one appears (like shown in the Tutorial) I tried both values for the 'Run built-in Server' setting - no difference. BTW, the app always appears in Hosted Mode. Where's the option to run it in the system browser, if any? I'm running App Engine 1.2.1, GWT 1.6.4, Eclipse 3.4.2, Firefox 3.0.12 If this is the wrong place to ask something like that, where should I go? Thx ia, Ekki --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---