Key listener needed BEFORE databinding triggers [message #991498] |
Wed, 19 December 2012 09:28  |
Eclipse User |
|
|
|
Hi,
I'm trying to add an functionality to my new RAP project which was working in RAP 1.4 but now isn't anymore.
I need a key listener which needs to be called before the databinding is running.
Imagine this to find out if the value is entered by the user:
loginTextWidget.addKeyListener( new KeyAdapter()
{
@Override
public final void keyPressed(
final KeyEvent event )
{
loginTextUserValue = true;
}
} );
I need to use the variable loginTextUserValue in the databinding for validation purpose.
Unfortunaltely it is called after the databinding, which I think is very wrong!
Is this a bug or an enhancment or is it normal to call the listener after databinding?
How can I achieve my desired functionality?
Any help is really really appreciated
Thanks,
~Ingo
|
|
|
Re: Key listener needed BEFORE databinding triggers [message #991991 is a reply to message #991498] |
Thu, 20 December 2012 11:08  |
Eclipse User |
|
|
|
Hi Ingo,
if it was working in RAP 1.4, but not in the current RAP version it's
probably a regression. Could you open a bug and attach a snippet to
reproduce the problem.
Best,
Ivan
On 12/19/2012 4:28 PM, Ingo Meyer wrote:
> Hi,
>
> I'm trying to add an functionality to my new RAP project which was
> working in RAP 1.4 but now isn't anymore.
> I need a key listener which needs to be called before the databinding
> is running. Imagine this to find out if the value is entered by the user:
>
> loginTextWidget.addKeyListener( new KeyAdapter()
> {
> @Override
> public final void keyPressed(
> final KeyEvent event )
> {
> loginTextUserValue = true;
> }
> } );
>
>
> I need to use the variable loginTextUserValue in the databinding for
> validation purpose.
> Unfortunaltely it is called after the databinding, which I think is
> very wrong!
>
> Is this a bug or an enhancment or is it normal to call the listener
> after databinding?
> How can I achieve my desired functionality?
>
> Any help is really really appreciated
>
> Thanks,
> ~Ingo
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.03325 seconds