|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.adf.web.faces.renderkit.xml.ajax.AJAXUtil
public class AJAXUtil
Utility class.
| Constructor Summary | |
|---|---|
AJAXUtil()
|
|
| Method Summary | |
|---|---|
static org.w3c.dom.Element |
appendViewState(javax.faces.context.FacesContext facesContext,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
Gets the current serialized view ID and add to the document as a element. |
static org.w3c.dom.Document |
createErrorResponse(java.lang.String message)
Renders an XML document with a root error tag. |
static java.lang.String |
serializeView(javax.faces.context.FacesContext facesContext)
Serializes the view of the faces context in server side. |
static void |
writeResponse(javax.faces.context.FacesContext facesContext,
org.w3c.dom.Document doc)
This method is the preferred way to render AJAX XML responses to be returned to the client. |
static void |
writeResponse(javax.faces.context.FacesContext facesContext,
org.w3c.dom.Document doc,
java.util.Properties outputFormat)
This method is the preferred way to render AJAX XML responses to be returned to the client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AJAXUtil()
| Method Detail |
|---|
public static void writeResponse(javax.faces.context.FacesContext facesContext,
org.w3c.dom.Document doc)
throws java.io.IOException
This method is the preferred way to render AJAX XML responses to be returned to the client.
Document doc = XMLUtil.newDocument();
... add content to xml document ...
AJAXUtil.writeResponse(facesContext, doc);
facesContext.responseComplete();
This method gets the current response object from the external context, writes the response and then closes the response writer.
facesContext - Current FacesContext instancedoc - XML Document with content to be returned to client
java.io.IOException
public static void writeResponse(javax.faces.context.FacesContext facesContext,
org.w3c.dom.Document doc,
java.util.Properties outputFormat)
throws java.io.IOException
This method is the preferred way to render AJAX XML responses to be returned to the client.
Document doc = XMLUtil.newDocument();
... add content to xml document ...
AJAXUtil.writeResponse(facesContext, doc);
facesContext.responseComplete();
This method gets the current response object from the external context, writes the response and then closes the response writer.
facesContext - Current FacesContext instancedoc - XML Document with content to be returned to clientoutputFormat - the output properties that used for transformation
java.io.IOExceptionTransformer.setOutputProperties(Properties)public static org.w3c.dom.Document createErrorResponse(java.lang.String message)
Renders an XML document with a root error tag.
message - to be rendered within tag
public static java.lang.String serializeView(javax.faces.context.FacesContext facesContext)
throws java.lang.Exception
facesContext -
java.lang.Exception
public static org.w3c.dom.Element appendViewState(javax.faces.context.FacesContext facesContext,
org.w3c.dom.Document doc,
org.w3c.dom.Element parent)
facesContext - the current faces-contextdoc - the doc to add the elementparent - the new "com.sun.faces.VIEW" will be appended to the given parent element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||