Input validation - decoration / visual feedback - howto [message #1049212] |
Thu, 25 April 2013 14:10 |
|
The RAP Examples Demo includes input fields with ClientScripting, giving what it describes as 'visual feedback' on fields:
http://rap.eclipsesource.com/rapdemo/examples#input
Note how the "digits only" example gives you an orange background and also a small red 'X' graphic on its top left.
Could someone please explain (better, give an example), on how the 'X' graphic is provided?
Is this done in JavaScript with ClientScripting, or is that image put in by explicit logic (with a Label widget) on the RAP server side using Java code?
Thanks, John
---
Just because you can doesn't mean you should
[Updated on: Thu, 25 April 2013 14:11] Report message to a moderator
|
|
|
|
Re: Input validation - decoration / visual feedback - howto [message #1049886 is a reply to message #1049812] |
Fri, 26 April 2013 12:02 |
|
Thanks Tim.
Java-only is good - I wasn't aware of the jface.fieldassist ControlDecoration and FieldDecoration classes, so I think you've pointed me in the right direction.
I cannot get it working in my own application, but it is most likely just me doing something silly... I shall persevere.
Everything builds and runs ok, but I just don't see the images appear... must be me I guess...
Cheers, John
---
Just because you can doesn't mean you should
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05073 seconds