org.zkoss.bind.jsonBindingParamConverter.class"
From Documentation
Jumperchen (talk | contribs) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
org.zkoss.bind.jsonBindingParamConverter.class | org.zkoss.bind.jsonBindingParamConverter.class | ||
− | Default: < | + | {{GlobalLibraryProperty}} |
− | + | ||
+ | {{versionSince| 8.0.0}} {{ZK EE}} | ||
+ | Default: org.zkoss.zkmax.bind.JacksonConverter ( JavaDoc: <javadoc>org.zkoss.zkmax.bind.JacksonConverter</javadoc>) | ||
+ | |||
+ | {{versionSince|8.5.1}} {{ZK EE}} | ||
+ | Default: org.zkoss.zkmax.bind.GsonConverter (JavaDoc: <javadoc>org.zkoss.zkmax.bind.GsonConverter</javadoc>) | ||
+ | |||
It specifies the name of the class used to provide the default JSON converter for ZK Bind command. The class must implement the <javadoc type="interface">org.zkoss.bind.Converter</javadoc> interface. | It specifies the name of the class used to provide the default JSON converter for ZK Bind command. The class must implement the <javadoc type="interface">org.zkoss.bind.Converter</javadoc> interface. | ||
Line 11: | Line 17: | ||
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.bind.jsonBindingParamConverter.class</name> | <name>org.zkoss.bind.jsonBindingParamConverter.class</name> | ||
<value>org.zkoss.zkmax.bind.GsonConverter</value> | <value>org.zkoss.zkmax.bind.GsonConverter</value> | ||
</library-property> | </library-property> | ||
− | </ | + | </syntaxhighlight> |
− | + | ||
+ | {{ZKConfigurationReferencePageFooter}} |
Latest revision as of 09:29, 14 March 2022
Property:
org.zkoss.bind.jsonBindingParamConverter.class
Applicable: globally in zk.xml via <library-property> not as <custom-attribute>
Since 8.0.0
- Available for ZK:
Default: org.zkoss.zkmax.bind.JacksonConverter ( JavaDoc: JacksonConverter)
Since 8.5.1
- Available for ZK:
Default: org.zkoss.zkmax.bind.GsonConverter (JavaDoc: GsonConverter)
It specifies the name of the class used to provide the default JSON converter for ZK Bind 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.bind.jsonBindingParamConverter.class</name>
<value>org.zkoss.zkmax.bind.GsonConverter</value>
</library-property>