Prev | Current Page 157 | Next

Frank Zammetti

"Practical DWR 2 Projects"

xml
files and we might refer to one in another file.
-->
(param)*
)>

converter CDATA #REQUIRED
match CDATA #REQUIRED
>
CHAPTER 2 n GETTING TO KNOW DWR 74


OK, before we go too far, let??™s get some terminology under our belts. First, any javabean
that is to be remoted will require a creator, which knows all the details of how to create a bean
of a given type. The parameters that are passed to a method and returned from methods will
require a converter, which knows all the details of how to marshal the Java types to and from
JavaScript types.
Built-in Creators and Converters
DWR comes with a number of creators to deal with a number of bean types, and these are
listed in Table 2-2.
Table 2-2. The Built-in DWR Creators
Creator Description
new Uses the Java new operator. This is likely the one you??™ll use most often as it allows you to
remote beans of virtually any type, but it does no setup of the bean prior to making the
remote call, as other creators may do.


Pages:
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169