Databases Reference
In-Depth Information
4. Now a af:showPopupBehavior component is added to the commit operaion.
Now add triggerType as acion, which is the event that should invoke the popup.
The id value of the Command buton cb1 is provided for the alignId component,
that is, the popup relaive to the Command buton. The align property is set to
beforeStart to align the popup next to the af:commandButton component.
5. Now we will create an af:popup component and add an af:dialog component to
it. Add a message saying Do you really want to commit the data? inside
the af:dialog component.
6. Provide the ID of the popup p1 to the popupId property of the
af:showPopupBehavior component. Now the dialog will be shown to the user
whenever the Commit buton is clicked on in the UI.
What just happened?
We have created a confirmation popup for the user to confirm if the Commit buton is
clicked on by the user. So every ime the Commit buton is clicked, the popup will be shown
to the user. The dialog will have a Type property, which will allow the user to select the
butons that will be shown to the user inside the dialog box. The default butons are Ok and
Cancel . Here the user input is important which means clicking on the OK buton in the dialog
should commit the record. Clicking on the Cancel buton should not commit the record.
 
Search WWH ::




Custom Search