com.esri.adf.web.ags.faces.event
Class AGSPhaseListener

java.lang.Object
  extended by com.esri.adf.web.ags.faces.event.AGSPhaseListener
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public class AGSPhaseListener
extends Object
implements javax.faces.event.PhaseListener

Phase listener to handle Ajax requests when ArcGIS Server is part of resources used in application. For example, 'Show Copyright' toc context menu to display copyright information for a certain resource. Also handles request to compute snapping point while using EditingTask.

Required parameters :
agsAjax=agsAjax : Identifier for phase listener to process request
formId=[value] : Id of form within which toc is rendered

Optional parameters :
showCopyright=showCopyright : Return copyright information for
key=[value] : Layer toc node's key to get copyright information
tocId=[value] : Id of toc

Javascript functions :
Request sender : EsriToc.showCopyrightRequestHandler()
Response handling : EsriToc.showCopyrightResponseHandler()

Optional parameters :
snapPoint:snapPoint : Find snapping point during execution of editing task
taskId=[value] : Id of editing task

Javascript functions :
Request sender : EsriEditingUtils.snapPointRequestHandler()
Response handling : EsriEditingUtils.snapPointResponseHandler()

See Also:
Serialized Form

Constructor Summary
AGSPhaseListener()
           
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
           
 void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
           
 javax.faces.event.PhaseId getPhaseId()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AGSPhaseListener

public AGSPhaseListener()
Method Detail

getPhaseId

public javax.faces.event.PhaseId getPhaseId()
Specified by:
getPhaseId in interface javax.faces.event.PhaseListener

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
beforePhase in interface javax.faces.event.PhaseListener

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent phaseEvent)
Specified by:
afterPhase in interface javax.faces.event.PhaseListener