The Quick Edit view allows you to maintain EGL PageHandler code for JSP
server events without opening the PageHandler file. To use the Quick Edit
view, do as follows:
- Open a JSP file in the Page Designer. If you do not have a file open,
double-click on the JSP file in the Project Explorer. The JSP opens in the
Page Designer. Click the Design tab to access the
Design view.
- Right-click in the Page Designer, then select Edit Events.
The Quick Edit view opens.
- Follow these steps to maintain PageHandler functions for command components:
- Select a command component in the JSP.
- If the command component already has a PageHandler function associated
with it, the function displays in the script editor (right pane) of the Quick
Edit view. Any changes you make to the code are reflected in the PageHandler.
- To create a PageHandler function for the selected command component,
click Command in the event pane (left pane) of the
Quick Edit view, then click in the script editor (right pane) of the Quick
Edit view. The function displays. Type the PageHandler code for the function.
- Follow these steps to maintain the onPageLoad function:
- Click inside the JSP.
- Click onPageLoad in the event pane (left pane)
of the Quick Edit view.
- The onPageLoad function displays in the script editor (right pane) of
the Quick Edit view. Any changes you make to the code are reflected in the
PageHandler.