Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » org.eclipse.swt.widgets.Event.text return unexpected value(discrepancy between SWT and RAP)
org.eclipse.swt.widgets.Event.text return unexpected value [message #1797822] Wed, 07 November 2018 02:14 Go to next message
NakKyu Sung is currently offline NakKyu SungFriend
Messages: 5
Registered: January 2018
Junior Member
Hello,
I am using SWT.Verity event to validate inputted value is correct.
Let's say user inputs 12345 then
In SWT, event.text return 5 but in RAP it returns 12345.
So I want to this is another limitation of RAP or it can be fixed.
Re: org.eclipse.swt.widgets.Event.text return unexpected value [message #1797836 is a reply to message #1797822] Wed, 07 November 2018 09:31 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2327
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,
this is a limitation in RAP. See:

244008: VerifyEvent field values differ from SWT
https://bugs.eclipse.org/bugs/show_bug.cgi?id=244008

For text field validation we recommend client scripting solution. See [1], [2], [3].

HTH,
Ivan

[1] http://rap.eclipsesource.com/demo/release/rapdemo/#validation
[2] https://github.com/eclipse/rap/blob/master/examples/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/pages/ValidationExamplePage.java
[3] https://github.com/eclipse/rap/tree/master/examples/org.eclipse.rap.examples.pages/src/org/eclipse/rap/examples/pages/internal/scripting
Previous Topic:[ANN] RAP 3.7 M1 published. Important fix for Firefox 65+!
Next Topic:Text overflow in Firefox 63
Goto Forum:
  


Current Time: Mon Dec 16 12:28:28 GMT 2019

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

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

Back to the top