Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Copy, Tabulation and Search features in RAP widgets
Copy, Tabulation and Search features in RAP widgets [message #1802005] Wed, 30 January 2019 15:27 Go to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi,
we are trying to provide the following features in RAP Labels or Text widgets (the browser is only IE10 and IE11):
- select and copy a value
- skip widgets with Tabulation
- search values (Ctrl-F or F3)

what we found is:
- Labels are highlighted when searching (F3), but do not have context menus with e.g. Copy, do not provide value selection and gets no selection when Tab is pressed
- Texts have context menus (with e.g. Copy), provide value selection, are selected when Tab is pressed, but are not highlighted when searching

Is there a way to have all these features in the same widget, e.g. by setting some properties or with some special CSS attribute?
Deeper question: what makes an HTML element searchable and selectable?
Thank you
Vincenzo
Re: Copy, Tabulation and Search features in RAP widgets [message #1802018 is a reply to message #1802005] Wed, 30 January 2019 22:11 Go to previous messageGo to next message
Chris Fairhall is currently offline Chris FairhallFriend
Messages: 221
Registered: February 2011
Senior Member
Searchable: I don't think you can search on the value on an INPUT or TEXTAREA element. That's why you can't search for the Text widget values.
Selectable is based on DOM properties, so it could be possible to enable searching by forking the RWT framework and updating some of the Javascript files.

Sounds like you're trying to fit a square peg in a round hole - using a framework that was designed to emulate a desktop experience to create a web experience.
Re: Copy, Tabulation and Search features in RAP widgets [message #1802019 is a reply to message #1802018] Wed, 30 January 2019 23:40 Go to previous messageGo to next message
Vincenzo Caselli is currently offline Vincenzo CaselliFriend
Messages: 235
Registered: January 2012
Senior Member

Hi Chris,
thank you for your answer!
Ok, I realize I didn't explain our goal with proper attention.

Consider this page: if you press Ctrl-F and type something, e.g. "RAP" you'll see several html elements highlighted (searchable feature).
You can also select (dragging the mouse over it or double clicking) these or other html elements, right-click the selection and have a context menu that allows you to copy that selection (selectable feature).

I now used the term "html element" (not Label or Text) just to make it clear that the two behaviours above are valid for virtually any kind of html content (label, text, textarea, links, etc..).

Our customers are just demanding to have these same behaviours in a RAP application as well as they have in a generic web application.

Since in our application we have several read-only data, we used Labels, but Labels are not selectable in the way explained above.
For that reason we tried to replace Labels with read-only Texts, which provide this feature, but lack the previous one.

In the end we just would like to know how to offer, with RAP (which we like a lot!), the same user experience offered by a generic web application.

Thank you
Re: Copy, Tabulation and Search features in RAP widgets [message #1802060 is a reply to message #1802005] Thu, 31 January 2019 13:19 Go to previous message
Michael Fritscher is currently offline Michael FritscherFriend
Messages: 43
Registered: September 2012
Member
Vincenzo Caselli wrote on Wed, 30 January 2019 10:27

- Texts have context menus (with e.g. Copy), provide value selection, are selected when Tab is pressed, but are not highlighted when searching


At least for not read-only text (Couldn't test it for read-only text it now) this works in Chrome and Firefox, but not in IE 11. So this seems to be a bug in the searching code in IE (which doesn't consider input elements it seems)

I don't have Edge here, but MS wants to switch on the Chrome's rendering engine anyways.
Previous Topic:SUGGEST FOR WAR PRODUCT TOOL
Next Topic:Client side error handling with RAP
Goto Forum:
  


Current Time: Fri Apr 19 04:39:20 GMT 2024

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

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

Back to the top