此内容没有您所选择的语言版本。
24.7. Working with Data types
24.7.1. Primitives / Basic Types 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
This section describes the support for basic data types. On the server side, these values are generally compatible with either their primitive type, or their corresponding wrapper class.
24.7.1.1. String 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Use JavaScript String objects to set String parameter values.
24.7.1.2. Number 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Seam supports all Java-supported number types. On the client side, number values are always serialized as their String representation. They are converted to the correct destination type on the server side. Conversion into either a primitive or wrapper type is supported for
Byte
, Double
, Float
, Integer
, Long
and Short
types.
24.7.1.3. Boolean 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
Booleans are represented client-side by JavaScript Boolean values, and server-side by a Java Boolean.