In ADF development we face immediate attribute for a button quite frequently. Sometimes developers do not clearly understand what the meaning and impact for action behaviour it cause. Actually this attribute makes sense not just for UICommand (buttons), but for UIInput (input fields) as well. And by the way, its not an ADF invention, it comes from JSF (Apache MyFaces) framework. So lets clarify here what an impact has immediate attribute either for UICommand and UIInput components. First lets get acquaintanced with JSF Page lifecycle:
Just to be aware – ADF lifecycle is an extended JSF lifecycle. But for defining immediate behaviour its enough to know JSF lifecycle phases.
Buttons
immediate=”false” | immediate=”true” | |
UIInput (<af:inputText/>) |
|
|
UICommand (<af:button/>) |
|
|
For more information please refer to Apache MyFaces documentation.
Very valuable ADF oriented presentation about ADF Faces Page Lifecycle by Steven Davelaar.