Hi Igor, I think i get the idea.
To summarise in my own brief way: Every TextField (among others) has besides a Model, also an input buffer. This buffer contains what the user typed. It is also the contents of this buffer that is subject to validation. Only when validation succeeds, the buffers contents is stored in the Model (after a successful conversion). It is also the contents of this buffer that is being displayed on the screen. Therefore, a copy is made from the Model value to the buffer before display. Can you confirn this summary? So, in my application, when i press the Cancel button, i want to get rid of the user input by clearing the buffer, which can be done by a call to clearInput(). This is probably implemented in Wicket by doing a copy from the Model to the buffer. I have implemented it and it works fine! Thanks for your advice. Cheers, -Harry -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-can-i-reset-the-data-in-TextFields-tp3625099p3627166.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
