< Editors faces-config.xml Editor >

HTML/JSP/XML Editor



EclipseHTMLEditor provides editors for HTML, JSP and XML. Among other features these editors provide syntax coloring, code folding, tag completion, code completion and, where applicable, use DTD and TLD declarations for validation. These features are described below.



HTML/JSP Editor


The HTML and JSP editors have 2 tabs: Source and Preview. Currently the Preview tab is just that--a preview of the page; it does not support visual editing such as repositioning controls, etc. To control the layout of these tabs see the Preferences Dialog.





Both the HTML and JSP editors can be used with the Palette, to quickly insert HTML and JSF elements. Both editors can also use DTD declarations to provide DTD-based validation and code-completion. The figure below shows an input element inserted via the palette, and a code completion popup showing additional attributes based on the declared HTML DTD.





See the Preferences Dialog for details on managing DTDs. Referenced tag libraries are searched for in the location indicated in web.xml and, if not indicated therein, in WEB-INF.



Both the HTML and JSP editors provide element-specific assistance. For example, if you have an image element, <img src="" />, placing the cursor between the quotes and pressing CTRL + Spacebar provides a pop-up view of files in the containing page's directory. Specifying a relative path before invoking pop-up help lists files in that relative directory.





When developing JSF applications using JSP pages, the JSP Editor is aware of managed beans declared in faces-config.xml, and can provide code-completion for JSF value-binding expressions.





Both the HTML and JSP editors provide element-specific resource-linking. For example, if you have an anchor element, <a href="foo.html" />, CTRL + Click on foo.html opens foo.html in an editor. This works as well for <img ... /> elements, and JSF binding expressions such as #{...}; in the latter case it opens the managed bean's source file.





XML Editor


The XML Editor can provide DTD / XML-schema based validation and code-completion. In the absence of DTD and XML-schema it suggests tag completions based on existing markup.



< Editors faces-config.xml Editor >
FacesIDE User Guide (https://amateraside.dev.java.net/)