Does RAP support auto-completion of text fields? [message #138811] |
Wed, 01 July 2009 05:16  |
Eclipse User |
|
|
|
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 #360097 is a reply to message #141512] |
Tue, 28 July 2009 09:37  |
Eclipse User |
|
|
|
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.
>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05323 seconds