org.zkoss.zk.ui.jsonServiceParamConverter.class"
From Documentation
m (change default to GsonConverter) |
|||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
{{GlobalLibraryProperty}} | {{GlobalLibraryProperty}} | ||
− | Default: | + | {{versionSince| 8.0.0}} {{ZK EE}} |
− | [ | + | Default: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/ui/JacksonConverter.html org.zkoss.zkmax.ui.JacksonConverter] |
+ | |||
+ | |||
+ | {{versionSince| 8.5.1}} {{ZK EE}} | ||
+ | Default: [http://www.zkoss.org/javadoc/latest/zk/org/zkoss/zkmax/ui/GsonConverter.html org.zkoss.zkmax.ui.GsonConverter] | ||
− | |||
− | |||
It specifies the name of the class used to provide the default JSON converter for service command. The class must implement the <javadoc type="interface">org.zkoss.util.Converter</javadoc> interface. | It specifies the name of the class used to provide the default JSON converter for service command. The class must implement the <javadoc type="interface">org.zkoss.util.Converter</javadoc> interface. | ||
Line 16: | Line 18: | ||
In EE version, you can switch the implementation of the json converter in zk.xml | In EE version, you can switch the implementation of the json converter in zk.xml | ||
− | < | + | <syntaxhighlight lang='xml> |
<library-property> | <library-property> | ||
<name>org.zkoss.zk.ui.jsonServiceParamConverter.class</name> | <name>org.zkoss.zk.ui.jsonServiceParamConverter.class</name> | ||
<value>org.zkoss.zkmax.ui.GsonConverter</value> | <value>org.zkoss.zkmax.ui.GsonConverter</value> | ||
</library-property> | </library-property> | ||
− | </ | + | </syntaxhighlight> |
− | + | ||
+ | |||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 09:34, 14 March 2022
Property:
org.zkoss.zk.ui.jsonServiceParamConverter.class
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Since 8.0.0
- Available for ZK:
Default: org.zkoss.zkmax.ui.JacksonConverter
Since 8.5.1
- Available for ZK:
Default: org.zkoss.zkmax.ui.GsonConverter
It specifies the name of the class used to provide the default JSON converter for service command. The class must implement the Converter interface.
You can implement your own JSON converter for non-EE version or use the built-in converter in EE version. In EE version, you can switch the implementation of the json converter in zk.xml
<library-property>
<name>org.zkoss.zk.ui.jsonServiceParamConverter.class</name>
<value>org.zkoss.zkmax.ui.GsonConverter</value>
</library-property>