Am I there the way the Editor discards changes made to its properties? This is on the client side. No perseverance.
I have:
public class ClaseEditor extends PopupPanel implements Editor<ClaseProxy> {
@UiField ValidatedTextBox tema;
@UiField ValidatedTextBox catedratico;
}
I use this editor in ListEditor, since you know that there is a list of editors in
ListEditor<ClaseProxy, ClaseEditor>
If the user creates one, this is normal, then if the user edits it. I have options to save or cancel, I save ok, just hide the editor and the changes made are in order.
But in the user clicks “Cancel”, and if some changes have been made to the properties, the editor resets the (lazy) editor, which changes to a proxy.
Yes, I can save the initial value in a string and then restore using setValue () in texboxes. But is there another way (API editor) that prevents this?
thank