Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsClientscripting: Trigger traverse programmatically
https://www.eclipse.org/forums/index.php/mv/msg/489219/1064346/#msg_1064346
In RCP this is done using various listeners. As this is very bad for performance (every keystroke would be transfered to the server) we build some generic javascript functions which can validate the given input against a regex. This functions are registered once as a ressource. The code of the clientlistener is just a call of these functiones with the regex as a parameter.
The validation works well, but we do not know how to implement the automatic traverse.
We did not find documentation for the javascript part, so we couldn't check if we can fire a traverse event in javascript.
How could a automatic traverse with clientscripting work?
thanks in advance]]>Stefan Milchram2013-06-18T19:59:57-00:00Re: Clientscripting: Trigger traverse programmatically
https://www.eclipse.org/forums/index.php/mv/msg/489219/1064455/#msg_1064455
traversal is not yet supported by the clientscripting, but I think it
should be generally possible. We plan to extend the clientscripting
component in 2.2 and traversal could be a powerful addition for this
component. Feel free to open an enhancement request.
> We did not find documentation for the javascript part, so we couldn't
There's a wiki page [1] for the clientscripting, that is also referenced
on the incubator page.
Professional services for RAP and RCP? http://eclipsesource.com/services/rap/]]>Ralf Sternberg2013-06-19T11:24:34-00:00Re: Clientscripting: Trigger traverse programmatically
https://www.eclipse.org/forums/index.php/mv/msg/489219/1064604/#msg_1064604
As Tim wrote on the eclipsesource-blog: http://eclipsesource.com/blogs/2013/06/07/rap-client-scripting-phase-ii-33/
we could pass the next widget to the widget which features automatic traversal in RCP. All we would have to do is trigger the focus-event on the passed widget as a click would do.
Would this be a possible solution?]]>Stefan Milchram2013-06-20T08:17:47-00:00Re: Clientscripting: Trigger traverse programmatically
https://www.eclipse.org/forums/index.php/mv/msg/489219/1065086/#msg_1065086
I think the correct solution would be to implement setFocus or
forceFocus for ClientScripting. Since this seems to be a common use case
I will try to get this done as soon as possible and then post a snippet
in this thread.
Greetings,
Tim
Am 20.06.2013 10:17, schrieb Stefan M:
> I know about the clientscripting wiki, but i did mean documentation on
> the "general" javascript-part. We thought we could trigger the
> focus-event ourselves using the general javascript-api of the objects.
> As Tim wrote on the eclipsesource-blog:
> http://eclipsesource.com/blogs/2013/06/07/rap-client-scripting-phase-ii-33/
> we could pass the next widget to the widget which features automatic
> traversal in RCP. All we would have to do is trigger the focus-event on
> the passed widget as a click would do.
> Would this be a possible solution?
Professional services for RAP and RCP? http://eclipsesource.com/services/rap/]]>Tim Buschtoens2013-06-24T09:48:19-00:00Re: Clientscripting: Trigger traverse programmatically
https://www.eclipse.org/forums/index.php/mv/msg/489219/1065523/#msg_1065523
> in this thread.
Done. Controls now have a "forceFocus" method[1]. The demo application
in org.eclipse.rap.clientscripting.demo bundle has been updated. Example:
>
> Greetings,
> Tim
>
> Am 20.06.2013 10:17, schrieb Stefan M:
>> I know about the clientscripting wiki, but i did mean documentation on
>> the "general" javascript-part. We thought we could trigger the
>> focus-event ourselves using the general javascript-api of the objects.
>> As Tim wrote on the eclipsesource-blog:
>> http://eclipsesource.com/blogs/2013/06/07/rap-client-scripting-phase-ii-33/
>>
>> we could pass the next widget to the widget which features automatic
>> traversal in RCP. All we would have to do is trigger the focus-event on
>> the passed widget as a click would do.
>> Would this be a possible solution?
>
Professional services for RAP and RCP? http://eclipsesource.com/services/rap/]]>Tim Buschtoens2013-06-26T10:10:36-00:00Re: Clientscripting: Trigger traverse programmatically
https://www.eclipse.org/forums/index.php/mv/msg/489219/1067608/#msg_1067608
I implemented the solution now in our application, it works fine.