Using the Quick Edit view for PageHandler code

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:

  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 PageHandler functions for command components:
    1. Select a command component in the JSP.
    2. 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.
    3. 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.
  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 PageHandler.

Related concepts
PageHandler

Related reference
PageHandler part in EGL source format

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.