Hi!

I'm using two textboxes A and B. They have a dependency between them:
as A gets bigger, B gets lower (A= C-B; B= A+C)

In the background is a transport object which gets updates.
So
textBoxA->onChange is setting textBoxB->Value and to->setA; to->setB
if textBoxB is changed its the almost same:
textBoxB->onChange is setting textBoxA->Value and to->setA; to->setB


Now there comes the issue:
I've written a ValueChangeHandler which is used for validation: if it
succeeds, the former code from the ValueCahngeHandler is executed and
the box gets a style assigned. If it fails, the box gets an error-
style assigned and a message is displayed.

so now it is
CommandA := setting textBoxB->Value and to->setA; to->setB
textBoxA->onChange is validating and if it succeeds: run CommandA
CommandB := setting textBoxA->Value and to->setA; to->setB
textBoxB->onChange is validating and if it succeeds: run CommandB


Here is the pitfall:
textBoxA works as designed and is setting textBoxB->setValue, but
since this is not firing textBoxBChangeEvent, its neither validated
nor the style updated.

When I'm using setValue(xxx, true) I'm firing in an infinite loop.

Can I anyhow fire the event to textBoxB without having the event in
textBoxB re-fired (causing the infinite loop).
Or how did you solve such situations?

Thanks for your advice!
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to