Prev | Current Page 370 | Next

Frank Zammetti

"Practical DWR 2 Projects"

xml

"http://getahead.org/dwr/dwr20.dtd">



match="com.apress.dwrprojects.dwiki.ArticleComment" />



CHAPTER 5 n SHARE YOUR KNOWLEDGE: DWIKI, THE DWR-BASED WIKI 203





We have two classes, Article and ArticleComment, which we??™ll be passing back and forth
between client and server, so we need to specify converters for those, and here the basic bean
converter does the trick just fine.
After that, we specify that the ArticleDAO class is to be remotable, and in fact that??™s the
only class we need to remote for this application.
Now it gets a little new. This is our first encounter with the elements, but it couldn??™t
be simpler. For each method you wish to constrain, you create an element, and in it
you list the name of the method to constrain, and the role(s) that is allowed to execute it, and
that??™s it.


Pages:
358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382