Can't get the Editor to run from Eclipse

3 views
Skip to first unread message

UncleBob

unread,
Jun 27, 2010, 11:04:29 AM6/27/10
to GWT Rich-Text Editor
I've done tons of programming over the years, but little web or GWT
work.
Just checking out the code via SVN and creating an Eclipse project
doesn't work - it's not a GWT project.

Creating a GWT project and replacing src and test directories with the
ones from the checked-out code helps.
(I know that dragging whole folders into a project can raise havoc,
but I didn't know what else to do.)

Anyway, I can get the entire project to run using Test.java, since it
implements EntryPoint and has onModueLoad (as well as
_onModuleLoad ??).

It gives me a URL for my browser, but the browser complains with,

HTTP ERROR: 503

SERVICE_UNAVAILABLE

RequestURI=/Editor.html

Powered by jetty://

I would think that it might be OK if it had been looking for Test.html
instead of Editor.html, but I have no idea how to get that to work.

What I'd really like to know is how to get the Editor into a proper
GWT project in Eclipse in the first place - I'm sure that dragging
directories around probably caused a lot of trouble.

My long-term plans are to build a GWT app that presents text so that a
user can add various attributes to each word, which would, of course,
get sent back to a server. It's work in computational linguistics. A
student did some good GWT work earlier, but he's gone now.

I'm trying to take over the GWT work, and among other things, learn
the GWT/DOM I need to interact with individual words in text.

From what I've been reading, I know that there are many people out
there with a great deal more expertise than I have. I'm hoping to get
some help, since it's been a lot of tough sledding, coming in from the
'outside'.

- Bob Futrelle
Northeastern University



Yegor

unread,
Jun 27, 2010, 11:59:28 PM6/27/10
to GWT Rich-Text Editor
Hi, Bob,

Unless you are planning to build a feature-rich WYSIWYG HTML editor
comparable to Google Docs, then I think that gwt-html-editor is an
overkill for your project. I would recommend plain RichTextArea
instead, or even just TextArea if text, and not styling, is all you
care about.

Here are some docs on RichTextArea:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/RichTextArea.html
And here's some sample code: http://gwt.google.com/samples/Showcase/Showcase.html#!CwRichText

Good luck!

Yegor
Reply all
Reply to author
Forward
0 new messages