ArcGIS Server Java ICEfaces - Esri Integration Guide introduces how to create an AJAX application that supports ArcGIS Server using the ESRI WebADF and ICEfaces technologies.
This guide, submitted by Schuller Tom of Luxembourg for the ArcGIS Server Code Challenge 2008, explains why and how to combine ICEfaces technology with the Esri WebADF in ArcGIS Server Java applications. It lists the advantages of the combination: only the modified parts of a page are updated, AJAX communication does not have to be handled, server-initiated asynchronous presentation updates are possible, and Direct-to-DOM rendering writes a JSF component tree directly into a W3C standard DOM structure.
The document then shows the HTML, Java and faces-context.xml code needed for a Map Information example and a Map Zoom example, which replace the JavaScript/XML AJAX code of the Esri samples. A roadmap describes the rewritten Esri components (agscontext, agsmap, agstoc, agstask, agscommand and agstool in the pch namespace) and lists the functionalities and attributes that are not yet implemented.
| ICEfaces-compatible JSF components | pch:agscontext, pch:agsmap, pch:agstoc, pch:agstask, pch:agscommand, pch:agstool |
|---|---|
| Server-side API | Complete WebADF API used at the backend, with compatibility to Esri WebADF guaranteed |
| agsmap map support | Only non-cached map services; tiles and map caches are not handled |
| agstask layouts | Default and table layouts implemented; AbsoluteLayout not implemented |
| agstoc rendering | Representation defined in a separate facelet file (WEB-INF/taglib/pchToc.xhtml); no new renderer created |
Only the modified parts are updated out of the box, so zooming into a map reloads just the modified map image instead of the entire webpage.
No. With the ICEfaces - Esri integration code there is no XML creation or parsing and no JavaScript code to write.
The Esri context, map, toc, task, command and tool components were rewritten as pch:agscontext, pch:agsmap, pch:agstoc, pch:agstask, pch:agscommand and pch:agstool.
Not yet; the component can currently show only non-cached map services.