Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Does RAP support auto-completion of text fields?
Does RAP support auto-completion of text fields? [message #138811] Wed, 01 July 2009 09:16 Go to next message
Andrew Cho is currently offline Andrew ChoFriend
Messages: 3
Registered: July 2009
Junior Member
I've started playing with RAP and I'm looking for a widget that can
perform AJAX-like auto-completion of text fields (i.e. you start typing
and proposals are presented in a drop down or dialog).

What confuses me is that the RAP widget toolkit wiki page
(http://wiki.eclipse.org/WidgetToolkit#No_Goes) says that "RWT will not
support Key-Stroke events with server-side turnarounds for event
processing, since the network latency is too big to make such events
usefully applicable" - which sounds a lot like auto-completion.

Despite this, there's a RAP implementation of the JFace field assist stuff
( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/jface_fieldassist.htm)
in the org.eclipse.rap.jface (1.2.0) bundle. However, I believe this
implementation is broken or at least incomplete as parts of the class are
commented out. The HEAD of CVS doesn't look any better either. In fact,
this post
( http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04131.html)
implies that the code shouldn't even be in CVS since it's not production
ready and is "in no shape to be very useful".

So I'm wondering whether to build my own auto-complete widget if the RWT
wiki page was correct (such features are 'no goes'), or wait for a
complete implementation of the JFace field assist stuff.

Cheers,
Andrew
Re: Does RAP support auto-completion of text fields? [message #139612 is a reply to message #138811] Tue, 07 July 2009 16:41 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Hi Andrew,

sorry for the late response (hoping that it isn't too late). As of
now you are probably best of if you build your own auto-complete widget.
It should be possible to get the JFace field assist to work, but
that is not on our near-term plan.
With some luck you can get a 'composed' auto-complete widget to
work: a text widget with a modifyListener plus a Shell with a list
in it to show the proposals...

HTH
Rüdiger


Andrew Cho wrote:
> I've started playing with RAP and I'm looking for a widget that can
> perform AJAX-like auto-completion of text fields (i.e. you start typing
> and proposals are presented in a drop down or dialog).
>
> What confuses me is that the RAP widget toolkit wiki page
> (http://wiki.eclipse.org/WidgetToolkit#No_Goes) says that "RWT will not
> support Key-Stroke events with server-side turnarounds for event
> processing, since the network latency is too big to make such events
> usefully applicable" - which sounds a lot like auto-completion.
>
> Despite this, there's a RAP implementation of the JFace field assist
> stuff
> ( http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/jface_fieldassist.htm)
> in the org.eclipse.rap.jface (1.2.0) bundle. However, I believe this
> implementation is broken or at least incomplete as parts of the class
> are commented out. The HEAD of CVS doesn't look any better either. In
> fact, this post
> ( http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg04131.html)
> implies that the code shouldn't even be in CVS since it's not production
> ready and is "in no shape to be very useful".
>
> So I'm wondering whether to build my own auto-complete widget if the RWT
> wiki page was correct (such features are 'no goes'), or wait for a
> complete implementation of the JFace field assist stuff.
>
> Cheers,
> Andrew
>
Re: Does RAP support auto-completion of text fields? [message #141434 is a reply to message #139612] Fri, 24 July 2009 14:31 Go to previous messageGo to next message
Andrew Cho is currently offline Andrew ChoFriend
Messages: 3
Registered: July 2009
Junior Member
Hi,

Just in case anyone is interested about this, I ended up creating a custom
RAP widget that wraps YUI's Auto Complete widget
(http://developer.yahoo.com/yui/autocomplete/). I chose this path because
my company has a decent amount of experience using YUI plus I would get a
lot of features for free that I otherwise would have had to implement
myself.

There's a small issue in specifying the JavaScript dependencies, because
there doesn't appear to be a way to specify the order in which IResource
dependencies get added to your RAP page, but I solved this by creating a
JavaScript IResource that programmatically creates <script> nodes in the
correct order.

Cheers,
Andrew.
Re: Does RAP support auto-completion of text fields? [message #141512 is a reply to message #141434] Mon, 27 July 2009 06:01 Go to previous messageGo to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi Andrew,

sounds good. Could you provide source?

@RAP Team: Maybe this is something for the sandbox?

Regards,
Markus

"Andrew Cho" <andcho09@gmail.com> schrieb im Newsbeitrag
news:d5ae5a5dad99c6146f70f3961ea79cb7$1@www.eclipse.org...
> Hi,
>
> Just in case anyone is interested about this, I ended up creating a custom
> RAP widget that wraps YUI's Auto Complete widget
> (http://developer.yahoo.com/yui/autocomplete/). I chose this path because
> my company has a decent amount of experience using YUI plus I would get a
> lot of features for free that I otherwise would have had to implement
> myself.
>
> There's a small issue in specifying the JavaScript dependencies, because
> there doesn't appear to be a way to specify the order in which IResource
> dependencies get added to your RAP page, but I solved this by creating a
> JavaScript IResource that programmatically creates <script> nodes in the
> correct order.
>
> Cheers,
> Andrew.
>
Re: Does RAP support auto-completion of text fields? [message #360097 is a reply to message #141512] Tue, 28 July 2009 13:37 Go to previous message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

Markus Krüger wrote:
> @RAP Team: Maybe this is something for the sandbox?

Why not? I'm not familiar with YUI, but I see that the YUI components
are available under a BSD license, which is compatible. So if someone
out there is willing to maintain it, that could make a great contribution.

Regards, Ralf

> "Andrew Cho" <andcho09@gmail.com> schrieb im Newsbeitrag
> news:d5ae5a5dad99c6146f70f3961ea79cb7$1@www.eclipse.org...
>> Hi,
>>
>> Just in case anyone is interested about this, I ended up creating a custom
>> RAP widget that wraps YUI's Auto Complete widget
>> (http://developer.yahoo.com/yui/autocomplete/). I chose this path because
>> my company has a decent amount of experience using YUI plus I would get a
>> lot of features for free that I otherwise would have had to implement
>> myself.
>>
>> There's a small issue in specifying the JavaScript dependencies, because
>> there doesn't appear to be a way to specify the order in which IResource
>> dependencies get added to your RAP page, but I solved this by creating a
>> JavaScript IResource that programmatically creates <script> nodes in the
>> correct order.
>>
>> Cheers,
>> Andrew.
>>
>
>
Previous Topic:Call URLs content with browser widget into a string
Next Topic:More convenient ConfigIniCreator.java and a warBuilder.xml for deploying RAP apps
Goto Forum:
  


Current Time: Thu Apr 25 08:47:58 GMT 2024

Powered by FUDForum. Page generated in 0.03474 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top