javax.faces.context

Class PartialResponseWriter

  • All Implemented Interfaces:
    Closeable, Flushable, Appendable, AutoCloseable, FacesWrapper<ResponseWriter>

    public class PartialResponseWriter
    extends ResponseWriterWrapper

    PartialResponseWriter decorates an existing ResponseWriter to support the generation of a partial response suitable for Ajax operations. In addition to the markup generation methods inherited from javax.faces.context.ResponseWriter, this class provides methods for constructing the standard partial response elements.

    Since:
    2.0
    • Field Detail

      • RENDER_ALL_MARKER

        public static final String RENDER_ALL_MARKER

        Reserved ID value to indicate entire ViewRoot.

        Since:
        2.0
        See Also:
        Constant Field Values
      • VIEW_STATE_MARKER

        public static final String VIEW_STATE_MARKER

        Reserved ID value to indicate serialized ViewState.

        Since:
        2.0
        See Also:
        Constant Field Values
    • Constructor Detail

      • PartialResponseWriter

        public PartialResponseWriter(ResponseWriter writer)

        Create a PartialResponseWriter.

        Parameters:
        writer - The writer to wrap.
        Since:
        2.0
    • Method Detail

      • startInsertBefore

        public void startInsertBefore(String targetId)
                               throws IOException

        Write the start of an insert operation where the contents will be inserted before the specified target node.

        Parameters:
        targetId - ID of the node insertion should occur before
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • startInsertAfter

        public void startInsertAfter(String targetId)
                              throws IOException

        Write the start of an insert operation where the contents will be inserted after the specified target node.

        Parameters:
        targetId - ID of the node insertion should occur after
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • endInsert

        public void endInsert()
                       throws IOException

        Write the end of an insert operation.

        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • startUpdate

        public void startUpdate(String targetId)
                         throws IOException

        Write the start of an update operation.

        Parameters:
        targetId - ID of the node to be updated
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • endUpdate

        public void endUpdate()
                       throws IOException

        Write the end of an update operation.

        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • updateAttributes

        public void updateAttributes(String targetId,
                                     Map<String,String> attributes)
                              throws IOException

        Write an attribute update operation.

        Parameters:
        targetId - ID of the node to be updated
        attributes - Map of attribute name/value pairs to be updated
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • delete

        public void delete(String targetId)
                    throws IOException

        Write a delete operation.

        Parameters:
        targetId - ID of the node to be deleted
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • redirect

        public void redirect(String url)
                      throws IOException

        Write a redirect operation.

        Parameters:
        url - URL to redirect to
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • startEval

        public void startEval()
                       throws IOException

        Write the start of an eval operation.

        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • endEval

        public void endEval()
                     throws IOException

        Write the end of an eval operation.

        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • startExtension

        public void startExtension(Map<String,String> attributes)
                            throws IOException

        Write the start of an extension operation.

        Parameters:
        attributes - String name/value pairs for extension element attributes
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • endExtension

        public void endExtension()
                          throws IOException

        Write the end of an extension operation.

        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • startError

        public void startError(String errorName)
                        throws IOException

        Write the start of an error.

        Parameters:
        errorName - Descriptive string for the error
        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0
      • endError

        public void endError()
                      throws IOException

        Write the end of an error.

        Throws:
        IOException - if an input/output error occurs
        Since:
        2.0

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 18/08/2025
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-javaee-rf-javax/faces/context/PartialResponseWriter.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com, PartialResponseWriter (Java(TM) EE 7 Specification APIs)

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.