Databases Reference
In-Depth Information
6.
Now go to the page where you want to subscribe the
REFRESH
event. Add a method
binding that handles the
action
event named
payload
because we are using the
Command
tag to raise the event. The method will look like the following code:
public void handleEvent(ActionEvent payload){
// do the logic
}
The following screenshot shows how the
payload
event is added in the
handleEvent
binding:
7.
Now go to the page where you are raising the
REFRESH
event. Go to the page
deiniion ile, right-click on the structure window, and select
Edit Event Map
.
This will open an
Event Map Editor
window. Again, note that the payload provided
here is just an example as we do not need a payload to refresh the page.
8.
Click on the
+
icon to create an event map. Provide the corresponding details and
run the applicaion by right-clicking on the
index
page.
Search WWH ::
Custom Search