setValue() inside ValueChangeListener

Hi,
We have a TextField component whose input is “interpreted” and updated inside the ValueChangeListener. Think adding layout-mask to the entered text. This is done in the ValueChangeListener, using setValue(). This obviously causes a recursive ValueChange event, which we would like to avoid.
I know in GWT you can do setValue(String value, boolean fireEvent).
Questions:

  • is there a proper way to not fire events or must we test for recursion ourselves?
  • more fundamentally: is there perhaps some existing component that handles input masks elegantly? There appears to be an add-on which is quite old.
    Thanks
    Geert


Converter
?