The Eclipse Web Tools Platform (WTP) JSF tools has been provided with Eclipse Java EE bundles since the Ganymede release and to take advantage of the faces-config visual editor in your ArcGIS Web Project you need to do the following in your Eclipse Developer Environment:
- Create a Web ADF Project using the Eclipse ESRI Web ADF templates or use an existing Web ADF Project.
- Rename your projects web.xml (e.g. web_orig.xml) as this process will create a new web.xml file and overwrite the projects web.xml. The Web ADF Project depends on the web.xml file that the Web ADF plug-in creates so we don't want to overwrite it.
- Right click on your Project and select Properties.
- In the Properties dialog select 'Project Facets' from the left hand selection and check the 'JavaServer Faces' Project Facet.
- Click on the 'Further configuration required' link near the bottom of the dialog.
- Accept the 'Server Supplied JSF Implementation' in the JSF capabilities dialog and click OK.
- Now click the OK button in the Project Properties dialog.
- Finally, delete the web.xml file that was generated by the JSF Facets dialog and rename your original file you changed in step 1 back to web.xml.
When you double click on your faces-config.xml file, the Faces Configuration Introduction page should open and you are now ready to use the visual editor capabilities to edit your faces-config file. If this did not happen, simply right click on your faces-config.xml file and select 'Open With' to ensure that the 'Faces Config Editor' is the default editor.
Once your faces-config file is opened inside the visual editor you will notice different tab options at the bottom of the editor which allows you to visually edit different aspects of the file. For example, to edit the Managed Beans in your application, you can click on the 'ManagedBean' tab to open the editor, then add/remove beans or select a bean to edit.
While many of our Eclipse Plug-in tools take care of editing your projects faces-config editor, enabling the visual capabilities on your project simplifies situations when you need to do some manual edits to the file.
Development licensing | Deployment licensing |
---|---|
Server | Server |