org.wings.resource
Class UpdateResource
java.lang.Object
org.wings.Resource
org.wings.resource.DynamicResource
org.wings.resource.UpdateResource
- All Implemented Interfaces:
- Serializable, Renderable, URLResource
public class UpdateResource
- extends DynamicResource
This resource is responsible for incremental page updates using AJAX. While requests sent to the
ReloadResource always entail a full rewrite of the frame's complete component hierarchy,
requests received by the UpdateResource will result in preferably small data chunks being
sent back to the client. These so called "incremental updates" encapsulate all informations the
client needs in order to synchronize its page with the server's state. Because this resource is
typically requested from an XMLHttpRequest object, it returns a well-formed XML document with MIME
type "text/xml". The updates in this document will be processed by according JavaScript functions.
The XML structure looks as follows:
...
- Author:
- Stephan Schuster
- See Also:
- Serialized Form
UpdateResource
public UpdateResource(SFrame f)
write
public void write(Device out)
throws IOException
- Description copied from interface:
Renderable
- Write this Renderable component to some output device.
- Throws:
IOException
writeHeader
public static void writeHeader(Device out)
throws IOException
- Throws:
IOException
writeFooter
public static void writeFooter(Device out)
throws IOException
- Throws:
IOException
writeUpdate
public static void writeUpdate(Device out,
Update update)
throws IOException
- Throws:
IOException
writeUpdate
public static void writeUpdate(Device out,
String update)
throws IOException
- Throws:
IOException
wingS Swings ;-)