Creating an EGL pageHandler part

A pageHandler part controls a user's run-time interaction with a Web page by providing data and services to a Java Server Faces JSP. When you create a JSP, a pageHandler part is automatically created for you in a package called pagehandlers within the EGLSource folder. The name of the pageHandler part is the same as the corresponding JSP, but with a .egl file extension.

Optionally, you can create a pageHandler part and let the system automatically add the JSP to your project, provided a JSP file with the same name does not already exist within the EGL Web project. To create an EGL pageHandler part, do as follows:

  1. If your EGL Web project does not contain a package named pagehandlers, create one. Page Designer requires that all pageHandler parts reside in a package named pagehandlers. For details on creating packages, see Creating an EGL package.

  2. Identify an EGL file within the pagehandlers package to contain the pageHandler part. Open the file in the EGL editor. You must create an EGL file if you do not already have one.

  3. Type the specifics of the pageHandler part according to EGL syntax (for details, see PageHandler part in EGL source format). You can use content assist to place an outline of the pageHandler part syntax in the file.

  4. Save the EGL file.

Related concepts
EGL projects, packages, and files
PageHandler part

Related tasks
Creating an EGL package
Creating an EGL source file
Using content assist in EGL
Using the Quick Edit view for page-handler code

Related reference
Content assist
Naming conventions
PageHandler part in EGL source format