Use the Quick Edit view for page-handler code

The Quick Edit view allows you to maintain EGL page handler code for JSP server events without opening the page handler file. To use the Quick Edit view, do as follows:

  1. 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.

  2. Right-click in the Page Designer, then select Edit Events. The Quick Edit view opens.

  3. Follow these steps to maintain page handler functions for command components:

    1. Select a command component in the JSP.

    2. If the command component already has a page handler 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 page handler.

    3. To create a page handler 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 page handler code for the function.

  4. Follow these steps to maintain the onPageLoad function:

    1. Click inside the JSP.

    2. Click onPageLoad in the event pane (left pane) of the Quick Edit view.

    3. 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 page handler.

Related concepts
PageHandler part

Related reference
PageHandler part in EGL source format