Expert Spring MVC and Web Flow

(Dana P.) #1
We left the debugparameter, which enables a nifty test page to be called for each service
object that you export. See Figure B-1 for an example.

Figure B-1.Test page for clinic service object

The only other change to the server side of the operation was a method name that needed
to be refactored. One of the DWR gotchas is that JavaScript is a little more picky about reserved
names being used as methods than Java is. A common one is the method delete(), which
would be illegal in JavaScript. In our case, we had to rename the isNew()method on the Entity
class, as shown in Listing B-3.

380 APPENDIX B ■AJAX AND DWR

584X_Ch14_AppB_FINAL 1/30/06 12:55 PM Page 380

Free download pdf