I’m getting many questions regarding to how can we control components base on other components.
One of the standards ways is to use the object’s properties and EL expression.
So, this is something very basic in ADF and I think it’s important to understand and know.
Many of the ADF faces component have 2 important properties: AutoSubmit and PartialTriggers.
Basically what they are saying:
- AutoSubmit: when it is set to true, you are partially submitting an action. For example, changing the value of an inputText.
When the value is being changed, there is no need to wait for a refresh or a global update.
That way you can control a specific objects in your page.
- PartialTriggers: in this property you are referring to the previous input text.
If you want the current object to fire an action, based on another object (like inputText changing value), you need to set the partialTriggers value to the id of that component.
Here is a simple example: You have 2 inputtext, A & B. B is disable, until a value will be enter in A. For that we will use only EL expression: