SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 221 | Next

Ola Bini

"Practical JRuby on Rails Web 2.0 Projects: Bringing Ruby on Rails to Java"

We??™ve also taken a look at an advanced Ajax feature: using remote
Ajax links to invoke code on the server asynchronously, and also how to create a list that can
be sorted through dragging and dropping.
In the next chapter it??™s finally time to look at how to get all this working together with Java
libraries. We??™ll look at different approaches to XML rendering and also how to use other Ruby
libraries, such as BlueCloth and REXML, from your JRuby code.
CHAPTER 7 ?–  A RAILS CMS 141
Content Rendering
Chapter 6 explained in some detail how to use JRuby to get access to Java resources, and
Chapter 7 described the implementation of most of the administrative user interface for the
CoMpoSe application. This chapter is split in two parts. First of all, we??™re going to take a thorough
look at different ways of doing content rendering. The examples here will be small
standalone programs that can be executed outside Rails. In this way we can see many different
ways of handling XML content, and also some other interesting approaches.
In the second part of the chapter we use what we learned from Chapters 6 and 7, and from
the first part of this one, to finally create the rendering engine for CoMpoSe. The final system
will be layered and use all the information available about an article, including its own data,
the path it resolved through, and all layouts and styles associated with these. The final system
will have some flexibility and will also be something you can extend and make powerful with
little effort.


Pages:
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233