Time for action – showing a popup to the user
Now we will see how to create a popup from scratch in ADF:
- Go to the
index.jspxpage and then select the Command button that holds the
commitoperation from the Structure window.
- Right-click on the Command button and select the Insert inside the af:commandButton –Commit option and the select the Adf Faces option.
- Click on the Show Popup Behavior option in the Insert ADF Faces Item window:
- Now a
af:showPopupBehaviorcomponent is added to the
commitoperation. Now add
triggerTypeas action, which is the event that should invoke the popup. The
idvalue of the Command button
cb1is provided for the