In an ADF mobile application I want to disable an input-text when a button is pressed. How to do it ? Please help
Disabling an input text when a button is pressed in ADF mobile
1.6k views Asked by 13013Key At
1
In an ADF mobile application I want to disable an input-text when a button is pressed. How to do it ? Please help
Create a managed bean property to be used for inputText readOnly
Right click on the managed bean class and choose Generate Accessors from the menu. Select readOnlyText to genearate getter/setter methods. Make sure to check
check box as this will add PropertyChangeSupport to the bean. As a result the setter method will have following code:
Use this property in your inputText:
Bound the ActionListener of the button to a method in managed bean:
In buttonActionListener set readOnlyText = true;
For more details refer OTN Code Corner