Skip to main content



      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] Tue, 06 November 2018 21:14 Go to next message
Eclipse UserFriend
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 04:31 Go to previous message
Eclipse UserFriend
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: Tue Jul 15 18:22:35 EDT 2025

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

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

Back to the top