How do I prevento editing a editText filed during edit but allow when addind a new entity
Thanks
How do I prevento editing a editText filed during edit but allow when addind a new entity
Thanks
Hi Julio
You may try this in the controller init or postInit method
if(PersistenceHelper.isNew()){
editTextField.setEnable(true);
}else{
editTextField.setEnable(false);
}
of course you have to inject your field into controller before this.