org.zkoss.zk.ui.jsonServiceParamConverter.class"

From Documentation
m
m (change default to GsonConverter)
Line 7: Line 7:
 
  Default: <i>org.zkoss.zkmax.ui.JacksonConverter</i> (it implies <javadoc>org.zkoss.zkmax.ui.JacksonConverter</javadoc>)
 
  Default: <i>org.zkoss.zkmax.ui.JacksonConverter</i> (it implies <javadoc>org.zkoss.zkmax.ui.JacksonConverter</javadoc>)
 
  [since 8.0.0] [EE version only]
 
  [since 8.0.0] [EE version only]
 +
 +
Default: <i>org.zkoss.zkmax.ui.GsonConverter</i> (it implies <javadoc>org.zkoss.zkmax.ui.GsonConverter</javadoc>)
 +
[since 8.5.1] [EE version only]
  
 
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.

Revision as of 07:21, 1 February 2018


DocumentationZK Configuration Referencezk.xmlThe Library Propertiesorg.zkoss.zk.ui.jsonServiceParamConverter.class
org.zkoss.zk.ui.jsonServiceParamConverter.class


Property:

org.zkoss.zk.ui.jsonServiceParamConverter.class
Applicable:
Dndsmalltalk-check-icon.png globally in zk.xml via <library-property>
Dndsmalltalk-cross-icon.png not as <custom-attribute>
Default: org.zkoss.zkmax.ui.JacksonConverter (it implies JacksonConverter)
[since 8.0.0] [EE version only]
Default: org.zkoss.zkmax.ui.GsonConverter (it implies GsonConverter)
[since 8.5.1] [EE version only]

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>


Last Update : 2018/02/01

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.