...
For instance, the default:
Code Block |
---|
public String getMarkupType() { return "html"; } |
can be overridden to be something like:
Code Block |
---|
public final String getMarkupType() { return "xhtml"; } protected final void configureResponse() { super.configureResponse(); getResponse().setContentType("text/html"); } |
See the source code for the Alternative Markup (XML) example for a more complete demonstration of this concept.