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:
- Click
File | New | Project | Portlet Project. The New Portlet Project wizard appears.
- Specify your portlet project settings, and then click
Show Advanced Settings. The Project Facet window appears.
- 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:
- Right click on the project and select
Properties | Project Facets. The Project Facet window appears.
- Expand Web 2.0 and select the AJAX Proxy check box. Then click OK.
Related concepts