Here is a small example of a way to enable or disable a command button using a standard functionality of an ADF.
Take for example the next scenario: You want to reject a form, and you must enter a reject reason.
For that we will use a commandButton (for the reject action) and an inputText (for the reject reason).
Change both objects’ attributes as follows:
inputText:
CommandButton:
- Set the PartialTriggers property to the Reject InputTextId Id:
- Set the Disabled property to have a condition base on the InputText value:
In my example: #{empty bindings.RejectReason.inputValue}
Run the page and test it.
Good Luck!
Leave a Reply