Enabling AJAX proxy support for a portlet project

You can enable AJAX proxy support for both new and existing portlet projects.

To enable AJAX proxy support for a new portlet project:

  1. Click

    File | New | Project | Portlet Project. The New Portlet Project wizard appears.

  2. Specify your portlet project settings, and then click

    Show Advanced Settings. The Project Facet window appears.

  3. Expand Web 2.0 and select the AJAX Proxy check box. Then click OK.

After your project is created, you can use the AJAX Proxy Configuration editor to specify paths that map to a URL on a remote domain. This is a convenient way to make asynchronous JavaScript requests to known remote servers. To start the AJAX Proxy Configuration editor, expand the

WebContent | WEB-INF folders, and double-click on proxy-config.xml.

To enable AJAX proxy support for an existing portlet project:

  1. Right click on the project and select

    Properties | Project Facets. The Project Facet window appears.

  2. Expand Web 2.0 and select the AJAX Proxy check box. Then click OK.

 

Related concepts

AJAX proxy support

AJAX proxy support