Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Key listener needed BEFORE databinding triggers
Key listener needed BEFORE databinding triggers [message #991498] Wed, 19 December 2012 14:28 Go to next message
Ingo Meyer is currently offline Ingo MeyerFriend
Messages: 127
Registered: July 2009
Senior Member
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 16:08 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 1872
Registered: July 2009
Senior Member
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/
Previous Topic:Overlays via custom widget?
Next Topic:[ANN] RAP 2.0 M4 published
Goto Forum:
  


Current Time: Thu Dec 18 10:44:02 GMT 2014

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

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