| 18 | | <title>Output Type Configuration</title> |
| | 18 | <title>How Agavi uses the output type configuration</title> |
| | 19 | <p>Agavi Views use the configuration items from a specific |
| | 20 | output type. For example, you could define a "pdf" output type |
| | 21 | that corresponds to PDF generation. The output type |
| | 22 | configuration file allows you to specify the defaults that your |
| | 23 | Views will use when invoked in PDF mode (e.g. Agavi |
| | 24 | calls their <apiname>executePdf</apiname>() method).</p> |
| | 25 | <p>Output type configuration can be used to define the following things:</p> |
| | 26 | <dl> |
| | 27 | <dlentry> |
| | 28 | <dt>Layouts</dt> |
| | 29 | <dd>A View's Layout is a list of Layers, templates and |
| | 30 | renderers that Agavi should render after the View's |
| | 31 | execution. Different Layouts can be configured and a View |
| | 32 | can load any of them. You can also specify which Layout is |
| | 33 | default in this output type.</dd> |
| | 34 | </dlentry> |
| | 35 | <dlentry> |
| | 36 | <dt>Renderer configuration</dt> |
| | 37 | <dd>Configuration parameters for Renderer classes applied |
| | 38 | during Renderer creation in this output type. Default |
| | 39 | Renderer class is also configurable.</dd> |
| | 40 | </dlentry> |
| | 41 | <dlentry> |
| | 42 | <dt>Exception template</dt> |
| | 43 | <dd>You can specify the emergency template that is to be |
| | 44 | rendered if an unhandled exception occurs, substituting the |
| | 45 | output of a failed Action.</dd> |
| | 46 | </dlentry> |
| | 47 | <dlentry> |
| | 48 | <dt>HTTP headers</dt> |
| | 49 | <dd>You can define default HTTP headers for a given output |
| | 50 | type, so that Agavi automatically adds them to any output |
| | 51 | generated in this output type.</dd> |
| | 52 | </dlentry> |
| | 53 | </dl> |
| | 54 | </section> |
| | 55 | <section> |
| | 56 | <title>XML configuration example</title> |