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.jspx
page and then select the Command button that holds thecommit
operation 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:showPopupBehavior
component is added to thecommit
operation. Now addtriggerType
as action, which is the event that should invoke the popup. Theid
value of the Command buttoncb1
is provided for thealignId
component, that is, the popup relative to the Command button. Thealign
property is set tobeforeStart
to align the popup next to theaf:commandButton
component.Now we will create an
af:popup
component and add anaf:dialog
component to it. Add a message sayingDo you really want to commit the data?
inside theaf:dialog
component.Provide the ID of...