-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi All,
What is the ZK8 equivalent specification for SimpleForm class? I have custom class which extends FormImpl.
How to migrate the below class in ZK8?
public class NotifiableSimpleForm extends FormImpl {
private initCount = 0;
public OXNotifiableSimpleForm() {
super();
}
@Override
public void addSaveFieldName(String fieldName) {
super(fieldName);
initCount++;
}
@Override
public void setField(String field, Object value) {
super.setField(field, value);
if (initCount > 0) {
if (isDirty()) {
// Do what you have to do
System.out.println("isDirty");
} else {
// The other case
System.out.println("is not Dirty");
}
} else {
initCount--;
}
}
Thanks
Abhi2008
ZK 8 uses proxy objects for forms, there's no direct replacement for this code.
What do you intend to do?
In order to create a Form Proxy object you can use the ProxyHelper class.
Asked: 2019-01-03 13:58:01 +0800
Seen: 15 times
Last updated: Feb 11 '19