org.zkoss.zk.au.AuWriters.ContentType"
From Documentation
Charlesqiu (talk | contribs) (Created page with "xxx") |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{ZKConfigurationReferencePageHeader}} | |
+ | '''Property:''' | ||
+ | org.zkoss.zk.au.AuWriters.ContentType | ||
+ | |||
+ | {{GlobalLibraryProperty}} | ||
+ | |||
+ | Default: <i>text/plain;charset=UTF-8</i> | ||
+ | {{versionSince| 8.5.2}} | ||
+ | |||
+ | It specifies the Content-Type of the AU response. | ||
+ | |||
+ | For example: | ||
+ | <source lang="xml"> | ||
+ | <library-property> | ||
+ | <name>org.zkoss.zk.au.AuWriters.ContentType</name> | ||
+ | <value>json/application;charset=UTF-8</value> | ||
+ | </library-property> | ||
+ | </source> | ||
+ | [[File:Response content type json.png | 500px]] | ||
+ | |||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 02:09, 26 May 2023
Property:
org.zkoss.zk.au.AuWriters.ContentType
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Default: text/plain;charset=UTF-8
Since 8.5.2
It specifies the Content-Type of the AU response.
For example:
<library-property>
<name>org.zkoss.zk.au.AuWriters.ContentType</name>
<value>json/application;charset=UTF-8</value>
</library-property>